Date: Tuesday, January 16, 2007 @ 09:28:31
Author: csaba
Path: /cvsroot/carob/libmysequoia
Modified: configure.ac (1.21 -> 1.22)
Carob need the pthread library.
--------------+
configure.ac | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Index: libmysequoia/configure.ac
diff -u libmysequoia/configure.ac:1.21 libmysequoia/configure.ac:1.22
--- libmysequoia/configure.ac:1.21 Tue Jan 2 11:09:00 2007
+++ libmysequoia/configure.ac Tue Jan 16 09:28:31 2007
@@ -102,6 +102,9 @@
AC_SUBST(DOXYGEN)
+# Check for pthreads.
+AC_CHECK_LIB([pthread], [main],, AC_MSG_ERROR([pthread library not found.
Please install it.]))
+
# Check for Carob headers and library
AC_MSG_CHECKING([for Carob])
carob_header_dir="/usr/include/carob"
@@ -131,19 +134,16 @@
save_CXXFLAGS="$CXXFLAGS"
save_LIBS="$LIBS"
CXXFLAGS="-I$carob_header_dir"
-LIBS="-L$carob_lib_dir -lcarob"
+LIBS="-L$carob_lib_dir -lcarob -lpthread"
AC_TRY_LINK([#include <ConnectionParameters.hpp>],
[using namespace CarobNS; ControllerInfo ci; ],
,AC_MSG_ERROR([You need to install the Carob development
packages or use --with-carob-lib=DIR if the library is in an unusual place.]))
CXXFLAGS="$save_CXXFLAGS"
LIBS="$save_LIBS"
-CAROB_LDADD="-L$carob_lib_dir -lcarob"
+CAROB_LDADD="-L$carob_lib_dir -lcarob -lpthread"
AC_SUBST(CAROB_LDADD)
AC_MSG_RESULT([yes])
-# Check for pthreads.
-AC_CHECK_LIB([pthread], [main],, AC_MSG_ERROR([pthread library not found.
Please install it.]))
-
# Check for log4cxx headers and library
AC_MSG_CHECKING([for log4cxx headers])
log4cxx_header_dir="/usr/include"
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits