bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_CHECK_FUNC is not compatible with gcc -Werror


From: Paolo Bonzini
Subject: Re: AC_CHECK_FUNC is not compatible with gcc -Werror
Date: Fri, 22 Jan 2010 14:21:28 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0

On 01/22/2010 02:35 AM, Eric Blake wrote:
It would be even slicker to do this without having to recompile (that is,
rewrite AC_LANG_FUNC_LINK_TRY to use the new logic, rather than making
AC_CHECK_FUNC call AC_LINK_IFELSE twice).

Since typeof(__builtin_strfry) gives an error, you'd then have two compilation for the common case when there is _not_ a corresponding GCC builtin.

Still, Dmitry's patch is definitely on the right way. You just need to change the "#ifndef __GNUC__" into a shell test for "$GCC:$ac_[]_AC_LANG_ABBREV[]_werror_flag" = yes:yes.

Paolo




reply via email to

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