http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24664

It seems, that on these GNU systems there's just a /lib/libcrypto.so.1. The
attached patch looks just for this file if -lcrypt doesn't work. Looks a bit
ugly, though it works fine in my tests.

If someone applies it, please don't forget the 0_9_BRANCH ...

nd
Index: configure.in
===================================================================
RCS file: /home/cvspublic/apr/configure.in,v
retrieving revision 1.551
diff -u -r1.551 configure.in
--- configure.in	6 Nov 2003 09:18:22 -0000	1.551
+++ configure.in	13 Nov 2003 00:13:49 -0000
@@ -460,7 +460,7 @@
 AC_CHECK_LIB(nsl, gethostbyname)
 AC_SEARCH_LIBS(gethostname, nsl)
 AC_CHECK_LIB(socket, socket)
-AC_SEARCH_LIBS(crypt, crypt ufc)
+AC_SEARCH_LIBS(crypt, crypt ufc,,AC_CHECK_FILE(/lib/libcrypt.so.1, APR_ADDTO(LIBS, /lib/libcrypt.so.1)))
 AC_CHECK_LIB(truerand, main)
 AC_SEARCH_LIBS(modf, m)
 AC_SEARCH_LIBS(sqrt, m)

Reply via email to