From: Adam Dickmeiss Date: Wed, 18 May 2005 20:29:18 +0000 (+0000) Subject: Issue warning/error if Libxslt is not found X-Git-Tag: YAZPROXY.ERE~1 X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=commitdiff_plain;h=d8002c3bb2f4475ffa7adb760e56cdb43bede4ae Issue warning/error if Libxslt is not found --- diff --git a/configure.in b/configure.in index 47954e9..2892d90 100644 --- a/configure.in +++ b/configure.in @@ -21,9 +21,9 @@ dnl dnl ----- libXSLT AC_SUBST(XSLT_LIBS) AC_SUBST(XSLT_CFLAGS) -xsltdir=yes +xsltdir=default AC_ARG_WITH(xslt,[[ --with-xslt[=PREFIX] use libxslt in PREFIX]],xsltdir=$withval) -if test "$xsltdir" = "yes"; then +if test "$xsltdir" = "yes" -o "$xsltdir" = "default"; then for d in /usr /usr/local; do if test -x $d/bin/xslt-config; then xsltdir=$d @@ -40,6 +40,10 @@ if test "$xsltdir" != "no"; then AC_DEFINE(HAVE_XSLT) else AC_MSG_RESULT(Not found) + if test "$xsltdir" = "default"; then + AC_MSG_WARN([Libxslt development libraries not found.]) + else + AC_MSG_ERROR([libxslt development libraries not found.]) fi fi fi