Re: Is it safe to use ax_gcc_builtin to detect __builtin_offsetof?

pluto--- via Discussion list for the autoconf build system <[email protected]> Sun, 25 Feb 2024 00:03:04 -0800
Newsgroups gmane.comp.sysutils.autoconf.general
Message-ID <65daf438.mKl1MWsBP4h1U+9C%[email protected]>
Jeffrey Walton <[email protected]> wrote:
> On Sun, Feb 25, 2024 at 2:09???AM Jeffrey Walton <[email protected]> wrote:
> > Is it safe to use ax_gcc_builtin to detect __builtin_offsetof?
> Cancel. We can't use AX_GCC_BUILTIN in production. Using
> AX_GCC_BUILTIN produces broken configure's:
> ...
> ./configure: line 15023: syntax error near unexpected token `__builtin_offsetof'
> ./configure: line 15023: `AX_GCC_BUILTIN(__builtin_offsetof)'

Any chance that AX_GCC_BUILTIN(offsetof) would do what you want?