bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

required-before-expanded warning, next instance


From: Ralf Wildenhues
Subject: required-before-expanded warning, next instance
Date: Mon, 26 Jan 2009 20:05:17 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello m4sugar hackers,

with current git Autoconf, I get a warning with this setup (distilled
from the OpenMPI):

AC_DEFUN([A],
[pristine_CC=$CC
AC_PROG_CC
echo "before: $pristine_CC, after: $CC"
])

AC_DEFUN([B],
[AC_REQUIRE([A])
AC_REQUIRE([AM_PROG_CC_C_O])
])

AC_INIT(a,1)
AM_INIT_AUTOMAKE([foreign])
B
AC_CONFIG_FILES([Makefile])
AC_OUTPUT


| configure.ac:14: warning: AC_REQUIRE: `AC_PROG_CC' was expanded before it was 
required
| ../../../autoconf/lib/autoconf/c.m4:560: AC_PROG_CC_C_O is expanded from...
| aclocal.m4:620: AM_PROG_CC_C_O is expanded from...
| configure.ac:7: B is expanded from...
| configure.ac:14: the top level

What can be done about this, ideally without compromising the
factorization into macros and without the $pristine_CC variable
set/usage losing meaning?  (Similar issues exist for other macros.)

Thanks,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]