common/autoconf/configure

changeset 2204
0e87966d7ff1
parent 1323
d22ee7172ab2
child 2206
7ba4e17574e0
     1.1 --- a/common/autoconf/configure	Sun Mar 18 15:15:36 2018 -0700
     1.2 +++ b/common/autoconf/configure	Tue Mar 20 09:19:10 2018 -0700
     1.3 @@ -125,15 +125,23 @@
     1.4    case $conf_option in
     1.5      --openjdk-target=*)
     1.6        conf_openjdk_target=`expr "X$conf_option" : '[^=]*=\(.*\)'`
     1.7 -      continue ;;
     1.8 +      ;;
     1.9      --debug-configure)
    1.10        if test "x$conf_debug_configure" != xrecursive; then
    1.11          conf_debug_configure=true
    1.12          export conf_debug_configure
    1.13        fi
    1.14 -      continue ;;
    1.15 +      ;;
    1.16 +    [^-]*=*)
    1.17 +      # Add name of variable to CONFIGURE_OVERRIDDEN_VARIABLES list inside !...!.
    1.18 +      conf_env_var=`expr "x$conf_option" : 'x\([^=]*\)='`
    1.19 +      CONFIGURE_OVERRIDDEN_VARIABLES="$CONFIGURE_OVERRIDDEN_VARIABLES!$conf_env_var!"
    1.20 +      # ... and then process argument as usual
    1.21 +      conf_processed_arguments=("${conf_processed_arguments[@]}" "$conf_option")
    1.22 +      ;;
    1.23      *)
    1.24 -      conf_processed_arguments=("${conf_processed_arguments[@]}" "$conf_option") ;;
    1.25 +      conf_processed_arguments=("${conf_processed_arguments[@]}" "$conf_option")
    1.26 +      ;;
    1.27    esac
    1.28  
    1.29    case $conf_option in
    1.30 @@ -216,6 +224,9 @@
    1.31  
    1.32  Please be aware that, when cross-compiling, the OpenJDK configure script will
    1.33  generally use 'target' where autoconf traditionally uses 'host'.
    1.34 +
    1.35 +Also note that variables must be passed on the command line. Variables in the
    1.36 +environment will generally be ignored, unlike traditional autoconf scripts.
    1.37  EOT
    1.38    fi
    1.39  else

mercurial