From: Jim Jagielski Date: Wed, 19 Mar 2014 15:23:35 +0000 (+0000) Subject: Check if PCRE_DUPNAMES exists at configure time X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24df39225b8f13d1843adc1a8390fe7e8d2001a2;p=thirdparty%2Fapache%2Fhttpd.git Check if PCRE_DUPNAMES exists at configure time git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1579259 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/configure.in b/configure.in index 937cd441f48..549416b72f2 100644 --- a/configure.in +++ b/configure.in @@ -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 +#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([])