Re: Possible bug: AC_USE_SYSTEM_EXTENSIONS ignores "AS_IF" conditionals

2014-09-22 Thread Eric Blake
On 09/20/2014 06:19 PM, David A. Wheeler wrote: > I *think* that AC_USE_SYSTEM_EXTENSIONS has a bug; it seems to ignore > conditionals. Not a bug, but a feature. > > E.G., given this configure.ac: > > AC_PREREQ([2.63]) > AC_INIT([bug], [0.01]) > AC_CONFIG_HEADERS([config.h]) > AS_IF([test

Re: Possible bug: AC_USE_SYSTEM_EXTENSIONS ignores "AS_IF" conditionals

2014-09-22 Thread David A. Wheeler
On Mon, 22 Sep 2014 08:51:52 -0600, Eric Blake wrote: > I don't think what you are asking for is possible. Either you want to > use extensions (and just use the macro) or you don't. I don't really > see a use case for wanting extensions on only some of the builds. I want to write code that will

Re: Possible bug: AC_USE_SYSTEM_EXTENSIONS ignores "AS_IF" conditionals

2014-09-22 Thread Paul Eggert
On 09/22/2014 09:07 AM, David A. Wheeler wrote: I want to write code that will*use* extensions where available, but will portably run on systems that don't have the extensions. That sounds like a reasonable thing to do, but unfortunately autoconf doesn't support it directly. The best workar

Re: Possible bug: AC_USE_SYSTEM_EXTENSIONS ignores "AS_IF" conditionals

2014-09-22 Thread Eric Blake
On 09/22/2014 10:07 AM, David A. Wheeler wrote: > On Mon, 22 Sep 2014 08:51:52 -0600, Eric Blake wrote: >> I don't think what you are asking for is possible. Either you want to >> use extensions (and just use the macro) or you don't. I don't really >> see a use case for wanting extensions on onl