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

CVS commit program cvs at parl.clemson.edu
Tue Sep 9 16:22:31 EDT 2008


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

Modified Files:
      Tag: directio-branch
	configure configure.in 
Log Message:
reverse merge of changes to HEAD since branch.  Includes small file changes.


Index: configure
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/configure,v
diff -p -u -r1.16 -r1.16.8.1
--- configure	4 Apr 2008 14:25:13 -0000	1.16
+++ configure	9 Sep 2008 20:22:30 -0000	1.16.8.1
@@ -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.18.8.1
--- configure.in	4 Apr 2008 14:25:13 -0000	1.18
+++ configure.in	9 Sep 2008 20:22:31 -0000	1.18.8.1
@@ -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