From 42bda003a0df6c4b798ee1063a01c2ce0b2962e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Cabessa?= Date: Sun, 25 Apr 2010 01:33:10 +0200 Subject: [PATCH] configure: add ignored options for compatibility. gentoo's ebuild script expects 2 more options for configure: --host (same format as --build) --datadir --- configure | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/configure b/configure index ec8c3fd3..c522ad85 100755 --- a/configure +++ b/configure @@ -77,7 +77,9 @@ Additional options are accepted for compatibility with other configure-script calling conventions, but don't do anything yet: --build=-- Currently ignored + --host=-- Currently ignored --infodir=DIR Currently ignored + --datadir=DIR Currently ignored --localstatedir=DIR Currently ignored --libexecdir=DIR Currently ignored --disable-maintainer-mode Currently ignored @@ -119,8 +121,26 @@ for option; do build_option=${build_option#*-} build_vendor=${build_option%%-*} build_os=${build_option#*-} + elif [ "${option%%=*}" = '--host' ] ; then + host_option="${option#*=}" + case ${host_option} in + *-*-*) ;; + *) + echo "Unrecognized value for --host option: ${host_option}" + echo "Should be: --" + echo "See:" + echo " $0 --help" + echo "" + exit 1 + esac + host_cpu=${host_option%%-*} + host_option=${host_option#*-} + host_vendor=${host_option%%-*} + host_os=${host_option#*-} elif [ "${option%%=*}" = '--infodir' ] ; then true + elif [ "${option%%=*}" = '--datadir' ] ; then + true elif [ "${option%%=*}" = '--localstatedir' ] ; then true elif [ "${option%%=*}" = '--libexecdir' ] ; then -- 2.43.0