autoconf
[Top][All Lists]
Advanced

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

Re: list of --host options


From: Benoit SIGOURE
Subject: Re: list of --host options
Date: Mon, 1 Oct 2007 13:30:43 +0200

On Oct 1, 2007, at 1:01 PM, Joao Miguel Ferreira wrote:

Hello all,

Hello Joao Miguel,


where can I find a list of the currentlly supported --host=myHost
options for cross compilation... (linux, hp, sun, cygwin, etc)


AFAIK there is no such list, however as soon as you use AC_CANONICAL_HOST in configure.ac *and* you use automake, automake will install config.sub and config.guess. The role of config.sub is to validate and canonicalize a given --host whereas the role of config.guess is to guess a canonical system name.

# Find the canonical name of mingw32
$ ./config.sub mingw32
i386-pc-mingw32

# Find the canonical name of my system
$ ./config.guess
i386-apple-darwin8.10.1

By looking at the switch-case done by these scripts, you can figure out the various hosts recognized by --host.

By the way, I have a question to the list, AC_CANONICAL_HOST implies AC_CANONICAL_BUILD, maybe this should be mentionned in the documentation? Also, is it normal that I absolutely need to use automake in order to use AC_CANONICAL_*? Actually, as soon as you use AC_CANONICAL_*, configure will require install-sh, which is installed by automake. Thus you have to use AM_INIT_AUTOMAKE and at least add an empty Makefile.am and use AC_CONFIG_FILES([Makefile]).

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

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