actually use zlib

This commit is contained in:
Sean Middleditch 2009-08-31 14:52:23 -07:00
parent 048b3b2d42
commit bcfd3b8063
2 changed files with 15 additions and 1 deletions

5
NEWS
View File

@ -1,3 +1,8 @@
Version 0.11
============
* fix autoconf rules to find and use zlib
Version 0.10
============

View File

@ -1,9 +1,18 @@
AC_INIT([libtelnet], [0.10], [http://github.com/elanthis/libtelnet/tree/master])
AC_INIT([libtelnet], [0.11], [http://github.com/elanthis/libtelnet/tree/master])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PROG_LIBTOOL
# zlib support
AC_CHECK_LIB(z,deflate,ZLIB=yes,ZLIB=no)
if test "x$ZLIB" = "xyes" ; then
LIBS="$LIBS -lz"
AC_DEFINE(HAVE_ZLIB, 1, [We have zlib])
LIBTELNET_HAVE_ZLIB="-DHAVE_ZLIB"
AC_SUBST(LIBTELNET_HAVE_ZLIB)
fi
AC_CONFIG_FILES(Makefile)
AC_OUTPUT