sim: use AC_REQUIRE with AC_PROG_CC
authorMike Frysinger <vapier@gentoo.org>
Tue, 12 Jul 2011 20:19:49 +0000 (20:19 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 12 Jul 2011 20:19:49 +0000 (20:19 +0000)
The autoconf guys point out that our usage of AC_PROG_CC in the
SIM_AC_COMMON does not jive with their intended use.
http://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required

So utilize AC_REQUIRE to make the warnings go away and generate
the correct code with different autoconf versions.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/common/ChangeLog
sim/common/aclocal.m4

index f4f823188ee7e8d7e8beac361e94cf73fabec655..0ce602f0f9163f15ff4560b7d96632fac3c51399 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-12  Mike Frysinger  <vapier@gentoo.org>
+
+       * aclocal.m4 (SIM_AC_COMMON): Call AC_REQUIRE on AC_PROG_CC.
+       Delete direct call to AC_PROG_CC.
+
 2011-07-05  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-command.c: New file.
index cec0155e675539bed7fdbbf33ceac9d814e3a3c5..817a8a4fa1c0cc8e5080bf95754a71006180ec18 100644 (file)
@@ -24,11 +24,11 @@ sinclude([../../config/zlib.m4])
 
 AC_DEFUN([SIM_AC_COMMON],
 [
+AC_REQUIRE([AC_PROG_CC])
 # autoconf.info says this should be called right after AC_INIT.
 AC_CONFIG_HEADER(ifelse([$1],,config.h,[$1]):config.in)
 AC_CANONICAL_SYSTEM
 AC_ARG_PROGRAM
-AC_PROG_CC
 AC_PROG_INSTALL
 
 # Put a plausible default for CC_FOR_BUILD in Makefile.