diff options
| author | Paul Eggert | 2014-05-03 09:27:17 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-05-03 09:27:17 -0700 |
| commit | 541df9f424b82b90ec4bd798ab6b8f1c655e3acd (patch) | |
| tree | 272c9a0e88b48be4097dd2b508c39ec07a124289 | |
| parent | a7e1ffdc7e4de34662a0d55c8e5f3247ec40effd (diff) | |
| download | emacs-541df9f424b82b90ec4bd798ab6b8f1c655e3acd.tar.gz emacs-541df9f424b82b90ec4bd798ab6b8f1c655e3acd.zip | |
Get --enable-gcc-warnings to work after touching configure.ac.
Preserve ACLOCAL_PATH in later builds, so that by default it has
the same value as it did in the first build after initial checkout.
* Makefile.in (ACLOCAL_PATH): New macro.
($(srcdir)/aclocal.m4): Use it.
* configure.ac (ACLOCAL_PATH): AC_SUBST it.
* autogen.sh (env_space): New var.
Tell user what variables, if any, to pass to 'configure'.
| -rw-r--r-- | ChangeLog | 9 | ||||
| -rw-r--r-- | Makefile.in | 3 | ||||
| -rwxr-xr-x | autogen.sh | 8 | ||||
| -rw-r--r-- | configure.ac | 3 |
4 files changed, 19 insertions, 4 deletions
| @@ -1,5 +1,14 @@ | |||
| 1 | 2014-05-03 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2014-05-03 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Get --enable-gcc-warnings to work after touching configure.ac. | ||
| 4 | Preserve ACLOCAL_PATH in later builds, so that by default it has | ||
| 5 | the same value as it did in the first build after initial checkout. | ||
| 6 | * Makefile.in (ACLOCAL_PATH): New macro. | ||
| 7 | ($(srcdir)/aclocal.m4): Use it. | ||
| 8 | * configure.ac (ACLOCAL_PATH): AC_SUBST it. | ||
| 9 | * autogen.sh (env_space): New var. | ||
| 10 | Tell user what variables, if any, to pass to 'configure'. | ||
| 11 | |||
| 3 | Get --enable-gcc-warnings working again. | 12 | Get --enable-gcc-warnings working again. |
| 4 | The recent changes to configure.ac removed the transliteration of | 13 | The recent changes to configure.ac removed the transliteration of |
| 5 | -I to -isystem in CFLAGS, which is needed for --enable-gcc-warnings. | 14 | -I to -isystem in CFLAGS, which is needed for --enable-gcc-warnings. |
diff --git a/Makefile.in b/Makefile.in index 2eda8c365da..ffee1ec131d 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -425,9 +425,10 @@ AUTOCONF_INPUTS = $(srcdir)/configure.ac $(srcdir)/aclocal.m4 | |||
| 425 | $(srcdir)/configure: $(AUTOCONF_INPUTS) | 425 | $(srcdir)/configure: $(AUTOCONF_INPUTS) |
| 426 | cd ${srcdir} && autoconf | 426 | cd ${srcdir} && autoconf |
| 427 | 427 | ||
| 428 | ACLOCAL_PATH = @ACLOCAL_PATH@ | ||
| 428 | ACLOCAL_INPUTS = $(srcdir)/configure.ac $(srcdir)/m4/gnulib-comp.m4 | 429 | ACLOCAL_INPUTS = $(srcdir)/configure.ac $(srcdir)/m4/gnulib-comp.m4 |
| 429 | $(srcdir)/aclocal.m4: $(ACLOCAL_INPUTS) | 430 | $(srcdir)/aclocal.m4: $(ACLOCAL_INPUTS) |
| 430 | cd $(srcdir) && aclocal -I m4 | 431 | cd $(srcdir) && ACLOCAL_PATH='$(ACLOCAL_PATH)' aclocal -I m4 |
| 431 | 432 | ||
| 432 | AUTOMAKE_INPUTS = $(srcdir)/aclocal.m4 $(srcdir)/lib/Makefile.am \ | 433 | AUTOMAKE_INPUTS = $(srcdir)/aclocal.m4 $(srcdir)/lib/Makefile.am \ |
| 433 | $(srcdir)/lib/gnulib.mk | 434 | $(srcdir)/lib/gnulib.mk |
diff --git a/autogen.sh b/autogen.sh index c2a2c7af04f..b7804548cec 100755 --- a/autogen.sh +++ b/autogen.sh | |||
| @@ -210,6 +210,7 @@ fi | |||
| 210 | # find the pkg.m4 that is installed in the standard location. | 210 | # find the pkg.m4 that is installed in the standard location. |
| 211 | echo "Checking for pkg.m4..." | 211 | echo "Checking for pkg.m4..." |
| 212 | AUTORECONF_ENV= | 212 | AUTORECONF_ENV= |
| 213 | env_space= | ||
| 213 | ac_dir=`aclocal --print-ac-dir` && test -r "$ac_dir/pkg.m4" || { | 214 | ac_dir=`aclocal --print-ac-dir` && test -r "$ac_dir/pkg.m4" || { |
| 214 | oIFS=$IFS | 215 | oIFS=$IFS |
| 215 | IFS=: | 216 | IFS=: |
| @@ -225,7 +226,8 @@ ac_dir=`aclocal --print-ac-dir` && test -r "$ac_dir/pkg.m4" || { | |||
| 225 | ?*) ACLOCAL_PATH=$ACLOCAL_PATH:$ac_dir;; | 226 | ?*) ACLOCAL_PATH=$ACLOCAL_PATH:$ac_dir;; |
| 226 | esac | 227 | esac |
| 227 | export ACLOCAL_PATH | 228 | export ACLOCAL_PATH |
| 228 | AUTORECONF_ENV="ACLOCAL_PATH='$ACLOCAL_PATH' " | 229 | AUTORECONF_ENV="ACLOCAL_PATH='$ACLOCAL_PATH'" |
| 230 | env_space=' ' | ||
| 229 | break | 231 | break |
| 230 | fi | 232 | fi |
| 231 | fi | 233 | fi |
| @@ -244,7 +246,7 @@ EOF | |||
| 244 | echo ok | 246 | echo ok |
| 245 | 247 | ||
| 246 | echo 'Your system has the required tools.' | 248 | echo 'Your system has the required tools.' |
| 247 | echo "Running \"${AUTORECONF_ENV}autoreconf -fi -I m4\" ..." | 249 | echo "Running \"$AUTORECONF_ENV${env_space}autoreconf -fi -I m4\" ..." |
| 248 | 250 | ||
| 249 | 251 | ||
| 250 | ## Let autoreconf figure out what, if anything, needs doing. | 252 | ## Let autoreconf figure out what, if anything, needs doing. |
| @@ -255,7 +257,7 @@ autoreconf -fi -I m4 || exit $? | |||
| 255 | ## cause 'make' to needlessly run 'autoheader'. | 257 | ## cause 'make' to needlessly run 'autoheader'. |
| 256 | echo timestamp > src/stamp-h.in || exit | 258 | echo timestamp > src/stamp-h.in || exit |
| 257 | 259 | ||
| 258 | echo "You can now run \`./configure'." | 260 | echo "You can now run \`./configure$env_space$AUTORECONF_ENV'." |
| 259 | 261 | ||
| 260 | exit 0 | 262 | exit 0 |
| 261 | 263 | ||
diff --git a/configure.ac b/configure.ac index 74ea10dd5cd..7545e14e15d 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -295,6 +295,9 @@ otherwise for the first of `gfile' or `inotify' that is usable.]) | |||
| 295 | dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html | 295 | dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html |
| 296 | OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals]) | 296 | OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals]) |
| 297 | 297 | ||
| 298 | ## This might be a 'configure' arg, e.g., autogen.sh might set it. | ||
| 299 | AC_SUBST([ACLOCAL_PATH]) | ||
| 300 | |||
| 298 | ## Makefile.in needs the cache file name. | 301 | ## Makefile.in needs the cache file name. |
| 299 | AC_SUBST(cache_file) | 302 | AC_SUBST(cache_file) |
| 300 | 303 | ||