diff --git a/README-builds.html b/README-builds.html index c6ffb837ec6..71c05c0fbf4 100644 --- a/README-builds.html +++ b/README-builds.html @@ -1210,19 +1210,18 @@
- Q: The
configurefile looks horrible! + Q: Thegenerated-configure.shfile looks horrible! How are you going to edit it?
- A: Theconfigurefile is generated (think + A: Thegenerated-configure.shfile is generated (think "compiled") by the autoconf tools. The source code is - inconfigure.acvarious .m4 files in common/autoconf, - which are - much more readable. + inconfigure.acand various .m4 files in common/autoconf, + which are much more readable.Q: - Why is the
configurefile checked in, + Why is thegenerated-configure.shfile checked in, if it is generated?
A: @@ -1237,13 +1236,29 @@Q: Do you require a specific version of autoconf for regenerating -
+ +configure? +generated-configure.sh?
A: - Currently, no, but this will likely be the case when things have - settled down a bit more. (The reason for this is to avoid - large spurious changes inconfigure- in commits that made small changes toconfigure.ac). + Yes, version 2.69 is required and should be easy + enough to aquire on all supported operating + systems. The reason for this is to avoid + large spurious changes ingenerated-configure.sh. ++ Q: + How do you regenerate
generated-configure.sh+ after making changes to the input files? +
+ A: + Regneratinggenerated-configure.sh+ should always be done using the + scriptcommon/autoconf/autogen.shto + ensure that the correct files get updated. This + script should also be run after mercurial tries to + mergegenerated-configure.shas a + merge of the generated file is not guaranteed to + be correct.diff --git a/common/autoconf/autogen.sh b/common/autoconf/autogen.sh index 35ed2a5813a..96768aa06e2 100644 --- a/common/autoconf/autogen.sh +++ b/common/autoconf/autogen.sh @@ -44,10 +44,8 @@ fi custom_hook=$custom_script_dir/custom-hook.m4 AUTOCONF="`which autoconf 2> /dev/null | grep -v '^no autoconf in'`" -AUTOCONF_267="`which autoconf-2.67 2> /dev/null | grep -v '^no autoconf-2.67 in'`" echo "Autoconf found: ${AUTOCONF}" -echo "Autoconf-2.67 found: ${AUTOCONF_267}" if test "x${AUTOCONF}" = x; then echo You need autoconf installed to be able to regenerate the configure script @@ -55,10 +53,6 @@ if test "x${AUTOCONF}" = x; then exit 1 fi -if test "x${AUTOCONF_267}" != x; then - AUTOCONF=${AUTOCONF_267}; -fi - echo Generating generated-configure.sh with ${AUTOCONF} cat $script_dir/configure.ac | sed -e "s|@DATE_WHEN_GENERATED@|$TIMESTAMP|" | ${AUTOCONF} -W all -I$script_dir - > $script_dir/generated-configure.sh rm -rf autom4te.cache diff --git a/common/autoconf/configure.ac b/common/autoconf/configure.ac index fcaf12fc422..274f278fb3d 100644 --- a/common/autoconf/configure.ac +++ b/common/autoconf/configure.ac @@ -30,7 +30,7 @@ ############################################################################### -AC_PREREQ([2.61]) +AC_PREREQ([2.69]) AC_INIT(OpenJDK, jdk8, build-dev@openjdk.java.net,,http://openjdk.java.net) AC_CONFIG_AUX_DIR([build-aux]) diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh index e2dd2f6aa0b..63e9354611c 100644 --- a/common/autoconf/generated-configure.sh +++ b/common/autoconf/generated-configure.sh @@ -3818,7 +3818,7 @@ fi #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1377784024 +DATE_WHEN_GENERATED=1377850299 ############################################################################### #