common/autoconf/generated-configure.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hs_021317 Sdiff common/autoconf

common/autoconf/generated-configure.sh

Print this page




5153 
5154 
5155 
5156 
5157 
5158 
5159 
5160 
5161 
5162 
5163 
5164 
5165 
5166 
5167 # This line needs to be here, verbatim, after all includes and the dummy hook
5168 # definitions. It is replaced with custom functionality when building
5169 # custom sources.
5170 #CUSTOM_AUTOCONF_INCLUDE
5171 
5172 # Do not change or remove the following line, it is needed for consistency checks:
5173 DATE_WHEN_GENERATED=1487032350
5174 
5175 ###############################################################################
5176 #
5177 # Initialization / Boot-strapping
5178 #
5179 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5180 # thus it jumps back and forth, each time gaining something needed later on.
5181 #
5182 ###############################################################################
5183 
5184 # If we are requested to print additional help, do that and then exit.
5185 # This must be the very first call.
5186 
5187   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5188 
5189     # Print available toolchains
5190     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5191     $PRINTF "Which are valid to use depends on the build platform.\n"
5192     for toolchain in $VALID_TOOLCHAINS_all; do
5193       # Use indirect variable referencing


52626 
52627 
52628   if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then
52629     ENABLE_AOT="true"
52630   elif test "x$enable_aot" = "xyes"; then
52631     ENABLE_AOT="true"
52632   elif test "x$enable_aot" = "xno"; then
52633     ENABLE_AOT="false"
52634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5
52635 $as_echo_n "checking if aot should be enabled... " >&6; }
52636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
52637 $as_echo "no, forced" >&6; }
52638   else
52639     as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5
52640   fi
52641 
52642   if test "x$ENABLE_AOT" = "xtrue"; then
52643     # Only enable AOT on linux-X64.
52644     if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = "xlinux-x86_64"; then
52645       if test -e "$HOTSPOT_TOPDIR/src/jdk.aot"; then
52646         if test -e "$HOTSPOT_TOPDIR/src/jdk.vm.compiler"; then
52647           ENABLE_AOT="true"
52648         else
52649           ENABLE_AOT="false"
52650           if test "x$enable_aot" = "xyes"; then
52651             as_fn_error $? "Cannot build AOT without hotspot/src/jdk.vm.compiler sources. Remove --enable-aot." "$LINENO" 5
52652           fi
52653         fi
52654       else
52655         ENABLE_AOT="false"
52656         if test "x$enable_aot" = "xyes"; then
52657           as_fn_error $? "Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5
52658         fi
52659       fi
52660     else
52661       ENABLE_AOT="false"
52662       if test "x$enable_aot" = "xyes"; then
52663         as_fn_error $? "AOT is currently only supported on Linux-x86_64. Remove --enable-aot." "$LINENO" 5
52664       fi
52665     fi
52666   fi
52667 
52668 
52669 
52670 
52671   # Check whether --enable-hotspot-gtest was given.


64362     if   [[ " $JVM_FEATURES " =~ " zero " ]]  ; then
64363       as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5
64364     fi
64365   fi
64366 
64367   if !   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
64368     if   [[ " $JVM_FEATURES " =~ " shark " ]]  ; then
64369       as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5
64370     fi
64371   fi
64372 
64373   # Only enable jvmci on x86_64, sparcv9 and aarch64.
64374   if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
64375      test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
64376      test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
64377     JVM_FEATURES_jvmci="jvmci"
64378   else
64379     JVM_FEATURES_jvmci=""
64380   fi
64381 
64382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.vm.compiler should be built" >&5
64383 $as_echo_n "checking if jdk.vm.compiler should be built... " >&6; }
64384   if   [[ " $JVM_FEATURES " =~ " graal " ]]  ; then
64385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
64386 $as_echo "yes, forced" >&6; }
64387     if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then
64388       as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5
64389     fi
64390     INCLUDE_GRAAL="true"
64391   else
64392     # By default enable graal build where AOT is available
64393     if test "x$ENABLE_AOT" = "xtrue"; then
64394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64395 $as_echo "yes" >&6; }
64396       JVM_FEATURES_graal="graal"
64397       INCLUDE_GRAAL="true"
64398     else
64399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64400 $as_echo "no" >&6; }
64401       JVM_FEATURES_graal=""
64402       INCLUDE_GRAAL="false"
64403     fi




