/[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.29 by fabian, Fri Oct 27 19:33:28 2000 UTC revision 1.30 by guppy, Wed Nov 29 02:46:16 2000 UTC
# Line 983  fi Line 983  fi
983  ])dnl  ])dnl
984    
985    
986    dnl  EGG_TCL_ENABLE_THREADS()
987    dnl
988    AC_DEFUN(EGG_TCL_ENABLE_THREADS, [dnl
989    AC_ARG_ENABLE(tcl-threads,
990    [  --disable-tcl-threads   Disable threaded tcl support if detected. (Ignore this
991                              option unless you know what you are doing)],
992    enable_tcl_threads=$enableval,
993    enable_tcl_threads=yes)
994    ])dnl
995    
996    
997  dnl  EGG_TCL_CHECK_THREADS()  dnl  EGG_TCL_CHECK_THREADS()
998  dnl  dnl
999  AC_DEFUN(EGG_TCL_CHECK_THREADS, [dnl  AC_DEFUN(EGG_TCL_CHECK_THREADS, [dnl
1000  # Check for TclpFinalizeThreadData()  # Check for TclpFinalizeThreadData()
1001  if test "$egg_tcl_changed" = "yes"; then  if test "$egg_tcl_changed" = "yes"; then
1002    EGG_CACHE_UNSET(egg_cv_var_tcl_multithreaded)    EGG_CACHE_UNSET(egg_cv_var_tcl_threaded)
1003  fi  fi
1004  AC_CACHE_CHECK(if Tcl library is multithreaded, egg_cv_var_tcl_multithreaded, [  AC_CACHE_CHECK(if Tcl library is threaded, egg_cv_var_tcl_threaded, [
1005    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1006    LIBS="$TCL_TESTLIBS"    LIBS="$TCL_TESTLIBS"
1007    cat > conftest.$ac_ext << EOF    cat > conftest.$ac_ext << EOF
# Line 1005  EOF Line 1016  EOF
1016    if { (eval echo configure: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}    if { (eval echo configure: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}
1017    then    then
1018      rm -rf conftest*      rm -rf conftest*
1019      egg_cv_var_tcl_multithreaded=yes      egg_cv_var_tcl_threaded=yes
1020    else    else
1021      echo "configure: failed program was:" >&5      echo "configure: failed program was:" >&5
1022      cat conftest.$ac_ext >&5      cat conftest.$ac_ext >&5
1023      rm -rf conftest*      rm -rf conftest*
1024      egg_cv_var_tcl_multithreaded=no      egg_cv_var_tcl_threaded=no
1025    fi    fi
1026    rm -f conftest*    rm -f conftest*
1027    LIBS="$ac_save_LIBS"    LIBS="$ac_save_LIBS"
1028  ])  ])
1029    
1030  if test "x${egg_cv_var_tcl_multithreaded}" = "xyes"  if test "x${egg_cv_var_tcl_threaded}" = "xyes"
1031  then  then
1032      if test "x$enable_tcl_threads" = "xno"
1033      then
1034    
1035        cat << 'EOF' >&2
1036    configure: warning:
1037    
1038      You have disabled threads support on a system with a threaded Tcl library.
1039      Tcl features that rely on scheduled events may not function properly.
1040    
1041    EOF
1042      else
1043    AC_DEFINE(HAVE_TCL_THREADS)dnl    AC_DEFINE(HAVE_TCL_THREADS)dnl
1044      fi
1045    
1046    # Add -lpthread to $LIBS if we have it    # Add -lpthread to $LIBS if we have it
1047    if test "x${ac_cv_lib_pthread_pthread_mutex_init}" = "xyes"    if test "x${ac_cv_lib_pthread_pthread_mutex_init}" = "xyes"

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23