dreid 01/05/09 05:01:57
Modified: . configure.in
Log:
This is required to get apr-util building as a shared library on BeOS.
Hopefully we'll find a better way to do this at some point.
Revision Changes Path
1.20 +10 -1 apr-util/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/apr-util/configure.in,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- configure.in 2001/04/09 16:34:05 1.19
+++ configure.in 2001/05/09 12:01:54 1.20
@@ -41,14 +41,22 @@
echo "performing libtool configuration..."
AC_CANONICAL_SYSTEM
+LDFLAGS=""
case "$host_alias" in
*os2*)
# Use a custom-made libtool replacement
echo "using aplibtool"
LIBTOOL="$APR_SOURCE_DIR/build/aplibtool"
;;
+*beos*)
+ # Horrible Hack !!!
+ # if we're building a shared lib then we need to add in the
+ # apr library to the build...
+ LDFLAGS="$APR_SOURCE_DIR/libapr.la"
+ AC_PROG_LIBTOOL
+ ;;
*) dnl libtoolize requires that the following not be indented
-AC_PROG_LIBTOOL
+ AC_PROG_LIBTOOL
;;
esac
@@ -89,6 +97,7 @@
LIBS="$LIBS $APR_EXPORT_LIBS"
AC_SUBST(APRUTIL_EXPORT_LIBS)
+AC_SUBST(LDFLAGS)
dnl
dnl BSD/OS (BSDi) needs to use a different include syntax in the Makefiles