From: Joe Orton Date: Wed, 10 Jan 2007 10:50:35 +0000 (+0000) Subject: * configure.in: Substitute MOD_SO_ENABLED variable. X-Git-Tag: 2.3.0~1934 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3ee5c3736efe3a7ed528edeb67ac110c64faf0a;p=apache * configure.in: Substitute MOD_SO_ENABLED variable. * support/apxs.in: Use it to eliminate run-time check for whether httpd has mod_so built-in. Submitted by: David M. Lee PR: 40653 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@494781 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index ac1904f8bd..ac8fc569cc 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.3.0 [Remove entries to the current 2.0 and 2.2 section below, when backported] + *) apxs: Eliminate run-time check for mod_so. PR 40653. + [David M. Lee ] + *) beos MPM: Create pmain pool and run modules' child_init hooks when entering ap_mpm_run(), then destroy pmain when exiting ap_mpm_run(). [Chris Darroch] diff --git a/configure.in b/configure.in index 336ea6a63b..e906f68103 100644 --- a/configure.in +++ b/configure.in @@ -540,7 +540,9 @@ if test "$enable_so" = "yes"; then HTTPD_LDFLAGS="$HTTPD_LDFLAGS --main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll" SH_LDFLAGS="$SH_LDFLAGS --core-dll=$abs_srcdir/apachecore.dll" esac + MOD_SO_ENABLED=yes fi +AC_SUBST(MOD_SO_ENABLED) APACHE_SUBST(PRE_SHARED_CMDS) APACHE_SUBST(POST_SHARED_CMDS) diff --git a/support/apxs.in b/support/apxs.in index 1dcc82ede4..385d71e5ca 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -187,28 +187,11 @@ if (@opt_S) { ## ## Initial shared object support check ## -my $httpd = get_vars("sbindir") . "/" . get_vars("progname"); -$httpd = eval qq("$httpd"); -$httpd = eval qq("$httpd"); -my $envvars = get_vars("sbindir") . "/envvars"; -$envvars = eval qq("$envvars"); -$envvars = eval qq("$envvars"); - -#allow apxs to be run from the source tree, before installation -if ($0 =~ m:support/apxs$:) { - ($httpd = $0) =~ s:support/apxs$::; -} - -unless (-x "$httpd") { - error("$httpd not found or not executable"); - exit 1; -} - -unless (grep /mod_so/, `. $envvars && $httpd -l`) { +unless ("@MOD_SO_ENABLED@" eq "yes") { error("Sorry, no shared object support for Apache"); error("available under your platform. Make sure"); error("the Apache module mod_so is compiled into"); - error("your server binary `$httpd'."); + error("the server binary."); exit 1; }