Hello,

On Tue, Feb 15, 2005 at 11:11:39AM -0800, Rashmi Keshava Iyengar wrote:
> 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 don't understand why you would need two configure.ac's.

Why couldn't you solve this by an --enable option?
Then you could do

options_build2=--enable-xxx
for dir in build1 build2; do
        (mkdir $dir &&
        cd $dir &&
        eval ../configure \${options_$dir} &&
        make)
done

> I would rather pass in the build type during "make".
> Are there any other options?

Ok, then you cannot use @[EMAIL PROTECTED] as it is substituted in configure 
time.
But you can use variables assigned on the command line.
What's the problem with the following:

COMMONDEFINES = -D_GNU_SOURCE -D_REENTRANT -DLINUX \
  -DTURN_DEBUGGING_OFF $(MY_DEFINES)

and running "make" or "make MY_DEFINES=-DUINT_WORD32" to get the two
different builds?

Have a nice day,
        Stepan Kasal


Reply via email to