diff options
| author | Paul Eggert | 2012-09-17 15:35:28 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-09-17 15:35:28 -0700 |
| commit | dee26dfa11ac3936c84f42b83a0e1ec7ae2b15f9 (patch) | |
| tree | 3422e706b3df5a1d1590ec125a57377bf72035d1 | |
| parent | 50bfc8243c7385f7e795bca26b539f57c167170c (diff) | |
| download | emacs-dee26dfa11ac3936c84f42b83a0e1ec7ae2b15f9.tar.gz emacs-dee26dfa11ac3936c84f42b83a0e1ec7ae2b15f9.zip | |
* Makefile.in: Run autogen/copy_autogen if autogen.sh fails,
to create 'configure'; problem reported by Andreas Schwab in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00438.html>.
* autogen.sh: Exit with status 1 when failing due to missing tools,
reverting the 2012-09-10 change to this file.
* autogen/copy_autogen: Fail if one of the subsidiary actions fail.
Use 'cp -f' for the build-aux files, since the destinations are
typically read-only.
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | Makefile.in | 4 | ||||
| -rwxr-xr-x | autogen.sh | 2 | ||||
| -rwxr-xr-x | autogen/copy_autogen | 15 |
4 files changed, 19 insertions, 10 deletions
| @@ -8,6 +8,14 @@ | |||
| 8 | This undoes part of the 2012-09-10 patch. | 8 | This undoes part of the 2012-09-10 patch. |
| 9 | (bootstrap): Run ./configure, rather than trying to run config.status | 9 | (bootstrap): Run ./configure, rather than trying to run config.status |
| 10 | if it exists. That builds src/epaths.h more reliably. | 10 | if it exists. That builds src/epaths.h more reliably. |
| 11 | Run autogen/copy_autogen if autogen.sh fails, | ||
| 12 | to create 'configure'; problem reported by Andreas Schwab in | ||
| 13 | <http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00438.html>. | ||
| 14 | * autogen.sh: Exit with status 1 when failing due to missing tools, | ||
| 15 | reverting the 2012-09-10 change to this file. | ||
| 16 | * autogen/copy_autogen: Fail if one of the subsidiary actions fail. | ||
| 17 | Use 'cp -f' for the build-aux files, since the destinations are | ||
| 18 | typically read-only. | ||
| 11 | 19 | ||
| 12 | Remove no-longer-needed Solaris 2.4 vfork bug workaround. | 20 | Remove no-longer-needed Solaris 2.4 vfork bug workaround. |
| 13 | * configure.ac (ac_cv_func_vfork_works): Default to 'no' on | 21 | * configure.ac (ac_cv_func_vfork_works): Default to 'no' on |
diff --git a/Makefile.in b/Makefile.in index 386c4c135be..56a54403ef3 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -890,11 +890,11 @@ dvi: | |||
| 890 | 890 | ||
| 891 | # Bootstrapping does the following: | 891 | # Bootstrapping does the following: |
| 892 | # * Remove files to start from a clean slate. | 892 | # * Remove files to start from a clean slate. |
| 893 | # * Run autogen.sh, but don't worry about exit status 101 (missing tools). | 893 | # * Run autogen.sh, falling back on copy_autogen if autogen.sh fails. |
| 894 | # * Build Makefile, to build the build procedure itself. | 894 | # * Build Makefile, to build the build procedure itself. |
| 895 | # * Do the actual build. | 895 | # * Do the actual build. |
| 896 | bootstrap: bootstrap-clean FRC | 896 | bootstrap: bootstrap-clean FRC |
| 897 | cd $(srcdir) && { ./autogen.sh || test $$? -eq 101; } | 897 | cd $(srcdir) && { ./autogen.sh || autogen/copy_autogen; } |
| 898 | ./configure $(CONFIGURE_FLAGS) | 898 | ./configure $(CONFIGURE_FLAGS) |
| 899 | $(MAKE) $(MFLAGS) info all | 899 | $(MAKE) $(MFLAGS) info all |
| 900 | 900 | ||
diff --git a/autogen.sh b/autogen.sh index dc8d53eec97..9cfaa40eee5 100755 --- a/autogen.sh +++ b/autogen.sh | |||
| @@ -201,7 +201,7 @@ This is not recommended - see the comments in \`copy_autogen'. | |||
| 201 | Please report any problems with this script to bug-gnu-emacs@gnu.org . | 201 | Please report any problems with this script to bug-gnu-emacs@gnu.org . |
| 202 | EOF | 202 | EOF |
| 203 | 203 | ||
| 204 | exit 101 # Exit status 101 means tools were missing. | 204 | exit 1 |
| 205 | fi | 205 | fi |
| 206 | 206 | ||
| 207 | echo "Your system has the required tools, running autoreconf..." | 207 | echo "Your system has the required tools, running autoreconf..." |
diff --git a/autogen/copy_autogen b/autogen/copy_autogen index b6af9b6eb35..8aacd4d399a 100755 --- a/autogen/copy_autogen +++ b/autogen/copy_autogen | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | ## regenerate configure and will fail if you do not have the required | 8 | ## regenerate configure and will fail if you do not have the required |
| 9 | ## tools. You will have to run this script again. | 9 | ## tools. You will have to run this script again. |
| 10 | 10 | ||
| 11 | test -d autogen && cd autogen | 11 | test ! -d autogen || cd autogen || exit |
| 12 | 12 | ||
| 13 | if test ! -e config.in; then | 13 | if test ! -e config.in; then |
| 14 | echo "Cannot find autogen/ directory." | 14 | echo "Cannot find autogen/ directory." |
| @@ -16,11 +16,12 @@ if test ! -e config.in; then | |||
| 16 | fi | 16 | fi |
| 17 | 17 | ||
| 18 | ## Order implied by top-level Makefile's rules, for time-stamps. | 18 | ## Order implied by top-level Makefile's rules, for time-stamps. |
| 19 | cp compile config.guess config.sub depcomp install-sh missing ../build-aux | 19 | cp -f compile config.guess config.sub depcomp install-sh missing \ |
| 20 | cp aclocal.m4 ../ | 20 | ../build-aux && |
| 21 | cp configure ../ | 21 | cp aclocal.m4 ../ && |
| 22 | touch ../src/stamp-h.in | 22 | cp configure ../ && |
| 23 | cp config.in ../src/ | 23 | touch ../src/stamp-h.in && |
| 24 | cp Makefile.in ../lib/ | 24 | cp config.in ../src/ && |
| 25 | cp Makefile.in ../lib/ && | ||
| 25 | 26 | ||
| 26 | echo "You can now run configure" | 27 | echo "You can now run configure" |