Re: AC_CHECK_FUNC is not compatible with gcc -Werror

2010-01-22 Thread Paolo Bonzini
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

AC_CHECK_FUNC is not compatible with gcc -Werror

2010-01-21 Thread Dmitry V. Levin
Hi, There is no news that AC_CHECK_FUNC fails to find built-in functions when either AC_LANG_WERROR is used or -Werror is included in CFLAGS: $ cat configure.ac AC_INIT AC_LANG_WERROR AC_CHECK_FUNC(memset) $ autoconf && ./configure checking for gcc... gcc checking whether the C compiler works..