diff options
author | Sean Middleditch <sean@middleditch.us> | 2009-08-31 14:52:23 -0700 |
---|---|---|
committer | Sean Middleditch <sean@middleditch.us> | 2009-08-31 14:52:23 -0700 |
commit | bcfd3b8063d036c0e7bf6d4093060baabebb4ba2 (patch) | |
tree | ac6fec13baadb090e6c277f36ad25107240c389f | |
parent | 048b3b2d422e74d737e14687ec0e527af1cd9f3f (diff) |
actually use zlib
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | configure.ac | 11 |
2 files changed, 15 insertions, 1 deletions
@@ -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 |