[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automake conditional ..question
From: |
Rashmi Keshava Iyengar |
Subject: |
Re: Automake conditional ..question |
Date: |
Tue, 15 Feb 2005 11:11:39 -0800 |
Thanks Stepan! I did think about putting in the conditional in
configure.in/.ac but
even though it can be arranged so that it will be known at configure
time what build
is preferred I do not want to implement it this way (essentially this
will require us to
use two different configure.ac files to generate the makefiles the way
things are set up here). I would rather pass in the build type during
"make".
Are there any other options?
Thanks
Rashmi
On Tue, 15 Feb 2005 07:59:43 +0100, Stepan Kasal <address@hidden> wrote:
> Hello,
>
> On Mon, Feb 14, 2005 at 05:40:12PM -0800, Rashmi Keshava Iyengar wrote:
> > COMMONDEFINES = -D_GNU_SOURCE -D_REENTRANT -DLINUX -DTURN_DEBUGGING_OFF
> > @address@hidden ($(U32BUILD),1)
> > COMMONDEFINES += -DUINT_WORD32
> > @address@hidden
>
> Automake has no chance to understand this hack.
> Use Automake conditionals, as described in the manual:
>
> AM_CONDITIONAL([BLDCHK],
> [test "$want_build_check" = yes && test "$u32build" = yes])
>
> Is it possible to determine at configure time whether the build is ``U32''?
>
> COMMONDEFINES = -D_GNU_SOURCE -D_REENTRANT -DLINUX -DTURN_DEBUGGING_OFF
> if BLDCHK
> COMMONDEFINES += -DUINT_WORD32
> endif
>
> > BTW, I'm using Automake version 1.6.3
>
> This is way too old. I'd suggest using a recent version; 1.9.5 has just
> came out.
>
> Stepan
>