autoconf
[Top][All Lists]
Advanced

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

Re: Making configure.in so the good compiler is choose


From: David Burg
Subject: Re: Making configure.in so the good compiler is choose
Date: Thu, 31 May 2001 12:17:54 +0200

Hello,

And thanks for the 3 replies, the one of Alexandre match the best, because I
want no only to do cross-compiling but still be able to do normal compiling
with a simple

./confgure

Command. If I remove AC_PROG_CXX, CXX shell variable will not be set* and
Makefile will have a

CXX=

(blank), and this is not good. I'd like not to be forced to give the right
compiler for normal compilation.

Now it seems to work in an acceptable way, even if the source code doesn't
not compile probably because of some none-portable to StrongArm code.

But, if I well understand what Alexandre said, I should also be able to
enter a

./configure --host=arm-linux --build=i686-pc-linux-gnu

And shell variable for compiler will be correctely detected automatically ?

Best regards,

David Burg.

*: I need to make both C compiler, C preprocessor and C++ compiler avaible
in case source code merge C and C++ code.

----- Original Message -----
From: "Alexandre Oliva" <address@hidden>
To: "David Burg" <address@hidden>
Cc: <address@hidden>
Sent: Thursday, May 31, 2001 5:35 AM
Subject: Re: Making configure.in so the good compiler is choose


> On May 30, 2001, "David Burg" <address@hidden> wrote:
>
> > bash-2.04# CC=arm-linux-gcc ./configure --target=arm-linux
>
> If you have a compiler for arm-linux, you want to specify
> --host=arm-linux.  host is the machine type on which the programs you
> build are going to run.  --target is only significant when you're
> building development tools, and you want the tools you create to
> generate code for the --target machine type.
>
> You'll find that if you specify --build=i686-pc-linux-gnu
> --host=arm-linux, configure will look for arm-linux-gcc and
> arm-linux-g++ for CC and CXX.
>
> --
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  address@hidden, redhat.com}
> CS PhD student at IC-Unicamp        address@hidden, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me
>




reply via email to

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