Re: autoconf: feature request: test for GCC version

2018-07-25 Thread Philip Prindeville
> On Jul 25, 2018, at 1:05 PM, R0b0t1 wrote: > > On Wed, Jul 25, 2018 at 1:46 PM, Philip Prindeville > wrote: >> >> >> [snip] >> Well, because I do a lot of cross-compilation and never get to actually run >> most of the programs… >> > > So... to add to this, the vast majority of autoconf

Re: autoconf: feature request: test for GCC version

2018-07-25 Thread R0b0t1
On Wed, Jul 25, 2018 at 1:46 PM, Philip Prindeville wrote: > > >> On Apr 13, 2011, at 3:59 PM, Eric Blake wrote: >> >> On 04/13/2011 03:49 PM, Philip Prindeville wrote: >>> It is sometimes useful to be able to detect the compiler version (as in the >>> case of GCC 4.2 doing some fairly aggressiv

Re: autoconf: feature request: test for GCC version

2018-07-25 Thread Philip Prindeville
> On Apr 13, 2011, at 3:59 PM, Eric Blake wrote: > > On 04/13/2011 03:49 PM, Philip Prindeville wrote: >> It is sometimes useful to be able to detect the compiler version (as in the >> case of GCC 4.2 doing some fairly aggressive optimization that breaks >> fragile code). > > Thanks for the

Re: autoconf: feature request: test for GCC version

2011-04-13 Thread Paul Eggert
Why not stick with what you have? It may be ugly, but any Autoconfish replacement would be just as ugly, if not uglier. And what you have works now.

Re: autoconf: feature request: test for GCC version

2011-04-13 Thread Philip Prindeville
On 4/13/11 3:59 PM, Eric Blake wrote: > On 04/13/2011 03:49 PM, Philip Prindeville wrote: >> It is sometimes useful to be able to detect the compiler version (as in the >> case of GCC 4.2 doing some fairly aggressive optimization that breaks >> fragile code). > Thanks for the report. > >> How abo

Re: autoconf: feature request: test for GCC version

2011-04-13 Thread Eric Blake
On 04/13/2011 03:49 PM, Philip Prindeville wrote: > It is sometimes useful to be able to detect the compiler version (as in the > case of GCC 4.2 doing some fairly aggressive optimization that breaks fragile > code). Thanks for the report. > > How about something like: > > AC_GCC_VERSION(VER,