]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/configure
* mn10200.md (addsi3, subsi3): Fix thinkos.
[thirdparty/gcc.git] / gcc / configure
CommitLineData
861bb6c1
JL
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
128f7968 4# Generated automatically using autoconf version 2.12
861bb6c1
JL
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-gnu-ld arrange to work with GNU ld."
16ac_help="$ac_help
17 --with-gnu-as arrange to work with GNU as."
18ac_help="$ac_help
19 --with-stabs arrange to use stabs instead of host debug format."
20ac_help="$ac_help
21 --with-elf arrange to use ELF instead of host debug format."
22ac_help="$ac_help
23 --with-local-prefix=DIR specifies directory to put local include."
24ac_help="$ac_help
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
27ac_help="$ac_help
28 --enable-c-cpplib Use cpplib for C."
9101297d
DL
29ac_help="$ac_help
30 --enable-haifa Use the experimental scheduler.
31 --disable-haifa Don't use the experimental scheduler for the
32 targets which normally enable it."
861bb6c1
JL
33ac_help="$ac_help
34 --enable-threads enable thread usage for target GCC.
35 --enable-threads=LIB use LIB thread package for target GCC."
36
37# Initialize some variables set by options.
38# The variables have the same names as the options, with
39# dashes changed to underlines.
40build=NONE
41cache_file=./config.cache
42exec_prefix=NONE
43host=NONE
44no_create=
45nonopt=NONE
46no_recursion=
47prefix=NONE
48program_prefix=NONE
49program_suffix=NONE
50program_transform_name=s,x,x,
51silent=
52site=
53srcdir=
54target=NONE
55verbose=
56x_includes=NONE
57x_libraries=NONE
58bindir='${exec_prefix}/bin'
59sbindir='${exec_prefix}/sbin'
60libexecdir='${exec_prefix}/libexec'
61datadir='${prefix}/share'
62sysconfdir='${prefix}/etc'
63sharedstatedir='${prefix}/com'
64localstatedir='${prefix}/var'
65libdir='${exec_prefix}/lib'
66includedir='${prefix}/include'
67oldincludedir='/usr/include'
68infodir='${prefix}/info'
69mandir='${prefix}/man'
70
71# Initialize some other variables.
72subdirs=
73MFLAGS= MAKEFLAGS=
74# Maximum number of lines to put in a shell here document.
75ac_max_here_lines=12
76
77ac_prev=
78for ac_option
79do
80
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
86 fi
87
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
92
93 # Accept the important Cygnus configure options, so we can diagnose typos.
94
95 case "$ac_option" in
96
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
101
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
106
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
113
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
118 datadir="$ac_optarg" ;;
119
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 fi
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
128
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 fi
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
141
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
150
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
153 with_gas=yes ;;
154
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
158 cat << EOF
159Usage: configure [options] [host]
160Options: [defaults in brackets after descriptions]
161Configuration:
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
176 [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 [PREFIX/com]
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
191EOF
192 cat << EOF
193Host type:
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
204EOF
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
207 fi
208 exit 0 ;;
209
210 -host | --host | --hos | --ho)
211 ac_prev=host ;;
212 -host=* | --host=* | --hos=* | --ho=*)
213 host="$ac_optarg" ;;
214
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
221
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 ac_prev=infodir ;;
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
226
227 -libdir | --libdir | --libdi | --libd)
228 ac_prev=libdir ;;
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
231
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
238
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
247
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 ac_prev=mandir ;;
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
252
253 -nfp | --nfp | --nf)
254 # Obsolete; use --without-fp.
255 with_fp=no ;;
256
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 | --no-cr | --no-c)
259 no_create=yes ;;
260
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 no_recursion=yes ;;
264
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
273
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 ac_prev=prefix ;;
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
278
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
285
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
292
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
309
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
312 silent=yes ;;
313
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 ac_prev=sbindir ;;
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 | --sbi=* | --sb=*)
318 sbindir="$ac_optarg" ;;
319
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
323 | --sha | --sh)
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 | --sha=* | --sh=*)
329 sharedstatedir="$ac_optarg" ;;
330
331 -site | --site | --sit)
332 ac_prev=site ;;
333 -site=* | --site=* | --sit=*)
334 site="$ac_optarg" ;;
335
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 ac_prev=srcdir ;;
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
340
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
347
348 -target | --target | --targe | --targ | --tar | --ta | --t)
349 ac_prev=target ;;
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
352
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 verbose=yes ;;
355
356 -version | --version | --versio | --versi | --vers)
128f7968 357 echo "configure generated by autoconf version 2.12"
861bb6c1
JL
358 exit 0 ;;
359
360 -with-* | --with-*)
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 fi
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 case "$ac_option" in
368 *=*) ;;
369 *) ac_optarg=yes ;;
370 esac
371 eval "with_${ac_package}='$ac_optarg'" ;;
372
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 fi
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
381
382 --x)
383 # Obsolete; use --with-x.
384 with_x=yes ;;
385
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
392
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
399
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 ;;
402
403 *)
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 fi
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 fi
410 nonopt="$ac_option"
411 ;;
412
413 esac
414done
415
416if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418fi
419
420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422# File descriptor usage:
423# 0 standard input
424# 1 file creation
425# 2 errors and warnings
426# 3 some systems may open it to /dev/tty
427# 4 used on the Kubota Titan
428# 6 checking for... messages and results
429# 5 compiler messages saved in config.log
430if test "$silent" = yes; then
431 exec 6>/dev/null
432else
433 exec 6>&1
434fi
435exec 5>./config.log
436
437echo "\
438This file contains any messages produced by compilers while
439running configure, to aid debugging if configure makes a mistake.
440" 1>&5
441
442# Strip out --no-create and --no-recursion so they do not pile up.
443# Also quote any args containing shell metacharacters.
444ac_configure_args=
445for ac_arg
446do
447 case "$ac_arg" in
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 esac
456done
457
458# NLS nuisances.
459# Only set these to C if already set. These must not be set unconditionally
460# because not all systems understand e.g. LANG=C (notably SCO).
461# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462# Non-C LC_CTYPE values break the ctype check.
463if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467
468# confdefs.h avoids OS command line length limits that DEFS can exceed.
469rm -rf conftest* confdefs.h
470# AIX cpp loses on an empty file, so make sure it contains at least a newline.
471echo > confdefs.h
472
473# A filename unique to this package, relative to the directory that
474# configure is in, which we can look for to find out if srcdir is correct.
475ac_unique_file=tree.c
476
477# Find the source files, if location was not specified.
478if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
481 ac_prog=$0
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 srcdir=$ac_confdir
485 if test ! -r $srcdir/$ac_unique_file; then
486 srcdir=..
487 fi
488else
489 ac_srcdir_defaulted=no
490fi
491if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 else
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 fi
497fi
498srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499
500# Prefer explicitly selected file to automatically selected ones.
501if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 else
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 fi
507fi
508for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
511 . "$ac_site_file"
512 fi
513done
514
515if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 . $cache_file
518else
519 echo "creating cache $cache_file"
520 > $cache_file
521fi
522
523ac_ext=c
524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525ac_cpp='$CPP $CPPFLAGS'
526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528cross_compiling=$ac_cv_prog_cc_cross
529
530if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='
534' ac_t=' '
535 else
536 ac_n=-n ac_c= ac_t=
537 fi
538else
539 ac_n= ac_c='\c' ac_t=
540fi
541
542
543
544
861bb6c1
JL
545remove=rm
546hard_link=ln
547symbolic_link='ln -s'
548copy=cp
549
550# Check for additional parameters
551
552# With GNU ld
553# Check whether --with-gnu-ld or --without-gnu-ld was given.
554if test "${with_gnu_ld+set}" = set; then
555 withval="$with_gnu_ld"
556 gnu_ld=yes
557else
558 gnu_ld=no
559fi
560
561
562# With GNU as
563# Check whether --with-gnu-as or --without-gnu-as was given.
564if test "${with_gnu_as+set}" = set; then
565 withval="$with_gnu_as"
566 gas=yes
567else
568 gas=no
569fi
570
571
572# With stabs
573# Check whether --with-stabs or --without-stabs was given.
574if test "${with_stabs+set}" = set; then
575 withval="$with_stabs"
576 stabs=yes
577else
578 stabs=no
579fi
580
581
582# With ELF
583# Check whether --with-elf or --without-elf was given.
584if test "${with_elf+set}" = set; then
585 withval="$with_elf"
586 elf=yes
587else
588 elf=no
589fi
590
591
592# Specify the local prefix
593# Check whether --with-local-prefix or --without-local-prefix was given.
594if test "${with_local_prefix+set}" = set; then
595 withval="$with_local_prefix"
596 local_prefix=$with_local_prefix
597else
598 local_prefix=/usr/local
599fi
600
601
602# Default local prefix if it is empty
603if [ x$local_prefix = x ]; then
604 local_prefix=/usr/local
605fi
606
607# Specify the g++ header file directory
608# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
609if test "${with_gxx_include_dir+set}" = set; then
610 withval="$with_gxx_include_dir"
611 gxx_include_dir=$with_gxx_include_dir
612else
613 gxx_include_dir='${prefix}/include/g++'
614fi
615
616
617# Default g++ header file directory if it is empty
618if [ x$gxx_include_dir = x ]; then
619 gxx_include_dir='${prefix}/include/g++'
620fi
621
622# Enable use of cpplib for C.
623# Check whether --enable-c-cpplib or --disable-c-cpplib was given.
624if test "${enable_c_cpplib+set}" = set; then
625 enableval="$enable_c_cpplib"
626 if [ x$enable_c_cpplib != xno ]; then
627 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
628 extra_c_flags=-DUSE_CPPLIB=1
629fi
630fi
631
9101297d
DL
632
633# Enable Haifa scheduler.
634# Check whether --enable-haifa or --disable-haifa was given.
635if test "${enable_haifa+set}" = set; then
636 enableval="$enable_haifa"
637 :
638fi
639
861bb6c1
JL
640
641# Enable threads
642# Pass with no value to take the default
643# Pass with a value to specify a thread package
644# Check whether --enable-threads or --disable-threads was given.
645if test "${enable_threads+set}" = set; then
646 enableval="$enable_threads"
647 if [ x$enable_threads = xno ]; then
648 enable_threads=''
649fi
650else
651 enable_threads=''
652fi
653
654
655# Check if a valid thread package
656case x${enable_threads} in
657 x | xno)
658 # No threads
659 thread_file='single'
660 ;;
661 xyes)
662 # default
663 thread_file=''
664 ;;
665 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
f24af81b 666 xsolaris | xwin32 | xdce)
861bb6c1
JL
667 thread_file=$enable_threads
668 ;;
669 *)
670 echo "$enable_threads is an unknown thread package" 1>&2
671 exit 1
672 ;;
673esac
674
675# Determine the host, build, and target systems
676ac_aux_dir=
677for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
678 if test -f $ac_dir/install-sh; then
679 ac_aux_dir=$ac_dir
680 ac_install_sh="$ac_aux_dir/install-sh -c"
681 break
682 elif test -f $ac_dir/install.sh; then
683 ac_aux_dir=$ac_dir
684 ac_install_sh="$ac_aux_dir/install.sh -c"
685 break
686 fi
687done
688if test -z "$ac_aux_dir"; then
689 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
690fi
691ac_config_guess=$ac_aux_dir/config.guess
692ac_config_sub=$ac_aux_dir/config.sub
693ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
694
695
696# Do some error checking and defaulting for the host and target type.
697# The inputs are:
698# configure --host=HOST --target=TARGET --build=BUILD NONOPT
699#
700# The rules are:
701# 1. You are not allowed to specify --host, --target, and nonopt at the
702# same time.
703# 2. Host defaults to nonopt.
704# 3. If nonopt is not specified, then host defaults to the current host,
705# as determined by config.guess.
706# 4. Target and build default to nonopt.
707# 5. If nonopt is not specified, then target and build default to host.
708
709# The aliases save the names the user supplied, while $host etc.
710# will get canonicalized.
711case $host---$target---$nonopt in
712NONE---*---* | *---NONE---* | *---*---NONE) ;;
713*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
714esac
715
716
717# Make sure we can run config.sub.
128f7968 718if $ac_config_sub sun4 >/dev/null 2>&1; then :
861bb6c1
JL
719else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
720fi
721
722echo $ac_n "checking host system type""... $ac_c" 1>&6
128f7968 723echo "configure:724: checking host system type" >&5
861bb6c1
JL
724
725host_alias=$host
726case "$host_alias" in
727NONE)
728 case $nonopt in
729 NONE)
128f7968 730 if host_alias=`$ac_config_guess`; then :
861bb6c1
JL
731 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
732 fi ;;
733 *) host_alias=$nonopt ;;
734 esac ;;
735esac
736
128f7968 737host=`$ac_config_sub $host_alias`
861bb6c1
JL
738host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
739host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
740host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
741echo "$ac_t""$host" 1>&6
742
743echo $ac_n "checking target system type""... $ac_c" 1>&6
128f7968 744echo "configure:745: checking target system type" >&5
861bb6c1
JL
745
746target_alias=$target
747case "$target_alias" in
748NONE)
749 case $nonopt in
750 NONE) target_alias=$host_alias ;;
751 *) target_alias=$nonopt ;;
752 esac ;;
753esac
754
128f7968 755target=`$ac_config_sub $target_alias`
861bb6c1
JL
756target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
757target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
758target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
759echo "$ac_t""$target" 1>&6
760
761echo $ac_n "checking build system type""... $ac_c" 1>&6
128f7968 762echo "configure:763: checking build system type" >&5
861bb6c1
JL
763
764build_alias=$build
765case "$build_alias" in
766NONE)
767 case $nonopt in
768 NONE) build_alias=$host_alias ;;
769 *) build_alias=$nonopt ;;
770 esac ;;
771esac
772
128f7968 773build=`$ac_config_sub $build_alias`
861bb6c1
JL
774build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
775build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
776build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
777echo "$ac_t""$build" 1>&6
778
779test "$host_alias" != "$target_alias" &&
780 test "$program_prefix$program_suffix$program_transform_name" = \
781 NONENONEs,x,x, &&
782 program_prefix=${target_alias}-
783
784
e9a25f70
JL
785# Find the native compiler
786# Extract the first word of "gcc", so it can be a program name with args.
787set dummy gcc; ac_word=$2
788echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
128f7968 789echo "configure:790: checking for $ac_word" >&5
e9a25f70
JL
790if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
792else
793 if test -n "$CC"; then
794 ac_cv_prog_CC="$CC" # Let the user override the test.
795else
796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
797 for ac_dir in $PATH; do
798 test -z "$ac_dir" && ac_dir=.
799 if test -f $ac_dir/$ac_word; then
800 ac_cv_prog_CC="gcc"
801 break
802 fi
803 done
804 IFS="$ac_save_ifs"
805fi
806fi
807CC="$ac_cv_prog_CC"
808if test -n "$CC"; then
809 echo "$ac_t""$CC" 1>&6
810else
811 echo "$ac_t""no" 1>&6
812fi
813
814if test -z "$CC"; then
815 # Extract the first word of "cc", so it can be a program name with args.
816set dummy cc; ac_word=$2
817echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
128f7968 818echo "configure:819: checking for $ac_word" >&5
e9a25f70
JL
819if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
821else
822 if test -n "$CC"; then
823 ac_cv_prog_CC="$CC" # Let the user override the test.
824else
825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
826 ac_prog_rejected=no
827 for ac_dir in $PATH; do
828 test -z "$ac_dir" && ac_dir=.
829 if test -f $ac_dir/$ac_word; then
830 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
831 ac_prog_rejected=yes
832 continue
833 fi
834 ac_cv_prog_CC="cc"
835 break
836 fi
837 done
838 IFS="$ac_save_ifs"
839if test $ac_prog_rejected = yes; then
840 # We found a bogon in the path, so make sure we never use it.
841 set dummy $ac_cv_prog_CC
842 shift
843 if test $# -gt 0; then
844 # We chose a different compiler from the bogus one.
845 # However, it has the same basename, so the bogon will be chosen
846 # first if we set CC to just the basename; use the full file name.
847 shift
848 set dummy "$ac_dir/$ac_word" "$@"
849 shift
850 ac_cv_prog_CC="$@"
851 fi
852fi
853fi
854fi
855CC="$ac_cv_prog_CC"
856if test -n "$CC"; then
857 echo "$ac_t""$CC" 1>&6
858else
859 echo "$ac_t""no" 1>&6
860fi
861
862 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
863fi
864
865echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
128f7968 866echo "configure:867: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
e9a25f70
JL
867
868ac_ext=c
869# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
870ac_cpp='$CPP $CPPFLAGS'
871ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873cross_compiling=$ac_cv_prog_cc_cross
874
875cat > conftest.$ac_ext <<EOF
128f7968 876#line 877 "configure"
e9a25f70
JL
877#include "confdefs.h"
878main(){return(0);}
879EOF
128f7968 880if { (eval echo configure:881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
e9a25f70
JL
881 ac_cv_prog_cc_works=yes
882 # If we can't run a trivial program, we are probably using a cross compiler.
883 if (./conftest; exit) 2>/dev/null; then
884 ac_cv_prog_cc_cross=no
885 else
886 ac_cv_prog_cc_cross=yes
887 fi
888else
889 echo "configure: failed program was:" >&5
890 cat conftest.$ac_ext >&5
891 ac_cv_prog_cc_works=no
892fi
893rm -fr conftest*
894
895echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
896if test $ac_cv_prog_cc_works = no; then
897 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
898fi
899echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
128f7968 900echo "configure:901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
e9a25f70
JL
901echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
902cross_compiling=$ac_cv_prog_cc_cross
903
904echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
128f7968 905echo "configure:906: checking whether we are using GNU C" >&5
e9a25f70
JL
906if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
908else
909 cat > conftest.c <<EOF
910#ifdef __GNUC__
911 yes;
912#endif
913EOF
128f7968 914if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
e9a25f70
JL
915 ac_cv_prog_gcc=yes
916else
917 ac_cv_prog_gcc=no
918fi
919fi
920
921echo "$ac_t""$ac_cv_prog_gcc" 1>&6
922
923if test $ac_cv_prog_gcc = yes; then
924 GCC=yes
925 ac_test_CFLAGS="${CFLAGS+set}"
926 ac_save_CFLAGS="$CFLAGS"
927 CFLAGS=
928 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
128f7968 929echo "configure:930: checking whether ${CC-cc} accepts -g" >&5
e9a25f70
JL
930if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
932else
933 echo 'void f(){}' > conftest.c
934if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
935 ac_cv_prog_cc_g=yes
936else
937 ac_cv_prog_cc_g=no
938fi
939rm -f conftest*
940
941fi
942
943echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
944 if test "$ac_test_CFLAGS" = set; then
945 CFLAGS="$ac_save_CFLAGS"
946 elif test $ac_cv_prog_cc_g = yes; then
947 CFLAGS="-g -O2"
948 else
949 CFLAGS="-O2"
950 fi
951else
952 GCC=
953 test "${CFLAGS+set}" = set || CFLAGS="-g"
954fi
955
956echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
128f7968 957echo "configure:958: checking whether ${MAKE-make} sets \${MAKE}" >&5
e9a25f70
JL
958set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
959if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
961else
962 cat > conftestmake <<\EOF
963all:
964 @echo 'ac_maketemp="${MAKE}"'
965EOF
966# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
967eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
968if test -n "$ac_maketemp"; then
969 eval ac_cv_prog_make_${ac_make}_set=yes
970else
971 eval ac_cv_prog_make_${ac_make}_set=no
972fi
973rm -f conftestmake
974fi
975if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
976 echo "$ac_t""yes" 1>&6
977 SET_MAKE=
978else
979 echo "$ac_t""no" 1>&6
980 SET_MAKE="MAKE=${MAKE-make}"
981fi
982
983
861bb6c1
JL
984# Find some useful tools
985for ac_prog in mawk gawk nawk awk
986do
987# Extract the first word of "$ac_prog", so it can be a program name with args.
988set dummy $ac_prog; ac_word=$2
989echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
128f7968 990echo "configure:991: checking for $ac_word" >&5
861bb6c1
JL
991if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993else
994 if test -n "$AWK"; then
995 ac_cv_prog_AWK="$AWK" # Let the user override the test.
996else
997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
998 for ac_dir in $PATH; do
999 test -z "$ac_dir" && ac_dir=.
1000 if test -f $ac_dir/$ac_word; then
1001 ac_cv_prog_AWK="$ac_prog"
1002 break
1003 fi
1004 done
1005 IFS="$ac_save_ifs"
1006fi
1007fi
1008AWK="$ac_cv_prog_AWK"
1009if test -n "$AWK"; then
1010 echo "$ac_t""$AWK" 1>&6
1011else
1012 echo "$ac_t""no" 1>&6
1013fi
1014
1015test -n "$AWK" && break
1016done
1017
1018# Extract the first word of "flex", so it can be a program name with args.
1019set dummy flex; ac_word=$2
1020echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
128f7968 1021echo "configure:1022: checking for $ac_word" >&5
861bb6c1
JL
1022if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1024else
1025 if test -n "$LEX"; then
1026 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1027else
1028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1029 for ac_dir in $PATH; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_prog_LEX="flex"
1033 break
1034 fi
1035 done
1036 IFS="$ac_save_ifs"
1037 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1038fi
1039fi
1040LEX="$ac_cv_prog_LEX"
1041if test -n "$LEX"; then
1042 echo "$ac_t""$LEX" 1>&6
1043else
1044 echo "$ac_t""no" 1>&6
1045fi
1046
1047if test -z "$LEXLIB"
1048then
1049 case "$LEX" in
1050 flex*) ac_lib=fl ;;
1051 *) ac_lib=l ;;
1052 esac
1053 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
128f7968 1054echo "configure:1055: checking for yywrap in -l$ac_lib" >&5
861bb6c1
JL
1055ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1056if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1058else
1059 ac_save_LIBS="$LIBS"
1060LIBS="-l$ac_lib $LIBS"
1061cat > conftest.$ac_ext <<EOF
128f7968 1062#line 1063 "configure"
861bb6c1
JL
1063#include "confdefs.h"
1064/* Override any gcc2 internal prototype to avoid an error. */
1065/* We use char because int might match the return type of a gcc2
1066 builtin and then its argument prototype would still apply. */
1067char yywrap();
1068
1069int main() {
1070yywrap()
1071; return 0; }
1072EOF
128f7968 1073if { (eval echo configure:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
861bb6c1
JL
1074 rm -rf conftest*
1075 eval "ac_cv_lib_$ac_lib_var=yes"
1076else
1077 echo "configure: failed program was:" >&5
1078 cat conftest.$ac_ext >&5
1079 rm -rf conftest*
1080 eval "ac_cv_lib_$ac_lib_var=no"
1081fi
1082rm -f conftest*
1083LIBS="$ac_save_LIBS"
1084
1085fi
1086if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1087 echo "$ac_t""yes" 1>&6
1088 LEXLIB="-l$ac_lib"
1089else
1090 echo "$ac_t""no" 1>&6
1091fi
1092
1093fi
1094
ac64120e 1095echo $ac_n "checking whether ln works""... $ac_c" 1>&6
128f7968 1096echo "configure:1097: checking whether ln works" >&5
ac64120e
JW
1097if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1099else
e566af04
MH
1100 rm -f conftestdata_t
1101echo >conftestdata_f
1102if ln conftestdata_f conftestdata_t 2>/dev/null
ac64120e
JW
1103then
1104 gcc_cv_prog_LN="ln"
1105else
e566af04 1106 if ln -s conftestdata_f conftestdata_t 2>/dev/null
ac64120e
JW
1107 then
1108 gcc_cv_prog_LN="ln -s"
1109 else
1110 gcc_cv_prog_LN=cp
1111 fi
1112fi
e566af04 1113rm -f conftestdata_f conftestdata_t
ac64120e
JW
1114
1115fi
1116LN="$gcc_cv_prog_LN"
1117if test "$gcc_cv_prog_LN" = "ln"; then
1118 echo "$ac_t""yes" 1>&6
1119else
1120 if test "$gcc_cv_prog_LN" = "ln -s"; then
1121 echo "$ac_t""no, using ln -s" 1>&6
1122 else
1123 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1124 fi
1125fi
1126
861bb6c1 1127echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
128f7968 1128echo "configure:1129: checking whether ln -s works" >&5
ac64120e 1129if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
861bb6c1
JL
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131else
e566af04
MH
1132 rm -f conftestdata_t
1133echo >conftestdata_f
1134if ln -s conftestdata_f conftestdata_t 2>/dev/null
861bb6c1 1135then
ac64120e 1136 gcc_cv_prog_LN_S="ln -s"
861bb6c1 1137else
e566af04 1138 if ln conftestdata_f conftestdata_t 2>/dev/null
ac64120e
JW
1139 then
1140 gcc_cv_prog_LN_S=ln
1141 else
1142 gcc_cv_prog_LN_S=cp
1143 fi
861bb6c1 1144fi
e566af04 1145rm -f conftestdata_f conftestdata_t
ac64120e 1146
861bb6c1 1147fi
ac64120e
JW
1148LN_S="$gcc_cv_prog_LN_S"
1149if test "$gcc_cv_prog_LN_S" = "ln -s"; then
861bb6c1
JL
1150 echo "$ac_t""yes" 1>&6
1151else
ac64120e
JW
1152 if test "$gcc_cv_prog_LN_S" = "ln"; then
1153 echo "$ac_t""no, using ln" 1>&6
1154 else
1155 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1156 fi
861bb6c1
JL
1157fi
1158
1159# Extract the first word of "ranlib", so it can be a program name with args.
1160set dummy ranlib; ac_word=$2
1161echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
128f7968 1162echo "configure:1163: checking for $ac_word" >&5
861bb6c1
JL
1163if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165else
1166 if test -n "$RANLIB"; then
1167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1168else
1169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1170 for ac_dir in $PATH; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f $ac_dir/$ac_word; then
1173 ac_cv_prog_RANLIB="ranlib"
1174 break
1175 fi
1176 done
1177 IFS="$ac_save_ifs"
1178 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1179fi
1180fi
1181RANLIB="$ac_cv_prog_RANLIB"
1182if test -n "$RANLIB"; then
1183 echo "$ac_t""$RANLIB" 1>&6
1184else
1185 echo "$ac_t""no" 1>&6
1186fi
1187
1188for ac_prog in 'bison -y' byacc
1189do
1190# Extract the first word of "$ac_prog", so it can be a program name with args.
1191set dummy $ac_prog; ac_word=$2
1192echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
128f7968 1193echo "configure:1194: checking for $ac_word" >&5
861bb6c1
JL
1194if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1196else
1197 if test -n "$YACC"; then
1198 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1199else
1200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1201 for ac_dir in $PATH; do
1202 test -z "$ac_dir" && ac_dir=.
1203 if test -f $ac_dir/$ac_word; then
1204 ac_cv_prog_YACC="$ac_prog"
1205 break
1206 fi
1207 done
1208 IFS="$ac_save_ifs"
1209fi
1210fi
1211YACC="$ac_cv_prog_YACC"
1212if test -n "$YACC"; then
1213 echo "$ac_t""$YACC" 1>&6
1214else
1215 echo "$ac_t""no" 1>&6
1216fi
1217
1218test -n "$YACC" && break
1219done
1220test -n "$YACC" || YACC="yacc"
1221
1222# Find a good install program. We prefer a C program (faster),
1223# so one script is as good as another. But avoid the broken or
1224# incompatible versions:
1225# SysV /etc/install, /usr/sbin/install
1226# SunOS /usr/etc/install
1227# IRIX /sbin/install
1228# AIX /bin/install
1229# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1230# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1231# ./install, which can be erroneously created by make from ./install.sh.
1232echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
128f7968 1233echo "configure:1234: checking for a BSD compatible install" >&5
861bb6c1
JL
1234if test -z "$INSTALL"; then
1235if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237else
1238 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1239 for ac_dir in $PATH; do
1240 # Account for people who put trailing slashes in PATH elements.
1241 case "$ac_dir/" in
1242 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1243 *)
1244 # OSF1 and SCO ODT 3.0 have their own names for install.
76143254 1245 for ac_prog in ginstall scoinst install; do
861bb6c1
JL
1246 if test -f $ac_dir/$ac_prog; then
1247 if test $ac_prog = install &&
1248 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1249 # AIX install. It has an incompatible calling convention.
1250 # OSF/1 installbsd also uses dspmsg, but is usable.
1251 :
1252 else
1253 ac_cv_path_install="$ac_dir/$ac_prog -c"
1254 break 2
1255 fi
1256 fi
1257 done
1258 ;;
1259 esac
1260 done
1261 IFS="$ac_save_IFS"
1262
1263fi
1264 if test "${ac_cv_path_install+set}" = set; then
1265 INSTALL="$ac_cv_path_install"
1266 else
1267 # As a last resort, use the slow shell script. We don't cache a
1268 # path for INSTALL within a source directory, because that will
1269 # break other packages using the cache if that directory is
1270 # removed, or if the path is relative.
1271 INSTALL="$ac_install_sh"
1272 fi
1273fi
1274echo "$ac_t""$INSTALL" 1>&6
1275
1276# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1277# It thinks the first close brace ends the variable substitution.
1278test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1279
1280test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1281
1282
1283# Find the native compiler
1284# Extract the first word of "gcc", so it can be a program name with args.
1285set dummy gcc; ac_word=$2
1286echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
128f7968 1287echo "configure:1288: checking for $ac_word" >&5
861bb6c1
JL
1288if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1290else
1291 if test -n "$CC"; then
1292 ac_cv_prog_CC="$CC" # Let the user override the test.
1293else
1294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1295 for ac_dir in $PATH; do
1296 test -z "$ac_dir" && ac_dir=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_prog_CC="gcc"
1299 break
1300 fi
1301 done
1302 IFS="$ac_save_ifs"
1303fi
1304fi
1305CC="$ac_cv_prog_CC"
1306if test -n "$CC"; then
1307 echo "$ac_t""$CC" 1>&6
1308else
1309 echo "$ac_t""no" 1>&6
1310fi
1311
1312if test -z "$CC"; then
1313 # Extract the first word of "cc", so it can be a program name with args.
1314set dummy cc; ac_word=$2
1315echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
128f7968 1316echo "configure:1317: checking for $ac_word" >&5
861bb6c1
JL
1317if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1319else
1320 if test -n "$CC"; then
1321 ac_cv_prog_CC="$CC" # Let the user override the test.
1322else
1323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1324 ac_prog_rejected=no
1325 for ac_dir in $PATH; do
1326 test -z "$ac_dir" && ac_dir=.
1327 if test -f $ac_dir/$ac_word; then
1328 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1329 ac_prog_rejected=yes
1330 continue
1331 fi
1332 ac_cv_prog_CC="cc"
1333 break
1334 fi
1335 done
1336 IFS="$ac_save_ifs"
1337if test $ac_prog_rejected = yes; then
1338 # We found a bogon in the path, so make sure we never use it.
1339 set dummy $ac_cv_prog_CC
1340 shift
1341 if test $# -gt 0; then
1342 # We chose a different compiler from the bogus one.
1343 # However, it has the same basename, so the bogon will be chosen
1344 # first if we set CC to just the basename; use the full file name.
1345 shift
1346 set dummy "$ac_dir/$ac_word" "$@"
1347 shift
1348 ac_cv_prog_CC="$@"
1349 fi
1350fi
1351fi
1352fi
1353CC="$ac_cv_prog_CC"
1354if test -n "$CC"; then
1355 echo "$ac_t""$CC" 1>&6
1356else
1357 echo "$ac_t""no" 1>&6
1358fi
1359
1360 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1361fi
1362
1363echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
128f7968 1364echo "configure:1365: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
861bb6c1
JL
1365
1366ac_ext=c
1367# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1368ac_cpp='$CPP $CPPFLAGS'
1369ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1370ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1371cross_compiling=$ac_cv_prog_cc_cross
1372
1373cat > conftest.$ac_ext <<EOF
128f7968 1374#line 1375 "configure"
861bb6c1
JL
1375#include "confdefs.h"
1376main(){return(0);}
1377EOF
128f7968 1378if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
861bb6c1
JL
1379 ac_cv_prog_cc_works=yes
1380 # If we can't run a trivial program, we are probably using a cross compiler.
1381 if (./conftest; exit) 2>/dev/null; then
1382 ac_cv_prog_cc_cross=no
1383 else
1384 ac_cv_prog_cc_cross=yes
1385 fi
1386else
1387 echo "configure: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1389 ac_cv_prog_cc_works=no
1390fi
1391rm -fr conftest*
1392
1393echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1394if test $ac_cv_prog_cc_works = no; then
1395 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1396fi
1397echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
128f7968 1398echo "configure:1399: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
861bb6c1
JL
1399echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1400cross_compiling=$ac_cv_prog_cc_cross
1401
1402echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
128f7968 1403echo "configure:1404: checking whether we are using GNU C" >&5
861bb6c1
JL
1404if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1406else
1407 cat > conftest.c <<EOF
1408#ifdef __GNUC__
1409 yes;
1410#endif
1411EOF
128f7968 1412if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
861bb6c1
JL
1413 ac_cv_prog_gcc=yes
1414else
1415 ac_cv_prog_gcc=no
1416fi
1417fi
1418
1419echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1420
1421if test $ac_cv_prog_gcc = yes; then
1422 GCC=yes
1423 ac_test_CFLAGS="${CFLAGS+set}"
1424 ac_save_CFLAGS="$CFLAGS"
1425 CFLAGS=
1426 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
128f7968 1427echo "configure:1428: checking whether ${CC-cc} accepts -g" >&5
861bb6c1
JL
1428if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1430else
1431 echo 'void f(){}' > conftest.c
1432if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1433 ac_cv_prog_cc_g=yes
1434else
1435 ac_cv_prog_cc_g=no
1436fi
1437rm -f conftest*
1438
1439fi
1440
1441echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1442 if test "$ac_test_CFLAGS" = set; then
1443 CFLAGS="$ac_save_CFLAGS"
1444 elif test $ac_cv_prog_cc_g = yes; then
1445 CFLAGS="-g -O2"
1446 else
1447 CFLAGS="-O2"
1448 fi
1449else
1450 GCC=
1451 test "${CFLAGS+set}" = set || CFLAGS="-g"
1452fi
1453
1454echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
128f7968 1455echo "configure:1456: checking whether ${MAKE-make} sets \${MAKE}" >&5
861bb6c1
JL
1456set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1457if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459else
1460 cat > conftestmake <<\EOF
1461all:
1462 @echo 'ac_maketemp="${MAKE}"'
1463EOF
1464# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1465eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1466if test -n "$ac_maketemp"; then
1467 eval ac_cv_prog_make_${ac_make}_set=yes
1468else
1469 eval ac_cv_prog_make_${ac_make}_set=no
1470fi
1471rm -f conftestmake
1472fi
1473if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1474 echo "$ac_t""yes" 1>&6
1475 SET_MAKE=
1476else
1477 echo "$ac_t""no" 1>&6
1478 SET_MAKE="MAKE=${MAKE-make}"
1479fi
1480
1481
1482echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
128f7968 1483echo "configure:1484: checking how to run the C preprocessor" >&5
861bb6c1
JL
1484# On Suns, sometimes $CPP names a directory.
1485if test -n "$CPP" && test -d "$CPP"; then
1486 CPP=
1487fi
1488if test -z "$CPP"; then
1489if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1491else
1492 # This must be in double quotes, not single quotes, because CPP may get
1493 # substituted into the Makefile and "${CC-cc}" will confuse make.
1494 CPP="${CC-cc} -E"
1495 # On the NeXT, cc -E runs the code through the compiler's parser,
1496 # not just through cpp.
1497 cat > conftest.$ac_ext <<EOF
128f7968 1498#line 1499 "configure"
861bb6c1
JL
1499#include "confdefs.h"
1500#include <assert.h>
1501Syntax Error
1502EOF
1503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
128f7968 1504{ (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861bb6c1
JL
1505ac_err=`grep -v '^ *+' conftest.out`
1506if test -z "$ac_err"; then
1507 :
1508else
1509 echo "$ac_err" >&5
1510 echo "configure: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1512 rm -rf conftest*
1513 CPP="${CC-cc} -E -traditional-cpp"
1514 cat > conftest.$ac_ext <<EOF
128f7968 1515#line 1516 "configure"
861bb6c1
JL
1516#include "confdefs.h"
1517#include <assert.h>
1518Syntax Error
1519EOF
1520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
128f7968 1521{ (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861bb6c1
JL
1522ac_err=`grep -v '^ *+' conftest.out`
1523if test -z "$ac_err"; then
1524 :
1525else
1526 echo "$ac_err" >&5
1527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
1529 rm -rf conftest*
1530 CPP=/lib/cpp
1531fi
1532rm -f conftest*
1533fi
1534rm -f conftest*
1535 ac_cv_prog_CPP="$CPP"
1536fi
1537 CPP="$ac_cv_prog_CPP"
1538else
1539 ac_cv_prog_CPP="$CPP"
1540fi
1541echo "$ac_t""$CPP" 1>&6
1542
956d6950 1543echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
128f7968 1544echo "configure:1545: checking for ANSI C header files" >&5
956d6950
JL
1545if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1547else
1548 cat > conftest.$ac_ext <<EOF
128f7968 1549#line 1550 "configure"
956d6950
JL
1550#include "confdefs.h"
1551#include <stdlib.h>
1552#include <stdarg.h>
1553#include <string.h>
1554#include <float.h>
1555EOF
1556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
128f7968 1557{ (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
956d6950
JL
1558ac_err=`grep -v '^ *+' conftest.out`
1559if test -z "$ac_err"; then
1560 rm -rf conftest*
1561 ac_cv_header_stdc=yes
1562else
1563 echo "$ac_err" >&5
1564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
1566 rm -rf conftest*
1567 ac_cv_header_stdc=no
1568fi
1569rm -f conftest*
1570
1571if test $ac_cv_header_stdc = yes; then
1572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1573cat > conftest.$ac_ext <<EOF
128f7968 1574#line 1575 "configure"
956d6950
JL
1575#include "confdefs.h"
1576#include <string.h>
1577EOF
1578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1579 egrep "memchr" >/dev/null 2>&1; then
1580 :
1581else
1582 rm -rf conftest*
1583 ac_cv_header_stdc=no
1584fi
1585rm -f conftest*
1586
1587fi
1588
1589if test $ac_cv_header_stdc = yes; then
1590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1591cat > conftest.$ac_ext <<EOF
128f7968 1592#line 1593 "configure"
956d6950
JL
1593#include "confdefs.h"
1594#include <stdlib.h>
1595EOF
1596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1597 egrep "free" >/dev/null 2>&1; then
1598 :
1599else
1600 rm -rf conftest*
1601 ac_cv_header_stdc=no
1602fi
1603rm -f conftest*
1604
1605fi
1606
1607if test $ac_cv_header_stdc = yes; then
1608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1609if test "$cross_compiling" = yes; then
1610 :
1611else
1612 cat > conftest.$ac_ext <<EOF
128f7968 1613#line 1614 "configure"
956d6950
JL
1614#include "confdefs.h"
1615#include <ctype.h>
1616#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1617#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1618#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1619int main () { int i; for (i = 0; i < 256; i++)
1620if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1621exit (0); }
1622
1623EOF
128f7968 1624if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
956d6950
JL
1625then
1626 :
1627else
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1630 rm -fr conftest*
1631 ac_cv_header_stdc=no
1632fi
1633rm -fr conftest*
1634fi
1635
1636fi
1637fi
1638
1639echo "$ac_t""$ac_cv_header_stdc" 1>&6
1640if test $ac_cv_header_stdc = yes; then
1641 cat >> confdefs.h <<\EOF
1642#define STDC_HEADERS 1
1643EOF
1644
1645fi
1646
1647echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
128f7968 1648echo "configure:1649: checking whether time.h and sys/time.h may both be included" >&5
956d6950
JL
1649if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1651else
1652 cat > conftest.$ac_ext <<EOF
128f7968 1653#line 1654 "configure"
956d6950
JL
1654#include "confdefs.h"
1655#include <sys/types.h>
1656#include <sys/time.h>
1657#include <time.h>
1658int main() {
1659struct tm *tp;
1660; return 0; }
1661EOF
128f7968 1662if { (eval echo configure:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
956d6950
JL
1663 rm -rf conftest*
1664 ac_cv_header_time=yes
1665else
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1668 rm -rf conftest*
1669 ac_cv_header_time=no
1670fi
1671rm -f conftest*
1672fi
1673
1674echo "$ac_t""$ac_cv_header_time" 1>&6
1675if test $ac_cv_header_time = yes; then
1676 cat >> confdefs.h <<\EOF
1677#define TIME_WITH_SYS_TIME 1
1678EOF
1679
1680fi
1681
1682for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h varargs.h sys/varargs.h
861bb6c1
JL
1683do
1684ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1685echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
128f7968 1686echo "configure:1687: checking for $ac_hdr" >&5
861bb6c1
JL
1687if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1689else
1690 cat > conftest.$ac_ext <<EOF
128f7968 1691#line 1692 "configure"
861bb6c1
JL
1692#include "confdefs.h"
1693#include <$ac_hdr>
1694EOF
956d6950 1695ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
128f7968 1696{ (eval echo configure:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
956d6950
JL
1697ac_err=`grep -v '^ *+' conftest.out`
1698if test -z "$ac_err"; then
1699 rm -rf conftest*
1700 eval "ac_cv_header_$ac_safe=yes"
1701else
1702 echo "$ac_err" >&5
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1705 rm -rf conftest*
1706 eval "ac_cv_header_$ac_safe=no"
1707fi
1708rm -f conftest*
1709fi
1710if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1711 echo "$ac_t""yes" 1>&6
1712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1713 cat >> confdefs.h <<EOF
1714#define $ac_tr_hdr 1
1715EOF
1716
1717else
1718 echo "$ac_t""no" 1>&6
1719fi
1720done
1721
1722
f24af81b
TT
1723# Check for thread headers.
1724ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1725echo $ac_n "checking for thread.h""... $ac_c" 1>&6
128f7968 1726echo "configure:1727: checking for thread.h" >&5
f24af81b
TT
1727if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1729else
1730 cat > conftest.$ac_ext <<EOF
128f7968 1731#line 1732 "configure"
f24af81b
TT
1732#include "confdefs.h"
1733#include <thread.h>
1734EOF
1735ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
128f7968 1736{ (eval echo configure:1737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f24af81b
TT
1737ac_err=`grep -v '^ *+' conftest.out`
1738if test -z "$ac_err"; then
1739 rm -rf conftest*
1740 eval "ac_cv_header_$ac_safe=yes"
1741else
1742 echo "$ac_err" >&5
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1745 rm -rf conftest*
1746 eval "ac_cv_header_$ac_safe=no"
1747fi
1748rm -f conftest*
1749fi
1750if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1752 have_thread_h=yes
1753else
1754 echo "$ac_t""no" 1>&6
1755have_thread_h=
1756fi
1757
1758ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1759echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
128f7968 1760echo "configure:1761: checking for pthread.h" >&5
f24af81b
TT
1761if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763else
1764 cat > conftest.$ac_ext <<EOF
128f7968 1765#line 1766 "configure"
f24af81b
TT
1766#include "confdefs.h"
1767#include <pthread.h>
1768EOF
1769ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
128f7968 1770{ (eval echo configure:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f24af81b
TT
1771ac_err=`grep -v '^ *+' conftest.out`
1772if test -z "$ac_err"; then
1773 rm -rf conftest*
1774 eval "ac_cv_header_$ac_safe=yes"
1775else
1776 echo "$ac_err" >&5
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1779 rm -rf conftest*
1780 eval "ac_cv_header_$ac_safe=no"
1781fi
1782rm -f conftest*
1783fi
1784if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 have_pthread_h=yes
1787else
1788 echo "$ac_t""no" 1>&6
1789have_pthread_h=
1790fi
1791
1792
956d6950
JL
1793# Use <inttypes.h> only if it exists,
1794# doesn't clash with <sys/types.h>, and declares intmax_t.
1795echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
128f7968 1796echo "configure:1797: checking for inttypes.h" >&5
956d6950
JL
1797if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1799else
1800 cat > conftest.$ac_ext <<EOF
128f7968 1801#line 1802 "configure"
956d6950
JL
1802#include "confdefs.h"
1803#include <sys/types.h>
1804#include <inttypes.h>
1805int main() {
1806intmax_t i = -1;
1807; return 0; }
1808EOF
128f7968 1809if { (eval echo configure:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
956d6950
JL
1810 rm -rf conftest*
1811 cat >> confdefs.h <<EOF
1812#define HAVE_INTTYPES_H 1
1813EOF
1814
1815 gcc_cv_header_inttypes_h=yes
1816else
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1819 rm -rf conftest*
1820 gcc_cv_header_inttypes_h=no
1821fi
1822rm -f conftest*
1823fi
1824
1825echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1826
1827for ac_func in strtoul
1828do
1829echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 1830echo "configure:1831: checking for $ac_func" >&5
956d6950
JL
1831if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1833else
1834 cat > conftest.$ac_ext <<EOF
128f7968 1835#line 1836 "configure"
956d6950
JL
1836#include "confdefs.h"
1837/* System header to define __stub macros and hopefully few prototypes,
1838 which can conflict with char $ac_func(); below. */
1839#include <assert.h>
1840/* Override any gcc2 internal prototype to avoid an error. */
1841/* We use char because int might match the return type of a gcc2
1842 builtin and then its argument prototype would still apply. */
1843char $ac_func();
1844
1845int main() {
1846
1847/* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1851choke me
1852#else
1853$ac_func();
1854#endif
1855
1856; return 0; }
1857EOF
128f7968 1858if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
1859 rm -rf conftest*
1860 eval "ac_cv_func_$ac_func=yes"
1861else
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1864 rm -rf conftest*
1865 eval "ac_cv_func_$ac_func=no"
1866fi
1867rm -f conftest*
1868fi
1869
1870if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1871 echo "$ac_t""yes" 1>&6
1872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1873 cat >> confdefs.h <<EOF
1874#define $ac_tr_func 1
1875EOF
1876
1877else
1878 echo "$ac_t""no" 1>&6
1879fi
1880done
1881
1882for ac_func in bsearch
1883do
1884echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 1885echo "configure:1886: checking for $ac_func" >&5
956d6950
JL
1886if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1888else
1889 cat > conftest.$ac_ext <<EOF
128f7968 1890#line 1891 "configure"
956d6950
JL
1891#include "confdefs.h"
1892/* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $ac_func(); below. */
1894#include <assert.h>
1895/* Override any gcc2 internal prototype to avoid an error. */
1896/* We use char because int might match the return type of a gcc2
1897 builtin and then its argument prototype would still apply. */
1898char $ac_func();
1899
1900int main() {
1901
1902/* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1906choke me
1907#else
1908$ac_func();
1909#endif
1910
1911; return 0; }
1912EOF
128f7968 1913if { (eval echo configure:1914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
1914 rm -rf conftest*
1915 eval "ac_cv_func_$ac_func=yes"
1916else
1917 echo "configure: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1919 rm -rf conftest*
1920 eval "ac_cv_func_$ac_func=no"
1921fi
1922rm -f conftest*
1923fi
1924
1925if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1926 echo "$ac_t""yes" 1>&6
1927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1928 cat >> confdefs.h <<EOF
1929#define $ac_tr_func 1
1930EOF
1931
1932else
1933 echo "$ac_t""no" 1>&6
1934fi
1935done
1936
1937for ac_func in strerror
1938do
1939echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 1940echo "configure:1941: checking for $ac_func" >&5
956d6950
JL
1941if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1943else
1944 cat > conftest.$ac_ext <<EOF
128f7968 1945#line 1946 "configure"
956d6950
JL
1946#include "confdefs.h"
1947/* System header to define __stub macros and hopefully few prototypes,
1948 which can conflict with char $ac_func(); below. */
1949#include <assert.h>
1950/* Override any gcc2 internal prototype to avoid an error. */
1951/* We use char because int might match the return type of a gcc2
1952 builtin and then its argument prototype would still apply. */
1953char $ac_func();
1954
1955int main() {
1956
1957/* The GNU C library defines this for functions which it implements
1958 to always fail with ENOSYS. Some functions are actually named
1959 something starting with __ and the normal name is an alias. */
1960#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1961choke me
1962#else
1963$ac_func();
1964#endif
1965
1966; return 0; }
1967EOF
128f7968 1968if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
1969 rm -rf conftest*
1970 eval "ac_cv_func_$ac_func=yes"
1971else
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 rm -rf conftest*
1975 eval "ac_cv_func_$ac_func=no"
1976fi
1977rm -f conftest*
1978fi
1979
1980if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1981 echo "$ac_t""yes" 1>&6
1982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1983 cat >> confdefs.h <<EOF
1984#define $ac_tr_func 1
1985EOF
1986
1987else
1988 echo "$ac_t""no" 1>&6
1989fi
1990done
1991
1992for ac_func in putenv
1993do
1994echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 1995echo "configure:1996: checking for $ac_func" >&5
956d6950
JL
1996if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1998else
1999 cat > conftest.$ac_ext <<EOF
128f7968 2000#line 2001 "configure"
956d6950
JL
2001#include "confdefs.h"
2002/* System header to define __stub macros and hopefully few prototypes,
2003 which can conflict with char $ac_func(); below. */
2004#include <assert.h>
2005/* Override any gcc2 internal prototype to avoid an error. */
2006/* We use char because int might match the return type of a gcc2
2007 builtin and then its argument prototype would still apply. */
2008char $ac_func();
2009
2010int main() {
2011
2012/* The GNU C library defines this for functions which it implements
2013 to always fail with ENOSYS. Some functions are actually named
2014 something starting with __ and the normal name is an alias. */
2015#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2016choke me
2017#else
2018$ac_func();
2019#endif
2020
2021; return 0; }
2022EOF
128f7968 2023if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
2024 rm -rf conftest*
2025 eval "ac_cv_func_$ac_func=yes"
2026else
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 rm -rf conftest*
2030 eval "ac_cv_func_$ac_func=no"
2031fi
2032rm -f conftest*
2033fi
2034
2035if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2036 echo "$ac_t""yes" 1>&6
2037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2038 cat >> confdefs.h <<EOF
2039#define $ac_tr_func 1
2040EOF
2041
2042else
2043 echo "$ac_t""no" 1>&6
2044fi
2045done
2046
2047for ac_func in popen
2048do
2049echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2050echo "configure:2051: checking for $ac_func" >&5
956d6950
JL
2051if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053else
2054 cat > conftest.$ac_ext <<EOF
128f7968 2055#line 2056 "configure"
956d6950
JL
2056#include "confdefs.h"
2057/* System header to define __stub macros and hopefully few prototypes,
2058 which can conflict with char $ac_func(); below. */
2059#include <assert.h>
2060/* Override any gcc2 internal prototype to avoid an error. */
2061/* We use char because int might match the return type of a gcc2
2062 builtin and then its argument prototype would still apply. */
2063char $ac_func();
2064
2065int main() {
2066
2067/* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2071choke me
2072#else
2073$ac_func();
2074#endif
2075
2076; return 0; }
2077EOF
128f7968 2078if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
2079 rm -rf conftest*
2080 eval "ac_cv_func_$ac_func=yes"
2081else
2082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 rm -rf conftest*
2085 eval "ac_cv_func_$ac_func=no"
2086fi
2087rm -f conftest*
2088fi
2089
2090if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2091 echo "$ac_t""yes" 1>&6
2092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2093 cat >> confdefs.h <<EOF
2094#define $ac_tr_func 1
2095EOF
2096
2097else
2098 echo "$ac_t""no" 1>&6
2099fi
2100done
2101
2102for ac_func in vprintf
2103do
2104echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2105echo "configure:2106: checking for $ac_func" >&5
956d6950
JL
2106if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2108else
2109 cat > conftest.$ac_ext <<EOF
128f7968 2110#line 2111 "configure"
956d6950
JL
2111#include "confdefs.h"
2112/* System header to define __stub macros and hopefully few prototypes,
2113 which can conflict with char $ac_func(); below. */
2114#include <assert.h>
2115/* Override any gcc2 internal prototype to avoid an error. */
2116/* We use char because int might match the return type of a gcc2
2117 builtin and then its argument prototype would still apply. */
2118char $ac_func();
2119
2120int main() {
2121
2122/* The GNU C library defines this for functions which it implements
2123 to always fail with ENOSYS. Some functions are actually named
2124 something starting with __ and the normal name is an alias. */
2125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2126choke me
2127#else
2128$ac_func();
2129#endif
2130
2131; return 0; }
2132EOF
128f7968 2133if { (eval echo configure:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
2134 rm -rf conftest*
2135 eval "ac_cv_func_$ac_func=yes"
2136else
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2139 rm -rf conftest*
2140 eval "ac_cv_func_$ac_func=no"
2141fi
2142rm -f conftest*
2143fi
2144
2145if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2148 cat >> confdefs.h <<EOF
2149#define $ac_tr_func 1
2150EOF
2151
2152else
2153 echo "$ac_t""no" 1>&6
2154fi
2155done
2156
2157for ac_func in bcopy
2158do
2159echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2160echo "configure:2161: checking for $ac_func" >&5
956d6950
JL
2161if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2163else
2164 cat > conftest.$ac_ext <<EOF
128f7968 2165#line 2166 "configure"
956d6950
JL
2166#include "confdefs.h"
2167/* System header to define __stub macros and hopefully few prototypes,
2168 which can conflict with char $ac_func(); below. */
2169#include <assert.h>
2170/* Override any gcc2 internal prototype to avoid an error. */
2171/* We use char because int might match the return type of a gcc2
2172 builtin and then its argument prototype would still apply. */
2173char $ac_func();
2174
2175int main() {
2176
2177/* The GNU C library defines this for functions which it implements
2178 to always fail with ENOSYS. Some functions are actually named
2179 something starting with __ and the normal name is an alias. */
2180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2181choke me
2182#else
2183$ac_func();
2184#endif
2185
2186; return 0; }
2187EOF
128f7968 2188if { (eval echo configure:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
2189 rm -rf conftest*
2190 eval "ac_cv_func_$ac_func=yes"
2191else
2192 echo "configure: failed program was:" >&5
2193 cat conftest.$ac_ext >&5
2194 rm -rf conftest*
2195 eval "ac_cv_func_$ac_func=no"
2196fi
2197rm -f conftest*
2198fi
2199
2200if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2201 echo "$ac_t""yes" 1>&6
2202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2203 cat >> confdefs.h <<EOF
2204#define $ac_tr_func 1
2205EOF
2206
2207else
2208 echo "$ac_t""no" 1>&6
2209fi
2210done
2211
2212for ac_func in bzero
2213do
2214echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2215echo "configure:2216: checking for $ac_func" >&5
956d6950
JL
2216if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2218else
2219 cat > conftest.$ac_ext <<EOF
128f7968 2220#line 2221 "configure"
956d6950
JL
2221#include "confdefs.h"
2222/* System header to define __stub macros and hopefully few prototypes,
2223 which can conflict with char $ac_func(); below. */
2224#include <assert.h>
2225/* Override any gcc2 internal prototype to avoid an error. */
2226/* We use char because int might match the return type of a gcc2
2227 builtin and then its argument prototype would still apply. */
2228char $ac_func();
2229
2230int main() {
2231
2232/* The GNU C library defines this for functions which it implements
2233 to always fail with ENOSYS. Some functions are actually named
2234 something starting with __ and the normal name is an alias. */
2235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2236choke me
2237#else
2238$ac_func();
2239#endif
2240
2241; return 0; }
2242EOF
128f7968 2243if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
2244 rm -rf conftest*
2245 eval "ac_cv_func_$ac_func=yes"
2246else
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2249 rm -rf conftest*
2250 eval "ac_cv_func_$ac_func=no"
2251fi
2252rm -f conftest*
2253fi
2254
2255if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2256 echo "$ac_t""yes" 1>&6
2257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2258 cat >> confdefs.h <<EOF
2259#define $ac_tr_func 1
2260EOF
2261
2262else
2263 echo "$ac_t""no" 1>&6
2264fi
2265done
2266
2267for ac_func in bcmp
2268do
2269echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2270echo "configure:2271: checking for $ac_func" >&5
956d6950
JL
2271if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2273else
2274 cat > conftest.$ac_ext <<EOF
128f7968 2275#line 2276 "configure"
956d6950
JL
2276#include "confdefs.h"
2277/* System header to define __stub macros and hopefully few prototypes,
2278 which can conflict with char $ac_func(); below. */
2279#include <assert.h>
2280/* Override any gcc2 internal prototype to avoid an error. */
2281/* We use char because int might match the return type of a gcc2
2282 builtin and then its argument prototype would still apply. */
2283char $ac_func();
2284
2285int main() {
2286
2287/* The GNU C library defines this for functions which it implements
2288 to always fail with ENOSYS. Some functions are actually named
2289 something starting with __ and the normal name is an alias. */
2290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2291choke me
2292#else
2293$ac_func();
2294#endif
2295
2296; return 0; }
2297EOF
128f7968 2298if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
2299 rm -rf conftest*
2300 eval "ac_cv_func_$ac_func=yes"
2301else
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2304 rm -rf conftest*
2305 eval "ac_cv_func_$ac_func=no"
2306fi
2307rm -f conftest*
2308fi
2309
2310if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2311 echo "$ac_t""yes" 1>&6
2312 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2313 cat >> confdefs.h <<EOF
2314#define $ac_tr_func 1
2315EOF
2316
2317else
2318 echo "$ac_t""no" 1>&6
2319fi
2320done
2321
2322for ac_func in index
2323do
2324echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2325echo "configure:2326: checking for $ac_func" >&5
956d6950
JL
2326if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2328else
2329 cat > conftest.$ac_ext <<EOF
128f7968 2330#line 2331 "configure"
956d6950
JL
2331#include "confdefs.h"
2332/* System header to define __stub macros and hopefully few prototypes,
2333 which can conflict with char $ac_func(); below. */
2334#include <assert.h>
2335/* Override any gcc2 internal prototype to avoid an error. */
2336/* We use char because int might match the return type of a gcc2
2337 builtin and then its argument prototype would still apply. */
2338char $ac_func();
2339
2340int main() {
2341
2342/* The GNU C library defines this for functions which it implements
2343 to always fail with ENOSYS. Some functions are actually named
2344 something starting with __ and the normal name is an alias. */
2345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2346choke me
2347#else
2348$ac_func();
2349#endif
2350
2351; return 0; }
2352EOF
128f7968 2353if { (eval echo configure:2354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
956d6950
JL
2354 rm -rf conftest*
2355 eval "ac_cv_func_$ac_func=yes"
2356else
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2359 rm -rf conftest*
2360 eval "ac_cv_func_$ac_func=no"
2361fi
2362rm -f conftest*
2363fi
2364
2365if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2366 echo "$ac_t""yes" 1>&6
2367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2368 cat >> confdefs.h <<EOF
2369#define $ac_tr_func 1
2370EOF
2371
2372else
2373 echo "$ac_t""no" 1>&6
2374fi
2375done
2376
2377for ac_func in rindex
2378do
2379echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2380echo "configure:2381: checking for $ac_func" >&5
956d6950
JL
2381if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2383else
2384 cat > conftest.$ac_ext <<EOF
128f7968 2385#line 2386 "configure"
956d6950
JL
2386#include "confdefs.h"
2387/* System header to define __stub macros and hopefully few prototypes,
2388 which can conflict with char $ac_func(); below. */
2389#include <assert.h>
2390/* Override any gcc2 internal prototype to avoid an error. */
2391/* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2393char $ac_func();
2394
2395int main() {
2396
2397/* The GNU C library defines this for functions which it implements
2398 to always fail with ENOSYS. Some functions are actually named
2399 something starting with __ and the normal name is an alias. */
2400#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2401choke me
2402#else
2403$ac_func();
2404#endif
2405
2406; return 0; }
2407EOF
128f7968 2408if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
861bb6c1 2409 rm -rf conftest*
956d6950 2410 eval "ac_cv_func_$ac_func=yes"
861bb6c1 2411else
861bb6c1
JL
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 rm -rf conftest*
956d6950 2415 eval "ac_cv_func_$ac_func=no"
861bb6c1
JL
2416fi
2417rm -f conftest*
2418fi
956d6950
JL
2419
2420if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
861bb6c1 2421 echo "$ac_t""yes" 1>&6
956d6950 2422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
861bb6c1 2423 cat >> confdefs.h <<EOF
956d6950 2424#define $ac_tr_func 1
861bb6c1
JL
2425EOF
2426
2427else
2428 echo "$ac_t""no" 1>&6
2429fi
2430done
2431
956d6950
JL
2432for ac_func in kill
2433do
2434echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2435echo "configure:2436: checking for $ac_func" >&5
956d6950 2436if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7636d567
JW
2437 echo $ac_n "(cached) $ac_c" 1>&6
2438else
2439 cat > conftest.$ac_ext <<EOF
128f7968 2440#line 2441 "configure"
7636d567 2441#include "confdefs.h"
956d6950
JL
2442/* System header to define __stub macros and hopefully few prototypes,
2443 which can conflict with char $ac_func(); below. */
2444#include <assert.h>
2445/* Override any gcc2 internal prototype to avoid an error. */
2446/* We use char because int might match the return type of a gcc2
2447 builtin and then its argument prototype would still apply. */
2448char $ac_func();
2449
7636d567 2450int main() {
956d6950
JL
2451
2452/* The GNU C library defines this for functions which it implements
2453 to always fail with ENOSYS. Some functions are actually named
2454 something starting with __ and the normal name is an alias. */
2455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2456choke me
2457#else
2458$ac_func();
2459#endif
2460
7636d567
JW
2461; return 0; }
2462EOF
128f7968 2463if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7636d567 2464 rm -rf conftest*
956d6950 2465 eval "ac_cv_func_$ac_func=yes"
7636d567
JW
2466else
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 rm -rf conftest*
956d6950 2470 eval "ac_cv_func_$ac_func=no"
7636d567
JW
2471fi
2472rm -f conftest*
2473fi
2474
956d6950
JL
2475if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2476 echo "$ac_t""yes" 1>&6
2477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2478 cat >> confdefs.h <<EOF
2479#define $ac_tr_func 1
2480EOF
2481
2482else
2483 echo "$ac_t""no" 1>&6
2484fi
2485done
2486
0a232106
MH
2487for ac_func in getrlimit
2488do
2489echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2490echo "configure:2491: checking for $ac_func" >&5
0a232106
MH
2491if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493else
2494 cat > conftest.$ac_ext <<EOF
128f7968 2495#line 2496 "configure"
0a232106
MH
2496#include "confdefs.h"
2497/* System header to define __stub macros and hopefully few prototypes,
2498 which can conflict with char $ac_func(); below. */
2499#include <assert.h>
2500/* Override any gcc2 internal prototype to avoid an error. */
2501/* We use char because int might match the return type of a gcc2
2502 builtin and then its argument prototype would still apply. */
2503char $ac_func();
2504
2505int main() {
2506
2507/* The GNU C library defines this for functions which it implements
2508 to always fail with ENOSYS. Some functions are actually named
2509 something starting with __ and the normal name is an alias. */
2510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2511choke me
2512#else
2513$ac_func();
2514#endif
2515
2516; return 0; }
2517EOF
128f7968 2518if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
0a232106
MH
2519 rm -rf conftest*
2520 eval "ac_cv_func_$ac_func=yes"
2521else
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 rm -rf conftest*
2525 eval "ac_cv_func_$ac_func=no"
2526fi
2527rm -f conftest*
2528fi
2529
2530if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2533 cat >> confdefs.h <<EOF
2534#define $ac_tr_func 1
2535EOF
2536
2537else
2538 echo "$ac_t""no" 1>&6
2539fi
2540done
2541
2542for ac_func in setrlimit
2543do
2544echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
128f7968 2545echo "configure:2546: checking for $ac_func" >&5
0a232106
MH
2546if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2547 echo $ac_n "(cached) $ac_c" 1>&6
2548else
2549 cat > conftest.$ac_ext <<EOF
128f7968 2550#line 2551 "configure"
0a232106
MH
2551#include "confdefs.h"
2552/* System header to define __stub macros and hopefully few prototypes,
2553 which can conflict with char $ac_func(); below. */
2554#include <assert.h>
2555/* Override any gcc2 internal prototype to avoid an error. */
2556/* We use char because int might match the return type of a gcc2
2557 builtin and then its argument prototype would still apply. */
2558char $ac_func();
2559
2560int main() {
2561
2562/* The GNU C library defines this for functions which it implements
2563 to always fail with ENOSYS. Some functions are actually named
2564 something starting with __ and the normal name is an alias. */
2565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2566choke me
2567#else
2568$ac_func();
2569#endif
2570
2571; return 0; }
2572EOF
128f7968 2573if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
0a232106
MH
2574 rm -rf conftest*
2575 eval "ac_cv_func_$ac_func=yes"
2576else
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2579 rm -rf conftest*
2580 eval "ac_cv_func_$ac_func=no"
2581fi
2582rm -f conftest*
2583fi
2584
2585if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2588 cat >> confdefs.h <<EOF
2589#define $ac_tr_func 1
2590EOF
2591
2592else
2593 echo "$ac_t""no" 1>&6
2594fi
2595done
2596
7636d567 2597
861bb6c1 2598echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
128f7968 2599echo "configure:2600: checking whether malloc must be declared" >&5
861bb6c1
JL
2600if eval "test \"`echo '$''{'gcc_cv_decl_needed_malloc'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2602else
2603 cat > conftest.$ac_ext <<EOF
128f7968 2604#line 2605 "configure"
861bb6c1
JL
2605#include "confdefs.h"
2606
2607#include <stdio.h>
2608#ifdef HAVE_STRING_H
2609#include <string.h>
2610#else
2611#ifdef HAVE_STRINGS_H
2612#include <strings.h>
2613#endif
2614#endif
2615#ifdef HAVE_STDLIB_H
2616#include <stdlib.h>
2617#endif
2618#ifdef HAVE_UNISTD_H
2619#include <unistd.h>
2620#endif
956d6950
JL
2621#ifndef HAVE_RINDEX
2622#define rindex strrchr
2623#endif
2624#ifndef HAVE_INDEX
2625#define index strchr
2626#endif
861bb6c1
JL
2627int main() {
2628char *(*pfn) = (char *(*)) malloc
2629; return 0; }
2630EOF
128f7968 2631if { (eval echo configure:2632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
861bb6c1
JL
2632 rm -rf conftest*
2633 gcc_cv_decl_needed_malloc=no
2634else
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2637 rm -rf conftest*
2638 gcc_cv_decl_needed_malloc=yes
2639fi
2640rm -f conftest*
2641fi
2642
2643echo "$ac_t""$gcc_cv_decl_needed_malloc" 1>&6
2644if test $gcc_cv_decl_needed_malloc = yes; then
2645 gcc_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2646 cat >> confdefs.h <<EOF
2647#define $gcc_tr_decl 1
2648EOF
2649
2650fi
2651
2652echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
128f7968 2653echo "configure:2654: checking whether realloc must be declared" >&5
861bb6c1
JL
2654if eval "test \"`echo '$''{'gcc_cv_decl_needed_realloc'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2656else
2657 cat > conftest.$ac_ext <<EOF
128f7968 2658#line 2659 "configure"
861bb6c1
JL
2659#include "confdefs.h"
2660
2661#include <stdio.h>
2662#ifdef HAVE_STRING_H
2663#include <string.h>
2664#else
2665#ifdef HAVE_STRINGS_H
2666#include <strings.h>
2667#endif
2668#endif
2669#ifdef HAVE_STDLIB_H
2670#include <stdlib.h>
2671#endif
2672#ifdef HAVE_UNISTD_H
2673#include <unistd.h>
2674#endif
956d6950
JL
2675#ifndef HAVE_RINDEX
2676#define rindex strrchr
2677#endif
2678#ifndef HAVE_INDEX
2679#define index strchr
2680#endif
861bb6c1
JL
2681int main() {
2682char *(*pfn) = (char *(*)) realloc
2683; return 0; }
2684EOF
128f7968 2685if { (eval echo configure:2686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
861bb6c1
JL
2686 rm -rf conftest*
2687 gcc_cv_decl_needed_realloc=no
2688else
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2691 rm -rf conftest*
2692 gcc_cv_decl_needed_realloc=yes
2693fi
2694rm -f conftest*
2695fi
2696
2697echo "$ac_t""$gcc_cv_decl_needed_realloc" 1>&6
2698if test $gcc_cv_decl_needed_realloc = yes; then
2699 gcc_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2700 cat >> confdefs.h <<EOF
2701#define $gcc_tr_decl 1
2702EOF
2703
2704fi
2705
19372aa1 2706echo $ac_n "checking whether calloc must be declared""... $ac_c" 1>&6
128f7968 2707echo "configure:2708: checking whether calloc must be declared" >&5
19372aa1
JW
2708if eval "test \"`echo '$''{'gcc_cv_decl_needed_calloc'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2710else
2711 cat > conftest.$ac_ext <<EOF
128f7968 2712#line 2713 "configure"
19372aa1
JW
2713#include "confdefs.h"
2714
2715#include <stdio.h>
2716#ifdef HAVE_STRING_H
2717#include <string.h>
2718#else
2719#ifdef HAVE_STRINGS_H
2720#include <strings.h>
2721#endif
2722#endif
2723#ifdef HAVE_STDLIB_H
2724#include <stdlib.h>
2725#endif
2726#ifdef HAVE_UNISTD_H
2727#include <unistd.h>
2728#endif
956d6950
JL
2729#ifndef HAVE_RINDEX
2730#define rindex strrchr
2731#endif
2732#ifndef HAVE_INDEX
2733#define index strchr
2734#endif
19372aa1
JW
2735int main() {
2736char *(*pfn) = (char *(*)) calloc
2737; return 0; }
2738EOF
128f7968 2739if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19372aa1
JW
2740 rm -rf conftest*
2741 gcc_cv_decl_needed_calloc=no
2742else
2743 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2745 rm -rf conftest*
2746 gcc_cv_decl_needed_calloc=yes
2747fi
2748rm -f conftest*
2749fi
2750
2751echo "$ac_t""$gcc_cv_decl_needed_calloc" 1>&6
2752if test $gcc_cv_decl_needed_calloc = yes; then
2753 gcc_tr_decl=NEED_DECLARATION_`echo calloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2754 cat >> confdefs.h <<EOF
2755#define $gcc_tr_decl 1
2756EOF
2757
2758fi
2759
861bb6c1 2760echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
128f7968 2761echo "configure:2762: checking whether free must be declared" >&5
861bb6c1
JL
2762if eval "test \"`echo '$''{'gcc_cv_decl_needed_free'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2764else
2765 cat > conftest.$ac_ext <<EOF
128f7968 2766#line 2767 "configure"
861bb6c1
JL
2767#include "confdefs.h"
2768
2769#include <stdio.h>
2770#ifdef HAVE_STRING_H
2771#include <string.h>
2772#else
2773#ifdef HAVE_STRINGS_H
2774#include <strings.h>
2775#endif
2776#endif
2777#ifdef HAVE_STDLIB_H
2778#include <stdlib.h>
2779#endif
2780#ifdef HAVE_UNISTD_H
2781#include <unistd.h>
2782#endif
956d6950
JL
2783#ifndef HAVE_RINDEX
2784#define rindex strrchr
2785#endif
2786#ifndef HAVE_INDEX
2787#define index strchr
2788#endif
861bb6c1
JL
2789int main() {
2790char *(*pfn) = (char *(*)) free
2791; return 0; }
2792EOF
128f7968 2793if { (eval echo configure:2794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
861bb6c1
JL
2794 rm -rf conftest*
2795 gcc_cv_decl_needed_free=no
2796else
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2799 rm -rf conftest*
2800 gcc_cv_decl_needed_free=yes
2801fi
2802rm -f conftest*
2803fi
2804
2805echo "$ac_t""$gcc_cv_decl_needed_free" 1>&6
2806if test $gcc_cv_decl_needed_free = yes; then
2807 gcc_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2808 cat >> confdefs.h <<EOF
2809#define $gcc_tr_decl 1
2810EOF
2811
2812fi
2813
956d6950 2814echo $ac_n "checking whether index must be declared""... $ac_c" 1>&6
128f7968 2815echo "configure:2816: checking whether index must be declared" >&5
956d6950 2816if eval "test \"`echo '$''{'gcc_cv_decl_needed_index'+set}'`\" = set"; then
e3512ac2
JL
2817 echo $ac_n "(cached) $ac_c" 1>&6
2818else
2819 cat > conftest.$ac_ext <<EOF
128f7968 2820#line 2821 "configure"
e3512ac2 2821#include "confdefs.h"
956d6950
JL
2822
2823#include <stdio.h>
2824#ifdef HAVE_STRING_H
2825#include <string.h>
2826#else
2827#ifdef HAVE_STRINGS_H
2828#include <strings.h>
2829#endif
2830#endif
2831#ifdef HAVE_STDLIB_H
2832#include <stdlib.h>
2833#endif
e3512ac2
JL
2834#ifdef HAVE_UNISTD_H
2835#include <unistd.h>
2836#endif
956d6950
JL
2837#ifndef HAVE_RINDEX
2838#define rindex strrchr
2839#endif
2840#ifndef HAVE_INDEX
2841#define index strchr
2842#endif
e3512ac2 2843int main() {
956d6950 2844char *(*pfn) = (char *(*)) index
e3512ac2
JL
2845; return 0; }
2846EOF
128f7968 2847if { (eval echo configure:2848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
e3512ac2 2848 rm -rf conftest*
956d6950 2849 gcc_cv_decl_needed_index=no
e3512ac2
JL
2850else
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2853 rm -rf conftest*
956d6950 2854 gcc_cv_decl_needed_index=yes
e3512ac2
JL
2855fi
2856rm -f conftest*
2857fi
2858
956d6950
JL
2859echo "$ac_t""$gcc_cv_decl_needed_index" 1>&6
2860if test $gcc_cv_decl_needed_index = yes; then
2861 gcc_tr_decl=NEED_DECLARATION_`echo index | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2862 cat >> confdefs.h <<EOF
2863#define $gcc_tr_decl 1
e3512ac2
JL
2864EOF
2865
2866fi
2867
956d6950 2868echo $ac_n "checking whether rindex must be declared""... $ac_c" 1>&6
128f7968 2869echo "configure:2870: checking whether rindex must be declared" >&5
956d6950 2870if eval "test \"`echo '$''{'gcc_cv_decl_needed_rindex'+set}'`\" = set"; then
a63d08e6
JL
2871 echo $ac_n "(cached) $ac_c" 1>&6
2872else
2873 cat > conftest.$ac_ext <<EOF
128f7968 2874#line 2875 "configure"
a63d08e6 2875#include "confdefs.h"
a63d08e6 2876
956d6950
JL
2877#include <stdio.h>
2878#ifdef HAVE_STRING_H
2879#include <string.h>
2880#else
2881#ifdef HAVE_STRINGS_H
2882#include <strings.h>
2883#endif
2884#endif
2885#ifdef HAVE_STDLIB_H
2886#include <stdlib.h>
2887#endif
2888#ifdef HAVE_UNISTD_H
2889#include <unistd.h>
2890#endif
2891#ifndef HAVE_RINDEX
2892#define rindex strrchr
2893#endif
2894#ifndef HAVE_INDEX
2895#define index strchr
2896#endif
a63d08e6 2897int main() {
956d6950
JL
2898char *(*pfn) = (char *(*)) rindex
2899; return 0; }
2900EOF
128f7968 2901if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
956d6950
JL
2902 rm -rf conftest*
2903 gcc_cv_decl_needed_rindex=no
2904else
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2907 rm -rf conftest*
2908 gcc_cv_decl_needed_rindex=yes
2909fi
2910rm -f conftest*
2911fi
a63d08e6 2912
956d6950
JL
2913echo "$ac_t""$gcc_cv_decl_needed_rindex" 1>&6
2914if test $gcc_cv_decl_needed_rindex = yes; then
2915 gcc_tr_decl=NEED_DECLARATION_`echo rindex | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2916 cat >> confdefs.h <<EOF
2917#define $gcc_tr_decl 1
2918EOF
2919
2920fi
2921
2922echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
128f7968 2923echo "configure:2924: checking whether getenv must be declared" >&5
956d6950
JL
2924if eval "test \"`echo '$''{'gcc_cv_decl_needed_getenv'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2926else
2927 cat > conftest.$ac_ext <<EOF
128f7968 2928#line 2929 "configure"
956d6950
JL
2929#include "confdefs.h"
2930
2931#include <stdio.h>
2932#ifdef HAVE_STRING_H
2933#include <string.h>
a63d08e6 2934#else
956d6950
JL
2935#ifdef HAVE_STRINGS_H
2936#include <strings.h>
a63d08e6 2937#endif
956d6950
JL
2938#endif
2939#ifdef HAVE_STDLIB_H
2940#include <stdlib.h>
2941#endif
2942#ifdef HAVE_UNISTD_H
2943#include <unistd.h>
2944#endif
2945#ifndef HAVE_RINDEX
2946#define rindex strrchr
2947#endif
2948#ifndef HAVE_INDEX
2949#define index strchr
2950#endif
2951int main() {
2952char *(*pfn) = (char *(*)) getenv
a63d08e6
JL
2953; return 0; }
2954EOF
128f7968 2955if { (eval echo configure:2956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a63d08e6 2956 rm -rf conftest*
956d6950 2957 gcc_cv_decl_needed_getenv=no
a63d08e6
JL
2958else
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2961 rm -rf conftest*
956d6950 2962 gcc_cv_decl_needed_getenv=yes
a63d08e6
JL
2963fi
2964rm -f conftest*
2965fi
2966
956d6950
JL
2967echo "$ac_t""$gcc_cv_decl_needed_getenv" 1>&6
2968if test $gcc_cv_decl_needed_getenv = yes; then
2969 gcc_tr_decl=NEED_DECLARATION_`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
a63d08e6 2970 cat >> confdefs.h <<EOF
956d6950 2971#define $gcc_tr_decl 1
a63d08e6 2972EOF
956d6950
JL
2973
2974fi
2975
2976
2977echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
128f7968 2978echo "configure:2979: checking for sys_siglist declaration in signal.h or unistd.h" >&5
956d6950
JL
2979if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
a63d08e6 2981else
956d6950 2982 cat > conftest.$ac_ext <<EOF
128f7968 2983#line 2984 "configure"
956d6950
JL
2984#include "confdefs.h"
2985#include <sys/types.h>
2986#include <signal.h>
2987/* NetBSD declares sys_siglist in unistd.h. */
2988#ifdef HAVE_UNISTD_H
2989#include <unistd.h>
2990#endif
2991int main() {
2992char *msg = *(sys_siglist + 1);
2993; return 0; }
2994EOF
128f7968 2995if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
956d6950
JL
2996 rm -rf conftest*
2997 ac_cv_decl_sys_siglist=yes
2998else
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3001 rm -rf conftest*
3002 ac_cv_decl_sys_siglist=no
3003fi
3004rm -f conftest*
3005fi
3006
3007echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3008if test $ac_cv_decl_sys_siglist = yes; then
3009 cat >> confdefs.h <<\EOF
3010#define SYS_SIGLIST_DECLARED 1
3011EOF
3012
a63d08e6 3013fi
a63d08e6
JL
3014
3015
861bb6c1
JL
3016# File extensions
3017manext='.1'
3018objext='.o'
3019
3020
3021
3022build_xm_file=
861bb6c1
JL
3023build_install_headers_dir=install-headers-tar
3024build_exeext=
3025host_xm_file=
3026host_xmake_file=
3027host_truncate_target=
3028
3029# Decode the host machine, then the target machine.
3030# For the host machine, we save the xm_file variable as host_xm_file;
3031# then we decode the target machine and forget everything else
3032# that came from the host machine.
3033for machine in $build $host $target; do
3034
3035 out_file=
3036 xmake_file=
3037 tmake_file=
3038 extra_headers=
3039 extra_passes=
3040 extra_parts=
3041 extra_programs=
3042 extra_objs=
3043 extra_host_objs=
3044 extra_gcc_objs=
3045 float_format=
3046 # Set this to force installation and use of collect2.
3047 use_collect2=
3048 # Set this to override the default target model.
3049 target_cpu_default=
861bb6c1
JL
3050 # Set this to control which fixincludes program to use.
3051 fixincludes=fixincludes
3052 # Set this to control how the header file directory is installed.
3053 install_headers_dir=install-headers-tar
3054 # Set this to a non-empty list of args to pass to cpp if the target
3055 # wants its .md file passed through cpp.
3056 md_cppflags=
3057 # Set this if directory names should be truncated to 14 characters.
3058 truncate_target=
3059 # Set this if gdb needs a dir command with `dirname $out_file`
3060 gdb_needs_out_file_path=
3061 # Set this if the build machine requires executables to have a
3062 # file name suffix.
3063 exeext=
3064
3065 # Set default cpu_type, tm_file and xm_file so it can be updated in
3066 # each machine entry.
3067 cpu_type=`echo $machine | sed 's/-.*$//'`
3068 case $machine in
3069 alpha*-*-*)
3070 cpu_type=alpha
3071 ;;
3072 arm*-*-*)
3073 cpu_type=arm
3074 ;;
3075 c*-convex-*)
3076 cpu_type=convex
3077 ;;
3078 i[3456]86-*-*)
3079 cpu_type=i386
3080 ;;
3081 hppa*-*-*)
3082 cpu_type=pa
3083 ;;
3084 m68000-*-*)
3085 cpu_type=m68k
3086 ;;
3087 mips*-*-*)
3088 cpu_type=mips
3089 ;;
3090 powerpc*-*-*)
3091 cpu_type=rs6000
3092 ;;
3093 pyramid-*-*)
3094 cpu_type=pyr
3095 ;;
3096 sparc*-*-*)
3097 cpu_type=sparc
3098 ;;
3099 esac
3100
3101 tm_file=${cpu_type}/${cpu_type}.h
3102 xm_file=${cpu_type}/xm-${cpu_type}.h
3103
3104 case $machine in
3105 # Support site-specific machine types.
3106 *local*)
3107 cpu_type=`echo $machine | sed -e 's/-.*//'`
3108 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3109 xm_file=${cpu_type}/xm-$rest.h
3110 tm_file=${cpu_type}/$rest.h
3111 if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
3112 then xmake_file=${cpu_type}/x-$rest; \
3113 else true; \
3114 fi
3115 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
3116 then tmake_file=${cpu_type}/t-$rest; \
3117 else true; \
3118 fi
3119 ;;
3120 1750a-*-*)
3121 ;;
3122 a29k-*-bsd* | a29k-*-sym1*)
3123 tm_file="${tm_file} a29k/unix.h"
3124 xm_file=a29k/xm-unix.h
3125 xmake_file=a29k/x-unix
3126 use_collect2=yes
3127 ;;
3128 a29k-*-udi | a29k-*-coff)
3129 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3130 tmake_file=a29k/t-a29kbare
3131 ;;
3132 a29k-*-vxworks*)
3133 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3134 tmake_file=a29k/t-vx29k
3135 extra_parts="crtbegin.o crtend.o"
3136 ;;
3137 a29k-*-*) # Default a29k environment.
3138 use_collect2=yes
3139 ;;
3140 alpha*-*-linux-gnuecoff*)
b0435cf4 3141 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
861bb6c1 3142 xm_file="${xm_file} alpha/xm-linux.h"
861bb6c1
JL
3143 gas=no
3144 xmake_file=none
3145 fixincludes=Makefile.in
3146 gas=yes gnu_ld=yes
3147 ;;
2601ebca 3148 alpha*-*-linux-gnulibc1*)
b0435cf4 3149 tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
2601ebca 3150 xm_file="${xm_file} alpha/xm-linux.h"
2601ebca
JL
3151 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
3152 xmake_file=none
3153 fixincludes=Makefile.in
3154 gas=yes gnu_ld=yes
3155 if [ x$enable_threads = xyes ]; then
3156 thread_file='posix'
3157 fi
3158 ;;
861bb6c1 3159 alpha*-*-linux-gnu*)
b0435cf4 3160 tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
861bb6c1 3161 xm_file="${xm_file} alpha/xm-linux.h"
861bb6c1
JL
3162 tmake_file="t-linux alpha/t-linux"
3163 xmake_file=none
3164 fixincludes=Makefile.in
861bb6c1
JL
3165 gas=yes gnu_ld=yes
3166 if [ x$enable_threads = xyes ]; then
3167 thread_file='posix'
3168 fi
3169 ;;
e9a25f70 3170 alpha*-dec-osf*)
861bb6c1
JL
3171 if [ x$stabs = xyes ]
3172 then
3173 tm_file="${tm_file} dbx.h"
3174 fi
3175 if [ x$gas != xyes ]
3176 then
3177 extra_passes="mips-tfile mips-tdump"
3178 fi
861bb6c1 3179 use_collect2=yes
861bb6c1 3180 case $machine in
e9a25f70 3181 *-*-osf1.2)
b0435cf4 3182 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
e9a25f70
JL
3183 ;;
3184 *-*-osf[23]*)
b0435cf4 3185 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
e9a25f70
JL
3186 ;;
3187 *-*-osf4*)
b0435cf4 3188 tm_file="${tm_file} alpha/osf.h"
e9a25f70
JL
3189 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3190 # a broken tar, so we use cpio instead.
861bb6c1
JL
3191 install_headers_dir=install-headers-cpio
3192 ;;
3193 esac
e9a25f70
JL
3194 case $machine in
3195 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3196 target_cpu_default=MASK_SUPPORT_ARCH
3197 ;;
3198 esac
861bb6c1 3199 ;;
b0435cf4 3200 alpha*-*-winnt*)
861bb6c1 3201 tm_file="${tm_file} alpha/win-nt.h"
861bb6c1
JL
3202 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3203 tmake_file=t-libc-ok
3204 xmake_file=winnt/x-winnt
3205 extra_host_objs=oldnames.o
3206 extra_gcc_objs="spawnv.o oldnames.o"
3207 fixincludes=fixinc.winnt
3208 if [ x$gnu_ld != xyes ]
3209 then
3210 extra_programs=ld.exe
3211 fi
3212 if [ x$enable_threads = xyes ]; then
3213 thread_file='win32'
3214 fi
3215 ;;
3216 alpha*-dec-vms*)
3217 tm_file=alpha/vms.h
3218 xm_file="${xm_file} alpha/xm-vms.h"
3219 tmake_file=alpha/t-vms
3220 fixincludes=Makefile.in
3221 ;;
66ed0683
JL
3222 arc-*-elf*)
3223 extra_parts="crtinit.o crtfini.o"
3224 ;;
861bb6c1
JL
3225 arm-*-coff* | armel-*-coff*)
3226 tm_file=arm/coff.h
3227 tmake_file=arm/t-bare
3228 ;;
3229 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3230 tm_file=arm/riscix1-1.h
3231 use_collect2=yes
3232 ;;
3233 arm-*-riscix*) # Acorn RISC machine
3234 if [ x$gas = xyes ]
3235 then
3236 tm_file=arm/rix-gas.h
3237 else
3238 tm_file=arm/riscix.h
3239 fi
3240 xmake_file=arm/x-riscix
3241 tmake_file=arm/t-riscix
3242 use_collect2=yes
3243 ;;
3244 arm-semi-aout | armel-semi-aout)
3245 tm_file=arm/semi.h
3246 tmake_file=arm/t-semi
3247 fixincludes=Makefile.in # There is nothing to fix
3248 ;;
3249 arm-semi-aof | armel-semi-aof)
3250 tm_file=arm/semiaof.h
3251 tmake_file=arm/t-semiaof
3252 fixincludes=Makefile.in # There is nothing to fix
3253 ;;
3254 arm-*-netbsd*)
3255 tm_file=arm/netbsd.h
3256 xm_file=arm/xm-netbsd.h
e9a25f70 3257 tmake_file="t-netbsd arm/t-netbsd"
be1ed94f
JL
3258 # On NetBSD, the headers are already okay, except for math.h.
3259 fixincludes=fixinc.math
861bb6c1 3260 ;;
956d6950 3261 arm-*-linux-gnuaout*) # ARM GNU/Linux
861bb6c1
JL
3262 cpu_type=arm
3263 xm_file=arm/xm-linux.h
3264 xmake_file=x-linux
3265 tm_file=arm/linux-gas.h
3266 tmake_file=arm/t-linux
3267 fixincludes=Makefile.in
861bb6c1
JL
3268 gnu_ld=yes
3269 ;;
3270 arm-*-aout)
3271 tm_file=arm/aout.h
e9a25f70 3272 tmake_file=arm/t-bare
861bb6c1
JL
3273 ;;
3274 c1-convex-*) # Convex C1
3275 target_cpu_default=1
3276 use_collect2=yes
3277 fixincludes=Makefile.in
3278 ;;
3279 c2-convex-*) # Convex C2
3280 target_cpu_default=2
3281 use_collect2=yes
3282 fixincludes=Makefile.in
3283 ;;
3284 c32-convex-*)
3285 target_cpu_default=4
3286 use_collect2=yes
3287 fixincludes=Makefile.in
3288 ;;
3289 c34-convex-*)
3290 target_cpu_default=8
3291 use_collect2=yes
3292 fixincludes=Makefile.in
3293 ;;
3294 c38-convex-*)
3295 target_cpu_default=16
3296 use_collect2=yes
3297 fixincludes=Makefile.in
3298 ;;
3299 clipper-intergraph-clix*)
3300 tm_file="${tm_file} svr3.h clipper/clix.h"
3301 xm_file=clipper/xm-clix.h
3302 xmake_file=clipper/x-clix
3303 extra_headers=va-clipper.h
3304 extra_parts="crtbegin.o crtend.o"
3305 install_headers_dir=install-headers-cpio
861bb6c1
JL
3306 ;;
3307 dsp16xx-*)
3308 ;;
3309 elxsi-elxsi-*)
3310 use_collect2=yes
3311 ;;
3312# This hasn't been upgraded to GCC 2.
3313# fx80-alliant-*) # Alliant FX/80
3314# ;;
3315 h8300-*-*)
3316 float_format=i32
3317 ;;
3318 hppa1.1-*-pro*)
3319 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3320 xm_file=pa/xm-papro.h
3321 tmake_file=pa/t-pro
3322 ;;
3323 hppa1.1-*-osf*)
3324 target_cpu_default=1
3325 tm_file="${tm_file} pa/pa-osf.h"
3326 use_collect2=yes
3327 fixincludes=Makefile.in
3328 ;;
3329 hppa1.1-*-rtems*)
3330 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3331 xm_file=pa/xm-papro.h
3332 tmake_file=pa/t-pro
3333 ;;
3334 hppa1.0-*-osf*)
3335 tm_file="${tm_file} pa/pa-osf.h"
3336 use_collect2=yes
3337 fixincludes=Makefile.in
3338 ;;
3339 hppa1.1-*-bsd*)
3340 target_cpu_default=1
3341 use_collect2=yes
3342 fixincludes=Makefile.in
3343 ;;
3344 hppa1.0-*-bsd*)
3345 use_collect2=yes
3346 fixincludes=Makefile.in
3347 ;;
3348 hppa1.0-*-hpux7*)
3349 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3350 xm_file=pa/xm-pahpux.h
3351 xmake_file=pa/x-pa-hpux
3352 if [ x$gas = xyes ]
3353 then
3354 tm_file="${tm_file} pa/gas.h"
3355 fi
861bb6c1
JL
3356 install_headers_dir=install-headers-cpio
3357 use_collect2=yes
3358 ;;
3359 hppa1.0-*-hpux8.0[0-2]*)
3360 tm_file="${tm_file} pa/pa-hpux.h"
3361 xm_file=pa/xm-pahpux.h
3362 xmake_file=pa/x-pa-hpux
3363 if [ x$gas = xyes ]
3364 then
3365 tm_file="${tm_file} pa/pa-gas.h"
3366 else
3367 tm_file="pa/pa-oldas.h ${tm_file}"
3368 fi
861bb6c1
JL
3369 install_headers_dir=install-headers-cpio
3370 use_collect2=yes
3371 ;;
3372 hppa1.1-*-hpux8.0[0-2]*)
3373 target_cpu_default=1
3374 tm_file="${tm_file} pa/pa-hpux.h"
3375 xm_file=pa/xm-pahpux.h
3376 xmake_file=pa/x-pa-hpux
3377 if [ x$gas = xyes ]
3378 then
3379 tm_file="${tm_file} pa/pa-gas.h"
3380 else
3381 tm_file="pa/pa-oldas.h ${tm_file}"
3382 fi
861bb6c1
JL
3383 install_headers_dir=install-headers-cpio
3384 use_collect2=yes
3385 ;;
3386 hppa1.1-*-hpux8*)
3387 target_cpu_default=1
3388 tm_file="${tm_file} pa/pa-hpux.h"
3389 xm_file=pa/xm-pahpux.h
3390 xmake_file=pa/x-pa-hpux
3391 if [ x$gas = xyes ]
3392 then
3393 tm_file="${tm_file} pa/pa-gas.h"
3394 fi
861bb6c1
JL
3395 install_headers_dir=install-headers-cpio
3396 use_collect2=yes
3397 ;;
3398 hppa1.0-*-hpux8*)
3399 tm_file="${tm_file} pa/pa-hpux.h"
3400 xm_file=pa/xm-pahpux.h
3401 xmake_file=pa/x-pa-hpux
3402 if [ x$gas = xyes ]
3403 then
3404 tm_file="${tm_file} pa/pa-gas.h"
3405 fi
861bb6c1
JL
3406 install_headers_dir=install-headers-cpio
3407 use_collect2=yes
3408 ;;
3409 hppa1.1-*-hpux10*)
3410 target_cpu_default=1
3411 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3412 xm_file=pa/xm-pahpux.h
3413 xmake_file=pa/x-pa-hpux
f24af81b 3414 tmake_file=pa/t-pa
861bb6c1
JL
3415 if [ x$gas = xyes ]
3416 then
3417 tm_file="${tm_file} pa/pa-gas.h"
3418 fi
f24af81b
TT
3419 if [ x$enable_threads = x ]; then
3420 enable_threads=$have_pthread_h
3421 fi
3422 if [ x$enable_threads = xyes ]; then
3423 thread_file='dce'
3424 tmake_file="${tmake_file} pa/t-dce-thr"
3425 fi
861bb6c1
JL
3426 install_headers_dir=install-headers-cpio
3427 use_collect2=yes
3428 ;;
3429 hppa1.0-*-hpux10*)
3430 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3431 xm_file=pa/xm-pahpux.h
3432 xmake_file=pa/x-pa-hpux
3433 if [ x$gas = xyes ]
3434 then
3435 tm_file="${tm_file} pa/pa-gas.h"
3436 fi
861bb6c1
JL
3437 install_headers_dir=install-headers-cpio
3438 use_collect2=yes
3439 ;;
3440 hppa1.1-*-hpux*)
3441 target_cpu_default=1
3442 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3443 xm_file=pa/xm-pahpux.h
3444 xmake_file=pa/x-pa-hpux
3445 if [ x$gas = xyes ]
3446 then
3447 tm_file="${tm_file} pa/pa-gas.h"
3448 fi
861bb6c1
JL
3449 install_headers_dir=install-headers-cpio
3450 use_collect2=yes
3451 ;;
3452 hppa1.0-*-hpux*)
3453 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3454 xm_file=pa/xm-pahpux.h
3455 xmake_file=pa/x-pa-hpux
3456 if [ x$gas = xyes ]
3457 then
3458 tm_file="${tm_file} pa/pa-gas.h"
3459 fi
861bb6c1
JL
3460 install_headers_dir=install-headers-cpio
3461 use_collect2=yes
3462 ;;
3463 hppa1.1-*-hiux*)
3464 target_cpu_default=1
3465 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3466 xm_file=pa/xm-pahpux.h
3467 xmake_file=pa/x-pa-hpux
3468 if [ x$gas = xyes ]
3469 then
3470 tm_file="${tm_file} pa/pa-gas.h"
3471 fi
861bb6c1
JL
3472 install_headers_dir=install-headers-cpio
3473 use_collect2=yes
3474 ;;
3475 hppa1.0-*-hiux*)
3476 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3477 xm_file=pa/xm-pahpux.h
3478 xmake_file=pa/x-pa-hpux
3479 if [ x$gas = xyes ]
3480 then
3481 tm_file="${tm_file} pa/pa-gas.h"
3482 fi
861bb6c1
JL
3483 install_headers_dir=install-headers-cpio
3484 use_collect2=yes
3485 ;;
3486 hppa*-*-lites*)
3487 target_cpu_default=1
3488 use_collect2=yes
3489 fixincludes=Makefile.in
3490 ;;
3491 i370-*-mvs*)
3492 ;;
3493 i[3456]86-ibm-aix*) # IBM PS/2 running AIX
3494 if [ x$gas = xyes ]
3495 then
3496 tm_file=i386/aix386.h
3497 extra_parts="crtbegin.o crtend.o"
3498 tmake_file=i386/t-crtstuff
3499 else
3500 tm_file=i386/aix386ng.h
3501 use_collect2=yes
3502 fi
3503 xm_file=i386/xm-aix.h
3504 xmake_file=i386/x-aix
861bb6c1 3505 ;;
b4dfb707 3506 i[456]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
861bb6c1
JL
3507 xm_file=i386/xm-sysv4.h
3508 xmake_file=i386/x-ncr3000
3509 if [ x$stabs = xyes -a x$gas = xyes ]
3510 then
3511 tm_file=i386/sysv4gdb.h
3512 else
3513 tm_file=i386/sysv4.h
3514 fi
3515 extra_parts="crtbegin.o crtend.o"
3516 tmake_file=i386/t-crtpic
3517 ;;
3518 i[3456]86-next-*)
3519 tm_file=i386/next.h
3520 xm_file=i386/xm-next.h
3521 tmake_file=i386/t-next
3522 xmake_file=i386/x-next
3523 extra_objs=nextstep.o
3524 if [ x$enable_threads = xyes ]; then
3525 thread_file='mach'
3526 fi
3527 ;;
3528 i[3456]86-sequent-bsd*) # 80386 from Sequent
3529 use_collect2=yes
3530 if [ x$gas = xyes ]
3531 then
3532 tm_file=i386/seq-gas.h
3533 else
3534 tm_file=i386/sequent.h
3535 fi
3536 ;;
3537 i[3456]86-sequent-ptx1*)
3538 xm_file=i386/xm-sysv3.h
3539 xmake_file=i386/x-sysv3
3540 tm_file=i386/seq-sysv3.h
3541 tmake_file=i386/t-crtstuff
3542 fixincludes=fixinc.ptx
3543 extra_parts="crtbegin.o crtend.o"
3544 install_headers_dir=install-headers-cpio
861bb6c1
JL
3545 ;;
3546 i[3456]86-sequent-ptx2* | i[3456]86-sequent-sysv3*)
3547 xm_file=i386/xm-sysv3.h
3548 xmake_file=i386/x-sysv3
3549 tm_file=i386/seq2-sysv3.h
3550 tmake_file=i386/t-crtstuff
3551 extra_parts="crtbegin.o crtend.o"
3552 fixincludes=fixinc.ptx
3553 install_headers_dir=install-headers-cpio
861bb6c1
JL
3554 ;;
3555 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4*)
3556 xm_file=i386/xm-sysv4.h
3557 xmake_file=x-svr4
3558 tm_file=i386/ptx4-i.h
3559 tmake_file=t-svr4
3560 extra_parts="crtbegin.o crtend.o"
3561 fixincludes=fixinc.ptx
3562 install_headers_dir=install-headers-cpio
861bb6c1
JL
3563 ;;
3564 i386-sun-sunos*) # Sun i386 roadrunner
3565 xm_file=i386/xm-sun.h
3566 tm_file=i386/sun.h
3567 use_collect2=yes
3568 ;;
3569 i[3456]86-*-aout*)
3570 tm_file=i386/i386-aout.h
3571 tmake_file=i386/t-i386bare
3572 ;;
3573 i[3456]86-*-bsdi* | i[345]86-*-bsd386*)
3574 tm_file=i386/bsd386.h
3575 xm_file=i386/xm-bsd386.h
3576# tmake_file=t-libc-ok
3577 ;;
3578 i[3456]86-*-bsd*)
3579 tm_file=i386/386bsd.h
3580 xm_file=i386/xm-bsd386.h
3581# tmake_file=t-libc-ok
3582# Next line turned off because both 386BSD and BSD/386 use GNU ld.
3583# use_collect2=yes
3584 ;;
3585 i[3456]86-*-freebsdelf*)
3586 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
be1ed94f
JL
3587 # On FreeBSD, the headers are already ok, except for math.h.
3588 fixincludes=fixinc.math
861bb6c1
JL
3589 tmake_file=i386/t-freebsd
3590 gas=yes
3591 gnu_ld=yes
3592 stabs=yes
3593 ;;
3594 i[3456]86-*-freebsd*)
3595 tm_file=i386/freebsd.h
ca55abae 3596 # On FreeBSD, the headers are already ok, except for math.h.
be1ed94f 3597 fixincludes=fixinc.math
861bb6c1
JL
3598 tmake_file=i386/t-freebsd
3599 ;;
3600 i[3456]86-*-netbsd*)
3601 tm_file=i386/netbsd.h
be1ed94f
JL
3602 # On NetBSD, the headers are already okay, except for math.h.
3603 fixincludes=fixinc.math
861bb6c1
JL
3604 tmake_file=t-netbsd
3605 ;;
3606 i[3456]86-*-coff*)
3607 tm_file=i386/i386-coff.h
3608 tmake_file=i386/t-i386bare
3609 ;;
3610 i[3456]86-*-isc*) # 80386 running ISC system
3611 xm_file=i386/xm-isc.h
3612 case $machine in
3613 i[345]86-*-isc[34]*)
3614 xmake_file=i386/x-isc3
3615 ;;
3616 *)
3617 xmake_file=i386/x-isc
3618 ;;
3619 esac
3620 if [ x$gas = xyes -a x$stabs = xyes ]
3621 then
3622 tm_file=i386/iscdbx.h
3623 tmake_file=i386/t-svr3dbx
3624 extra_parts="svr3.ifile svr3z.ifile"
3625 else
3626 tm_file=i386/isccoff.h
3627 tmake_file=i386/t-crtstuff
3628 extra_parts="crtbegin.o crtend.o"
3629 fi
3630 install_headers_dir=install-headers-cpio
861bb6c1 3631 ;;
956d6950 3632 i[3456]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
861bb6c1
JL
3633 xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
3634 xmake_file=x-linux-aout
3635 tmake_file="t-linux-aout i386/t-crtstuff"
3636 tm_file=i386/linux-oldld.h
3637 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
3638 gnu_ld=yes
3639 ;;
956d6950 3640 i[3456]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
861bb6c1
JL
3641 xm_file=i386/xm-linux.h # with a.out format
3642 xmake_file=x-linux-aout
3643 tmake_file="t-linux-aout i386/t-crtstuff"
3644 tm_file=i386/linux-aout.h
3645 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
3646 gnu_ld=yes
3647 ;;
3648 i[3456]86-*-linux-gnulibc1)
956d6950 3649 xm_file=i386/xm-linux.h # Intel 80386's running GNU/Linux
861bb6c1 3650 xmake_file=x-linux # with ELF format using the
956d6950 3651 tm_file=i386/linux.h # GNU/Linux C library 5
861bb6c1
JL
3652 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3653 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3654 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
3655 gnu_ld=yes
3656 if [ x$enable_threads = xyes ]; then
3657 thread_file='single'
3658 fi
3659 ;;
956d6950 3660 i[3456]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
861bb6c1 3661 xm_file=i386/xm-linux.h # with ELF format using glibc 2
956d6950 3662 xmake_file=x-linux # aka GNU/Linux C library 6
861bb6c1
JL
3663 tm_file=i386/linux.h
3664 tmake_file="t-linux i386/t-crtstuff"
3665 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3666 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
3667 gnu_ld=yes
3668 if [ x$enable_threads = xyes ]; then
3669 thread_file='posix'
3670 fi
3671 ;;
3672 i[3456]86-*-gnu*)
3673 ;;
3674 i[3456]86-go32-msdos | i[3456]86-*-go32*)
3675 xm_file=i386/xm-go32.h
3676 tm_file=i386/go32.h
3677 tmake_file=i386/t-go32
3678 ;;
3679 i[3456]86-moss-msdos* | i[3456]86-*-moss*)
3680 tm_file=i386/moss.h
3681 tmake_file=t-libc-ok
3682 fixincludes=Makefile.in
3683 gnu_ld=yes
3684 gas=yes
3685 ;;
3686 i[3456]86-*-lynxos*)
3687 if [ x$gas = xyes ]
3688 then
3689 tm_file=i386/lynx.h
3690 else
3691 tm_file=i386/lynx-ng.h
3692 fi
3693 xm_file=i386/xm-lynx.h
3694 tmake_file=i386/t-i386bare
3695 xmake_file=x-lynx
3696 ;;
3697 i[3456]86-*-mach*)
3698 tm_file=i386/mach.h
3699# tmake_file=t-libc-ok
3700 use_collect2=yes
3701 ;;
3702 i[3456]86-*-osfrose*) # 386 using OSF/rose
3703 if [ x$elf = xyes ]
3704 then
3705 tm_file=i386/osfelf.h
3706 use_collect2=
3707 else
3708 tm_file=i386/osfrose.h
3709 use_collect2=yes
3710 fi
3711 xm_file=i386/xm-osf.h
3712 xmake_file=i386/x-osfrose
3713 tmake_file=i386/t-osf
3714 extra_objs=halfpic.o
3715 ;;
3716 i[345]86-go32-rtems*)
3717 cpu_type=i386
3718 xm_file=i386/xm-go32.h
3719 tm_file=i386/go32-rtems.h
3720 tmake_file="i386/t-go32 t-rtems"
3721 ;;
3722 i[345]86-*-rtems*)
3723 cpu_type=i386
3724 tm_file=i386/rtems.h
3725 tmake_file="i386/t-i386bare t-rtems"
3726 ;;
3727 i[3456]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3728 xm_file=i386/xm-sco5.h
3729 xmake_file=i386/x-sco5
3730 fixincludes=fixinc.sco
f6857708 3731 install_headers_dir=install-headers-cpio
861bb6c1
JL
3732 tm_file=i386/sco5.h
3733 tmake_file=i386/t-sco5
3734 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3735 ;;
3736 i[3456]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3737 xm_file=i386/xm-sco.h
3738 xmake_file=i386/x-sco4
3739 fixincludes=fixinc.sco
861bb6c1
JL
3740 install_headers_dir=install-headers-cpio
3741 if [ x$stabs = xyes ]
3742 then
3743 tm_file=i386/sco4dbx.h
3744 tmake_file=i386/t-svr3dbx
3745 extra_parts="svr3.ifile svr3z.rfile"
3746 else
3747 tm_file=i386/sco4.h
3748 tmake_file=i386/t-crtstuff
3749 extra_parts="crtbegin.o crtend.o"
3750 fi
3751 truncate_target=yes
3752 ;;
3753 i[3456]86-*-sco*) # 80386 running SCO system
3754 xm_file=i386/xm-sco.h
3755 xmake_file=i386/x-sco
861bb6c1
JL
3756 install_headers_dir=install-headers-cpio
3757 if [ x$stabs = xyes ]
3758 then
3759 tm_file=i386/scodbx.h
3760 tmake_file=i386/t-svr3dbx
3761 extra_parts="svr3.ifile svr3z.rfile"
3762 else
3763 tm_file=i386/sco.h
3764 extra_parts="crtbegin.o crtend.o"
3765 tmake_file=i386/t-crtstuff
3766 fi
3767 truncate_target=yes
3768 ;;
3769 i[3456]86-*-solaris2*)
3770 xm_file=i386/xm-sysv4.h
3771 if [ x$stabs = xyes ]
3772 then
3773 tm_file=i386/sol2dbg.h
3774 else
3775 tm_file=i386/sol2.h
3776 fi
3777 tmake_file=i386/t-sol2
3778 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
3779 xmake_file=x-svr4
3780 fixincludes=fixinc.svr4
e9a25f70 3781 broken_install=yes
861bb6c1
JL
3782 if [ x$enable_threads = xyes ]; then
3783 thread_file='solaris'
3784 fi
3785 ;;
3786 i[3456]86-*-sysv4*) # Intel 80386's running system V.4
3787 xm_file=i386/xm-sysv4.h
3788 tm_file=i386/sysv4.h
3789 if [ x$stabs = xyes ]
3790 then
3791 tm_file="${tm_file} dbx.h"
3792 fi
3793 tmake_file=i386/t-crtpic
3794 xmake_file=x-svr4
3795 extra_parts="crtbegin.o crtend.o"
3796 ;;
3797 i[3456]86-*-sysv*) # Intel 80386's running system V
3798 xm_file=i386/xm-sysv3.h
3799 xmake_file=i386/x-sysv3
3800 if [ x$gas = xyes ]
3801 then
3802 if [ x$stabs = xyes ]
3803 then
3804 tm_file=i386/svr3dbx.h
3805 tmake_file=i386/t-svr3dbx
3806 extra_parts="svr3.ifile svr3z.rfile"
3807 else
3808 tm_file=i386/svr3gas.h
3809 extra_parts="crtbegin.o crtend.o"
3810 tmake_file=i386/t-crtstuff
3811 fi
3812 else
3813 tm_file=i386/sysv3.h
3814 extra_parts="crtbegin.o crtend.o"
3815 tmake_file=i386/t-crtstuff
3816 fi
3817 ;;
3818 i386-*-vsta) # Intel 80386's running VSTa kernel
3819 xm_file=i386/xm-vsta.h
3820 tm_file=i386/vsta.h
3821 tmake_file=i386/t-vsta
3822 xmake_file=i386/x-vsta
3823 ;;
3824 i[3456]86-*-pe | i[3456]86-*-cygwin32)
3825 xm_file="${xm_file} i386/xm-cygwin32.h"
3826 tmake_file=i386/t-cygwin32
3827 tm_file=i386/cygwin32.h
3828 xmake_file=i386/x-cygwin32
3829 extra_objs=winnt.o
3830 fixincludes=Makefile.in
3831 if [ x$enable_threads = xyes ]; then
3832 thread_file='win32'
3833 fi
3834 exeext=.exe
3835 ;;
3836 i[3456]86-*-mingw32)
3837 tm_file=i386/mingw32.h
3838 xm_file="${xm_file} i386/xm-mingw32.h"
3839 tmake_file=i386/t-cygwin32
3840 extra_objs=winnt.o
3841 xmake_file=i386/x-cygwin32
3842 fixincludes=Makefile.in
3843 if [ x$enable_threads = xyes ]; then
3844 thread_file='win32'
3845 fi
3846 exeext=.exe
3847 ;;
b0435cf4 3848 i[3456]86-*-winnt*)
861bb6c1
JL
3849 tm_file=i386/win-nt.h
3850 out_file=i386/i386.c
3851 xm_file=i386/xm-winnt.h
3852 xmake_file=winnt/x-winnt
3853 tmake_file=i386/t-winnt
3854 extra_host_objs="winnt.o oldnames.o"
3855 extra_gcc_objs="spawnv.o oldnames.o"
3856 fixincludes=fixinc.winnt
3857 if [ x$gnu_ld != xyes ]
3858 then
3859 extra_programs=ld.exe
3860 fi
3861 if [ x$enable_threads = xyes ]; then
3862 thread_file='win32'
3863 fi
3864 ;;
3865 i[3456]86-dg-dgux)
3866 xm_file=i386/xm-dgux.h
3867 out_file=i386/dgux.c
3868 tm_file=i386/dgux.h
3869 tmake_file=i386/t-dgux
3870 xmake_file=i386/x-dgux
3871 fixincludes=fixinc.dgux
3872 install_headers_dir=install-headers-cpio
3873 ;;
3874 i860-alliant-*) # Alliant FX/2800
3875 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
956d6950 3876 xm_file="${xm_file}"
861bb6c1
JL
3877 xmake_file=i860/x-fx2800
3878 tmake_file=i860/t-fx2800
3879 extra_parts="crtbegin.o crtend.o"
3880 ;;
3881 i860-*-bsd*)
3882 tm_file="${tm_file} i860/bsd.h"
3883 if [ x$gas = xyes ]
3884 then
3885 tm_file="${tm_file} i860/bsd-gas.h"
3886 fi
3887 use_collect2=yes
3888 ;;
3889 i860-*-mach*)
3890 tm_file="${tm_file} i860/mach.h"
3891 tmake_file=t-libc-ok
3892 ;;
3893 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3894 tm_file="${tm_file} svr3.h i860/paragon.h"
3895 xm_file="${xm_file} xm-svr3.h"
3896 tmake_file=t-osf
861bb6c1
JL
3897 ;;
3898 i860-*-sysv3*)
3899 tm_file="${tm_file} svr3.h i860/sysv3.h"
3900 xm_file="${tm_file} xm-svr3.h"
3901 xmake_file=i860/x-sysv3
3902 extra_parts="crtbegin.o crtend.o"
3903 ;;
3904 i860-*-sysv4*)
3905 tm_file="${tm_file} svr4.h i860/sysv4.h"
3906 xm_file="${xm_file} xm-svr3.h"
3907 xmake_file=i860/x-sysv4
3908 tmake_file=t-svr4
3909 extra_parts="crtbegin.o crtend.o"
3910 ;;
3911 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
3912 tm_file="${tm_file} i960/vx960.h"
3913 tmake_file=i960/t-vxworks960
3914 use_collect2=yes
3915 ;;
3916 i960-wrs-vxworks5*)
3917 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3918 tmake_file=i960/t-vxworks960
3919 use_collect2=yes
3920 ;;
3921 i960-wrs-vxworks*)
3922 tm_file="${tm_file} i960/vx960.h"
3923 tmake_file=i960/t-vxworks960
3924 use_collect2=yes
3925 ;;
3926 i960-*-coff*)
3927 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3928 tmake_file=i960/t-960bare
3929 use_collect2=yes
3930 ;;
3931 i960-*-rtems)
3932 tmake_file="i960/t-960bare t-rtems"
3933 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3934 use_collect2=yes
3935 ;;
3936 i960-*-*) # Default i960 environment.
3937 use_collect2=yes
3938 ;;
3939 m32r-*-elf*)
3940 extra_parts="crtinit.o crtfini.o"
3941 ;;
3942 m68000-convergent-sysv*)
3943 tm_file=m68k/ctix.h
3944 xm_file=m68k/xm-3b1.h
3945 use_collect2=yes
3946 extra_headers=math-68881.h
3947 ;;
3948 m68000-hp-bsd*) # HP 9000/200 running BSD
3949 tm_file=m68k/hp2bsd.h
3950 xmake_file=m68k/x-hp2bsd
3951 use_collect2=yes
3952 extra_headers=math-68881.h
3953 ;;
3954 m68000-hp-hpux*) # HP 9000 series 300
3955 xm_file=m68k/xm-hp320.h
3956 if [ x$gas = xyes ]
3957 then
3958 xmake_file=m68k/x-hp320g
3959 tm_file=m68k/hp310g.h
3960 else
3961 xmake_file=m68k/x-hp320
3962 tm_file=m68k/hp310.h
3963 fi
861bb6c1
JL
3964 install_headers_dir=install-headers-cpio
3965 use_collect2=yes
3966 extra_headers=math-68881.h
3967 ;;
3968 m68000-sun-sunos3*)
3969 tm_file=m68k/sun2.h
3970 use_collect2=yes
3971 extra_headers=math-68881.h
3972 ;;
3973 m68000-sun-sunos4*)
3974 tm_file=m68k/sun2o4.h
3975 use_collect2=yes
3976 extra_headers=math-68881.h
3977 ;;
3978 m68000-att-sysv*)
3979 xm_file=m68k/xm-3b1.h
3980 if [ x$gas = xyes ]
3981 then
3982 tm_file=m68k/3b1g.h
3983 else
3984 tm_file=m68k/3b1.h
3985 fi
3986 use_collect2=yes
3987 extra_headers=math-68881.h
3988 ;;
3989 m68k-apple-aux*) # Apple Macintosh running A/UX
3990 xm_file=m68k/xm-aux.h
3991 tmake_file=m68k/t-aux
861bb6c1
JL
3992 install_headers_dir=install-headers-cpio
3993 extra_headers=math-68881.h
3994 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3995 tm_file=
3996 if [ "$gnu_ld" = yes ]
3997 then
3998 tm_file="${tm_file} m68k/auxgld.h"
3999 else
4000 tm_file="${tm_file} m68k/auxld.h"
4001 fi
4002 if [ "$gas" = yes ]
4003 then
4004 tm_file="${tm_file} m68k/auxgas.h"
4005 else
4006 tm_file="${tm_file} m68k/auxas.h"
4007 fi
4008 tm_file="${tm_file} m68k/a-ux.h"
4009 ;;
4010 m68k-apollo-*)
4011 tm_file=m68k/apollo68.h
4012 xmake_file=m68k/x-apollo68
4013 use_collect2=yes
4014 extra_headers=math-68881.h
4015 ;;
4016 m68k-altos-sysv*) # Altos 3068
4017 if [ x$gas = xyes ]
4018 then
4019 tm_file=m68k/altos3068.h
4020 xm_file=m68k/xm-altos3068.h
4021 else
4022 echo "The Altos is supported only with the GNU assembler" 1>&2
4023 exit 1
4024 fi
4025 extra_headers=math-68881.h
4026 ;;
4027 m68k-bull-sysv*) # Bull DPX/2
4028 if [ x$gas = xyes ]
4029 then
4030 if [ x$stabs = xyes ]
4031 then
4032 tm_file=m68k/dpx2cdbx.h
4033 else
4034 tm_file=m68k/dpx2g.h
4035 fi
4036 else
4037 tm_file=m68k/dpx2.h
4038 fi
4039 xm_file=m68k/xm-m68kv.h
4040 xmake_file=m68k/x-dpx2
4041 use_collect2=yes
4042 extra_headers=math-68881.h
4043 ;;
4044 m68k-atari-sysv4*) # Atari variant of V.4.
4045 tm_file=m68k/atari.h
4046 xm_file=m68k/xm-atari.h
4047 tmake_file=t-svr4
4048 extra_parts="crtbegin.o crtend.o"
4049 extra_headers=math-68881.h
4050 ;;
4051 m68k-motorola-sysv*)
4052 tm_file=m68k/mot3300.h
4053 xm_file=m68k/xm-mot3300.h
4054 if [ x$gas = xyes ]
4055 then
4056 xmake_file=m68k/x-mot3300-gas
4057 if [ x$gnu_ld = xyes ]
4058 then
4059 tmake_file=m68k/t-mot3300-gald
4060 else
4061 tmake_file=m68k/t-mot3300-gas
4062 use_collect2=yes
4063 fi
4064 else
4065 xmake_file=m68k/x-mot3300
4066 if [ x$gnu_ld = xyes ]
4067 then
4068 tmake_file=m68k/t-mot3300-gld
4069 else
4070 tmake_file=m68k/t-mot3300
4071 use_collect2=yes
4072 fi
4073 fi
4074 gdb_needs_out_file_path=yes
4075 extra_parts="crt0.o mcrt0.o"
4076 extra_headers=math-68881.h
4077 ;;
4078 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4079 tm_file=m68k/tower-as.h
956d6950 4080 xm_file="${xm_file} xm-svr3.h"
861bb6c1
JL
4081 xmake_file=m68k/x-tower
4082 extra_parts="crtbegin.o crtend.o"
4083 extra_headers=math-68881.h
4084 ;;
4085 m68k-plexus-sysv*)
4086 tm_file=m68k/plexus.h
4087 xm_file=m68k/xm-plexus.h
4088 use_collect2=yes
4089 extra_headers=math-68881.h
4090 ;;
4091 m68k-tti-*)
4092 tm_file=m68k/pbb.h
4093 xm_file=m68k/xm-m68kv.h
4094 extra_headers=math-68881.h
4095 ;;
4096 m68k-crds-unos*)
4097 xm_file=m68k/xm-crds.h
4098 xmake_file=m68k/x-crds
4099 tm_file=m68k/crds.h
861bb6c1
JL
4100 use_collect2=yes
4101 extra_headers=math-68881.h
4102 ;;
4103 m68k-cbm-sysv4*) # Commodore variant of V.4.
4104 tm_file=m68k/amix.h
4105 xm_file=m68k/xm-amix.h
4106 xmake_file=m68k/x-amix
4107 tmake_file=t-svr4
4108 extra_parts="crtbegin.o crtend.o"
4109 extra_headers=math-68881.h
4110 ;;
4111 m68k-ccur-rtu)
4112 tm_file=m68k/ccur-GAS.h
4113 xmake_file=m68k/x-ccur
4114 extra_headers=math-68881.h
4115 use_collect2=yes
861bb6c1
JL
4116 ;;
4117 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4118 tm_file=m68k/hp3bsd44.h
4119 xmake_file=m68k/x-hp3bsd44
4120 use_collect2=yes
4121 extra_headers=math-68881.h
4122 ;;
4123 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4124 tm_file=m68k/hp3bsd.h
4125 use_collect2=yes
4126 extra_headers=math-68881.h
4127 ;;
4128 m68k-isi-bsd*)
4129 if [ x$with_fp = xno ]
4130 then
4131 tm_file=m68k/isi-nfp.h
4132 else
4133 tm_file=m68k/isi.h
4134 fi
4135 use_collect2=yes
4136 extra_headers=math-68881.h
4137 ;;
4138 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4139 xm_file=m68k/xm-hp320.h
4140 if [ x$gas = xyes ]
4141 then
4142 xmake_file=m68k/x-hp320g
4143 tm_file=m68k/hp320g.h
4144 else
4145 xmake_file=m68k/x-hp320
4146 tm_file=m68k/hpux7.h
4147 fi
861bb6c1
JL
4148 install_headers_dir=install-headers-cpio
4149 use_collect2=yes
4150 extra_headers=math-68881.h
4151 ;;
4152 m68k-hp-hpux*) # HP 9000 series 300
4153 xm_file=m68k/xm-hp320.h
4154 if [ x$gas = xyes ]
4155 then
4156 xmake_file=m68k/x-hp320g
4157 tm_file=m68k/hp320g.h
4158 else
4159 xmake_file=m68k/x-hp320
4160 tm_file=m68k/hp320.h
4161 fi
861bb6c1
JL
4162 install_headers_dir=install-headers-cpio
4163 use_collect2=yes
4164 extra_headers=math-68881.h
4165 ;;
4166 m68k-sun-mach*)
4167 tm_file=m68k/sun3mach.h
4168 use_collect2=yes
4169 extra_headers=math-68881.h
4170 ;;
4171 m68k-sony-newsos3*)
4172 if [ x$gas = xyes ]
4173 then
4174 tm_file=m68k/news3gas.h
4175 else
4176 tm_file=m68k/news3.h
4177 fi
4178 use_collect2=yes
4179 extra_headers=math-68881.h
4180 ;;
4181 m68k-sony-bsd* | m68k-sony-newsos*)
4182 if [ x$gas = xyes ]
4183 then
4184 tm_file=m68k/newsgas.h
4185 else
4186 tm_file=m68k/news.h
4187 fi
4188 use_collect2=yes
4189 extra_headers=math-68881.h
4190 ;;
4191 m68k-next-nextstep2*)
4192 tm_file=m68k/next21.h
4193 xm_file=m68k/xm-next.h
4194 tmake_file=m68k/t-next
4195 xmake_file=m68k/x-next
4196 extra_objs=nextstep.o
4197 extra_headers=math-68881.h
4198 use_collect2=yes
4199 ;;
4200 m68k-next-nextstep3*)
4201 tm_file=m68k/next.h
4202 xm_file=m68k/xm-next.h
4203 tmake_file=m68k/t-next
4204 xmake_file=m68k/x-next
4205 extra_objs=nextstep.o
4206 extra_headers=math-68881.h
4207 if [ x$enable_threads = xyes ]; then
4208 thread_file='mach'
4209 fi
4210 ;;
4211 m68k-sun-sunos3*)
4212 if [ x$with_fp = xno ]
4213 then
4214 tm_file=m68k/sun3n3.h
4215 else
4216 tm_file=m68k/sun3o3.h
4217 fi
4218 use_collect2=yes
4219 extra_headers=math-68881.h
4220 ;;
4221 m68k-sun-sunos*) # For SunOS 4 (the default).
4222 if [ x$with_fp = xno ]
4223 then
4224 tm_file=m68k/sun3n.h
4225 else
4226 tm_file=m68k/sun3.h
4227 fi
861bb6c1
JL
4228 use_collect2=yes
4229 extra_headers=math-68881.h
4230 ;;
4231 m68k-wrs-vxworks*)
4232 tm_file=m68k/vxm68k.h
4233 tmake_file=m68k/t-vxworks68
4234 extra_headers=math-68881.h
4235 ;;
4236 m68k-*-aout*)
4237 tmake_file=m68k/t-m68kbare
4238 tm_file="m68k/m68k-aout.h libgloss.h"
4239 extra_headers=math-68881.h
4240 ;;
4241 m68k-*-coff*)
4242 tmake_file=m68k/t-m68kbare
4243 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4244 extra_headers=math-68881.h
4245 ;;
4246 m68k-*-lynxos*)
4247 if [ x$gas = xyes ]
4248 then
4249 tm_file=m68k/lynx.h
4250 else
4251 tm_file=m68k/lynx-ng.h
4252 fi
4253 xm_file=m68k/xm-lynx.h
4254 xmake_file=x-lynx
4255 tmake_file=m68k/t-lynx
4256 extra_headers=math-68881.h
4257 ;;
4258 m68k-*-netbsd*)
4259 tm_file=m68k/netbsd.h
be1ed94f
JL
4260 # On NetBSD, the headers are already okay, except for math.h.
4261 fixincludes=fixinc.math
861bb6c1
JL
4262 tmake_file=t-netbsd
4263 ;;
4264 m68k-*-sysv3*) # Motorola m68k's running system V.3
4265 xm_file=m68k/xm-m68kv.h
4266 xmake_file=m68k/x-m68kv
4267 extra_parts="crtbegin.o crtend.o"
4268 extra_headers=math-68881.h
4269 ;;
4270 m68k-*-sysv4*) # Motorola m68k's running system V.4
4271 tm_file=m68k/m68kv4.h
4272 xm_file=m68k/xm-m68kv.h
4273 tmake_file=t-svr4
4274 extra_parts="crtbegin.o crtend.o"
4275 extra_headers=math-68881.h
4276 ;;
956d6950 4277 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
861bb6c1
JL
4278 xm_file=m68k/xm-linux.h # with a.out format
4279 xmake_file=x-linux
4280 tm_file=m68k/linux-aout.h
4281 tmake_file="t-linux-aout m68k/t-linux-aout"
956d6950 4282 fixincludes=Makefile.in # The headers are ok already.
861bb6c1
JL
4283 extra_headers=math-68881.h
4284 gnu_ld=yes
4285 ;;
956d6950 4286 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
861bb6c1 4287 xm_file=m68k/xm-linux.h # with ELF format using the
956d6950 4288 xmake_file=x-linux # GNU/Linux C library 5
861bb6c1
JL
4289 tm_file=m68k/linux.h
4290 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4291 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
956d6950 4292 fixincludes=Makefile.in # The headers are ok already.
861bb6c1
JL
4293 extra_headers=math-68881.h
4294 gnu_ld=yes
4295 ;;
956d6950 4296 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
861bb6c1 4297 xm_file=m68k/xm-linux.h # with ELF format using glibc 2
956d6950 4298 xmake_file=x-linux # aka the GNU/Linux C library 6.
861bb6c1
JL
4299 tm_file=m68k/linux.h
4300 tmake_file="t-linux m68k/t-linux"
4301 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
956d6950 4302 fixincludes=Makefile.in # The headers are ok already.
861bb6c1
JL
4303 extra_headers=math-68881.h
4304 gnu_ld=yes
4305 if [ x$enable_threads = xyes ]; then
4306 thread_file='posix'
4307 fi
4308 ;;
4309 m68k-*-psos*)
4310 tmake_file=m68k/t-m68kbare
4311 tm_file=m68k/m68k-psos.h
4312 extra_headers=math-68881.h
4313 ;;
4314 m68k-*-rtems*)
4315 tmake_file="m68k/t-m68kbare t-rtems"
4316 tm_file=m68k/rtems.h
4317 extra_headers=math-68881.h
4318 ;;
4319
4320 m88k-dg-dgux*)
4321 case $machine in
4322 m88k-dg-dguxbcs*)
4323 tm_file=m88k/dguxbcs.h
4324 tmake_file=m88k/t-dguxbcs
4325 ;;
4326 *)
4327 tm_file=m88k/dgux.h
4328 tmake_file=m88k/t-dgux
4329 ;;
4330 esac
4331 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
861bb6c1
JL
4332 xmake_file=m88k/x-dgux
4333 if [ x$gas = xyes ]
4334 then
4335 tmake_file=m88k/t-dgux-gas
4336 fi
4337 fixincludes=fixinc.dgux
4338 ;;
4339 m88k-dolphin-sysv3*)
4340 tm_file=m88k/dolph.h
4341 extra_parts="crtbegin.o crtend.o"
4342 xm_file=m88k/xm-sysv3.h
4343 xmake_file=m88k/x-dolph
4344 if [ x$gas = xyes ]
4345 then
4346 tmake_file=m88k/t-m88k-gas
4347 fi
4348 ;;
4349 m88k-tektronix-sysv3)
4350 tm_file=m88k/tekXD88.h
4351 extra_parts="crtbegin.o crtend.o"
4352 xm_file=m88k/xm-sysv3.h
4353 xmake_file=m88k/x-tekXD88
4354 if [ x$gas = xyes ]
4355 then
4356 tmake_file=m88k/t-m88k-gas
4357 fi
4358 ;;
4359 m88k-*-aout*)
4360 tm_file=m88k/m88k-aout.h
4361 ;;
4362 m88k-*-coff*)
4363 tm_file=m88k/m88k-coff.h
4364 tmake_file=m88k/t-bug
4365 ;;
4366 m88k-*-luna*)
4367 tm_file=m88k/luna.h
4368 extra_parts="crtbegin.o crtend.o"
4369 if [ x$gas = xyes ]
4370 then
4371 tmake_file=m88k/t-luna-gas
4372 else
4373 tmake_file=m88k/t-luna
4374 fi
4375 ;;
4376 m88k-*-sysv3*)
4377 tm_file=m88k/sysv3.h
4378 extra_parts="crtbegin.o crtend.o"
4379 xm_file=m88k/xm-sysv3.h
4380 xmake_file=m88k/x-sysv3
4381 if [ x$gas = xyes ]
4382 then
4383 tmake_file=m88k/t-m88k-gas
4384 fi
4385 ;;
4386 m88k-*-sysv4*)
4387 tm_file=m88k/sysv4.h
4388 extra_parts="crtbegin.o crtend.o"
4389 xmake_file=m88k/x-sysv4
4390 tmake_file=m88k/t-sysv4
4391 ;;
4392 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4393 tm_file=mips/iris6.h
4394 xm_file=mips/xm-iris6.h
861bb6c1
JL
4395 fixincludes=fixinc.irix
4396 xmake_file=mips/x-iris6
4397 tmake_file=mips/t-iris6
4398 if [ x$enable_threads = xyes ]; then
4399 thread_file='irix'
4400 fi
4401 ;;
4402 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4403 tm_file=mips/cross64.h
4404 xm_file=mips/xm-iris5.h
861bb6c1
JL
4405 fixincludes=Makefile.in
4406 xmake_file=mips/x-iris
4407 tmake_file=mips/t-cross64
4408 # See comment in mips/iris[56].h files.
4409 use_collect2=yes
4410 if [ x$enable_threads = xyes ]; then
4411 thread_file='irix'
4412 fi
4413 ;;
4414 mips-sni-sysv4)
4415 if [ x$gas = xyes ]
4416 then
4417 if [ x$stabs = xyes ]
4418 then
4419 tm_file=mips/iris5gdb.h
4420 else
4421 tm_file=mips/sni-gas.h
4422 fi
4423 else
4424 tm_file=mips/sni-svr4.h
4425 fi
4426 xm_file=mips/xm-sysv.h
4427 xmake_file=mips/x-sni-svr4
4428 tmake_file=mips/t-mips-gas
4429 if [ x$gnu_ld != xyes ]
4430 then
4431 use_collect2=yes
4432 fi
861bb6c1
JL
4433 ;;
4434 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4435 if [ x$gas = xyes ]
4436 then
4437 tm_file=mips/iris5gas.h
4438 if [ x$stabs = xyes ]
4439 then
4440 tm_file="${tm_file} dbx.h"
4441 fi
4442 else
4443 tm_file=mips/iris5.h
4444 fi
4445 xm_file=mips/xm-iris5.h
861bb6c1
JL
4446 fixincludes=fixinc.irix
4447 xmake_file=mips/x-iris
4448 # mips-tfile doesn't work yet
4449 tmake_file=mips/t-mips-gas
4450 # See comment in mips/iris5.h file.
4451 use_collect2=yes
4452 if [ x$enable_threads = xyes ]; then
4453 thread_file='irix'
4454 fi
4455 ;;
4456 mips-sgi-irix4loser*) # Mostly like a MIPS.
4457 tm_file=mips/iris4loser.h
4458 if [ x$stabs = xyes ]; then
4459 tm_file="${tm_file} dbx.h"
4460 fi
4461 xm_file=mips/xm-iris4.h
861bb6c1
JL
4462 xmake_file=mips/x-iris
4463 if [ x$gas = xyes ]
4464 then
4465 tmake_file=mips/t-mips-gas
4466 else
4467 extra_passes="mips-tfile mips-tdump"
4468 fi
4469 if [ x$gnu_ld != xyes ]
4470 then
4471 use_collect2=yes
4472 fi
4473 if [ x$enable_threads = xyes ]; then
4474 thread_file='irix'
4475 fi
4476 ;;
4477 mips-sgi-irix4*) # Mostly like a MIPS.
4478 tm_file=mips/iris4.h
4479 if [ x$stabs = xyes ]; then
4480 tm_file="${tm_file} dbx.h"
4481 fi
4482 xm_file=mips/xm-iris4.h
861bb6c1
JL
4483 xmake_file=mips/x-iris
4484 if [ x$gas = xyes ]
4485 then
4486 tmake_file=mips/t-mips-gas
4487 else
4488 extra_passes="mips-tfile mips-tdump"
4489 fi
4490 if [ x$gnu_ld != xyes ]
4491 then
4492 use_collect2=yes
4493 fi
4494 if [ x$enable_threads = xyes ]; then
4495 thread_file='irix'
4496 fi
4497 ;;
4498 mips-sgi-*) # Mostly like a MIPS.
4499 tm_file=mips/iris3.h
4500 if [ x$stabs = xyes ]; then
4501 tm_file="${tm_file} dbx.h"
4502 fi
4503 xm_file=mips/xm-iris3.h
861bb6c1
JL
4504 xmake_file=mips/x-iris3
4505 if [ x$gas = xyes ]
4506 then
4507 tmake_file=mips/t-mips-gas
4508 else
4509 extra_passes="mips-tfile mips-tdump"
4510 fi
4511 if [ x$gnu_ld != xyes ]
4512 then
4513 use_collect2=yes
4514 fi
4515 ;;
4516 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4517 tm_file=mips/osfrose.h
4518 xmake_file=mips/x-osfrose
4519 tmake_file=mips/t-osfrose
4520 extra_objs=halfpic.o
4521 use_collect2=yes
4522 ;;
4523 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4524 tm_file=mips/dec-osf1.h
4525 if [ x$stabs = xyes ]; then
4526 tm_file="${tm_file} dbx.h"
4527 fi
4528 xmake_file=mips/x-dec-osf1
4529 if [ x$gas = xyes ]
4530 then
4531 tmake_file=mips/t-mips-gas
4532 else
4533 tmake_file=mips/t-ultrix
4534 extra_passes="mips-tfile mips-tdump"
4535 fi
4536 if [ x$gnu_ld != xyes ]
4537 then
4538 use_collect2=yes
4539 fi
4540 ;;
4541 mips-dec-bsd*) # Decstation running 4.4 BSD
4542 tm_file=mips/dec-bsd.h
4543 fixincludes=
4544 if [ x$gas = xyes ]
4545 then
4546 tmake_file=mips/t-mips-gas
4547 else
4548 tmake_file=mips/t-ultrix
4549 extra_passes="mips-tfile mips-tdump"
4550 fi
4551 if [ x$gnu_ld != xyes ]
4552 then
4553 use_collect2=yes
4554 fi
4555 ;;
4556 mips-dec-netbsd*) # Decstation running NetBSD
4557 tm_file=mips/netbsd.h
be1ed94f
JL
4558 # On NetBSD, the headers are already okay, except for math.h.
4559 fixincludes=fixinc.math
861bb6c1 4560 tmake_file=t-netbsd
861bb6c1
JL
4561 ;;
4562 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4563 tm_file=mips/news4.h
4564 if [ x$stabs = xyes ]; then
4565 tm_file="${tm_file} dbx.h"
4566 fi
4567 if [ x$gas = xyes ]
4568 then
4569 tmake_file=mips/t-mips-gas
4570 else
4571 extra_passes="mips-tfile mips-tdump"
4572 fi
4573 if [ x$gnu_ld != xyes ]
4574 then
4575 use_collect2=yes
4576 fi
4577 xmake_file=mips/x-sony
4578 ;;
4579 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4580 # That is based on svr4.
4581 # t-svr4 is not right because this system doesn't use ELF.
4582 tm_file=mips/news5.h
4583 if [ x$stabs = xyes ]; then
4584 tm_file="${tm_file} dbx.h"
4585 fi
4586 xm_file=mips/xm-news.h
4587 if [ x$gas = xyes ]
4588 then
4589 tmake_file=mips/t-mips-gas
4590 else
4591 extra_passes="mips-tfile mips-tdump"
4592 fi
4593 if [ x$gnu_ld != xyes ]
4594 then
4595 use_collect2=yes
4596 fi
4597 ;;
4598 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4599 tm_file=mips/svr4-t.h
4600 if [ x$stabs = xyes ]; then
4601 tm_file="${tm_file} dbx.h"
4602 fi
4603 xm_file=mips/xm-sysv4.h
4604 xmake_file=mips/x-sysv
4605 if [ x$gas = xyes ]
4606 then
4607 tmake_file=mips/t-mips-gas
4608 extra_parts="crtbegin.o crtend.o"
4609 else
4610 tmake_file=mips/t-mips
4611 extra_passes="mips-tfile mips-tdump"
4612 fi
4613 if [ x$gnu_ld != xyes ]
4614 then
4615 use_collect2=yes
4616 fi
861bb6c1
JL
4617 ;;
4618 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4619 tm_file=mips/ultrix.h
4620 if [ x$stabs = xyes ]; then
4621 tm_file="${tm_file} dbx.h"
4622 fi
4623 xmake_file=mips/x-ultrix
4624 if [ x$gas = xyes ]
4625 then
4626 tmake_file=mips/t-mips-gas
4627 else
4628 tmake_file=mips/t-ultrix
4629 extra_passes="mips-tfile mips-tdump"
4630 fi
4631 if [ x$gnu_ld != xyes ]
4632 then
4633 use_collect2=yes
4634 fi
4635 ;;
4636 mips-*-riscos[56789]bsd*)
4637 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4638 if [ x$stabs = xyes ]; then
4639 tm_file="${tm_file} dbx.h"
4640 fi
4641 if [ x$gas = xyes ]
4642 then
4643 tmake_file=mips/t-bsd-gas
4644 else
4645 tmake_file=mips/t-bsd
4646 extra_passes="mips-tfile mips-tdump"
4647 fi
4648 if [ x$gnu_ld != xyes ]
4649 then
4650 use_collect2=yes
4651 fi
861bb6c1
JL
4652 ;;
4653 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4654 tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0
4655 if [ x$stabs = xyes ]; then
4656 tm_file="${tm_file} dbx.h"
4657 fi
4658 if [ x$gas = xyes ]
4659 then
4660 tmake_file=mips/t-bsd-gas
4661 else
4662 tmake_file=mips/t-bsd
4663 extra_passes="mips-tfile mips-tdump"
4664 fi
4665 if [ x$gnu_ld != xyes ]
4666 then
4667 use_collect2=yes
4668 fi
861bb6c1
JL
4669 ;;
4670 mips-*-riscos[56789]sysv4*)
4671 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4672 if [ x$stabs = xyes ]; then
4673 tm_file="${tm_file} dbx.h"
4674 fi
4675 xm_file=mips/xm-sysv4.h
4676 xmake_file=mips/x-sysv
4677 if [ x$gas = xyes ]
4678 then
4679 tmake_file=mips/t-svr4-gas
4680 else
4681 tmake_file=mips/t-svr4
4682 extra_passes="mips-tfile mips-tdump"
4683 fi
4684 if [ x$gnu_ld != xyes ]
4685 then
4686 use_collect2=yes
4687 fi
861bb6c1
JL
4688 ;;
4689 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4690 tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0
4691 if [ x$stabs = xyes ]; then
4692 tm_file="${tm_file} dbx.h"
4693 fi
4694 xm_file=mips/xm-sysv.h
4695 xmake_file=mips/x-sysv
4696 if [ x$gas = xyes ]
4697 then
4698 tmake_file=mips/t-svr4-gas
4699 else
4700 tmake_file=mips/t-svr4
4701 extra_passes="mips-tfile mips-tdump"
4702 fi
4703 if [ x$gnu_ld != xyes ]
4704 then
4705 use_collect2=yes
4706 fi
861bb6c1
JL
4707 ;;
4708 mips-*-riscos[56789]sysv*)
4709 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4710 if [ x$stabs = xyes ]; then
4711 tm_file="${tm_file} dbx.h"
4712 fi
4713 xm_file=mips/xm-sysv.h
4714 xmake_file=mips/x-sysv
4715 if [ x$gas = xyes ]
4716 then
4717 tmake_file=mips/t-svr3-gas
4718 else
4719 tmake_file=mips/t-svr3
4720 extra_passes="mips-tfile mips-tdump"
4721 fi
4722 if [ x$gnu_ld != xyes ]
4723 then
4724 use_collect2=yes
4725 fi
861bb6c1
JL
4726 ;;
4727 mips-*-sysv* | mips-*-riscos*sysv*)
4728 tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0
4729 if [ x$stabs = xyes ]; then
4730 tm_file="${tm_file} dbx.h"
4731 fi
4732 xm_file=mips/xm-sysv.h
4733 xmake_file=mips/x-sysv
4734 if [ x$gas = xyes ]
4735 then
4736 tmake_file=mips/t-svr3-gas
4737 else
4738 tmake_file=mips/t-svr3
4739 extra_passes="mips-tfile mips-tdump"
4740 fi
4741 if [ x$gnu_ld != xyes ]
4742 then
4743 use_collect2=yes
4744 fi
861bb6c1
JL
4745 ;;
4746 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4747 tm_file=mips/mips-5.h
4748 if [ x$stabs = xyes ]; then
4749 tm_file="${tm_file} dbx.h"
4750 fi
4751 if [ x$gas = xyes ]
4752 then
4753 tmake_file=mips/t-mips-gas
4754 else
4755 extra_passes="mips-tfile mips-tdump"
4756 fi
4757 if [ x$gnu_ld != xyes ]
4758 then
4759 use_collect2=yes
4760 fi
861bb6c1
JL
4761 ;;
4762 mips-*-gnu*)
4763 ;;
4764 mipsel-*-ecoff*)
4765 tm_file=mips/ecoffl.h
4766 if [ x$stabs = xyes ]; then
4767 tm_file="${tm_file} dbx.h"
4768 fi
4769 tmake_file=mips/t-ecoff
4770 ;;
4771 mips-*-ecoff*)
4772 tm_file=mips/ecoff.h
4773 if [ x$stabs = xyes ]; then
4774 tm_file="${tm_file} dbx.h"
4775 fi
4776 tmake_file=mips/t-ecoff
861bb6c1
JL
4777 ;;
4778 mipsel-*-elf*)
4779 tm_file="mips/elfl.h libgloss.h"
4780 tmake_file=mips/t-ecoff
4781 ;;
4782 mips-*-elf*)
4783 tm_file="mips/elf.h libgloss.h"
4784 tmake_file=mips/t-ecoff
4785 ;;
4786 mips64el-*-elf*)
4787 tm_file="mips/elfl64.h libgloss.h"
4788 tmake_file=mips/t-ecoff
4789 ;;
4790 mips64orionel-*-elf*)
4791 tm_file="mips/elflorion.h libgloss.h"
4792 tmake_file=mips/t-ecoff
4793 ;;
4794 mips64-*-elf*)
4795 tm_file="mips/elf64.h libgloss.h"
4796 tmake_file=mips/t-ecoff
4797 ;;
4798 mips64orion-*-elf*)
4799 tm_file="mips/elforion.h libgloss.h"
4800 tmake_file=mips/t-ecoff
4801 ;;
4802 mips64orion-*-rtems*)
4803 tm_file=mips/rtems64.h
4804 tmake_file="mips/t-ecoff t-rtems"
4805 ;;
e9a25f70
JL
4806 mipstx39el-*-elf*)
4807 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4808 tmake_file=mips/t-ecoff
4809 ;;
4810 mipstx39-*-elf*)
4811 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4812 tmake_file=mips/t-ecoff
4813 ;;
861bb6c1
JL
4814 mips-*-*) # Default MIPS RISC-OS 4.0.
4815 if [ x$stabs = xyes ]; then
4816 tm_file="${tm_file} dbx.h"
4817 fi
4818 if [ x$gas = xyes ]
4819 then
4820 tmake_file=mips/t-mips-gas
4821 else
4822 extra_passes="mips-tfile mips-tdump"
4823 fi
4824 if [ x$gnu_ld != xyes ]
4825 then
4826 use_collect2=yes
4827 fi
4828 ;;
4829 mn10200-*-*)
4830 cpu_type=mn10200
4831 tm_file="mn10200/mn10200.h"
4832 if [ x$stabs = xyes ]
4833 then
4834 tm_file="${tm_file} dbx.h"
4835 fi
4836 use_collect2=no
4837 ;;
4838 mn10300-*-*)
4839 cpu_type=mn10300
4840 tm_file="mn10300/mn10300.h"
4841 if [ x$stabs = xyes ]
4842 then
4843 tm_file="${tm_file} dbx.h"
4844 fi
4845 use_collect2=no
4846 ;;
4847 ns32k-encore-bsd*)
4848 tm_file=ns32k/encore.h
4849 use_collect2=yes
4850 ;;
4851 ns32k-sequent-bsd*)
4852 tm_file=ns32k/sequent.h
4853 use_collect2=yes
4854 ;;
4855 ns32k-tek6100-bsd*)
4856 tm_file=ns32k/tek6100.h
861bb6c1
JL
4857 use_collect2=yes
4858 ;;
4859 ns32k-tek6200-bsd*)
4860 tm_file=ns32k/tek6200.h
861bb6c1
JL
4861 use_collect2=yes
4862 ;;
4863# This has not been updated to GCC 2.
4864# ns32k-ns-genix*)
4865# xm_file=ns32k/xm-genix.h
4866# xmake_file=ns32k/x-genix
4867# tm_file=ns32k/genix.h
861bb6c1
JL
4868# use_collect2=yes
4869# ;;
4870 ns32k-merlin-*)
4871 tm_file=ns32k/merlin.h
4872 use_collect2=yes
4873 ;;
4874 ns32k-pc532-mach*)
4875 tm_file=ns32k/pc532-mach.h
4876 use_collect2=yes
4877 ;;
4878 ns32k-pc532-minix*)
4879 tm_file=ns32k/pc532-min.h
4880 xm_file=ns32k/xm-pc532-min.h
4881 use_collect2=yes
4882 ;;
4883 ns32k-pc532-netbsd*)
4884 tm_file=ns32k/netbsd.h
be1ed94f
JL
4885 # On NetBSD, the headers are already okay, except for math.h.
4886 fixincludes=fixinc.math
861bb6c1
JL
4887 tmake_file=t-netbsd
4888 ;;
4889 pdp11-*-bsd)
4890 tm_file="${tm_file} pdp11/2bsd.h"
4891 ;;
4892 pdp11-*-*)
4893 ;;
4894 pyramid-*-*)
4895 cpu_type=pyr
4896 xmake_file=pyr/x-pyr
4897 use_collect2=yes
4898 ;;
4899 romp-*-aos*)
4900 use_collect2=yes
4901 ;;
4902 romp-*-mach*)
4903 xmake_file=romp/x-mach
4904 use_collect2=yes
4905 ;;
c55dcc7d
FF
4906 powerpc-*-beos*)
4907 cpu_type=rs6000
4908 tm_file=rs6000/beos.h
4909 xm_file=rs6000/xm-beos.h
4910 tmake_file=rs6000/t-beos
4911 xmake_file=rs6000/x-beos
4912 ;;
861bb6c1
JL
4913 powerpc-*-sysv* | powerpc-*-elf*)
4914 tm_file=rs6000/sysv4.h
4915 xm_file=rs6000/xm-sysv4.h
4916 extra_headers=ppc-asm.h
4917 if [ x$gas = xyes ]
4918 then
4919 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4920 else
4921 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4922 fi
4923 xmake_file=rs6000/x-sysv4
4924 ;;
4925 powerpc-*-eabiaix*)
4926 tm_file=rs6000/eabiaix.h
4927 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4928 fixincludes=Makefile.in
4929 extra_headers=ppc-asm.h
4930 ;;
4931 powerpc-*-eabisim*)
4932 tm_file=rs6000/eabisim.h
4933 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4934 fixincludes=Makefile.in
4935 extra_headers=ppc-asm.h
4936 ;;
4937 powerpc-*-eabi*)
4938 tm_file=rs6000/eabi.h
4939 if [ x$gas = xyes ]
4940 then
4941 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4942 else
4943 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4944 fi
4945 fixincludes=Makefile.in
4946 extra_headers=ppc-asm.h
4947 ;;
4948 powerpc-*-rtems*)
4949 tm_file=rs6000/rtems.h
4950 if [ x$gas = xyes ]
4951 then
4952 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4953 else
4954 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4955 fi
4956 fixincludes=Makefile.in
4957 extra_headers=ppc-asm.h
4958 ;;
4959 powerpc-*-linux-gnu*)
4960 tm_file=rs6000/linux.h
4961 xm_file=rs6000/xm-sysv4.h
4962 out_file=rs6000/rs6000.c
4963 if [ x$gas = xyes ]
4964 then
4965 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4966 else
4967 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4968 fi
4969 xmake_file=x-linux
4970 fixincludes=Makefile.in
4971 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4972 extra_headers=ppc-asm.h
4973 if [ x$enable_threads = xyes ]; then
4974 thread_file='posix'
4975 fi
4976 ;;
4977 powerpc-*-vxworks*)
4978 cpu_type=rs6000
4979 xm_file=rs6000/xm-sysv4.h
4980 tm_file=rs6000/vxppc.h
4981 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4982 extra_headers=ppc-asm.h
4983 ;;
4984 powerpcle-*-sysv* | powerpcle-*-elf*)
4985 tm_file=rs6000/sysv4le.h
4986 xm_file=rs6000/xm-sysv4.h
4987 if [ x$gas = xyes ]
4988 then
4989 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4990 else
4991 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4992 fi
4993 xmake_file=rs6000/x-sysv4
4994 extra_headers=ppc-asm.h
4995 ;;
4996 powerpcle-*-eabisim*)
4997 tm_file=rs6000/eabilesim.h
4998 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4999 fixincludes=Makefile.in
5000 extra_headers=ppc-asm.h
5001 ;;
5002 powerpcle-*-eabi*)
5003 tm_file=rs6000/eabile.h
5004 if [ x$gas = xyes ]
5005 then
5006 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5007 else
5008 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5009 fi
5010 fixincludes=Makefile.in
5011 extra_headers=ppc-asm.h
5012 ;;
5013 powerpcle-*-winnt* )
5014 tm_file=rs6000/win-nt.h
5015 tmake_file=rs6000/t-winnt
5016# extra_objs=pe.o
5017 fixincludes=Makefile.in
5018 if [ x$enable_threads = xyes ]; then
5019 thread_file='win32'
5020 fi
5021 extra_headers=ppc-asm.h
5022 ;;
5023 powerpcle-*-pe | powerpcle-*-cygwin32)
5024 tm_file=rs6000/cygwin32.h
5025 xm_file=rs6000/xm-cygwin32.h
5026 tmake_file=rs6000/t-winnt
5027 xmake_file=rs6000/x-cygwin32
5028# extra_objs=pe.o
5029 fixincludes=Makefile.in
5030 if [ x$enable_threads = xyes ]; then
5031 thread_file='win32'
5032 fi
5033 exeext=.exe
5034 extra_headers=ppc-asm.h
5035 ;;
5036 powerpcle-*-solaris2*)
5037 tm_file=rs6000/sol2.h
5038 xm_file=rs6000/xm-sysv4.h
5039 if [ x$gas = xyes ]
5040 then
5041 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5042 else
5043 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5044 fi
5045 xmake_file=rs6000/x-sysv4
e9a25f70 5046 fixincludes=fixinc.math
861bb6c1
JL
5047 extra_headers=ppc-asm.h
5048 ;;
5049 rs6000-ibm-aix3.[01]*)
5050 tm_file=rs6000/aix31.h
5051 xmake_file=rs6000/x-aix31
5052 use_collect2=yes
5053 ;;
5054 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5055 tm_file=rs6000/aix3newas.h
5056 if [ x$host != x$target ]
5057 then
5058 tmake_file=rs6000/t-xnewas
5059 else
5060 tmake_file=rs6000/t-newas
5061 fi
5062 use_collect2=yes
5063 ;;
5064 rs6000-ibm-aix[456789].* | powerpc-ibm-aix[456789].*)
5065 tm_file=rs6000/aix41.h
5066 if [ x$host != x$target ]
5067 then
5068 tmake_file=rs6000/t-xnewas
5069 else
5070 tmake_file=rs6000/t-newas
5071 fi
5072 xmake_file=rs6000/x-aix31
5073 use_collect2=yes
5074 ;;
5075 rs6000-ibm-aix*)
5076 use_collect2=yes
5077 ;;
5078 rs6000-bull-bosx)
5079 use_collect2=yes
5080 ;;
5081 rs6000-*-mach*)
5082 tm_file=rs6000/mach.h
5083 xm_file=rs6000/xm-mach.h
5084 xmake_file=rs6000/x-mach
5085 use_collect2=yes
5086 ;;
5087 rs6000-*-lynxos*)
5088 tm_file=rs6000/lynx.h
5089 xm_file=rs6000/xm-lynx.h
5090 tmake_file=rs6000/t-rs6000
5091 xmake_file=rs6000/x-lynx
5092 use_collect2=yes
5093 ;;
5094 sh-*-elf*)
5095 tm_file=sh/elf.h
5096 float_format=sh
5097 ;;
5d84b57e
JS
5098 sh-*-rtems*)
5099 tmake_file="sh/t-sh t-rtems"
5100 tm_file=sh/rtems.h
5101 float_format=sh
5102 ;;
861bb6c1
JL
5103 sh-*-*)
5104 float_format=sh
5105 ;;
5106 sparc-tti-*)
5107 tm_file=sparc/pbd.h
5108 xm_file=sparc/xm-pbd.h
5109 ;;
5110 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5111 tm_file=sparc/vxsparc.h
5112 tmake_file=sparc/t-vxsparc
5113 use_collect2=yes
5114 ;;
5115 sparc-*-aout*)
5116 tmake_file=sparc/t-sparcbare
5117 tm_file="sparc/aout.h libgloss.h"
5118 ;;
5119 sparc-*-netbsd*)
5120 tm_file=sparc/netbsd.h
be1ed94f
JL
5121 # On NetBSD, the headers are already okay, except for math.h.
5122 fixincludes=fixinc.math
861bb6c1
JL
5123 tmake_file=t-netbsd
5124 ;;
5125 sparc-*-bsd*)
5126 tm_file=sparc/bsd.h
5127 ;;
ac52b80b
DE
5128 sparc-*-elf*)
5129 tm_file=sparc/elf.h
5130 tmake_file=sparc/t-elf
5131 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5132 #float_format=i128
5133 float_format=i64
5134 ;;
956d6950 5135 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
26b551af 5136 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
861bb6c1
JL
5137 tm_file=sparc/linux-aout.h
5138 xmake_file=x-linux
5139 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
5140 gnu_ld=yes
5141 ;;
956d6950 5142 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
26b551af
DE
5143 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
5144 xmake_file=x-linux
861bb6c1
JL
5145 tm_file=sparc/linux.h
5146 tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
5147 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5148 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
5149 gnu_ld=yes
5150 ;;
956d6950 5151 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
26b551af
DE
5152 xm_file="sparc/xm-sparc.h sparc/xm-linux.h"
5153 xmake_file=x-linux
861bb6c1
JL
5154 tm_file=sparc/linux.h
5155 tmake_file="t-linux sparc/t-linux"
5156 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5157 fixincludes=Makefile.in #On Linux, the headers are ok already.
861bb6c1
JL
5158 gnu_ld=yes
5159 if [ x$enable_threads = xyes ]; then
5160 thread_file='posix'
5161 fi
5162 ;;
5163 sparc-*-lynxos*)
5164 if [ x$gas = xyes ]
5165 then
5166 tm_file=sparc/lynx.h
5167 else
5168 tm_file=sparc/lynx-ng.h
5169 fi
5170 xm_file=sparc/xm-lynx.h
5171 tmake_file=sparc/t-sunos41
5172 xmake_file=x-lynx
5173 ;;
5174 sparc-*-rtems*)
5175 tmake_file="sparc/t-sparcbare t-rtems"
5176 tm_file=sparc/rtems.h
5177 ;;
5178 sparc-*-solaris2*)
5179 tm_file=sparc/sol2.h
5180 xm_file=sparc/xm-sol2.h
5181 tmake_file=sparc/t-sol2
5182 xmake_file=sparc/x-sysv4
5183 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5184 fixincludes=fixinc.svr4
e9a25f70
JL
5185 float_format=i128
5186 broken_install=yes
f24af81b
TT
5187 if [ x${enable_threads} = x ]; then
5188 enable_threads=$have_pthread_h
5189 if [ x${enable_threads} = x ]; then
5190 enable_threads=$have_thread_h
5191 fi
5192 fi
5193 if [ x${enable_threads} = xyes ]; then
5194 if [ x${have_pthread_h} = xyes ]; then
5195 thread_file='posix'
5196 else
861bb6c1 5197 thread_file='solaris'
f24af81b 5198 fi
861bb6c1
JL
5199 fi
5200 ;;
5201 sparc-*-sunos4.0*)
5202 tm_file=sparc/sunos4.h
5203 tmake_file=sparc/t-sunos40
5204 use_collect2=yes
5205 ;;
5206 sparc-*-sunos4*)
5207 tm_file=sparc/sunos4.h
5208 tmake_file=sparc/t-sunos41
5209 use_collect2=yes
ca55abae
JM
5210 if [ x$gas = xyes ]; then
5211 tm_file="${tm_file} sparc/sun4gas.h"
5212 fi
861bb6c1
JL
5213 ;;
5214 sparc-*-sunos3*)
5215 tm_file=sparc/sun4o3.h
5216 use_collect2=yes
5217 ;;
5218 sparc-*-sysv4*)
5219 tm_file=sparc/sysv4.h
5220 xm_file=sparc/xm-sysv4.h
5221 tmake_file=t-svr4
5222 xmake_file=sparc/x-sysv4
5223 extra_parts="crtbegin.o crtend.o"
5224 ;;
5225 sparc-*-vxsim*)
5226 xm_file=sparc/xm-sol2.h
5227 tm_file=sparc/vxsim.h
5228 tmake_file=sparc/t-vxsparc
5229 xmake_file=sparc/x-sysv4
5230 ;;
5231 sparclet-*-aout*)
5232 tm_file="sparc/splet.h libgloss.h"
5233 tmake_file=sparc/t-splet
5234 ;;
5235 sparclite-*-coff*)
5236 tm_file="sparc/litecoff.h libgloss.h"
5237 tmake_file=sparc/t-sparclite
5238 ;;
5239 sparclite-*-aout*)
5240 tm_file="sparc/lite.h aoutos.h libgloss.h"
5241 tmake_file=sparc/t-sparclite
5242 ;;
5243 sparc64-*-aout*)
5244 tmake_file=sparc/t-sp64
5245 tm_file=sparc/sp64-aout.h
5246 ;;
5247 sparc64-*-elf*)
5248 tmake_file=sparc/t-sp64
5249 tm_file=sparc/sp64-elf.h
5250 extra_parts="crtbegin.o crtend.o"
5251 ;;
956d6950 5252 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
26b551af
DE
5253 tmake_file=sparc/t-sp64
5254 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5255 tm_file=sparc/linux64.h
5256 xmake_file=x-linux
956d6950 5257 fixincludes=Makefile.in # The headers are ok already.
26b551af
DE
5258 gnu_ld=yes
5259 ;;
861bb6c1
JL
5260# This hasn't been upgraded to GCC 2.
5261# tahoe-harris-*) # Harris tahoe, using COFF.
5262# tm_file=tahoe/harris.h
5263# ;;
5264# tahoe-*-bsd*) # tahoe running BSD
5265# ;;
5266# This hasn't been upgraded to GCC 2.
5267# tron-*-*)
5268# cpu_type=gmicro
5269# use_collect2=yes
5270# ;;
f84271d9
JL
5271 v850-*-*)
5272 cpu_type=v850
5273 tm_file="v850/v850.h"
5274 xm_file="v850/xm-v850.h"
5275 if [ x$stabs = xyes ]
5276 then
5277 tm_file="${tm_file} dbx.h"
5278 fi
5279 use_collect2=no
5280 ;;
861bb6c1
JL
5281 vax-*-bsd*) # vaxen running BSD
5282 use_collect2=yes
5283 float_format=vax
5284 ;;
5285 vax-*-sysv*) # vaxen running system V
5286 tm_file="${tm_file} vax/vaxv.h"
956d6950 5287 xm_file="${xm_file} vax/xm-vaxv.h"
861bb6c1
JL
5288 float_format=vax
5289 ;;
5290 vax-*-netbsd*)
5291 tm_file="${tm_file} netbsd.h vax/netbsd.h"
be1ed94f
JL
5292 # On NetBSD, the headers are already okay, except for math.h.
5293 fixincludes=fixinc.math
861bb6c1
JL
5294 tmake_file=t-netbsd
5295 float_format=vax
5296 ;;
5297 vax-*-ultrix*) # vaxen running ultrix
5298 tm_file="${tm_file} vax/ultrix.h"
5299 use_collect2=yes
5300 float_format=vax
5301 ;;
5302 vax-*-vms*) # vaxen running VMS
5303 xm_file=vax/xm-vms.h
5304 tm_file=vax/vms.h
5305 float_format=vax
5306 ;;
5307 vax-*-*) # vax default entry
5308 float_format=vax
5309 ;;
5310 we32k-att-sysv*)
5311 xm_file="${xm_file} xm-svr3"
5312 use_collect2=yes
5313 ;;
5314 *)
5315 echo "Configuration $machine not supported" 1>&2
5316 exit 1
5317 ;;
5318 esac
5319
5320 case $machine in
5321 *-*-linux-gnu*)
5322 ;; # Existing Linux/GNU systems do not use the GNU setup.
5323 *-*-gnu*)
5324 # On the GNU system, the setup is just about the same on
5325 # each different CPU. The specific machines that GNU
5326 # supports are matched above and just set $cpu_type.
5327 xm_file=${cpu_type}/xm-gnu.h
5328 tm_file=${cpu_type}/gnu.h
5329 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5330 # GNU always uses ELF.
5331 elf=yes
5332 # GNU tools are the only tools.
5333 gnu_ld=yes
5334 gas=yes
5335 # On GNU, the headers are already okay.
5336 fixincludes=Makefile.in
5337 xmake_file=x-linux # These details are the same as Linux.
5338 tmake_file=t-gnu # These are not.
5339 ;;
5340 *-*-sysv4*)
5341 fixincludes=fixinc.svr4
5342 xmake_try_sysv=x-sysv
861bb6c1
JL
5343 install_headers_dir=install-headers-cpio
5344 ;;
5345 *-*-sysv*)
861bb6c1
JL
5346 install_headers_dir=install-headers-cpio
5347 ;;
5348 esac
5349
5350 # Distinguish i[3456]86
5351 # Also, do not run mips-tfile on MIPS if using gas.
5352 # Process --with-cpu= for PowerPC/rs6000
5353 target_cpu_default2=
5354 case $machine in
5355 i486-*-*)
5356 target_cpu_default2=1
5357 ;;
5358 i586-*-*)
5359 target_cpu_default2=2
5360 ;;
5361 i686-*-*)
5362 target_cpu_default2=3
5363 ;;
5364 alpha*-*-*)
5365 case $machine in
e9a25f70
JL
5366 alphaev6*)
5367 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
5368 ;;
5369 alphapca56*)
5370 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|TASK_MAX"
5371 ;;
861bb6c1 5372 alphaev56*)
e9a25f70 5373 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
861bb6c1
JL
5374 ;;
5375 alphaev5*)
5376 target_cpu_default2="MASK_CPU_EV5"
5377 ;;
5378 esac
5379
5380 if [ x$gas = xyes ]
5381 then
5382 if [ x$target_cpu_default2 = x ]
5383 then
5384 target_cpu_default2="MASK_GAS"
5385 else
5386 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5387 fi
5388 fi
5389 ;;
956d6950
JL
5390 arm*-*-*)
5391 case "x$with_cpu" in
5392 x)
5393 # The most generic
5394 target_cpu_default2="TARGET_CPU_generic"
5395 ;;
5396
5397 # Distinguish cores, and major variants
5398 # arm7m doesn't exist, but D & I don't affect code
5399 xarm23678 | xarm250 | xarm67010 \
5400 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5401 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5402 | xstrongarm | xstrongarm110)
5403 target_cpu_default2="TARGET_CPU_$with_cpu"
5404 ;;
5405
5406 xyes | xno)
5407 echo "--with-cpu must be passed a value" 1>&2
5408 exit 1
5409 ;;
5410
5411 *)
5412 if [ x$pass2done = xyes ]
5413 then
5414 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5415 exit 1
5416 fi
5417 ;;
5418 esac
5419 ;;
5420
861bb6c1
JL
5421 mips*-*-ecoff* | mips*-*-elf*)
5422 if [ x$gas = xyes ]
5423 then
5424 if [ x$gnu_ld = xyes ]
5425 then
5426 target_cpu_default2=20
5427 else
5428 target_cpu_default2=16
5429 fi
5430 fi
5431 ;;
5432 mips*-*-*)
5433 if [ x$gas = xyes ]
5434 then
5435 target_cpu_default2=16
5436 fi
5437 ;;
5438 powerpc*-*-* | rs6000-*-*)
5439 case "x$with_cpu" in
5440 x)
5441 ;;
5442
5443 xcommon | xpower | xpower2 | xpowerpc | xrios \
5444 | xrios1 | xrios2 | xrsc | xrsc1 \
5445 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5446 | x403 | x505 | x801 | x821 | x823 | x860)
f24b370a 5447 target_cpu_default2="\"$with_cpu\""
861bb6c1
JL
5448 ;;
5449
5450 xyes | xno)
5451 echo "--with-cpu must be passed a value" 1>&2
5452 exit 1
5453 ;;
5454
5455 *)
956d6950
JL
5456 if [ x$pass2done = xyes ]
5457 then
5458 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5459 exit 1
5460 fi
861bb6c1
JL
5461 ;;
5462 esac
5463 ;;
5464 sparc*-*-*)
5465 case ".$with_cpu" in
5466 .)
5467 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5468 ;;
ac52b80b 5469 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
861bb6c1
JL
5470 target_cpu_default2="TARGET_CPU_$with_cpu"
5471 ;;
5472 *)
956d6950
JL
5473 if [ x$pass2done = xyes ]
5474 then
5475 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5476 exit 1
5477 fi
861bb6c1
JL
5478 ;;
5479 esac
5480 ;;
5481 esac
5482
5483 if [ x$target_cpu_default2 != x ]
5484 then
5485 if [ x$target_cpu_default != x ]
5486 then
5487 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5488 else
5489 target_cpu_default=$target_cpu_default2
5490 fi
5491 fi
5492
5493 # No need for collect2 if we have the GNU linker.
5494 case x$gnu_ld in
5495 xyes)
5496 use_collect2=
5497 ;;
5498 esac
5499
5500# Save data on machine being used to compile GCC in build_xm_file.
5501# Save data on host machine in vars host_xm_file and host_xmake_file.
5502 if [ x$pass1done = x ]
5503 then
5504 if [ x"$xm_file" = x ]
5505 then build_xm_file=$cpu_type/xm-$cpu_type.h
5506 else build_xm_file=$xm_file
5507 fi
861bb6c1
JL
5508 build_install_headers_dir=$install_headers_dir
5509 build_exeext=$exeext
5510 pass1done=yes
5511 else
5512 if [ x$pass2done = x ]
5513 then
5514 if [ x"$xm_file" = x ]
5515 then host_xm_file=$cpu_type/xm-$cpu_type.h
5516 else host_xm_file=$xm_file
5517 fi
5518 if [ x"$xmake_file" = x ]
5519 then xmake_file=$cpu_type/x-$cpu_type
5520 fi
5521 host_xmake_file="$xmake_file"
5522 host_truncate_target=$truncate_target
5523 host_extra_gcc_objs=$extra_gcc_objs
5524 host_extra_objs=$extra_host_objs
5525 pass2done=yes
5526 fi
5527 fi
5528done
5529
5530extra_objs="${host_extra_objs} ${extra_objs}"
5531
5532# Default the target-machine variables that were not explicitly set.
5533if [ x"$tm_file" = x ]
5534then tm_file=$cpu_type/$cpu_type.h; fi
5535
5536if [ x$extra_headers = x ]
5537then extra_headers=; fi
5538
5539if [ x"$xm_file" = x ]
5540then xm_file=$cpu_type/xm-$cpu_type.h; fi
5541
5542md_file=$cpu_type/$cpu_type.md
5543
5544if [ x$out_file = x ]
5545then out_file=$cpu_type/$cpu_type.c; fi
5546
5547if [ x"$tmake_file" = x ]
5548then tmake_file=$cpu_type/t-$cpu_type
5549fi
5550
5551if [ x$float_format = x ]
5552then float_format=i64
5553fi
5554
128f7968
RH
5555if [ x$enable_haifa = x ]
5556then
5557 case $target in
5558 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-*)
5559 enable_haifa=yes;;
5560 esac
5561fi
5562
861bb6c1
JL
5563# Say what files are being used for the output code and MD file.
5564echo "Using \`$srcdir/config/$out_file' to output insns."
5565echo "Using \`$srcdir/config/$md_file' as machine description file."
5566
5567count=a
5568for f in $tm_file; do
5569 count=${count}x
5570done
5571if [ $count = ax ]; then
5572 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5573else
5574 echo "Using the following target machine macro files:"
5575 for f in $tm_file; do
5576 echo " $srcdir/config/$f"
5577 done
5578fi
5579
5580count=a
5581for f in $host_xm_file; do
5582 count=${count}x
5583done
5584if [ $count = ax ]; then
5585 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5586else
5587 echo "Using the following host machine macro files:"
5588 for f in $host_xm_file; do
5589 echo " $srcdir/config/$f"
5590 done
5591fi
5592
5593if [ "$host_xm_file" != "$build_xm_file" ]; then
5594 count=a
5595 for f in $build_xm_file; do
5596 count=${count}x
5597 done
5598 if [ $count = ax ]; then
5599 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5600 else
5601 echo "Using the following build machine macro files:"
5602 for f in $build_xm_file; do
5603 echo " $srcdir/config/$f"
5604 done
5605 fi
5606fi
5607
5608if [ x$thread_file = x ]
5609then thread_file='single'
5610fi
5611
5612# Set up the header files.
5613# $links is the list of header files to create.
5614# $vars is the list of shell variables with file names to include.
e9a25f70
JL
5615# auto-conf.h is the file containing items generated by autoconf and is
5616# the first file included by config.h.
5617host_xm_file="auto-config.h ${host_xm_file}"
861bb6c1 5618vars="host_xm_file tm_file xm_file build_xm_file"
e9a25f70 5619links="config.h tm.h tconfig.h hconfig.h"
861bb6c1
JL
5620
5621rm -f config.bak
5622if [ -f config.status ]; then mv -f config.status config.bak; fi
5623
5624# Make the links.
5625while [ -n "$vars" ]
5626do
5627 # set file to car of files, files to cdr of files
5628 set $vars; var=$1; shift; vars=$*
5629 set $links; link=$1; shift; links=$*
5630
5631 rm -f $link
5632
5633 # Define TARGET_CPU_DEFAULT if the system wants one.
5634 # This substitutes for lots of *.h files.
5635 if [ x$target_cpu_default != x -a $link = tm.h ]
5636 then
5637 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
5638 fi
5639
5640 for file in `eval echo '$'$var`; do
5641 echo "#include \"$file\"" >>$link
5642 done
5643done
5644
5645# Truncate the target if necessary
5646if [ x$host_truncate_target != x ]; then
5647 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5648fi
5649
5650# Get the version number from the toplevel
5651version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
5652
861bb6c1
JL
5653# Get an absolute path to the GCC top-level source directory
5654holddir=`pwd`
5655cd $srcdir
5656topdir=`pwd`
5657cd $holddir
5658
5659# Conditionalize the makefile for this host machine.
5660# Make-host contains the concatenation of all host makefile fragments
5661# [there can be more than one]. This file is built by configure.frag.
5662host_overrides=Make-host
5663dep_host_xmake_file=
5664for f in .. ${host_xmake_file}
5665do
5666 if [ -f ${srcdir}/config/$f ]
5667 then
5668 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
5669 fi
5670done
5671
5672# Conditionalize the makefile for this target machine.
5673# Make-target contains the concatenation of all host makefile fragments
5674# [there can be more than one]. This file is built by configure.frag.
5675target_overrides=Make-target
5676dep_tmake_file=
5677for f in .. ${tmake_file}
5678do
5679 if [ -f ${srcdir}/config/$f ]
5680 then
5681 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5682 fi
5683done
5684
5685# If the host doesn't support symlinks, modify CC in
5686# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5687# Otherwise, we can use "CC=$(CC)".
5688rm -f symtest.tem
5689if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
5690then
5691 cc_set_by_configure="\$(CC)"
5692 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5693else
e9a25f70 5694 symbolic_link="cp -p"
861bb6c1
JL
5695 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5696 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5697fi
5698rm -f symtest.tem
5699
5700out_object_file=`basename $out_file .c`.o
5701
5702tm_file_list=
5703for f in $tm_file; do
5704 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
5705done
5706
5707host_xm_file_list=
5708for f in $host_xm_file; do
5709 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
5710done
5711
5712build_xm_file_list=
5713for f in $build_xm_file; do
5714 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
5715done
5716
5717# Define macro CROSS_COMPILE in compilation
5718# if this is a cross-compiler.
5719# Also use all.cross instead of all.internal
5720# and add cross-make to Makefile.
5721cross_overrides="/dev/null"
5722if [ x$host != x$target ]
5723then
5724 cross_defines="CROSS=-DCROSS_COMPILE"
5725 cross_overrides="${topdir}/cross-make"
5726fi
5727
5728# When building gcc with a cross-compiler, we need to fix a few things.
5729# This must come after cross-make as we want all.build to override
5730# all.cross.
5731build_overrides="/dev/null"
5732if [ x$build != x$host ]
5733then
5734 build_overrides="${topdir}/build-make"
5735fi
5736
5737# Expand extra_headers to include complete path.
5738# This substitutes for lots of t-* files.
5739extra_headers_list=
5740if [ "x$extra_headers" = x ]
5741then true
5742else
5743 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5744 for file in $extra_headers;
5745 do
5746 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5747 done
5748fi
5749
5750# Add a definition of USE_COLLECT2 if system wants one.
5751# Also tell toplev.c what to do.
5752# This substitutes for lots of t-* files.
5753if [ x$use_collect2 = x ]
5754then
5755 will_use_collect2=
5756 maybe_use_collect2=
5757else
5758 will_use_collect2="ld"
5759 maybe_use_collect2="-DUSE_COLLECT2"
5760fi
5761
5762# NEED TO CONVERT
5763# Set MD_DEPS if the real md file is in md.pre-cpp.
5764# Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5765# for line oriented comments, so we must always use a GNU cpp. If
5766# building gcc with a cross compiler, use the cross compiler just
5767# built. Otherwise, we can use the cpp just built.
5768md_file_sub=
5769if [ "x$md_cppflags" = x ]
5770then
5771 md_file_sub=$srcdir/config/$md_file
5772else
5773 md_file=md
5774fi
5775
5776# If we have gas in the build tree, make a link to it.
5777if [ -f ../gas/Makefile ]; then
e41cea70 5778 rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null
861bb6c1
JL
5779fi
5780
5781# If we have ld in the build tree, make a link to it.
992d1248
DE
5782if [ -f ../ld/Makefile ]; then
5783# if [[ x$use_collect2 = x ]]; then
e41cea70 5784# rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null
aa32d841 5785# else
e41cea70 5786 rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null
aa32d841 5787# fi
992d1248 5788fi
861bb6c1
JL
5789
5790# Figure out what language subdirectories are present.
5791subdirs=
5792for lang in ${srcdir}/*/config-lang.in ..
5793do
5794 case $lang in
5795 ..) ;;
5796 # The odd quoting in the next line works around
5797 # an apparent bug in bash 1.12 on linux.
5798 ${srcdir}/[*]/config-lang.in) ;;
5799 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5800 esac
5801done
5802
f24af81b
TT
5803# Make gthr-default.h if we have a thread file.
5804gthread_flags=
5805if [ $thread_file != single ]; then
5806 rm -f gthr-default.h
5807 $symbolic_link gthr-${thread_file}.h gthr-default.h
5808 gthread_flags=-DHAVE_GTHR_DEFAULT
5809fi
5810
5811
861bb6c1
JL
5812# Make empty files to contain the specs and options for each language.
5813# Then add #include lines to for a compiler that has specs and/or options.
5814
5815lang_specs_files=
5816lang_options_files=
5817rm -f specs.h options.h
5818touch specs.h options.h
5819for subdir in . $subdirs
5820do
5821 if [ -f $srcdir/$subdir/lang-specs.h ]; then
5822 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5823 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5824 fi
5825 if [ -f $srcdir/$subdir/lang-options.h ]; then
5826 echo "#include \"$subdir/lang-options.h\"" >>options.h
5827 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
5828 fi
5829done
5830
5831# These (without "all_") are set in each config-lang.in.
5832# `language' must be a single word so is spelled singularly.
5833all_languages=
5834all_boot_languages=
5835all_compilers=
5836all_stagestuff=
5837all_diff_excludes=
5838all_outputs=Makefile
5839# List of language makefile fragments.
5840all_lang_makefiles=
5841all_headers=
5842all_lib2funcs=
5843
5844# Add the language fragments.
5845# Languages are added via two mechanisms. Some information must be
5846# recorded in makefile variables, these are defined in config-lang.in.
5847# We accumulate them and plug them into the main Makefile.
5848# The other mechanism is a set of hooks for each of the main targets
5849# like `clean', `install', etc.
5850
5851language_fragments="Make-lang"
5852language_hooks="Make-hooks"
5853oldstyle_subdirs=
5854
5855for s in .. $subdirs
5856do
5857 if [ $s != ".." ]
5858 then
5859 language=
5860 boot_language=
5861 compilers=
5862 stagestuff=
5863 diff_excludes=
5864 headers=
5865 outputs=
5866 lib2funcs=
5867 . ${srcdir}/$s/config-lang.in
5868 if [ "x$language" = x ]
5869 then
5870 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5871 exit 1
5872 fi
5873 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5874 all_languages="$all_languages $language"
5875 if [ "x$boot_language" = xyes ]
5876 then
5877 all_boot_languages="$all_boot_languages $language"
5878 fi
5879 all_compilers="$all_compilers $compilers"
5880 all_stagestuff="$all_stagestuff $stagestuff"
5881 all_diff_excludes="$all_diff_excludes $diff_excludes"
5882 all_headers="$all_headers $headers"
5883 all_outputs="$all_outputs $outputs"
5884 if [ x$outputs = x ]
5885 then
5886 oldstyle_subdirs="$oldstyle_subdirs $s"
5887 fi
5888 all_lib2funcs="$all_lib2funcs $lib2funcs"
5889 fi
5890done
5891
5892# Since we can't use `::' targets, we link each language in
5893# with a set of hooks, reached indirectly via lang.${target}.
5894
5895rm -f Make-hooks
5896touch Make-hooks
5897target_list="all.build all.cross start.encap rest.encap \
5898 info dvi \
5899 install-normal install-common install-info install-man \
5900 uninstall distdir \
5901 mostlyclean clean distclean extraclean maintainer-clean \
5902 stage1 stage2 stage3 stage4"
5903for t in $target_list
5904do
5905 x=
5906 for l in .. $all_languages
5907 do
5908 if [ $l != ".." ]; then
5909 x="$x $l.$t"
5910 fi
5911 done
5912 echo "lang.$t: $x" >> Make-hooks
5913done
5914
5915# If we're not building in srcdir, create .gdbinit.
5916
5917if [ ! -f Makefile.in ]; then
5918 echo "dir ." > .gdbinit
5919 echo "dir ${srcdir}" >> .gdbinit
5920 if [ x$gdb_needs_out_file_path = xyes ]
5921 then
5922 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5923 fi
5924 if [ "x$subdirs" != x ]; then
5925 for s in $subdirs
5926 do
5927 echo "dir ${srcdir}/$s" >> .gdbinit
5928 done
5929 fi
5930 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5931fi
5932
dec88383
DE
5933# If this is using newlib, then define inhibit_libc in
5934# LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5935# libgcc.a, but that's OK because newib should have its own version of
5936# assert.h.
5937inhibit_libc=
5938if [ x$with_newlib = xyes ]; then
5939 inhibit_libc=-Dinhibit_libc
5940fi
5941
5942
8c660648
JL
5943# Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5944sched_prefix=
5945sched_cflags=
992d1248 5946if [ x$enable_haifa = xyes ]; then
8c660648
JL
5947 echo "Using the Haifa scheduler."
5948 sched_prefix=haifa-
5949 sched_cflags=-DHAIFA
5950fi
5951
5952
992d1248 5953if [ x$enable_haifa != x ]; then
8c660648
JL
5954 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5955 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
5956 if [ -f $x ]; then
5957 echo "Removing $x"
5958 rm -f $x
5959 fi
5960 done
5961fi
5962
861bb6c1
JL
5963# Process the language and host/target makefile fragments.
5964${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5965
5966# Substitute configuration variables
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
9b16d2c4 6013
e9a25f70 6014
861bb6c1
JL
6015
6016
6017# Echo that links are built
6018if [ x$host = x$target ]
6019then
6020 str1="native "
6021else
6022 str1="cross-"
6023 str2=" from $host"
6024fi
6025
6026if [ x$host != x$build ]
6027then
6028 str3=" on a $build system"
6029fi
6030
6031if [ "x$str2" != x ] || [ "x$str3" != x ]
6032then
6033 str4=
6034fi
6035
6036echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
6037
6038if [ "x$str2" != x ] || [ "x$str3" != x ]
6039then
6040 echo " ${str2}${str3}." 1>&2
6041fi
6042
6043# Configure the subdirectories
6044# AC_CONFIG_SUBDIRS($subdirs)
6045
6046# Create the Makefile
6047# and configure language subdirectories
6048trap '' 1 2 15
6049cat > confcache <<\EOF
6050# This file is a shell script that caches the results of configure
6051# tests run on this system so they can be shared between configure
6052# scripts and configure runs. It is not useful on other systems.
6053# If it contains results you don't want to keep, you may remove or edit it.
6054#
6055# By default, configure uses ./config.cache as the cache file,
6056# creating it if it does not exist already. You can give configure
6057# the --cache-file=FILE option to use a different cache file; that is
6058# what configure does when it calls configure scripts in
6059# subdirectories, so they share the cache.
6060# Giving --cache-file=/dev/null disables caching, for debugging configure.
6061# config.status only pays attention to the cache file if you give it the
6062# --recheck option to rerun configure.
6063#
6064EOF
6065# The following way of writing the cache mishandles newlines in values,
6066# but we know of no workaround that is simple, portable, and efficient.
6067# So, don't put newlines in cache variables' values.
6068# Ultrix sh set writes to stderr and can't be redirected directly,
6069# and sets the high bit in the cache file unless we assign to the vars.
6070(set) 2>&1 |
128f7968 6071 case `(ac_space=' '; set) 2>&1` in
861bb6c1
JL
6072 *ac_space=\ *)
6073 # `set' does not quote correctly, so add quotes (double-quote substitution
6074 # turns \\\\ into \\, and sed turns \\ into \).
6075 sed -n \
6076 -e "s/'/'\\\\''/g" \
6077 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6078 ;;
6079 *)
6080 # `set' quotes correctly as required by POSIX, so do not add quotes.
6081 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6082 ;;
6083 esac >> confcache
6084if cmp -s $cache_file confcache; then
6085 :
6086else
6087 if test -w $cache_file; then
6088 echo "updating cache $cache_file"
6089 cat confcache > $cache_file
6090 else
6091 echo "not updating unwritable cache $cache_file"
6092 fi
6093fi
6094rm -f confcache
6095
6096trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6097
6098test "x$prefix" = xNONE && prefix=$ac_default_prefix
6099# Let make expand exec_prefix.
6100test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6101
6102# Any assignment to VPATH causes Sun make to only execute
6103# the first set of double-colon rules, so remove it if not needed.
6104# If there is a colon in the path, we need to keep it.
6105if test "x$srcdir" = x.; then
6106 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6107fi
6108
6109trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6110
6111DEFS=-DHAVE_CONFIG_H
6112
6113# Without the "./", some shells look in PATH for config.status.
6114: ${CONFIG_STATUS=./config.status}
6115
6116echo creating $CONFIG_STATUS
6117rm -f $CONFIG_STATUS
6118cat > $CONFIG_STATUS <<EOF
6119#! /bin/sh
6120# Generated automatically by configure.
6121# Run this file to recreate the current configuration.
6122# This directory was configured as follows,
6123# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6124#
6125# $0 $ac_configure_args
6126#
6127# Compiler output produced by configure, useful for debugging
6128# configure, is in ./config.log if it exists.
6129
6130ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6131for ac_option
6132do
6133 case "\$ac_option" in
6134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6135 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6136 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6137 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
128f7968 6138 echo "$CONFIG_STATUS generated by autoconf version 2.12"
861bb6c1
JL
6139 exit 0 ;;
6140 -help | --help | --hel | --he | --h)
6141 echo "\$ac_cs_usage"; exit 0 ;;
6142 *) echo "\$ac_cs_usage"; exit 1 ;;
6143 esac
6144done
6145
6146ac_given_srcdir=$srcdir
861bb6c1 6147
e9a25f70 6148trap 'rm -fr `echo "$all_outputs auto-config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
861bb6c1
JL
6149EOF
6150cat >> $CONFIG_STATUS <<EOF
6151
6152# Protect against being on the right side of a sed subst in config.status.
6153sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6154 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6155$ac_vpsub
6156$extrasub
6157s%@CFLAGS@%$CFLAGS%g
6158s%@CPPFLAGS@%$CPPFLAGS%g
6159s%@CXXFLAGS@%$CXXFLAGS%g
6160s%@DEFS@%$DEFS%g
6161s%@LDFLAGS@%$LDFLAGS%g
6162s%@LIBS@%$LIBS%g
6163s%@exec_prefix@%$exec_prefix%g
6164s%@prefix@%$prefix%g
6165s%@program_transform_name@%$program_transform_name%g
6166s%@bindir@%$bindir%g
6167s%@sbindir@%$sbindir%g
6168s%@libexecdir@%$libexecdir%g
6169s%@datadir@%$datadir%g
6170s%@sysconfdir@%$sysconfdir%g
6171s%@sharedstatedir@%$sharedstatedir%g
6172s%@localstatedir@%$localstatedir%g
6173s%@libdir@%$libdir%g
6174s%@includedir@%$includedir%g
6175s%@oldincludedir@%$oldincludedir%g
6176s%@infodir@%$infodir%g
6177s%@mandir@%$mandir%g
6178s%@host@%$host%g
6179s%@host_alias@%$host_alias%g
6180s%@host_cpu@%$host_cpu%g
6181s%@host_vendor@%$host_vendor%g
6182s%@host_os@%$host_os%g
6183s%@target@%$target%g
6184s%@target_alias@%$target_alias%g
6185s%@target_cpu@%$target_cpu%g
6186s%@target_vendor@%$target_vendor%g
6187s%@target_os@%$target_os%g
6188s%@build@%$build%g
6189s%@build_alias@%$build_alias%g
6190s%@build_cpu@%$build_cpu%g
6191s%@build_vendor@%$build_vendor%g
6192s%@build_os@%$build_os%g
e9a25f70
JL
6193s%@CC@%$CC%g
6194s%@SET_MAKE@%$SET_MAKE%g
861bb6c1
JL
6195s%@AWK@%$AWK%g
6196s%@LEX@%$LEX%g
6197s%@LEXLIB@%$LEXLIB%g
ac64120e 6198s%@LN@%$LN%g
861bb6c1
JL
6199s%@LN_S@%$LN_S%g
6200s%@RANLIB@%$RANLIB%g
6201s%@YACC@%$YACC%g
5643c767 6202s%@INSTALL@%$INSTALL%g
861bb6c1
JL
6203s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6204s%@INSTALL_DATA@%$INSTALL_DATA%g
861bb6c1
JL
6205s%@CPP@%$CPP%g
6206s%@manext@%$manext%g
992d1248 6207s%@objext@%$objext%g
f24af81b 6208s%@gthread_flags@%$gthread_flags%g
dec88383 6209s%@inhibit_libc@%$inhibit_libc%g
8c660648
JL
6210s%@sched_prefix@%$sched_prefix%g
6211s%@sched_cflags@%$sched_cflags%g
861bb6c1
JL
6212s%@subdirs@%$subdirs%g
6213s%@all_languages@%$all_languages%g
6214s%@all_boot_languages@%$all_boot_languages%g
6215s%@all_compilers@%$all_compilers%g
6216s%@all_lang_makefiles@%$all_lang_makefiles%g
6217s%@all_stagestuff@%$all_stagestuff%g
6218s%@all_diff_excludes@%$all_diff_excludes%g
6219s%@all_lib2funcs@%$all_lib2funcs%g
6220s%@all_headers@%$all_headers%g
6221s%@extra_passes@%$extra_passes%g
6222s%@extra_programs@%$extra_programs%g
6223s%@extra_parts@%$extra_parts%g
6224s%@extra_c_objs@%$extra_c_objs%g
6225s%@extra_c_flags@%$extra_c_flags%g
6226s%@extra_objs@%$extra_objs%g
6227s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6228s%@extra_headers_list@%$extra_headers_list%g
6229s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6230s%@dep_tmake_file@%$dep_tmake_file%g
6231s%@out_file@%$out_file%g
6232s%@out_object_file@%$out_object_file%g
6233s%@md_file@%$md_file%g
6234s%@tm_file_list@%$tm_file_list%g
6235s%@build_xm_file_list@%$build_xm_file_list%g
6236s%@host_xm_file_list@%$host_xm_file_list%g
6237s%@lang_specs_files@%$lang_specs_files%g
6238s%@lang_options_files@%$lang_options_files%g
6239s%@thread_file@%$thread_file%g
6240s%@version@%$version%g
6241s%@local_prefix@%$local_prefix%g
6242s%@gxx_include_dir@%$gxx_include_dir%g
6243s%@fixincludes@%$fixincludes%g
6244s%@build_install_headers_dir@%$build_install_headers_dir%g
6245s%@build_exeext@%$build_exeext%g
6246s%@float_format@%$float_format%g
6247s%@will_use_collect2@%$will_use_collect2%g
6248s%@maybe_use_collect2@%$maybe_use_collect2%g
6249s%@cc_set_by_configure@%$cc_set_by_configure%g
6250s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9b16d2c4 6251s%@install@%$install%g
e9a25f70 6252s%@symbolic_link@%$symbolic_link%g
861bb6c1
JL
6253/@target_overrides@/r $target_overrides
6254s%@target_overrides@%%g
6255/@host_overrides@/r $host_overrides
6256s%@host_overrides@%%g
6257s%@cross_defines@%$cross_defines%g
6258/@cross_overrides@/r $cross_overrides
6259s%@cross_overrides@%%g
6260/@build_overrides@/r $build_overrides
6261s%@build_overrides@%%g
6262/@language_fragments@/r $language_fragments
6263s%@language_fragments@%%g
6264/@language_hooks@/r $language_hooks
6265s%@language_hooks@%%g
6266
6267CEOF
6268EOF
6269
6270cat >> $CONFIG_STATUS <<\EOF
6271
6272# Split the substitutions into bite-sized pieces for seds with
6273# small command number limits, like on Digital OSF/1 and HP-UX.
6274ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6275ac_file=1 # Number of current file.
6276ac_beg=1 # First line for current file.
6277ac_end=$ac_max_sed_cmds # Line after last line for current file.
6278ac_more_lines=:
6279ac_sed_cmds=""
6280while $ac_more_lines; do
6281 if test $ac_beg -gt 1; then
6282 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6283 else
6284 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6285 fi
6286 if test ! -s conftest.s$ac_file; then
6287 ac_more_lines=false
6288 rm -f conftest.s$ac_file
6289 else
6290 if test -z "$ac_sed_cmds"; then
6291 ac_sed_cmds="sed -f conftest.s$ac_file"
6292 else
6293 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6294 fi
6295 ac_file=`expr $ac_file + 1`
6296 ac_beg=$ac_end
6297 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6298 fi
6299done
6300if test -z "$ac_sed_cmds"; then
6301 ac_sed_cmds=cat
6302fi
6303EOF
6304
6305cat >> $CONFIG_STATUS <<EOF
6306
6307CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
6308EOF
6309cat >> $CONFIG_STATUS <<\EOF
6310for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6311 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6312 case "$ac_file" in
6313 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6314 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6315 *) ac_file_in="${ac_file}.in" ;;
6316 esac
6317
6318 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6319
6320 # Remove last slash and all that follows it. Not all systems have dirname.
6321 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6322 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6323 # The file is in a subdirectory.
6324 test ! -d "$ac_dir" && mkdir "$ac_dir"
6325 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6326 # A "../" for each directory in $ac_dir_suffix.
6327 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6328 else
6329 ac_dir_suffix= ac_dots=
6330 fi
6331
6332 case "$ac_given_srcdir" in
6333 .) srcdir=.
6334 if test -z "$ac_dots"; then top_srcdir=.
6335 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6336 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6337 *) # Relative path.
6338 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6339 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6340 esac
6341
861bb6c1
JL
6342
6343 echo creating "$ac_file"
6344 rm -f "$ac_file"
6345 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6346 case "$ac_file" in
6347 *Makefile*) ac_comsub="1i\\
6348# $configure_input" ;;
6349 *) ac_comsub= ;;
6350 esac
6351
6352 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6353 sed -e "$ac_comsub
6354s%@configure_input@%$configure_input%g
6355s%@srcdir@%$srcdir%g
6356s%@top_srcdir@%$top_srcdir%g
861bb6c1
JL
6357" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6358fi; done
6359rm -f conftest.s*
6360
6361# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6362# NAME is the cpp macro being defined and VALUE is the value it is being given.
6363#
6364# ac_d sets the value in "#define NAME VALUE" lines.
6365ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6366ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6367ac_dC='\3'
6368ac_dD='%g'
6369# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6370ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6371ac_uB='\([ ]\)%\1#\2define\3'
6372ac_uC=' '
6373ac_uD='\4%g'
6374# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6375ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6376ac_eB='$%\1#\2define\3'
6377ac_eC=' '
6378ac_eD='%g'
6379
6380if test "${CONFIG_HEADERS+set}" != set; then
6381EOF
6382cat >> $CONFIG_STATUS <<EOF
e9a25f70 6383 CONFIG_HEADERS="auto-config.h:config.in"
861bb6c1
JL
6384EOF
6385cat >> $CONFIG_STATUS <<\EOF
6386fi
6387for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6389 case "$ac_file" in
6390 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6391 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6392 *) ac_file_in="${ac_file}.in" ;;
6393 esac
6394
6395 echo creating $ac_file
6396
6397 rm -f conftest.frag conftest.in conftest.out
6398 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6399 cat $ac_file_inputs > conftest.in
6400
6401EOF
6402
6403# Transform confdefs.h into a sed script conftest.vals that substitutes
6404# the proper values into config.h.in to produce config.h. And first:
6405# Protect against being on the right side of a sed subst in config.status.
6406# Protect against being in an unquoted here document in config.status.
6407rm -f conftest.vals
6408cat > conftest.hdr <<\EOF
6409s/[\\&%]/\\&/g
6410s%[\\$`]%\\&%g
6411s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6412s%ac_d%ac_u%gp
6413s%ac_u%ac_e%gp
6414EOF
6415sed -n -f conftest.hdr confdefs.h > conftest.vals
6416rm -f conftest.hdr
6417
6418# This sed command replaces #undef with comments. This is necessary, for
6419# example, in the case of _POSIX_SOURCE, which is predefined and required
6420# on some systems where configure will not decide to define it.
6421cat >> conftest.vals <<\EOF
6422s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6423EOF
6424
6425# Break up conftest.vals because some shells have a limit on
6426# the size of here documents, and old seds have small limits too.
6427
6428rm -f conftest.tail
6429while :
6430do
6431 ac_lines=`grep -c . conftest.vals`
6432 # grep -c gives empty output for an empty file on some AIX systems.
6433 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6434 # Write a limited-size here document to conftest.frag.
6435 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6436 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6437 echo 'CEOF
6438 sed -f conftest.frag conftest.in > conftest.out
6439 rm -f conftest.in
6440 mv conftest.out conftest.in
6441' >> $CONFIG_STATUS
6442 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6443 rm -f conftest.vals
6444 mv conftest.tail conftest.vals
6445done
6446rm -f conftest.vals
6447
6448cat >> $CONFIG_STATUS <<\EOF
6449 rm -f conftest.frag conftest.h
6450 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6451 cat conftest.in >> conftest.h
6452 rm -f conftest.in
6453 if cmp -s $ac_file conftest.h 2>/dev/null; then
6454 echo "$ac_file is unchanged"
6455 rm -f conftest.h
6456 else
6457 # Remove last slash and all that follows it. Not all systems have dirname.
6458 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6459 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6460 # The file is in a subdirectory.
6461 test ! -d "$ac_dir" && mkdir "$ac_dir"
6462 fi
6463 rm -f $ac_file
6464 mv conftest.h $ac_file
6465 fi
6466fi; done
6467
6468EOF
6469cat >> $CONFIG_STATUS <<EOF
6470
6471host='${host}'
6472build='${build}'
6473target='${target}'
6474target_alias='${target_alias}'
6475srcdir='${srcdir}'
6476subdirs='${subdirs}'
6477oldstyle_subdirs='${oldstyle_subdirs}'
6478symbolic_link='${symbolic_link}'
6479program_transform_set='${program_transform_set}'
6480program_transform_name='${program_transform_name}'
6481dep_host_xmake_file='${dep_host_xmake_file}'
6482host_xmake_file='${host_xmake_file}'
6483dep_tmake_file='${dep_tmake_file}'
6484tmake_file='${tmake_file}'
6485thread_file='${thread_file}'
6486version='${version}'
6487local_prefix='${local_prefix}'
6488build_install_headers_dir='${build_install_headers_dir}'
6489build_exeext='${build_exeext}'
7ed46111 6490out_file='${out_file}'
861bb6c1
JL
6491gdb_needs_out_file_path='${gdb_needs_out_file_path}'
6492SET_MAKE='${SET_MAKE}'
861bb6c1
JL
6493target_list='${target_list}'
6494target_overrides='${target_overrides}'
6495host_overrides='${host_overrides}'
6496cross_defines='${cross_defines}'
6497cross_overrides='${cross_overrides}'
6498build_overrides='${build_overrides}'
6499
6500EOF
6501cat >> $CONFIG_STATUS <<\EOF
6502
6503. $srcdir/configure.lang
6504case x$CONFIG_HEADERS in
e9a25f70 6505xauto-config.h:config.in)
861bb6c1
JL
6506echo > cstamp-h ;;
6507esac
93cf819d
BK
6508# If the host supports symlinks, point stage[1234] at ../stage[1234] so
6509# bootstrapping and the installation procedure can still use
6510# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
6511# FLAGS_TO_PASS has been modified to solve the problem there.
6512# This is virtually a duplicate of what happens in configure.lang; we do
6513# an extra check to make sure this only happens if ln -s can be used.
6514if [ "$symbolic_link" = "ln -s" ]; then
6515 for d in .. ${subdirs} ; do
6516 if [ $d != .. ]; then
4e8a434e
BK
6517 STARTDIR=`pwd`
6518 cd $d
6519 for t in stage1 stage2 stage3 stage4 include
6520 do
6521 rm -f $t
6522 $symbolic_link ../$t $t 2>/dev/null
6523 done
6524 cd $STARTDIR
93cf819d
BK
6525 fi
6526 done
6527else true ; fi
861bb6c1
JL
6528
6529exit 0
6530EOF
6531chmod +x $CONFIG_STATUS
6532rm -fr confdefs* $ac_clean_files
6533test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6534