X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=configure.ac;h=365422c7866d289931d0b72650ebf149df70230a;hp=ae1c9f1adfb0c07c45f5689b38d8c5a6370a86db;hb=323805b6779bcf1befdc7cdd7f10c23b06885e0d;hpb=41068e0f9be6eb86801eb54cbb0acae2aa2683a4;ds=sidebyside diff --git a/configure.ac b/configure.ac index ae1c9f1..365422c7 100644 --- a/configure.ac +++ b/configure.ac @@ -8,7 +8,7 @@ m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']), AC_CONFIG_HEADERS(include/config.h) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_AUX_DIR([config]) -AM_INIT_AUTOMAKE([1.11.1 subdir-objects]) +AM_INIT_AUTOMAKE([1.9 subdir-objects]) dnl AC_SUBST([READLINE_LIBS]) AC_SUBST([YAZ_CONF_CFLAGS]) @@ -16,16 +16,18 @@ dnl ------ Checking programs AC_PROG_CC AC_PROG_CPP AC_CHECK_PROGS([YACC], 'bison -y') -test -z "$YACC" && AC_MSG_WARN([GNU bison not found]) +test -z "$YACC" -a ! -f src/cql.c && AC_MSG_ERROR([GNU Bison not found]) +test -z "$YACC" && AC_MSG_WARN([GNU Bison not found]) AC_CHECK_PROGS([TCLSH], [tclsh tclsh8.5 tclsh8.4 tclsh8.3 tclsh8.2], [tclsh]) AC_PROG_INSTALL AM_PROG_LIBTOOL +AM_PROG_CC_C_O AC_PATH_PROG([pkgconfigpath],[pkg-config],[NONE]) dnl YAZ_DOC dnl dnl -AC_CHECK_HEADERS([dirent.h fnmatch.h wchar.h locale.h langinfo.h pwd.h unistd.h sys/select.h sys/socket.h sys/stat.h sys/time.h sys/times.h sys/types.h sys/un.h sys/wait.h sys/prctl.h netdb.h arpa/inet.h netinet/tcp.h netinet/in_systm.h],[],[],[]) +AC_CHECK_HEADERS([dirent.h fnmatch.h wchar.h locale.h langinfo.h pwd.h unistd.h sys/select.h sys/socket.h sys/stat.h sys/time.h sys/times.h sys/types.h sys/un.h sys/wait.h sys/prctl.h netdb.h arpa/inet.h netinet/tcp.h netinet/in_systm.h execinfo.h],[],[],[]) AC_CHECK_HEADERS([net/if.h netinet/in.h netinet/if_ether.h],[],[],[ #if HAVE_SYS_TYPES_H #include @@ -130,23 +132,21 @@ AC_ARG_WITH([memcached], [ --with-memcached Memcached library], [memcach if test "$memcached" != "no" -a -n "$libgcryptversion" -a "$pkgconfigpath" != "NONE"; then AC_MSG_CHECKING([for libmemcached]) if $pkgconfigpath --cflags libmemcached >/dev/null 2>&1 ; then - if $pkgconfigpath --atleast-version 1.0 libmemcached; then + if $pkgconfigpath --atleast-version 0.40 libmemcached; then AC_MSG_RESULT([yes]) CFLAGS="$CFLAGS `$pkgconfigpath --cflags libmemcached`" MEMCACHED_LIBS="`$pkgconfigpath --libs libmemcached`" - AC_DEFINE([HAVE_LIBMEMCACHED_MEMCACHED_H],[1],[Define to 1 if memcached header]) - AC_DEFINE([HAVE_MEMCACHED_FUNC],[1],[Define to 1 if memcached function is defined]) - AC_DEFINE([HAVE_MEMCACHED_RETURN_T],[1],[Define to 1 if memcached_return_t is defined]) + AC_DEFINE([HAVE_LIBMEMCACHED],[1],[Define to 1 if memcached is enabled]) else - AC_MSG_RESULT([no. Version 1.0 required]) + AC_MSG_RESULT([no. Version 0.40 required]) if test "$memcached" != "default"; then - AC_MSG_ERROR([libmemcached libraries missing]) + AC_MSG_ERROR([libmemcached libraries missing]) fi fi else AC_MSG_RESULT([no]) if test "$memcached" != "default"; then - AC_MSG_ERROR([libmemcached libraries missing]) + AC_MSG_ERROR([libmemcached libraries missing]) fi fi fi