Restore CPPFLAGS properly after the detection of libxml
authorTamas Nepusz <ntamas@gmail.com>
Tue, 15 Jan 2019 14:10:32 +0000 (14:10 +0000)
committerAndreas Tille <tille@debian.org>
Tue, 15 Jan 2019 14:10:32 +0000 (14:10 +0000)
Last-Changed: Wed, 27 Aug 2014 21:39:48 +0100
Bug: https://github.com/igraph/igraph/issues/674
Applied-Upstream: 0.7.2, https://github.com/igraph/igraph/commit/a1a333bb

Gbp-Pq: Name cppflags_restore.patch

configure.ac

index acf76cde86ff3d5b596fa32efe24e424b954b98a..e98dcc88b57cf0a4fa66dde2333913aa5f519dc6 100644 (file)
@@ -146,7 +146,7 @@ if test $graphml_support = yes; then
       HAVE_LIBXML=1
       AC_DEFINE([HAVE_LIBXML], [1], [Define to 1 if you have the libxml2 libraries installed])
          CFLAGS="${OLDCFLAGS} ${XML2_CFLAGS}"
-      CPPFLAGS="${OLDCFLAGS} ${XML2_CFLAGS}"
+      CPPFLAGS="${OLDCPPFLAGS} ${XML2_CFLAGS}"
       AC_SUBST(XML2_LIBS)
       AC_SUBST(XML2_CFLAGS)
     ], [