Ignore unknown options in configure.

This commit is contained in:
Mark Adler 2024-01-23 10:59:41 -08:00
parent 8a76f02e0e
commit b289a50fc5
1 changed files with 5 additions and 4 deletions

9
configure vendored
View File

@ -91,6 +91,7 @@ warn=0
debug=0
address=0
memory=0
unknown=0
old_cc="$CC"
old_cflags="$CFLAGS"
OBJC='$(OBJZ) $(OBJG)'
@ -144,12 +145,12 @@ case "$1" in
--sanitize) address=1; shift ;;
--address) address=1; shift ;;
--memory) memory=1; shift ;;
*)
echo "unknown option: $1" | tee -a configure.log
echo "$0 --help for help" | tee -a configure.log
leave 1;;
*) unknown=1; echo "unknown option ignored: $1" | tee -a configure.log; shift;;
esac
done
if test $unknown -eq 1; then
echo "$0 --help for help" | tee -a configure.log
fi
# temporary file name
test=ztest$$