[configure] Propagate -DWITH_GZFILEOP to pkgconfig.

This commit is contained in:
Mika T. Lindqvist 2023-11-07 19:06:21 +02:00 committed by Hans Kristian Rosbach
parent 0560a3a63d
commit 6592accb25
2 changed files with 7 additions and 1 deletions

6
configure vendored
View File

@ -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

View File

@ -11,4 +11,4 @@ Version: @VERSION@
Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz@SUFFIX@
Cflags: -I${includedir}
Cflags: -I${includedir} @PKG_CONFIG_CFLAGS@