-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.180 2005-06-06 07:28:12 adam Exp $
AC_INIT(include/yaz/yaz-version.h)
-AM_INIT_AUTOMAKE(yaz, 2.0.31)
+AM_INIT_AUTOMAKE(yaz, 2.1.7)
AM_MAINTAINER_MODE
dnl
AC_SUBST(READLINE_LIBS)
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)
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)
])
fi
dnl ------ various functions
-AC_CHECK_FUNCS(vsnprintf gettimeofday poll strerror_r)
+AC_CHECK_FUNCS(vsnprintf gettimeofday poll strerror_r usleep)
if test "$ac_cv_func_poll" = "yes"; then
AC_CHECK_HEADERS(sys/poll.h)
fi
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