Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8
提交
70d670c3
D
dragonwell8
项目概览
openanolis
/
dragonwell8
通知
5
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
70d670c3
编写于
4月 10, 2018
作者:
K
kevinw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8034199: Add 'reconfigure' target for re-creating a configuration
Reviewed-by: ihse, erikj, tbell
上级
2236a51f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
64 addition
and
13 deletion
+64
-13
common/autoconf/basics.m4
common/autoconf/basics.m4
+0
-3
common/autoconf/configure
common/autoconf/configure
+49
-4
common/autoconf/generated-configure.sh
common/autoconf/generated-configure.sh
+1
-4
common/autoconf/spec.gmk.in
common/autoconf/spec.gmk.in
+3
-0
make/Main.gmk
make/Main.gmk
+11
-2
未找到文件。
common/autoconf/basics.m4
浏览文件 @
70d670c3
...
@@ -564,9 +564,6 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
...
@@ -564,9 +564,6 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
# You can run make from the OUTPUT_ROOT, or from the top-level Makefile
# You can run make from the OUTPUT_ROOT, or from the top-level Makefile
# which will look for generated configurations
# which will look for generated configurations
AC_CONFIG_FILES([$OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in])
AC_CONFIG_FILES([$OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in])
# Save the arguments given to us
echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
])
])
AC_DEFUN_ONCE([BASIC_SETUP_LOGGING],
AC_DEFUN_ONCE([BASIC_SETUP_LOGGING],
...
...
common/autoconf/configure
浏览文件 @
70d670c3
...
@@ -32,7 +32,6 @@ fi
...
@@ -32,7 +32,6 @@ fi
export
CONFIG_SHELL
=
$BASH
export
CONFIG_SHELL
=
$BASH
export
_as_can_reexec
=
no
export
_as_can_reexec
=
no
CONFIGURE_COMMAND_LINE
=
"
$@
"
conf_script_dir
=
`
dirname
$0
`
conf_script_dir
=
`
dirname
$0
`
if
[
"
$CUSTOM_CONFIG_DIR
"
=
""
]
;
then
if
[
"
$CUSTOM_CONFIG_DIR
"
=
""
]
;
then
...
@@ -114,14 +113,40 @@ fi
...
@@ -114,14 +113,40 @@ fi
if
test
"x
$conf_debug_configure
"
=
xtrue
;
then
if
test
"x
$conf_debug_configure
"
=
xtrue
;
then
conf_debug_configure
=
recursive
conf_debug_configure
=
recursive
fi
fi
###
###
### Process command-line arguments
### Process command-line arguments
###
###
# Returns a shell-escaped version of the argument given.
function
shell_quote
()
{
if
[[
-n
"
$1
"
]]
;
then
# Uses only shell-safe characters? No quoting needed.
# '=' is a zsh meta-character, but only in word-initial position.
if
[[
"
$1
"
=
~ ^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.:,%/+
=
_-]+
$
&&
!
"
$1
"
=
~ ^
=
]]
;
then
quoted
=
"
$1
"
else
if
[[
"
$1
"
=
~
[
\'
!]
]]
;
then
# csh does history expansion within single quotes, but not
# when backslash-escaped!
local
quoted_quote
=
"'
\\
''"
quoted_exclam
=
"'
\\
!'"
word
=
"
${
1
//\
'/${quoted_quote}}"
word="${1//\!/${quoted_exclam}}"
fi
quoted="'
$1
'"
fi
echo "$quoted"
fi
}
conf_processed_arguments=()
conf_processed_arguments=()
conf_quoted_arguments=()
conf_openjdk_target=
conf_openjdk_target=
for conf_option
for conf_option
do
do
# Process (and remove) our own extensions that will not be passed to autoconf
case $conf_option in
case $conf_option in
--openjdk-target=*)
--openjdk-target=*)
conf_openjdk_target=`expr "X$conf_option" : '
[^=]*=\(.*\)
'`
conf_openjdk_target=`expr "X$conf_option" : '
[^=]*=\(.*\)
'`
...
@@ -132,18 +157,35 @@ do
...
@@ -132,18 +157,35 @@ do
export conf_debug_configure
export conf_debug_configure
fi
fi
;;
;;
*)
conf_processed_arguments=("${conf_processed_arguments[@]}" "$conf_option")
;;
esac
# Store all variables overridden on the command line
case $conf_option in
[^-]*=*)
[^-]*=*)
# Add name of variable to CONFIGURE_OVERRIDDEN_VARIABLES list inside !...!.
# Add name of variable to CONFIGURE_OVERRIDDEN_VARIABLES list inside !...!.
conf_env_var=`expr "x$conf_option" : '
x
\([^=]*\)=
'`
conf_env_var=`expr "x$conf_option" : '
x
\([^=]*\)=
'`
CONFIGURE_OVERRIDDEN_VARIABLES="$CONFIGURE_OVERRIDDEN_VARIABLES!$conf_env_var!"
CONFIGURE_OVERRIDDEN_VARIABLES="$CONFIGURE_OVERRIDDEN_VARIABLES!$conf_env_var!"
# ... and then process argument as usual
;;
conf_processed_arguments
=(
"
${
conf_processed_arguments
[@]
}
"
"
$conf_option
"
)
esac
# Save the arguments, intelligently quoted for CONFIGURE_COMMAND_LINE.
case $conf_option in
*=*)
conf_option_name=`expr "x$conf_option" : '
x
\([^=]*\)=
'`
conf_option_name=$(shell_quote "$conf_option_name")
conf_option_value=`expr "x$conf_option" : '
x
[^=]*=\(.*\)
'`
conf_option_value=$(shell_quote "$conf_option_value")
conf_quoted_arguments=("${conf_quoted_arguments[@]}" "$conf_option_name=$conf_option_value")
;;
;;
*)
*)
conf_
processed_arguments
=(
"
${
conf_processed_arguments
[@]
}
"
"
$conf_option
"
)
conf_
quoted_arguments=("${conf_quoted_arguments[@]}" "$(shell_quote "$conf_option")
")
;;
;;
esac
esac
# Check for certain autoconf options that require extra action
case $conf_option in
case $conf_option in
-build | --build | --buil | --bui | --bu |-build=* | --build=* | --buil=* | --bui=* | --bu=*)
-build | --build | --buil | --bui | --bu |-build=* | --build=* | --buil=* | --bui=* | --bu=*)
conf_legacy_crosscompile="$conf_legacy_crosscompile $conf_option" ;;
conf_legacy_crosscompile="$conf_legacy_crosscompile $conf_option" ;;
...
@@ -156,6 +198,9 @@ do
...
@@ -156,6 +198,9 @@ do
esac
esac
done
done
# Save the quoted command line
CONFIGURE_COMMAND_LINE="${conf_quoted_arguments[@]}"
if test "x$conf_legacy_crosscompile" != "x"; then
if test "x$conf_legacy_crosscompile" != "x"; then
if test "x$conf_openjdk_target" != "x"; then
if test "x$conf_openjdk_target" != "x"; then
echo "Error: Specifying --openjdk-target together with autoconf"
echo "Error: Specifying --openjdk-target together with autoconf"
...
...
common/autoconf/generated-configure.sh
浏览文件 @
70d670c3
...
@@ -4219,7 +4219,7 @@ TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
...
@@ -4219,7 +4219,7 @@ TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
#CUSTOM_AUTOCONF_INCLUDE
#CUSTOM_AUTOCONF_INCLUDE
# Do not change or remove the following line, it is needed for consistency checks:
# Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1523
096909
DATE_WHEN_GENERATED=1523
371497
###############################################################################
###############################################################################
#
#
...
@@ -15007,9 +15007,6 @@ $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is inval
...
@@ -15007,9 +15007,6 @@ $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is inval
ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
# Save the arguments given to us
echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
# Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
# Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
common/autoconf/spec.gmk.in
浏览文件 @
70d670c3
...
@@ -46,6 +46,9 @@ define NEWLINE
...
@@ -46,6 +46,9 @@ define NEWLINE
endef
endef
# The command line given to configure.
CONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@
# A self-referential reference to this file.
# A self-referential reference to this file.
SPEC:=@SPEC@
SPEC:=@SPEC@
...
...
make/Main.gmk
浏览文件 @
70d670c3
...
@@ -71,8 +71,9 @@ all: images docs
...
@@ -71,8 +71,9 @@ all: images docs
# Setup a rule for SPEC file that fails if executed. This check makes sure the configuration
# Setup a rule for SPEC file that fails if executed. This check makes sure the configuration
# is up to date after changes to configure
# is up to date after changes to configure
$(SPEC): $(wildcard $(SRC_ROOT)/common/autoconf/*)
$(SPEC): $(wildcard $(SRC_ROOT)/common/autoconf/*)
@$(ECHO) ERROR: $(SPEC) is not up to date
@$(ECHO) "ERROR: $(SPEC) is not up to date."
@$(ECHO) Please rerun configure!
@$(ECHO) "Please rerun configure! Easiest way to do this is by running"
@$(ECHO) "'make reconfigure'."
@if test "x$(IGNORE_OLD_CONFIG)" != "xtrue"; then exit 1; fi
@if test "x$(IGNORE_OLD_CONFIG)" != "xtrue"; then exit 1; fi
start-make: $(SPEC)
start-make: $(SPEC)
...
@@ -230,6 +231,14 @@ clean-docs:
...
@@ -230,6 +231,14 @@ clean-docs:
$(call CleanComponent,docstemp)
$(call CleanComponent,docstemp)
clean-test:
clean-test:
$(call CleanComponent,testoutput)
$(call CleanComponent,testoutput)
reconfigure:
ifneq ($(CONFIGURE_COMMAND_LINE), )
@$(ECHO) "Re-running configure using arguments '$(CONFIGURE_COMMAND_LINE)'"
else
@$(ECHO) "Re-running configure using default settings"
endif
@( cd $(OUTPUT_ROOT) && $(BASH) $(TOPDIR)/configure "$(CONFIGURE_COMMAND_LINE)" )
.PHONY: langtools corba jaxp jaxws hotspot jdk nashorn images overlay-images install test docs
.PHONY: langtools corba jaxp jaxws hotspot jdk nashorn images overlay-images install test docs
.PHONY: langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only nashorn-only images-only overlay-images-only install-only test-only docs-only
.PHONY: langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only nashorn-only images-only overlay-images-only install-only test-only docs-only
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录