Skip to content

Commit df8c6df

Browse files
committed
8010185: Build should support --with-override-nashorn
Reviewed-by: erikj
1 parent e6f97e8 commit df8c6df

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

common/autoconf/generated-configure.sh

+19-2
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,7 @@ with_override_corba
10311031
with_override_jaxp
10321032
with_override_jaxws
10331033
with_override_hotspot
1034+
with_override_nashorn
10341035
with_override_jdk
10351036
with_import_hotspot
10361037
with_msvcr_dll
@@ -1784,6 +1785,7 @@ Optional Packages:
17841785
--with-override-jaxp use this jaxp dir for the build
17851786
--with-override-jaxws use this jaxws dir for the build
17861787
--with-override-hotspot use this hotspot dir for the build
1788+
--with-override-nashorn use this nashorn dir for the build
17871789
--with-override-jdk use this jdk dir for the build
17881790
--with-import-hotspot import hotspot binaries from this jdk image or
17891791
hotspot build dist dir instead of building from
@@ -3818,7 +3820,7 @@ fi
38183820
#CUSTOM_AUTOCONF_INCLUDE
38193821

38203822
# Do not change or remove the following line, it is needed for consistency checks:
3821-
DATE_WHEN_GENERATED=1378914658
3823+
DATE_WHEN_GENERATED=1378975246
38223824

38233825
###############################################################################
38243826
#
@@ -16102,6 +16104,10 @@ if test "x$with_add_source_root" != x; then
1610216104
test -f $with_add_source_root/hotspot/make/Makefile; then
1610316105
as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5
1610416106
fi
16107+
if test -f $with_add_source_root/nashorn/makefiles/Makefile || \
16108+
test -f $with_add_source_root/nashorn/make/Makefile; then
16109+
as_fn_error $? "Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources." "$LINENO" 5
16110+
fi
1610516111
if test -f $with_add_source_root/jdk/makefiles/Makefile || \
1610616112
test -f $with_add_source_root/jdk/make/Makefile; then
1610716113
as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5
@@ -16137,6 +16143,10 @@ if test "x$with_override_source_root" != x; then
1613716143
test -f $with_override_source_root/hotspot/make/Makefile; then
1613816144
as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5
1613916145
fi
16146+
if test -f $with_override_source_root/nashorn/makefiles/Makefile || \
16147+
test -f $with_override_source_root/nashorn/make/Makefile; then
16148+
as_fn_error $? "Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override." "$LINENO" 5
16149+
fi
1614016150
if test -f $with_override_source_root/jdk/makefiles/Makefile || \
1614116151
test -f $with_override_source_root/jdk/make/Makefile; then
1614216152
as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5
@@ -16199,6 +16209,13 @@ fi
1619916209

1620016210

1620116211

16212+
# Check whether --with-override-nashorn was given.
16213+
if test "${with_override_nashorn+set}" = set; then :
16214+
withval=$with_override_nashorn;
16215+
fi
16216+
16217+
16218+
1620216219
# Check whether --with-override-jdk was given.
1620316220
if test "${with_override_jdk+set}" = set; then :
1620416221
withval=$with_override_jdk;
@@ -16276,7 +16293,7 @@ if test "x$with_override_nashorn" != x; then
1627616293
cd "$with_override_nashorn"
1627716294
NASHORN_TOPDIR="`pwd`"
1627816295
cd "$CURDIR"
16279-
if ! test -f $NASHORN_TOPDIR/makefiles/BuildNashorn.gmk; then
16296+
if ! test -f $NASHORN_TOPDIR/makefiles/Makefile; then
1628016297
as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5
1628116298
fi
1628216299
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5

common/autoconf/source-dirs.m4

+12-1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ if test "x$with_add_source_root" != x; then
101101
test -f $with_add_source_root/hotspot/make/Makefile; then
102102
AC_MSG_ERROR([Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources.])
103103
fi
104+
if test -f $with_add_source_root/nashorn/makefiles/Makefile || \
105+
test -f $with_add_source_root/nashorn/make/Makefile; then
106+
AC_MSG_ERROR([Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources.])
107+
fi
104108
if test -f $with_add_source_root/jdk/makefiles/Makefile || \
105109
test -f $with_add_source_root/jdk/make/Makefile; then
106110
AC_MSG_ERROR([Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources.])
@@ -136,6 +140,10 @@ if test "x$with_override_source_root" != x; then
136140
test -f $with_override_source_root/hotspot/make/Makefile; then
137141
AC_MSG_ERROR([Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override.])
138142
fi
143+
if test -f $with_override_source_root/nashorn/makefiles/Makefile || \
144+
test -f $with_override_source_root/nashorn/make/Makefile; then
145+
AC_MSG_ERROR([Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override.])
146+
fi
139147
if test -f $with_override_source_root/jdk/makefiles/Makefile || \
140148
test -f $with_override_source_root/jdk/make/Makefile; then
141149
AC_MSG_ERROR([Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override.])
@@ -177,6 +185,9 @@ AC_ARG_WITH(override-jaxws, [AS_HELP_STRING([--with-override-jaxws],
177185
AC_ARG_WITH(override-hotspot, [AS_HELP_STRING([--with-override-hotspot],
178186
[use this hotspot dir for the build])])
179187
188+
AC_ARG_WITH(override-nashorn, [AS_HELP_STRING([--with-override-nashorn],
189+
[use this nashorn dir for the build])])
190+
180191
AC_ARG_WITH(override-jdk, [AS_HELP_STRING([--with-override-jdk],
181192
[use this jdk dir for the build])])
182193
@@ -241,7 +252,7 @@ if test "x$with_override_nashorn" != x; then
241252
cd "$with_override_nashorn"
242253
NASHORN_TOPDIR="`pwd`"
243254
cd "$CURDIR"
244-
if ! test -f $NASHORN_TOPDIR/makefiles/BuildNashorn.gmk; then
255+
if ! test -f $NASHORN_TOPDIR/makefiles/Makefile; then
245256
AC_MSG_ERROR([You have to override nashorn with a full nashorn repo!])
246257
fi
247258
AC_MSG_CHECKING([if nashorn should be overridden])

0 commit comments

Comments
 (0)