|
From: Carlo W. <li...@us...> - 2002-01-08 23:39:29
|
CVSROOT : /cvsroot/libcw
Module : src
Commit time: 2002-00-08 23:39:28 UTC
Modified files:
libcwd/configure.in
Log message:
AC_SEARCH_LIBS fails when the language is set to C++.
---------------------- diff included ----------------------
Index: src/libcwd/configure.in
diff -u src/libcwd/configure.in:1.93 src/libcwd/configure.in:1.94
--- src/libcwd/configure.in:1.93 Tue Jan 8 15:04:58 2002
+++ src/libcwd/configure.in Tue Jan 8 15:39:18 2002
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-AC_REVISION($Revision: 1.93 $)dnl
+AC_REVISION($Revision: 1.94 $)dnl
dnl General intialization of `autoconf' varaibles.
dnl Ensure that the directory specified with --srcdir was correct
@@ -340,7 +340,9 @@
dnl Check if we have POSIX threads
EXTRAOPTS="$EXTRAOPTS -pthread"
- CXXFLAGS="$DEBUGOPTS $EXTRAOPTS"
+ AC_LANG_SAVE
+ AC_LANG_C
+ CFLAGS="$DEBUGOPTS $EXTRAOPTS"
AC_SEARCH_LIBS(pthread_create, pthread,
[AC_CHECK_HEADER(pthread.h,
[CW_CONFIG_HAVE_PTHREADS=define],
@@ -356,7 +358,7 @@
* include posix threads by itself and I can't find -lpthread.
* Use --disable-libcwd-threading to compile a libcwd that is not thread safe.
])])
-
+ AC_LANG_RESTORE
CW_CONFIG_THREAD_SAFE=define
SAVE_LIBS="$LIBS"
LIBS="$LIBS $LIB_THREADS"
----------------------- End of diff -----------------------
|