[Pvfs2-cvs] commit by pcarns in pvfs2/test: configure configure.in

CVS commit program cvs at parl.clemson.edu
Wed Aug 6 11:53:58 EDT 2008


Update of /projects/cvsroot/pvfs2/test
In directory parlweb1:/tmp/cvs-serv21900

Modified Files:
	configure configure.in 
Log Message:
Add --disable-thread-safety option to configure script for test tree.  This
is required for test harnesses that use gen-locks.h directly to build
correctly if main source tree used --disable-thread-safety.


Index: configure
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/configure,v
diff -p -u -r1.16 -r1.17
--- configure	4 Apr 2008 14:25:13 -0000	1.16
+++ configure	6 Aug 2008 15:53:58 -0000	1.17
@@ -1264,6 +1264,7 @@ Optional Features:
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --enable-verbose-build  Enables full output during build process
+  --disable-thread-safety Disables thread safety in the client library
   --enable-strict         Turn on strict debugging with gcc
 
 Optional Packages:
@@ -4005,6 +4006,21 @@ echo "$as_me: error: --with-mpi must be 
 	LDFLAGS="${LDFLAGS} -L${withval}/lib"
 	BUILD_MPI="1"
     fi
+
+fi
+
+
+# Check whether --enable-thread-safety was given.
+if test "${enable_thread_safety+set}" = set; then
+  enableval=$enable_thread_safety; if test "x$enableval" = "xno" ; then
+    CFLAGS="$CFLAGS -D__GEN_NULL_LOCKING__"
+    { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+else
+     CFLAGS="$CFLAGS -D__GEN_POSIX_LOCKING__"
+    { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
 
 fi
 

Index: configure.in
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/configure.in,v
diff -p -u -r1.18 -r1.19
--- configure.in	4 Apr 2008 14:25:13 -0000	1.18
+++ configure.in	6 Aug 2008 15:53:58 -0000	1.19
@@ -96,6 +96,17 @@ AC_ARG_WITH(mpi, 
     fi
 )
 
+dnl a mechanism to turn off threads in the client library
+AC_ARG_ENABLE(thread-safety,
+[  --disable-thread-safety Disables thread safety in the client library],
+[if test "x$enableval" = "xno" ; then
+    CFLAGS="$CFLAGS -D__GEN_NULL_LOCKING__"
+    AC_MSG_RESULT(no)
+fi],
+[   CFLAGS="$CFLAGS -D__GEN_POSIX_LOCKING__"
+    AC_MSG_RESULT(yes) ]
+)
+
 dnl default paths:
 PVFS2_SRC_RELATIVE_TOP="${srcdir}/.."
 PVFS2_BUILD_RELATIVE_TOP=".."



More information about the Pvfs2-cvs mailing list