]> granicus.if.org Git - apache/commitdiff
Simplify the configuration process by moving all libtool stuff to APR
authorRoy T. Fielding <fielding@apache.org>
Fri, 11 May 2001 08:12:06 +0000 (08:12 +0000)
committerRoy T. Fielding <fielding@apache.org>
Fri, 11 May 2001 08:12:06 +0000 (08:12 +0000)
and moving the last bits of hints.m4 inline.  Now we only run every
test four times instead of five.  One down, three to go.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89081 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
configure.in

diff --git a/CHANGES b/CHANGES
index a1abe17597c38d0df965a1e40d65d6623ac9de44..fd31ee2d1151de425f6adc7bb767845d384756c6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.18-dev
 
+  *) Simplify the configure process by moving all libtool stuff to APR
+     and moving hints.m4 inline.  [Roy Fielding]
+
   *) Add the AP_DECLARE()/AP_CORE_DECLARE macros on the return types
      of functions used by mod_proxy for export in the DLL 
      [Ian Holsman <IanH@cnet.com>]
index 6895d420b4e20a0d10d21e25299e9ec05521ecbf..b5ac44a544d60c57aa20de71c686a936c3c8bf44 100644 (file)
@@ -16,7 +16,6 @@ dnl #
 sinclude(srclib/apr/build/apr_common.m4)
 sinclude(srclib/apr/build/apr_network.m4)
 sinclude(srclib/apr/build/apr_threads.m4)
-sinclude(hints.m4)
 sinclude(acinclude.m4)
 
 dnl Save user-defined environment settings for later restoration
@@ -88,6 +87,8 @@ else
   APR_ADDTO(INCLUDES, [-I. -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/include -I\$(top_srcdir)/srclib/apr/include -I\$(top_srcdir)/srclib/apr-util/include])
 fi
 
+echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
+
 AC_CANONICAL_SYSTEM
 
 case "$host_alias" in
@@ -107,9 +108,35 @@ case "$host_alias" in
       ;;
 esac
 
-dnl
-dnl ## Preload our OS configuration
-APACHE_PRELOAD
+case "$host" in
+  *-apple-aux3*)
+      APR_SETVAR(APACHE_MPM, [prefork])
+      APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
+      ;;
+  *-beos*)
+      APR_SETVAR(APACHE_MPM, [beos])
+      APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
+      ;;
+  *os2_emx*)
+      APR_SETVAR(APACHE_MPM, [spmt_os2])
+      APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
+      ;;
+  *-linux-*)
+      case `uname -r` in
+        2.2* ) APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
+            ;;
+        * )
+            ;;
+      esac
+      ;;
+  *486-*-bsdi* | *-netbsd* | *-freebsd* | *-apple-darwin* | *-dec-osf* | *-qnx)
+      APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
+      ;;
+  *-solaris2*)
+      dnl  This is a hack -- we should be using AC_TRY_RUN instead
+      ap_platform_runtime_link_flag="-R"
+      ;;
+esac
 
 dnl
 dnl Process command line arguments. This is done early in the process so the
@@ -205,7 +232,7 @@ POST_SHARED_CMDS='echo ""'
 
 if test "$apache_need_shared" = "yes"; then
   $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
-  case $PLATFORM in
+  case "$host" in
     *-ibm-aix*)
       HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-bE:$abs_srcdir/support/httpd.exp"
       SH_LDFLAGS="$SH_LDFLAGS -Wl,-bI:$abs_srcdir/support/httpd.exp"