Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 112194
Collapse All | Expand All

(-)zephyr.orig/Makefile.in (-1 / +1 lines)
Lines 7-13 Link Here
7
sbindir=@sbindir@
7
sbindir=@sbindir@
8
8
9
includedir=${prefix}/include
9
includedir=${prefix}/include
10
mandir=${prefix}/man
10
mandir=@mandir@
11
bindir=${exec_prefix}/bin
11
bindir=${exec_prefix}/bin
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
13
(-)zephyr.orig/aclocal.m4 (-1 / +1 lines)
Lines 274-280 Link Here
274
	LDFLAGS="$LDFLAGS -L$hesiod/lib"
274
	LDFLAGS="$LDFLAGS -L$hesiod/lib"
275
fi
275
fi
276
AC_CHECK_LIB(hesiod, hes_resolve, :,
276
AC_CHECK_LIB(hesiod, hes_resolve, :,
277
	     [AC_MSG_ERROR(Hesiod library not found)])])
277
	     [AC_MSG_ERROR(Hesiod library not found)],$LIBS)])
278
278
279
AC_DEFUN(ATHENA_HESIOD,
279
AC_DEFUN(ATHENA_HESIOD,
280
[AC_ARG_WITH(hesiod,
280
[AC_ARG_WITH(hesiod,
(-)zephyr.orig/clients/xzwrite/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/zaway/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/zctl/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/zleave/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/zlocate/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/zmailnotify/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/znol/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/zpopnotify/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/zshutdown_notify/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/zstat/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/clients/zwrite/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/config.guess (-338 / +848 lines)
Lines 1-7 Link Here
1
#! /bin/sh
1
#! /bin/sh
2
# Attempt to guess a canonical system name.
2
# Attempt to guess a canonical system name.
3
#   Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
#
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
6
timestamp='2005-03-24'
7
5
# This file is free software; you can redistribute it and/or modify it
8
# This file is free software; you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License as published by
9
# under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
10
# the Free Software Foundation; either version 2 of the License, or
Lines 21-148 Link Here
21
# configuration script generated by Autoconf, you may include it under
24
# configuration script generated by Autoconf, you may include it under
22
# the same distribution terms that you use for the rest of that program.
25
# the same distribution terms that you use for the rest of that program.
23
26
24
# Written by Per Bothner <bothner@cygnus.com>.
27
# Originally written by Per Bothner <per@bothner.com>.
25
# The master version of this file is at the FSF in /home/gd/gnu/lib.
28
# Please send patches to <config-patches@gnu.org>.  Submit a context
29
# diff and a properly formatted ChangeLog entry.
26
#
30
#
27
# This script attempts to guess a canonical system name similar to
31
# This script attempts to guess a canonical system name similar to
28
# config.sub.  If it succeeds, it prints the system name on stdout, and
32
# config.sub.  If it succeeds, it prints the system name on stdout, and
29
# exits with 0.  Otherwise, it exits with 1.
33
# exits with 0.  Otherwise, it exits with 1.
30
#
34
#
31
# The plan is that this can be called by configure scripts if you
35
# The plan is that this can be called by configure scripts if you
32
# don't specify an explicit system type (host/target name).
36
# don't specify an explicit build system type.
33
#
37
34
# Only a few systems have been added to this list; please add others
38
me=`echo "$0" | sed -e 's,.*/,,'`
35
# (but try to keep the structure clean).
39
36
#
40
usage="\
41
Usage: $0 [OPTION]
42
43
Output the configuration name of the system \`$me' is run on.
44
45
Operation modes:
46
  -h, --help         print this help, then exit
47
  -t, --time-stamp   print date of last modification, then exit
48
  -v, --version      print version number, then exit
49
50
Report bugs and patches to <config-patches@gnu.org>."
51
52
version="\
53
GNU config.guess ($timestamp)
54
55
Originally written by Per Bothner.
56
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
57
Free Software Foundation, Inc.
58
59
This is free software; see the source for copying conditions.  There is NO
60
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
61
62
help="
63
Try \`$me --help' for more information."
64
65
# Parse command line
66
while test $# -gt 0 ; do
67
  case $1 in
68
    --time-stamp | --time* | -t )
69
       echo "$timestamp" ; exit 0 ;;
70
    --version | -v )
71
       echo "$version" ; exit 0 ;;
72
    --help | --h* | -h )
73
       echo "$usage"; exit 0 ;;
74
    -- )     # Stop option processing
75
       shift; break ;;
76
    - )	# Use stdin as input.
77
       break ;;
78
    -* )
79
       echo "$me: invalid option $1$help" >&2
80
       exit 1 ;;
81
    * )
82
       break ;;
83
  esac
84
done
85
86
if test $# != 0; then
87
  echo "$me: too many arguments$help" >&2
88
  exit 1
89
fi
90
91
trap 'exit 1' 1 2 15
92
93
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
94
# compiler to aid in system detection is discouraged as it requires
95
# temporary files to be created and, as you can see below, it is a
96
# headache to deal with in a portable fashion.
97
98
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
99
# use `HOST_CC' if defined, but it is deprecated.
100
101
# Portable tmp directory creation inspired by the Autoconf team.
102
103
set_cc_for_build='
104
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
105
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
106
: ${TMPDIR=/tmp} ;
107
 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
109
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
110
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
111
dummy=$tmp/dummy ;
112
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
113
case $CC_FOR_BUILD,$HOST_CC,$CC in
114
 ,,)    echo "int x;" > $dummy.c ;
115
	for c in cc gcc c89 c99 ; do
116
	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
117
	     CC_FOR_BUILD="$c"; break ;
118
	  fi ;
119
	done ;
120
	if test x"$CC_FOR_BUILD" = x ; then
121
	  CC_FOR_BUILD=no_compiler_found ;
122
	fi
123
	;;
124
 ,,*)   CC_FOR_BUILD=$CC ;;
125
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
126
esac ;'
37
127
38
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
128
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
39
# (ghazi@noc.rutgers.edu 8/24/94.)
129
# (ghazi@noc.rutgers.edu 1994-08-24)
40
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
130
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
41
	PATH=$PATH:/.attbin ; export PATH
131
	PATH=$PATH:/.attbin ; export PATH
42
fi
132
fi
43
133
44
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
134
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
45
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
135
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
46
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
136
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
47
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
137
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
48
138
49
trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
50
51
# Note: order is significant - the case branches are not exclusive.
139
# Note: order is significant - the case branches are not exclusive.
52
140
53
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
141
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
142
    *:NetBSD:*:*)
143
	# NetBSD (nbsd) targets should (where applicable) match one or
144
	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
145
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
146
	# switched to ELF, *-*-netbsd* would select the old
147
	# object file format.  This provides both forward
148
	# compatibility and a consistent mechanism for selecting the
149
	# object file format.
150
	#
151
	# Note: NetBSD doesn't particularly care about the vendor
152
	# portion of the name.  We always set it to "unknown".
153
	sysctl="sysctl -n hw.machine_arch"
154
	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
155
	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
156
	case "${UNAME_MACHINE_ARCH}" in
157
	    armeb) machine=armeb-unknown ;;
158
	    arm*) machine=arm-unknown ;;
159
	    sh3el) machine=shl-unknown ;;
160
	    sh3eb) machine=sh-unknown ;;
161
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
162
	esac
163
	# The Operating System including object format, if it has switched
164
	# to ELF recently, or will in the future.
165
	case "${UNAME_MACHINE_ARCH}" in
166
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
167
		eval $set_cc_for_build
168
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
169
			| grep __ELF__ >/dev/null
170
		then
171
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
172
		    # Return netbsd for either.  FIX?
173
		    os=netbsd
174
		else
175
		    os=netbsdelf
176
		fi
177
		;;
178
	    *)
179
	        os=netbsd
180
		;;
181
	esac
182
	# The OS release
183
	# Debian GNU/NetBSD machines have a different userland, and
184
	# thus, need a distinct triplet. However, they do not need
185
	# kernel version information, so it can be replaced with a
186
	# suitable tag, in the style of linux-gnu.
187
	case "${UNAME_VERSION}" in
188
	    Debian*)
189
		release='-gnu'
190
		;;
191
	    *)
192
		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
193
		;;
194
	esac
195
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
196
	# contains redundant information, the shorter form:
197
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
198
	echo "${machine}-${os}${release}"
199
	exit 0 ;;
200
    amd64:OpenBSD:*:*)
201
	echo x86_64-unknown-openbsd${UNAME_RELEASE}
202
	exit 0 ;;
203
    amiga:OpenBSD:*:*)
204
	echo m68k-unknown-openbsd${UNAME_RELEASE}
205
	exit 0 ;;
206
    cats:OpenBSD:*:*)
207
	echo arm-unknown-openbsd${UNAME_RELEASE}
208
	exit 0 ;;
209
    hp300:OpenBSD:*:*)
210
	echo m68k-unknown-openbsd${UNAME_RELEASE}
211
	exit 0 ;;
212
    luna88k:OpenBSD:*:*)
213
    	echo m88k-unknown-openbsd${UNAME_RELEASE}
214
	exit 0 ;;
215
    mac68k:OpenBSD:*:*)
216
	echo m68k-unknown-openbsd${UNAME_RELEASE}
217
	exit 0 ;;
218
    macppc:OpenBSD:*:*)
219
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
220
	exit 0 ;;
221
    mvme68k:OpenBSD:*:*)
222
	echo m68k-unknown-openbsd${UNAME_RELEASE}
223
	exit 0 ;;
224
    mvme88k:OpenBSD:*:*)
225
	echo m88k-unknown-openbsd${UNAME_RELEASE}
226
	exit 0 ;;
227
    mvmeppc:OpenBSD:*:*)
228
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
229
	exit 0 ;;
230
    sgi:OpenBSD:*:*)
231
	echo mips64-unknown-openbsd${UNAME_RELEASE}
232
	exit 0 ;;
233
    sun3:OpenBSD:*:*)
234
	echo m68k-unknown-openbsd${UNAME_RELEASE}
235
	exit 0 ;;
236
    *:OpenBSD:*:*)
237
	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
238
	exit 0 ;;
239
    *:ekkoBSD:*:*)
240
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
241
	exit 0 ;;
242
    macppc:MirBSD:*:*)
243
	echo powerppc-unknown-mirbsd${UNAME_RELEASE}
244
	exit 0 ;;
245
    *:MirBSD:*:*)
246
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
247
	exit 0 ;;
54
    alpha:OSF1:*:*)
248
    alpha:OSF1:*:*)
55
	if test $UNAME_RELEASE = "V4.0"; then
249
	case $UNAME_RELEASE in
250
	*4.0)
56
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
251
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
57
	fi
252
		;;
253
	*5.*)
254
	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
255
		;;
256
	esac
257
	# According to Compaq, /usr/sbin/psrinfo has been available on
258
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
259
	# covers most systems running today.  This code pipes the CPU
260
	# types through head -n 1, so we only detect the type of CPU 0.
261
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
262
	case "$ALPHA_CPU_TYPE" in
263
	    "EV4 (21064)")
264
		UNAME_MACHINE="alpha" ;;
265
	    "EV4.5 (21064)")
266
		UNAME_MACHINE="alpha" ;;
267
	    "LCA4 (21066/21068)")
268
		UNAME_MACHINE="alpha" ;;
269
	    "EV5 (21164)")
270
		UNAME_MACHINE="alphaev5" ;;
271
	    "EV5.6 (21164A)")
272
		UNAME_MACHINE="alphaev56" ;;
273
	    "EV5.6 (21164PC)")
274
		UNAME_MACHINE="alphapca56" ;;
275
	    "EV5.7 (21164PC)")
276
		UNAME_MACHINE="alphapca57" ;;
277
	    "EV6 (21264)")
278
		UNAME_MACHINE="alphaev6" ;;
279
	    "EV6.7 (21264A)")
280
		UNAME_MACHINE="alphaev67" ;;
281
	    "EV6.8CB (21264C)")
282
		UNAME_MACHINE="alphaev68" ;;
283
	    "EV6.8AL (21264B)")
284
		UNAME_MACHINE="alphaev68" ;;
285
	    "EV6.8CX (21264D)")
286
		UNAME_MACHINE="alphaev68" ;;
287
	    "EV6.9A (21264/EV69A)")
288
		UNAME_MACHINE="alphaev69" ;;
289
	    "EV7 (21364)")
290
		UNAME_MACHINE="alphaev7" ;;
291
	    "EV7.9 (21364A)")
292
		UNAME_MACHINE="alphaev79" ;;
293
	esac
294
	# A Pn.n version is a patched version.
58
	# A Vn.n version is a released version.
295
	# A Vn.n version is a released version.
59
	# A Tn.n version is a released field test version.
296
	# A Tn.n version is a released field test version.
60
	# A Xn.n version is an unreleased experimental baselevel.
297
	# A Xn.n version is an unreleased experimental baselevel.
61
	# 1.2 uses "1.2" for uname -r.
298
	# 1.2 uses "1.2" for uname -r.
62
	cat <<EOF >dummy.s
299
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
63
	.globl main
300
	exit 0 ;;
64
	.ent main
301
    Alpha\ *:Windows_NT*:*)
65
main:
302
	# How do we know it's Interix rather than the generic POSIX subsystem?
66
	.frame \$30,0,\$26,0
303
	# Should we change UNAME_MACHINE based on the output of uname instead
67
	.prologue 0
304
	# of the specific Alpha model?
68
	.long 0x47e03d80 # implver $0
305
	echo alpha-pc-interix
69
	lda \$2,259
70
	.long 0x47e20c21 # amask $2,$1
71
	srl \$1,8,\$2
72
	sll \$2,2,\$2
73
	sll \$0,3,\$0
74
	addl \$1,\$0,\$0
75
	addl \$2,\$0,\$0
76
	ret \$31,(\$26),1
77
	.end main
78
EOF
79
	${CC-cc} dummy.s -o dummy 2>/dev/null
80
	if test "$?" = 0 ; then
81
		./dummy
82
		case "$?" in
83
			7)
84
				UNAME_MACHINE="alpha"
85
				;;
86
			15)
87
				UNAME_MACHINE="alphaev5"
88
				;;
89
			14)
90
				UNAME_MACHINE="alphaev56"
91
				;;
92
			10)
93
				UNAME_MACHINE="alphapca56"
94
				;;
95
			16)
96
				UNAME_MACHINE="alphaev6"
97
				;;
98
		esac
99
	fi
100
	rm -f dummy.s dummy
101
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
102
	exit 0 ;;
306
	exit 0 ;;
103
    21064:Windows_NT:50:3)
307
    21064:Windows_NT:50:3)
104
	echo alpha-dec-winnt3.5
308
	echo alpha-dec-winnt3.5
105
	exit 0 ;;
309
	exit 0 ;;
106
    Amiga*:UNIX_System_V:4.0:*)
310
    Amiga*:UNIX_System_V:4.0:*)
107
	echo m68k-cbm-sysv4
311
	echo m68k-unknown-sysv4
108
	exit 0;;
312
	exit 0;;
109
    amiga:NetBSD:*:*)
110
      echo m68k-cbm-netbsd${UNAME_RELEASE}
111
      exit 0 ;;
112
    amiga:OpenBSD:*:*)
113
	echo m68k-unknown-openbsd${UNAME_RELEASE}
114
	exit 0 ;;
115
    *:[Aa]miga[Oo][Ss]:*:*)
313
    *:[Aa]miga[Oo][Ss]:*:*)
116
	echo ${UNAME_MACHINE}-unknown-amigaos
314
	echo ${UNAME_MACHINE}-unknown-amigaos
117
	exit 0 ;;
315
	exit 0 ;;
118
    arc64:OpenBSD:*:*)
316
    *:[Mm]orph[Oo][Ss]:*:*)
119
	echo mips64el-unknown-openbsd${UNAME_RELEASE}
317
	echo ${UNAME_MACHINE}-unknown-morphos
120
	exit 0 ;;
318
	exit 0 ;;
121
    arc:OpenBSD:*:*)
319
    *:OS/390:*:*)
122
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
320
	echo i370-ibm-openedition
123
	exit 0 ;;
321
	exit 0 ;;
124
    hkmips:OpenBSD:*:*)
322
    *:z/VM:*:*)
125
	echo mips-unknown-openbsd${UNAME_RELEASE}
323
	echo s390-ibm-zvmoe
126
	exit 0 ;;
324
	exit 0 ;;
127
    pmax:OpenBSD:*:*)
325
    *:OS400:*:*)
128
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
326
        echo powerpc-ibm-os400
129
	exit 0 ;;
130
    sgi:OpenBSD:*:*)
131
	echo mips-unknown-openbsd${UNAME_RELEASE}
132
	exit 0 ;;
133
    wgrisc:OpenBSD:*:*)
134
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
135
	exit 0 ;;
327
	exit 0 ;;
136
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
328
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
137
	echo arm-acorn-riscix${UNAME_RELEASE}
329
	echo arm-acorn-riscix${UNAME_RELEASE}
138
	exit 0;;
330
	exit 0;;
139
    arm32:NetBSD:*:*)
331
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
140
	echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
141
	exit 0 ;;
142
    SR2?01:HI-UX/MPP:*:*)
143
	echo hppa1.1-hitachi-hiuxmpp
332
	echo hppa1.1-hitachi-hiuxmpp
144
	exit 0;;
333
	exit 0;;
145
    Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*)
334
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
146
	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
335
	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
147
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
336
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
148
		echo pyramid-pyramid-sysv3
337
		echo pyramid-pyramid-sysv3
Lines 150-158 Link Here
150
		echo pyramid-pyramid-bsd
339
		echo pyramid-pyramid-bsd
151
	fi
340
	fi
152
	exit 0 ;;
341
	exit 0 ;;
153
    NILE:*:*:dcosx)
342
    NILE*:*:*:dcosx)
154
	echo pyramid-pyramid-svr4
343
	echo pyramid-pyramid-svr4
155
	exit 0 ;;
344
	exit 0 ;;
345
    DRS?6000:unix:4.0:6*)
346
	echo sparc-icl-nx6
347
	exit 0 ;;
348
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
349
	case `/usr/bin/uname -p` in
350
	    sparc) echo sparc-icl-nx7 && exit 0 ;;
351
	esac ;;
156
    sun4H:SunOS:5.*:*)
352
    sun4H:SunOS:5.*:*)
157
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
353
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
158
	exit 0 ;;
354
	exit 0 ;;
Lines 181-187 Link Here
181
	echo m68k-sun-sunos${UNAME_RELEASE}
377
	echo m68k-sun-sunos${UNAME_RELEASE}
182
	exit 0 ;;
378
	exit 0 ;;
183
    sun*:*:4.2BSD:*)
379
    sun*:*:4.2BSD:*)
184
	UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
380
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
185
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
381
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
186
	case "`/bin/arch`" in
382
	case "`/bin/arch`" in
187
	    sun3)
383
	    sun3)
Lines 195-230 Link Here
195
    aushp:SunOS:*:*)
391
    aushp:SunOS:*:*)
196
	echo sparc-auspex-sunos${UNAME_RELEASE}
392
	echo sparc-auspex-sunos${UNAME_RELEASE}
197
	exit 0 ;;
393
	exit 0 ;;
198
    atari*:NetBSD:*:*)
394
    # The situation for MiNT is a little confusing.  The machine name
199
	echo m68k-atari-netbsd${UNAME_RELEASE}
395
    # can be virtually everything (everything which is not
396
    # "atarist" or "atariste" at least should have a processor
397
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
398
    # to the lowercase version "mint" (or "freemint").  Finally
399
    # the system name "TOS" denotes a system which is actually not
400
    # MiNT.  But MiNT is downward compatible to TOS, so this should
401
    # be no problem.
402
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
403
        echo m68k-atari-mint${UNAME_RELEASE}
200
	exit 0 ;;
404
	exit 0 ;;
201
    atari*:OpenBSD:*:*)
405
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
202
	echo m68k-unknown-openbsd${UNAME_RELEASE}
406
	echo m68k-atari-mint${UNAME_RELEASE}
203
	exit 0 ;;
407
        exit 0 ;;
204
    sun3*:NetBSD:*:*)
408
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
205
	echo m68k-sun-netbsd${UNAME_RELEASE}
409
        echo m68k-atari-mint${UNAME_RELEASE}
206
	exit 0 ;;
207
    sun3*:OpenBSD:*:*)
208
	echo m68k-unknown-openbsd${UNAME_RELEASE}
209
	exit 0 ;;
210
    mac68k:NetBSD:*:*)
211
	echo m68k-apple-netbsd${UNAME_RELEASE}
212
	exit 0 ;;
213
    mac68k:OpenBSD:*:*)
214
	echo m68k-unknown-openbsd${UNAME_RELEASE}
215
	exit 0 ;;
216
    mvme68k:OpenBSD:*:*)
217
	echo m68k-unknown-openbsd${UNAME_RELEASE}
218
	exit 0 ;;
410
	exit 0 ;;
219
    mvme88k:OpenBSD:*:*)
411
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
220
	echo m88k-unknown-openbsd${UNAME_RELEASE}
412
        echo m68k-milan-mint${UNAME_RELEASE}
413
        exit 0 ;;
414
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
415
        echo m68k-hades-mint${UNAME_RELEASE}
416
        exit 0 ;;
417
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
418
        echo m68k-unknown-mint${UNAME_RELEASE}
419
        exit 0 ;;
420
    m68k:machten:*:*)
421
	echo m68k-apple-machten${UNAME_RELEASE}
221
	exit 0 ;;
422
	exit 0 ;;
222
    powerpc:machten:*:*)
423
    powerpc:machten:*:*)
223
	echo powerpc-apple-machten${UNAME_RELEASE}
424
	echo powerpc-apple-machten${UNAME_RELEASE}
224
	exit 0 ;;
425
	exit 0 ;;
225
    macppc:NetBSD:*:*)
226
        echo powerpc-apple-netbsd${UNAME_RELEASE}
227
        exit 0 ;;
228
    RISC*:Mach:*:*)
426
    RISC*:Mach:*:*)
229
	echo mips-dec-mach_bsd4.3
427
	echo mips-dec-mach_bsd4.3
230
	exit 0 ;;
428
	exit 0 ;;
Lines 234-245 Link Here
234
    VAX*:ULTRIX*:*:*)
432
    VAX*:ULTRIX*:*:*)
235
	echo vax-dec-ultrix${UNAME_RELEASE}
433
	echo vax-dec-ultrix${UNAME_RELEASE}
236
	exit 0 ;;
434
	exit 0 ;;
237
    2020:CLIX:*:*)
435
    2020:CLIX:*:* | 2430:CLIX:*:*)
238
	echo clipper-intergraph-clix${UNAME_RELEASE}
436
	echo clipper-intergraph-clix${UNAME_RELEASE}
239
	exit 0 ;;
437
	exit 0 ;;
240
    mips:*:*:UMIPS | mips:*:*:RISCos)
438
    mips:*:*:UMIPS | mips:*:*:RISCos)
241
	sed 's/^	//' << EOF >dummy.c
439
	eval $set_cc_for_build
242
	int main (argc, argv) int argc; char **argv; {
440
	sed 's/^	//' << EOF >$dummy.c
441
#ifdef __cplusplus
442
#include <stdio.h>  /* for printf() prototype */
443
	int main (int argc, char *argv[]) {
444
#else
445
	int main (argc, argv) int argc; char *argv[]; {
446
#endif
243
	#if defined (host_mips) && defined (MIPSEB)
447
	#if defined (host_mips) && defined (MIPSEB)
244
	#if defined (SYSTYPE_SYSV)
448
	#if defined (SYSTYPE_SYSV)
245
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
449
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
Lines 254-265 Link Here
254
	  exit (-1);
458
	  exit (-1);
255
	}
459
	}
256
EOF
460
EOF
257
	${CC-cc} dummy.c -o dummy \
461
	$CC_FOR_BUILD -o $dummy $dummy.c \
258
	  && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
462
	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
259
	  && rm dummy.c dummy && exit 0
463
	  && exit 0
260
	rm -f dummy.c dummy
261
	echo mips-mips-riscos${UNAME_RELEASE}
464
	echo mips-mips-riscos${UNAME_RELEASE}
262
	exit 0 ;;
465
	exit 0 ;;
466
    Motorola:PowerMAX_OS:*:*)
467
	echo powerpc-motorola-powermax
468
	exit 0 ;;
469
    Motorola:*:4.3:PL8-*)
470
	echo powerpc-harris-powermax
471
	exit 0 ;;
472
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
473
	echo powerpc-harris-powermax
474
	exit 0 ;;
263
    Night_Hawk:Power_UNIX:*:*)
475
    Night_Hawk:Power_UNIX:*:*)
264
	echo powerpc-harris-powerunix
476
	echo powerpc-harris-powerunix
265
	exit 0 ;;
477
	exit 0 ;;
Lines 275-289 Link Here
275
    AViiON:dgux:*:*)
487
    AViiON:dgux:*:*)
276
        # DG/UX returns AViiON for all architectures
488
        # DG/UX returns AViiON for all architectures
277
        UNAME_PROCESSOR=`/usr/bin/uname -p`
489
        UNAME_PROCESSOR=`/usr/bin/uname -p`
278
        if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
490
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
279
	if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
491
	then
280
	     -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
492
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
493
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
494
	    then
281
		echo m88k-dg-dgux${UNAME_RELEASE}
495
		echo m88k-dg-dgux${UNAME_RELEASE}
282
	else
496
	    else
283
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
497
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
498
	    fi
499
	else
500
	    echo i586-dg-dgux${UNAME_RELEASE}
284
	fi
501
	fi
285
        else echo i586-dg-dgux${UNAME_RELEASE}
286
        fi
287
 	exit 0 ;;
502
 	exit 0 ;;
288
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
503
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
289
	echo m88k-dolphin-sysv3
504
	echo m88k-dolphin-sysv3
Lines 304-315 Link Here
304
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
519
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
305
	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
520
	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
306
	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
521
	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
307
    i?86:AIX:*:*)
522
    i*86:AIX:*:*)
308
	echo i386-ibm-aix
523
	echo i386-ibm-aix
309
	exit 0 ;;
524
	exit 0 ;;
525
    ia64:AIX:*:*)
526
	if [ -x /usr/bin/oslevel ] ; then
527
		IBM_REV=`/usr/bin/oslevel`
528
	else
529
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
530
	fi
531
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
532
	exit 0 ;;
310
    *:AIX:2:3)
533
    *:AIX:2:3)
