From 6b12f17f44c6c879cf7bb18040f91de885ffcd2f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 14 Feb 2016 00:05:12 +0900 Subject: [PATCH] Wrap AM_PATH_XML2 by m4_ifdef to handle the case when AM_PATH_XML2 is not found --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d7f6505f..985925d7 100644 --- a/configure.ac +++ b/configure.ac @@ -352,7 +352,10 @@ fi # libxml2 (for src/nghttp) have_libxml2=no if test "x${request_libxml2}" != "xno"; then - AM_PATH_XML2(2.7.7, [have_libxml2=yes], [have_libxml2=no]) + m4_ifdef([AM_PATH_XML2], + [AM_PATH_XML2(2.7.7, [have_libxml2=yes], [have_libxml2=no])], + [AC_MSG_WARN([configure was created without libxml2 detection macro; libxml2 detection is disabled])]) + if test "x${have_libxml2}" = "xyes"; then AC_DEFINE([HAVE_LIBXML2], [1], [Define to 1 if you have `libxml2` library.]) fi