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