Re: help setting LDFLAGS and CFLAGS within AC_ARG_ENABLE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Stepan,

* Stepan Kasal wrote on Fri, Aug 19, 2005 at 03:02:34PM CEST:
>   
> On Fri, Aug 19, 2005 at 10:02:37AM +0200, Ralf Wildenhues wrote:
> > but I think Autoconf sanitizes the $enable_* variables so that it is not
> > necessary to do so (`-' is changed to `_').
> 
> No, this is not true.  
> 
> If the user, calls ./configure --enable-certification=-n, then variable
> enable_certification="-n".

Yep.  Thinko again (variable names != variable contents).

> The documentation say that there are platforms which would be confused by
> 	test "-n" != no
> so Autoconf traditionally uses
> 	test x"$enable_certification" != xno
> 
> I'm not sure whether
> 	test no != -n
> can couse problems on some platforms...

I'd guess not.

> > I see that several examples in the Autoconf manual do this differently.
> > Below is a proposed patch to fix this.
> 
> Yes, Ralph, the patch looks good.

Thanks,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux