|
|
@@ -355,32 +355,21 @@ else
|
|
|
AC_CHECK_LIB(dns, gethostbyname)
|
|
|
AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
|
|
|
AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
|
|
|
- AC_CHECK_LIB(dl, dlopen)
|
|
|
- AC_CHECK_LIB(m, tan, EGG_MATH_LIB="-lm")
|
|
|
+# AC_CHECK_LIB(m, tan, EGG_MATH_LIB="-lm")
|
|
|
# This is needed for Tcl libraries compiled with thread support
|
|
|
- AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
|
|
|
- ac_cv_lib_pthread_pthread_mutex_init=yes
|
|
|
- ac_cv_lib_pthread="-lpthread"], [dnl
|
|
|
- AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
|
|
|
- ac_cv_lib_pthread_pthread_mutex_init=yes
|
|
|
- ac_cv_lib_pthread="-lpthread"], [dnl
|
|
|
- AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
|
|
|
- ac_cv_lib_pthread_pthread_mutex_init=yes
|
|
|
- ac_cv_lib_pthread="-lpthreads"], [dnl
|
|
|
- AC_CHECK_FUNC(pthread_mutex_init, [dnl
|
|
|
- ac_cv_lib_pthread_pthread_mutex_init=yes
|
|
|
- ac_cv_lib_pthread=""],
|
|
|
- ac_cv_lib_pthread_pthread_mutex_init=no)])])])
|
|
|
- if test "$SUNOS" = "yes"
|
|
|
- then
|
|
|
- # For suns without yp or something like that
|
|
|
- AC_CHECK_LIB(dl, main)
|
|
|
- else
|
|
|
- if test "$HPUX" = "yes"
|
|
|
- then
|
|
|
- AC_CHECK_LIB(dld, shl_load)
|
|
|
- fi
|
|
|
- fi
|
|
|
+# AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
|
|
|
+# ac_cv_lib_pthread_pthread_mutex_init=yes
|
|
|
+# ac_cv_lib_pthread="-lpthread"], [dnl
|
|
|
+# AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
|
|
|
+# ac_cv_lib_pthread_pthread_mutex_init=yes
|
|
|
+# ac_cv_lib_pthread="-lpthread"], [dnl
|
|
|
+# AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
|
|
|
+# ac_cv_lib_pthread_pthread_mutex_init=yes
|
|
|
+# ac_cv_lib_pthread="-lpthreads"], [dnl
|
|
|
+# AC_CHECK_FUNC(pthread_mutex_init, [dnl
|
|
|
+# ac_cv_lib_pthread_pthread_mutex_init=yes
|
|
|
+# ac_cv_lib_pthread=""],
|
|
|
+# ac_cv_lib_pthread_pthread_mutex_init=no)])])])
|
|
|
fi
|
|
|
])dnl
|
|
|
|
|
|
@@ -488,321 +477,6 @@ fi
|
|
|
])dnl
|
|
|
|
|
|
|
|
|
-dnl EGG_TCL_ARG_WITH()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_ARG_WITH, [dnl
|
|
|
-# oohh new configure --variables for those with multiple Tcl libs
|
|
|
-AC_ARG_WITH(tcllib, [ --with-tcllib=PATH full path to Tcl library], tcllibname="$withval")
|
|
|
-AC_ARG_WITH(tclinc, [ --with-tclinc=PATH full path to Tcl header], tclincname="$withval")
|
|
|
-
|
|
|
-WARN=0
|
|
|
-# Make sure either both or neither $tcllibname and $tclincname are set
|
|
|
-if test ! "${tcllibname-x}" = "x"
|
|
|
-then
|
|
|
- if test "${tclincname-x}" = "x"
|
|
|
- then
|
|
|
- WARN=1
|
|
|
- tcllibname=""
|
|
|
- TCLLIB=""
|
|
|
- TCLINC=""
|
|
|
- fi
|
|
|
-else
|
|
|
- if test ! "${tclincname-x}" = "x"
|
|
|
- then
|
|
|
- WARN=1
|
|
|
- tclincname=""
|
|
|
- TCLLIB=""
|
|
|
- TCLINC=""
|
|
|
- fi
|
|
|
-fi
|
|
|
-if test "$WARN" = 1
|
|
|
-then
|
|
|
- cat << 'EOF' >&2
|
|
|
-configure: warning:
|
|
|
-
|
|
|
- You must specify both --with-tcllib and --with-tclinc for them to work.
|
|
|
- configure will now attempt to autodetect both the Tcl library and header...
|
|
|
-
|
|
|
-EOF
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_ENV()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_ENV, [dnl
|
|
|
-WARN=0
|
|
|
-# Make sure either both or neither $TCLLIB and $TCLINC are set
|
|
|
-if test ! "${TCLLIB-x}" = "x"
|
|
|
-then
|
|
|
- if test "${TCLINC-x}" = "x"
|
|
|
- then
|
|
|
- WARN=1
|
|
|
- WVAR1=TCLLIB
|
|
|
- WVAR2=TCLINC
|
|
|
- TCLLIB=""
|
|
|
- fi
|
|
|
-else
|
|
|
- if test ! "${TCLINC-x}" = "x"
|
|
|
- then
|
|
|
- WARN=1
|
|
|
- WVAR1=TCLINC
|
|
|
- WVAR2=TCLLIB
|
|
|
- TCLINC=""
|
|
|
- fi
|
|
|
-fi
|
|
|
-if test "$WARN" = 1
|
|
|
-then
|
|
|
- cat << EOF >&2
|
|
|
-configure: warning:
|
|
|
-
|
|
|
- Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
|
|
|
- Please set both TCLLIB and TCLINC correctly if you wish to use them.
|
|
|
- configure will now attempt to autodetect both the Tcl library and header...
|
|
|
-
|
|
|
-EOF
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_WITH_TCLLIB()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_WITH_TCLLIB, [dnl
|
|
|
-# Look for Tcl library: if $tcllibname is set, check there first
|
|
|
-if test ! "${tcllibname-x}" = "x"
|
|
|
-then
|
|
|
- if test -f "$tcllibname" && test -r "$tcllibname"
|
|
|
- then
|
|
|
- TCLLIB=`echo $tcllibname | sed 's%/[[^/]][[^/]]*$%%'`
|
|
|
- TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
|
|
|
- TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split([$]1, i, "."); print i[[j]]}'`"
|
|
|
- TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
|
|
|
- else
|
|
|
- cat << EOF >&2
|
|
|
-configure: warning:
|
|
|
-
|
|
|
- The file '$tcllibname' given to option --with-tcllib is not valid.
|
|
|
- configure will now attempt to autodetect both the Tcl library and header...
|
|
|
-
|
|
|
-EOF
|
|
|
- tcllibname=""
|
|
|
- tclincname=""
|
|
|
- TCLLIB=""
|
|
|
- TCLLIBFN=""
|
|
|
- TCLINC=""
|
|
|
- TCLINCFN=""
|
|
|
- fi
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_WITH_TCLINC()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_WITH_TCLINC, [dnl
|
|
|
-# Look for Tcl header: if $tclincname is set, check there first
|
|
|
-if test ! "${tclincname-x}" = "x"
|
|
|
-then
|
|
|
- if test -f "$tclincname" && test -r "$tclincname"
|
|
|
- then
|
|
|
- TCLINC=`echo $tclincname | sed 's%/[[^/]][[^/]]*$%%'`
|
|
|
- TCLINCFN=`$BASENAME $tclincname`
|
|
|
- else
|
|
|
- cat << EOF >&2
|
|
|
-configure: warning:
|
|
|
-
|
|
|
- The file '$tclincname' given to option --with-tclinc is not valid.
|
|
|
- configure will now attempt to autodetect both the Tcl library and header...
|
|
|
-
|
|
|
-EOF
|
|
|
- tcllibname=""
|
|
|
- tclincname=""
|
|
|
- TCLLIB=""
|
|
|
- TCLLIBFN=""
|
|
|
- TCLINC=""
|
|
|
- TCLINCFN=""
|
|
|
- fi
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_FIND_LIBRARY()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_FIND_LIBRARY, [dnl
|
|
|
-# Look for Tcl library: if $TCLLIB is set, check there first
|
|
|
-if test "${TCLLIBFN-x}" = "x"
|
|
|
-then
|
|
|
- if test ! "${TCLLIB-x}" = "x"
|
|
|
- then
|
|
|
- if test -d "$TCLLIB"
|
|
|
- then
|
|
|
- for tcllibfns in $tcllibnames
|
|
|
- do
|
|
|
- for tcllibext in $tcllibextensions
|
|
|
- do
|
|
|
- if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
|
|
|
- then
|
|
|
- TCLLIBFN="$tcllibfns$tcllibext"
|
|
|
- TCLLIBEXT="$tcllibext"
|
|
|
- TCLLIBFNS="$tcllibfns"
|
|
|
- break 2
|
|
|
- fi
|
|
|
- done
|
|
|
- done
|
|
|
- fi
|
|
|
- if test "${TCLLIBFN-x}" = "x"
|
|
|
- then
|
|
|
- cat << 'EOF' >&2
|
|
|
-configure: warning:
|
|
|
-
|
|
|
- Environment variable TCLLIB was set, but incorrect.
|
|
|
- Please set both TCLLIB and TCLINC correctly if you wish to use them.
|
|
|
- configure will now attempt to autodetect both the Tcl library and header...
|
|
|
-
|
|
|
-EOF
|
|
|
- TCLLIB=""
|
|
|
- TCLLIBFN=""
|
|
|
- TCLINC=""
|
|
|
- TCLINCFN=""
|
|
|
- fi
|
|
|
- fi
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_FIND_HEADER()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_FIND_HEADER, [dnl
|
|
|
-# Look for Tcl header: if $TCLINC is set, check there first
|
|
|
-if test "${TCLINCFN-x}" = "x"
|
|
|
-then
|
|
|
- if test ! "${TCLINC-x}" = "x"
|
|
|
- then
|
|
|
- if test -d "$TCLINC"
|
|
|
- then
|
|
|
- for tclheaderfn in $tclheadernames
|
|
|
- do
|
|
|
- if test -r "$TCLINC/$tclheaderfn"
|
|
|
- then
|
|
|
- TCLINCFN="$tclheaderfn"
|
|
|
- break
|
|
|
- fi
|
|
|
- done
|
|
|
- fi
|
|
|
- if test "${TCLINCFN-x}" = "x"
|
|
|
- then
|
|
|
- cat << 'EOF' >&2
|
|
|
-configure: warning:
|
|
|
-
|
|
|
- Environment variable TCLINC was set, but incorrect.
|
|
|
- Please set both TCLLIB and TCLINC correctly if you wish to use them.
|
|
|
- configure will now attempt to autodetect both the Tcl library and header...
|
|
|
-
|
|
|
-EOF
|
|
|
- TCLLIB=""
|
|
|
- TCLLIBFN=""
|
|
|
- TCLINC=""
|
|
|
- TCLINCFN=""
|
|
|
- fi
|
|
|
- fi
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_CHECK_LIBRARY()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_CHECK_LIBRARY, [dnl
|
|
|
-AC_MSG_CHECKING(for Tcl library)
|
|
|
-
|
|
|
-# Attempt autodetect for $TCLLIBFN if it's not set
|
|
|
-if test ! "${TCLLIBFN-x}" = "x"
|
|
|
-then
|
|
|
- AC_MSG_RESULT(using $TCLLIB/lib$TCLLIBFN)
|
|
|
-else
|
|
|
- for tcllibfns in $tcllibnames
|
|
|
- do
|
|
|
- for tcllibext in $tcllibextensions
|
|
|
- do
|
|
|
- for tcllibpath in $tcllibpaths
|
|
|
- do
|
|
|
- if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
|
|
|
- then
|
|
|
- AC_MSG_RESULT(found $tcllibpath/lib$tcllibfns$tcllibext)
|
|
|
- TCLLIB="$tcllibpath"
|
|
|
- TCLLIBFN="$tcllibfns$tcllibext"
|
|
|
- TCLLIBEXT="$tcllibext"
|
|
|
- TCLLIBFNS="$tcllibfns"
|
|
|
- break 3
|
|
|
- fi
|
|
|
- done
|
|
|
- done
|
|
|
- done
|
|
|
-fi
|
|
|
-
|
|
|
-# Show if $TCLLIBFN wasn't found
|
|
|
-if test "${TCLLIBFN-x}" = "x"
|
|
|
-then
|
|
|
- AC_MSG_RESULT(not found)
|
|
|
-fi
|
|
|
-AC_SUBST(TCLLIB)dnl
|
|
|
-AC_SUBST(TCLLIBFN)dnl
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_CHECK_HEADER()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_CHECK_HEADER, [dnl
|
|
|
-AC_MSG_CHECKING(for Tcl header)
|
|
|
-
|
|
|
-# Attempt autodetect for $TCLINCFN if it's not set
|
|
|
-if test ! "${TCLINCFN-x}" = "x"
|
|
|
-then
|
|
|
- AC_MSG_RESULT(using $TCLINC/$TCLINCFN)
|
|
|
-else
|
|
|
- for tclheaderpath in $tclheaderpaths
|
|
|
- do
|
|
|
- for tclheaderfn in $tclheadernames
|
|
|
- do
|
|
|
- if test -r "$tclheaderpath/$tclheaderfn"
|
|
|
- then
|
|
|
- AC_MSG_RESULT(found $tclheaderpath/$tclheaderfn)
|
|
|
- TCLINC="$tclheaderpath"
|
|
|
- TCLINCFN="$tclheaderfn"
|
|
|
- break 2
|
|
|
- fi
|
|
|
- done
|
|
|
- done
|
|
|
- # FreeBSD hack ...
|
|
|
- if test "${TCLINCFN-x}" = "x"
|
|
|
- then
|
|
|
- for tcllibfns in $tcllibnames
|
|
|
- do
|
|
|
- for tclheaderpath in $tclheaderpaths
|
|
|
- do
|
|
|
- for tclheaderfn in $tclheadernames
|
|
|
- do
|
|
|
- if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
|
|
|
- then
|
|
|
- AC_MSG_RESULT(found $tclheaderpath/$tcllibfns/$tclheaderfn)
|
|
|
- TCLINC="$tclheaderpath/$tcllibfns"
|
|
|
- TCLINCFN="$tclheaderfn"
|
|
|
- break 3
|
|
|
- fi
|
|
|
- done
|
|
|
- done
|
|
|
- done
|
|
|
- fi
|
|
|
-fi
|
|
|
-
|
|
|
-# Show if $TCLINCFN wasn't found
|
|
|
-if test "${TCLINCFN-x}" = "x"
|
|
|
-then
|
|
|
- AC_MSG_RESULT(not found)
|
|
|
-fi
|
|
|
-AC_SUBST(TCLINC)dnl
|
|
|
-AC_SUBST(TCLINCFN)dnl
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
dnl EGG_CACHE_UNSET(CACHE-ID)
|
|
|
dnl
|
|
|
dnl Unsets a certain cache item. Typically called before using
|
|
|
@@ -812,234 +486,6 @@ AC_DEFUN(EGG_CACHE_UNSET, [dnl
|
|
|
])
|
|
|
|
|
|
|
|
|
-dnl EGG_TCL_DETECT_CHANGE()
|
|
|
-dnl
|
|
|
-dnl Detect whether the Tcl system has changed since our last
|
|
|
-dnl configure run. Set egg_tcl_changed accordingly.
|
|
|
-dnl
|
|
|
-dnl Tcl related feature and version checks should re-run their
|
|
|
-dnl checks as soon as egg_tcl_changed is set to "yes".
|
|
|
-AC_DEFUN(EGG_TCL_DETECT_CHANGE, [dnl
|
|
|
- AC_MSG_CHECKING(whether the Tcl system has changed)
|
|
|
- egg_tcl_changed=yes
|
|
|
- egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
|
|
|
- if test ! "$egg_tcl_id" = ":::"
|
|
|
- then
|
|
|
- egg_tcl_cached=yes
|
|
|
- AC_CACHE_VAL(egg_cv_var_tcl_id, [dnl
|
|
|
- egg_cv_var_tcl_id="$egg_tcl_id"
|
|
|
- egg_tcl_cached=no
|
|
|
- ])
|
|
|
- if test "$egg_tcl_cached" = "yes"
|
|
|
- then
|
|
|
- if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
|
|
|
- then
|
|
|
- egg_tcl_changed=no
|
|
|
- else
|
|
|
- egg_cv_var_tcl_id="$egg_tcl_id"
|
|
|
- fi
|
|
|
- fi
|
|
|
- fi
|
|
|
- if test "$egg_tcl_changed" = "yes"
|
|
|
- then
|
|
|
- AC_MSG_RESULT(yes)
|
|
|
- else
|
|
|
- AC_MSG_RESULT(no)
|
|
|
- fi
|
|
|
-])
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_CHECK_VERSION()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_CHECK_VERSION, [dnl
|
|
|
-# Both TCLLIBFN & TCLINCFN must be set, or we bail
|
|
|
-TCL_FOUND=0
|
|
|
-if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
|
|
|
-then
|
|
|
- TCL_FOUND=1
|
|
|
-
|
|
|
- # Check Tcl's version
|
|
|
- if test "$egg_tcl_changed" = "yes"
|
|
|
- then
|
|
|
- EGG_CACHE_UNSET(egg_cv_var_tcl_version)
|
|
|
- fi
|
|
|
- AC_MSG_CHECKING(for Tcl version)
|
|
|
- AC_CACHE_VAL(egg_cv_var_tcl_version, [dnl
|
|
|
- egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", [$]3); print [$]3}'`
|
|
|
- ])
|
|
|
-
|
|
|
- if test ! "${egg_cv_var_tcl_version-x}" = "x"
|
|
|
- then
|
|
|
- AC_MSG_RESULT($egg_cv_var_tcl_version)
|
|
|
- else
|
|
|
- AC_MSG_RESULT(not found)
|
|
|
- TCL_FOUND=0
|
|
|
- fi
|
|
|
-
|
|
|
- # Check Tcl's patch level (if available)
|
|
|
- if test "$egg_tcl_changed" = "yes"
|
|
|
- then
|
|
|
- EGG_CACHE_UNSET(egg_cv_var_tcl_patch_level)
|
|
|
- fi
|
|
|
- AC_MSG_CHECKING(for Tcl patch level)
|
|
|
- AC_CACHE_VAL(egg_cv_var_tcl_patch_level, [dnl
|
|
|
- eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", [$]3); print [$]3}'`"
|
|
|
- ])
|
|
|
-
|
|
|
- if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
|
|
|
- then
|
|
|
- AC_MSG_RESULT($egg_cv_var_tcl_patch_level)
|
|
|
- else
|
|
|
- egg_cv_var_tcl_patch_level="unknown"
|
|
|
- AC_MSG_RESULT(unknown)
|
|
|
- fi
|
|
|
-fi
|
|
|
-
|
|
|
-# Check if we found Tcl's version
|
|
|
-if test "$TCL_FOUND" = 0
|
|
|
-then
|
|
|
- cat << 'EOF' >&2
|
|
|
-configure: error:
|
|
|
-
|
|
|
- I can't find Tcl on this system.
|
|
|
-
|
|
|
- The download website is at:
|
|
|
- http://www.tcl.tk/software/tcltk/download84.html
|
|
|
- A nice direct link for the tarball is:
|
|
|
- http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
|
|
|
-
|
|
|
- OR
|
|
|
-
|
|
|
- Just type: ./build -T
|
|
|
-
|
|
|
-EOF
|
|
|
- exit 1
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_CHECK_PRE80()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_CHECK_PRE80, [dnl
|
|
|
-# Is this version of Tcl too old for us to use ?
|
|
|
-TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split([$]1, i, "."); if (i[[1]] < 8) print "yes"; else print "no"}'`
|
|
|
-if test "$TCL_VER_PRE80" = "yes"
|
|
|
-then
|
|
|
- cat << EOF >&2
|
|
|
-configure: error:
|
|
|
-
|
|
|
- Your Tcl version is much too old for Eggdrop to use.
|
|
|
- I suggest you download and compile a more recent version.
|
|
|
- The most reliable current version is $tclrecommendver and
|
|
|
- can be downloaded from $tclrecommendsite
|
|
|
-
|
|
|
-EOF
|
|
|
- exit 1
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_TESTLIBS()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_TESTLIBS, [dnl
|
|
|
-# Set variables for Tcl library tests
|
|
|
-TCL_TEST_LIB="$TCLLIBFNS"
|
|
|
-TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
|
|
|
-
|
|
|
-if test ! "${ac_cv_lib_pthread-x}" = "x"
|
|
|
-then
|
|
|
- TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_CHECK_FREE()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_CHECK_FREE, [dnl
|
|
|
-if test "$egg_tcl_changed" = "yes"
|
|
|
-then
|
|
|
- EGG_CACHE_UNSET(egg_cv_var_tcl_free)
|
|
|
-fi
|
|
|
-
|
|
|
-# Check for Tcl_Free()
|
|
|
-AC_CHECK_LIB($TCL_TEST_LIB, Tcl_Free, egg_cv_var_tcl_free="yes", egg_cv_var_tcl_free="no", $TCL_TEST_OTHERLIBS)
|
|
|
-
|
|
|
-if test "$egg_cv_var_tcl_free" = "yes"
|
|
|
-then
|
|
|
- AC_DEFINE(HAVE_TCL_FREE, 1, [Define for Tcl that has Tcl_Free() (7.5p1 and later)])dnl
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_CHECK_THREADS()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_CHECK_THREADS, [dnl
|
|
|
-if test "$egg_tcl_changed" = "yes"
|
|
|
-then
|
|
|
- EGG_CACHE_UNSET(egg_cv_var_tcl_threaded)
|
|
|
-fi
|
|
|
-
|
|
|
-# Check for TclpFinalizeThreadData()
|
|
|
-AC_CHECK_LIB($TCL_TEST_LIB, TclpFinalizeThreadData, egg_cv_var_tcl_threaded="yes", egg_cv_var_tcl_threaded="no", $TCL_TEST_OTHERLIBS)
|
|
|
-enable_tcl_threads=no
|
|
|
-if test "$egg_cv_var_tcl_threaded" = "yes"
|
|
|
-then
|
|
|
- if test "$enable_tcl_threads" = "no"
|
|
|
- then
|
|
|
-
|
|
|
- cat << 'EOF' >&2
|
|
|
-configure: warning:
|
|
|
-
|
|
|
- You have disabled threads support on a system with a threaded Tcl library.
|
|
|
- Tcl features that rely on scheduled events may not function properly.
|
|
|
-
|
|
|
-EOF
|
|
|
- fi
|
|
|
-
|
|
|
- # Add pthread library to $LIBS if we need it
|
|
|
- if test ! "${ac_cv_lib_pthread-x}" = "x"
|
|
|
- then
|
|
|
- LIBS="$ac_cv_lib_pthread $LIBS"
|
|
|
- fi
|
|
|
-fi
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
-dnl EGG_TCL_LIB_REQS()
|
|
|
-dnl
|
|
|
-AC_DEFUN(EGG_TCL_LIB_REQS, [dnl
|
|
|
-if test "$EGG_CYGWIN" = "yes"
|
|
|
-then
|
|
|
- TCL_REQS="$TCLLIB/lib$TCLLIBFN"
|
|
|
- TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
|
|
|
-else
|
|
|
- if test ! "$TCLLIBEXT" = ".a"
|
|
|
- then
|
|
|
- cat << 'EOF' >&2
|
|
|
-configure: warning:
|
|
|
-
|
|
|
- Your Tcl library is not compiled statically.
|
|
|
- You will need to compile Tcl statically to successfully compile wraith.
|
|
|
-
|
|
|
-EOF
|
|
|
- exit 1
|
|
|
- else
|
|
|
- # Was the --with-tcllib option given ?
|
|
|
- if test ! "${tcllibname-x}" = "x"
|
|
|
- then
|
|
|
- TCL_REQS="$TCLLIB/lib$TCLLIBFN"
|
|
|
- TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
|
|
|
- else
|
|
|
- TCL_REQS="$TCLLIB/lib$TCLLIBFN"
|
|
|
- TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
|
|
|
- fi
|
|
|
- fi
|
|
|
-fi
|
|
|
-AC_SUBST(TCL_REQS)dnl
|
|
|
-AC_SUBST(TCL_LIBS)dnl
|
|
|
-])dnl
|
|
|
-
|
|
|
-
|
|
|
dnl EGG_SUBST_VERSION()
|
|
|
dnl
|
|
|
AC_DEFUN(EGG_SUBST_VERSION, [dnl
|
|
|
@@ -1103,25 +549,6 @@ m4_define(EGG_REPLACE_IF_CHANGED,
|
|
|
[[$3]])
|
|
|
])
|
|
|
|
|
|
-dnl EGG_TCL_LUSH()
|
|
|
-AC_DEFUN([EGG_TCL_LUSH],
|
|
|
-[
|
|
|
- EGG_REPLACE_IF_CHANGED(lush.h,
|
|
|
- [
|
|
|
- cat > conftest.out << EOF
|
|
|
-
|
|
|
-/* Ignore me but do not erase me. I am a kludge. */
|
|
|
-
|
|
|
-#include "${egg_tclinc}/${egg_tclincfn}"
|
|
|
-
|
|
|
-EOF
|
|
|
- ], [
|
|
|
- egg_tclinc="$TCLINC"
|
|
|
- egg_tclincfn="$TCLINCFN"
|
|
|
- ])
|
|
|
-])
|
|
|
-
|
|
|
-
|
|
|
dnl EGG_SAVE_PARAMETERS()
|
|
|
dnl
|
|
|
AC_DEFUN(EGG_SAVE_PARAMETERS, [dnl
|