--- aclocal.m4 2007-06-16 03:56:22.000000000 +0000
+++ aclocal.m4.new 2007-06-16 04:56:59.000000000 +0000
# ldapdirs will be "yes", "no", or a user defined path
if test x_$ldapdirs != x_no; then
if test x_$ldapdirs = x_yes; then
- ldapdirs="/usr /usr/local /usr/local/ldap /usr/local/openldap"
+ ldapdirs="$prefix /usr /usr/local /usr/local/ldap /usr/local/openldap"
- LIBS="$LIBS -lssl -lcrypt";
+ LIBS="$LIBS -lssl -lcrypto";
LDFLAGS="$LDFLAGS -L$ssldir/lib";
+ AC_MSG_CHECKING(for zlib)
+ zlibdirs="/usr /usr/local"
+ [AC_HELP_STRING([--with-zlib=DIR], [path to zlib])],
+ if test x_$withval != x_no; then
+ if test x_$withval != x_yes -a \! -z "$withval"; then
+ for dir in $zlibdirs; do
+ if test -f "$dir/include/zlib.h"; then
+ if test x_$found_zlib == x_yes; then
+ if test "$dir" != "/usr"; then
+ CPPFLAGS="$CPPFLAGS -I$zlibdir/include";
+ LDFLAGS="$LDFLAGS -L$zlibdir/lib";