X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=yaz_libxml2.m4;h=02eb1b426a4088f0ce20f26c7edbbc7962e98fb8;hb=149e2cdbb2191eeaa9eaca4038b62a802800bad1;hp=73cd7327c6d784e0a5dedd05d269bf9050efdbf2;hpb=65c44047e0760d7613c3ce797203c4232f123d35;p=m4-moved-to-github.git diff --git a/yaz_libxml2.m4 b/yaz_libxml2.m4 index 73cd732..02eb1b4 100644 --- a/yaz_libxml2.m4 +++ b/yaz_libxml2.m4 @@ -1,4 +1,5 @@ AC_DEFUN([YAZ_LIBXML2],[ +AC_PATH_PROG(pkgconfigpath, pkg-config, NONE) xml2dir=default XML2_VER="" AC_ARG_WITH(xml2,[[ --with-xml2[=PREFIX] use libxml2 in PREFIX]],xml2dir=$withval) @@ -120,12 +121,22 @@ if test "$exsltdir" != "no"; then AC_DEFINE(HAVE_EXSLT) else AC_MSG_RESULT(Not found) + + if test "$pkgconfigpath" = "NONE"; then + extra="libEXSLT not enabled. pkg-config not found." + else + extra="libEXSLT development libraries not found." + fi if test "$exsltdir" = "default"; then - AC_MSG_WARN([libEXSLT development libraries not found.]) + AC_MSG_WARN([$extra]) else - AC_MSG_ERROR([libEXSLT development libraries not found.]) + AC_MSG_ERROR([$extra]) fi fi fi -]) \ No newline at end of file +OLIBS=$LIBS +LIBS="$LIBS $XML2_LIBS" +AC_CHECK_FUNCS([xsltSaveResultToString]) +LIBS=$OLIBS +])