X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=configure.ac;h=5f80aa963fa8488bd4c3e77ff2b0a14bfdf8a20e;hb=ffedf5114c8bdd5b024fb87e23b935e7d90c6ff3;hp=6ef9df672612724b981619d04b457d6ddc8eb992;hpb=8b932a71067075d3e0fcf99fc5bce499df08d96f;p=thirdparty%2Fgcc.git diff --git a/configure.ac b/configure.ac index 6ef9df672612..5f80aa963fa8 100644 --- a/configure.ac +++ b/configure.ac @@ -2969,10 +2969,18 @@ if test "$silent" = yes; then fi baseargs="$baseargs --disable-option-checking" +# Record and document user additions to sub configure arguments. +AC_ARG_VAR([build_configargs], + [additional configure arguments for build directories]) +AC_ARG_VAR([host_configargs], + [additional configure arguments for host directories]) +AC_ARG_VAR([target_configargs], + [additional configure arguments for target directories]) + # For the build-side libraries, we just need to pretend we're native, # and not use the same cache file. Multilibs are neither needed nor # desired. -build_configargs="--cache-file=../config.cache ${baseargs}" +build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" # For host modules, accept cache file option, or specification as blank. case "${cache_file}" in @@ -2986,9 +2994,9 @@ esac # Host dirs don't like to share a cache file either, horribly enough. # This seems to be due to autoconf 2.5x stupidity. -host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}" +host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" -target_configargs=${baseargs} +target_configargs="$target_configargs ${baseargs}" # Passing a --with-cross-host argument lets the target libraries know # whether they are being built with a cross-compiler or being built