Skip to contentSkip to conversation

autoconf: Do not build "http-push" without expat headers

RFC/PATCH Allan Caffee 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Simply linking against expat does not guarantee successful compilation. Check for development headers before attempting to compile the dependant binaries.

---
 configure.ac |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
configure.ac +3 -0
index 4e728bc..3de0ae7 100644
@@ -375,6 +375,9 @@ GIT_STASH_FLAGS($EXPATDIR)
 AC_CHECK_LIB([expat], [XML_ParserCreate],
 [NO_EXPAT=],
 [NO_EXPAT=YesPlease])
+AC_CHECK_HEADER([expat.h],
+[NO_EXPAT=],
+[NO_EXPAT=YesPlease])
 
 GIT_UNSTASH_FLAGS($EXPATDIR)
 
Signature · 1 line
1.5.6.3