311
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
534
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
312
		sed 's/^		//' << EOF >dummy.c
535
		eval $set_cc_for_build
536
		sed 's/^		//' << EOF >$dummy.c
313
		#include <sys/systemcfg.h>
537
		#include <sys/systemcfg.h>
314
538
315
		main()
539
		main()
Lines 320-327 Link Here
320
			exit(0);
544
			exit(0);
321
			}
545
			}
322
EOF
546
EOF
323
		${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
547
		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
324
		rm -f dummy.c dummy
325
		echo rs6000-ibm-aix3.2.5
548
		echo rs6000-ibm-aix3.2.5
326
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
549
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
327
		echo rs6000-ibm-aix3.2.4
550
		echo rs6000-ibm-aix3.2.4
Lines 329-337 Link Here
329
		echo rs6000-ibm-aix3.2
552
		echo rs6000-ibm-aix3.2
330
	fi
553
	fi
331
	exit 0 ;;
554
	exit 0 ;;
332
    *:AIX:*:4)
555
    *:AIX:*:[45])
333
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
556
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
334
	if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
557
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
335
		IBM_ARCH=rs6000
558
		IBM_ARCH=rs6000
336
	else
559
	else
337
		IBM_ARCH=powerpc
560
		IBM_ARCH=powerpc
Lines 339-345 Link Here
339
	if [ -x /usr/bin/oslevel ] ; then
562
	if [ -x /usr/bin/oslevel ] ; then
340
		IBM_REV=`/usr/bin/oslevel`
563
		IBM_REV=`/usr/bin/oslevel`
341
	else
564
	else
342
		IBM_REV=4.${UNAME_RELEASE}
565
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
343
	fi
566
	fi
344
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
567
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
345
	exit 0 ;;
568
	exit 0 ;;
Lines 349-355 Link Here
349
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
572
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
350
	echo romp-ibm-bsd4.4
573
	echo romp-ibm-bsd4.4
351
	exit 0 ;;
574
	exit 0 ;;
352
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC NetBSD and
575
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
353
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
576
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
354
	exit 0 ;;                           # report: romp-ibm BSD 4.3
577
	exit 0 ;;                           # report: romp-ibm BSD 4.3
355
    *:BOSX:*:*)
578
    *:BOSX:*:*)
Lines 365-392 Link Here
365
	echo m68k-hp-bsd4.4
588
	echo m68k-hp-bsd4.4
366
	exit 0 ;;
589
	exit 0 ;;
367
    9000/[34678]??:HP-UX:*:*)
590
    9000/[34678]??:HP-UX:*:*)
591
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
368
	case "${UNAME_MACHINE}" in
592
	case "${UNAME_MACHINE}" in
369
	    9000/31? )            HP_ARCH=m68000 ;;
593
	    9000/31? )            HP_ARCH=m68000 ;;
370
	    9000/[34]?? )         HP_ARCH=m68k ;;
594
	    9000/[34]?? )         HP_ARCH=m68k ;;
371
	    9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 )
595
	    9000/[678][0-9][0-9])
372
              sed 's/^              //' << EOF >dummy.c
596
		if [ -x /usr/bin/getconf ]; then
597
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
598
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
599
                    case "${sc_cpu_version}" in
600
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
601
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
602
                      532)                      # CPU_PA_RISC2_0
603
                        case "${sc_kernel_bits}" in
604
                          32) HP_ARCH="hppa2.0n" ;;
605
                          64) HP_ARCH="hppa2.0w" ;;
606
			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
607
                        esac ;;
608
                    esac
609
		fi
610
		if [ "${HP_ARCH}" = "" ]; then
611
		    eval $set_cc_for_build
612
		    sed 's/^              //' << EOF >$dummy.c
613
614
              #define _HPUX_SOURCE
373
              #include <stdlib.h>
615
              #include <stdlib.h>
374
              #include <unistd.h>
616
              #include <unistd.h>
375
              
617
376
              int main ()
618
              int main ()
377
              {
619
              {
378
              #if defined(_SC_KERNEL_BITS)
620
              #if defined(_SC_KERNEL_BITS)
379
                  long bits = sysconf(_SC_KERNEL_BITS);
621
                  long bits = sysconf(_SC_KERNEL_BITS);
380
              #endif 
622
              #endif
381
                  long cpu  = sysconf (_SC_CPU_VERSION);
623
                  long cpu  = sysconf (_SC_CPU_VERSION);
382
              
624
383
                  switch (cpu) 
625
                  switch (cpu)
384
              	{
626
              	{
385
              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627
              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
386
              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628
              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
387
              	case CPU_PA_RISC2_0: 
629
              	case CPU_PA_RISC2_0:
388
              #if defined(_SC_KERNEL_BITS)
630
              #if defined(_SC_KERNEL_BITS)
389
              	    switch (bits) 
631
              	    switch (bits)
390
              		{
632
              		{
391
              		case 64: puts ("hppa2.0w"); break;
633
              		case 64: puts ("hppa2.0w"); break;
392
              		case 32: puts ("hppa2.0n"); break;
634
              		case 32: puts ("hppa2.0n"); break;
Lines 394-413 Link Here
394
              		} break;
636
              		} break;
395
              #else  /* !defined(_SC_KERNEL_BITS) */
637
              #else  /* !defined(_SC_KERNEL_BITS) */
396
              	    puts ("hppa2.0"); break;
638
              	    puts ("hppa2.0"); break;
397
              #endif 
639
              #endif
398
              	default: puts ("hppa1.0"); break;
640
              	default: puts ("hppa1.0"); break;
399
              	}
641
              	}
400
                  exit (0);
642
                  exit (0);
401
              }
643
              }
402
EOF
644
EOF
403
	(${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy`
645
		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
404
	rm -f dummy.c dummy
646
		    test -z "$HP_ARCH" && HP_ARCH=hppa
647
		fi ;;
405
	esac
648
	esac
406
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
649
	if [ ${HP_ARCH} = "hppa2.0w" ]
650
	then
651
	    # avoid double evaluation of $set_cc_for_build
652
	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
653
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
654
	    then
655
		HP_ARCH="hppa2.0w"
656
	    else
657
		HP_ARCH="hppa64"
658
	    fi
659
	fi
407
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
660
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
408
	exit 0 ;;
661
	exit 0 ;;
662
    ia64:HP-UX:*:*)
663
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
664
	echo ia64-hp-hpux${HPUX_REV}
665
	exit 0 ;;
409
    3050*:HI-UX:*:*)
666
    3050*:HI-UX:*:*)
410
	sed 's/^	//' << EOF >dummy.c
667
	eval $set_cc_for_build
668
	sed 's/^	//' << EOF >$dummy.c
411
	#include <unistd.h>
669
	#include <unistd.h>
412
	int
670
	int
413
	main ()
671
	main ()
Lines 432-439 Link Here
432
	  exit (0);
690
	  exit (0);
433
	}
691
	}
434
EOF
692
EOF
435
	${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
693
	$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
436
	rm -f dummy.c dummy
437
	echo unknown-hitachi-hiuxwe2
694
	echo unknown-hitachi-hiuxwe2
438
	exit 0 ;;
695
	exit 0 ;;
439
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
696
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
Lines 442-454 Link Here
442
    9000/8??:4.3bsd:*:*)
699
    9000/8??:4.3bsd:*:*)
443
	echo hppa1.0-hp-bsd
700
	echo hppa1.0-hp-bsd
444
	exit 0 ;;
701
	exit 0 ;;
702
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
703
	echo hppa1.0-hp-mpeix
704
	exit 0 ;;
445
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
705
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
446
	echo hppa1.1-hp-osf
706
	echo hppa1.1-hp-osf
447
	exit 0 ;;
707
	exit 0 ;;
448
    hp8??:OSF1:*:*)
708
    hp8??:OSF1:*:*)
449
	echo hppa1.0-hp-osf
709
	echo hppa1.0-hp-osf
450
	exit 0 ;;
710
	exit 0 ;;
451
    i?86:OSF1:*:*)
711
    i*86:OSF1:*:*)
452
	if [ -x /usr/sbin/sysversion ] ; then
712
	if [ -x /usr/sbin/sysversion ] ; then
453
	    echo ${UNAME_MACHINE}-unknown-osf1mk
713
	    echo ${UNAME_MACHINE}-unknown-osf1mk
454
	else
714
	else
Lines 476-533 Link Here
476
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
736
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
477
	echo c4-convex-bsd
737
	echo c4-convex-bsd
478
        exit 0 ;;
738
        exit 0 ;;
479
    CRAY*X-MP:*:*:*)
480
	echo xmp-cray-unicos
481
        exit 0 ;;
482
    CRAY*Y-MP:*:*:*)
739
    CRAY*Y-MP:*:*:*)
483
	echo ymp-cray-unicos${UNAME_RELEASE}
740
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
484
	exit 0 ;;
741
	exit 0 ;;
485
    CRAY*[A-Z]90:*:*:*)
742
    CRAY*[A-Z]90:*:*:*)
486
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
743
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
487
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
744
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
488
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
745
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
746
	      -e 's/\.[^.]*$/.X/'
489
	exit 0 ;;
747
	exit 0 ;;
490
    CRAY*TS:*:*:*)
748
    CRAY*TS:*:*:*)
491
	echo t90-cray-unicos${UNAME_RELEASE}
749
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
492
	exit 0 ;;
750
	exit 0 ;;
493
    CRAY-2:*:*:*)
751
    CRAY*T3E:*:*:*)
494
	echo cray2-cray-unicos
752
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
495
        exit 0 ;;
753
	exit 0 ;;
496
    F300:UNIX_System_V:*:*)
754
    CRAY*SV1:*:*:*)
497
        FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
755
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
756
	exit 0 ;;
757
    *:UNICOS/mp:*:*)
758
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759
	exit 0 ;;
760
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
761
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
762
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
498
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
763
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
499
        echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
764
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
500
        exit 0 ;;
765
        exit 0 ;;
501
    F301:UNIX_System_V:*:*)
766
    5000:UNIX_System_V:4.*:*)
502
       echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
767
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
503
       exit 0 ;;
768
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
504
    hp3[0-9][05]:NetBSD:*:*)
769
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
505
	echo m68k-hp-netbsd${UNAME_RELEASE}
506
	exit 0 ;;
770
	exit 0 ;;
507
    hp300:OpenBSD:*:*)
771
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
508
	echo m68k-unknown-openbsd${UNAME_RELEASE}
772
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
509
	exit 0 ;;
773
	exit 0 ;;
510
    sparc*:BSD/OS:*:*)
774
    sparc*:BSD/OS:*:*)
511
	echo sparc-unknown-bsdi${UNAME_RELEASE}
775
	echo sparc-unknown-bsdi${UNAME_RELEASE}
512
	exit 0 ;;
776
	exit 0 ;;
513
    i?86:BSD/386:*:* | *:BSD/OS:*:*)
777
    *:BSD/OS:*:*)
514
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
778
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
515
	exit 0 ;;
779
	exit 0 ;;
516
    *:FreeBSD:*:*)
780
    *:FreeBSD:*:*)
517
	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
781
	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
518
	exit 0 ;;
782
	exit 0 ;;
519
    *:NetBSD:*:*)
520
	echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
521
	exit 0 ;;
522
    *:OpenBSD:*:*)
523
	echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
524
	exit 0 ;;
525
    i*:CYGWIN*:*)
783
    i*:CYGWIN*:*)
526
	echo ${UNAME_MACHINE}-pc-cygwin
784
	echo ${UNAME_MACHINE}-pc-cygwin
527
	exit 0 ;;
785
	exit 0 ;;
528
    i*:MINGW*:*)
786
    i*:MINGW*:*)
529
	echo ${UNAME_MACHINE}-pc-mingw32
787
	echo ${UNAME_MACHINE}-pc-mingw32
530
	exit 0 ;;
788
	exit 0 ;;
789
    i*:PW*:*)
790
	echo ${UNAME_MACHINE}-pc-pw32
791
	exit 0 ;;
792
    x86:Interix*:[34]*)
793
	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
794
	exit 0 ;;
795
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
796
	echo i${UNAME_MACHINE}-pc-mks
797
	exit 0 ;;
798
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
799
	# How do we know it's Interix rather than the generic POSIX subsystem?
800
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
801
	# UNAME_MACHINE based on the output of uname instead of i386?
802
	echo i586-pc-interix
803
	exit 0 ;;
804
    i*:UWIN*:*)
805
	echo ${UNAME_MACHINE}-pc-uwin
806
	exit 0 ;;
807
    amd64:CYGWIN*:*:*)
808
	echo x86_64-unknown-cygwin
809
	exit 0 ;;
531
    p*:CYGWIN*:*)
810
    p*:CYGWIN*:*)
532
	echo powerpcle-unknown-cygwin
811
	echo powerpcle-unknown-cygwin
533
	exit 0 ;;
812
	exit 0 ;;
Lines 535-681 Link Here
535
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
814
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
536
	exit 0 ;;
815
	exit 0 ;;
537
    *:GNU:*:*)
816
    *:GNU:*:*)
817
	# the GNU system
538
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
818
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
539
	exit 0 ;;
819
	exit 0 ;;
540
    *:Linux:*:*)
820
    *:GNU/*:*:*)
541
	# uname on the ARM produces all sorts of strangeness, and we need to
821
	# other systems with GNU libc and userland
542
	# filter it out.
822
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
543
	case "$UNAME_MACHINE" in
823
	exit 0 ;;
544
	  arm* | sa110*)	      UNAME_MACHINE="arm" ;;
824
    i*86:Minix:*:*)
825
	echo ${UNAME_MACHINE}-pc-minix
826
	exit 0 ;;
827
    arm*:Linux:*:*)
828
	echo ${UNAME_MACHINE}-unknown-linux-gnu
829
	exit 0 ;;
830
    cris:Linux:*:*)
831
	echo cris-axis-linux-gnu
832
	exit 0 ;;
833
    crisv32:Linux:*:*)
834
	echo crisv32-axis-linux-gnu
835
	exit 0 ;;
836
    frv:Linux:*:*)
837
    	echo frv-unknown-linux-gnu
838
	exit 0 ;;
839
    ia64:Linux:*:*)
840
	echo ${UNAME_MACHINE}-unknown-linux-gnu
841
	exit 0 ;;
842
    m32r*:Linux:*:*)
843
	echo ${UNAME_MACHINE}-unknown-linux-gnu
844
	exit 0 ;;
845
    m68*:Linux:*:*)
846
	echo ${UNAME_MACHINE}-unknown-linux-gnu
847
	exit 0 ;;
848
    mips:Linux:*:*)
849
	eval $set_cc_for_build
850
	sed 's/^	//' << EOF >$dummy.c
851
	#undef CPU
852
	#undef mips
853
	#undef mipsel
854
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
855
	CPU=mipsel
856
	#else
857
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
858
	CPU=mips
859
	#else
860
	CPU=
861
	#endif
862
	#endif
863
EOF
864
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
865
	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
866
	;;
867
    mips64:Linux:*:*)
868
	eval $set_cc_for_build
869
	sed 's/^	//' << EOF >$dummy.c
870
	#undef CPU
871
	#undef mips64
872
	#undef mips64el
873
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
874
	CPU=mips64el
875
	#else
876
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
877
	CPU=mips64
878
	#else
879
	CPU=
880
	#endif
881
	#endif
882
EOF
883
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
884
	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
885
	;;
886
    ppc:Linux:*:*)
887
	echo powerpc-unknown-linux-gnu
888
	exit 0 ;;
889
    ppc64:Linux:*:*)
890
	echo powerpc64-unknown-linux-gnu
891
	exit 0 ;;
892
    alpha:Linux:*:*)
893
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894
	  EV5)   UNAME_MACHINE=alphaev5 ;;
895
	  EV56)  UNAME_MACHINE=alphaev56 ;;
896
	  PCA56) UNAME_MACHINE=alphapca56 ;;
897
	  PCA57) UNAME_MACHINE=alphapca56 ;;
898
	  EV6)   UNAME_MACHINE=alphaev6 ;;
899
	  EV67)  UNAME_MACHINE=alphaev67 ;;
900
	  EV68*) UNAME_MACHINE=alphaev68 ;;
901
        esac
902
	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
903
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
904
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
905
	exit 0 ;;
906
    parisc:Linux:*:* | hppa:Linux:*:*)
907
	# Look for CPU level
908
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
909
	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
910
	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
911
	  *)    echo hppa-unknown-linux-gnu ;;
545
	esac
912
	esac
546
913
	exit 0 ;;
914
    parisc64:Linux:*:* | hppa64:Linux:*:*)
915
	echo hppa64-unknown-linux-gnu
916
	exit 0 ;;
917
    s390:Linux:*:* | s390x:Linux:*:*)
918
	echo ${UNAME_MACHINE}-ibm-linux
919
	exit 0 ;;
920
    sh64*:Linux:*:*)
921
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
922
	exit 0 ;;
923
    sh*:Linux:*:*)
924
	echo ${UNAME_MACHINE}-unknown-linux-gnu
925
	exit 0 ;;
926
    sparc:Linux:*:* | sparc64:Linux:*:*)
927
	echo ${UNAME_MACHINE}-unknown-linux-gnu
928
	exit 0 ;;
929
    x86_64:Linux:*:*)
930
	echo x86_64-unknown-linux-gnu
931
	exit 0 ;;
932
    i*86:Linux:*:*)
547
	# The BFD linker knows what the default object file format is, so
933
	# The BFD linker knows what the default object file format is, so
548
	# first see if it will tell us.
934
	# first see if it will tell us. cd to the root directory to prevent
549
	ld_help_string=`ld --help 2>&1`
935
	# problems with other programs or directories called `ld' in the path.
550
	ld_supported_emulations=`echo $ld_help_string \
936
	# Set LC_ALL=C to ensure ld outputs messages in English.
551
			 | sed -ne '/supported emulations:/!d
937
	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
938
			 | sed -ne '/supported targets:/!d
552
				    s/[ 	][ 	]*/ /g
939
				    s/[ 	][ 	]*/ /g
553
				    s/.*supported emulations: *//
940
				    s/.*supported targets: *//
554
				    s/ .*//
941
				    s/ .*//
555
				    p'`
942
				    p'`
556
        case "$ld_supported_emulations" in
943
        case "$ld_supported_targets" in
557
	  i?86linux)  echo "${UNAME_MACHINE}-pc-linux-gnuaout"      ; exit 0 ;;
944
	  elf32-i386)
558
	  i?86coff)   echo "${UNAME_MACHINE}-pc-linux-gnucoff"      ; exit 0 ;;
945
		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
559
	  sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
946
		;;
560
	  armlinux)   echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
947
	  a.out-i386-linux)
561
	  m68klinux)  echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
948
		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
562
	  elf32ppc)   echo "powerpc-unknown-linux-gnu"              ; exit 0 ;;
949
		exit 0 ;;
563
	esac
950
	  coff-i386)
564
951
		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
565
	if test "${UNAME_MACHINE}" = "alpha" ; then
952
		exit 0 ;;
566
		sed 's/^	//'  <<EOF >dummy.s
953
	  "")
567
		.globl main
954
		# Either a pre-BFD a.out linker (linux-gnuoldld) or
568
		.ent main
955
		# one that does not give us useful --help.
569
	main:
956
		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
570
		.frame \$30,0,\$26,0
957
		exit 0 ;;
571
		.prologue 0
958
	esac
572
		.long 0x47e03d80 # implver $0
959
	# Determine whether the default compiler is a.out or elf
573
		lda \$2,259
960
	eval $set_cc_for_build
574
		.long 0x47e20c21 # amask $2,$1
961
	sed 's/^	//' << EOF >$dummy.c
575
		srl \$1,8,\$2
962
	#include <features.h>
576
		sll \$2,2,\$2
963
	#ifdef __ELF__
577
		sll \$0,3,\$0
964
	# ifdef __GLIBC__
578
		addl \$1,\$0,\$0
965
	#  if __GLIBC__ >= 2
579
		addl \$2,\$0,\$0
966
	LIBC=gnu
580
		ret \$31,(\$26),1
967
	#  else
581
		.end main
968
	LIBC=gnulibc1
582
EOF
969
	#  endif
583
		LIBC=""
970
	# else
584
		${CC-cc} dummy.s -o dummy 2>/dev/null
971
	LIBC=gnulibc1
585
		if test "$?" = 0 ; then
972
	# endif
586
			./dummy
973
	#else
587
			case "$?" in
974
	#ifdef __INTEL_COMPILER
588
			7)
975
	LIBC=gnu
589
				UNAME_MACHINE="alpha"
976
	#else
590
				;;
977
	LIBC=gnuaout
591
			15)
978
	#endif
592
				UNAME_MACHINE="alphaev5"
979
	#endif
593
				;;
980
	#ifdef __dietlibc__
594
			14)
981
	LIBC=dietlibc
595
				UNAME_MACHINE="alphaev56"
982
	#endif
596
				;;
597
			10)
598
				UNAME_MACHINE="alphapca56"
599
				;;
600
			16)
601
				UNAME_MACHINE="alphaev6"
602
				;;
603
			esac	
604
605
			objdump --private-headers dummy | \
606
			  grep ld.so.1 > /dev/null
607
			if test "$?" = 0 ; then
608
				LIBC="libc1"
609
			fi
610
		fi	
611
		rm -f dummy.s dummy
612
		echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
613
	elif test "${UNAME_MACHINE}" = "mips" ; then
614
	  cat >dummy.c <<EOF
615
main(argc, argv)
616
     int argc;
617
     char *argv[];
618
{
619
#ifdef __MIPSEB__
620
  printf ("%s-unknown-linux-gnu\n", argv[1]);
621
#endif
622
#ifdef __MIPSEL__
623
  printf ("%sel-unknown-linux-gnu\n", argv[1]);
624
#endif
625
  return 0;
626
}
627
EOF
628
	  ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
629
	  rm -f dummy.c dummy
630
	else
631
	  # Either a pre-BFD a.out linker (linux-gnuoldld)
632
	  # or one that does not give us useful --help.
633
	  # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
634
	  # If ld does not provide *any* "supported emulations:"
635
	  # that means it is gnuoldld.
636
	  echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
637
	  test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
638
639
	  case "${UNAME_MACHINE}" in
640
	  i?86)
641
	    VENDOR=pc;
642
	    ;;
643
	  *)
644
	    VENDOR=unknown;
645
	    ;;
646
	  esac
647
	  # Determine whether the default compiler is a.out or elf
648
	  cat >dummy.c <<EOF
649
#include <features.h>
650
main(argc, argv)
651
     int argc;
652
     char *argv[];
653
{
654
#ifdef __ELF__
655
# ifdef __GLIBC__
656
#  if __GLIBC__ >= 2
657
    printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
658
#  else
659
    printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
660
#  endif
661
# else
662
   printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
663
# endif
664
#else
665
  printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
666
#endif
667
  return 0;
668
}
669
EOF
983
EOF
670
	  ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
984
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
671
	  rm -f dummy.c dummy
985
	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
672
	fi ;;
986
	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
673
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
987
	;;
674
# are messed up and put the nodename in both sysname and nodename.
988
    i*86:DYNIX/ptx:4*:*)
675
    i?86:DYNIX/ptx:4*:*)
989
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
990
	# earlier versions are messed up and put the nodename in both
991
	# sysname and nodename.
676
	echo i386-sequent-sysv4
992
	echo i386-sequent-sysv4
677
	exit 0 ;;
993
	exit 0 ;;
678
    i?86:UNIX_SV:4.2MP:2.*)
994
    i*86:UNIX_SV:4.2MP:2.*)
679
        # Unixware is an offshoot of SVR4, but it has its own version
995
        # Unixware is an offshoot of SVR4, but it has its own version
680
        # number series starting with 2...
996
        # number series starting with 2...
681
        # I am not positive that other SVR4 systems won't match this,
997
        # I am not positive that other SVR4 systems won't match this,
Lines 683-717 Link Here
683
        # Use sysv4.2uw... so that sysv4* matches it.
999
        # Use sysv4.2uw... so that sysv4* matches it.
684
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1000
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
685
	exit 0 ;;
1001
	exit 0 ;;
686
    i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
1002
    i*86:OS/2:*:*)
1003
	# If we were able to find `uname', then EMX Unix compatibility
1004
	# is probably installed.
1005
	echo ${UNAME_MACHINE}-pc-os2-emx
1006
	exit 0 ;;
1007
    i*86:XTS-300:*:STOP)
1008
	echo ${UNAME_MACHINE}-unknown-stop
1009
	exit 0 ;;
1010
    i*86:atheos:*:*)
1011
	echo ${UNAME_MACHINE}-unknown-atheos
1012
	exit 0 ;;
1013
	i*86:syllable:*:*)
1014
	echo ${UNAME_MACHINE}-pc-syllable
1015
	exit 0 ;;
1016
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1017
	echo i386-unknown-lynxos${UNAME_RELEASE}
1018
	exit 0 ;;
1019
    i*86:*DOS:*:*)
1020
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
1021
	exit 0 ;;
1022
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1023
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
687
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1024
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
688
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
1025
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
689
	else
1026
	else
690
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
1027
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
691
	fi
1028
	fi
692
	exit 0 ;;
1029
	exit 0 ;;
693
    i?86:*:3.2:*)
1030
    i*86:*:5:[78]*)
1031
	case `/bin/uname -X | grep "^Machine"` in
1032
	    *486*)	     UNAME_MACHINE=i486 ;;
1033
	    *Pentium)	     UNAME_MACHINE=i586 ;;
1034
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1035
	esac
1036
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1037
	exit 0 ;;
1038
    i*86:*:3.2:*)
694
	if test -f /usr/options/cb.name; then
1039
	if test -f /usr/options/cb.name; then
695
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1040
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
696
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1041
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
697
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
1042
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
698
		UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
1043
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
699
		(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
1044
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
700
		(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
1045
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
701
			&& UNAME_MACHINE=i586
1046
			&& UNAME_MACHINE=i586
1047
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1048
			&& UNAME_MACHINE=i686
1049
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1050
			&& UNAME_MACHINE=i686
702
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1051
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
703
	else
1052
	else
704
		echo ${UNAME_MACHINE}-pc-sysv32
1053
		echo ${UNAME_MACHINE}-pc-sysv32
705
	fi
1054
	fi
706
	exit 0 ;;
1055
	exit 0 ;;
707
    i?86:UnixWare:*:*)
708
	if /bin/uname -X 2>/dev/null >/dev/null ; then
709
	  (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
710
	    && UNAME_MACHINE=i586
711
	fi
712
	echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION}
713
	exit 0 ;;
714
    pc:*:*:*)
