1 dnl Check to find the zlib headers/libraries
5 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
7 AC_ARG_WITH(zlib-include,
8 [ --with-zlib-include=DIR zlib headers directory],
9 [zlib_include="$withval"
10 CFLAGS="$CFLAGS -I$withval"
11 CPPFLAGS="$CPPFLAGS -I$withval"]
15 [ --with-zlib-lib=DIR zlib library directory],
17 LIBS="$LIBS -L$withval"]
20 AC_CHECK_HEADERS(zlib.h,
22 [AC_MSG_ERROR("zlib header files not found."); break]
25 CPPFLAGS="$tinc_ac_save_CPPFLAGS"
27 AC_CHECK_LIB(z, compress2,
29 [AC_MSG_ERROR("zlib libraries not found.")]