]> granicus.if.org Git - apache/commitdiff
on AIX we need to pass in --disable-shared to apr and apr-util
authorJeff Trawick <trawick@apache.org>
Wed, 5 Sep 2001 16:40:35 +0000 (16:40 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 5 Sep 2001 16:40:35 +0000 (16:40 +0000)
configurations; otherwise we get goofy executable files

obviously libtool isn't doing the right thing, but I don't know
what that is

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

configure.in

index 61e8fb8126979c49e4a7e09d8cdb15fb1677f10f..f4e1f564a419345fd0e80c09aa4bbc208bab9834 100644 (file)
@@ -43,15 +43,28 @@ test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
 
 dnl ## Run configure for packages Apache uses
 
+dnl shared library support for these packages doesn't currently
+dnl work on some platforms
+
+AC_CANONICAL_SYSTEM
+
+case $host in
+    *-ibm-aix*)
+        disable_shared="--disable-shared"
+      ;;
+    *)
+        disable_shared=""
+esac
+
 orig_prefix="$prefix"
 
 echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"
 
-APR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --prefix=$prefix")
+APR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --prefix=$prefix $disable_shared")
 
 echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
 
-APR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --prefix=$prefix")
+APR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --prefix=$prefix $disable_shared")
 
 echo $ac_n "${nl}Configuring PCRE regular expression library ...${nl}"
 
@@ -92,8 +105,6 @@ fi
 
 echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
 
-AC_CANONICAL_SYSTEM
-
 case $host in
   *os2*)
       # Use a custom made libtool replacement