diff options
-rwxr-xr-x | configure | 25 |
1 files changed, 23 insertions, 2 deletions
@@ -70,7 +70,6 @@ EOF echo "CONFIG_NACL_INC_DIR:=$NACL_INC_DIR" >> Config echo "CONFIG_NACL_LIB_DIR:=$NACL_LIB_DIR" >> Config fi - } check_libnl() @@ -195,7 +194,6 @@ EOF else echo "[YES]" fi - } check_libnf_ct() @@ -221,8 +219,30 @@ EOF else echo "[YES]" fi +} + +check_zlib() +{ + echo -n "[*] Checking libz ... " + cat > $TMPDIR/ztest.c << EOF +#include "zlib.h" + +void main(void) +{ + gzFile fp; } +EOF + + $CC -o $TMPDIR/ztest $TMPDIR/ztest.c >> $TMPDIR/config.log 2>&1 + if [ ! -x $TMPDIR/ztest ] ; then + echo "[NO]" + MISSING_DEFS=1 + else + echo "[YES]" + fi +} + echo "# This file is autogenerated by the configure script" > Config check_pkg_config @@ -238,6 +258,7 @@ check_tpacket check_libnf_ct check_ncurses check_libgeoip +check_zlib if [ "$MISSING_DEFS" == "1" ] ; then echo "[!] Some libraries or header definitions are missing or too old." |