Basically, Apache now runs APR's configure script first. APR's configure
script has been setup to create a new file, APRVARS. APRVARS is basically
all of the environment variables that APR wants to export to the program
that is using it. This allows the calling program to "source" APRVARS
and get those environment variables.
Removed hack to make platforms use -ldl.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85701
13f79535-47bb-0310-9956-
ffa450edef68
Apache 2.0 STATUS:
-Last modified at [$Date: 2000/06/26 13:13:05 $]
+Last modified at [$Date: 2000/06/27 20:06:14 $]
Release:
module. This should be override-able of course.
Status: Jim Jagielski is looking into this.
- - Fix up ./configure to properly detect the various dynamic load
- libraries/flags on the different platforms (current, we default
- to -ldl which is wrong).
- Status:
-
* suEXEC doesn't work
Status: Manoj has posted an patch to fix this.
<19991103003605.A20612@samosa.mindspring.com>
done
])
])dnl
+
+AC_DEFUN(APACHE_RUN_SUBDIR_CONFIG_NOW, [
+ echo "configuring package in $1 now"
+ ac_popdir=`pwd`
+ ac_abs_srcdir=`(cd $srcdir/$1 && pwd)`
+ cd $1
+
+changequote(, )dnl
+ # A "../" for each directory in /$config_subdirs.
+ ac_dots=`echo $config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
+changequote([, ])dnl
+
+ # Make the cache file name correct relative to the subdirectory.
+ case "$cache_file" in
+ /*) ac_sub_cache_file=$cache_file ;;
+ *) # Relative path.
+ ac_sub_cache_file="$ac_dots$cache_file" ;;
+ esac
+
+ # The eval makes quoting arguments work.
+
+ if eval $ac_abs_srcdir/configure --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir
+ then :
+ echo "$1 configured properly"
+ else
+ echo "configure failed for $1"
+ fi
+
+ cd $ac_popdir
+])
+
fi
dnl ## Run configure for packages Apache uses
-AC_CONFIG_SUBDIRS(lib/apr)
+APACHE_RUN_SUBDIR_CONFIG_NOW(lib/apr)
+source lib/apr/APRVARS
+
dnl
dnl ## Preload our OS configuration
LTFLAGS="$LTFLAGS -export-dynamic"
-PLAT=`$ac_config_guess`
-PLAT=`$ac_config_sub $PLAT`
-case "$PLAT" in
- *-ibm-os390)
- ;;
- *-freebsd*)
- ;;
- *-os2_emx)
- ;;
- *-beos*)
- ;;
- *)
- LIBS="$LIBS -ldl"
- ;;
-esac
-
if test "$sharedobjs" = "yes"; then
APACHE_CHECK_STANDARD_MODULE(so, DSO capability, , yes)
else