X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.in;h=901096bbe74597305c6ccc82069f9c610fe88209;hb=370c346822ae752b601cbddc6a5fbf01df08caff;hp=fae5abae3f925a8c9e0cd273c2563bf2d2285ec4;hpb=dfaf449760014172f167c413437cd57e2eb5c854;p=yaz-moved-to-github.git diff --git a/configure.in b/configure.in index fae5aba..901096b 100644 --- a/configure.in +++ b/configure.in @@ -1,8 +1,8 @@ dnl YAZ Toolkit, Index Data 1994-2004 dnl See the file LICENSE for details. -dnl $Id: configure.in,v 1.143 2004-05-13 13:11:24 adam Exp $ +dnl $Id: configure.in,v 1.154 2004-10-01 13:05:09 adam Exp $ AC_INIT(include/yaz/yaz-version.h) -AM_INIT_AUTOMAKE(yaz, 2.0.20) +AM_INIT_AUTOMAKE(yaz, 2.0.26) AM_MAINTAINER_MODE dnl AC_SUBST(READLINE_LIBS) @@ -15,7 +15,7 @@ test -z "$YACC" && AC_MSG_WARN([GNU bison not found]) AC_PROG_INSTALL AM_DISABLE_SHARED AM_PROG_LIBTOOL -AC_PATH_PROG(pkgconfig, pkg-config, NONE) +AC_PATH_PROG(pkgconfigpath, pkg-config, NONE) dnl YAZ_DOC dnl @@ -34,14 +34,14 @@ AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"])) dnl dnl ------ OpenSSL openssl=no -AC_ARG_WITH(openssl, [ --with-openssl[=PREFIX] OpenSSL library in PREFIX], [openssl=$withval]) +AC_ARG_WITH(openssl, [ --with-openssl[=PREFIX] OpenSSL library in PREFIX], [openssl=$withval]) USE_SSL=0 SSL_CFLAGS="" SSL_LIBPATH="" if test "$openssl" != "no"; then sslver=no if test "$openssl" != "yes"; then - if test "$pkgconfig" != "NONE"; then + if test -x $openssl/bin/pkg-config; then if $openssl/bin/pkg-config --exists openssl; then SSL_CFLAGS=`$openssl/bin/pkg-config --cflags openssl` LIBS="$LIBS `$openssl/bin/pkg-config --libs openssl`" @@ -53,11 +53,11 @@ if test "$openssl" != "no"; then SSL_LIBPATH="-L$openssl/lib" fi else - if test "$pkgconfig" != "NONE"; then - if $pkgconfig --exists openssl; then - SSL_CFLAGS=`$pkgconfig --cflags openssl` - LIBS="$LIBS `$pkgconfig --libs openssl`" - sslver=`$pkgconfig --modversion openssl` + if test "$pkgconfigpath" != "NONE"; then + if $pkgconfigpath --exists openssl; then + SSL_CFLAGS=`$pkgconfigpath --cflags openssl` + LIBS="$LIBS `$pkgconfigpath --libs openssl`" + sslver=`$pkgconfigpath --modversion openssl` fi fi if test "$sslver" = "no"; then @@ -103,24 +103,18 @@ if test "$ac_cv_lib_readline_readline" = "yes"; then #include #include ],[ - static void f() - { rl_attempted_completion_over = 0; - } ],AC_DEFINE(HAVE_READLINE_COMPLETION_OVER)) AC_TRY_LINK([ #include #include ],[ - static void f() - { rl_completion_matches (0, 0); - } - ],AC_DEFINE(HAVE_READLINE_RL_COMPLETION_MATCHES)) + ],[AC_DEFINE(HAVE_READLINE_RL_COMPLETION_MATCHES)]) LIBS=$xLIBS fi dnl ------ iconv -AC_ARG_WITH(iconv, [ --with-iconv[=PREFIX] iconv library in PREFIX]) +AC_ARG_WITH(iconv, [ --with-iconv[=PREFIX] iconv library in PREFIX]) if test "$with_iconv" != "no"; then AC_MSG_CHECKING(for iconv) oldLIBS="$LIBS" @@ -132,7 +126,7 @@ if test "$with_iconv" != "no"; then AC_TRY_LINK([ #include ],[ - static void f() {iconv_t t = iconv_open("", ""); } + iconv_t t = iconv_open("", ""); ],[ AC_DEFINE(HAVE_ICONV_H) AC_MSG_RESULT(yes) @@ -141,7 +135,7 @@ if test "$with_iconv" != "no"; then AC_TRY_LINK([ #include ],[ - static void f() {iconv_t t = iconv_open("", ""); } + iconv_t t = iconv_open("", ""); ],[ AC_DEFINE(HAVE_ICONV_H) AC_MSG_RESULT(yes) @@ -310,7 +304,7 @@ dnl ----- libXML2 AC_SUBST(XML2_LIBS) AC_SUBST(XML2_CFLAGS) xml2dir=yes -AC_ARG_WITH(xml2, [ --with-xml2[=PREFIX] use libxml2 in PREFIX],[xml2dir=$withval]) +AC_ARG_WITH(xml2, [ --with-xml2[=PREFIX] use libxml2 in PREFIX],[xml2dir=$withval]) if test "$xml2dir" = "yes"; then for d in /usr /usr/local; do if test -x $d/bin/xml2-config; then