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