$Log$
+ Revision 591.85 2002/08/08 22:01:35 ajc
+ * autoconf to look for zlib (for an upcoming experiment)
+
Revision 591.84 2002/08/08 03:25:56 ajc
* Bugfix for above
* Started writing some infrastructure for sub/unsub
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
)
AC_ARG_WITH(ncurses, [ --without-ncurses don't use ncurses])
+AC_ARG_WITH(with_zlib, [ --with-zlib use zlib compression if present])
+
if test "x$with_gdbm" != xno -a "x$with_gdbm" != xyes -a "$with_gdbm"; then
db_dir="$with_gdbm"
with_gdbm=yes
with_db=no])
fi
+dnl Checks for the zlib compression library.
+if test "x$with_zlib" != xno ; then
+ AC_CHECK_HEADERS(zlib.h,
+ [AC_CHECK_LIB(z, zlibVersion,
+ [ok_zlib=yes],,
+ )])
+fi
+
+if test "x$ok_zlib" != xno ; then
+ LIBS="-lz $LIBS"
+ AC_DEFINE(HAVE_ZLIB)
+fi
+
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC