From 50606c10e645308dddb9c8d0e676b33ce38f1df8 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 24 Nov 2008 12:13:48 +0100 Subject: [PATCH] Disable xslt/exslt if --without-xml2 is given --- configure.ac | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 4b2343b..e6ef61b 100644 --- a/configure.ac +++ b/configure.ac @@ -348,15 +348,17 @@ YAZ_LIBXML2([ xml_enabled=true ]) -YAZ_LIBXSLT([ - AC_DEFINE(YAZ_HAVE_XSLT) - YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XSLT=1" - ]) -YAZ_LIBEXSLT([ - AC_DEFINE(YAZ_HAVE_EXSLT) - YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_EXSLT=1" - ]) - +if test "$xml_enabled" = "true"; then + YAZ_LIBXSLT([ + AC_DEFINE(YAZ_HAVE_XSLT) + YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_XSLT=1" + ]) + YAZ_LIBEXSLT([ + AC_DEFINE(YAZ_HAVE_EXSLT) + YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS -DYAZ_HAVE_EXSLT=1" + ]) + +fi YAZ_CONFIG_CFLAGS="$YAZ_CONFIG_CFLAGS $XML2_CFLAGS" if test "$XML2_LIBS"; then -- 1.7.10.4