don't bother using MODULE_* stuff any more, libtool should
authoraland <aland>
Tue, 8 Aug 2000 21:04:02 +0000 (21:04 +0000)
committeraland <aland>
Tue, 8 Aug 2000 21:04:02 +0000 (21:04 +0000)
take care of that.

error out if we're using threads, and there's not <pthread.h>

Make.inc.in
configure.in

index dc30523..7758449 100644 (file)
@@ -40,7 +40,3 @@ SBINDIR               = @sbindir@
 RADIR          = @radacctdir@
 
 BUILDDBM       = @BUILDDBM@
-
-MODULE_LIBS            = @MODULE_LIBS@
-MODULE_LDFLAGS         = @MODULE_LDFLAGS@
-STATIC_MODULES = @STATIC_MODULES@
index 08a2b70..3487952 100644 (file)
@@ -318,6 +318,11 @@ dnl If using pthreads, check for -lpthread (posix) or -lc_r (*BSD)
 PTHREADLIB=
 if test "$WITH_THREADS" = "yes"; then 
   AC_CHECK_HEADERS(pthread.h)
+
+  if text "X$ac_cv_header_pthread_h" = "X"; then
+    AC_MSG_ERROR("You are trying to use threads without a POSIX <pthread.h>")
+  fi
+
   AC_CHECK_LIB(pthread, pthread_create,
     PTHREADLIB="-lpthread"
   )
@@ -578,10 +583,6 @@ else
   AC_CHECK_FUNC(crypt, AC_DEFINE(HAVE_CRYPT))
 fi
 
-AC_SUBST(MODULE_LIBS)
-AC_SUBST(MODULE_CFLAGS)
-AC_SUBST(MODULE_LDFLAGS)
-
 dnl #############################################################
 dnl #
 dnl #  8. Checks for system services