aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2024-01-23 10:59:41 -0800
committerMark Adler <madler@alumni.caltech.edu>2024-01-23 10:59:41 -0800
commitb289a50fc5cdbe28a7c058754287650b4ef3c02b (patch)
treedf064416e83744181369cfdb1c4fca58747d2968 /configure
parent8a76f02e0e05860f72a269d305a0e11af224f609 (diff)
downloadzlib-b289a50fc5cdbe28a7c058754287650b4ef3c02b.tar.gz
zlib-b289a50fc5cdbe28a7c058754287650b4ef3c02b.tar.bz2
zlib-b289a50fc5cdbe28a7c058754287650b4ef3c02b.zip
Ignore unknown options in configure.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure b/configure
index c55098a..437fcaa 100755
--- a/configure
+++ b/configure
@@ -91,6 +91,7 @@ warn=0
91debug=0 91debug=0
92address=0 92address=0
93memory=0 93memory=0
94unknown=0
94old_cc="$CC" 95old_cc="$CC"
95old_cflags="$CFLAGS" 96old_cflags="$CFLAGS"
96OBJC='$(OBJZ) $(OBJG)' 97OBJC='$(OBJZ) $(OBJG)'
@@ -144,12 +145,12 @@ case "$1" in
144 --sanitize) address=1; shift ;; 145 --sanitize) address=1; shift ;;
145 --address) address=1; shift ;; 146 --address) address=1; shift ;;
146 --memory) memory=1; shift ;; 147 --memory) memory=1; shift ;;
147 *) 148 *) unknown=1; echo "unknown option ignored: $1" | tee -a configure.log; shift;;
148 echo "unknown option: $1" | tee -a configure.log
149 echo "$0 --help for help" | tee -a configure.log
150 leave 1;;
151 esac 149 esac
152done 150done
151if test $unknown -eq 1; then
152 echo "$0 --help for help" | tee -a configure.log
153fi
153 154
154# temporary file name 155# temporary file name
155test=ztest$$ 156test=ztest$$