On Fri, Jan 10, 2025 at 04:35:19PM -0800, Paul Eggert wrote: > On 2025-01-10 15:35, Patrice Dumas wrote: > > > How about if you don't use either AC_LANG_PROGRAM or AC_LANG_SOURCE? Just > > > use exactly the source code that you want. > > confdefs.h is still used in that case. > > OK, how about just writing your own code, instead of using AC_RUN_IFELSE?
Because it is better not to reinvent good code? I reused the configure code generated by AC_LINK_IFELSE: https://git.savannah.gnu.org/cgit/texinfo.git/commit/?id=6a3773cceec6c0858a176438c1bd6ac54a313e05 It should work well and be well integrated with the other checks, but it uses internal $ac_ext and ac_fn_c_try_link, so we'll have to make sure that it is still ok in the future, and probably reuse configure generated code if it changes to much. -- Pat