configure: silently ignore auto-stuff options --build --host and friends

This commit is contained in:
blueness 2010-01-17 11:57:53 -05:00
parent 2e04c720dd
commit 2a5d424288

3
configure vendored
View File

@ -257,6 +257,9 @@ while [ $# -ne 0 ]; do
--with-*) set_tool "$1" "$2" && shift || shift 2;; --with-*) set_tool "$1" "$2" && shift || shift 2;;
--force) FORCE=1; shift;; --force) FORCE=1; shift;;
--help|-h) do_help; exit 0;; --help|-h) do_help; exit 0;;
# Skip, auto-stuff compatibility
--build=*|--host=*|--infodir=*|--datadir=*|--sysconfdir=*|--localstatedir=*) shift;;
--build|--host|--infodir|--datadir|--sysconfdir|--localstatedir) shift 2;;
*) printf "Unrecognised option: '${1}'\n"; do_help; exit 1;; *) printf "Unrecognised option: '${1}'\n"; do_help; exit 1;;
esac esac
done done