--enable-some-module=shared is specified on the ./configure line, then
mod_so is included in the build, -ldl is added to LIBS, and --enable-dso is
added to APR's configure line. Otherwise, mod_so is turned off, -ldl is
not added, and APR is specifically told to build without DSO support.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85418
13f79535-47bb-0310-9956-
ffa450edef68
shared=yes;;
*)
MODLIST="$MODLIST ifelse($4,,$1,$4)"
+ if test "$1" == "so"; then
+ echo "so"
+ sharedobjs=yes
+ fi
shared="";;
esac
ifelse($6,,:,$6)
APACHE_CHECK_STANDARD_MODULE(setenvif, basing ENV vars on headers, , yes)
APACHE_CHECK_STANDARD_MODULE(echo, ECHO server, , yes)
-APACHE_MODPATH_FINISH
ac_cv_enable_dso="no"
if test "$sharedobjs" = "yes"; then
APACHE_CHECK_STANDARD_MODULE(so, DSO capability, , yes)
else
APACHE_CHECK_STANDARD_MODULE(so, DSO capability, , no)
+ if test "$sharedobjs" = "yes"; then
+ LIBS="$LIBS -ldl"
+ LTFLAGS="$LTFLAGS -export-dynamic"
+ ac_cv_enable_dso="yes"
+ fi
fi
AC_CACHE_SAVE
+
+APACHE_MODPATH_FINISH
APACHE_SUBST(STANDARD_LIBS)