]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Check if PCRE_DUPNAMES exists at configure time
authorJim Jagielski <jim@apache.org>
Wed, 19 Mar 2014 15:23:35 +0000 (15:23 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 19 Mar 2014 15:23:35 +0000 (15:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1579259 13f79535-47bb-0310-9956-ffa450edef68

configure.in

index 937cd441f48dfff1cabde6a1fbde1cb7ec6914c1..549416b72f2030db150fd0e778a223be8d20d366 100644 (file)
@@ -272,6 +272,17 @@ APR_ADDTO(INCLUDES, $APU_INCLUDES)
 dnl Add in path to PCRE includes
 APR_ADDTO(INCLUDES, $PCRE_INCLUDES)
 
+AC_EGREP_CPP(yes,
+[
+#include <pcre.h>
+#ifdef PCRE_DUPNAMES
+yes
+#endif
+],pcre_have_dupnames=yes,pcre_have_dupnames=no)
+if test "$pcre_have_dupnames" != "yes"; then
+    AC_MSG_ERROR([pcre version does not support PCRE_DUPNAMES])
+fi
+
 AC_MSG_NOTICE([])
 AC_MSG_NOTICE([Applying OS-specific hints for httpd...])
 AC_MSG_NOTICE([])