From dd1f7eab6e9f0b9aa0e0fbf082190e8595c0bc75 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 5 Dec 2001 17:32:52 +0000 Subject: [PATCH] separate logic specific to building Apache DSOs from logic needed when anybody's DSOs should be built (e.g., via apxs) so that on a few platforms with special issues third-party modules can be loaded as long as mod_so is built into httpd git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92343 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 7 +++++++ configure.in | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index a8d536f842..f111c5d2a3 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,12 @@ Changes with Apache 2.0.30-dev + *) Whenever mod_so is enabled (not just when there are DSOs for + our modules), do whatever special magic is required for compiling/ + loading third-party modules. This allows third-party DSOs to + be used on an AIX build when there were no built-in modules + built as DSOs. (This should help on OS/390 and BeOS as well.) + [Jeff Trawick] + *) Allow apxs to be used to build DSOs on AIX without requiring the user to hard-code the list of import files. (This should help on OS/390 and BeOS as well.) [Jeff Trawick] diff --git a/configure.in b/configure.in index cf9451265b..a6b2b6ba3d 100644 --- a/configure.in +++ b/configure.in @@ -266,10 +266,18 @@ APACHE_SUBST(SHLIBPATH_VAR) PRE_SHARED_CMDS='echo ""' POST_SHARED_CMDS='echo ""' +dnl apache_need_shared tells us if Apache modules are being built as DSOs + if test "$apache_need_shared" = "yes"; then if test -f $ac_aux_dir/ltconfig; then $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh fi + shared_build="shared-build" +fi + +dnl enable_so tells is if *any* modules can be built as DSOs + +if test "$enable_so" = "yes"; then case $host in *-ibm-aix*) HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-bE:$abs_builddir/server/httpd.exp" @@ -284,7 +292,6 @@ if test "$apache_need_shared" = "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 - shared_build="shared-build" fi APACHE_SUBST(PRE_SHARED_CMDS) -- 2.40.0