diff --git a/configure b/configure index a660a17e..501f51ba 100755 --- a/configure +++ b/configure @@ -76,6 +76,7 @@ RCFLAGS= RCOBJS= STRIP= ARCHS= +PC_CFLAGS= prefix=${prefix-/usr/local} exec_prefix=${exec_prefix-'${prefix}'} bindir=${bindir-'${exec_prefix}/bin'} @@ -2140,6 +2141,10 @@ if test -n "$EMU_RUN"; then echo "Using cross-compile emulator: $EMU_RUN" fi +if test $gzfileops -eq 1; then + PC_CFLAGS="-DWITH_GZFILEOP" +fi + # Generate Makefile in test dir mkdir -p test sed < $SRCDIR/test/Makefile.in " @@ -2182,6 +2187,7 @@ sed < $SRCDIR/zlib.pc.in " " | sed -e " s/\@VERSION\@/$VER/g; s/\@SUFFIX\@/$SUFFIX/g; +s/\@PKG_CONFIG_CFLAGS\@/$PC_CFLAGS/g; " > ${LIBNAME2}.pc # done diff --git a/zlib.pc.in b/zlib.pc.in index a0678fbe..45b35989 100644 --- a/zlib.pc.in +++ b/zlib.pc.in @@ -11,4 +11,4 @@ Version: @VERSION@ Requires: Libs: -L${libdir} -L${sharedlibdir} -lz@SUFFIX@ -Cflags: -I${includedir} +Cflags: -I${includedir} @PKG_CONFIG_CFLAGS@