Re: AC_CHECK_DECL has wrong results on macOS

2025-05-31 Thread Bruno Haible via Bug reports for autoconf
Paul Eggert wrote in . > Two questions about this patch installed a couple days ago > . > > Should Gnulib's gl_CHECK_FUNC

Re: AC_CHECK_DECL has wrong results on macOS

2025-05-28 Thread Paul Eggert
Two questions about this patch installed a couple days ago . Should Gnulib's gl_CHECK_FUNCS_MACOS be adjusted to work better with future Autoconf versions that have the patch? Is there a s

Re: AC_CHECK_DECL has wrong results on macOS

2025-05-27 Thread Zack Weinberg
On Mon, May 26, 2025, at 5:18 AM, Bruno Haible via Bug reports for autoconf wrote: > Hi Paul, > >> > Here's a proposed fix for the issue along these lines. >> >> Thanks. It'd be nicer if AC_CHECK_DECL didn't require AC_CANONICAL_HOST. >> We can do that by checking inside the C program rather tha

Re: AC_CHECK_DECL has wrong results on macOS

2025-05-26 Thread Paul Eggert
Thanks for checking the revised patch, and I installed it with the additional line "Co-authored-by: Paul Eggert ".

Re: AC_CHECK_DECL has wrong results on macOS

2025-05-26 Thread Bruno Haible via Bug reports for autoconf
Hi Paul, > > Here's a proposed fix for the issue along these lines. > > Thanks. It'd be nicer if AC_CHECK_DECL didn't require AC_CANONICAL_HOST. > We can do that by checking inside the C program rather than using > AC_CANONICAL_HOST. This comes with the cost of an extra compiler invocation on

Re: AC_CHECK_DECL has wrong results on macOS

2025-05-25 Thread Paul Eggert
On 2025-05-24 04:37, Bruno Haible via Bug reports for autoconf wrote: Here's a proposed fix for the issue along these lines. Thanks. It'd be nicer if AC_CHECK_DECL didn't require AC_CANONICAL_HOST. We can do that by checking inside the C program rather than using AC_CANONICAL_HOST. Also, sh

Re: AC_CHECK_DECL has wrong results on macOS

2025-05-24 Thread Bruno Haible via Bug reports for autoconf
> 3) Another workaround could be to add the '-Werror=unguarded-availability-new' > compiler option for AC_CHECK_DECL's compiler invocations, just like Autoconf > already adds the '-Werror' option as a workaround against the first bug > mentioned above. Here's a proposed fix for the issue along the

AC_CHECK_DECL has wrong results on macOS

2025-05-24 Thread Bruno Haible via Bug reports for autoconf
Hi, In Autoconf 2.70 the following bug was fixed: "AC_CHECK_DECL and AC_CHECK_DECLS will now detect missing declarations for library functions that are also Clang compiler builtins." For example, the AC_CHECK_DECLS([strndup]) invocation, on a glibc system, with CC="clang -D_POSIX_C_SOURCE=200