[PATCH libnftnl] build: fix final report after configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If no xml/json support is explicitly enabled, the final report
does not show "no". This patch fixes this:

libnftnl configuration:
  XML support:                          no
  JSON support:                         no

Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
---
 configure.ac |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 54c66fe..f95b268 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,12 +20,14 @@ AC_ARG_WITH([xml-parsing],
 AC_ARG_WITH([json-parsing],
 	AS_HELP_STRING([--with-json-parsing], [JSON parsing support]))
 
-AS_IF([test "x$with_xml_parsing" = "xyes"], [
-	PKG_CHECK_MODULES([LIBXML], [mxml >= 2.6])
-])
-AS_IF([test "x$with_json_parsing" = "xyes"], [
-	PKG_CHECK_MODULES([LIBJSON], [jansson >= 2.3])
-])
+AS_IF([test "x$with_xml_parsing" = "xyes"],
+	[PKG_CHECK_MODULES([LIBXML], [mxml >= 2.6])],
+	[with_xml_parsing="no"]
+)
+AS_IF([test "x$with_json_parsing" = "xyes"],
+	[PKG_CHECK_MODULES([LIBJSON], [jansson >= 2.3])],
+	[with_json_parsing="no"]
+)
 AC_PROG_CC
 AM_PROG_CC_C_O
 AC_EXEEXT
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux