config.guess fails on HP-UX

Jeffrey A Law law@cygnus.com
Thu Sep 30 19:57:00 GMT 1999


  In message < 37D77311.E04@mra.man.de >you write:
  > 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`
Err, _HPUX_SOURCE is set by default for every compiler I've seen on HPs.

You should find out why _HPUX_SOURCE is not being properly set by whatever
compiler you are using.
jeff



More information about the Gcc-bugs mailing list