autoconf-patches
[Top][All Lists]
Advanced

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

Re: Fix AC_FUNC_ERROR_AT_LINE and others


From: Eric Blake-1
Subject: Re: Fix AC_FUNC_ERROR_AT_LINE and others
Date: Mon, 2 Oct 2006 09:11:29 -0700 (PDT)

> 
> > +[AC_REQUIRE([AC_GNU_SOURCE])dnl
> 
> I think you are right, it's better to use AC_USE_SYSTEM_EXTENSIONS hee.
> 
> 2006-09-26  Paul Eggert  <address@hidden>
> 
>       * lib/autoconf/functions.m4: Fix problems reported by Ralf Wildenhues.
>       (AC_FUNC_STRNLEN): Require AC_USE_SYSTEM_EXTENSIONS.

This patch causes the following behavior when bootstrapping CVS m4
with CVS autoconf:

configure.ac:150: warning: AC_RUN_IFELSE was called before
AC_USE_SYSTEM_EXTENSIONS
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:150: warning: AC_COMPILE_IFELSE was called before
AC_USE_SYSTEM_EXTENSIONS
../../lib/autoconf/specific.m4:415: AC_USE_SYSTEM_EXTENSIONS is expanded
from...
../../lib/autoconf/functions.m4:1674: AC_FUNC_STRNLEN is expanded from...
ltdl/m4/strnlen.m4:22: gl_FUNC_STRNLEN is expanded from...
ltdl/m4/gnulib-comp.m4:87: M4_INIT is expanded from...
configure.ac:150: the top level
configure.ac:150: warning: AC_RUN_IFELSE was called before
AC_USE_SYSTEM_EXTENSIONS

That is because gnulib-tool is smart enough to require AC_GNU_SOURCE,
but does not require AC_USE_SYSTEM_EXTENSIONS (it requires
gl_USE_SYSTEM_EXTENSIONS instead).  I'm not sure whether the fix
lies in autoconf or in gnulib.

-- 
Eric Blake

-- 
View this message in context: 
http://www.nabble.com/Fix-AC_FUNC_ERROR_AT_LINE-and-others-%28was%3A-megatest-fallout%29-tf2340253.html#a6604383
Sent from the Gnu - Autoconf - Patches mailing list archive at Nabble.com.





reply via email to

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