X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=configure.ac;h=056e94e20b3bf01f1faaa85358a5cb143d17c7ca;hp=e88952458ccae5eec45f8d2bcc5de5f8e77e8acc;hb=1f8f1e50d305948b3cec6e457e736e05c33a2209;hpb=3cdfbd27dfc8dd15619f127ae78bf0f71b27dd6d diff --git a/configure.ac b/configure.ac index e889524..056e94e 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,8 @@ dnl YAZ Toolkit, Index Data 1995-2007 dnl See the file LICENSE for details. -dnl $Id: configure.ac,v 1.74 2007-04-16 21:53:08 adam Exp $ +dnl $Id: configure.ac,v 1.84 2007-06-07 08:27:57 adam Exp $ AC_PREREQ(2.59) -AC_INIT([yaz],[2.1.99.3],[yaz-help@indexdata.dk]) +AC_INIT([yaz],[3.0.7],[yaz-help@indexdata.dk]) AC_CONFIG_SRCDIR(configure.ac) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([1.8]) @@ -295,7 +295,7 @@ if test "$enable_tcpd" -a "$enable_tcpd" != "no"; then CPPFLAGS="$CPPFLAGS -I$enable_tcpd/include" fi AC_MSG_CHECKING(for working tcpd.h) - LIBS="$LIBS -lwrap -lnsl" + LIBS="$LIBS -lwrap" AC_TRY_LINK([#include #include int allow_severity = LOG_INFO; @@ -340,8 +340,8 @@ dnl ------ POSIX Threads AC_ARG_ENABLE(threads, [ --disable-threads disable POSIX threads],[enable_threads=$enableval],[enable_threads=yes]) if test "$enable_threads" = "yes" -a "$HAVETHREADS" = "0"; then ACX_PTHREAD([ + OCFLAGS=$CFLAGS CFLAGS="$CFLAGS $PTHREAD_CFLAGS" - AC_DEFINE(YAZ_POSIX_THREADS) dnl unfortunately empty thread lib spec is problematic because dnl 'yaz-config --cflags' is not always passed to linker in dnl applications using YAZ (such as Zebra). @@ -356,8 +356,8 @@ if test "$enable_threads" = "yes" -a "$HAVETHREADS" = "0"; then done LIBS=$OLIBS fi - LIBS="$PTHREAD_LIBS $LIBS" - YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS $PTHREAD_CFLAGS -DYAZ_POSIX_THREADS=1" + CFLAGS=$OCFLAGS + PTHREAD_CFLAGS="$PTHREAD_CFLAGS -DYAZ_POSIX_THREADS=1" ]) fi