autoconf
[Top][All Lists]
Advanced

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

Re: help setting LDFLAGS and CFLAGS within AC_ARG_ENABLE


From: Ralf Wildenhues
Subject: Re: help setting LDFLAGS and CFLAGS within AC_ARG_ENABLE
Date: Fri, 19 Aug 2005 16:31:00 +0200
User-agent: Mutt/1.4.1i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]