apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1372580 - /apr/apr-util/branches/1.5.x/configure.in
Date Mon, 13 Aug 2012 20:21:03 GMT
Author: trawick
Date: Mon Aug 13 20:21:03 2012
New Revision: 1372580

URL: http://svn.apache.org/viewvc?rev=1372580&view=rev
Log:
Follow up to r1372546:

Handle static-only apr/apr-util by adding -DAPU_DECLARE_STATIC
when necessary.

Modified:
    apr/apr-util/branches/1.5.x/configure.in

Modified: apr/apr-util/branches/1.5.x/configure.in
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.5.x/configure.in?rev=1372580&r1=1372579&r2=1372580&view=diff
==============================================================================
--- apr/apr-util/branches/1.5.x/configure.in (original)
+++ apr/apr-util/branches/1.5.x/configure.in Mon Aug 13 20:21:03 2012
@@ -225,8 +225,19 @@ fi
 dnl
 dnl MinGW: If APR is shared, APR_DECLARE_EXPORT will be defined in the
 dnl        internal CPPFLAGS, but APR-Util needs APU_DECLARE_EXPORT instead.
+dnl        If APR is static, APR_DECLARE_STATIC will be defined in the
+dnl        internal CPPFLAGS, but APR-Util needs APU_DECLARE_STATIC too.
 dnl
-sed -e 's/-DAPR_DECLARE_EXPORT/-DAPU_DECLARE_EXPORT/' < $APR_BUILD_DIR/apr_rules.mk >
$abs_builddir/build/rules.mk
+case $host in
+    *-mingw*)
+        sed -e 's/-DAPR_DECLARE_EXPORT/-DAPU_DECLARE_EXPORT/' \
+            -e 's/-DAPR_DECLARE_STATIC/-DAPU_DECLARE_STATIC -DAPR_DECLARE_STATIC/' \
+            < $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk
+        ;;
+    *)
+        cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk
+        ;;
+esac
 
 dnl
 dnl BSD/OS (BSDi) needs to use a different include syntax in the Makefiles



Mime
View raw message