From d839cb721fc3e18b021da0449e1b6ccb5c0bf39f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 8 May 2006 18:18:11 +0000 Subject: [PATCH] If libexslt is not found, tell when pkg-config is missing --- yaz_libxml2.m4 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/yaz_libxml2.m4 b/yaz_libxml2.m4 index 73cd732..b8feab2 100644 --- a/yaz_libxml2.m4 +++ b/yaz_libxml2.m4 @@ -120,12 +120,18 @@ if test "$exsltdir" != "no"; then AC_DEFINE(HAVE_EXSLT) else AC_MSG_RESULT(Not found) + + if test "$pkgconfigpath" = "NONE"; then + extra="libEXLT not enabled. pkg-config not found." + else + extra="libEXLT 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 +]) -- 1.7.10.4