]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_9] better reporting of xml/json unavailability
authorEvan Hunt <each@isc.org>
Thu, 13 Aug 2015 05:00:17 +0000 (22:00 -0700)
committerEvan Hunt <each@isc.org>
Thu, 13 Aug 2015 05:00:17 +0000 (22:00 -0700)
- error if "configure --with-libxml2" but the library isn't available

configure
configure.in

index c3fa3ddb5327594fb60829c56bd217d086b7d4b7..1c6c6cd50bd1cb850feae96ee3ad8dd6907f4b4e 100755 (executable)
--- a/configure
+++ b/configure
@@ -15513,8 +15513,14 @@ case "$use_libxml2" in
                        libxml2_cflags=`xml2-config --cflags`
                        ;;
                *)
-                       libxml2_libs=
-                       libxml2_cflags=
+                       if test "$use_libxml2" = "yes" ; then
+                               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                               as_fn_error $? "required libxml2 version not available" "$LINENO" 5
+                       else
+                               libxml2_libs=
+                               libxml2_cflags=
+                       fi
                        ;;
                esac
                ;;
index 48cbc5d1c5263fa411578561ec9aae97e90c67e8..6909b69460fc7d0426e9bf9faab0c7692f5f0b83 100644 (file)
@@ -1495,8 +1495,13 @@ case "$use_libxml2" in
                        libxml2_cflags=`xml2-config --cflags`
                        ;;
                *)
-                       libxml2_libs=
-                       libxml2_cflags=
+                       if test "$use_libxml2" = "yes" ; then
+                               AC_MSG_RESULT(no)
+                               AC_MSG_ERROR(required libxml2 version not available)
+                       else
+                               libxml2_libs=
+                               libxml2_cflags=
+                       fi
                        ;;
                esac
                ;;