1056
    pc:*:*:*)
1057
	# Left here for compatibility:
715
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1058
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
716
        # the processor, so we play safe by assuming i386.
1059
        # the processor, so we play safe by assuming i386.
717
	echo i386-pc-msdosdjgpp
1060
	echo i386-pc-msdosdjgpp
Lines 733-741 Link Here
733
	# "miniframe"
1076
	# "miniframe"
734
	echo m68010-convergent-sysv
1077
	echo m68010-convergent-sysv
735
	exit 0 ;;
1078
	exit 0 ;;
736
    M68*:*:R3V[567]*:*)
1079
    mc68k:UNIX:SYSTEM5:3.51m)
1080
	echo m68k-convergent-sysv
1081
	exit 0 ;;
1082
    M680?0:D-NIX:5.3:*)
1083
	echo m68k-diab-dnix
1084
	exit 0 ;;
1085
    M68*:*:R3V[5678]*:*)
737
	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1086
	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
738
    3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
1087
    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
739
	OS_REL=''
1088
	OS_REL=''
740
	test -r /etc/.relid \
1089
	test -r /etc/.relid \
741
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1090
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
Lines 746-769 Link Here
746
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1095
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
747
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1096
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
748
          && echo i486-ncr-sysv4 && exit 0 ;;
1097
          && echo i486-ncr-sysv4 && exit 0 ;;
749
    m68*:LynxOS:2.*:*)
1098
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
750
	echo m68k-unknown-lynxos${UNAME_RELEASE}
1099
	echo m68k-unknown-lynxos${UNAME_RELEASE}
751
	exit 0 ;;
1100
	exit 0 ;;
752
    mc68030:UNIX_System_V:4.*:*)
1101
    mc68030:UNIX_System_V:4.*:*)
753
	echo m68k-atari-sysv4
1102
	echo m68k-atari-sysv4
754
	exit 0 ;;
1103
	exit 0 ;;
755
    i?86:LynxOS:2.*:*)
756
	echo i386-unknown-lynxos${UNAME_RELEASE}
757
	exit 0 ;;
758
    TSUNAMI:LynxOS:2.*:*)
1104
    TSUNAMI:LynxOS:2.*:*)
759
	echo sparc-unknown-lynxos${UNAME_RELEASE}
1105
	echo sparc-unknown-lynxos${UNAME_RELEASE}
760
	exit 0 ;;
1106
	exit 0 ;;
761
    rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
1107
    rs6000:LynxOS:2.*:*)
762
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
1108
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
763
	exit 0 ;;
1109
	exit 0 ;;
1110
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1111
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
1112
	exit 0 ;;
764
    SM[BE]S:UNIX_SV:*:*)
1113
    SM[BE]S:UNIX_SV:*:*)
765
	echo mips-dde-sysv${UNAME_RELEASE}
1114
	echo mips-dde-sysv${UNAME_RELEASE}
766
	exit 0 ;;
1115
	exit 0 ;;
1116
    RM*:ReliantUNIX-*:*:*)
1117
	echo mips-sni-sysv4
1118
	exit 0 ;;
767
    RM*:SINIX-*:*:*)
1119
    RM*:SINIX-*:*:*)
768
	echo mips-sni-sysv4
1120
	echo mips-sni-sysv4
769
	exit 0 ;;
1121
	exit 0 ;;
Lines 775-782 Link Here
775
		echo ns32k-sni-sysv
1127
		echo ns32k-sni-sysv
776
	fi
1128
	fi
777
	exit 0 ;;
1129
	exit 0 ;;
778
    PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1130
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
779
                           # says <Richard.M.Bartel@ccMail.Census.GOV>
1131
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
780
        echo i586-unisys-sysv4
1132
        echo i586-unisys-sysv4
781
        exit 0 ;;
1133
        exit 0 ;;
782
    *:UNIX_System_V:4*:FTX*)
1134
    *:UNIX_System_V:4*:FTX*)
Lines 788-800 Link Here
788
	# From seanf@swdc.stratus.com.
1140
	# From seanf@swdc.stratus.com.
789
	echo i860-stratus-sysv4
1141
	echo i860-stratus-sysv4
790
	exit 0 ;;
1142
	exit 0 ;;
1143
    *:VOS:*:*)
1144
	# From Paul.Green@stratus.com.
1145
	echo hppa1.1-stratus-vos
1146
	exit 0 ;;
791
    mc68*:A/UX:*:*)
1147
    mc68*:A/UX:*:*)
792
	echo m68k-apple-aux${UNAME_RELEASE}
1148
	echo m68k-apple-aux${UNAME_RELEASE}
793
	exit 0 ;;
1149
	exit 0 ;;
794
    news*:NEWS-OS:*:6*)
1150
    news*:NEWS-OS:6*:*)
795
	echo mips-sony-newsos6
1151
	echo mips-sony-newsos6
796
	exit 0 ;;
1152
	exit 0 ;;
797
    R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*)
1153
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
798
	if [ -d /usr/nec ]; then
1154
	if [ -d /usr/nec ]; then
799
	        echo mips-nec-sysv${UNAME_RELEASE}
1155
	        echo mips-nec-sysv${UNAME_RELEASE}
800
	else
1156
	else
Lines 810-821 Link Here
810
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
1166
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
811
	echo i586-pc-beos
1167
	echo i586-pc-beos
812
	exit 0 ;;
1168
	exit 0 ;;
1169
    SX-4:SUPER-UX:*:*)
1170
	echo sx4-nec-superux${UNAME_RELEASE}
1171
	exit 0 ;;
1172
    SX-5:SUPER-UX:*:*)
1173
	echo sx5-nec-superux${UNAME_RELEASE}
1174
	exit 0 ;;
1175
    SX-6:SUPER-UX:*:*)
1176
	echo sx6-nec-superux${UNAME_RELEASE}
1177
	exit 0 ;;
1178
    Power*:Rhapsody:*:*)
1179
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
1180
	exit 0 ;;
1181
    *:Rhapsody:*:*)
1182
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1183
	exit 0 ;;
1184
    *:Darwin:*:*)
1185
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1186
	case $UNAME_PROCESSOR in
1187
	    *86) UNAME_PROCESSOR=i686 ;;
1188
	    unknown) UNAME_PROCESSOR=powerpc ;;
1189
	esac
1190
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1191
	exit 0 ;;
1192
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
1193
	UNAME_PROCESSOR=`uname -p`
1194
	if test "$UNAME_PROCESSOR" = "x86"; then
1195
		UNAME_PROCESSOR=i386
1196
		UNAME_MACHINE=pc
1197
	fi
1198
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1199
	exit 0 ;;
1200
    *:QNX:*:4*)
1201
	echo i386-pc-qnx
1202
	exit 0 ;;
1203
    NSE-?:NONSTOP_KERNEL:*:*)
1204
	echo nse-tandem-nsk${UNAME_RELEASE}
1205
	exit 0 ;;
1206
    NSR-?:NONSTOP_KERNEL:*:*)
1207
	echo nsr-tandem-nsk${UNAME_RELEASE}
1208
	exit 0 ;;
1209
    *:NonStop-UX:*:*)
1210
	echo mips-compaq-nonstopux
1211
	exit 0 ;;
1212
    BS2000:POSIX*:*:*)
1213
	echo bs2000-siemens-sysv
1214
	exit 0 ;;
1215
    DS/*:UNIX_System_V:*:*)
1216
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1217
	exit 0 ;;
1218
    *:Plan9:*:*)
1219
	# "uname -m" is not consistent, so use $cputype instead. 386
1220
	# is converted to i386 for consistency with other x86
1221
	# operating systems.
1222
	if test "$cputype" = "386"; then
1223
	    UNAME_MACHINE=i386
1224
	else
1225
	    UNAME_MACHINE="$cputype"
1226
	fi
1227
	echo ${UNAME_MACHINE}-unknown-plan9
1228
	exit 0 ;;
1229
    *:TOPS-10:*:*)
1230
	echo pdp10-unknown-tops10
1231
	exit 0 ;;
1232
    *:TENEX:*:*)
1233
	echo pdp10-unknown-tenex
1234
	exit 0 ;;
1235
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1236
	echo pdp10-dec-tops20
1237
	exit 0 ;;
1238
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1239
	echo pdp10-xkl-tops20
1240
	exit 0 ;;
1241
    *:TOPS-20:*:*)
1242
	echo pdp10-unknown-tops20
1243
	exit 0 ;;
1244
    *:ITS:*:*)
1245
	echo pdp10-unknown-its
1246
	exit 0 ;;
1247
    SEI:*:*:SEIUX)
1248
        echo mips-sei-seiux${UNAME_RELEASE}
1249
	exit 0 ;;
1250
    *:DragonFly:*:*)
1251
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1252
	exit 0 ;;
1253
    *:*VMS:*:*)
1254
    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
1255
	case "${UNAME_MACHINE}" in
1256
	    A*) echo alpha-dec-vms && exit 0 ;;
1257
	    I*) echo ia64-dec-vms && exit 0 ;;
1258
	    V*) echo vax-dec-vms && exit 0 ;;
1259
	esac ;;
1260
    *:XENIX:*:SysV)
1261
	echo i386-pc-xenix
1262
	exit 0 ;;
813
esac
1263
esac
814
1264
815
#echo '(No uname command or uname output not recognized.)' 1>&2
1265
#echo '(No uname command or uname output not recognized.)' 1>&2
816
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1266
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
817
1267
818
cat >dummy.c <<EOF
1268
eval $set_cc_for_build
1269
cat >$dummy.c <<EOF
819
#ifdef _SEQUENT_
1270
#ifdef _SEQUENT_
820
# include <sys/types.h>
1271
# include <sys/types.h>
821
# include <sys/utsname.h>
1272
# include <sys/utsname.h>
Lines 853-859 Link Here
853
#endif
1304
#endif
854
  int version;
1305
  int version;
855
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1306
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
856
  printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1307
  if (version < 4)
1308
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1309
  else
1310
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
857
  exit (0);
1311
  exit (0);
858
#endif
1312
#endif
859
1313
Lines 898-908 Link Here
898
#endif
1352
#endif
899
1353
900
#if defined (vax)
1354
#if defined (vax)
901
#if !defined (ultrix)
1355
# if !defined (ultrix)
902
  printf ("vax-dec-bsd\n"); exit (0);
1356
#  include <sys/param.h>
903
#else
1357
#  if defined (BSD)
904
  printf ("vax-dec-ultrix\n"); exit (0);
1358
#   if BSD == 43
905
#endif
1359
      printf ("vax-dec-bsd4.3\n"); exit (0);
1360
#   else
1361
#    if BSD == 199006
1362
      printf ("vax-dec-bsd4.3reno\n"); exit (0);
1363
#    else
1364
      printf ("vax-dec-bsd\n"); exit (0);
1365
#    endif
1366
#   endif
1367
#  else
1368
    printf ("vax-dec-bsd\n"); exit (0);
1369
#  endif
1370
# else
1371
    printf ("vax-dec-ultrix\n"); exit (0);
1372
# endif
906
#endif
1373
#endif
907
1374
908
#if defined (alliant) && defined (i860)
1375
#if defined (alliant) && defined (i860)
Lines 913-920 Link Here
913
}
1380
}
914
EOF
1381
EOF
915
1382
916
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
1383
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
917
rm -f dummy.c dummy
918
1384
919
# Apollos put the system type in the environment.
1385
# Apollos put the system type in the environment.
920
1386
Lines 946-951 Link Here
946
    esac
1412
    esac
947
fi
1413
fi
948
1414
949
#echo '(Unable to guess system type)' 1>&2
1415
cat >&2 <<EOF
1416
$0: unable to guess system type
1417
1418
This script, last modified $timestamp, has failed to recognize
1419
the operating system you are using. It is advised that you
1420
download the most up to date version of the config scripts from
1421
1422
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1423
and
1424
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1425
1426
If the version you run ($0) is already up to date, please
1427
send the following data and any information you think might be
1428
pertinent to <config-patches@gnu.org> in order to provide the needed
1429
information to handle your system.
1430
1431
config.guess timestamp = $timestamp
1432
1433
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1434
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1435
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1436
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1437
1438
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1439
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
1440
1441
hostinfo               = `(hostinfo) 2>/dev/null`
1442
/bin/universe          = `(/bin/universe) 2>/dev/null`
1443
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
1444
/bin/arch              = `(/bin/arch) 2>/dev/null`
1445
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
1446
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1447
1448
UNAME_MACHINE = ${UNAME_MACHINE}
1449
UNAME_RELEASE = ${UNAME_RELEASE}
1450
UNAME_SYSTEM  = ${UNAME_SYSTEM}
1451
UNAME_VERSION = ${UNAME_VERSION}
1452
EOF
950
1453
951
exit 1
1454
exit 1
1455
1456
# Local variables:
1457
# eval: (add-hook 'write-file-hooks 'time-stamp)
1458
# time-stamp-start: "timestamp='"
1459
# time-stamp-format: "%:y-%02m-%02d"
1460
# time-stamp-end: "'"
1461
# End:
(-)zephyr.orig/config.sub (-103 / +714 lines)
Lines 1-6 Link Here
1
#! /bin/sh
1
#! /bin/sh
2
# Configuration validation subroutine script, version 1.1.
2
# Configuration validation subroutine script.
3
#   Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5
6
timestamp='2005-02-10'
7
4
# This file is (in principle) common to ALL GNU software.
8
# This file is (in principle) common to ALL GNU software.
5
# The presence of a machine in this file suggests that SOME GNU software
9
# The presence of a machine in this file suggests that SOME GNU software
6
# can handle that machine.  It does not imply ALL GNU software can.
10
# can handle that machine.  It does not imply ALL GNU software can.
Lines 25-30 Link Here
25
# configuration script generated by Autoconf, you may include it under
29
# configuration script generated by Autoconf, you may include it under
26
# the same distribution terms that you use for the rest of that program.
30
# the same distribution terms that you use for the rest of that program.
27
31
32
# Please send patches to <config-patches@gnu.org>.  Submit a context
33
# diff and a properly formatted ChangeLog entry.
34
#
28
# Configuration subroutine to validate and canonicalize a configuration type.
35
# Configuration subroutine to validate and canonicalize a configuration type.
29
# Supply the specified configuration type as an argument.
36
# Supply the specified configuration type as an argument.
30
# If it is invalid, we print an error message on stderr and exit with code 1.
37
# If it is invalid, we print an error message on stderr and exit with code 1.
Lines 45-74 Link Here
45
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
52
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
46
# It is wrong to echo any other type of specification.
53
# It is wrong to echo any other type of specification.
47
54
48
if [ x$1 = x ]
55
me=`echo "$0" | sed -e 's,.*/,,'`
49
then
50
	echo Configuration name missing. 1>&2
51
	echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
52
	echo "or     $0 ALIAS" 1>&2
53
	echo where ALIAS is a recognized configuration type. 1>&2
54
	exit 1
55
fi
56
56
57
# First pass through any local machine types.
57
usage="\
58
case $1 in
58
Usage: $0 [OPTION] CPU-MFR-OPSYS
59
	*local*)
59
       $0 [OPTION] ALIAS
60
		echo $1
60
61
		exit 0
61
Canonicalize a configuration name.
62
		;;
62
63
	*)
63
Operation modes:
64
	;;
64
  -h, --help         print this help, then exit
65
  -t, --time-stamp   print date of last modification, then exit
66
  -v, --version      print version number, then exit
67
68
Report bugs and patches to <config-patches@gnu.org>."
69
70
version="\
71
GNU config.sub ($timestamp)
72
73
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
74
Free Software Foundation, Inc.
75
76
This is free software; see the source for copying conditions.  There is NO
77
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
78
79
help="
80
Try \`$me --help' for more information."
81
82
# Parse command line
83
while test $# -gt 0 ; do
84
  case $1 in
85
    --time-stamp | --time* | -t )
86
       echo "$timestamp" ; exit 0 ;;
87
    --version | -v )
88
       echo "$version" ; exit 0 ;;
89
    --help | --h* | -h )
90
       echo "$usage"; exit 0 ;;
91
    -- )     # Stop option processing
92
       shift; break ;;
93
    - )	# Use stdin as input.
94
       break ;;
95
    -* )
96
       echo "$me: invalid option $1$help"
97
       exit 1 ;;
98
99
    *local*)
100
       # First pass through any local machine types.
101
       echo $1
102
       exit 0;;
103
104
    * )
105
       break ;;
106
  esac
107
done
108
109
case $# in
110
 0) echo "$me: missing argument$help" >&2
111
    exit 1;;
112
 1) ;;
113
 *) echo "$me: too many arguments$help" >&2
114
    exit 1;;
65
esac
115
esac
66
116
67
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
117
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
68
# Here we must recognize all the valid KERNEL-OS combinations.
118
# Here we must recognize all the valid KERNEL-OS combinations.
69
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
119
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
70
case $maybe_os in
120
case $maybe_os in
71
  linux-gnu*)
121
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
122
  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
72
    os=-$maybe_os
123
    os=-$maybe_os
73
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
74
    ;;
125
    ;;
Lines 94-108 Link Here
94
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
145
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
95
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
146
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
96
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
147
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
97
	-apple)
148
	-apple | -axis | -knuth | -cray)
149
		os=
150
		basic_machine=$1
151
		;;
152
	-sim | -cisco | -oki | -wec | -winbond)
98
		os=
153
		os=
99
		basic_machine=$1
154
		basic_machine=$1
100
		;;
155
		;;
156
	-scout)
157
		;;
158
	-wrs)
159
		os=-vxworks
160
		basic_machine=$1
161
		;;
162
	-chorusos*)
163
		os=-chorusos
164
		basic_machine=$1
165
		;;
166
 	-chorusrdb)
167
 		os=-chorusrdb
168
		basic_machine=$1
169
 		;;
101
	-hiux*)
170
	-hiux*)
102
		os=-hiuxwe2
171
		os=-hiuxwe2
103
		;;
172
		;;
104
	-sco5)
173
	-sco5)
105
		os=sco3.2v5
174
		os=-sco3.2v5
106
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
175
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
107
		;;
176
		;;
108
	-sco4)
177
	-sco4)
Lines 121-126 Link Here
121
		os=-sco3.2v2
190
		os=-sco3.2v2
122
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
123
		;;
192
		;;
193
	-udk*)
194
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195
		;;
124
	-isc)
196
	-isc)
125
		os=-isc2.2
197
		os=-isc2.2
126
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
Lines 143-168 Link Here
143
	-psos*)
215
	-psos*)
144
		os=-psos
216
		os=-psos
145
		;;
217
		;;
218
	-mint | -mint[0-9]*)
219
		basic_machine=m68k-atari
220
		os=-mint
221
		;;
146
esac
222
esac
147
223
148
# Decode aliases for certain CPU-COMPANY combinations.
224
# Decode aliases for certain CPU-COMPANY combinations.
149
case $basic_machine in
225
case $basic_machine in
150
	# Recognize the basic CPU types without company name.
226
	# Recognize the basic CPU types without company name.
151
	# Some are omitted here because they have special meanings below.
227
	# Some are omitted here because they have special meanings below.
152
	tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
228
	1750a | 580 \
153
		| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
229
	| a29k \
154
		| 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \
230
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
155
		| alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
231
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
156
		| i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
232
	| am33_2.0 \
157
		| mips64 | mipsel | mips64el | mips64orion | mips64orionel \
233
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
158
		| mipstx39 | mipstx39el \
234
	| c4x | clipper \
159
		| sparc | sparclet | sparclite | sparc64 | v850)
235
	| d10v | d30v | dlx | dsp16xx \
236
	| fr30 | frv \
237
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
238
	| i370 | i860 | i960 | ia64 \
239
	| ip2k | iq2000 \
240
	| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
241
	| mips | mipsbe | mipseb | mipsel | mipsle \
242
	| mips16 \
243
	| mips64 | mips64el \
244
	| mips64vr | mips64vrel \
245
	| mips64orion | mips64orionel \
246
	| mips64vr4100 | mips64vr4100el \
247
	| mips64vr4300 | mips64vr4300el \
248
	| mips64vr5000 | mips64vr5000el \
249
	| mipsisa32 | mipsisa32el \
250
	| mipsisa32r2 | mipsisa32r2el \
251
	| mipsisa64 | mipsisa64el \
252
	| mipsisa64r2 | mipsisa64r2el \
253
	| mipsisa64sb1 | mipsisa64sb1el \
254
	| mipsisa64sr71k | mipsisa64sr71kel \
255
	| mipstx39 | mipstx39el \
256
	| mn10200 | mn10300 \
257
	| msp430 \
258
	| ns16k | ns32k \
259
	| openrisc | or32 \
260
	| pdp10 | pdp11 | pj | pjl \
261
	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
262
	| pyramid \
263
	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
264
	| sh64 | sh64le \
265
	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
266
	| strongarm \
267
	| tahoe | thumb | tic4x | tic80 | tron \
268
	| v850 | v850e \
269
	| we32k \
270
	| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
271
	| z8k)
160
		basic_machine=$basic_machine-unknown
272
		basic_machine=$basic_machine-unknown
161
		;;
273
		;;
274
	m6811 | m68hc11 | m6812 | m68hc12)
275
		# Motorola 68HC11/12.
276
		basic_machine=$basic_machine-unknown
277
		os=-none
278
		;;
279
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
280
		;;
281
162
	# We use `pc' rather than `unknown'
282
	# We use `pc' rather than `unknown'
163
	# because (1) that's what they normally are, and
283
	# because (1) that's what they normally are, and
164
	# (2) the word "unknown" tends to confuse beginning users.
284
	# (2) the word "unknown" tends to confuse beginning users.
165
	i[34567]86)
285
	i*86 | x86_64)
166
	  basic_machine=$basic_machine-pc
286
	  basic_machine=$basic_machine-pc
167
	  ;;
287
	  ;;
168
	# Object if more than one company name word.
288
	# Object if more than one company name word.
Lines 171-197 Link Here
171
		exit 1
291
		exit 1
172
		;;
292
		;;
173
	# Recognize the basic CPU types with company name.
293
	# Recognize the basic CPU types with company name.
174
	vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
294
	580-* \
175
	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
295
	| a29k-* \
176
	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
296
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
177
	      | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
297
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
178
	      | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \
298
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
179
	      | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
299
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
180
	      | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
300
	| avr-* \
181
	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
301
	| bs2000-* \
182
	      | sparc64-* | mips64-* | mipsel-* \
302
	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
183
	      | mips64el-* | mips64orion-* | mips64orionel-*  \
303
	| clipper-* | craynv-* | cydra-* \
184
	      | mipstx39-* | mipstx39el-* \
304
	| d10v-* | d30v-* | dlx-* \
185
	      | f301-*)
305
	| elxsi-* \
306
	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
307
	| h8300-* | h8500-* \
308
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
309
	| i*86-* | i860-* | i960-* | ia64-* \
310
	| ip2k-* | iq2000-* \
311
	| m32r-* | m32rle-* \
312
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
313
	| m88110-* | m88k-* | maxq-* | mcore-* \
314
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
315
	| mips16-* \
316
	| mips64-* | mips64el-* \
317
	| mips64vr-* | mips64vrel-* \
318
	| mips64orion-* | mips64orionel-* \
319
	| mips64vr4100-* | mips64vr4100el-* \
320
	| mips64vr4300-* | mips64vr4300el-* \
321
	| mips64vr5000-* | mips64vr5000el-* \
322
	| mipsisa32-* | mipsisa32el-* \
323
	| mipsisa32r2-* | mipsisa32r2el-* \
324
	| mipsisa64-* | mipsisa64el-* \
325
	| mipsisa64r2-* | mipsisa64r2el-* \
326
	| mipsisa64sb1-* | mipsisa64sb1el-* \
327
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
328
	| mipstx39-* | mipstx39el-* \
329
	| mmix-* \
330
	| msp430-* \
331
	| none-* | np1-* | ns16k-* | ns32k-* \
332
	| orion-* \
333
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
334
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
335
	| pyramid-* \
336
	| romp-* | rs6000-* \
337
	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
338
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
339
	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
340
	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
341
	| tahoe-* | thumb-* \
342
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
343
	| tron-* \
344
	| v850-* | v850e-* | vax-* \
345
	| we32k-* \
346
	| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
347
	| xstormy16-* | xtensa-* \
348
	| ymp-* \
349
	| z8k-*)
186
		;;
350
		;;
187
	# Recognize the various machine names and aliases which stand
351
	# Recognize the various machine names and aliases which stand
188
	# for a CPU type and a company and sometimes even an OS.
352
	# for a CPU type and a company and sometimes even an OS.
353
	386bsd)
354
		basic_machine=i386-unknown
355
		os=-bsd
356
		;;
189
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
357
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
190
		basic_machine=m68000-att
358
		basic_machine=m68000-att
191
		;;
359
		;;
192
	3b*)
360
	3b*)
193
		basic_machine=we32k-att
361
		basic_machine=we32k-att
194
		;;
362
		;;
363
	a29khif)
364
		basic_machine=a29k-amd
365
		os=-udi
366
		;;
367
    	abacus)
368
		basic_machine=abacus-unknown
369
		;;
370
	adobe68k)
371
		basic_machine=m68010-adobe
372
		os=-scout
373
		;;
195
	alliant | fx80)
374
	alliant | fx80)
196
		basic_machine=fx80-alliant
375
		basic_machine=fx80-alliant
197
		;;
376
		;;
Lines 202-226 Link Here
202
		basic_machine=a29k-none
381
		basic_machine=a29k-none
203
		os=-bsd
382
		os=-bsd
204
		;;
383
		;;
384
	amd64)
385
		basic_machine=x86_64-pc
386
		;;
387
	amd64-*)
388
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
389
		;;
205
	amdahl)
390
	amdahl)
206
		basic_machine=580-amdahl
391
		basic_machine=580-amdahl
207
		os=-sysv
392
		os=-sysv
208
		;;
393
		;;
209
	amiga | amiga-*)
394
	amiga | amiga-*)
210
		basic_machine=m68k-cbm
395
		basic_machine=m68k-unknown
211
		;;
396
		;;
212
	amigaos | amigados)
397
	amigaos | amigados)
213
		basic_machine=m68k-cbm
398
		basic_machine=m68k-unknown
214
		os=-amigaos
399
		os=-amigaos
215
		;;
400
		;;
216
	amigaunix | amix)
401
	amigaunix | amix)
217
		basic_machine=m68k-cbm
402
		basic_machine=m68k-unknown
218
		os=-sysv4
403
		os=-sysv4
219
		;;
404
		;;
220
	apollo68)
405
	apollo68)
221
		basic_machine=m68k-apollo
406
		basic_machine=m68k-apollo
222
		os=-sysv
407
		os=-sysv
223
		;;
408
		;;
409
	apollo68bsd)
410
		basic_machine=m68k-apollo
411
		os=-bsd
412
		;;
224
	aux)
413
	aux)
225
		basic_machine=m68k-apple
414
		basic_machine=m68k-apple
226
		os=-aux
415
		os=-aux
Lines 229-234 Link Here
229
		basic_machine=ns32k-sequent
418
		basic_machine=ns32k-sequent
230
		os=-dynix
419
		os=-dynix
231
		;;
420
		;;
421
	c90)
422
		basic_machine=c90-cray
423
		os=-unicos
424
		;;
232
	convex-c1)
425
	convex-c1)
233
		basic_machine=c1-convex
426
		basic_machine=c1-convex
234
		os=-bsd
427
		os=-bsd
Lines 249-275 Link Here
249
		basic_machine=c38-convex
442
		basic_machine=c38-convex
250
		os=-bsd
443
		os=-bsd
251
		;;
444
		;;
252
	cray | ymp)
445
	cray | j90)
253
		basic_machine=ymp-cray
446
		basic_machine=j90-cray
254
		os=-unicos
447
		os=-unicos
255
		;;
448
		;;
256
	cray2)
449
	craynv)
257
		basic_machine=cray2-cray
450
		basic_machine=craynv-cray
258
		os=-unicos
451
		os=-unicosmp
259
		;;
452
		;;
260
	[ctj]90-cray)
453
	cr16c)
261
		basic_machine=c90-cray
454
		basic_machine=cr16c-unknown
262
		os=-unicos
455
		os=-elf
263
		;;
456
		;;
264
	crds | unos)
457
	crds | unos)
265
		basic_machine=m68k-crds
458
		basic_machine=m68k-crds
266
		;;
459
		;;
460
	crisv32 | crisv32-* | etraxfs*)
461
		basic_machine=crisv32-axis
462
		;;
463
	cris | cris-* | etrax*)
464
		basic_machine=cris-axis
465
		;;
466
	crx)
467
		basic_machine=crx-unknown
468
		os=-elf
469
		;;
267
	da30 | da30-*)
470
	da30 | da30-*)
268
		basic_machine=m68k-da30
471
		basic_machine=m68k-da30
269
		;;
472
		;;
270
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
473
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
271
		basic_machine=mips-dec
474
		basic_machine=mips-dec
272
		;;
475
		;;
476
	decsystem10* | dec10*)
477
		basic_machine=pdp10-dec
478
		os=-tops10
479
		;;
480
	decsystem20* | dec20*)
481
		basic_machine=pdp10-dec
482
		os=-tops20
483
		;;
273
	delta | 3300 | motorola-3300 | motorola-delta \
484
	delta | 3300 | motorola-3300 | motorola-delta \
274
	      | 3300-motorola | delta-motorola)
485
	      | 3300-motorola | delta-motorola)
275
		basic_machine=m68k-motorola
486
		basic_machine=m68k-motorola
Lines 278-283 Link Here
278
		basic_machine=m88k-motorola
489
		basic_machine=m88k-motorola
279
		os=-sysv3
490
		os=-sysv3
280
		;;
491
		;;
492
	djgpp)
493
		basic_machine=i586-pc
494
		os=-msdosdjgpp
495
		;;
281
	dpx20 | dpx20-*)
496
	dpx20 | dpx20-*)
282
		basic_machine=rs6000-bull
497
		basic_machine=rs6000-bull
283
		os=-bosx
498
		os=-bosx
Lines 297-302 Link Here
297
	encore | umax | mmax)
512
	encore | umax | mmax)
298
		basic_machine=ns32k-encore
513
		basic_machine=ns32k-encore
299
		;;
514
		;;
515
	es1800 | OSE68k | ose68k | ose | OSE)
516
		basic_machine=m68k-ericsson
517
		os=-ose
518
		;;
300
	fx2800)
519
	fx2800)
301
		basic_machine=i860-alliant
520
		basic_machine=i860-alliant
302
		;;
521
		;;
Lines 307-312 Link Here
307
		basic_machine=tron-gmicro
526
		basic_machine=tron-gmicro
308
		os=-sysv
527
		os=-sysv
309
		;;
528
		;;
529
	go32)
530
		basic_machine=i386-pc
531
		os=-go32
532
		;;
310
	h3050r* | hiux*)
533
	h3050r* | hiux*)
311
		basic_machine=hppa1.1-hitachi
534
		basic_machine=hppa1.1-hitachi
312
		os=-hiuxwe2
535
		os=-hiuxwe2
Lines 315-320 Link Here
315
		basic_machine=h8300-hitachi
538
		basic_machine=h8300-hitachi
316
		os=-hms
539
		os=-hms
317
		;;
540
		;;
541
	h8300xray)
542
		basic_machine=h8300-hitachi
543
		os=-xray
544
		;;
545
	h8500hms)
546
		basic_machine=h8500-hitachi
547
		os=-hms
548
		;;
318
	harris)
549
	harris)
319
		basic_machine=m88k-harris
550
		basic_machine=m88k-harris
320
		os=-sysv3
551
		os=-sysv3
Lines 330-342 Link Here
330
		basic_machine=m68k-hp
561
		basic_machine=m68k-hp
331
		os=-hpux
562
		os=-hpux
332
		;;
563
		;;
564
	hp3k9[0-9][0-9] | hp9[0-9][0-9])
565
		basic_machine=hppa1.0-hp
566
		;;
333
	hp9k2[0-9][0-9] | hp9k31[0-9])
567
	hp9k2[0-9][0-9] | hp9k31[0-9])
334
		basic_machine=m68000-hp
568
		basic_machine=m68000-hp
335
		;;
569
		;;
336
	hp9k3[2-9][0-9])
570
	hp9k3[2-9][0-9])
337
		basic_machine=m68k-hp
571
		basic_machine=m68k-hp
338
		;;
572
		;;
339
	hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
573
	hp9k6[0-9][0-9] | hp6[0-9][0-9])
574
		basic_machine=hppa1.0-hp
575
		;;
576
	hp9k7[0-79][0-9] | hp7[0-79][0-9])
577
		basic_machine=hppa1.1-hp
578
		;;
579
	hp9k78[0-9] | hp78[0-9])
580
		# FIXME: really hppa2.0-hp
581
		basic_machine=hppa1.1-hp
582
		;;
583
	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
584
		# FIXME: really hppa2.0-hp
585
		basic_machine=hppa1.1-hp
586
		;;
587
	hp9k8[0-9][13679] | hp8[0-9][13679])
340
		basic_machine=hppa1.1-hp
588
		basic_machine=hppa1.1-hp
341
		;;
589
		;;
342
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
590
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
Lines 345-371 Link Here
345
	hppa-next)
593
	hppa-next)
346
		os=-nextstep3
594
		os=-nextstep3
347
		;;
595
		;;
596
	hppaosf)
597
		basic_machine=hppa1.1-hp
598
		os=-osf
599
		;;
600
	hppro)
601
		basic_machine=hppa1.1-hp
602
		os=-proelf
603
		;;
348
	i370-ibm* | ibm*)
604
	i370-ibm* | ibm*)
349
		basic_machine=i370-ibm
605
		basic_machine=i370-ibm
350
		os=-mvs
351
		;;
606
		;;
352
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
607
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
353
	i[34567]86v32)
608
	i*86v32)
354
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
609
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
355
		os=-sysv32
610
		os=-sysv32
356
		;;
611
		;;
357
	i[34567]86v4*)
612
	i*86v4*)
358
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
613
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
359
		os=-sysv4
614
		os=-sysv4
360
		;;
615
		;;
361
	i[34567]86v)
616
	i*86v)
362
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
617
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
363
		os=-sysv
618
		os=-sysv
364
		;;
619
		;;
365
	i[34567]86sol2)
620
	i*86sol2)
366
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
621
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
367
		os=-solaris2
622
		os=-solaris2
368
		;;
623
		;;
624
	i386mach)
625
		basic_machine=i386-mach
626
		os=-mach
627
		;;
628
	i386-vsta | vsta)
629
		basic_machine=i386-unknown
630
		os=-vsta
631
		;;
369
	iris | iris4d)
632
	iris | iris4d)
370
		basic_machine=mips-sgi
633
		basic_machine=mips-sgi
371
		case $os in
634
		case $os in
Lines 391-406 Link Here
391
		basic_machine=ns32k-utek
654
		basic_machine=ns32k-utek
392
		os=-sysv
655
		os=-sysv
393
		;;
656
		;;
657
	mingw32)
658
		basic_machine=i386-pc
659
		os=-mingw32
660
		;;
394
	miniframe)
661
	miniframe)
395
		basic_machine=m68000-convergent
662
		basic_machine=m68000-convergent
396
		;;
663
		;;
397
	mipsel*-linux*)
664
	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
398
		basic_machine=mipsel-unknown
665
		basic_machine=m68k-atari
399
		os=-linux-gnu
666
		os=-mint
400
		;;
401
	mips*-linux*)
402
		basic_machine=mips-unknown
403
		os=-linux-gnu
404
		;;
667
		;;
405
	mips3*-*)
668
	mips3*-*)
406
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
669
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
Lines 408-417 Link Here
408
	mips3*)
671
	mips3*)
409
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
672
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
410
		;;
673
		;;
674
	monitor)
675
		basic_machine=m68k-rom68k
676
		os=-coff
677
		;;
678
	morphos)
679
		basic_machine=powerpc-unknown
680
		os=-morphos
681
		;;
682
	msdos)
683
		basic_machine=i386-pc
684
		os=-msdos
685
		;;
686
	mvs)
687
		basic_machine=i370-ibm
688
		os=-mvs
689
		;;
411
	ncr3000)
690
	ncr3000)
412
		basic_machine=i486-ncr
691
		basic_machine=i486-ncr
413
		os=-sysv4
692
		os=-sysv4
414
		;;
693
		;;
694
	netbsd386)
695
		basic_machine=i386-unknown
696
		os=-netbsd
697
		;;
698
	netwinder)
699
		basic_machine=armv4l-rebel
700
		os=-linux
701
		;;
415
	news | news700 | news800 | news900)
702
	news | news700 | news800 | news900)
416
		basic_machine=m68k-sony
703
		basic_machine=m68k-sony
417
		os=-newsos
704
		os=-newsos
Lines 424-429 Link Here
424
		basic_machine=mips-sony
711
		basic_machine=mips-sony
425
		os=-newsos
712
		os=-newsos
426
		;;
713
		;;
714
	necv70)
715
		basic_machine=v70-nec
716
		os=-sysv
717
		;;
427
	next | m*-next )
718
	next | m*-next )
428
		basic_machine=m68k-next
719
		basic_machine=m68k-next
429
		case $os in
720
		case $os in
Lines 449-457 Link Here
449
		basic_machine=i960-intel
740
		basic_machine=i960-intel
450
		os=-nindy
741
		os=-nindy
451
		;;
742
		;;
743
	mon960)
744
		basic_machine=i960-intel
745
		os=-mon960
746
		;;
747
	nonstopux)
748
		basic_machine=mips-compaq
749
		os=-nonstopux
750
		;;
452
	np1)
751
	np1)
453
		basic_machine=np1-gould
752
		basic_machine=np1-gould
454
		;;
753
		;;
754
	nsr-tandem)
755
		basic_machine=nsr-tandem
756
		;;
757
	op50n-* | op60c-*)
758
		basic_machine=hppa1.1-oki
759
		os=-proelf
760
		;;
761
	or32 | or32-*)
762
		basic_machine=or32-unknown
763
		os=-coff
764
		;;
765
	os400)
766
		basic_machine=powerpc-ibm
767
		os=-os400
768
		;;
769
	OSE68000 | ose68000)
770
		basic_machine=m68000-ericsson
771
		os=-ose
772
		;;
773
	os68k)
774
		basic_machine=m68k-none
775
		os=-os68k
776
		;;
455
	pa-hitachi)
777
	pa-hitachi)
456
		basic_machine=hppa1.1-hitachi
778
		basic_machine=hppa1.1-hitachi
457
		os=-hiuxwe2
779
		os=-hiuxwe2
Lines 466-516 Link Here
466
	pbb)
788
	pbb)
467
		basic_machine=m68k-tti
789
		basic_machine=m68k-tti
468
		;;
790
		;;
469
        pc532 | pc532-*)
791
	pc532 | pc532-*)
470
		basic_machine=ns32k-pc532
792
		basic_machine=ns32k-pc532
471
		;;
793
		;;
472
	pentium | p5 | k5 | nexen)
794
	pentium | p5 | k5 | k6 | nexgen | viac3)
473
		basic_machine=i586-pc
795
		basic_machine=i586-pc
474
		;;
796
		;;
475
	pentiumpro | p6 | k6 | 6x86)
797
	pentiumpro | p6 | 6x86 | athlon | athlon_*)
476
		basic_machine=i686-pc
798
		basic_machine=i686-pc
477
		;;
799
		;;
478
	pentiumii | pentium2)
800
	pentiumii | pentium2 | pentiumiii | pentium3)
801
		basic_machine=i686-pc
802
		;;
803
	pentium4)
479
		basic_machine=i786-pc
804
		basic_machine=i786-pc
480
		;;
805
		;;
481
	pentium-* | p5-* | k5-* | nexen-*)
806
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
482
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
807
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
483
		;;
808
		;;
484
	pentiumpro-* | p6-* | k6-* | 6x86-*)
809
	pentiumpro-* | p6-* | 6x86-* | athlon-*)
810
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
811
		;;
812
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
485
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
813
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
486
		;;
814
		;;
487
	pentiumii-* | pentium2-*)
815
	pentium4-*)
488
		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
816
		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
489
		;;
817
		;;
490
	pn)
818
	pn)
491
		basic_machine=pn-gould
819
		basic_machine=pn-gould
492
		;;
820
		;;
493
	power)	basic_machine=rs6000-ibm
821
	power)	basic_machine=power-ibm
494
		;;
822
		;;
495
	ppc)	basic_machine=powerpc-unknown
823
	ppc)	basic_machine=powerpc-unknown
496
	        ;;
824
		;;
497
	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
825
	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
498
		;;
826
		;;
499
	ppcle | powerpclittle | ppc-le | powerpc-little)
827
	ppcle | powerpclittle | ppc-le | powerpc-little)
500
		basic_machine=powerpcle-unknown
828
		basic_machine=powerpcle-unknown
501
	        ;;
829
		;;
502
	ppcle-* | powerpclittle-*)
830
	ppcle-* | powerpclittle-*)
503
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
831
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
504
		;;
832
		;;
833
	ppc64)	basic_machine=powerpc64-unknown
834
		;;
835
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
836
		;;
837
	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
838
		basic_machine=powerpc64le-unknown
839
		;;
840
	ppc64le-* | powerpc64little-*)
841
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
842
		;;
505
	ps2)
843
	ps2)
506
		basic_machine=i386-ibm
844
		basic_machine=i386-ibm
507
		;;
845
		;;
846
	pw32)
847
		basic_machine=i586-unknown
848
		os=-pw32
849
		;;
850
	rom68k)
851
		basic_machine=m68k-rom68k
852
		os=-coff
853
		;;
508
	rm[46]00)
854
	rm[46]00)
509
		basic_machine=mips-siemens
855
		basic_machine=mips-siemens
510
		;;
856
		;;
511
	rtpc | rtpc-*)
857
	rtpc | rtpc-*)
512
		basic_machine=romp-ibm
858
		basic_machine=romp-ibm
513
		;;
859
		;;
860
	s390 | s390-*)
861
		basic_machine=s390-ibm
862
		;;
863
	s390x | s390x-*)
864
		basic_machine=s390x-ibm
865
		;;
866
	sa29200)
867
		basic_machine=a29k-amd
868
		os=-udi
869
		;;
870
	sb1)
871
		basic_machine=mipsisa64sb1-unknown
872
		;;
873
	sb1el)
874
		basic_machine=mipsisa64sb1el-unknown
875
		;;
876
	sei)
877
		basic_machine=mips-sei
878
		os=-seiux
879
		;;
514
	sequent)
880
	sequent)
515
		basic_machine=i386-sequent
881
		basic_machine=i386-sequent
516
		;;
882
		;;
Lines 518-523 Link Here
518
		basic_machine=sh-hitachi
884
		basic_machine=sh-hitachi
519
		os=-hms
885
		os=-hms
520
		;;
886
		;;
887
	sh64)
888
		basic_machine=sh64-unknown
889
		;;
890
	sparclite-wrs | simso-wrs)
891
		basic_machine=sparclite-wrs
892
		os=-vxworks
893
		;;
521
	sps7)
894
	sps7)
522
		basic_machine=m68k-bull
895
		basic_machine=m68k-bull
523
		os=-sysv2
896
		os=-sysv2
Lines 525-530 Link Here
525
	spur)
898
	spur)
526
		basic_machine=spur-unknown
899
		basic_machine=spur-unknown
527
		;;
900
		;;
901
	st2000)
902
		basic_machine=m68k-tandem
903
		;;
904
	stratus)
905
		basic_machine=i860-stratus
906
		os=-sysv4
907
		;;
528
	sun2)
908
	sun2)
529
		basic_machine=m68000-sun
909
		basic_machine=m68000-sun
530
		;;
910
		;;
Lines 565-583 Link Here
565
	sun386 | sun386i | roadrunner)
945
	sun386 | sun386i | roadrunner)
566
		basic_machine=i386-sun
946
		basic_machine=i386-sun
567
		;;
947
		;;
948
	sv1)
949
		basic_machine=sv1-cray
950
		os=-unicos
951
		;;
568
	symmetry)
952
	symmetry)
569
		basic_machine=i386-sequent
953
		basic_machine=i386-sequent
570
		os=-dynix
954
		os=-dynix
571
		;;
955
		;;
956
	t3e)
957
		basic_machine=alphaev5-cray
958
		os=-unicos
959
		;;
960
	t90)
961
		basic_machine=t90-cray
962
		os=-unicos
963
		;;
964
	tic54x | c54x*)
965
		basic_machine=tic54x-unknown
966
		os=-coff
967
		;;
968
	tic55x | c55x*)
969
		basic_machine=tic55x-unknown
970
		os=-coff
971
		;;
972
	tic6x | c6x*)
973
		basic_machine=tic6x-unknown
974
		os=-coff
975
		;;
572
	tx39)
976
	tx39)
573
		basic_machine=mipstx39-unknown
977
		basic_machine=mipstx39-unknown
574
		;;
978
		;;
575
	tx39el)
979
	tx39el)
576
		basic_machine=mipstx39el-unknown
980
		basic_machine=mipstx39el-unknown
577
		;;
981
		;;
982
	toad1)
983
		basic_machine=pdp10-xkl
984
		os=-tops20
985
		;;
578
	tower | tower-32)
986
	tower | tower-32)
579
		basic_machine=m68k-ncr
987
		basic_machine=m68k-ncr
580
		;;
988
		;;
989
	tpf)
990
		basic_machine=s390x-ibm
991
		os=-tpf
992
		;;
581
	udi29k)
993
	udi29k)
582
		basic_machine=a29k-amd
994
		basic_machine=a29k-amd
583
		os=-udi
995
		os=-udi
Lines 586-591 Link Here
586
		basic_machine=a29k-nyu
998
		basic_machine=a29k-nyu
587
		os=-sym1
999
		os=-sym1
588
		;;
1000
		;;
1001
	v810 | necv810)
1002
		basic_machine=v810-nec
1003
		os=-none
1004
		;;
589
	vaxv)
1005
	vaxv)
590
		basic_machine=vax-dec
1006
		basic_machine=vax-dec
591
		os=-sysv
1007
		os=-sysv
Lines 595-602 Link Here
595
		os=-vms
1011
		os=-vms
596
		;;
1012
		;;
597
	vpp*|vx|vx-*)
1013
	vpp*|vx|vx-*)
598
               basic_machine=f301-fujitsu
1014
		basic_machine=f301-fujitsu
599
               ;;
1015
		;;
600
	vxworks960)
1016
	vxworks960)
601
		basic_machine=i960-wrs
1017
		basic_machine=i960-wrs
602
		os=-vxworks
1018
		os=-vxworks
Lines 609-621 Link Here
609
		basic_machine=a29k-wrs
1025
		basic_machine=a29k-wrs
610
		os=-vxworks
1026
		os=-vxworks
611
		;;
1027
		;;
612
	xmp)
1028
	w65*)
613
		basic_machine=xmp-cray
1029
		basic_machine=w65-wdc
614
		os=-unicos
1030
		os=-none
1031
		;;
1032
	w89k-*)
1033
		basic_machine=hppa1.1-winbond
1034
		os=-proelf
615
		;;
1035
		;;
616
        xps | xps100)
1036
	xbox)
1037
		basic_machine=i686-pc
1038
		os=-mingw32
1039
		;;
1040
	xps | xps100)
617
		basic_machine=xps100-honeywell
1041
		basic_machine=xps100-honeywell
618
		;;
1042
		;;
1043
	ymp)
1044
		basic_machine=ymp-cray
1045
		os=-unicos
1046
		;;
1047
	z8k-*-coff)
1048
		basic_machine=z8k-unknown
1049
		os=-sim
1050
		;;
619
	none)
1051
	none)
620
		basic_machine=none-none
1052
		basic_machine=none-none
621
		os=-none
1053
		os=-none
Lines 623-654 Link Here
623
1055
624
# Here we handle the default manufacturer of certain CPU types.  It is in
1056
# Here we handle the default manufacturer of certain CPU types.  It is in
625
# some cases the only manufacturer, in others, it is the most popular.
1057
# some cases the only manufacturer, in others, it is the most popular.
626
	mips)
1058
	w89k)
627
		if [ x$os = x-linux-gnu ]; then
1059
		basic_machine=hppa1.1-winbond
628
			basic_machine=mips-unknown
1060
		;;
629
		else
1061
	op50n)
630
			basic_machine=mips-mips
1062
		basic_machine=hppa1.1-oki
631
		fi
1063
		;;
1064
	op60c)
1065
		basic_machine=hppa1.1-oki
632
		;;
1066
		;;
633
	romp)
1067
	romp)
634
		basic_machine=romp-ibm
1068
		basic_machine=romp-ibm
635
		;;
1069
		;;
1070
	mmix)
1071
		basic_machine=mmix-knuth
1072
		;;
636
	rs6000)
1073
	rs6000)
637
		basic_machine=rs6000-ibm
1074
		basic_machine=rs6000-ibm
638
		;;
1075
		;;
639
	vax)
1076
	vax)
640
		basic_machine=vax-dec
1077
		basic_machine=vax-dec
641
		;;
1078
		;;
1079
	pdp10)
1080
		# there are many clones, so DEC is not a safe bet
1081
		basic_machine=pdp10-unknown
1082
		;;
642
	pdp11)
1083
	pdp11)
643
		basic_machine=pdp11-dec
1084
		basic_machine=pdp11-dec
644
		;;
1085
		;;
645
	we32k)
1086
	we32k)
646
		basic_machine=we32k-att
1087
		basic_machine=we32k-att
647
		;;
1088
		;;
648
	sparc)
1089
	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
1090
		basic_machine=sh-unknown
1091
		;;
1092
	sh64)
1093
		basic_machine=sh64-unknown
1094
		;;
1095
	sparc | sparcv8 | sparcv9 | sparcv9b)
649
		basic_machine=sparc-sun
1096
		basic_machine=sparc-sun
650
		;;
1097
		;;
651
        cydra)
1098
	cydra)
652
		basic_machine=cydra-cydrome
1099
		basic_machine=cydra-cydrome
653
		;;
1100
		;;
654
	orion)
1101
	orion)
Lines 657-662 Link Here
657
	orion105)
1104
	orion105)
658
		basic_machine=clipper-highlevel
1105
		basic_machine=clipper-highlevel
659
		;;
1106
		;;
1107
	mac | mpw | mac-mpw)
1108
		basic_machine=m68k-apple
1109
		;;
1110
	pmac | pmac-mpw)
1111
		basic_machine=powerpc-apple
1112
		;;
1113
	*-unknown)
1114
		# Make sure to match an already-canonicalized machine name.
1115
		;;
660
	*)
1116
	*)
661
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1117
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
662
		exit 1
1118
		exit 1
Lines 709-722 Link Here
709
	      | -aos* \
1165
	      | -aos* \
710
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1166
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
711
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1167
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
712
	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
1168
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
713
	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
1169
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1170
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
714
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1171
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
715
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1172
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1173
	      | -chorusos* | -chorusrdb* \
716
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1174
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
717
	      | -mingw32* | -linux-gnu* | -uxpv* | -beos*)
1175
	      | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
1176
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1177
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1178
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1179
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1180
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1181
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
718
	# Remember, each alternative MUST END IN *, to match a version number.
1182
	# Remember, each alternative MUST END IN *, to match a version number.
719
		;;
1183
		;;
1184
	-qnx*)
1185
		case $basic_machine in
1186
		    x86-* | i*86-*)
1187
			;;
1188
		    *)
1189
			os=-nto$os
1190
			;;
1191
		esac
1192
		;;
1193
	-nto-qnx*)
1194
		;;
1195
	-nto*)
1196
		os=`echo $os | sed -e 's|nto|nto-qnx|'`
1197
		;;
1198
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1199
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
1200
	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1201
		;;
1202
	-mac*)
1203
		os=`echo $os | sed -e 's|mac|macos|'`
1204
		;;
1205
	-linux-dietlibc)
1206
		os=-linux-dietlibc
1207
		;;
720
	-linux*)
1208
	-linux*)
721
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
1209
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
722
		;;
1210
		;;
Lines 726-731 Link Here
726
	-sunos6*)
1214
	-sunos6*)
727
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
1215
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
728
		;;
1216
		;;
1217
	-opened*)
1218
		os=-openedition
1219
		;;
1220
        -os400*)
1221
		os=-os400
1222
		;;
1223
	-wince*)
1224
		os=-wince
1225
		;;
729
	-osfrose*)
1226
	-osfrose*)
730
		os=-osfrose
1227
		os=-osfrose
731
		;;
1228
		;;
Lines 741-751 Link Here
741
	-acis*)
1238
	-acis*)
742
		os=-aos
1239
		os=-aos
743
		;;
1240
		;;
1241
	-atheos*)
1242
		os=-atheos
1243
		;;
1244
	-syllable*)
1245
		os=-syllable
1246
		;;
1247
	-386bsd)
1248
		os=-bsd
1249
		;;
744
	-ctix* | -uts*)
1250
	-ctix* | -uts*)
745
		os=-sysv
1251
		os=-sysv
746
		;;
1252
		;;
1253
	-nova*)
1254
		os=-rtmk-nova
1255
		;;
747
	-ns2 )
1256
	-ns2 )
748
	        os=-nextstep2
1257
		os=-nextstep2
1258
		;;
1259
	-nsk*)
1260
		os=-nsk
749
		;;
1261
		;;
750
	# Preserve the version number of sinix5.
1262
	# Preserve the version number of sinix5.
751
	-sinix5.*)
1263
	-sinix5.*)
Lines 754-759 Link Here
754
	-sinix*)
1266
	-sinix*)
755
		os=-sysv4
1267
		os=-sysv4
756
		;;
1268
		;;
1269
        -tpf*)
1270
		os=-tpf
1271
		;;
757
	-triton*)
1272
	-triton*)
758
		os=-sysv3
1273
		os=-sysv3
759
		;;
1274
		;;
Lines 772-780 Link Here
772
	# This must come after -sysvr4.
1287
	# This must come after -sysvr4.
773
	-sysv*)
1288
	-sysv*)
774
		;;
1289
		;;
1290
	-ose*)
1291
		os=-ose
1292
		;;
1293
	-es1800*)
1294
		os=-ose
1295
		;;
775
	-xenix)
1296
	-xenix)
776
		os=-xenix
1297
		os=-xenix
777
		;;
1298
		;;
1299
	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1300
		os=-mint
1301
		;;
1302
	-aros*)
1303
		os=-aros
1304
		;;
1305
	-kaos*)
1306
		os=-kaos
1307
		;;
1308
	-zvmoe)
1309
		os=-zvmoe
1310
		;;
778
	-none)
1311
	-none)
779
		;;
1312
		;;
780
	*)
1313
	*)
Lines 800-809 Link Here
800
	*-acorn)
1333
	*-acorn)
801
		os=-riscix1.2
1334
		os=-riscix1.2
802
		;;
1335
		;;
1336
	arm*-rebel)
1337
		os=-linux
1338
		;;
803
	arm*-semi)
1339
	arm*-semi)
804
		os=-aout
1340
		os=-aout
805
		;;
1341
		;;
806
        pdp11-*)
1342
    c4x-* | tic4x-*)
1343
        os=-coff
1344
        ;;
1345
	# This must come before the *-dec entry.
1346
	pdp10-*)
1347
		os=-tops20
1348
		;;
1349
	pdp11-*)
807
		os=-none
1350
		os=-none
808
		;;
1351
		;;
809
	*-dec | vax-*)
1352
	*-dec | vax-*)
Lines 821-826 Link Here
821
		# default.
1364
		# default.
822
		# os=-sunos4
1365
		# os=-sunos4
823
		;;
1366
		;;
1367
	m68*-cisco)
1368
		os=-aout
1369
		;;
1370
	mips*-cisco)
1371
		os=-elf
1372
		;;
1373
	mips*-*)
1374
		os=-elf
1375
		;;
1376
	or32-*)
1377
		os=-coff
1378
		;;
824
	*-tti)	# must be before sparc entry or we get the wrong os.
1379
	*-tti)	# must be before sparc entry or we get the wrong os.
825
		os=-sysv3
1380
		os=-sysv3
826
		;;
1381
		;;
Lines 833-838 Link Here
833
	*-ibm)
1388
	*-ibm)
834
		os=-aix
1389
		os=-aix
835
		;;
1390
		;;
1391
    	*-knuth)
1392
		os=-mmixware
1393
		;;
1394
	*-wec)
1395
		os=-proelf
1396
		;;
1397
	*-winbond)
1398
		os=-proelf
1399
		;;
1400
	*-oki)
1401
		os=-proelf
1402
		;;
836
	*-hp)
1403
	*-hp)
837
		os=-hpux
1404
		os=-hpux
838
		;;
1405
		;;
Lines 875-901 Link Here
875
	*-next)
1442
	*-next)
876
		os=-nextstep3
1443
		os=-nextstep3
877
		;;
1444
		;;
878
        *-gould)
1445
	*-gould)
879
		os=-sysv
1446
		os=-sysv
880
		;;
1447
		;;
881
        *-highlevel)
1448
	*-highlevel)
882
		os=-bsd
1449
		os=-bsd
883
		;;
1450
		;;
884
	*-encore)
1451
	*-encore)
885
		os=-bsd
1452
		os=-bsd
886
		;;
1453
		;;
887
        *-sgi)
1454
	*-sgi)
888
		os=-irix
1455
		os=-irix
889
		;;
1456
		;;
890
        *-siemens)
1457
	*-siemens)
891
		os=-sysv4
1458
		os=-sysv4
892
		;;
1459
		;;
893
	*-masscomp)
1460
	*-masscomp)
894
		os=-rtu
1461
		os=-rtu
895
		;;
1462
		;;
896
	f301-fujitsu)
1463
	f30[01]-fujitsu | f700-fujitsu)
897
		os=-uxpv
1464
		os=-uxpv
898
		;;
1465
		;;
1466
	*-rom68k)
1467
		os=-coff
1468
		;;
1469
	*-*bug)
1470
		os=-coff
1471
		;;
1472
	*-apple)
1473
		os=-macos
1474
		;;
1475
	*-atari*)
1476
		os=-mint
1477
		;;
899
	*)
1478
	*)
900
		os=-none
1479
		os=-none
901
		;;
1480
		;;
Lines 917-925 Link Here
917
			-aix*)
1496
			-aix*)
918
				vendor=ibm
1497
				vendor=ibm
919
				;;
1498
				;;
1499
			-beos*)
1500
				vendor=be
1501
				;;
920
			-hpux*)
1502
			-hpux*)
921
				vendor=hp
1503
				vendor=hp
922
				;;
1504
				;;
1505
			-mpeix*)
1506
				vendor=hp
1507
				;;
923
			-hiux*)
1508
			-hiux*)
924
				vendor=hitachi
1509
				vendor=hitachi
925
				;;
1510
				;;
Lines 935-955 Link Here
935
			-genix*)
1520
			-genix*)
936
				vendor=ns
1521
				vendor=ns
937
				;;
1522
				;;
938
			-mvs*)
1523
			-mvs* | -opened*)
1524
				vendor=ibm
1525
				;;
1526
			-os400*)
939
				vendor=ibm
1527
				vendor=ibm
940
				;;
1528
				;;
941
			-ptx*)
1529
			-ptx*)
942
				vendor=sequent
1530
				vendor=sequent
943
				;;
1531
				;;
944
			-vxsim* | -vxworks*)
1532
			-tpf*)
1533
				vendor=ibm
1534
				;;
1535
			-vxsim* | -vxworks* | -windiss*)
945
				vendor=wrs
1536
				vendor=wrs
946
				;;
1537
				;;
947
			-aux*)
1538
			-aux*)
948
				vendor=apple
1539
				vendor=apple
949
				;;
1540
				;;
1541
			-hms*)
1542
				vendor=hitachi
1543
				;;
1544
			-mpw* | -macos*)
1545
				vendor=apple
1546
				;;
1547
			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1548
				vendor=atari
1549
				;;
1550
			-vos*)
1551
				vendor=stratus
1552
				;;
950
		esac
1553
		esac
951
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1554
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
952
		;;
1555
		;;
953
esac
1556
esac
954
1557
955
echo $basic_machine$os
1558
echo $basic_machine$os
1559
exit 0
1560
1561
# Local variables:
1562
# eval: (add-hook 'write-file-hooks 'time-stamp)
1563
# time-stamp-start: "timestamp='"
1564
# time-stamp-format: "%:y-%02m-%02d"
1565
# time-stamp-end: "'"
1566
# End:
(-)zephyr.orig/configure (-109 / +159 lines)
Lines 2377-2382 Link Here
2377
#line 2378 "configure"
2377
#line 2378 "configure"
2378
#include "confdefs.h"
2378
#include "confdefs.h"
2379
#include <stdio.h>
2379
#include <stdio.h>
2380
#include <sys/types.h>
2380
main()
2381
main()
2381
{
2382
{
2382
  FILE *f=fopen("conftestval", "w");
2383
  FILE *f=fopen("conftestval", "w");
Lines 2385-2391 Link Here
2385
  exit(0);
2386
  exit(0);
2386
}
2387
}
2387
EOF
2388
EOF
2388
if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2389
if { (eval echo configure:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2389
then
2390
then
2390
  ac_cv_sizeof_short=`cat conftestval`
2391
  ac_cv_sizeof_short=`cat conftestval`
2391
else
2392
else
Lines 2405-2411 Link Here
2405
2406
2406
2407
2407
echo $ac_n "checking size of int""... $ac_c" 1>&6
2408
echo $ac_n "checking size of int""... $ac_c" 1>&6
2408
echo "configure:2409: checking size of int" >&5
2409
echo "configure:2410: checking size of int" >&5
2409
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2410
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2410
  echo $ac_n "(cached) $ac_c" 1>&6
2411
  echo $ac_n "(cached) $ac_c" 1>&6
2411
else
2412
else
Lines 2413-2421 Link Here
2413
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2414
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2414
else
2415
else
2415
  cat > conftest.$ac_ext <<EOF
2416
  cat > conftest.$ac_ext <<EOF
2416
#line 2417 "configure"
2417
#line 2418 "configure"
2417
#include "confdefs.h"
2418
#include "confdefs.h"
2418
#include <stdio.h>
2419
#include <stdio.h>
2420
#include <sys/types.h>
2419
main()
2421
main()
2420
{
2422
{
2421
  FILE *f=fopen("conftestval", "w");
2423
  FILE *f=fopen("conftestval", "w");
Lines 2424-2430 Link Here
2424
  exit(0);
2426
  exit(0);
2425
}
2427
}
2426
EOF
2428
EOF
2427
if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2429
if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2428
then
2430
then
2429
  ac_cv_sizeof_int=`cat conftestval`
2431
  ac_cv_sizeof_int=`cat conftestval`
2430
else
2432
else
Lines 2444-2450 Link Here
2444
2446
2445
2447
2446
echo $ac_n "checking size of long""... $ac_c" 1>&6
2448
echo $ac_n "checking size of long""... $ac_c" 1>&6
2447
echo "configure:2448: checking size of long" >&5
2449
echo "configure:2450: checking size of long" >&5
2448
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2450
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2449
  echo $ac_n "(cached) $ac_c" 1>&6
2451
  echo $ac_n "(cached) $ac_c" 1>&6
2450
else
2452
else
Lines 2452-2460 Link Here
2452
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2454
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2453
else
2455
else
2454
  cat > conftest.$ac_ext <<EOF
2456
  cat > conftest.$ac_ext <<EOF
2455
#line 2456 "configure"
2457
#line 2458 "configure"
2456
#include "confdefs.h"
2458
#include "confdefs.h"
2457
#include <stdio.h>
2459
#include <stdio.h>
2460
#include <sys/types.h>
2458
main()
2461
main()
2459
{
2462
{
2460
  FILE *f=fopen("conftestval", "w");
2463
  FILE *f=fopen("conftestval", "w");
Lines 2463-2469 Link Here
2463
  exit(0);
2466
  exit(0);
2464
}
2467
}
2465
EOF
2468
EOF
2466
if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2469
if { (eval echo configure:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2467
then
2470
then
2468
  ac_cv_sizeof_long=`cat conftestval`
2471
  ac_cv_sizeof_long=`cat conftestval`
2469
else
2472
else
Lines 2483-2489 Link Here
2483
2486
2484
2487
2485
echo $ac_n "checking for 32-bit integer type""... $ac_c" 1>&6
2488
echo $ac_n "checking for 32-bit integer type""... $ac_c" 1>&6
2486
echo "configure:2487: checking for 32-bit integer type" >&5
2489
echo "configure:2490: checking for 32-bit integer type" >&5
2487
if test "$ac_cv_sizeof_long" = 4; then
2490
if test "$ac_cv_sizeof_long" = 4; then
2488
	int32=long
2491
	int32=long
2489
elif test "$ac_cv_sizeof_int" = 4; then
2492
elif test "$ac_cv_sizeof_int" = 4; then
Lines 2501-2507 Link Here
2501
echo "$ac_t""${int32}" 1>&6
2504
echo "$ac_t""${int32}" 1>&6
2502
2505
2503
echo $ac_n "checking for wslen in -lw""... $ac_c" 1>&6
2506
echo $ac_n "checking for wslen in -lw""... $ac_c" 1>&6
2504
echo "configure:2505: checking for wslen in -lw" >&5
2507
echo "configure:2508: checking for wslen in -lw" >&5
2505
ac_lib_var=`echo w'_'wslen | sed 'y%./+-%__p_%'`
2508
ac_lib_var=`echo w'_'wslen | sed 'y%./+-%__p_%'`
2506
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2509
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2507
  echo $ac_n "(cached) $ac_c" 1>&6
2510
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 2509-2515 Link Here
2509
  ac_save_LIBS="$LIBS"
2512
  ac_save_LIBS="$LIBS"
2510
LIBS="-lw  $LIBS"
2513
LIBS="-lw  $LIBS"
2511
cat > conftest.$ac_ext <<EOF
2514
cat > conftest.$ac_ext <<EOF
2512
#line 2513 "configure"
2515
#line 2516 "configure"
2513
#include "confdefs.h"
2516
#include "confdefs.h"
2514
/* Override any gcc2 internal prototype to avoid an error.  */
2517
/* Override any gcc2 internal prototype to avoid an error.  */
2515
/* We use char because int might match the return type of a gcc2
2518
/* We use char because int might match the return type of a gcc2
Lines 2520-2526 Link Here
2520
wslen()
2523
wslen()
2521
; return 0; }
2524
; return 0; }
2522
EOF
2525
EOF
2523
if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2526
if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2524
  rm -rf conftest*
2527
  rm -rf conftest*
2525
  eval "ac_cv_lib_$ac_lib_var=yes"
2528
  eval "ac_cv_lib_$ac_lib_var=yes"
2526
else
2529
else
Lines 2548-2554 Link Here
2548
fi
2551
fi
2549
2552
2550
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2553
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2551
echo "configure:2552: checking for dlopen in -ldl" >&5
2554
echo "configure:2555: checking for dlopen in -ldl" >&5
2552
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2555
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2553
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2556
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2554
  echo $ac_n "(cached) $ac_c" 1>&6
2557
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 2556-2562 Link Here
2556
  ac_save_LIBS="$LIBS"
2559
  ac_save_LIBS="$LIBS"
2557
LIBS="-ldl  $LIBS"
2560
LIBS="-ldl  $LIBS"
2558
cat > conftest.$ac_ext <<EOF
2561
cat > conftest.$ac_ext <<EOF
2559
#line 2560 "configure"
2562
#line 2563 "configure"
2560
#include "confdefs.h"
2563
#include "confdefs.h"
2561
/* Override any gcc2 internal prototype to avoid an error.  */
2564
/* Override any gcc2 internal prototype to avoid an error.  */
2562
/* We use char because int might match the return type of a gcc2
2565
/* We use char because int might match the return type of a gcc2
Lines 2567-2573 Link Here
2567
dlopen()
2570
dlopen()
2568
; return 0; }
2571
; return 0; }
2569
EOF
2572
EOF
2570
if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2573
if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571
  rm -rf conftest*
2574
  rm -rf conftest*
2572
  eval "ac_cv_lib_$ac_lib_var=yes"
2575
  eval "ac_cv_lib_$ac_lib_var=yes"
2573
else
2576
else
Lines 2597-2610 Link Here
2597
2600
2598
2601
2599
echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
2602
echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
2600
echo "configure:2601: checking for library containing gethostbyname" >&5
2603
echo "configure:2604: checking for library containing gethostbyname" >&5
2601
if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
2604
if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
2602
  echo $ac_n "(cached) $ac_c" 1>&6
2605
  echo $ac_n "(cached) $ac_c" 1>&6
2603
else
2606
else
2604
  ac_func_search_save_LIBS="$LIBS"
2607
  ac_func_search_save_LIBS="$LIBS"
2605
ac_cv_search_gethostbyname="no"
2608
ac_cv_search_gethostbyname="no"
2606
cat > conftest.$ac_ext <<EOF
2609
cat > conftest.$ac_ext <<EOF
2607
#line 2608 "configure"
2610
#line 2611 "configure"
2608
#include "confdefs.h"
2611
#include "confdefs.h"
2609
/* Override any gcc2 internal prototype to avoid an error.  */
2612
/* Override any gcc2 internal prototype to avoid an error.  */
2610
/* We use char because int might match the return type of a gcc2
2613
/* We use char because int might match the return type of a gcc2
Lines 2615-2621 Link Here
2615
gethostbyname()
2618
gethostbyname()
2616
; return 0; }
2619
; return 0; }
2617
EOF
2620
EOF
2618
if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621
if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2619
  rm -rf conftest*
2622
  rm -rf conftest*
2620
  ac_cv_search_gethostbyname="none required"
2623
  ac_cv_search_gethostbyname="none required"
2621
else
2624
else
Lines 2626-2632 Link Here
2626
test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
2629
test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; do
2627
LIBS="-l$i  $ac_func_search_save_LIBS"
2630
LIBS="-l$i  $ac_func_search_save_LIBS"
2628
cat > conftest.$ac_ext <<EOF
2631
cat > conftest.$ac_ext <<EOF
2629
#line 2630 "configure"
2632
#line 2633 "configure"
2630
#include "confdefs.h"
2633
#include "confdefs.h"
2631
/* Override any gcc2 internal prototype to avoid an error.  */
2634
/* Override any gcc2 internal prototype to avoid an error.  */
2632
/* We use char because int might match the return type of a gcc2
2635
/* We use char because int might match the return type of a gcc2
Lines 2637-2643 Link Here
2637
gethostbyname()
2640
gethostbyname()
2638
; return 0; }
2641
; return 0; }
2639
EOF
2642
EOF
2640
if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2643
if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2641
  rm -rf conftest*
2644
  rm -rf conftest*
2642
  ac_cv_search_gethostbyname="-l$i"
2645
  ac_cv_search_gethostbyname="-l$i"
2643
break
2646
break
Lines 2659-2672 Link Here
2659
fi
2662
fi
2660
2663
2661
echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
2664
echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
2662
echo "configure:2663: checking for library containing socket" >&5
2665
echo "configure:2666: checking for library containing socket" >&5
2663
if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
2666
if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
2664
  echo $ac_n "(cached) $ac_c" 1>&6
2667
  echo $ac_n "(cached) $ac_c" 1>&6
2665
else
2668
else
2666
  ac_func_search_save_LIBS="$LIBS"
2669
  ac_func_search_save_LIBS="$LIBS"
2667
ac_cv_search_socket="no"
2670
ac_cv_search_socket="no"
2668
cat > conftest.$ac_ext <<EOF
2671
cat > conftest.$ac_ext <<EOF
2669
#line 2670 "configure"
2672
#line 2673 "configure"
2670
#include "confdefs.h"
2673
#include "confdefs.h"
2671
/* Override any gcc2 internal prototype to avoid an error.  */
2674
/* Override any gcc2 internal prototype to avoid an error.  */
2672
/* We use char because int might match the return type of a gcc2
2675
/* We use char because int might match the return type of a gcc2
Lines 2677-2683 Link Here
2677
socket()
2680
socket()
2678
; return 0; }
2681
; return 0; }
2679
EOF
2682
EOF
2680
if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2683
if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2681
  rm -rf conftest*
2684
  rm -rf conftest*
2682
  ac_cv_search_socket="none required"
2685
  ac_cv_search_socket="none required"
2683
else
2686
else
Lines 2688-2694 Link Here
2688
test "$ac_cv_search_socket" = "no" && for i in socket; do
2691
test "$ac_cv_search_socket" = "no" && for i in socket; do
2689
LIBS="-l$i  $ac_func_search_save_LIBS"
2692
LIBS="-l$i  $ac_func_search_save_LIBS"
2690
cat > conftest.$ac_ext <<EOF
2693
cat > conftest.$ac_ext <<EOF
2691
#line 2692 "configure"
2694
#line 2695 "configure"
2692
#include "confdefs.h"
2695
#include "confdefs.h"
2693
/* Override any gcc2 internal prototype to avoid an error.  */
2696
/* Override any gcc2 internal prototype to avoid an error.  */
2694
/* We use char because int might match the return type of a gcc2
2697
/* We use char because int might match the return type of a gcc2
Lines 2699-2705 Link Here
2699
socket()
2702
socket()
2700
; return 0; }
2703
; return 0; }
2701
EOF
2704
EOF
2702
if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2705
if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2703
  rm -rf conftest*
2706
  rm -rf conftest*
2704
  ac_cv_search_socket="-l$i"
2707
  ac_cv_search_socket="-l$i"
2705
break
2708
break
Lines 2723-2729 Link Here
2723
# Hesiod needs -lresolv on Sun systems for res_send.
2726
# Hesiod needs -lresolv on Sun systems for res_send.
2724
if test "$hesiod" != "no"; then
2727
if test "$hesiod" != "no"; then
2725
	echo $ac_n "checking for strerror in -l44bsd""... $ac_c" 1>&6
2728
	echo $ac_n "checking for strerror in -l44bsd""... $ac_c" 1>&6
2726
echo "configure:2727: checking for strerror in -l44bsd" >&5
2729
echo "configure:2730: checking for strerror in -l44bsd" >&5
2727
ac_lib_var=`echo 44bsd'_'strerror | sed 'y%./+-%__p_%'`
2730
ac_lib_var=`echo 44bsd'_'strerror | sed 'y%./+-%__p_%'`
2728
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2731
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2729
  echo $ac_n "(cached) $ac_c" 1>&6
2732
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 2731-2737 Link Here
2731
  ac_save_LIBS="$LIBS"
2734
  ac_save_LIBS="$LIBS"
2732
LIBS="-l44bsd  $LIBS"
2735
LIBS="-l44bsd  $LIBS"
2733
cat > conftest.$ac_ext <<EOF
2736
cat > conftest.$ac_ext <<EOF
2734
#line 2735 "configure"
2737
#line 2738 "configure"
2735
#include "confdefs.h"
2738
#include "confdefs.h"
2736
/* Override any gcc2 internal prototype to avoid an error.  */
2739
/* Override any gcc2 internal prototype to avoid an error.  */
2737
/* We use char because int might match the return type of a gcc2
2740
/* We use char because int might match the return type of a gcc2
Lines 2742-2748 Link Here
2742
strerror()
2745
strerror()
2743
; return 0; }
2746
; return 0; }
2744
EOF
2747
EOF
2745
if { (eval echo configure:2746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2748
if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2746
  rm -rf conftest*
2749
  rm -rf conftest*
2747
  eval "ac_cv_lib_$ac_lib_var=yes"
2750
  eval "ac_cv_lib_$ac_lib_var=yes"
2748
else
2751
else
Lines 2770-2776 Link Here
2770
fi
2773
fi
2771
2774
2772
	echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
2775
	echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
2773
echo "configure:2774: checking for res_send in -lresolv" >&5
2776
echo "configure:2777: checking for res_send in -lresolv" >&5
2774
ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
2777
ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
2775
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2778
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2776
  echo $ac_n "(cached) $ac_c" 1>&6
2779
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 2778-2784 Link Here
2778
  ac_save_LIBS="$LIBS"
2781
  ac_save_LIBS="$LIBS"
2779
LIBS="-lresolv  $LIBS"
2782
LIBS="-lresolv  $LIBS"
2780
cat > conftest.$ac_ext <<EOF
2783
cat > conftest.$ac_ext <<EOF
2781
#line 2782 "configure"
2784
#line 2785 "configure"
2782
#include "confdefs.h"
2785
#include "confdefs.h"
2783
/* Override any gcc2 internal prototype to avoid an error.  */
2786
/* Override any gcc2 internal prototype to avoid an error.  */
2784
/* We use char because int might match the return type of a gcc2
2787
/* We use char because int might match the return type of a gcc2
Lines 2789-2795 Link Here
2789
res_send()
2792
res_send()
2790
; return 0; }
2793
; return 0; }
2791
EOF
2794
EOF
2792
if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2795
if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2796
  rm -rf conftest*
2797
  eval "ac_cv_lib_$ac_lib_var=yes"
2798
else
2799
  echo "configure: failed program was:" >&5
2800
  cat conftest.$ac_ext >&5
2801
  rm -rf conftest*
2802
  eval "ac_cv_lib_$ac_lib_var=no"
2803
fi
2804
rm -f conftest*
2805
LIBS="$ac_save_LIBS"
2806
2807
fi
2808
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2809
  echo "$ac_t""yes" 1>&6
2810
    ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2811
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2812
  cat >> confdefs.h <<EOF
2813
#define $ac_tr_lib 1
2814
EOF
2815
2816
  LIBS="-lresolv $LIBS"
2817
2818
else
2819
  echo "$ac_t""no" 1>&6
2820
fi
2821
2822
	echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
2823
echo "configure:2824: checking for __res_send in -lresolv" >&5
2824
ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
2825
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2826
  echo $ac_n "(cached) $ac_c" 1>&6
2827
else
2828
  ac_save_LIBS="$LIBS"
2829
LIBS="-lresolv  $LIBS"
2830
cat > conftest.$ac_ext <<EOF
2831
#line 2832 "configure"
2832
#include "confdefs.h"
2833
/* Override any gcc2 internal prototype to avoid an error.  */
2834
/* We use char because int might match the return type of a gcc2
2835
    builtin and then its argument prototype would still apply.  */
2836
char __res_send();
2837
2838
int main() {
2839
__res_send()
2840
; return 0; }
2841
EOF
2842
if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2793
  rm -rf conftest*
2843
  rm -rf conftest*
2794
  eval "ac_cv_lib_$ac_lib_var=yes"
2844
  eval "ac_cv_lib_$ac_lib_var=yes"
2795
else
2845
else
Lines 2819-2825 Link Here
2819
fi
2869
fi
2820
2870
2821
echo $ac_n "checking for tgetstr in -lcurses""... $ac_c" 1>&6
2871
echo $ac_n "checking for tgetstr in -lcurses""... $ac_c" 1>&6
2822
echo "configure:2823: checking for tgetstr in -lcurses" >&5
2872
echo "configure:2873: checking for tgetstr in -lcurses" >&5
2823
ac_lib_var=`echo curses'_'tgetstr | sed 'y%./+-%__p_%'`
2873
ac_lib_var=`echo curses'_'tgetstr | sed 'y%./+-%__p_%'`
2824
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2874
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2825
  echo $ac_n "(cached) $ac_c" 1>&6
2875
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 2827-2833 Link Here
2827
  ac_save_LIBS="$LIBS"
2877
  ac_save_LIBS="$LIBS"
2828
LIBS="-lcurses  $LIBS"
2878
LIBS="-lcurses  $LIBS"
2829
cat > conftest.$ac_ext <<EOF
2879
cat > conftest.$ac_ext <<EOF
2830
#line 2831 "configure"
2880
#line 2881 "configure"
2831
#include "confdefs.h"
2881
#include "confdefs.h"
2832
/* Override any gcc2 internal prototype to avoid an error.  */
2882
/* Override any gcc2 internal prototype to avoid an error.  */
2833
/* We use char because int might match the return type of a gcc2
2883
/* We use char because int might match the return type of a gcc2
Lines 2838-2844 Link Here
2838
tgetstr()
2888
tgetstr()
2839
; return 0; }
2889
; return 0; }
2840
EOF
2890
EOF
2841
if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2891
if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2842
  rm -rf conftest*
2892
  rm -rf conftest*
2843
  eval "ac_cv_lib_$ac_lib_var=yes"
2893
  eval "ac_cv_lib_$ac_lib_var=yes"
2844
else
2894
else
Lines 2860-2866 Link Here
2860
fi
2910
fi
2861
2911
2862
echo $ac_n "checking for srcsrpy in -lsrc""... $ac_c" 1>&6
2912
echo $ac_n "checking for srcsrpy in -lsrc""... $ac_c" 1>&6
2863
echo "configure:2864: checking for srcsrpy in -lsrc" >&5
2913
echo "configure:2914: checking for srcsrpy in -lsrc" >&5
2864
ac_lib_var=`echo src'_'srcsrpy | sed 'y%./+-%__p_%'`
2914
ac_lib_var=`echo src'_'srcsrpy | sed 'y%./+-%__p_%'`
2865
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2915
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2866
  echo $ac_n "(cached) $ac_c" 1>&6
2916
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 2868-2874 Link Here
2868
  ac_save_LIBS="$LIBS"
2918
  ac_save_LIBS="$LIBS"
2869
LIBS="-lsrc  $LIBS"
2919
LIBS="-lsrc  $LIBS"
2870
cat > conftest.$ac_ext <<EOF
2920
cat > conftest.$ac_ext <<EOF
2871
#line 2872 "configure"
2921
#line 2922 "configure"
2872
#include "confdefs.h"
2922
#include "confdefs.h"
2873
/* Override any gcc2 internal prototype to avoid an error.  */
2923
/* Override any gcc2 internal prototype to avoid an error.  */
2874
/* We use char because int might match the return type of a gcc2
2924
/* We use char because int might match the return type of a gcc2
Lines 2879-2885 Link Here
2879
srcsrpy()
2929
srcsrpy()
2880
; return 0; }
2930
; return 0; }
2881
EOF
2931
EOF
2882
if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2932
if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2883
  rm -rf conftest*
2933
  rm -rf conftest*
2884
  eval "ac_cv_lib_$ac_lib_var=yes"
2934
  eval "ac_cv_lib_$ac_lib_var=yes"
2885
else
2935
else
Lines 2916-2927 Link Here
2916
2966
2917
if test "$krb4" != no; then
2967
if test "$krb4" != no; then
2918
	echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2968
	echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2919
echo "configure:2920: checking for gethostbyname" >&5
2969
echo "configure:2970: checking for gethostbyname" >&5
2920
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2970
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2921
  echo $ac_n "(cached) $ac_c" 1>&6
2971
  echo $ac_n "(cached) $ac_c" 1>&6
2922
else
2972
else
2923
  cat > conftest.$ac_ext <<EOF
2973
  cat > conftest.$ac_ext <<EOF
2924
#line 2925 "configure"
2974
#line 2975 "configure"
2925
#include "confdefs.h"
2975
#include "confdefs.h"
2926
/* System header to define __stub macros and hopefully few prototypes,
2976
/* System header to define __stub macros and hopefully few prototypes,
2927
    which can conflict with char gethostbyname(); below.  */
2977
    which can conflict with char gethostbyname(); below.  */
Lines 2944-2950 Link Here
2944
2994
2945
; return 0; }
2995
; return 0; }
2946
EOF
2996
EOF
2947
if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2997
if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2948
  rm -rf conftest*
2998
  rm -rf conftest*
2949
  eval "ac_cv_func_gethostbyname=yes"
2999
  eval "ac_cv_func_gethostbyname=yes"
2950
else
3000
else
Lines 2962-2968 Link Here
2962
else
3012
else
2963
  echo "$ac_t""no" 1>&6
3013
  echo "$ac_t""no" 1>&6
2964
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3014
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2965
echo "configure:2966: checking for gethostbyname in -lnsl" >&5
3015
echo "configure:3016: checking for gethostbyname in -lnsl" >&5
2966
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3016
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2967
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3017
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2968
  echo $ac_n "(cached) $ac_c" 1>&6
3018
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 2970-2976 Link Here
2970
  ac_save_LIBS="$LIBS"
3020
  ac_save_LIBS="$LIBS"
2971
LIBS="-lnsl  $LIBS"
3021
LIBS="-lnsl  $LIBS"
2972
cat > conftest.$ac_ext <<EOF
3022
cat > conftest.$ac_ext <<EOF
2973
#line 2974 "configure"
3023
#line 3024 "configure"
2974
#include "confdefs.h"
3024
#include "confdefs.h"
2975
/* Override any gcc2 internal prototype to avoid an error.  */
3025
/* Override any gcc2 internal prototype to avoid an error.  */
2976
/* We use char because int might match the return type of a gcc2
3026
/* We use char because int might match the return type of a gcc2
Lines 2981-2987 Link Here
2981
gethostbyname()
3031
gethostbyname()
2982
; return 0; }
3032
; return 0; }
2983
EOF
3033
EOF
2984
if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3034
if { (eval echo configure:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2985
  rm -rf conftest*
3035
  rm -rf conftest*
2986
  eval "ac_cv_lib_$ac_lib_var=yes"
3036
  eval "ac_cv_lib_$ac_lib_var=yes"
2987
else
3037
else
Lines 3011-3022 Link Here
3011
fi
3061
fi
3012
3062
3013
echo $ac_n "checking for socket""... $ac_c" 1>&6
3063
echo $ac_n "checking for socket""... $ac_c" 1>&6
3014
echo "configure:3015: checking for socket" >&5
3064
echo "configure:3065: checking for socket" >&5
3015
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3065
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3016
  echo $ac_n "(cached) $ac_c" 1>&6
3066
  echo $ac_n "(cached) $ac_c" 1>&6
3017
else
3067
else
3018
  cat > conftest.$ac_ext <<EOF
3068
  cat > conftest.$ac_ext <<EOF
3019
#line 3020 "configure"
3069
#line 3070 "configure"
3020
#include "confdefs.h"
3070
#include "confdefs.h"
3021
/* System header to define __stub macros and hopefully few prototypes,
3071
/* System header to define __stub macros and hopefully few prototypes,
3022
    which can conflict with char socket(); below.  */
3072
    which can conflict with char socket(); below.  */
Lines 3039-3045 Link Here
3039
3089
3040
; return 0; }
3090
; return 0; }
3041
EOF
3091
EOF
3042
if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3092
if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3043
  rm -rf conftest*
