automake
[Top][All Lists]
Advanced

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

Re: how to check 64bit or 32 bit machine?


From: Ralf Wildenhues
Subject: Re: how to check 64bit or 32 bit machine?
Date: Thu, 22 Nov 2007 08:06:56 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* Ralf Wildenhues wrote on Thu, Nov 22, 2007 at 08:05:46AM CET:
> 
>   save_LDFLAGS=$LDFLAGS
>   found=no
>   for try in "" -L.../linux -L.../linux64; do

And there should be an
  LDFLAGS="$LDFLAGS $try"

in here.  Sorry about that.

>     AC_LINK_IFELSE([AC_LANG_PROGRAM([PROLOGUE...], [BODY...])],
>                    [found=$try])
>     if "X$found" != Xno; then break; fi
>   done
>   # do something with $found here, for example just keep it in LDFLAGS.
>   LDFLAGS=$save_LDFLAGS




reply via email to

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