From da195caa67f9853e91113d594d6103e4e176ff9d Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 26 Apr 2010 03:21:41 -0400 Subject: [PATCH] fix build error due to missing zlib linking when using libtool 2.2 or later --- configure.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 23ff3d5680..838c1087a3 100644 --- a/configure.in +++ b/configure.in @@ -353,7 +353,6 @@ AC_SUBST(PA_LIBS) AM_CONDITIONAL([ENABLE_ZRTP],[test "x$enable_zrtp" != "xno"]) - AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"]) AC_ARG_ENABLE(core-odbc-support, @@ -363,6 +362,11 @@ if test "$ac_cv_found_odbc" = "yes" ; then enable_core_odbc_support="yes" fi +AC_CHECK_LIB(z, inflateReset, have_libz=yes, have_libz=no) +if test "x$have_libz" = "xyes" ; then +APR_ADDTO(SWITCH_AM_LDFLAGS, -lz) +fi + ESL_LDFLAGS= PLATFORM_CORE_DEPLIBS= # tweak platform specific flags