aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <git@madler.net>2026-02-08 10:54:46 -0800
committerMark Adler <git@madler.net>2026-02-09 07:09:52 -0800
commit8371b539e2a4b2fb8470aacf867e230f256f11e4 (patch)
treeb40af27e8c9242efb4dc8e1ead52cde5bbe3c7d4 /configure
parent8ad678edb44570303996db21c99cba44d0b83d59 (diff)
downloadzlib-8371b539e2a4b2fb8470aacf867e230f256f11e4.tar.gz
zlib-8371b539e2a4b2fb8470aacf867e230f256f11e4.tar.bz2
zlib-8371b539e2a4b2fb8470aacf867e230f256f11e4.zip
Allow --const to be used in configure without --warn.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure b/configure
index daa4aa73..27c77c08 100755
--- a/configure
+++ b/configure
@@ -252,11 +252,13 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then
252 SFLAGS="${SFLAGS} -m64" 252 SFLAGS="${SFLAGS} -m64"
253 fi 253 fi
254 if test "$warn" -eq 1; then 254 if test "$warn" -eq 1; then
255 if test "$zconst" -eq 1; then 255 CFLAGS="${CFLAGS} -Wall -Wextra"
256 CFLAGS="${CFLAGS} -Wall -Wextra -Wcast-qual -DZLIB_CONST" 256 fi
257 else 257 if test "$zconst" -eq 1; then
258 CFLAGS="${CFLAGS} -Wall -Wextra" 258 if test "$warn" -eq 1; then
259 CFLAGS="${CFLAGS} -Wcast-qual"
259 fi 260 fi
261 CFLAGS="${CFLAGS} -DZLIB_CONST"
260 fi 262 fi
261 if test $address -eq 1; then 263 if test $address -eq 1; then
262 CFLAGS="${CFLAGS} -g -fsanitize=address -fno-omit-frame-pointer" 264 CFLAGS="${CFLAGS} -g -fsanitize=address -fno-omit-frame-pointer"