I had a rough time trying to get any version of apr to compile for use by httpd on my platform (OS X 10.7.4). I eventually ended up using the 1.4.x branches of apr and apr-util and
"--without-crypto" \ "--without-openssl" \ "--without-ldap" \ since at least one of those options is completely screwed up in its application of autoconf macros. It adds a spurious " -L" to LDFLAGS which then gets placed in EXTRA_LDFLAGS and causes any attempt to later link with those flags to fail. I was unable to solve the error sufficiently to build with those options, though the following patch on apr-util-1.4.x is still needed to build without them. ....Roy Index: build/crypto.m4 =================================================================== --- build/crypto.m4 (revision 1373117) +++ build/crypto.m4 (working copy) @@ -52,6 +52,8 @@ AC_DEFUN([APU_CHECK_CRYPTO_OPENSSL], [ openssl_have_headers=0 openssl_have_libs=0 + openssl_CPPFLAGS= + openssl_LDFLAGS= old_libs="$LIBS" old_cppflags="$CPPFLAGS" @@ -140,6 +142,8 @@ AC_DEFUN([APU_CHECK_CRYPTO_NSS], [ nss_have_headers=0 nss_have_libs=0 + nss_CPPFLAGS= + nss_LDFLAGS= old_libs="$LIBS" old_cppflags="$CPPFLAGS"
