From: Justin Erenkrantz Date: Sat, 3 Jan 2009 18:02:36 +0000 (+0000) Subject: pcre-config --cflags actually emits include paths not cflags, so add it to X-Git-Tag: 2.3.2~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44f5378465968dc415ef40c32d918b801de750ff;p=apache pcre-config --cflags actually emits include paths not cflags, so add it to correct variable. Also, reuse APR_INCLUDES/APU_INCLUDES variables so as to save an extra invocation of config files. * configure.in: Add PCRE_CONFIG --cflags to INCLUDES; reuse AP{RU}_INCLUDES variables. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@731058 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/configure.in b/configure.in index 2566faf8b6..6c53154d25 100644 --- a/configure.in +++ b/configure.in @@ -181,7 +181,7 @@ if test "$PCRE_CONFIG" != "false"; then AC_MSG_ERROR([Did not find pcre-config script at $PCRE_CONFIG]) fi AC_MSG_NOTICE([Using external PCRE library from $PCRE_CONFIG]) - APR_ADDTO(CFLAGS, [`$PCRE_CONFIG --cflags`]) + APR_ADDTO(PCRE_INCLUDES, [`$PCRE_CONFIG --cflags`]) APR_ADDTO(PCRE_LIBS, [`$PCRE_CONFIG --libs`]) else AC_MSG_ERROR([pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/]) @@ -207,8 +207,11 @@ APR_ADDTO(INCLUDES, [-I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/ # apr/apr-util --includes may pick up system paths for dependent # libraries, so ensure these are later in INCLUDES than local source # directories. -APR_ADDTO(INCLUDES, `$apr_config --includes`) -APR_ADDTO(INCLUDES, `$apu_config --includes`) +APR_ADDTO(INCLUDES, $APR_INCLUDES) +APR_ADDTO(INCLUDES, $APU_INCLUDES) + +dnl Add in path to PCRE includes +APR_ADDTO(INCLUDES, $PCRE_INCLUDES) echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"