Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 1da3642212ad045d197d3f8b1fd44284 > files > 3

db43-4.3.29-4mdv2008.0.src.rpm

--- db-4.3.21/dist/aclocal/mutex.ac.pthreadsmutexes	2004-07-13 19:05:30.000000000 +0200
+++ db-4.3.21/dist/aclocal/mutex.ac	2004-11-20 17:06:04.624074238 +0100
@@ -147,24 +147,26 @@
 #
 # If the user specified we use POSIX pthreads mutexes, and we fail to find the
 # full interface, try and configure for just intra-process support.
-if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
-	LIBS="$LIBS -lpthread"
-	AM_PTHREADS_SHARED("POSIX/pthreads/library")
-	LIBS="$orig_libs"
-fi
-if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
-	AM_PTHREADS_SHARED("POSIX/pthreads")
-fi
-if test "$db_cv_mutex" = "posix_only"; then
-	AM_PTHREADS_PRIVATE("POSIX/pthreads/private")
-fi
-if test "$db_cv_mutex" = "posix_only"; then
-	LIBS="$LIBS -lpthread"
-	AM_PTHREADS_PRIVATE("POSIX/pthreads/library/private")
-	LIBS="$orig_libs"
-fi
-if test "$db_cv_mutex" = "posix_only"; then
-	AC_MSG_ERROR([unable to find POSIX 1003.1 mutex interfaces])
+if test "$db_cv_pthreadsmutexes" = yes; then
+	if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
+		LIBS="$LIBS -lpthread"
+		AM_PTHREADS_SHARED("POSIX/pthreads/library")
+		LIBS="$orig_libs"
+	fi
+	if test "$db_cv_mutex" = no -o "$db_cv_mutex" = "posix_only"; then
+		AM_PTHREADS_SHARED("POSIX/pthreads")
+	fi
+	if test "$db_cv_mutex" = "posix_only"; then
+		AM_PTHREADS_PRIVATE("POSIX/pthreads/private")
+	fi
+	if test "$db_cv_mutex" = "posix_only"; then
+		LIBS="$LIBS -lpthread"
+		AM_PTHREADS_PRIVATE("POSIX/pthreads/library/private")
+		LIBS="$orig_libs"
+	fi
+	if test "$db_cv_mutex" = "posix_only"; then
+		AC_MSG_ERROR([unable to find POSIX 1003.1 mutex interfaces])
+	fi
 fi
 
 # UI threads: thr_XXX
--- db-4.3.21/dist/aclocal/options.ac.pthreadsmutexes	2004-06-10 19:10:22.000000000 +0200
+++ db-4.3.21/dist/aclocal/options.ac	2004-11-20 16:27:07.850452631 +0100
@@ -154,6 +154,16 @@
 	[db_cv_o_direct="$enable_o_direct"], [db_cv_o_direct="no"])
 AC_MSG_RESULT($db_cv_o_direct)
 
+AC_MSG_CHECKING(if --disable-pthreadsmutexes option specified)
+AC_ARG_ENABLE(pthreadsmutexes,
+	AC_HELP_STRING([--disable-pthreadsmutexes],
+	    [Do not use POSIX pthreads mutexes.]),, enableval="yes")
+db_cv_pthreadsmutexes="$enableval"
+case "$enableval" in
+ no) AC_MSG_RESULT(yes);;
+yes) AC_MSG_RESULT(no);;
+esac
+
 AC_MSG_CHECKING(if --enable-posixmutexes option specified)
 AC_ARG_ENABLE(posixmutexes,
 	[AC_HELP_STRING([--enable-posixmutexes],