3093
  rm -rf conftest*
3044
  eval "ac_cv_func_socket=yes"
3094
  eval "ac_cv_func_socket=yes"
3045
else
3095
else
Lines 3057-3063 Link Here
3057
else
3107
else
3058
  echo "$ac_t""no" 1>&6
3108
  echo "$ac_t""no" 1>&6
3059
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3109
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3060
echo "configure:3061: checking for socket in -lsocket" >&5
3110
echo "configure:3111: checking for socket in -lsocket" >&5
3061
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3111
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3062
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3112
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3063
  echo $ac_n "(cached) $ac_c" 1>&6
3113
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3065-3071 Link Here
3065
  ac_save_LIBS="$LIBS"
3115
  ac_save_LIBS="$LIBS"
3066
LIBS="-lsocket  $LIBS"
3116
LIBS="-lsocket  $LIBS"
3067
cat > conftest.$ac_ext <<EOF
3117
cat > conftest.$ac_ext <<EOF
3068
#line 3069 "configure"
3118
#line 3119 "configure"
3069
#include "confdefs.h"
3119
#include "confdefs.h"
3070
/* Override any gcc2 internal prototype to avoid an error.  */
3120
/* Override any gcc2 internal prototype to avoid an error.  */
3071
/* We use char because int might match the return type of a gcc2
3121
/* We use char because int might match the return type of a gcc2
Lines 3076-3082 Link Here
3076
socket()
3126
socket()
3077
; return 0; }
3127
; return 0; }
3078
EOF
3128
EOF
3079
if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3129
if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3080
  rm -rf conftest*
3130
  rm -rf conftest*
3081
  eval "ac_cv_lib_$ac_lib_var=yes"
3131
  eval "ac_cv_lib_$ac_lib_var=yes"
3082
else
3132
else
Lines 3106-3112 Link Here
3106
fi
3156
fi
3107
3157
3108
echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6
3158
echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6
3109
echo "configure:3110: checking for compile in -lgen" >&5
3159
echo "configure:3160: checking for compile in -lgen" >&5
3110
ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'`
3160
ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'`
3111
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3161
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3112
  echo $ac_n "(cached) $ac_c" 1>&6
3162
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3114-3120 Link Here
3114
  ac_save_LIBS="$LIBS"
3164
  ac_save_LIBS="$LIBS"
3115
LIBS="-lgen  $LIBS"
3165
LIBS="-lgen  $LIBS"
3116
cat > conftest.$ac_ext <<EOF
3166
cat > conftest.$ac_ext <<EOF
3117
#line 3118 "configure"
3167
#line 3168 "configure"
3118
#include "confdefs.h"
3168
#include "confdefs.h"
3119
/* Override any gcc2 internal prototype to avoid an error.  */
3169
/* Override any gcc2 internal prototype to avoid an error.  */
3120
/* We use char because int might match the return type of a gcc2
3170
/* We use char because int might match the return type of a gcc2
Lines 3125-3131 Link Here
3125
compile()
3175
compile()
3126
; return 0; }
3176
; return 0; }
3127
EOF
3177
EOF
3128
if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3178
if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3129
  rm -rf conftest*
3179
  rm -rf conftest*
3130
  eval "ac_cv_lib_$ac_lib_var=yes"
3180
  eval "ac_cv_lib_$ac_lib_var=yes"
3131
else
3181
else
Lines 3160-3166 Link Here
3160
	LDFLAGS="$LDFLAGS -L$krb4/lib"
3210
	LDFLAGS="$LDFLAGS -L$krb4/lib"
3161
fi
3211
fi
3162
echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3212
echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3163
echo "configure:3164: checking for krb_rd_req in -lkrb4" >&5
3213
echo "configure:3214: checking for krb_rd_req in -lkrb4" >&5
3164
ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3214
ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3165
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3215
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3166
  echo $ac_n "(cached) $ac_c" 1>&6
3216
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3168-3174 Link Here
3168
  ac_save_LIBS="$LIBS"
3218
  ac_save_LIBS="$LIBS"
3169
LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
3219
LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
3170
cat > conftest.$ac_ext <<EOF
3220
cat > conftest.$ac_ext <<EOF
3171
#line 3172 "configure"
3221
#line 3222 "configure"
3172
#include "confdefs.h"
3222
#include "confdefs.h"
3173
/* Override any gcc2 internal prototype to avoid an error.  */
3223
/* Override any gcc2 internal prototype to avoid an error.  */
3174
/* We use char because int might match the return type of a gcc2
3224
/* We use char because int might match the return type of a gcc2
Lines 3179-3185 Link Here
3179
krb_rd_req()
3229
krb_rd_req()
3180
; return 0; }
3230
; return 0; }
3181
EOF
3231
EOF
3182
if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3232
if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3183
  rm -rf conftest*
3233
  rm -rf conftest*
3184
  eval "ac_cv_lib_$ac_lib_var=yes"
3234
  eval "ac_cv_lib_$ac_lib_var=yes"
3185
else
3235
else
Lines 3198-3204 Link Here
3198
else
3248
else
3199
  echo "$ac_t""no" 1>&6
3249
  echo "$ac_t""no" 1>&6
3200
echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3250
echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3201
echo "configure:3202: checking for krb_rd_req in -lkrb" >&5
3251
echo "configure:3252: checking for krb_rd_req in -lkrb" >&5
3202
ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3252
ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3203
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3253
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3204
  echo $ac_n "(cached) $ac_c" 1>&6
3254
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3206-3212 Link Here
3206
  ac_save_LIBS="$LIBS"
3256
  ac_save_LIBS="$LIBS"
3207
LIBS="-lkrb -ldes $LIBS"
3257
LIBS="-lkrb -ldes $LIBS"
3208
cat > conftest.$ac_ext <<EOF
3258
cat > conftest.$ac_ext <<EOF
3209
#line 3210 "configure"
3259
#line 3260 "configure"
3210
#include "confdefs.h"
3260
#include "confdefs.h"
3211
/* Override any gcc2 internal prototype to avoid an error.  */
3261
/* Override any gcc2 internal prototype to avoid an error.  */
3212
/* We use char because int might match the return type of a gcc2
3262
/* We use char because int might match the return type of a gcc2
Lines 3217-3223 Link Here
3217
krb_rd_req()
3267
krb_rd_req()
3218
; return 0; }
3268
; return 0; }
3219
EOF
3269
EOF
3220
if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270
if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3221
  rm -rf conftest*
3271
  rm -rf conftest*
3222
  eval "ac_cv_lib_$ac_lib_var=yes"
3272
  eval "ac_cv_lib_$ac_lib_var=yes"
3223
else
3273
else
Lines 3256-3267 Link Here
3256
3306
3257
if test "$hesiod" != no; then
3307
if test "$hesiod" != no; then
3258
	echo $ac_n "checking for res_send""... $ac_c" 1>&6
3308
	echo $ac_n "checking for res_send""... $ac_c" 1>&6
3259
echo "configure:3260: checking for res_send" >&5
3309
echo "configure:3310: checking for res_send" >&5
3260
if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3310
if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3261
  echo $ac_n "(cached) $ac_c" 1>&6
3311
  echo $ac_n "(cached) $ac_c" 1>&6
3262
else
3312
else
3263
  cat > conftest.$ac_ext <<EOF
3313
  cat > conftest.$ac_ext <<EOF
3264
#line 3265 "configure"
3314
#line 3315 "configure"
3265
#include "confdefs.h"
3315
#include "confdefs.h"
3266
/* System header to define __stub macros and hopefully few prototypes,
3316
/* System header to define __stub macros and hopefully few prototypes,
3267
    which can conflict with char res_send(); below.  */
3317
    which can conflict with char res_send(); below.  */
Lines 3284-3290 Link Here
3284
3334
3285
; return 0; }
3335
; return 0; }
3286
EOF
3336
EOF
3287
if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3337
if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3288
  rm -rf conftest*
3338
  rm -rf conftest*
3289
  eval "ac_cv_func_res_send=yes"
3339
  eval "ac_cv_func_res_send=yes"
3290
else
3340
else
Lines 3302-3308 Link Here
3302
else
3352
else
3303
  echo "$ac_t""no" 1>&6
3353
  echo "$ac_t""no" 1>&6
3304
echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3354
echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3305
echo "configure:3306: checking for res_send in -lresolv" >&5
3355
echo "configure:3356: checking for res_send in -lresolv" >&5
3306
ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3356
ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3307
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3357
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3308
  echo $ac_n "(cached) $ac_c" 1>&6
3358
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3310-3316 Link Here
3310
  ac_save_LIBS="$LIBS"
3360
  ac_save_LIBS="$LIBS"
3311
LIBS="-lresolv  $LIBS"
3361
LIBS="-lresolv  $LIBS"
3312
cat > conftest.$ac_ext <<EOF
3362
cat > conftest.$ac_ext <<EOF
3313
#line 3314 "configure"
3363
#line 3364 "configure"
3314
#include "confdefs.h"
3364
#include "confdefs.h"
3315
/* Override any gcc2 internal prototype to avoid an error.  */
3365
/* Override any gcc2 internal prototype to avoid an error.  */
3316
/* We use char because int might match the return type of a gcc2
3366
/* We use char because int might match the return type of a gcc2
Lines 3321-3327 Link Here
3321
res_send()
3371
res_send()
3322
; return 0; }
3372
; return 0; }
3323
EOF
3373
EOF
3324
if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374
if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3325
  rm -rf conftest*
3375
  rm -rf conftest*
3326
  eval "ac_cv_lib_$ac_lib_var=yes"
3376
  eval "ac_cv_lib_$ac_lib_var=yes"
3327
else
3377
else
Lines 3355-3369 Link Here
3355
	LDFLAGS="$LDFLAGS -L$hesiod/lib"
3405
	LDFLAGS="$LDFLAGS -L$hesiod/lib"
3356
fi
3406
fi
3357
echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3407
echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3358
echo "configure:3359: checking for hes_resolve in -lhesiod" >&5
3408
echo "configure:3409: checking for hes_resolve in -lhesiod" >&5
3359
ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3409
ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3360
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3410
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3361
  echo $ac_n "(cached) $ac_c" 1>&6
3411
  echo $ac_n "(cached) $ac_c" 1>&6
3362
else
3412
else
3363
  ac_save_LIBS="$LIBS"
3413
  ac_save_LIBS="$LIBS"
3364
LIBS="-lhesiod  $LIBS"
3414
LIBS="-lhesiod $LIBS $LIBS"
3365
cat > conftest.$ac_ext <<EOF
3415
cat > conftest.$ac_ext <<EOF
3366
#line 3367 "configure"
3416
#line 3417 "configure"
3367
#include "confdefs.h"
3417
#include "confdefs.h"
3368
/* Override any gcc2 internal prototype to avoid an error.  */
3418
/* Override any gcc2 internal prototype to avoid an error.  */
3369
/* We use char because int might match the return type of a gcc2
3419
/* We use char because int might match the return type of a gcc2
Lines 3374-3380 Link Here
3374
hes_resolve()
3424
hes_resolve()
3375
; return 0; }
3425
; return 0; }
3376
EOF
3426
EOF
3377
if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3427
if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3378
  rm -rf conftest*
3428
  rm -rf conftest*
3379
  eval "ac_cv_lib_$ac_lib_var=yes"
3429
  eval "ac_cv_lib_$ac_lib_var=yes"
3380
else
3430
else
Lines 3416-3422 Link Here
3416
		LDFLAGS="$LDFLAGS -L$regex/lib"
3466
		LDFLAGS="$LDFLAGS -L$regex/lib"
3417
	fi
3467
	fi
3418
	echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
3468
	echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
3419
echo "configure:3420: checking for regcomp in -lregex" >&5
3469
echo "configure:3470: checking for regcomp in -lregex" >&5
3420
ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
3470
ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
3421
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3422
  echo $ac_n "(cached) $ac_c" 1>&6
3472
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3424-3430 Link Here
3424
  ac_save_LIBS="$LIBS"
3474
  ac_save_LIBS="$LIBS"
3425
LIBS="-lregex  $LIBS"
3475
LIBS="-lregex  $LIBS"
3426
cat > conftest.$ac_ext <<EOF
3476
cat > conftest.$ac_ext <<EOF
3427
#line 3428 "configure"
3477
#line 3478 "configure"
3428
#include "confdefs.h"
3478
#include "confdefs.h"
3429
/* Override any gcc2 internal prototype to avoid an error.  */
3479
/* Override any gcc2 internal prototype to avoid an error.  */
3430
/* We use char because int might match the return type of a gcc2
3480
/* We use char because int might match the return type of a gcc2
Lines 3435-3441 Link Here
3435
regcomp()
3485
regcomp()
3436
; return 0; }
3486
; return 0; }
3437
EOF
3487
EOF
3438
if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3488
if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3439
  rm -rf conftest*
3489
  rm -rf conftest*
3440
  eval "ac_cv_lib_$ac_lib_var=yes"
3490
  eval "ac_cv_lib_$ac_lib_var=yes"
3441
else
3491
else
Lines 3458-3469 Link Here
3458
3508
3459
else
3509
else
3460
	echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3510
	echo $ac_n "checking for regcomp""... $ac_c" 1>&6
3461
echo "configure:3462: checking for regcomp" >&5
3511
echo "configure:3512: checking for regcomp" >&5
3462
if eval "test \"`echo '$''{'ac_cv_func_regcomp'+set}'`\" = set"; then
3512
if eval "test \"`echo '$''{'ac_cv_func_regcomp'+set}'`\" = set"; then
3463
  echo $ac_n "(cached) $ac_c" 1>&6
3513
  echo $ac_n "(cached) $ac_c" 1>&6
3464
else
3514
else
3465
  cat > conftest.$ac_ext <<EOF
3515
  cat > conftest.$ac_ext <<EOF
3466
#line 3467 "configure"
3516
#line 3517 "configure"
3467
#include "confdefs.h"
3517
#include "confdefs.h"
3468
/* System header to define __stub macros and hopefully few prototypes,
3518
/* System header to define __stub macros and hopefully few prototypes,
3469
    which can conflict with char regcomp(); below.  */
3519
    which can conflict with char regcomp(); below.  */
Lines 3486-3492 Link Here
3486
3536
3487
; return 0; }
3537
; return 0; }
3488
EOF
3538
EOF
3489
if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539
if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3490
  rm -rf conftest*
3540
  rm -rf conftest*
3491
  eval "ac_cv_func_regcomp=yes"
3541
  eval "ac_cv_func_regcomp=yes"
3492
else
3542
else
Lines 3518-3529 Link Here
3518
3568
3519
if test "$ares" != no; then
3569
if test "$ares" != no; then
3520
	echo $ac_n "checking for res_send""... $ac_c" 1>&6
3570
	echo $ac_n "checking for res_send""... $ac_c" 1>&6
3521
echo "configure:3522: checking for res_send" >&5
3571
echo "configure:3572: checking for res_send" >&5
3522
if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3572
if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3523
  echo $ac_n "(cached) $ac_c" 1>&6
3573
  echo $ac_n "(cached) $ac_c" 1>&6
3524
else
3574
else
3525
  cat > conftest.$ac_ext <<EOF
3575
  cat > conftest.$ac_ext <<EOF
3526
#line 3527 "configure"
3576
#line 3577 "configure"
3527
#include "confdefs.h"
3577
#include "confdefs.h"
3528
/* System header to define __stub macros and hopefully few prototypes,
3578
/* System header to define __stub macros and hopefully few prototypes,
3529
    which can conflict with char res_send(); below.  */
3579
    which can conflict with char res_send(); below.  */
