summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-06-05 23:25:29 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-06-05 23:25:29 (GMT)
commit956895ef4867f89f92321e21fa487d5fa27a5731 (patch)
tree7dea30b0e12d95f34321558456f8c405bcacdced /configure.in
parentbefd08fb80e0f4bfe138e6c9cee448e49cccf500 (diff)
downloadhdf5-956895ef4867f89f92321e21fa487d5fa27a5731.zip
hdf5-956895ef4867f89f92321e21fa487d5fa27a5731.tar.gz
hdf5-956895ef4867f89f92321e21fa487d5fa27a5731.tar.bz2
[svn-r2339] Fixed problem with enabling/disabling thread safe mode...
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in19
1 files changed, 12 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 049734c..a3dac53 100644
--- a/configure.in
+++ b/configure.in
@@ -711,8 +711,9 @@ dnl
AC_SUBST(PTHREAD)
PTHREAD=yes
-AC_ARG_WITH(pthread,[ --with-pthread=INC,LIB Use the Pthreads library],
- ,withval=no)
+AC_ARG_WITH(pthread,
+ [ --with-pthread=INC,LIB Use the Pthreads library],
+ ,withval=no)
case $withval in
yes)
AC_CHECK_HEADERS(pthread.h)
@@ -720,7 +721,7 @@ case $withval in
AC_CHECK_LIB(pthread, pthread_create,,unset PTHREAD)
else
CFLAGS="$CFLAGS -D_THREAD_SAFE"
- LDFLAGS="$LDFLAGS -pthread"
+ LDFLAGS="$LDFLAGS -pthread"
fi
;;
no)
@@ -748,13 +749,16 @@ case $withval in
fi
;;
esac
+
dnl ----------------------------------------------------------------------
dnl Enable thread-safe version of library. It requires pthread on.
dnl
-AC_MSG_CHECKING(for thread safe support);
+AC_MSG_CHECKING(for thread safe support)
AC_ARG_ENABLE(threadsafe,
- [ --enable-threadsafe Enable thread safe capability])
-case X-$enableval in
+ [ --enable-threadsafe Enable thread safe capability],
+ THREADSAFE=$enableval)
+
+case X-$THREADSAFE in
X-|X-no)
AC_MSG_RESULT(no)
;;
@@ -772,7 +776,8 @@ case X-$enableval in
AC_MSG_ERROR(\"$enableval\" is not a valid threadsafe type)
;;
esac
-if test X- != X-$THREADSAFE; then
+
+if test X-yes != X-$THREADSAFE; then
AC_DEFINE(HAVE_THREADSAFE)
fi