mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
configure: add ignored options for compatibility.
gentoo's ebuild script expects 2 more options for configure: --host (same format as --build) --datadir
This commit is contained in:
parent
38c35f8123
commit
42bda003a0
1 changed files with 20 additions and 0 deletions
20
configure
vendored
20
configure
vendored
|
@ -77,7 +77,9 @@ Additional options are accepted for compatibility with other
|
||||||
configure-script calling conventions, but don't do anything yet:
|
configure-script calling conventions, but don't do anything yet:
|
||||||
|
|
||||||
--build=<cpu>-<vendor>-<os> Currently ignored
|
--build=<cpu>-<vendor>-<os> Currently ignored
|
||||||
|
--host=<cpu>-<vendor>-<os> Currently ignored
|
||||||
--infodir=DIR Currently ignored
|
--infodir=DIR Currently ignored
|
||||||
|
--datadir=DIR Currently ignored
|
||||||
--localstatedir=DIR Currently ignored
|
--localstatedir=DIR Currently ignored
|
||||||
--libexecdir=DIR Currently ignored
|
--libexecdir=DIR Currently ignored
|
||||||
--disable-maintainer-mode Currently ignored
|
--disable-maintainer-mode Currently ignored
|
||||||
|
@ -119,8 +121,26 @@ for option; do
|
||||||
build_option=${build_option#*-}
|
build_option=${build_option#*-}
|
||||||
build_vendor=${build_option%%-*}
|
build_vendor=${build_option%%-*}
|
||||||
build_os=${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: <cpu>-<vendor>-<os>"
|
||||||
|
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
|
elif [ "${option%%=*}" = '--infodir' ] ; then
|
||||||
true
|
true
|
||||||
|
elif [ "${option%%=*}" = '--datadir' ] ; then
|
||||||
|
true
|
||||||
elif [ "${option%%=*}" = '--localstatedir' ] ; then
|
elif [ "${option%%=*}" = '--localstatedir' ] ; then
|
||||||
true
|
true
|
||||||
elif [ "${option%%=*}" = '--libexecdir' ] ; then
|
elif [ "${option%%=*}" = '--libexecdir' ] ; then
|
||||||
|
|
Loading…
Reference in a new issue