Changeset 668

Show
Ignore:
Timestamp:
12/08/07 04:16:24 (1 year ago)
Author:
dormando
Message:

Fix --disable-threads not to _enable_ them. (Tomash Brechko)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/configure.ac

    r623 r668  
    9696AC_SEARCH_LIBS(gethostbyname, nsl) 
    9797AC_SEARCH_LIBS(mallinfo, malloc) 
    98 AC_SEARCH_LIBS(pthread_create, pthread) 
    9998 
    10099AC_CHECK_FUNC(daemon,AC_DEFINE([HAVE_DAEMON],,[Define this if you have daemon()]),[AC_LIBOBJ(daemon)]) 
     
    161160dnl Check whether the user wants threads or not 
    162161AC_ARG_ENABLE(threads, 
    163   [AS_HELP_STRING([--enable-threads],[support multithreaded execution])], 
    164   [if test "$ac_cv_search_pthread_create" != "no"; then 
     162  [AS_HELP_STRING([--enable-threads],[support multithreaded execution])]) 
     163if test "x$enable_threads" == "xyes"; then 
     164  AC_SEARCH_LIBS(pthread_create, pthread) 
     165  if test "x$ac_cv_search_pthread_create" != "xno"; then 
    165166    AC_DEFINE([USE_THREADS],,[Define this if you want to use pthreads]) 
    166   else 
     167  else 
    167168    AC_MSG_ERROR([Can't enable threads without the POSIX thread library.]) 
    168    fi]) 
     169  fi 
     170fi 
    169171 
    170172AC_CHECK_FUNCS(mlockall)