This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
config.guess fails on HP-UX
- To: gcc-bugs at gcc dot gnu dot org
- Subject: config.guess fails on HP-UX
- From: Dietmar Schindler <schd at mra dot man dot de>
- Date: Thu, 09 Sep 1999 10:42:57 +0200
- Organization: MAN Roland
GCC version 2.95.1
system type hppa2.0 hpux10.20
config.guess returns "-hp-hpux10.20" instead of "hppa2.0-hp-hpux10.20".
This is because the C program dummy generated temporarily by
config.guess doesn't work when a certain macro isn't defined for the
compilation. The bug can be fixed by changing line 409 of config.guess:
(${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy`
to
(${CC-cc} -D_HPUX_SOURCE dummy.c -o dummy 2>/dev/null ) &&
HP_ARCH=`./dummy`