From: Roy T. Fielding Date: Tue, 20 Feb 2001 02:01:09 +0000 (+0000) Subject: Update APR macro usage to new name-protected names. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aeeb47d67a0ae3e0399660f2419cb6de020eee9e;p=apache Update APR macro usage to new name-protected names. Replace REENTRANCY_FLAGS with direct use of THREAD_CPPFLAGS. This is a temporary band-aid, since the way we currently set the standard make vars (CFLAGS, CPPFLAGS, LDFLAGS, etc.) is bogus and frequently redundant [to be fixed later]. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88245 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/configure.in b/configure.in index 00403cae93..1c914b647a 100644 --- a/configure.in +++ b/configure.in @@ -56,7 +56,15 @@ AC_PROG_LN_S AC_CHECK_TOOL(RANLIB, ranlib, true) dnl AC_PATH_PROG(PERL_PATH, perl) -REENTRANCY_FLAGS +# +# Play with CPPFLAGS given what was learned from APR_PRELOAD. +# +# XXX: APR only sets this if threads are enabled. Either APR should be +# fixed to always set it (most likely), or we should test for threads. +# +if test -n "$THREAD_CPPFLAGS"; then + CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS" +fi dnl various OS checks that apparently set required flags AC_AIX @@ -243,9 +251,9 @@ dnl ## or disable threads), while still allowing APR to run and generate dnl ## APRVARS before Apache generates it's Makefiles and the related files. dnl ## This allows APR to detect libraries like dl and tell Apache that it dnl ## needs to include or not include them. -RUN_SUBDIR_CONFIG_NOW(srclib/apr, "$apache_apr_flags --disable-shared") -RUN_SUBDIR_CONFIG_NOW(srclib/apr-util, "--with-apr=../apr --disable-shared") -RUN_SUBDIR_CONFIG_NOW(srclib/pcre) +APR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --disable-shared") +APR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --disable-shared") +APR_SUBDIR_CONFIG(srclib/pcre) . ./srclib/apr/APRVARS dnl get the exported vars from APRUTIL diff --git a/server/mpm/config.m4 b/server/mpm/config.m4 index 1702e4b53a..dbf12a44bf 100644 --- a/server/mpm/config.m4 +++ b/server/mpm/config.m4 @@ -13,7 +13,7 @@ AC_MSG_RESULT($APACHE_MPM) apache_cv_mpm=$APACHE_MPM if test "$apache_cv_mpm" = "threaded" -o "$apache_cv_mpm" = "perchild"; then - PTHREADS_CHECK + APR_PTHREADS_CHECK AC_MSG_CHECKING([for which threading library to use]) AC_MSG_RESULT($threads_result)