Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

Compiling using the 'autoconf' configure script UNIX
When running the autoconf configure script, it will likely fail to identify the host type using its config.guess info. The error message it will produce is the following:
configure: error: can not guess host type; you must specify one
To get past this error, run the script with the host argument:
./configure -host powerpc-apple-bsd
This should allow the configuration script to complete, and when cc (the one that Apple ships, based on gcc) runs, it should compile.
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[7,327 views]  

Compiling using the 'autoconf' configure script | 6 comments | Create New Account
Click here to return to the 'Compiling using the 'autoconf' configure script' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
I'm pretty sure its powerpc-apple-macos
Authored by: appleweek on Sat, Apr 14 2001 at 4:36PM PDT
I don't think its powerpc-apple-bsd. i read the developer docs (developer.apple.com), and their usually call it:

powerpc-apple-macos

, just my 2cents

[ Reply to This | # ]
I'm pretty sure its powerpc-apple-macos
Authored by: sehrgut on Tue, Jan 2 2007 at 8:36PM PST
powerpc-apple-macos is the canonical build triplet.
powerpc-apple-darwin also works.
For older packages, powerpc-apple-bsd is necessary, since they may not recognize the *-darwin or *-macos operating system identifiers. (One package that requires this that I build on quite a few different machines is the GNU "style and diction" package (http://www.gnu.org/software/diction/diction.html.)

[ Reply to This | # ]
use config.guess
Authored by: yuriwho on Sat, Apr 14 2001 at 4:46PM PDT
Apples solution to this is to use their config.guess and config.sub scripts.

just copy /usr/libexec/config.* to the directory you are running configure from, the configure should get past this problem.

by the way..config.guess gives the host type: powerpc-apple-darwin1.3

cheers,

Yuri

[ Reply to This | # ]
use config.guess
Authored by: bugmenot on Tue, Aug 14 2007 at 2:58PM PDT
In 10.4, these files are at /usr/share/libtool/config.*.

[ Reply to This | # ]
Compiling using the 'autoconf' configure script
Authored by: alys on Sat, May 8 2004 at 11:47PM PDT

Some of the information in this hint and earlier replies might be outdated now. Here's something I found in section 8.2.2 of the book "Mac OS X Panther for Unix Geeks" by Brian Jepson, Ernest E. Rothman (http://www.oreilly.com/catalog/mpantherunix/):

The configure script is designed to be used with two files [config.guess and config.sub] related to the host type, usually residing in the same directory as the configure script... You may run across source code distributions containing older config.* files that don't work with Mac OS X... You can replace the config.guess and config.sub files with the Apple-supplied, like-named versions... Simply issue the following commands from within the sources directory:
cp /usr/share/automake-1.6/config.sub .
cp /usr/share/automake-1.6/config.guess .

Note that there's a space followed by a full stop at the end of both those commands. You will probably need to prefix the commands with sudo.



[ Reply to This | # ]
Compiling using the 'autoconf' configure script
Authored by: bugmenot on Sat, Jul 21 2007 at 12:53AM PDT
You don't need to use sudo, and it's recommended that you don't. You usually only need sudo to write to system directories, not to read from them.
Also, on 10.4, the files are in /usr/share/libtool/ .

[ Reply to This | # ]