jerenkrantz 02/03/25 15:12:20
Modified: flood configure.in
Log:
Solaris's ld is picky about dependencies, so reorder things to make it
happy.
Also add missing CPPFLAGS for apr-util's includes.
Revision Changes Path
1.23 +5 -2 httpd-test/flood/configure.in
Index: configure.in
===================================================================
RCS file: /home/cvs/httpd-test/flood/configure.in,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- configure.in 25 Mar 2002 22:58:19 -0000 1.22
+++ configure.in 25 Mar 2002 23:12:19 -0000 1.23
@@ -81,7 +81,8 @@
AC_CHECK_LIB(crypto, SHA1, LIBS="$LIBS -lcrypto")
dnl BIO_next only appears in newer versions of OpenSSL
- AC_CHECK_LIB(ssl, BIO_next, LIBS="$LIBS -lssl")
+ dnl Since libssl relies on libcrypto, it *must* appear before -lcrypto.
+ AC_CHECK_LIB(ssl, BIO_next, LIBS="-lssl $LIBS")
flood_has_openssl=1
dnl Extra OpenSSL specific options
@@ -131,8 +132,10 @@
FLOOD_SUBDIRS="$FLOOD_SUBDIRS apr-util"
fi
+CPPFLAGS="$CPPFLAGS `$apu_config --includes`"
LIBTOOL_LDFLAGS="$LIBTOOL_LDFLAGS `$apr_config --ldflags`"
-LIBTOOL_LIBS="$LIBTOOL_LIBS `$apu_config --link-libtool --libs`"
+dnl Since libaprutil relies on libapr, it *must* appear before -lapr.
+LIBTOOL_LIBS="`$apu_config --link-libtool --libs` $LIBTOOL_LIBS"
AC_CHECK_FUNC(strtoll, hasstrtoll="1", hasstrtoll="0")
AC_CHECK_FUNC(strtoq, hasstrtoq="1", hasstrtoq="0")