X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.in;h=0d0f1c39eef877715555723e5a43a5fe8269f2e9;hb=43a7aff23f364fd3fac6e9746c53cda01be13738;hp=d22d9527070c222c5c32e17ac2c64943be9290ee;hpb=f64aa61c61bf8bf851d7b66a5fc137669dc77452;p=yaz-moved-to-github.git diff --git a/configure.in b/configure.in index d22d952..0d0f1c3 100644 --- a/configure.in +++ b/configure.in @@ -1,8 +1,8 @@ -dnl YAZ Toolkit, Index Data 1994-2004 +dnl YAZ Toolkit, Index Data 1994-2005 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.166 2005-01-08 01:20:18 adam Exp $ +dnl $Id: configure.in,v 1.183 2005-06-23 13:09:42 adam Exp $ AC_INIT(include/yaz/yaz-version.h) -AM_INIT_AUTOMAKE(yaz, 2.0.31) +AM_INIT_AUTOMAKE(yaz, 2.1.9) AM_MAINTAINER_MODE dnl AC_SUBST(READLINE_LIBS) @@ -21,7 +21,7 @@ YAZ_DOC dnl dnl dnl ------ Headers -AC_CHECK_HEADERS(fnmatch.h wchar.h locale.h langinfo.h) +AC_CHECK_HEADERS(dirent.h fnmatch.h wchar.h locale.h langinfo.h pwd.h sys/poll.h sys/select.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/un.h sys/wait.h unistd.h) AC_HEADER_STDC if test "$ac_cv_header_stdc" = "no"; then AC_MSG_WARN(Your system doesn't seem to support ANSI C) @@ -40,7 +40,7 @@ if test "$checkBoth" = "1"; then LIBS="$LIBS -lsocket -lnsl" AC_CHECK_FUNC(accept, , [LIBS=$oldLibs]) fi -AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) +AC_CHECK_FUNC(gethostbyname, ,[AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])]) dnl dnl ------ OpenSSL AC_SUBST(SSL_CFLAGS) @@ -160,7 +160,7 @@ if test "$with_iconv" != "no"; then ]) fi dnl ------ various functions -AC_CHECK_FUNCS(vsnprintf gettimeofday poll strerror_r) +AC_CHECK_FUNCS(vsnprintf gettimeofday poll strerror_r usleep fopen64) if test "$ac_cv_func_poll" = "yes"; then AC_CHECK_HEADERS(sys/poll.h) fi @@ -331,8 +331,11 @@ if test "$xml2dir" != "no"; then AC_DEFINE(HAVE_XML2) else AC_MSG_RESULT([Not found]) - if test "$xml2dir" != "default"; then - AC_MSG_ERROR([libXML2 development libraries missing]) + if test "$xml2dir" = "default"; then + AC_MSG_WARN([Libxml2 development libraries not found.]) + AC_MSG_WARN([YAZ will NOT support SRW/SRU.]) + else + AC_MSG_ERROR([libXML2 development libraries not found.]) fi fi fi