[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r117054: Get --enable-gcc-warnings to work after tou
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] trunk r117054: Get --enable-gcc-warnings to work after touching configure.ac. |
Date: |
Sat, 03 May 2014 16:27:21 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117054
revision-id: address@hidden
parent: address@hidden
author: Paul Eggert <address@hidden>
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sat 2014-05-03 09:27:17 -0700
message:
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'.
modified:
ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1538
Makefile.in makefile.in-20091113204419-o5vbwnq5f7feedwu-446
autogen.sh autogen.sh-20091113204419-o5vbwnq5f7feedwu-2495
configure.ac
configure.in-20091113204419-o5vbwnq5f7feedwu-783
=== modified file 'ChangeLog'
--- a/ChangeLog 2014-05-03 08:12:06 +0000
+++ b/ChangeLog 2014-05-03 16:27:17 +0000
@@ -1,5 +1,14 @@
2014-05-03 Paul Eggert <address@hidden>
+ 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'.
+
Get --enable-gcc-warnings working again.
The recent changes to configure.ac removed the transliteration of
-I to -isystem in CFLAGS, which is needed for --enable-gcc-warnings.
=== modified file 'Makefile.in'
--- a/Makefile.in 2014-04-17 06:02:38 +0000
+++ b/Makefile.in 2014-05-03 16:27:17 +0000
@@ -425,9 +425,10 @@
$(srcdir)/configure: $(AUTOCONF_INPUTS)
cd ${srcdir} && autoconf
+ACLOCAL_PATH = @ACLOCAL_PATH@
ACLOCAL_INPUTS = $(srcdir)/configure.ac $(srcdir)/m4/gnulib-comp.m4
$(srcdir)/aclocal.m4: $(ACLOCAL_INPUTS)
- cd $(srcdir) && aclocal -I m4
+ cd $(srcdir) && ACLOCAL_PATH='$(ACLOCAL_PATH)' aclocal -I m4
AUTOMAKE_INPUTS = $(srcdir)/aclocal.m4 $(srcdir)/lib/Makefile.am \
$(srcdir)/lib/gnulib.mk
=== modified file 'autogen.sh'
--- a/autogen.sh 2014-05-03 07:09:16 +0000
+++ b/autogen.sh 2014-05-03 16:27:17 +0000
@@ -210,6 +210,7 @@
# find the pkg.m4 that is installed in the standard location.
echo "Checking for pkg.m4..."
AUTORECONF_ENV=
+env_space=
ac_dir=`aclocal --print-ac-dir` && test -r "$ac_dir/pkg.m4" || {
oIFS=$IFS
IFS=:
@@ -225,7 +226,8 @@
?*) ACLOCAL_PATH=$ACLOCAL_PATH:$ac_dir;;
esac
export ACLOCAL_PATH
- AUTORECONF_ENV="ACLOCAL_PATH='$ACLOCAL_PATH' "
+ AUTORECONF_ENV="ACLOCAL_PATH='$ACLOCAL_PATH'"
+ env_space=' '
break
fi
fi
@@ -244,7 +246,7 @@
echo ok
echo 'Your system has the required tools.'
-echo "Running \"${AUTORECONF_ENV}autoreconf -fi -I m4\" ..."
+echo "Running \"$AUTORECONF_ENV${env_space}autoreconf -fi -I m4\" ..."
## Let autoreconf figure out what, if anything, needs doing.
@@ -255,7 +257,7 @@
## cause 'make' to needlessly run 'autoheader'.
echo timestamp > src/stamp-h.in || exit
-echo "You can now run \`./configure'."
+echo "You can now run \`./configure$env_space$AUTORECONF_ENV'."
exit 0
=== modified file 'configure.ac'
--- a/configure.ac 2014-05-03 08:12:06 +0000
+++ b/configure.ac 2014-05-03 16:27:17 +0000
@@ -295,6 +295,9 @@
dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html
OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals])
+## This might be a 'configure' arg, e.g., autogen.sh might set it.
+AC_SUBST([ACLOCAL_PATH])
+
## Makefile.in needs the cache file name.
AC_SUBST(cache_file)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r117054: Get --enable-gcc-warnings to work after touching configure.ac.,
Paul Eggert <=