< prev index next >

common/autoconf/boot-jdk.m4

Print this page




 288     AC_MSG_NOTICE([Could not find a valid Boot JDK. $HELP_MSG])
 289     AC_MSG_NOTICE([This might be fixed by explicitely setting --with-boot-jdk])
 290     AC_MSG_ERROR([Cannot continue])
 291   fi
 292 
 293   AC_SUBST(BOOT_JDK)
 294 
 295   # Setup tools from the Boot JDK.
 296   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVA, java)
 297   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVAC, javac)
 298   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVAH, javah)
 299   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAR, jar)
 300   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JARSIGNER, jarsigner)
 301 
 302   # Finally, set some other options...
 303 
 304   # When compiling code to be executed by the Boot JDK, force jdk8 compatibility.
 305   BOOT_JDK_SOURCETARGET="-source 8 -target 8"
 306   AC_SUBST(BOOT_JDK_SOURCETARGET)
 307 
 308   ADD_JVM_ARG_IF_OK([-Xpatch:foo=bar], dummy, [$JAVA])
 309   AC_MSG_CHECKING([if Boot JDK supports modules])
 310   if test "x$JVM_ARG_OK" = "xtrue"; then
 311     AC_MSG_RESULT([yes])
 312     BOOT_JDK_MODULAR="true"
 313   else
 314     AC_MSG_RESULT([no])
 315     BOOT_JDK_MODULAR="false"
 316   fi
 317   AC_SUBST(BOOT_JDK_MODULAR)
 318 
 319   AC_SUBST(JAVAC_FLAGS)
 320 
 321   # Check if the boot jdk is 32 or 64 bit
 322   if "$JAVA" -d64 -version > /dev/null 2>&1; then
 323     BOOT_JDK_BITS="64"
 324   else
 325     BOOT_JDK_BITS="32"
 326   fi
 327   AC_MSG_CHECKING([if Boot JDK is 32 or 64 bits])
 328   AC_MSG_RESULT([$BOOT_JDK_BITS])




 288     AC_MSG_NOTICE([Could not find a valid Boot JDK. $HELP_MSG])
 289     AC_MSG_NOTICE([This might be fixed by explicitely setting --with-boot-jdk])
 290     AC_MSG_ERROR([Cannot continue])
 291   fi
 292 
 293   AC_SUBST(BOOT_JDK)
 294 
 295   # Setup tools from the Boot JDK.
 296   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVA, java)
 297   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVAC, javac)
 298   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAVAH, javah)
 299   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JAR, jar)
 300   BOOTJDK_CHECK_TOOL_IN_BOOTJDK(JARSIGNER, jarsigner)
 301 
 302   # Finally, set some other options...
 303 
 304   # When compiling code to be executed by the Boot JDK, force jdk8 compatibility.
 305   BOOT_JDK_SOURCETARGET="-source 8 -target 8"
 306   AC_SUBST(BOOT_JDK_SOURCETARGET)
 307 
 308   ADD_JVM_ARG_IF_OK([--patch-module foo=bar], dummy, [$JAVA])
 309   AC_MSG_CHECKING([if Boot JDK supports modules])
 310   if test "x$JVM_ARG_OK" = "xtrue"; then
 311     AC_MSG_RESULT([yes])
 312     BOOT_JDK_MODULAR="true"
 313   else
 314     AC_MSG_RESULT([no])
 315     BOOT_JDK_MODULAR="false"
 316   fi
 317   AC_SUBST(BOOT_JDK_MODULAR)
 318 
 319   AC_SUBST(JAVAC_FLAGS)
 320 
 321   # Check if the boot jdk is 32 or 64 bit
 322   if "$JAVA" -d64 -version > /dev/null 2>&1; then
 323     BOOT_JDK_BITS="64"
 324   else
 325     BOOT_JDK_BITS="32"
 326   fi
 327   AC_MSG_CHECKING([if Boot JDK is 32 or 64 bits])
 328   AC_MSG_RESULT([$BOOT_JDK_BITS])


< prev index next >