5153 
5154 
5155 
5156 
5157 
5158 
5159 
5160 
5161 
5162 
5163 
5164 
5165 
5166 
5167 # This line needs to be here, verbatim, after all includes and the dummy hook
5168 # definitions. It is replaced with custom functionality when building
5169 # custom sources.
5170 #CUSTOM_AUTOCONF_INCLUDE
5171 
5172 # Do not change or remove the following line, it is needed for consistency checks:
5173 DATE_WHEN_GENERATED=1487037430
5174 
5175 ###############################################################################
5176 #
5177 # Initialization / Boot-strapping
5178 #
5179 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5180 # thus it jumps back and forth, each time gaining something needed later on.
5181 #
5182 ###############################################################################
5183 
5184 # If we are requested to print additional help, do that and then exit.
5185 # This must be the very first call.
5186 
5187   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5188 
5189     # Print available toolchains
5190     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5191     $PRINTF "Which are valid to use depends on the build platform.\n"
5192     for toolchain in $VALID_TOOLCHAINS_all; do
5193       # Use indirect variable referencing


52626 
52627 
52628   if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then
52629     ENABLE_AOT="true"
52630   elif test "x$enable_aot" = "xyes"; then
52631     ENABLE_AOT="true"
52632   elif test "x$enable_aot" = "xno"; then
52633     ENABLE_AOT="false"
52634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5
52635 $as_echo_n "checking if aot should be enabled... " >&6; }
52636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5
52637 $as_echo "no, forced" >&6; }
52638   else
52639     as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5
52640   fi
52641 
52642   if test "x$ENABLE_AOT" = "xtrue"; then
52643     # Only enable AOT on linux-X64.
52644     if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = "xlinux-x86_64"; then
52645       if test -e "$HOTSPOT_TOPDIR/src/jdk.aot"; then
52646         if test -e "$HOTSPOT_TOPDIR/src/jdk.internal.vm.compiler"; then
52647           ENABLE_AOT="true"
52648         else
52649           ENABLE_AOT="false"
52650           if test "x$enable_aot" = "xyes"; then
52651             as_fn_error $? "Cannot build AOT without hotspot/src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5
52652           fi
52653         fi
52654       else
52655         ENABLE_AOT="false"
52656         if test "x$enable_aot" = "xyes"; then
52657           as_fn_error $? "Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5
52658         fi
52659       fi
52660     else
52661       ENABLE_AOT="false"
52662       if test "x$enable_aot" = "xyes"; then
52663         as_fn_error $? "AOT is currently only supported on Linux-x86_64. Remove --enable-aot." "$LINENO" 5
52664       fi
52665     fi
52666   fi
52667 
52668 
52669 
52670 
52671   # Check whether --enable-hotspot-gtest was given.


64362     if   [[ " $JVM_FEATURES " =~ " zero " ]]  ; then
64363       as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5
64364     fi
64365   fi
64366 
64367   if !   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
64368     if   [[ " $JVM_FEATURES " =~ " shark " ]]  ; then
64369       as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5
64370     fi
64371   fi
64372 
64373   # Only enable jvmci on x86_64, sparcv9 and aarch64.
64374   if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \
64375      test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \
64376      test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then
64377     JVM_FEATURES_jvmci="jvmci"
64378   else
64379     JVM_FEATURES_jvmci=""
64380   fi
64381 
64382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5
64383 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; }
64384   if   [[ " $JVM_FEATURES " =~ " graal " ]]  ; then
64385     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5
64386 $as_echo "yes, forced" >&6; }
64387     if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then
64388       as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5
64389     fi
64390     INCLUDE_GRAAL="true"
64391   else
64392     # By default enable graal build where AOT is available
64393     if test "x$ENABLE_AOT" = "xtrue"; then
64394       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
64395 $as_echo "yes" >&6; }
64396       JVM_FEATURES_graal="graal"
64397       INCLUDE_GRAAL="true"
64398     else
64399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
64400 $as_echo "no" >&6; }
64401       JVM_FEATURES_graal=""
64402       INCLUDE_GRAAL="false"
64403     fi


common/autoconf/generated-configure.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File