Lines 3546-3552 Link Here
3546
3596
3547
; return 0; }
3597
; return 0; }
3548
EOF
3598
EOF
3549
if { (eval echo configure:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3599
if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3550
  rm -rf conftest*
3600
  rm -rf conftest*
3551
  eval "ac_cv_func_res_send=yes"
3601
  eval "ac_cv_func_res_send=yes"
3552
else
3602
else
Lines 3564-3570 Link Here
3564
else
3614
else
3565
  echo "$ac_t""no" 1>&6
3615
  echo "$ac_t""no" 1>&6
3566
echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3616
echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3567
echo "configure:3568: checking for res_send in -lresolv" >&5
3617
echo "configure:3618: checking for res_send in -lresolv" >&5
3568
ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3618
ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3569
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3619
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3570
  echo $ac_n "(cached) $ac_c" 1>&6
3620
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3572-3578 Link Here
3572
  ac_save_LIBS="$LIBS"
3622
  ac_save_LIBS="$LIBS"
3573
LIBS="-lresolv  $LIBS"
3623
LIBS="-lresolv  $LIBS"
3574
cat > conftest.$ac_ext <<EOF
3624
cat > conftest.$ac_ext <<EOF
3575
#line 3576 "configure"
3625
#line 3626 "configure"
3576
#include "confdefs.h"
3626
#include "confdefs.h"
3577
/* Override any gcc2 internal prototype to avoid an error.  */
3627
/* Override any gcc2 internal prototype to avoid an error.  */
3578
/* We use char because int might match the return type of a gcc2
3628
/* We use char because int might match the return type of a gcc2
Lines 3583-3589 Link Here
3583
res_send()
3633
res_send()
3584
; return 0; }
3634
; return 0; }
3585
EOF
3635
EOF
3586
if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636
if { (eval echo configure:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3587
  rm -rf conftest*
3637
  rm -rf conftest*
3588
  eval "ac_cv_lib_$ac_lib_var=yes"
3638
  eval "ac_cv_lib_$ac_lib_var=yes"
3589
else
3639
else
Lines 3617-3623 Link Here
3617
	LDFLAGS="$LDFLAGS -L$ares/lib"
3667
	LDFLAGS="$LDFLAGS -L$ares/lib"
3618
fi
3668
fi
3619
echo $ac_n "checking for ares_init in -lares""... $ac_c" 1>&6
3669
echo $ac_n "checking for ares_init in -lares""... $ac_c" 1>&6
3620
echo "configure:3621: checking for ares_init in -lares" >&5
3670
echo "configure:3671: checking for ares_init in -lares" >&5
3621
ac_lib_var=`echo ares'_'ares_init | sed 'y%./+-%__p_%'`
3671
ac_lib_var=`echo ares'_'ares_init | sed 'y%./+-%__p_%'`
3622
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3672
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623
  echo $ac_n "(cached) $ac_c" 1>&6
3673
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3625-3631 Link Here
3625
  ac_save_LIBS="$LIBS"
3675
  ac_save_LIBS="$LIBS"
3626
LIBS="-lares  $LIBS"
3676
LIBS="-lares  $LIBS"
3627
cat > conftest.$ac_ext <<EOF
3677
cat > conftest.$ac_ext <<EOF
3628
#line 3629 "configure"
3678
#line 3679 "configure"
3629
#include "confdefs.h"
3679
#include "confdefs.h"
3630
/* Override any gcc2 internal prototype to avoid an error.  */
3680
/* Override any gcc2 internal prototype to avoid an error.  */
3631
/* We use char because int might match the return type of a gcc2
3681
/* We use char because int might match the return type of a gcc2
Lines 3636-3642 Link Here
3636
ares_init()
3686
ares_init()
3637
; return 0; }
3687
; return 0; }
3638
EOF
3688
EOF
3639
if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689
if { (eval echo configure:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3640
  rm -rf conftest*
3690
  rm -rf conftest*
3641
  eval "ac_cv_lib_$ac_lib_var=yes"
3691
  eval "ac_cv_lib_$ac_lib_var=yes"
3642
else
3692
else
Lines 3678-3684 Link Here
3678
		LDFLAGS="$LDFLAGS -L$com_err/lib"
3728
		LDFLAGS="$LDFLAGS -L$com_err/lib"
3679
	fi
3729
	fi
3680
	echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
3730
	echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
3681
echo "configure:3682: checking for com_err in -lcom_err" >&5
3731
echo "configure:3732: checking for com_err in -lcom_err" >&5
3682
ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
3732
ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
3683
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3733
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3684
  echo $ac_n "(cached) $ac_c" 1>&6
3734
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3686-3692 Link Here
3686
  ac_save_LIBS="$LIBS"
3736
  ac_save_LIBS="$LIBS"
3687
LIBS="-lcom_err  $LIBS"
3737
LIBS="-lcom_err  $LIBS"
3688
cat > conftest.$ac_ext <<EOF
3738
cat > conftest.$ac_ext <<EOF
3689
#line 3690 "configure"
3739
#line 3740 "configure"
3690
#include "confdefs.h"
3740
#include "confdefs.h"
3691
/* Override any gcc2 internal prototype to avoid an error.  */
3741
/* Override any gcc2 internal prototype to avoid an error.  */
3692
/* We use char because int might match the return type of a gcc2
3742
/* We use char because int might match the return type of a gcc2
Lines 3697-3703 Link Here
3697
com_err()
3747
com_err()
3698
; return 0; }
3748
; return 0; }
3699
EOF
3749
EOF
3700
if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3750
if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3701
  rm -rf conftest*
3751
  rm -rf conftest*
3702
  eval "ac_cv_lib_$ac_lib_var=yes"
3752
  eval "ac_cv_lib_$ac_lib_var=yes"
3703
else
3753
else
Lines 3735-3741 Link Here
3735
		LDFLAGS="$LDFLAGS -L$ss/lib"
3785
		LDFLAGS="$LDFLAGS -L$ss/lib"
3736
	fi
3786
	fi
3737
	echo $ac_n "checking for ss_perror in -lss""... $ac_c" 1>&6
3787
	echo $ac_n "checking for ss_perror in -lss""... $ac_c" 1>&6
3738
echo "configure:3739: checking for ss_perror in -lss" >&5
3788
echo "configure:3789: checking for ss_perror in -lss" >&5
3739
ac_lib_var=`echo ss'_'ss_perror | sed 'y%./+-%__p_%'`
3789
ac_lib_var=`echo ss'_'ss_perror | sed 'y%./+-%__p_%'`
3740
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3790
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3741
  echo $ac_n "(cached) $ac_c" 1>&6
3791
  echo $ac_n "(cached) $ac_c" 1>&6
Lines 3743-3749 Link Here
3743
  ac_save_LIBS="$LIBS"
3793
  ac_save_LIBS="$LIBS"
3744
LIBS="-lss -lcom_err $LIBS"
3794
LIBS="-lss -lcom_err $LIBS"
3745
cat > conftest.$ac_ext <<EOF
3795
cat > conftest.$ac_ext <<EOF
3746
#line 3747 "configure"
3796
#line 3797 "configure"
3747
#include "confdefs.h"
3797
#include "confdefs.h"
3748
/* Override any gcc2 internal prototype to avoid an error.  */
3798
/* Override any gcc2 internal prototype to avoid an error.  */
3749
/* We use char because int might match the return type of a gcc2
3799
/* We use char because int might match the return type of a gcc2
Lines 3754-3760 Link Here
3754
ss_perror()
3804
ss_perror()
3755
; return 0; }
3805
; return 0; }
3756
EOF
3806
EOF
3757
if { (eval echo configure:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3807
if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3758
  rm -rf conftest*
3808
  rm -rf conftest*
3759
  eval "ac_cv_lib_$ac_lib_var=yes"
3809
  eval "ac_cv_lib_$ac_lib_var=yes"
3760
else
3810
else
Lines 3782-3794 Link Here
3782
3832
3783
if test $ac_cv_prog_gcc = yes; then
3833
if test $ac_cv_prog_gcc = yes; then
3784
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3834
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3785
echo "configure:3786: checking whether ${CC-cc} needs -traditional" >&5
3835
echo "configure:3836: checking whether ${CC-cc} needs -traditional" >&5
3786
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3836
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3787
  echo $ac_n "(cached) $ac_c" 1>&6
3837
  echo $ac_n "(cached) $ac_c" 1>&6
3788
else
3838
else
3789
    ac_pattern="Autoconf.*'x'"
3839
    ac_pattern="Autoconf.*'x'"
3790
  cat > conftest.$ac_ext <<EOF
3840
  cat > conftest.$ac_ext <<EOF
3791
#line 3792 "configure"
3841
#line 3842 "configure"
3792
#include "confdefs.h"
3842
#include "confdefs.h"
3793
#include <sgtty.h>
3843
#include <sgtty.h>
3794
Autoconf TIOCGETP
3844
Autoconf TIOCGETP
Lines 3806-3812 Link Here
3806
3856
3807
  if test $ac_cv_prog_gcc_traditional = no; then
3857
  if test $ac_cv_prog_gcc_traditional = no; then
3808
    cat > conftest.$ac_ext <<EOF
3858
    cat > conftest.$ac_ext <<EOF
3809
#line 3810 "configure"
3859
#line 3860 "configure"
3810
#include "confdefs.h"
3860
#include "confdefs.h"
3811
#include <termio.h>
3861
#include <termio.h>
3812
Autoconf TCGETA
3862
Autoconf TCGETA
Lines 3828-3839 Link Here
3828
fi
3878
fi
3829
3879
3830
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3880
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3831
echo "configure:3832: checking for vprintf" >&5
3881
echo "configure:3882: checking for vprintf" >&5
3832
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3882
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3833
  echo $ac_n "(cached) $ac_c" 1>&6
3883
  echo $ac_n "(cached) $ac_c" 1>&6
3834
else
3884
else
3835
  cat > conftest.$ac_ext <<EOF
3885
  cat > conftest.$ac_ext <<EOF
3836
#line 3837 "configure"
3886
#line 3887 "configure"
3837
#include "confdefs.h"
3887
#include "confdefs.h"
3838
/* System header to define __stub macros and hopefully few prototypes,
3888
/* System header to define __stub macros and hopefully few prototypes,
3839
    which can conflict with char vprintf(); below.  */
3889
    which can conflict with char vprintf(); below.  */
Lines 3856-3862 Link Here
3856
3906
3857
; return 0; }
3907
; return 0; }
3858
EOF
3908
EOF
3859
if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3909
if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3860
  rm -rf conftest*
3910
  rm -rf conftest*
3861
  eval "ac_cv_func_vprintf=yes"
3911
  eval "ac_cv_func_vprintf=yes"
3862
else
3912
else
Lines 3880-3891 Link Here
3880
3930
3881
if test "$ac_cv_func_vprintf" != yes; then
3931
if test "$ac_cv_func_vprintf" != yes; then
3882
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3932
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3883
echo "configure:3884: checking for _doprnt" >&5
3933
echo "configure:3934: checking for _doprnt" >&5
3884
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3934
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3885
  echo $ac_n "(cached) $ac_c" 1>&6
3935
  echo $ac_n "(cached) $ac_c" 1>&6
3886
else
3936
else
3887
  cat > conftest.$ac_ext <<EOF
3937
  cat > conftest.$ac_ext <<EOF
3888
#line 3889 "configure"
3938
#line 3939 "configure"
3889
#include "confdefs.h"
3939
#include "confdefs.h"
3890
/* System header to define __stub macros and hopefully few prototypes,
3940
/* System header to define __stub macros and hopefully few prototypes,
3891
    which can conflict with char _doprnt(); below.  */
3941
    which can conflict with char _doprnt(); below.  */
Lines 3908-3914 Link Here
3908
3958
3909
; return 0; }
3959
; return 0; }
3910
EOF
3960
EOF
3911
if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3961
if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3912
  rm -rf conftest*
3962
  rm -rf conftest*
3913
  eval "ac_cv_func__doprnt=yes"
3963
  eval "ac_cv_func__doprnt=yes"
3914
else
3964
else
Lines 3933-3939 Link Here
3933
fi
3983
fi
3934
3984
3935
echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
3985
echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
3936
echo "configure:3937: checking whether getpgrp takes no argument" >&5
3986
echo "configure:3987: checking whether getpgrp takes no argument" >&5
3937
if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
3987
if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
3938
  echo $ac_n "(cached) $ac_c" 1>&6
3988
  echo $ac_n "(cached) $ac_c" 1>&6
3939
else
3989
else
Lines 3941-3947 Link Here
3941
  { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
3991
  { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
3942
else
3992
else
3943
  cat > conftest.$ac_ext <<EOF
3993
  cat > conftest.$ac_ext <<EOF
3944
#line 3945 "configure"
3994
#line 3995 "configure"
3945
#include "confdefs.h"
3995
#include "confdefs.h"
3946
3996
3947
/*
3997
/*
Lines 3996-4002 Link Here
3996
}
4046
}
3997
4047
3998
EOF
4048
EOF
3999
if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4049
if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4000
then
4050
then
4001
  ac_cv_func_getpgrp_void=yes
4051
  ac_cv_func_getpgrp_void=yes
4002
else
4052
else
Lines 4020-4026 Link Here
4020
fi
4070
fi
4021
4071
4022
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4072
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4023
echo "configure:4024: checking whether setpgrp takes no argument" >&5
4073
echo "configure:4074: checking whether setpgrp takes no argument" >&5
4024
if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4074
if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
4025
  echo $ac_n "(cached) $ac_c" 1>&6
4075
  echo $ac_n "(cached) $ac_c" 1>&6
4026
else
4076
else
Lines 4028-4034 Link Here
4028
  { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4078
  { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4029
else
4079
else
4030
  cat > conftest.$ac_ext <<EOF
4080
  cat > conftest.$ac_ext <<EOF
4031
#line 4032 "configure"
4081
#line 4082 "configure"
4032
#include "confdefs.h"
4082
#include "confdefs.h"
4033
4083
4034
#ifdef HAVE_UNISTD_H
4084
#ifdef HAVE_UNISTD_H
Lines 4048-4054 Link Here
4048
}
4098
}
4049
4099
4050
EOF
4100
EOF
4051
if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4101
if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4052
then
4102
then
4053
  ac_cv_func_setpgrp_void=no
4103
  ac_cv_func_setpgrp_void=no
4054
else
4104
else
Lines 4074-4085 Link Here
4074
for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
4124
for ac_func in putenv strchr memcpy memmove waitpid getlogin strerror random
4075
do
4125
do
4076
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4126
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4077
echo "configure:4078: checking for $ac_func" >&5
4127
echo "configure:4128: checking for $ac_func" >&5
4078
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4128
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4079
  echo $ac_n "(cached) $ac_c" 1>&6
4129
  echo $ac_n "(cached) $ac_c" 1>&6
4080
else
4130
else
4081
  cat > conftest.$ac_ext <<EOF
4131
  cat > conftest.$ac_ext <<EOF
4082
#line 4083 "configure"
4132
#line 4133 "configure"
4083
#include "confdefs.h"
4133
#include "confdefs.h"
4084
/* System header to define __stub macros and hopefully few prototypes,
4134
/* System header to define __stub macros and hopefully few prototypes,
4085
    which can conflict with char $ac_func(); below.  */
4135
    which can conflict with char $ac_func(); below.  */
Lines 4102-4108 Link Here
4102
4152
4103
; return 0; }
4153
; return 0; }
4104
EOF
4154
EOF
4105
if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4155
if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4106
  rm -rf conftest*
4156
  rm -rf conftest*
4107
  eval "ac_cv_func_$ac_func=yes"
4157
  eval "ac_cv_func_$ac_func=yes"
4108
else
4158
else
Lines 4129-4140 Link Here
4129
for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
4179
for ac_func in lrand48 gethostid getsid getpgid krb_get_err_text krb_log
4130
do
4180
do
4131
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4181
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4132
echo "configure:4133: checking for $ac_func" >&5
4182
echo "configure:4183: checking for $ac_func" >&5
4133
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4183
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4134
  echo $ac_n "(cached) $ac_c" 1>&6
4184
  echo $ac_n "(cached) $ac_c" 1>&6
4135
else
4185
else
4136
  cat > conftest.$ac_ext <<EOF
4186
  cat > conftest.$ac_ext <<EOF
4137
#line 4138 "configure"
4187
#line 4188 "configure"
4138
#include "confdefs.h"
4188
#include "confdefs.h"
4139
/* System header to define __stub macros and hopefully few prototypes,
4189
/* System header to define __stub macros and hopefully few prototypes,
4140
    which can conflict with char $ac_func(); below.  */
4190
    which can conflict with char $ac_func(); below.  */
Lines 4157-4163 Link Here
4157
4207
4158
; return 0; }
4208
; return 0; }
4159
EOF
4209
EOF
4160
if { (eval echo configure:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4210
if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4161
  rm -rf conftest*
4211
  rm -rf conftest*
4162
  eval "ac_cv_func_$ac_func=yes"
4212
  eval "ac_cv_func_$ac_func=yes"
4163
else
4213
else
(-)zephyr.orig/configure.in (+1 lines)
Lines 75-80 Link Here
75
if test "$hesiod" != "no"; then
75
if test "$hesiod" != "no"; then
76
	AC_CHECK_LIB(44bsd, strerror)
76
	AC_CHECK_LIB(44bsd, strerror)
77
	AC_CHECK_LIB(resolv, res_send)
77
	AC_CHECK_LIB(resolv, res_send)
78
	AC_CHECK_LIB(resolv, __res_send)
78
fi
79
fi
79
80
80
AC_CHECK_LIB(curses, tgetstr, [TLIB=-lcurses], [TLIB=-ltermcap])
81
AC_CHECK_LIB(curses, tgetstr, [TLIB=-lcurses], [TLIB=-ltermcap])
(-)zephyr.orig/h/internal.h (+1 lines)
Lines 97-101 Link Here
97
			    int (*pred) __P((ZNotice_t *, void *)), void *arg,
97
			    int (*pred) __P((ZNotice_t *, void *)), void *arg,
98
			    int timeout));
98
			    int timeout));
99
99
100
void Z_gettimeofday(struct _ZTimeval *ztv, struct timezone *tz);
100
#endif /* __INTERNAL_H__ */
101
#endif /* __INTERNAL_H__ */
101
102
(-)zephyr.orig/h/zephyr/zephyr.h (-3 / +8 lines)
Lines 62-75 Link Here
62
} ZNotice_Kind_t;
62
} ZNotice_Kind_t;
63
extern ZCONST char *ZNoticeKinds[9];
63
extern ZCONST char *ZNoticeKinds[9];
64
64
65
struct _ZTimeval {
66
	int tv_sec;
67
	int tv_usec;
68
};
69
65
/* Unique ID format */
70
/* Unique ID format */
66
typedef struct _ZUnique_Id_t {
71
typedef struct _ZUnique_Id_t {
67
    struct	in_addr zuid_addr;
72
    struct	in_addr zuid_addr;
68
    struct	timeval	tv;
73
    struct	_ZTimeval	tv;
69
} ZUnique_Id_t;
74
} ZUnique_Id_t;
70
75
71
/* Checksum */
76
/* Checksum */
72
typedef unsigned long ZChecksum_t;
77
typedef unsigned int ZChecksum_t;
73
78
74
/* Notice definition */
79
/* Notice definition */
75
typedef struct _ZNotice_t {
80
typedef struct _ZNotice_t {
Lines 78-84 Link Here
78
    ZNotice_Kind_t	z_kind;
83
    ZNotice_Kind_t	z_kind;
79
    ZUnique_Id_t	z_uid;
84
    ZUnique_Id_t	z_uid;
80
#define z_sender_addr	z_uid.zuid_addr
85
#define z_sender_addr	z_uid.zuid_addr
81
    struct		timeval z_time;
86
    struct		_ZTimeval z_time;
82
    unsigned short	z_port;
87
    unsigned short	z_port;
83
    int			z_auth;
88
    int			z_auth;
84
    int			z_checked_auth;
89
    int			z_checked_auth;
(-)zephyr.orig/h/zephyr/zephyr_err.h (+34 lines)
Line 0 Link Here
1
/*
2
 * zephyr_err.h:
3
 * This file is automatically generated; please do not edit it.
4
 */
5
6
#define ZERR_PKTLEN                              (-772103680L)
7
#define ZERR_HEADERLEN                           (-772103679L)
8
#define ZERR_ILLVAL                              (-772103678L)
9
#define ZERR_HMPORT                              (-772103677L)
10
#define ZERR_PORTINUSE                           (-772103676L)
11
#define ZERR_BADPKT                              (-772103675L)
12
#define ZERR_VERS                                (-772103674L)
13
#define ZERR_NOPORT                              (-772103673L)
14
#define ZERR_NONOTICE                            (-772103672L)
15
#define ZERR_QLEN                                (-772103671L)
16
#define ZERR_HMDEAD                              (-772103670L)
17
#define ZERR_INTERNAL                            (-772103669L)
18
#define ZERR_NOLOCATIONS                         (-772103668L)
19
#define ZERR_NOMORELOCS                          (-772103667L)
20
#define ZERR_FIELDLEN                            (-772103666L)
21
#define ZERR_BADFIELD                            (-772103665L)
22
#define ZERR_SERVNAK                             (-772103664L)
23
#define ZERR_AUTHFAIL                            (-772103663L)
24
#define ZERR_LOGINFAIL                           (-772103662L)
25
#define ZERR_NOSUBSCRIPTIONS                     (-772103661L)
26
#define ZERR_NOMORESUBSCRIPTIONS                 (-772103660L)
27
#define ZERR_TOOMANYSUBS                         (-772103659L)
28
#define ZERR_EOF                                 (-772103658L)
29
extern void initialize_zeph_error_table(void);
30
#define ERROR_TABLE_BASE_zeph (-772103680L)
31
32
/* for compatibility with older versions... */
33
#define init_zeph_err_tbl initialize_zeph_error_table
34
#define zeph_err_base ERROR_TABLE_BASE_zeph
(-)zephyr.orig/lib/Makefile.in (-6 / +14 lines)
Lines 8-15 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
LIBS=@LIBS@
13
14
14
srcdir=@srcdir@
15
srcdir=@srcdir@
15
top_srcdir=@top_srcdir@
16
top_srcdir=@top_srcdir@
Lines 18-26 Link Here
18
CC=@CC@
19
CC=@CC@
19
INSTALL=@INSTALL@
20
INSTALL=@INSTALL@
20
RANLIB=@RANLIB@
21
RANLIB=@RANLIB@
21
22
FPIC=
23
DEBUG=-O
22
CPPFLAGS=@CPPFLAGS@
24
CPPFLAGS=@CPPFLAGS@
23
CFLAGS=@CFLAGS@
25
CFLAGS=@CFLAGS@ ${DEBUG} ${FPIC}
24
ALL_CFLAGS=${CFLAGS} -DSYSCONFDIR=\"${sysconfdir}\" -I${top_srcdir}/h \
26
ALL_CFLAGS=${CFLAGS} -DSYSCONFDIR=\"${sysconfdir}\" -I${top_srcdir}/h \
25
	-I${BUILDTOP}/h ${CPPFLAGS}
27
	-I${BUILDTOP}/h ${CPPFLAGS}
26
28
Lines 34-45 Link Here
34
	ZSendPkt.o ZSendRaw.o ZSendRLst.o ZSetDest.o ZSetFD.o ZSetSrv.o \
36
	ZSendPkt.o ZSendRaw.o ZSendRLst.o ZSetDest.o ZSetFD.o ZSetSrv.o \
35
	ZSubs.o ZVariables.o ZWait4Not.o Zinternal.o
37
	ZSubs.o ZVariables.o ZWait4Not.o Zinternal.o
36
38
37
all: libzephyr.a
39
LIBEXT=a
40
all: libzephyr.$(LIBEXT)
38
41
39
libzephyr.a: ${OBJS}
42
libzephyr.a: ${OBJS}
40
	ar cru $@ ${OBJS}
43
	ar cru $@ ${OBJS}
41
	${RANLIB} $@
44
	${RANLIB} $@
42
45
46
libzephyr.so: $(OBJS)
47
	gcc  -shared -Wl,-soname -Wl,libzephyr.so.$(SONAME) -o libzephyr.so $(OBJS) $(LIBS)  -lcom_err  
48
43
zephyr_err.c ${BUILDTOP}/h/zephyr/zephyr_err.h: zephyr_err.et
49
zephyr_err.c ${BUILDTOP}/h/zephyr/zephyr_err.h: zephyr_err.et
44
	compile_et ${srcdir}/zephyr_err.et
50
	compile_et ${srcdir}/zephyr_err.et
45
	mv zephyr_err.h ${BUILDTOP}/h/zephyr
51
	mv zephyr_err.h ${BUILDTOP}/h/zephyr
Lines 49-56 Link Here
49
55
50
check:
56
check:
51
57
52
install: libzephyr.a
58
install: libzephyr.$(LIBEXT)
53
	${INSTALL} -m 644 libzephyr.a ${DESTDIR}${libdir}
59
	-${INSTALL} -m 644 libzephyr.a ${DESTDIR}${libdir}
60
	-$(INSTALL) -m 644 libzephyr.so ${DESTDIR}$(libdir)
61
54
	${INSTALL} -m 644 ${srcdir}/zephyr.1 ${DESTDIR}${mandir}/man1
62
	${INSTALL} -m 644 ${srcdir}/zephyr.1 ${DESTDIR}${mandir}/man1
55
63
56
clean:
64
clean:
(-)zephyr.orig/lib/ZOpenPort.c (-8 lines)
Lines 22-30 Link Here
22
{
22
{
23
    struct sockaddr_in bindin;
23
    struct sockaddr_in bindin;
24
    int len;
24
    int len;
25
#ifdef SO_BSDCOMPAT
26
    int on = 1;
27
#endif
28
    
25
    
29
    (void) ZClosePort();
26
    (void) ZClosePort();
30
27
Lines 33-43 Link Here
33
	return (errno);
30
	return (errno);
34
    }
31
    }
35
32
36
#ifdef SO_BSDCOMPAT
37
    /* Prevent Linux from giving us socket errors we don't care about. */
38
    setsockopt(__Zephyr_fd, SOL_SOCKET, SO_BSDCOMPAT, &on, sizeof(on));
39
#endif
40
41
    bindin.sin_family = AF_INET;
33
    bindin.sin_family = AF_INET;
42
34
43
    if (port && *port)
35
    if (port && *port)
(-)zephyr.orig/lib/ZVariables.c (-1 / +1 lines)
Lines 36-42 Link Here
36
    if ((ret = get_varval(varfile, var)) != ZERR_NONE)
36
    if ((ret = get_varval(varfile, var)) != ZERR_NONE)
37
	return (ret);
37
	return (ret);
38
38
39
    sprintf(varfile, "%s/zephyr.vars", SYSCONFDIR);
39
    sprintf(varfile, "%s/zephyr/zephyr.vars", SYSCONFDIR);
40
    return (get_varval(varfile, var));
40
    return (get_varval(varfile, var));
41
}
41
}
42
42
(-)zephyr.orig/lib/Zinternal.c (-3 / +11 lines)
Lines 575-580 Link Here
575
    return (ZERR_NONE);
575
    return (ZERR_NONE);
576
}
576
}
577
577
578
void Z_gettimeofday(struct _ZTimeval *ztv, struct timezone *tz)
579
{
580
        struct timeval tv;
581
        (void) gettimeofday(&tv, tz); /* yeah, yeah, I know */
582
        ztv->tv_sec=tv.tv_sec;
583
        ztv->tv_usec=tv.tv_usec;
584
}
585
578
Code_t Z_FormatHeader(notice, buffer, buffer_len, len, cert_routine)
586
Code_t Z_FormatHeader(notice, buffer, buffer_len, len, cert_routine)
579
    ZNotice_t *notice;
587
    ZNotice_t *notice;
580
    char *buffer;
588
    char *buffer;
Lines 604-610 Link Here
604
612
605
    notice->z_multinotice = "";
613
    notice->z_multinotice = "";
606
    
614
    
607
    (void) gettimeofday(&notice->z_uid.tv, (struct timezone *)0);
615
    (void) Z_gettimeofday(&notice->z_uid.tv, (struct timezone *)0);
608
    notice->z_uid.tv.tv_sec = htonl((u_long) notice->z_uid.tv.tv_sec);
616
    notice->z_uid.tv.tv_sec = htonl((u_long) notice->z_uid.tv.tv_sec);
609
    notice->z_uid.tv.tv_usec = htonl((u_long) notice->z_uid.tv.tv_usec);
617
    notice->z_uid.tv.tv_usec = htonl((u_long) notice->z_uid.tv.tv_usec);
610
    
618
    
Lines 873-880 Link Here
873
	(void) sprintf(multi, "%d/%d", offset, notice->z_message_len);
881
	(void) sprintf(multi, "%d/%d", offset, notice->z_message_len);
874
	partnotice.z_multinotice = multi;
882
	partnotice.z_multinotice = multi;
