/[cvs]/eggdrop1.9/aclocal.m4
ViewVC logotype

Diff of /eggdrop1.9/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.27 by fabian, Sun Oct 1 19:14:41 2000 UTC revision 1.28 by fabian, Sun Oct 1 19:19:19 2000 UTC
# Line 53  fi Line 53  fi
53  ])dnl  ])dnl
54    
55    
56  dnl  EGG_CHECK_PIPE()  dnl  EGG_CHECK_CCPIPE()
57  dnl  dnl
58  AC_DEFUN(EGG_CHECK_PIPE, [dnl  dnl  Checks whether the compiler supports the `-pipe' flag, which
59    dnl  speeds up the compilation.
60    AC_DEFUN(EGG_CHECK_CCPIPE, [dnl
61  if test -z "$no_pipe"  if test -z "$no_pipe"
62  then  then
63    if test -n "$GCC"    if test -n "$GCC"
64    then    then
65      AC_CACHE_CHECK(if the compiler understands -pipe, egg_cv_var_ccpipe, [dnl      AC_CACHE_CHECK(whether the compiler understands -pipe, egg_cv_var_ccpipe,
66        [dnl
67        ac_old_CC="$CC"        ac_old_CC="$CC"
68        CC="$CC -pipe"        CC="$CC -pipe"
69        AC_TRY_COMPILE(,, egg_cv_var_ccpipe="yes", egg_cv_var_ccpipe="no")        AC_TRY_COMPILE(,, egg_cv_var_ccpipe="yes", egg_cv_var_ccpipe="no")
# Line 191  case "$egg_cv_var_system" in Line 194  case "$egg_cv_var_system" in
194      esac      esac
195      ;;      ;;
196    HP-UX)    HP-UX)
197      AC_MSG_RESULT([HP-UX])      AC_MSG_RESULT(HP-UX)
198      HPUX=yes      HPUX=yes
199      MOD_LD="gcc -fPIC -shared"      MOD_LD="${CC} -fPIC -shared"
200      SHLIB_CC="gcc -fPIC"      SHLIB_CC="${CC} -fPIC"
201      SHLIB_LD="ld -b"      SHLIB_LD="ld -b"
202      NEED_DL=0      NEED_DL=0
203      AC_DEFINE(MODULES_OK)dnl      AC_DEFINE(MODULES_OK)dnl
# Line 208  case "$egg_cv_var_system" in Line 211  case "$egg_cv_var_system" in
211      AC_MSG_RESULT(Dell SVR4)      AC_MSG_RESULT(Dell SVR4)
212      SHLIB_STRIP=touch      SHLIB_STRIP=touch
213      NEED_DL=0      NEED_DL=0
214      MOD_LD="gcc -lelf -lucb"      MOD_LD="${CC} -lelf -lucb"
215      ;;      ;;
216          IRIX-4.*)          IRIX-4.*)
217          AC_MSG_RESULT(IRIX4.+!)          AC_MSG_RESULT(IRIX4.+!)
# Line 236  case "$egg_cv_var_system" in Line 239  case "$egg_cv_var_system" in
239    IRIX64*)    IRIX64*)
240      AC_MSG_RESULT(64-BIT IRIX)      AC_MSG_RESULT(64-BIT IRIX)
241      IRIX=yes      IRIX=yes
242      SHLIB_STRIP=touch      SHLIB_STRIP=strip
243      NEED_DL=0      NEED_DL=0
244      DEFAULT_MAKE=static      DEFAULT_MAKE=static
245      SHLIB_LD="ld -32 -shared -rdata_shared"      SHLIB_LD="ld -32 -shared -rdata_shared"
# Line 245  case "$egg_cv_var_system" in Line 248  case "$egg_cv_var_system" in
248      AC_MSG_RESULT(Ultrix)      AC_MSG_RESULT(Ultrix)
249      NEED_DL=0      NEED_DL=0
250      SHLIB_STRIP=touch      SHLIB_STRIP=touch
251      DEFUALT_MAKE=static      DEFAULT_MAKE=static
252      SHELL=/bin/sh5      SHELL=/bin/sh5
253      ;;      ;;
254    SINIX*)    SINIX*)
255      AC_MSG_RESULT(SINIX - bit broken use at your own risk)      AC_MSG_RESULT(SINIX)
256      NEED_DL=0      NEED_DL=0
257      SHLIB_STRIP=touch      SHLIB_STRIP=touch
258      DEFUALT_MAKE=static      DEFAULT_MAKE=static
259      SHLIB_CC="cc -G"      SHLIB_CC="cc -G"
260      ;;      ;;
261    BeOS)    BeOS)
262      AC_MSG_RESULT(BeOS)      AC_MSG_RESULT(BeOS)
263      NEED_DL=0      NEED_DL=0
264      SHLIB_STRIP=strip      SHLIB_STRIP=strip
265      DEFUALT_MAKE=static      DEFAULT_MAKE=static
266      ;;      ;;
267    Linux)    Linux)
268      AC_MSG_RESULT(Linux! The choice of the GNU generation)      AC_MSG_RESULT(Linux)
269      LINUX=yes      LINUX=yes
270      CFLAGS="$CFLAGS -Wall"      CFLAGS="$CFLAGS -Wall"
271      MOD_LD="${CC}"      MOD_LD="${CC}"
# Line 271  case "$egg_cv_var_system" in Line 274  case "$egg_cv_var_system" in
274      AC_DEFINE(MODULES_OK)dnl      AC_DEFINE(MODULES_OK)dnl
275      ;;      ;;
276    Lynx)    Lynx)
     SHLIB_STRIP=touch  
277      AC_MSG_RESULT(Lynx OS)      AC_MSG_RESULT(Lynx OS)
278        NEED_DL=0  
279        DEFAULT_MAKE=static
280        SHLIB_STRIP=strip
281      ;;      ;;
282    OSF1)    OSF1)
283      AC_MSG_RESULT(OSF...)      AC_MSG_RESULT(OSF)
284      case `${UNAME} -r | cut -d . -f 1` in      case `${UNAME} -r | cut -d . -f 1` in
285        V*)        V*)
286          AC_MSG_RESULT([   Digital OSF])          AC_MSG_RESULT([   Digital OSF])
# Line 311  case "$egg_cv_var_system" in Line 316  case "$egg_cv_var_system" in
316      esac      esac
317      AC_DEFINE(STOP_UAC)dnl      AC_DEFINE(STOP_UAC)dnl
318      ;;      ;;
319      SunOS-4*)
320        AC_MSG_RESULT(SunOS 4)
321        SHLIB_LD="ld"
322        SHLIB_CC="${CC} -PIC"
323        SUNOS=yes
324        SHLIB_STRIP=touch
325        ;;
326    SunOS)    SunOS)
327      if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"      if test "x`${UNAME} -r | cut -d . -f 1`" = "x5"
328      then      then
329        AC_MSG_RESULT(Solaris -- yay)        AC_MSG_RESULT(Solaris)
330        SHLIB_CC="${CC} -KPIC"            SHLIB_CC="${CC} -KPIC"    
331        SHLIB_LD="/usr/ccs/bin/ld -G -z text"        SHLIB_LD="/usr/ccs/bin/ld -G -z text"
332      else      else
333        AC_MSG_RESULT(SunOS -- sigh)        AC_MSG_RESULT(SunOS)
334        SUNOS=yes        SUNOS=yes
       SHLIB_CC="${CC} -PIC"  
335        SHLIB_LD=ld        SHLIB_LD=ld
336        SHLIB_STRIP=touch        SHLIB_STRIP=touch
337        AC_DEFINE(DLOPEN_1)dnl        AC_DEFINE(DLOPEN_1)dnl
# Line 435  fi Line 446  fi
446    
447  dnl  EGG_CYGWIN()  dnl  EGG_CYGWIN()
448  dnl  dnl
449    dnl  Check for Cygwin support.
450  AC_DEFUN(EGG_CYGWIN, [dnl  AC_DEFUN(EGG_CYGWIN, [dnl
451  AC_CYGWIN  AC_CYGWIN
452  if test ! "x${CYGWIN}" = "x"  if test ! "x${CYGWIN}" = "x"
# Line 446  fi Line 458  fi
458    
459  dnl  EGG_EXEEXT()  dnl  EGG_EXEEXT()
460  dnl  dnl
461    dnl  Test for executable suffix and define eggdrop's executable name
462    dnl  accordingly.
463  AC_DEFUN(EGG_EXEEXT, [dnl  AC_DEFUN(EGG_EXEEXT, [dnl
464  EGGEXEC=eggdrop  EGGEXEC=eggdrop
465  AC_EXEEXT  AC_EXEEXT
# Line 772  AC_SUBST(TCLINCFN)dnl Line 786  AC_SUBST(TCLINCFN)dnl
786  ])dnl  ])dnl
787    
788    
789    dnl  EGG_CACHE_UNSET(CACHE-ID)
790    dnl
791    dnl  Unsets a certain cache item. Typically called before using
792    dnl  the AC_CACHE_*() macros.
793    AC_DEFUN(EGG_CACHE_UNSET, [dnl
794      unset $1
795    ])
796    
797    
798    dnl  EGG_TCL_DETECT_CHANGE()
799    dnl
800    dnl  Detect whether the tcl system has changed since our last
801    dnl  configure run. Set egg_tcl_changed accordingly.
802    dnl
803    dnl  Tcl related feature and version checks should re-run their
804    dnl  checks as soon as egg_tcl_changed is set to "yes".
805    AC_DEFUN(EGG_TCL_DETECT_CHANGE, [dnl
806      AC_MSG_CHECKING(whether the tcl system has changed)
807      egg_tcl_changed=yes
808      egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
809      if test "${egg_tcl_id}" != ":::"; then
810        egg_tcl_cached=yes
811        AC_CACHE_VAL(egg_cv_var_tcl_id, [dnl
812          egg_cv_var_tcl_id="$egg_tcl_id"
813          egg_tcl_cached=no
814        ])
815        if test "${egg_tcl_cached}" = "yes"; then
816          if test "x${egg_cv_var_tcl_id}" = "x${egg_tcl_id}"; then
817            egg_tcl_changed=no
818          else
819            egg_cv_var_tcl_id="$egg_tcl_id"
820          fi
821        fi
822      fi
823      if test "$egg_tcl_changed" = "yes"; then
824        AC_MSG_RESULT(yes)
825      else
826        AC_MSG_RESULT(no)
827      fi
828    ])
829    
830    
831  dnl  EGG_TCL_CHECK_VERSION()  dnl  EGG_TCL_CHECK_VERSION()
832  dnl  dnl
833  AC_DEFUN(EGG_TCL_CHECK_VERSION, [dnl  AC_DEFUN(EGG_TCL_CHECK_VERSION, [dnl
834  # Both TCLLIBFN & TCLINCFN must be set, or we bail  # Both TCLLIBFN & TCLINCFN must be set, or we bail
835  TCL_FOUND=0  TCL_FOUND=0
836  if test ! "x${TCLLIBFN}" = "x" && test ! "x${TCLINCFN}" = "x"  if test "x${TCLLIBFN}" != "x" && test "x${TCLINCFN}" != "x"
837  then  then
838    TCL_FOUND=1    TCL_FOUND=1
839    
840    # Check Tcl's version    # Check Tcl's version
841      if test "$egg_tcl_changed" = "yes"; then
842        EGG_CACHE_UNSET(egg_cv_var_tcl_version)
843      fi
844    AC_MSG_CHECKING(for Tcl version)    AC_MSG_CHECKING(for Tcl version)
845    AC_CACHE_VAL(egg_cv_var_tcl_version, [    AC_CACHE_VAL(egg_cv_var_tcl_version, [
846      egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", [$]3); print [$]3}'`      egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", [$]3); print [$]3}'`
# Line 796  then Line 855  then
855    fi    fi
856    
857    # Check Tcl's patch level (if avaliable)    # Check Tcl's patch level (if avaliable)
858      if test "$egg_tcl_changed" = "yes"; then
859        EGG_CACHE_UNSET(egg_cv_var_tcl_patch_level)
860      fi
861    AC_MSG_CHECKING(for Tcl patch level)    AC_MSG_CHECKING(for Tcl patch level)
862    AC_CACHE_VAL(egg_cv_var_tcl_patch_level, [    AC_CACHE_VAL(egg_cv_var_tcl_patch_level, [
863      eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", [$]3); print [$]3}'`"      eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | head -1 | $AWK '{gsub(/\"/, "", [$]3); print [$]3}'`"
# Line 818  configure: error: Line 880  configure: error:
880    
881    I can't find Tcl on this system.    I can't find Tcl on this system.
882    
883    Eggdrop now requires Tcl to compile.  If you already have Tcl    Eggdrop requires Tcl to compile.  If you already have Tcl installed
884    installed on this system, and I just wasn't looking in the right    on this system, and I just wasn't looking in the right place for it,
885    place for it, set the environment variables TCLLIB and TCLINC so    set the environment variables TCLLIB and TCLINC so I will know where
886    I will know where to find 'libtcl.a' (or 'libtcl.so') and 'tcl.h'    to find 'libtcl.a' (or 'libtcl.so') and 'tcl.h' (respectively). Then
887    (respectively).  Then run 'configure' again.    run 'configure' again.
888    
889    Read the README file if you don't know what Tcl is or how to get    Read the README file if you don't know what Tcl is or how to get it
890    it and install it.    and install it.
891    
892  EOF  EOF
893    exit 1    exit 1
# Line 892  dnl  EGG_TCL_CHECK_FREE() Line 954  dnl  EGG_TCL_CHECK_FREE()
954  dnl  dnl
955  AC_DEFUN(EGG_TCL_CHECK_FREE, [dnl  AC_DEFUN(EGG_TCL_CHECK_FREE, [dnl
956  # Check for Tcl_Free()  # Check for Tcl_Free()
957  AC_CACHE_CHECK([if Tcl library has Tcl_Free], [egg_cv_var_tcl_free], [  if test "$egg_tcl_changed" = "yes"; then
958      EGG_CACHE_UNSET(egg_cv_var_tcl_free)
959    fi
960    AC_CACHE_CHECK(if Tcl library has Tcl_Free, [egg_cv_var_tcl_free], [
961    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
962    LIBS="$TCL_TESTLIBS"    LIBS="$TCL_TESTLIBS"
963    cat > conftest.$ac_ext << EOF    cat > conftest.$ac_ext << EOF
# Line 929  dnl  EGG_TCL_CHECK_THREADS() Line 994  dnl  EGG_TCL_CHECK_THREADS()
994  dnl  dnl
995  AC_DEFUN(EGG_TCL_CHECK_THREADS, [dnl  AC_DEFUN(EGG_TCL_CHECK_THREADS, [dnl
996  # Check for TclpFinalizeThreadData()  # Check for TclpFinalizeThreadData()
997  AC_CACHE_CHECK([if Tcl library is multithreaded], [egg_cv_var_tcl_multithreaded], [  if test "$egg_tcl_changed" = "yes"; then
998      EGG_CACHE_UNSET(egg_cv_var_tcl_multithreaded)
999    fi
1000    AC_CACHE_CHECK(if Tcl library is multithreaded, egg_cv_var_tcl_multithreaded, [
1001    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1002    LIBS="$TCL_TESTLIBS"    LIBS="$TCL_TESTLIBS"
1003    cat > conftest.$ac_ext << EOF    cat > conftest.$ac_ext << EOF

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23