aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>2000-04-12 10:41:07 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2000-04-12 10:41:07 +0800
commit7dbd2430deb3ffd3f16e2e9570b3649df13aaa4c (patch)
tree2ddb10d58245863cf9c784b4db81bb5c3a4a0376
parent9bee8001c4940015b9c0177deaea1a6b0e99c061 (diff)
downloadgsoc2013-evolution-7dbd2430deb3ffd3f16e2e9570b3649df13aaa4c.tar
gsoc2013-evolution-7dbd2430deb3ffd3f16e2e9570b3649df13aaa4c.tar.gz
gsoc2013-evolution-7dbd2430deb3ffd3f16e2e9570b3649df13aaa4c.tar.bz2
gsoc2013-evolution-7dbd2430deb3ffd3f16e2e9570b3649df13aaa4c.tar.lz
gsoc2013-evolution-7dbd2430deb3ffd3f16e2e9570b3649df13aaa4c.tar.xz
gsoc2013-evolution-7dbd2430deb3ffd3f16e2e9570b3649df13aaa4c.tar.zst
gsoc2013-evolution-7dbd2430deb3ffd3f16e2e9570b3649df13aaa4c.zip
Properly use AC_ARG_WITH
2000-04-11 Miguel de Icaza <miguel@gnu.org> * configure.in (have_pthread): Properly use AC_ARG_WITH svn path=/trunk/; revision=2403
-rw-r--r--ChangeLog4
-rw-r--r--configure.in22
2 files changed, 21 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 30e65cdea0..398bb62722 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-04-11 Miguel de Icaza <miguel@gnu.org>
+
+ * configure.in (have_pthread): Properly use AC_ARG_WITH
+
2000-04-11 Chris Toshok <toshok@helixcode.com>
* wombat/Makefile.am (wombat_LDADD): add LDAP_LIBS here.
diff --git a/configure.in b/configure.in
index 8dbd3190c0..75ce24caed 100644
--- a/configure.in
+++ b/configure.in
@@ -109,13 +109,25 @@ dnl **************************************************
have_pthread=false
-AC_ARG_WITH(threads, [--with-threads include threads support],
- [GNOME_PTHREAD_CHECK])
+AC_ARG_WITH(threads, [--with-threads include threads support],[
+ if test x$withval = xyes; then
+ test_thread=true
+ else
+ test_thread=false
+ fi
+],[
+ test_thread=false
+])
-if test "x$PTHREAD_LIB" = "x" ; then
- have_pthread=false
+if $test_thread; then
+ GNOME_PTHREAD_CHECK
+ if test "x$PTHREAD_LIB" = "x" ; then
+ have_pthread=false
+ else
+ have_pthread=true
+ fi
else
- have_pthread=true
+ have_pthread=false
fi
AM_CONDITIONAL(ENABLE_THREADS, $have_pthread)