3 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 |
4 |
# Free Software Foundation, Inc. |
# Free Software Foundation, Inc. |
5 |
|
|
6 |
timestamp='2001-09-13' |
timestamp='2001-10-05' |
7 |
|
|
8 |
# This file is free software; you can redistribute it and/or modify it |
# This file is free software; you can redistribute it and/or modify it |
9 |
# under the terms of the GNU General Public License as published by |
# under the terms of the GNU General Public License as published by |
24 |
# configuration script generated by Autoconf, you may include it under |
# configuration script generated by Autoconf, you may include it under |
25 |
# the same distribution terms that you use for the rest of that program. |
# the same distribution terms that you use for the rest of that program. |
26 |
|
|
27 |
# Written by Per Bothner <bothner@cygnus.com>. |
# Originally written by Per Bothner <bothner@cygnus.com>. |
28 |
# Please send patches to <config-patches@gnu.org>. |
# Please send patches to <config-patches@gnu.org>. Submit a context |
29 |
|
# diff and a properly formatted ChangeLog entry. |
30 |
# |
# |
31 |
# This script attempts to guess a canonical system name similar to |
# This script attempts to guess a canonical system name similar to |
32 |
# config.sub. If it succeeds, it prints the system name on stdout, and |
# config.sub. If it succeeds, it prints the system name on stdout, and |
548 |
9000/31? ) HP_ARCH=m68000 ;; |
9000/31? ) HP_ARCH=m68000 ;; |
549 |
9000/[34]?? ) HP_ARCH=m68k ;; |
9000/[34]?? ) HP_ARCH=m68k ;; |
550 |
9000/[678][0-9][0-9]) |
9000/[678][0-9][0-9]) |
551 |
case "${HPUX_REV}" in |
if [ -x /usr/bin/getconf ]; then |
552 |
11.[0-9][0-9]) |
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
|
if [ -x /usr/bin/getconf ]; then |
|
|
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
|
553 |
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
554 |
case "${sc_cpu_version}" in |
case "${sc_cpu_version}" in |
555 |
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 |
558 |
case "${sc_kernel_bits}" in |
case "${sc_kernel_bits}" in |
559 |
32) HP_ARCH="hppa2.0n" ;; |
32) HP_ARCH="hppa2.0n" ;; |
560 |
64) HP_ARCH="hppa2.0w" ;; |
64) HP_ARCH="hppa2.0w" ;; |
561 |
|
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 |
562 |
esac ;; |
esac ;; |
563 |
esac |
esac |
564 |
fi ;; |
fi |
565 |
esac |
if [ "${HP_ARCH}" = "" ]; then |
566 |
if [ "${HP_ARCH}" = "" ]; then |
eval $set_cc_for_build |
567 |
eval $set_cc_for_build |
sed 's/^ //' << EOF >$dummy.c |
|
sed 's/^ //' << EOF >$dummy.c |
|
568 |
|
|
569 |
#define _HPUX_SOURCE |
#define _HPUX_SOURCE |
570 |
#include <stdlib.h> |
#include <stdlib.h> |
597 |
exit (0); |
exit (0); |
598 |
} |
} |
599 |
EOF |
EOF |
600 |
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` |
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy` |
601 |
if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi |
if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi |
602 |
rm -f $dummy.c $dummy |
rm -f $dummy.c $dummy |
603 |
fi ;; |
fi ;; |
604 |
esac |
esac |
605 |
echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
606 |
exit 0 ;; |
exit 0 ;; |
947 |
exit 0 ;; |
exit 0 ;; |
948 |
M68*:*:R3V[567]*:*) |
M68*:*:R3V[567]*:*) |
949 |
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
950 |
3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) |
3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0) |
951 |
OS_REL='' |
OS_REL='' |
952 |
test -r /etc/.relid \ |
test -r /etc/.relid \ |
953 |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |