Selecting a C++ standard

2012-10-27 Thread Roger Leigh
Hi folks, A while back now, I wrote the AC_PROG_CC_C89 and AC_PROG_CC_C99 macros (and I see now there's a C11 variant--nice!) to select the standard mode used by the C compiler. However, it does not appear that an equivalent facility exists for the C++ compiler, despite g++ supporting an equivale

Re: Selecting a C++ standard

2012-10-27 Thread Paul Eggert
On 10/27/2012 01:38 PM, Roger Leigh wrote: > Is anyone working on such a thing? Not that I know of. For C, we're deprecating the "I want version X" macros in favor of just AC_PROG_CC_STDC, which says "I want the latest version". You might want to do that for C++ to, as it's more the Autoconf Way

Re: Selecting a C++ standard

2012-10-27 Thread Harlan Stenn
Paul Eggert writes: > On 10/27/2012 01:38 PM, Roger Leigh wrote: > > Is anyone working on such a thing? > > Not that I know of. > > For C, we're deprecating the "I want version X" > macros in favor of just AC_PROG_CC_STDC, which says > "I want the latest version". You might want to do > that for

Re: Selecting a C++ standard

2012-10-27 Thread Roger Leigh
On Sat, Oct 27, 2012 at 01:55:58PM -0700, Paul Eggert wrote: > On 10/27/2012 01:38 PM, Roger Leigh wrote: > > Is anyone working on such a thing? > > Not that I know of. > > For C, we're deprecating the "I want version X" > macros in favor of just AC_PROG_CC_STDC, which says > "I want the latest v

Re: Selecting a C++ standard

2012-10-27 Thread Adrian Bunk
On Sat, Oct 27, 2012 at 01:55:58PM -0700, Paul Eggert wrote: > On 10/27/2012 01:38 PM, Roger Leigh wrote: > > Is anyone working on such a thing? > > Not that I know of. > > For C, we're deprecating the "I want version X" > macros in favor of just AC_PROG_CC_STDC, which says > "I want the latest v

Re: Selecting a C++ standard

2012-10-27 Thread Adrian Bunk
On Sat, Oct 27, 2012 at 02:05:01PM -0700, Harlan Stenn wrote: > Paul Eggert writes: > > On 10/27/2012 01:38 PM, Roger Leigh wrote: > > > Is anyone working on such a thing? > > > > Not that I know of. > > > > For C, we're deprecating the "I want version X" > > macros in favor of just AC_PROG_CC_ST

Re: Selecting a C++ standard

2012-10-27 Thread Harlan Stenn
Adrian Bunk writes: > On Sat, Oct 27, 2012 at 02:05:01PM -0700, Harlan Stenn wrote: > > Paul Eggert writes: > > > For C, we're deprecating the "I want version X" > > > macros in favor of just AC_PROG_CC_STDC, which says > > > "I want the latest version". You might want to do > > > that for C++ to,

Re: Selecting a C++ standard

2012-10-27 Thread Adrian Bunk
On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote: > On Sat, Oct 27, 2012 at 01:55:58PM -0700, Paul Eggert wrote: > > On 10/27/2012 01:38 PM, Roger Leigh wrote: > > > Is anyone working on such a thing? > > > > Not that I know of. > > > > For C, we're deprecating the "I want version X" >

Re: Selecting a C++ standard

2012-10-27 Thread Harlan Stenn
Adrian Bunk writes: > On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote: > > Maybe have an optional argument to AC_PROG_CC_STDC to select > > the standard e.g. > > AC_PROG_CC_STDC([C99]) > > ? I like this idea. > Latest discussion result was that there is no downside of setting the >

Re: Selecting a C++ standard

2012-10-27 Thread Adrian Bunk
On Sat, Oct 27, 2012 at 04:58:09PM -0700, Harlan Stenn wrote: > Adrian Bunk writes: > > On Sat, Oct 27, 2012 at 02:05:01PM -0700, Harlan Stenn wrote: > > > Paul Eggert writes: > > > > For C, we're deprecating the "I want version X" > > > > macros in favor of just AC_PROG_CC_STDC, which says > > > >

Re: Selecting a C++ standard

2012-10-27 Thread Harlan Stenn
Adrian, I don't think either one of us will convince the other. I'm done. H ___ Autoconf mailing list Autoconf@gnu.org https://lists.gnu.org/mailman/listinfo/autoconf

Re: Selecting a C++ standard

2012-10-27 Thread Adrian Bunk
On Sat, Oct 27, 2012 at 05:07:04PM -0700, Harlan Stenn wrote: > Adrian Bunk writes: > > On Sat, Oct 27, 2012 at 10:47:50PM +0100, Roger Leigh wrote: >... > > > I originally wrote AC_PROC_CC_C99 because it was several years > > > since GCC supported C99, but there was no portable way to use > > > C9

Re: Selecting a C++ standard

2012-10-27 Thread Adrian Bunk
On Sat, Oct 27, 2012 at 05:59:23PM -0700, Harlan Stenn wrote: > Adrian, Hi Harlan, > I don't think either one of us will convince the other. > > I'm done. I'm surprised getting that as an answer to an email where I suggested a possible solution for your use cases. > H cu Adrian --

Re: Selecting a C++ standard

2012-10-27 Thread Harlan Stenn
Adrian Bunk writes: > On Sat, Oct 27, 2012 at 05:59:23PM -0700, Harlan Stenn wrote: > > Adrian, > > Hi Harlan, > > > I don't think either one of us will convince the other. > > > > I'm done. > > I'm surprised getting that as an answer to an email where I suggested a > possible solution for you

Re: Selecting a C++ standard

2012-10-27 Thread Russ Allbery
Adrian Bunk writes: > Real "buildable by C89 or later" is rarely used, since due to lack of > long long you have no guaranteed 64bit integer type in C89. Almost none of the software that I work on requires a 64-bit integer type. (C89 or later is also my default target for the software I write.)

Re: Selecting a C++ standard

2012-10-27 Thread Adrian Bunk
On Sat, Oct 27, 2012 at 06:25:02PM -0700, Harlan Stenn wrote: > Adrian Bunk writes: > > On Sat, Oct 27, 2012 at 05:59:23PM -0700, Harlan Stenn wrote: > > > Adrian, > > > > Hi Harlan, > > > > > I don't think either one of us will convince the other. > > > > > > I'm done. > > > > I'm surprised ge

Re: Selecting a C++ standard

2012-10-27 Thread Adrian Bunk
On Sat, Oct 27, 2012 at 06:45:01PM -0700, Russ Allbery wrote: > Adrian Bunk writes: > > > Real "buildable by C89 or later" is rarely used, since due to lack of > > long long you have no guaranteed 64bit integer type in C89. > > Almost none of the software that I work on requires a 64-bit intege

Re: Selecting a C++ standard

2012-10-27 Thread Russ Allbery
Adrian Bunk writes: > On Sat, Oct 27, 2012 at 06:45:01PM -0700, Russ Allbery wrote: >> Almost none of the software that I work on requires a 64-bit integer type. >> (C89 or later is also my default target for the software I write.) > I just tried to build remctl and lbcd with CC="gcc -pedantic-e