251 AC_DEFUN_ONCE([SRCDIRS_SETUP_OUTPUT_DIRS], |
251 AC_DEFUN_ONCE([SRCDIRS_SETUP_OUTPUT_DIRS], |
252 [ |
252 [ |
253 BUILD_OUTPUT="$OUTPUT_ROOT" |
253 BUILD_OUTPUT="$OUTPUT_ROOT" |
254 AC_SUBST(BUILD_OUTPUT) |
254 AC_SUBST(BUILD_OUTPUT) |
255 |
255 |
|
256 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" |
|
257 BUILD_HOTSPOT=true |
|
258 AC_SUBST(HOTSPOT_DIST) |
|
259 AC_SUBST(BUILD_HOTSPOT) |
|
260 AC_ARG_WITH(import-hotspot, [AS_HELP_STRING([--with-import-hotspot], |
|
261 [import hotspot binaries from this jdk image or hotspot build dist dir instead of building from source])]) |
|
262 if test "x$with_import_hotspot" != x; then |
|
263 CURDIR="$PWD" |
|
264 cd "$with_import_hotspot" |
|
265 HOTSPOT_DIST="`pwd`" |
|
266 cd "$CURDIR" |
|
267 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then |
|
268 AC_MSG_ERROR([You have to import hotspot from a full jdk image or hotspot build dist dir!]) |
|
269 fi |
|
270 AC_MSG_CHECKING([if hotspot should be imported]) |
|
271 AC_MSG_RESULT([yes from $HOTSPOT_DIST]) |
|
272 BUILD_HOTSPOT=false |
|
273 fi |
|
274 |
256 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" |
275 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" |
257 ]) |
276 ]) |