From c5f992c51377c8735682d49a1ceef88db39d41ac Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 5 Sep 2013 19:03:23 +0200 Subject: build: display configuration after ./configure libnftables configuration: XML support: no JSON support: no Signed-off-by: Pablo Neira Ayuso --- configure.ac | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 834c0a3..4d601a6 100644 --- a/configure.ac +++ b/configure.ac @@ -14,11 +14,16 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) dnl Dependencies PKG_CHECK_MODULES([LIBMNL], [libmnl >= 1.0.0]) -AC_ARG_WITH([xml-parsing], AS_HELP_STRING([--with-xml-parsing], [XML parsing support])) +AC_ARG_WITH([xml-parsing], + AS_HELP_STRING([--with-xml-parsing], [XML parsing support]), + [with_xml_parsing="yes"], [with_xml_parsing="no"]) +AC_ARG_WITH([json-parsing], + AS_HELP_STRING([--with-json-parsing], [JSON parsing support]), + [with_json_parsing="yes"], [with_json_parsing="no"]) + AS_IF([test "x$with_xml_parsing" = "xyes"], [ PKG_CHECK_MODULES([LIBXML], [mxml >= 2.6]) ]) -AC_ARG_WITH([json-parsing], AS_HELP_STRING([--with-json-parsing], [JSON parsing support])) AS_IF([test "x$with_json_parsing" = "xyes"], [ PKG_CHECK_MODULES([LIBJSON], [jansson >= 2.3]) ]) @@ -47,3 +52,8 @@ AC_SUBST([regular_CPPFLAGS]) AC_SUBST([regular_CFLAGS]) AC_CONFIG_FILES([Makefile src/Makefile include/Makefile include/libnftables/Makefile include/linux/Makefile include/linux/netfilter/Makefile examples/Makefile tests/Makefile libnftables.pc doxygen.cfg]) AC_OUTPUT + +echo " +libnftables configuration: + XML support: ${with_xml_parsing} + JSON support: ${with_json_parsing}" -- cgit v1.2.3