Skip to contentSkip to conversation

build: properly handle --without-{xml,json}-parsing

PATCH Applied Douglas Freed 3 participants 3 messages Dec 23, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: properly handle --without-{xml,json}-parsing

This patch fixes how --without-{xml,json}-parsing (and subsequently --with-{xml,json}-parsing=no) is handled. Prior to this, --without-{xml,json}-parsing actually resulted in libnftables being built with that parsing enabled.

---
 configure.ac | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
configure.ac +2 -4
index b023755..6219737 100644
@@ -16,11 +16,9 @@ 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]),
-	[with_xml_parsing="yes"], [with_xml_parsing="no"])
+	AS_HELP_STRING([--with-xml-parsing], [XML parsing support]))
 AC_ARG_WITH([json-parsing],
-	AS_HELP_STRING([--with-json-parsing], [JSON parsing support]),
-	[with_json_parsing="yes"], [with_json_parsing="no"])
+	AS_HELP_STRING([--with-json-parsing], [JSON parsing support]))
 
 AS_IF([test "x$with_xml_parsing" = "xyes"], [
 	PKG_CHECK_MODULES([LIBXML], [mxml >= 2.6])
Signature · 1 line
1.8.5.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Douglas Freed

This patch fixes how --without-{xml,json}-parsing (and subsequently --with-{xml,json}-parsing=no) is handled. Prior to this, --without-{xml,json}-parsing actually resulted in libnftables being built with that parsing enabled.

Applied, thanks.

#2 lore raw
In reply to Douglas Freed
Quoted 9 lines · Douglas Freed

This patch fixes how --without-{xml,json}-parsing (and subsequently --with-{xml,json}-parsing=no) is handled. Prior to this, --without-{xml,json}-parsing actually resulted in libnftables being built with that parsing enabled.

---
 configure.ac | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Hi,

I've tested your patch, and seems fine to me.

Thanks.

Signature · 5 lines
Arturo Borrero González
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html