Re: AC_ARG_ENABLE and checking for unrecognized switches

2019-03-18 Thread Tom Tromey
> "Bob" == Bob Friesenhahn writes: Bob> A project can be made subordinate to another project without the Bob> author of the subordinate project being aware of it. This is a very Bob> useful capability. This capability is used by projects such as GCC. Yeah, but the outer configure script

Re: AC_ARG_ENABLE and checking for unrecognized switches

2019-03-16 Thread Kip Warner
On Fri, 2019-03-15 at 14:35 -0700, Kip Warner wrote: > On Fri, 2019-03-15 at 16:24 -0500, Bob Friesenhahn wrote: > > A project can be made subordinate to another project without > > the author of the subordinate project being aware of it. This is a > > very useful capability. This capability is

Re: AC_ARG_ENABLE and checking for unrecognized switches

2019-03-15 Thread Kip Warner
On Fri, 2019-03-15 at 16:24 -0500, Bob Friesenhahn wrote: > A project can be made subordinate to another project without > the author of the subordinate project being aware of it. This is a > very useful capability. This capability is used by projects such as > GCC. Hey Bob, > The Autotools

Re: AC_ARG_ENABLE and checking for unrecognized switches

2019-03-15 Thread Bob Friesenhahn
On Fri, 15 Mar 2019, Kip Warner wrote: https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Option-Checking.html My reading is that there *is* checking by default, but it is turned off if you have a subdir configure, but then can be turned back on again by the user. Good eye,

Re: AC_ARG_ENABLE and checking for unrecognized switches

2019-03-15 Thread Kip Warner
On Fri, 2019-03-15 at 07:02 -0600, Tom Tromey wrote: > I think there are a few wrinkles: > > https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Option-Checking.html > > My reading is that there *is* checking by default, but it is turned > off if you have a subdir configure, but

Re: AC_ARG_ENABLE and checking for unrecognized switches

2019-03-15 Thread Tom Tromey
>> I use AC_ARG_ENABLE to create a number of different --enable switches. >> I noticed when I accidentally mistyped the in --enable- >> , ./configure didn't bail on the unrecognized switch. Eric> This is by design; the GNU Coding Standards wants projects to be Eric> aggregatable, such that

Re: AC_ARG_ENABLE and checking for unrecognized switches

2019-03-14 Thread Kip Warner
On Thu, 2019-03-14 at 23:27 -0500, Eric Blake wrote: > Unfortunately, since it is by design that unknown --enable arguments > are ignored, I don't know of a handy way to switch that behavior to > warn or fail instead. Thanks anyways Eric. -- Kip Warner | Senior Software Engineer OpenPGP

Re: AC_ARG_ENABLE and checking for unrecognized switches

2019-03-14 Thread Eric Blake
On 3/14/19 10:56 PM, Kip Warner wrote: > Hey list, > > I use AC_ARG_ENABLE to create a number of different --enable switches. > I noticed when I accidentally mistyped the in --enable- > , ./configure didn't bail on the unrecognized switch. This is by design; the GNU Coding Standards wants

AC_ARG_ENABLE and checking for unrecognized switches

2019-03-14 Thread Kip Warner
Hey list, I use AC_ARG_ENABLE to create a number of different --enable switches. I noticed when I accidentally mistyped the in --enable- , ./configure didn't bail on the unrecognized switch. Is there something I need to add to configure.ac in order to get it to do this? -- Kip Warner | Senior