875
	if (offset > 0) {
883
	if (offset > 0) {
876
	    (void) gettimeofday(&partnotice.z_uid.tv,
884
	    (void) Z_gettimeofday(&partnotice.z_uid.tv,
877
				(struct timezone *)0);
885
				  (struct timezone *)0);
878
	    partnotice.z_uid.tv.tv_sec =
886
	    partnotice.z_uid.tv.tv_sec =
879
		htonl((u_long) partnotice.z_uid.tv.tv_sec);
887
		htonl((u_long) partnotice.z_uid.tv.tv_sec);
880
	    partnotice.z_uid.tv.tv_usec =
888
	    partnotice.z_uid.tv.tv_usec =
(-)zephyr.orig/libdyn/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
13
14
srcdir=@srcdir@
14
srcdir=@srcdir@
(-)zephyr.orig/server/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
13
14
srcdir=@srcdir@
14
srcdir=@srcdir@
(-)zephyr.orig/server/kopt.c (-5 / +12 lines)
Lines 36-41 Link Here
36
36
37
#define		KRB_PROT_VERSION 	4
37
#define		KRB_PROT_VERSION 	4
38
38
39
#define     swap_u_long(x) {\
40
 unsigned KRB4_32   _krb_swap_tmp[4];\
41
 swab((char *)  &x,    ((char *)  _krb_swap_tmp) +2 ,2); \
42
 swab(((char *) &x) +2,((char *)  _krb_swap_tmp),2); \
43
 x = _krb_swap_tmp[0];   \
44
                           }
45
39
/* Message types , always leave lsb for byte order */
46
/* Message types , always leave lsb for byte order */
40
47
41
#define		AUTH_MSG_KDC_REQUEST			 1<<1
48
#define		AUTH_MSG_KDC_REQUEST			 1<<1
Lines 232-242 Link Here
232
int
239
int
233
krb_rd_req(authent,service,instance,from_addr,ad,fn)
240
krb_rd_req(authent,service,instance,from_addr,ad,fn)
234
    KTEXT authent;			/* The received message */
241
    KTEXT authent;			/* The received message */
235
    char *service;			/* Service name */
242
    char  *service;			/* Service name */
236
    char *instance;			/* Service instance */
243
    char  *instance;			/* Service instance */
237
    unsigned KRB_INT32 from_addr;	/* Net address of originating host */
244
    unsigned KRB4_32 from_addr;	/* Net address of originating host */
238
    AUTH_DAT *ad;			/* Structure to be filled in */
245
    AUTH_DAT  *ad;			/* Structure to be filled in */
239
    char *fn;				/* Filename to get keys from */
246
    char  *fn;				/* Filename to get keys from */
240
{
247
{
241
    KTEXT_ST ticket;     /* Temp storage for ticket */
248
    KTEXT_ST ticket;     /* Temp storage for ticket */
242
    KTEXT tkt = &ticket;
249
    KTEXT tkt = &ticket;
(-)zephyr.orig/server/main.c (-4 lines)
Lines 91-99 Link Here
91
char *programname;			/* set to the basename of argv[0] */
91
char *programname;			/* set to the basename of argv[0] */
92
char myname[MAXHOSTNAMELEN];		/* my host name */
92
char myname[MAXHOSTNAMELEN];		/* my host name */
93
93
94
#ifndef HAVE_HESIOD
95
char list_file[128];
94
char list_file[128];
96
#endif
97
#ifdef HAVE_KRB4
95
#ifdef HAVE_KRB4
98
char srvtab_file[128];
96
char srvtab_file[128];
99
char my_realm[REALM_SZ];
97
char my_realm[REALM_SZ];
Lines 139-147 Link Here
139
    extern char *optarg;
137
    extern char *optarg;
140
    extern int optind;
138
    extern int optind;
141
139
142
#ifndef HAVE_HESIOD
143
    sprintf(list_file, "%s/zephyr/%s", SYSCONFDIR, SERVER_LIST_FILE);
140
    sprintf(list_file, "%s/zephyr/%s", SYSCONFDIR, SERVER_LIST_FILE);
144
#endif
145
#ifdef HAVE_KRB4
141
#ifdef HAVE_KRB4
146
    sprintf(srvtab_file, "%s/zephyr/%s", SYSCONFDIR, ZEPHYR_SRVTAB);
142
    sprintf(srvtab_file, "%s/zephyr/%s", SYSCONFDIR, ZEPHYR_SRVTAB);
147
    sprintf(tkt_file, "%s/zephyr/%s", SYSCONFDIR, ZEPHYR_TKFILE);
143
    sprintf(tkt_file, "%s/zephyr/%s", SYSCONFDIR, ZEPHYR_TKFILE);
(-)zephyr.orig/server/realm.c (-2 / +6 lines)
Lines 619-630 Link Here
619
	zdbug((LOG_DEBUG, "rlm_deathgram: suggesting %s to %s", 
619
	zdbug((LOG_DEBUG, "rlm_deathgram: suggesting %s to %s", 
620
	       (server) ? server->addr_str : "nothing", realm->name));
620
	       (server) ? server->addr_str : "nothing", realm->name));
621
621
622
#ifdef HAVE_KRB4
622
	if (!ticket_lookup(realm->name))
623
	if (!ticket_lookup(realm->name))
623
	    if ((retval = ticket_retrieve(realm)) != ZERR_NONE) {
624
	    if ((retval = ticket_retrieve(realm)) != ZERR_NONE) {
624
		syslog(LOG_WARNING, "rlm_deathgram failed: %s", 
625
		syslog(LOG_WARNING, "rlm_deathgram failed: %s", 
625
		       error_message(retval));
626
		       error_message(retval));
626
		return;
627
		return;
627
	    }
628
	    }
629
#endif
628
630
629
	if ((retval = ZFormatNotice(&snotice, &pack, &packlen, ZAUTH)) 
631
	if ((retval = ZFormatNotice(&snotice, &pack, &packlen, ZAUTH)) 
630
	    != ZERR_NONE) 
632
	    != ZERR_NONE) 
Lines 683-694 Link Here
683
	    snotice.z_message = NULL;
685
	    snotice.z_message = NULL;
684
	    snotice.z_message_len = 0;
686
	    snotice.z_message_len = 0;
685
687
688
#ifdef HAVE_KRB4
686
	    if (!ticket_lookup(realm->name))
689
	    if (!ticket_lookup(realm->name))
687
		if ((retval = ticket_retrieve(realm)) != ZERR_NONE) {
690
		if ((retval = ticket_retrieve(realm)) != ZERR_NONE) {
688
		    syslog(LOG_WARNING, "rlm_wakeup failed: %s", 
691
		    syslog(LOG_WARNING, "rlm_wakeup failed: %s", 
689
			   error_message(retval));
692
			   error_message(retval));
690
		    continue;
693
		    continue;
691
		}
694
		}
695
#endif
692
696
693
	    if ((retval = ZFormatNotice(&snotice, &pack, &packlen, ZAUTH)) 
697
	    if ((retval = ZFormatNotice(&snotice, &pack, &packlen, ZAUTH)) 
694
		!= ZERR_NONE) 
698
		!= ZERR_NONE) 
Lines 1227-1234 Link Here
1227
	    (void) sprintf(multi, "%d/%d", offset+origoffset, origlen);
1231
	    (void) sprintf(multi, "%d/%d", offset+origoffset, origlen);
1228
	    partnotice.z_multinotice = multi;
1232
	    partnotice.z_multinotice = multi;
1229
	    if (offset > 0) {
1233
	    if (offset > 0) {
1230
		(void) gettimeofday(&partnotice.z_uid.tv, 
1234
		(void) Z_gettimeofday(&partnotice.z_uid.tv, 
1231
				    (struct timezone *)0);
1235
				      (struct timezone *)0);
1232
		partnotice.z_uid.tv.tv_sec = htonl((u_long) 
1236
		partnotice.z_uid.tv.tv_sec = htonl((u_long) 
1233
						   partnotice.z_uid.tv.tv_sec);
1237
						   partnotice.z_uid.tv.tv_sec);
1234
		partnotice.z_uid.tv.tv_usec = 
1238
		partnotice.z_uid.tv.tv_usec = 
(-)zephyr.orig/server/server.c (-15 / +8 lines)
Lines 92-101 Link Here
92
#endif
92
#endif
93
93
94
static struct in_addr *get_server_addrs __P((int *number));
94
static struct in_addr *get_server_addrs __P((int *number));
95
#ifndef HAVE_HESIOD
96
static char **get_server_list __P((char *file));
95
static char **get_server_list __P((char *file));
97
static void free_server_list __P((char **list));
96
static void free_server_list __P((char **list));
98
#endif
99
97
100
static Unacked *srv_nacktab[SRV_NACKTAB_HASHSIZE];
98
static Unacked *srv_nacktab[SRV_NACKTAB_HASHSIZE];
101
Server *otherservers;		/* points to an array of the known
99
Server *otherservers;		/* points to an array of the known
Lines 981-1002 Link Here
981
    int *number; /* RETURN */
979
    int *number; /* RETURN */
982
{
980
{
983
    int i;
981
    int i;
984
    char **server_hosts;
982
    char **server_hosts = NULL;
983
    char **server_hosts_free = NULL;
985
    char **cpp;
984
    char **cpp;
986
    struct in_addr *addrs;
985
    struct in_addr *addrs;
987
    struct in_addr *addr;
986
    struct in_addr *addr;
988
    struct hostent *hp;
987
    struct hostent *hp;
989
988
989
    server_hosts = get_server_list(list_file);
990
    server_hosts_free = server_hosts;
990
#ifdef HAVE_HESIOD
991
#ifdef HAVE_HESIOD
991
    /* get the names from Hesiod */
992
    server_hosts = hes_resolve("zephyr","sloc");
993
    if (!server_hosts)
992
    if (!server_hosts)
994
	return NULL;
993
      server_hosts = hes_resolve("zephyr","sloc");
995
#else
994
#endif
996
    server_hosts = get_server_list(list_file);
997
    if (!server_hosts)
995
    if (!server_hosts)
998
	return NULL;
996
	return NULL;
999
#endif
1000
    /* count up */
997
    /* count up */
1001
    i = 0;
998
    i = 0;
1002
    for (cpp = server_hosts; *cpp; cpp++)
999
    for (cpp = server_hosts; *cpp; cpp++)
Lines 1015-1028 Link Here
1015
	}
1012
	}
1016
    }
1013
    }
1017
    *number = i;
1014
    *number = i;
1018
#ifndef HAVE_HESIOD
1015
    if (server_hosts_free)
1019
    free_server_list(server_hosts);
1016
      free_server_list(server_hosts_free);
1020
#endif
1021
    return addrs;
1017
    return addrs;
1022
}
1018
}
1023
1019
1024
#ifndef HAVE_HESIOD
1025
1026
static int nhosts = 0;
1020
static int nhosts = 0;
1027
1021
1028
/*
1022
/*
Lines 1090-1096 Link Here
1090
    free(orig_list);
1084
    free(orig_list);
1091
    return;
1085
    return;
1092
}
1086
}
1093
#endif
1094
1087
1095
/*
1088
/*
1096
 * initialize the server structure for address addr, and set a timer
1089
 * initialize the server structure for address addr, and set a timer
(-)zephyr.orig/server/zserver.h (-4 / +2 lines)
Lines 269-276 Link Here
269
Sched *check_key_sched_cache __P((des_cblock key));
269
Sched *check_key_sched_cache __P((des_cblock key));
270
void add_to_key_sched_cache __P((des_cblock key, Sched *sched));
270
void add_to_key_sched_cache __P((des_cblock key, Sched *sched));
271
int krb_set_key __P((char *key, int cvt));
271
int krb_set_key __P((char *key, int cvt));
272
int krb_rd_req __P((KTEXT authent, char *service, char *instance,
272
/* int krb_rd_req __P((KTEXT authent, char *service, char *instance,
273
		    unsigned KRB_INT32 from_addr, AUTH_DAT *ad, char *fn));
273
		    unsigned KRB_INT32 from_addr, AUTH_DAT *ad, char *fn)); */
274
int krb_find_ticket __P((KTEXT authent, KTEXT ticket));
274
int krb_find_ticket __P((KTEXT authent, KTEXT ticket));
275
int krb_get_lrealm __P((char *r, int n));
275
int krb_get_lrealm __P((char *r, int n));
276
#endif
276
#endif
Lines 354-362 Link Here
354
extern int nfds;			/* number to look at in select() */
354
extern int nfds;			/* number to look at in select() */
355
extern int zdebug;
355
extern int zdebug;
356
extern char myname[];			/* domain name of this host */
356
extern char myname[];			/* domain name of this host */
357
#ifndef HAVE_HESIOD
358
extern char list_file[];
357
extern char list_file[];
359
#endif
360
#ifdef HAVE_KRB4
358
#ifdef HAVE_KRB4
361
extern char srvtab_file[];
359
extern char srvtab_file[];
362
extern char my_realm[];
360
extern char my_realm[];
(-)zephyr.orig/server/zsrv_conf.h (-2 lines)
Lines 16-24 Link Here
16
16
17
/* Path names are relative to CONFDIR, except for the class registry. */
17
/* Path names are relative to CONFDIR, except for the class registry. */
18
18
19
#ifndef HAVE_HESIOD
20
#define SERVER_LIST_FILE	"server.list"
19
#define SERVER_LIST_FILE	"server.list"
21
#endif
22
#define REALM_LIST_FILE		"realm.list"
20
#define REALM_LIST_FILE		"realm.list"
23
#ifdef HAVE_KRB4
21
#ifdef HAVE_KRB4
24
#define ZEPHYR_SRVTAB		"srvtab"
22
#define ZEPHYR_SRVTAB		"srvtab"
(-)zephyr.orig/zhm/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
13
14
srcdir=@srcdir@
14
srcdir=@srcdir@
(-)zephyr.orig/zhm/zhm.c (-1 / +1 lines)
Lines 22-28 Link Here
22
#define srandom srand48
22
#define srandom srand48
23
#endif
23
#endif
24
24
25
#define PIDDIR "/var/athena/"
25
#define PIDDIR "/var/run/"
26
26
27
int hmdebug, rebootflag, noflushflag, errflg, dieflag, inetd, oldpid, nofork;
27
int hmdebug, rebootflag, noflushflag, errflg, dieflag, inetd, oldpid, nofork;
28
int no_server = 1, nservchang, nserv, nclt;
28
int no_server = 1, nservchang, nserv, nclt;
(-)zephyr.orig/zwgc/Makefile.in (-1 / +1 lines)
Lines 8-14 Link Here
8
lsbindir=@lsbindir@
8
lsbindir=@lsbindir@
9
9
10
includedir=${prefix}/include
10
includedir=${prefix}/include
11
mandir=${prefix}/man
11
mandir=@mandir@
12
libdir=${exec_prefix}/lib
12
libdir=${exec_prefix}/lib
13
bindir=${exec_prefix}/bin
13
bindir=${exec_prefix}/bin
14
14
(-)zephyr.orig/zwgc/parser.y (-1 / +1 lines)
Lines 230-236 Link Here
230
					  reverse_list_of_nodes($3));
230
					  reverse_list_of_nodes($3));
231
		  $$->next = $1;
231
		  $$->next = $1;
232
	          $$ = reverse_list_of_nodes($$); }
232
	          $$ = reverse_list_of_nodes($$); }
233
233
          ;
234
/* elseifparts needs to be reversed before using... */
234
/* elseifparts needs to be reversed before using... */
235
elseifparts : /* empty */
235
elseifparts : /* empty */
236
                { $$ = 0; }
236
                { $$ = 0; }
(-)zephyr.orig/zwgc/tty_filter.c (-1 / +8 lines)
Lines 36-43 Link Here
36
36
37
extern int tgetent();
37
extern int tgetent();
38
extern char *tgetstr(),*getenv();
38
extern char *tgetstr(),*getenv();
39
#if 0
39
short ospeed;
40
short ospeed;
40
char PC;
41
char PC;
42
#endif
41
43
42
/* Dictionary naming convention:
44
/* Dictionary naming convention:
43
45
Lines 91-96 Link Here
91
    int ex;
93
    int ex;
92
    string_dictionary_binding *b;
94
    string_dictionary_binding *b;
93
    int isrealtty = string_Eq(drivername, "tty");
95
    int isrealtty = string_Eq(drivername, "tty");
96
#if 0
94
#ifdef HAVE_TERMIOS_H
97
#ifdef HAVE_TERMIOS_H
95
    struct termios tbuf;
98
    struct termios tbuf;
96
99
Lines 100-105 Link Here
100
103
101
    ospeed = (ioctl(0, TIOCGETP, &sgttyb) == 0) ? sgttyb.sg_ospeed : 2400;
104
    ospeed = (ioctl(0, TIOCGETP, &sgttyb) == 0) ? sgttyb.sg_ospeed : 2400;
102
#endif
105
#endif
106
#endif
103
107
104
    if (termcap_dict == (string_dictionary) NULL)
108
    if (termcap_dict == (string_dictionary) NULL)
105
      termcap_dict = string_dictionary_Create(7);
109
      termcap_dict = string_dictionary_Create(7);
Lines 129-136 Link Here
129
	/* We cheat here, and ignore the padding (if any) specified for
133
	/* We cheat here, and ignore the padding (if any) specified for
130
	   the mode-change strings (it's a real pain to do "right") */
134
	   the mode-change strings (it's a real pain to do "right") */
131
135
136
#if 0
132
	tmp = tgetstr("pc", &p);
137
	tmp = tgetstr("pc", &p);
133
	PC = (tmp) ? *tmp : 0;
138
	PC = (tmp) ? *tmp : 0;
139
#endif
134
	if (tmp = tgetstr("md",&p)) {	/* bold ? */
140
	if (tmp = tgetstr("md",&p)) {	/* bold ? */
135
	    EXPAND("B.bold");
141
	    EXPAND("B.bold");
136
	    tmp = tgetstr("me",&p);
142
	    tmp = tgetstr("me",&p);
Lines 321-326 Link Here
321
327
322
	/* Add new block (call it temp) to result: */
328
	/* Add new block (call it temp) to result: */
323
	temp = (tty_str_info *)malloc(sizeof(struct _tty_str_info));
329
	temp = (tty_str_info *)malloc(sizeof(struct _tty_str_info));
330
	*temp = current_mode;
324
	if (last_result_block) {
331
	if (last_result_block) {
325
	    last_result_block->next = temp;
332
	    last_result_block->next = temp;
326
	    last_result_block = temp;
333
	    last_result_block = temp;
Lines 344-356 Link Here
344
	}
351
	}
345
	if (desc->code == DT_STR) {
352
	if (desc->code == DT_STR) {
346
	    /* just combine string info with current mode: */
353
	    /* just combine string info with current mode: */
347
	    *temp = current_mode;
348
	    temp->str = desc->str;
354
	    temp->str = desc->str;
349
	    temp->len = desc->len;
355
	    temp->len = desc->len;
350
	} else if (desc->code == DT_NL) {
356
	} else if (desc->code == DT_NL) {
351
	    /* make the new block a ' ' alignment block with an empty string */
357
	    /* make the new block a ' ' alignment block with an empty string */
352
	    temp->alignment = ' ';
358
	    temp->alignment = ' ';
353
	    temp->len = 0;
359
	    temp->len = 0;
360
	    temp->ignore = 0;
354
	}
361
	}
355
    }
362
    }
356
363
(-)zephyr.orig/zwgc/zwgc.1 (-31 / +31 lines)
Lines 380-386 Link Here
380
.TP
380
.TP
381
.B break
381
.B break
382
Exits the innermost if, case, or while block.
382
Exits the innermost if, case, or while block.
383
.if n .ll +2in
383
.\" .if n .ll +2in
384
.TP
384
.TP
385
\fBcase \fIexpr1\fR [ ((\fBmatch \fIexpr\fR [,\fIexpr ...\fR]) | \fBdefault\fR)\fI commands \fR] ... \fBendcase\fR
385
\fBcase \fIexpr1\fR [ ((\fBmatch \fIexpr\fR [,\fIexpr ...\fR]) | \fBdefault\fR)\fI commands \fR] ... \fBendcase\fR
386
Evaluates \fIexpr1\fR.  Then, each of the match expressions is
386
Evaluates \fIexpr1\fR.  Then, each of the match expressions is
Lines 427-433 Link Here
427
Completes processing of the current notice.  The remainder of the
427
Completes processing of the current notice.  The remainder of the
428
description file is ignored after execution of this command.
428
description file is ignored after execution of this command.
429
.\" hack because the following line otherwise breaks because it is too long.
429
.\" hack because the following line otherwise breaks because it is too long.
430
.if n .ll +2in
430
.\" .if n .ll +2in
431
.TP
431
.TP
432
\fBif \fIexpr1 \fBthen \fIcommands1\fR [\fBelseif \fIexpr2 \fBthen \fIcommands2\fR] ... [\fBelse \fIcommandsn\fR] \fBendif\fR
432
\fBif \fIexpr1 \fBthen \fIcommands1\fR [\fBelseif \fIexpr2 \fBthen \fIcommands2\fR] ... [\fBelse \fIcommandsn\fR] \fBendif\fR
433
If \fIexpr1\fR evaluates to true, execute \fIcommands1\fI, etc. [A conditional
433
If \fIexpr1\fR evaluates to true, execute \fIcommands1\fI, etc. [A conditional
Lines 538-553 Link Here
538
.\" .TQ 15
538
.\" .TQ 15
539
.\" @em
539
.\" @em
540
.\" Emphasis.  Use underline if available, else reverse video.
540
.\" Emphasis.  Use underline if available, else reverse video.
541
.TQ 15
541
.TP
542
@roman
542
@roman
543
Roman (plain) letters (turns off all special modes).
543
Roman (plain) letters (turns off all special modes).
544
.TQ
544
.TP
545
@b or @bold
545
@b or @bold
546
Bold letters.  If not available, reverse video, else underline.
546
Bold letters.  If not available, reverse video, else underline.
547
.TQ
547
.TP
548
@i or @italic
548
@i or @italic
549
Italic letters (underlining, if available).
549
Italic letters (underlining, if available).
550
.TQ
550
.TP
551
@beep
551
@beep
552
"bl" termcap entry, else "^G" (beep the terminal); limited to once per
552
"bl" termcap entry, else "^G" (beep the terminal); limited to once per
553
message.
553
message.
Lines 560-572 Link Here
560
.\" .TQ
560
.\" .TQ
561
.\" @u
561
.\" @u
562
.\" "us"/"ue" termcap entry.
562
.\" "us"/"ue" termcap entry.
563
.TQ
563
.TP
564
@l or @left
564
@l or @left
565
left aligned
565
left aligned
566
.TQ
566
.TP
567
@c or @center
567
@c or @center
568
center aligned
568
center aligned
569
.TQ
569
.TP
570
@r or @right
570
@r or @right
571
right aligned
571
right aligned
572
.RE
572
.RE
Lines 578-611 Link Here
578
formatted according to @ commands embedded in the string.  Supported
578
formatted according to @ commands embedded in the string.  Supported
579
@ commands are:
579
@ commands are:
580
.RS 10
580
.RS 10
581
.TQ 15
581
.TP 15
582
@roman
582
@roman
583
turns off @italic and @bold
583
turns off @italic and @bold
584
.TQ
584
.TP
585
@b or @bold
585
@b or @bold
586
turns on boldface
586
turns on boldface
587
.TQ
587
.TP
588
@i or @italic
588
@i or @italic
589
turns on italics
589
turns on italics
590
.TQ
590
.TP
591
@l or @left
591
@l or @left
592
left aligned
592
left aligned
593
.TQ
593
.TP
594
@c or @center
594
@c or @center
595
center aligned
595
center aligned
596
.TQ
596
.TP
597
@r or @right
597
@r or @right
598
right aligned
598
right aligned
599
.TQ
599
.TP
600
@large
600
@large
601
large type size
601
large type size
602
.TQ
602
.TP
603
@medium
603
@medium
604
medium type size
604
medium type size
605
.TQ
605
.TP
606
@small
606
@small
607
small type size
607
small type size
608
.TQ
608
.TP
609
@beep
609
@beep
610
Ring the X bell (limited to once per message)
610
Ring the X bell (limited to once per message)
611
.TP
611
.TP
Lines 643-661 Link Here
643
.IP
643
.IP
644
Zwgc variables which the X output device reads are:
644
Zwgc variables which the X output device reads are:
645
.RS 10
645
.RS 10
646
.TQ 15
646
.TP 15
647
default_X_geometry
647
default_X_geometry
648
default geometry for notices, set from resources
648
default geometry for notices, set from resources
649
.TQ
649
.TP
650
X_geometry
650
X_geometry
651
overrides geometry in resource file, if set
651
overrides geometry in resource file, if set
652
.TQ
652
.TP
653
default_X_background
653
default_X_background
654
default background color for notices, set from resources
654
default background color for notices, set from resources
655
.TQ
655
.TP
656
X_background
656
X_background
657
overrides bgcolor in resource file, if set
657
overrides bgcolor in resource file, if set
658
.TQ
658
.TP
659
style
659
style
660
style, as described above
660
style, as described above
661
.RE
661
.RE
Lines 1018-1042 Link Here
1018
which case you must get new tickets and then run ``zctl load
1018
which case you must get new tickets and then run ``zctl load
1019
/dev/null''.)
1019
/dev/null''.)
1020
.SH FILES
1020
.SH FILES
1021
.TQ 15
1021
.TP 15
1022
$HOME/.zwgc.desc
1022
$HOME/.zwgc.desc
1023
Default location of user's description file
1023
Default location of user's description file
1024
.TQ
1024
.TP
1025
/usr/athena/share/zephyr/zwgc.desc
1025
/usr/athena/share/zephyr/zwgc.desc
1026
System-wide description file
1026
System-wide description file
1027
.TQ
1027
.TP
1028
/usr/athena/share/zephyr/zwgc_resources
1028
/usr/athena/share/zephyr/zwgc_resources
1029
Default X application resources.
1029
Default X application resources.
1030
.TQ
1030
.TP
1031
$HOME/.zephyr.vars
1031
$HOME/.zephyr.vars
1032
File containing variable definitions
1032
File containing variable definitions
1033
.TQ
1033
.TP
1034
$HOME/.zephyr.subs
1034
$HOME/.zephyr.subs
1035
Supplementary subscription file
1035
Supplementary subscription file
1036
.TQ
1036
.TP
1037
$HOME/.Xresources
1037
$HOME/.Xresources
1038
Standard X resources file
1038
Standard X resources file
1039
.TQ
1039
.TP
1040
$WGFILE or /tmp/wg.\fIuid\fR
1040
$WGFILE or /tmp/wg.\fIuid\fR
1041
File used to store WindowGram port number for other clients
1041
File used to store WindowGram port number for other clients
1042
.SH SEE ALSO
1042
.SH SEE ALSO

Return to bug 112194