X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.in;h=b7469a70943b32dde8a0f824a7f86c7ccf32eb7f;hb=2e817711bcfc8076b2500ab298e281357ed50115;hp=8dcaa46bee2598e8d1c367a3ad47eeb0b68948a9;hpb=395e1d0a3cdda0339d5476abd0437b20cd5098a6;p=yaz-moved-to-github.git diff --git a/configure.in b/configure.in index 8dcaa46..b7469a7 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl YAZ Toolkit, Index Data 1994-2001 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.68 2002-03-25 15:12:25 adam Exp $ +dnl $Id: configure.in,v 1.70 2002-04-15 11:19:32 adam Exp $ AC_INIT(include/yaz/yaz-version.h) AM_INIT_AUTOMAKE(yaz, 1.8.7) dnl @@ -135,6 +135,15 @@ AC_CHECK_LIB(readline, readline, [READLINE_LIBS="$READLINE_LIBS -lreadline $READ AC_CHECK_LIB(history, add_history, [READLINE_LIBS="$READLINE_LIBS -lhistory"]) if test "$ac_cv_lib_readline_readline" = "yes"; then AC_CHECK_HEADERS(readline/readline.h readline/history.h) + OLDLIBS=$LIBS + LIBS="$LIBS $READLINE_LIBS" + AC_TRY_LINK([#include ],[ + static void f() + { + rl_attempted_completion_over = 0; + } + ],AC_DEFINE(HAVE_READLINE_COMPLETION_OVER)) + LIBS=$OLDLIBS fi dnl ------ various functions AC_CHECK_FUNCS(vsnprintf gettimeofday poll) @@ -215,7 +224,7 @@ if test "$enable_threads" = "yes" -a "$HAVETHREADS" = "0"; then thread_ok=yes,thread_ok=no) if test "$thread_ok" = "yes"; then AC_MSG_RESULT(yes) - LIBTHREAD=-lpthread + LIBTHREAD="-lpthread" CFLAGSTHREADS="-DYAZ_POSIX_THREADS=1 -D_REENTRANT" HAVETHREADS=1 else @@ -229,6 +238,7 @@ if test "$enable_threads" = "yes" -a "$HAVETHREADS" = "0"; then if test "$thread_ok" = "yes"; then AC_MSG_RESULT([yes,BSD]) CFLAGSTHREADS="-pthread -DYAZ_POSIX_THREADS=1 -D_REENTRANT" + LIBTHREAD="-pthread" HAVETHREADS=1 fi fi