diff --git a/NEWS b/NEWS index a6786ff..6ff07a5 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +Version 0.11 +============ + +* fix autoconf rules to find and use zlib + Version 0.10 ============ diff --git a/configure.ac b/configure.ac index 110b0cb..1eda608 100644 --- a/configure.ac +++ b/configure.ac @@ -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