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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-gnu-as arrange to work with GNU as."
19 --with-stabs arrange to use stabs instead of host debug format."
21 --with-elf arrange to use ELF instead of host debug format."
23 --with-local-prefix=DIR specifies directory to put local include."
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
28 --enable-checking enable expensive run-time checks."
30 --enable-c-cpplib Use cpplib for C."
32 --enable-haifa Use the experimental scheduler.
33 --disable-haifa Don't use the experimental scheduler for the
34 targets which normally enable it."
36 --with-fast-fixincludes Use a faster fixinclude program. Experimental"
38 --enable-threads enable thread usage for target GCC.
39 --enable-threads=LIB use LIB thread package for target GCC."
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
45 cache_file=./config.cache
54 program_transform_name=s,x,x,
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
75 # Initialize some other variables.
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
215 -host | --host | --hos | --ho)
217 -host=* | --host=* | --hos=* | --ho=*)
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
232 -libdir | --libdir | --libdi | --libd)
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
259 # Obsolete; use --without-fp.
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 sbindir="$ac_optarg" ;;
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 sharedstatedir="$ac_optarg" ;;
336 -site | --site | --sit)
338 -site=* | --site=* | --sit=*)
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344 srcdir="$ac_optarg" ;;
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347 | --syscon | --sysco | --sysc | --sys | --sy)
348 ac_prev=sysconfdir ;;
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351 sysconfdir="$ac_optarg" ;;
353 -target | --target | --targe | --targ | --tar | --ta | --t)
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356 target="$ac_optarg" ;;
358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 -version | --version | --versio | --versi | --vers)
362 echo "configure generated by autoconf version 2.12.1"
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* | --without-*)
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
388 # Obsolete; use --with-x.
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392 | --x-incl | --x-inc | --x-in | --x-i)
393 ac_prev=x_includes ;;
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396 x_includes="$ac_optarg" ;;
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400 ac_prev=x_libraries ;;
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403 x_libraries="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454 | --no-cr | --no-c) ;;
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file=tree.c
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted=yes
485 # Try the directory containing this script, then its parent.
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
490 if test ! -r $srcdir/$ac_unique_file; then
494 ac_srcdir_defaulted=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE; then
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
524 echo "creating cache $cache_file"
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='\c' ac_t=
552 symbolic_link='ln -s'
555 # Check for additional parameters
558 # Check whether --with-gnu-ld or --without-gnu-ld was given.
559 if test "${with_gnu_ld+set}" = set; then
560 withval="$with_gnu_ld"
561 gnu_ld_flag="$with_gnu_ld"
568 # Check whether --with-gnu-as or --without-gnu-as was given.
569 if test "${with_gnu_as+set}" = set; then
570 withval="$with_gnu_as"
571 gas_flag="$with_gnu_as"
578 # Check whether --with-stabs or --without-stabs was given.
579 if test "${with_stabs+set}" = set; then
580 withval="$with_stabs"
588 # Check whether --with-elf or --without-elf was given.
589 if test "${with_elf+set}" = set; then
597 # Specify the local prefix
598 # Check whether --with-local-prefix or --without-local-prefix was given.
599 if test "${with_local_prefix+set}" = set; then
600 withval="$with_local_prefix"
601 local_prefix=$with_local_prefix
603 local_prefix=/usr/local
607 # Default local prefix if it is empty
608 if [ x$local_prefix = x ]; then
609 local_prefix=/usr/local
612 # Specify the g++ header file directory
613 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
614 if test "${with_gxx_include_dir+set}" = set; then
615 withval="$with_gxx_include_dir"
616 gxx_include_dir=$with_gxx_include_dir
618 gxx_include_dir='${prefix}/include/g++'
622 # Default g++ header file directory if it is empty
623 if [ x$gxx_include_dir = x ]; then
624 gxx_include_dir='${prefix}/include/g++'
627 # Enable expensive internal checks
628 # Check whether --enable-checking or --disable-checking was given.
629 if test "${enable_checking+set}" = set; then
630 enableval="$enable_checking"
631 cat >> confdefs.h <<\EOF
632 #define ENABLE_CHECKING 1
639 # Enable use of cpplib for C.
640 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
641 if test "${enable_c_cpplib+set}" = set; then
642 enableval="$enable_c_cpplib"
643 if [ x$enable_c_cpplib != xno ]; then
644 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
645 extra_c_objs="${extra_c_objs} prefix.o"
646 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
647 extra_c_flags=-DUSE_CPPLIB=1
652 # Enable Haifa scheduler.
653 # Check whether --enable-haifa or --disable-haifa was given.
654 if test "${enable_haifa+set}" = set; then
655 enableval="$enable_haifa"
661 # This is a work in progress...
662 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
663 if test "${with_fast_fixincludes+set}" = set; then
664 withval="$with_fast_fixincludes"
665 fast_fixinc="$with_fast_fixincludes"
672 # Pass with no value to take the default
673 # Pass with a value to specify a thread package
674 # Check whether --enable-threads or --disable-threads was given.
675 if test "${enable_threads+set}" = set; then
676 enableval="$enable_threads"
677 if [ x$enable_threads = xno ]; then
685 enable_threads_flag=$enable_threads
686 # Check if a valid thread package
687 case x${enable_threads_flag} in
690 target_thread_file='single'
694 target_thread_file=''
696 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
697 xsolaris | xwin32 | xdce | xvxworks)
698 target_thread_file=$enable_threads_flag
701 echo "$enable_threads is an unknown thread package" 1>&2
706 # Determine the host, build, and target systems
708 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
709 if test -f $ac_dir/install-sh; then
711 ac_install_sh="$ac_aux_dir/install-sh -c"
713 elif test -f $ac_dir/install.sh; then
715 ac_install_sh="$ac_aux_dir/install.sh -c"
719 if test -z "$ac_aux_dir"; then
720 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
722 ac_config_guess=$ac_aux_dir/config.guess
723 ac_config_sub=$ac_aux_dir/config.sub
724 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
727 # Do some error checking and defaulting for the host and target type.
729 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
732 # 1. You are not allowed to specify --host, --target, and nonopt at the
734 # 2. Host defaults to nonopt.
735 # 3. If nonopt is not specified, then host defaults to the current host,
736 # as determined by config.guess.
737 # 4. Target and build default to nonopt.
738 # 5. If nonopt is not specified, then target and build default to host.
740 # The aliases save the names the user supplied, while $host etc.
741 # will get canonicalized.
742 case $host---$target---$nonopt in
743 NONE---*---* | *---NONE---* | *---*---NONE) ;;
744 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
748 # Make sure we can run config.sub.
749 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
750 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
753 echo $ac_n "checking host system type""... $ac_c" 1>&6
754 echo "configure:755: checking host system type" >&5
757 case "$host_alias" in
761 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
762 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
764 *) host_alias=$nonopt ;;
768 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
769 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
770 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
771 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
772 echo "$ac_t""$host" 1>&6
774 echo $ac_n "checking target system type""... $ac_c" 1>&6
775 echo "configure:776: checking target system type" >&5
778 case "$target_alias" in
781 NONE) target_alias=$host_alias ;;
782 *) target_alias=$nonopt ;;
786 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
787 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
788 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
789 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo "$ac_t""$target" 1>&6
792 echo $ac_n "checking build system type""... $ac_c" 1>&6
793 echo "configure:794: checking build system type" >&5
796 case "$build_alias" in
799 NONE) build_alias=$host_alias ;;
800 *) build_alias=$nonopt ;;
804 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
805 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
806 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
807 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
808 echo "$ac_t""$build" 1>&6
810 test "$host_alias" != "$target_alias" &&
811 test "$program_prefix$program_suffix$program_transform_name" = \
813 program_prefix=${target_alias}-
816 # Find the native compiler
817 # Extract the first word of "gcc", so it can be a program name with args.
818 set dummy gcc; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 if test -n "$CC"; then
825 ac_cv_prog_CC="$CC" # Let the user override the test.
827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
828 for ac_dir in $PATH; do
829 test -z "$ac_dir" && ac_dir=.
830 if test -f $ac_dir/$ac_word; then
839 if test -n "$CC"; then
840 echo "$ac_t""$CC" 1>&6
842 echo "$ac_t""no" 1>&6
845 if test -z "$CC"; then
846 # Extract the first word of "cc", so it can be a program name with args.
847 set dummy cc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
858 for ac_dir in $PATH; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
870 if test $ac_prog_rejected = yes; then
871 # We found a bogon in the path, so make sure we never use it.
872 set dummy $ac_cv_prog_CC
874 if test $# -gt 0; then
875 # We chose a different compiler from the bogus one.
876 # However, it has the same basename, so the bogon will be chosen
877 # first if we set CC to just the basename; use the full file name.
879 set dummy "$ac_dir/$ac_word" "$@"
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
893 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp='$CPP $CPPFLAGS'
902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling=$ac_cv_prog_cc_cross
906 cat > conftest.$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
911 if { (eval echo configure:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
912 ac_cv_prog_cc_works=yes
913 # If we can't run a trivial program, we are probably using a cross compiler.
914 if (./conftest; exit) 2>/dev/null; then
915 ac_cv_prog_cc_cross=no
917 ac_cv_prog_cc_cross=yes
920 echo "configure: failed program was:" >&5
921 cat conftest.$ac_ext >&5
922 ac_cv_prog_cc_works=no
926 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
927 if test $ac_cv_prog_cc_works = no; then
928 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
932 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
933 cross_compiling=$ac_cv_prog_cc_cross
935 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
936 echo "configure:937: checking whether we are using GNU C" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 cat > conftest.c <<EOF
945 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
952 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
954 if test $ac_cv_prog_gcc = yes; then
956 ac_test_CFLAGS="${CFLAGS+set}"
957 ac_save_CFLAGS="$CFLAGS"
959 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
960 echo "configure:961: checking whether ${CC-cc} accepts -g" >&5
961 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 echo 'void f(){}' > conftest.c
965 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
974 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
975 if test "$ac_test_CFLAGS" = set; then
976 CFLAGS="$ac_save_CFLAGS"
977 elif test $ac_cv_prog_cc_g = yes; then
984 test "${CFLAGS+set}" = set || CFLAGS="-g"
987 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
988 echo "configure:989: checking whether ${MAKE-make} sets \${MAKE}" >&5
989 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
990 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 cat > conftestmake <<\EOF
995 @echo 'ac_maketemp="${MAKE}"'
997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
998 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
999 if test -n "$ac_maketemp"; then
1000 eval ac_cv_prog_make_${ac_make}_set=yes
1002 eval ac_cv_prog_make_${ac_make}_set=no
1006 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1007 echo "$ac_t""yes" 1>&6
1010 echo "$ac_t""no" 1>&6
1011 SET_MAKE="MAKE=${MAKE-make}"
1015 # Find some useful tools
1016 for ac_prog in mawk gawk nawk awk
1018 # Extract the first word of "$ac_prog", so it can be a program name with args.
1019 set dummy $ac_prog; ac_word=$2
1020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1021 echo "configure:1022: checking for $ac_word" >&5
1022 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1025 if test -n "$AWK"; then
1026 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1029 for ac_dir in $PATH; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_prog_AWK="$ac_prog"
1039 AWK="$ac_cv_prog_AWK"
1040 if test -n "$AWK"; then
1041 echo "$ac_t""$AWK" 1>&6
1043 echo "$ac_t""no" 1>&6
1046 test -n "$AWK" && break
1049 # Extract the first word of "flex", so it can be a program name with args.
1050 set dummy flex; ac_word=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 if test -n "$LEX"; then
1057 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1060 for ac_dir in $PATH; do
1061 test -z "$ac_dir" && ac_dir=.
1062 if test -f $ac_dir/$ac_word; then
1063 ac_cv_prog_LEX="flex"
1068 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1071 LEX="$ac_cv_prog_LEX"
1072 if test -n "$LEX"; then
1073 echo "$ac_t""$LEX" 1>&6
1075 echo "$ac_t""no" 1>&6
1078 if test -z "$LEXLIB"
1084 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1085 echo "configure:1086: checking for yywrap in -l$ac_lib" >&5
1086 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 ac_save_LIBS="$LIBS"
1091 LIBS="-l$ac_lib $LIBS"
1092 cat > conftest.$ac_ext <<EOF
1093 #line 1094 "configure"
1094 #include "confdefs.h"
1095 /* Override any gcc2 internal prototype to avoid an error. */
1096 /* We use char because int might match the return type of a gcc2
1097 builtin and then its argument prototype would still apply. */
1104 if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1106 eval "ac_cv_lib_$ac_lib_var=yes"
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1111 eval "ac_cv_lib_$ac_lib_var=no"
1114 LIBS="$ac_save_LIBS"
1117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1118 echo "$ac_t""yes" 1>&6
1121 echo "$ac_t""no" 1>&6
1126 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether ln works" >&5
1128 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 rm -f conftestdata_t
1132 echo >conftestdata_f
1133 if ln conftestdata_f conftestdata_t 2>/dev/null
1137 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1139 gcc_cv_prog_LN="ln -s"
1144 rm -f conftestdata_f conftestdata_t
1147 LN="$gcc_cv_prog_LN"
1148 if test "$gcc_cv_prog_LN" = "ln"; then
1149 echo "$ac_t""yes" 1>&6
1151 if test "$gcc_cv_prog_LN" = "ln -s"; then
1152 echo "$ac_t""no, using ln -s" 1>&6
1154 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1158 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether ln -s works" >&5
1160 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 rm -f conftestdata_t
1164 echo >conftestdata_f
1165 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1167 gcc_cv_prog_LN_S="ln -s"
1169 if ln conftestdata_f conftestdata_t 2>/dev/null
1176 rm -f conftestdata_f conftestdata_t
1179 LN_S="$gcc_cv_prog_LN_S"
1180 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1181 echo "$ac_t""yes" 1>&6
1183 if test "$gcc_cv_prog_LN_S" = "ln"; then
1184 echo "$ac_t""no, using ln" 1>&6
1186 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1190 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1191 echo "configure:1192: checking for volatile" >&5
1192 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1203 if { (eval echo configure:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1205 gcc_cv_c_volatile=yes
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1210 gcc_cv_c_volatile=no
1215 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1216 if test $gcc_cv_c_volatile = yes ; then
1217 cat >> confdefs.h <<\EOF
1218 #define HAVE_VOLATILE 1
1223 # Extract the first word of "ranlib", so it can be a program name with args.
1224 set dummy ranlib; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 if test -n "$RANLIB"; then
1231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1234 for ac_dir in $PATH; do
1235 test -z "$ac_dir" && ac_dir=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_RANLIB="ranlib"
1242 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1245 RANLIB="$ac_cv_prog_RANLIB"
1246 if test -n "$RANLIB"; then
1247 echo "$ac_t""$RANLIB" 1>&6
1249 echo "$ac_t""no" 1>&6
1252 for ac_prog in 'bison -y' byacc
1254 # Extract the first word of "$ac_prog", so it can be a program name with args.
1255 set dummy $ac_prog; ac_word=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test -n "$YACC"; then
1262 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1265 for ac_dir in $PATH; do
1266 test -z "$ac_dir" && ac_dir=.
1267 if test -f $ac_dir/$ac_word; then
1268 ac_cv_prog_YACC="$ac_prog"
1275 YACC="$ac_cv_prog_YACC"
1276 if test -n "$YACC"; then
1277 echo "$ac_t""$YACC" 1>&6
1279 echo "$ac_t""no" 1>&6
1282 test -n "$YACC" && break
1284 test -n "$YACC" || YACC="yacc"
1286 # Find a good install program. We prefer a C program (faster),
1287 # so one script is as good as another. But avoid the broken or
1288 # incompatible versions:
1289 # SysV /etc/install, /usr/sbin/install
1290 # SunOS /usr/etc/install
1291 # IRIX /sbin/install
1293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1295 # ./install, which can be erroneously created by make from ./install.sh.
1296 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1297 echo "configure:1298: checking for a BSD compatible install" >&5
1298 if test -z "$INSTALL"; then
1299 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1303 for ac_dir in $PATH; do
1304 # Account for people who put trailing slashes in PATH elements.
1306 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1308 # OSF1 and SCO ODT 3.0 have their own names for install.
1309 for ac_prog in ginstall scoinst install; do
1310 if test -f $ac_dir/$ac_prog; then
1311 if test $ac_prog = install &&
1312 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1313 # AIX install. It has an incompatible calling convention.
1314 # OSF/1 installbsd also uses dspmsg, but is usable.
1317 ac_cv_path_install="$ac_dir/$ac_prog -c"
1328 if test "${ac_cv_path_install+set}" = set; then
1329 INSTALL="$ac_cv_path_install"
1331 # As a last resort, use the slow shell script. We don't cache a
1332 # path for INSTALL within a source directory, because that will
1333 # break other packages using the cache if that directory is
1334 # removed, or if the path is relative.
1335 INSTALL="$ac_install_sh"
1338 echo "$ac_t""$INSTALL" 1>&6
1340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1341 # It thinks the first close brace ends the variable substitution.
1342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1344 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1347 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1348 echo "configure:1349: checking how to run the C preprocessor" >&5
1349 # On Suns, sometimes $CPP names a directory.
1350 if test -n "$CPP" && test -d "$CPP"; then
1353 if test -z "$CPP"; then
1354 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 # This must be in double quotes, not single quotes, because CPP may get
1358 # substituted into the Makefile and "${CC-cc}" will confuse make.
1360 # On the NeXT, cc -E runs the code through the compiler's parser,
1361 # not just through cpp.
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1369 { (eval echo configure:1370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1370 ac_err=`grep -v '^ *+' conftest.out`
1371 if test -z "$ac_err"; then
1375 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5
1378 CPP="${CC-cc} -E -traditional-cpp"
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1386 { (eval echo configure:1387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1387 ac_err=`grep -v '^ *+' conftest.out`
1388 if test -z "$ac_err"; then
1392 echo "configure: failed program was:" >&5
1393 cat conftest.$ac_ext >&5
1400 ac_cv_prog_CPP="$CPP"
1402 CPP="$ac_cv_prog_CPP"
1404 ac_cv_prog_CPP="$CPP"
1406 echo "$ac_t""$CPP" 1>&6
1408 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1409 echo "configure:1410: checking for ANSI C header files" >&5
1410 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 cat > conftest.$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1422 { (eval echo configure:1423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1423 ac_err=`grep -v '^ *+' conftest.out`
1424 if test -z "$ac_err"; then
1426 ac_cv_header_stdc=yes
1429 echo "configure: failed program was:" >&5
1430 cat conftest.$ac_ext >&5
1432 ac_cv_header_stdc=no
1436 if test $ac_cv_header_stdc = yes; then
1437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1444 egrep "memchr" >/dev/null 2>&1; then
1448 ac_cv_header_stdc=no
1454 if test $ac_cv_header_stdc = yes; then
1455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1462 egrep "free" >/dev/null 2>&1; then
1466 ac_cv_header_stdc=no
1472 if test $ac_cv_header_stdc = yes; then
1473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1474 if test "$cross_compiling" = yes; then
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1481 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1482 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1483 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1484 int main () { int i; for (i = 0; i < 256; i++)
1485 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1489 if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1496 ac_cv_header_stdc=no
1504 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1505 if test $ac_cv_header_stdc = yes; then
1506 cat >> confdefs.h <<\EOF
1507 #define STDC_HEADERS 1
1512 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1513 echo "configure:1514: checking whether time.h and sys/time.h may both be included" >&5
1514 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 #include <sys/types.h>
1521 #include <sys/time.h>
1527 if { (eval echo configure:1528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1529 ac_cv_header_time=yes
1531 echo "configure: failed program was:" >&5
1532 cat conftest.$ac_ext >&5
1534 ac_cv_header_time=no
1539 echo "$ac_t""$ac_cv_header_time" 1>&6
1540 if test $ac_cv_header_time = yes; then
1541 cat >> confdefs.h <<\EOF
1542 #define TIME_WITH_SYS_TIME 1
1547 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 wait.h sys/wait.h
1549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1551 echo "configure:1552: checking for $ac_hdr" >&5
1552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 cat > conftest.$ac_ext <<EOF
1556 #line 1557 "configure"
1557 #include "confdefs.h"
1560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1561 { (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1562 ac_err=`grep -v '^ *+' conftest.out`
1563 if test -z "$ac_err"; then
1565 eval "ac_cv_header_$ac_safe=yes"
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1571 eval "ac_cv_header_$ac_safe=no"
1575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1576 echo "$ac_t""yes" 1>&6
1577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1578 cat >> confdefs.h <<EOF
1579 #define $ac_tr_hdr 1
1583 echo "$ac_t""no" 1>&6
1588 # Check for thread headers.
1589 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1591 echo "configure:1592: checking for thread.h" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err=`grep -v '^ *+' conftest.out`
1603 if test -z "$ac_err"; then
1605 eval "ac_cv_header_$ac_safe=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 eval "ac_cv_header_$ac_safe=no"
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1619 echo "$ac_t""no" 1>&6
1623 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1624 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1625 echo "configure:1626: checking for pthread.h" >&5
1626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632 #include <pthread.h>
1634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1635 { (eval echo configure:1636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1636 ac_err=`grep -v '^ *+' conftest.out`
1637 if test -z "$ac_err"; then
1639 eval "ac_cv_header_$ac_safe=yes"
1642 echo "configure: failed program was:" >&5
1643 cat conftest.$ac_ext >&5
1645 eval "ac_cv_header_$ac_safe=no"
1649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1650 echo "$ac_t""yes" 1>&6
1653 echo "$ac_t""no" 1>&6
1658 # See if the system preprocessor understands the ANSI C preprocessor
1659 # stringification operator.
1660 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1661 echo "configure:1662: checking whether cpp understands the stringify operator" >&5
1662 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1671 char *test = S(foo);
1674 if { (eval echo configure:1675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1676 gcc_cv_c_have_stringify=yes
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1681 gcc_cv_c_have_stringify=no
1686 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1687 if test $gcc_cv_c_have_stringify = yes; then
1688 cat >> confdefs.h <<\EOF
1689 #define HAVE_CPP_STRINGIFY 1
1694 # Use <inttypes.h> only if it exists,
1695 # doesn't clash with <sys/types.h>, and declares intmax_t.
1696 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1697 echo "configure:1698: checking for inttypes.h" >&5
1698 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704 #include <sys/types.h>
1705 #include <inttypes.h>
1710 if { (eval echo configure:1711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1712 cat >> confdefs.h <<EOF
1713 #define HAVE_INTTYPES_H 1
1716 gcc_cv_header_inttypes_h=yes
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 gcc_cv_header_inttypes_h=no
1726 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1728 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1729 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
1732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_func" >&5
1734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1740 /* System header to define __stub macros and hopefully few prototypes,
1741 which can conflict with char $ac_func(); below. */
1743 /* Override any gcc2 internal prototype to avoid an error. */
1744 /* We use char because int might match the return type of a gcc2
1745 builtin and then its argument prototype would still apply. */
1750 /* The GNU C library defines this for functions which it implements
1751 to always fail with ENOSYS. Some functions are actually named
1752 something starting with __ and the normal name is an alias. */
1753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1761 if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1763 eval "ac_cv_func_$ac_func=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1768 eval "ac_cv_func_$ac_func=no"
1773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1774 echo "$ac_t""yes" 1>&6
1775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1776 cat >> confdefs.h <<EOF
1777 #define $ac_tr_func 1
1781 echo "$ac_t""no" 1>&6
1786 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1787 echo "configure:1788: checking for vprintf" >&5
1788 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char vprintf(); below. */
1797 /* Override any gcc2 internal prototype to avoid an error. */
1798 /* We use char because int might match the return type of a gcc2
1799 builtin and then its argument prototype would still apply. */
1804 /* The GNU C library defines this for functions which it implements
1805 to always fail with ENOSYS. Some functions are actually named
1806 something starting with __ and the normal name is an alias. */
1807 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1815 if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1817 eval "ac_cv_func_vprintf=yes"
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 eval "ac_cv_func_vprintf=no"
1827 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1828 echo "$ac_t""yes" 1>&6
1829 cat >> confdefs.h <<\EOF
1830 #define HAVE_VPRINTF 1
1834 echo "$ac_t""no" 1>&6
1837 if test "$ac_cv_func_vprintf" != yes; then
1838 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1839 echo "configure:1840: checking for _doprnt" >&5
1840 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1841 echo $ac_n "(cached) $ac_c" 1>&6
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char _doprnt(); below. */
1849 /* Override any gcc2 internal prototype to avoid an error. */
1850 /* We use char because int might match the return type of a gcc2
1851 builtin and then its argument prototype would still apply. */
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1869 eval "ac_cv_func__doprnt=yes"
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1874 eval "ac_cv_func__doprnt=no"
1879 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1881 cat >> confdefs.h <<\EOF
1882 #define HAVE_DOPRNT 1
1886 echo "$ac_t""no" 1>&6
1893 if test $ac_cv_func_vprintf != yes ; then
1895 if test $ac_cv_func__doprnt != yes ; then
1902 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether the printf functions support %p" >&5
1904 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 if test "$cross_compiling" = yes; then
1908 gcc_cv_func_printf_ptr=no
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1918 char *p = buf, *q = NULL;
1919 sprintf(buf, "%p", p);
1920 sscanf(buf, "%p", &q);
1924 if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1926 gcc_cv_func_printf_ptr=yes
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 gcc_cv_func_printf_ptr=no
1936 rm -f core core.* *.core
1939 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1940 if test $gcc_cv_func_printf_ptr = yes ; then
1941 cat >> confdefs.h <<\EOF
1942 #define HOST_PTR_PRINTF "%p"
1948 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
1949 index rindex getenv atol sbrk abort atof
1951 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1952 echo "configure:1953: checking whether $ac_func must be declared" >&5
1953 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1961 #ifdef HAVE_STRING_H
1964 #ifdef HAVE_STRINGS_H
1965 #include <strings.h>
1968 #ifdef HAVE_STDLIB_H
1971 #ifdef HAVE_UNISTD_H
1975 #define rindex strrchr
1978 #define index strchr
1981 char *(*pfn) = (char *(*)) $ac_func
1984 if { (eval echo configure:1985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1986 eval "gcc_cv_decl_needed_$ac_func=no"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1991 eval "gcc_cv_decl_needed_$ac_func=yes"
1996 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1999 cat >> confdefs.h <<EOF
2000 #define $gcc_tr_decl 1
2004 echo "$ac_t""no" 1>&6
2010 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2011 echo "configure:2012: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2012 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2015 cat > conftest.$ac_ext <<EOF
2016 #line 2017 "configure"
2017 #include "confdefs.h"
2018 #include <sys/types.h>
2020 /* NetBSD declares sys_siglist in unistd.h. */
2021 #ifdef HAVE_UNISTD_H
2025 char *msg = *(sys_siglist + 1);
2028 if { (eval echo configure:2029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2030 ac_cv_decl_sys_siglist=yes
2032 echo "configure: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2035 ac_cv_decl_sys_siglist=no
2040 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2041 if test $ac_cv_decl_sys_siglist = yes; then
2042 cat >> confdefs.h <<\EOF
2043 #define SYS_SIGLIST_DECLARED 1
2057 build_install_headers_dir=install-headers-tar
2062 host_truncate_target=
2065 # Decode the host machine, then the target machine.
2066 # For the host machine, we save the xm_file variable as host_xm_file;
2067 # then we decode the target machine and forget everything else
2068 # that came from the host machine.
2069 for machine in $build $host $target; do
2083 # Set this to force installation and use of collect2.
2085 # Set this to override the default target model.
2087 # Set this to control which fixincludes program to use.
2088 if [ x$fast_fixinc != xyes ] ; then
2089 fixincludes=fixincludes
2090 else fixincludes=fixinc.sh ; fi
2091 # Set this to control how the header file directory is installed.
2092 install_headers_dir=install-headers-tar
2093 # Set this to a non-empty list of args to pass to cpp if the target
2094 # wants its .md file passed through cpp.
2096 # Set this if directory names should be truncated to 14 characters.
2098 # Set this if gdb needs a dir command with `dirname $out_file`
2099 gdb_needs_out_file_path=
2100 # Set this if the build machine requires executables to have a
2103 # Set this to control which thread package will be used.
2105 # Reinitialize these from the flag values every loop pass, since some
2106 # configure entries modify them.
2108 gnu_ld="$gnu_ld_flag"
2109 enable_threads=$enable_threads_flag
2111 # Set default cpu_type, tm_file and xm_file so it can be updated in
2112 # each machine entry.
2113 cpu_type=`echo $machine | sed 's/-.*$//'`
2147 tm_file=${cpu_type}/${cpu_type}.h
2148 xm_file=${cpu_type}/xm-${cpu_type}.h
2150 # Set the default macros to define for GNU/Linux systems.
2153 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2158 # Support site-specific machine types.
2160 cpu_type=`echo $machine | sed -e 's/-.*//'`
2161 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2162 xm_file=${cpu_type}/xm-$rest.h
2163 tm_file=${cpu_type}/$rest.h
2164 if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
2165 then xmake_file=${cpu_type}/x-$rest; \
2168 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
2169 then tmake_file=${cpu_type}/t-$rest; \
2175 a29k-*-bsd* | a29k-*-sym1*)
2176 tm_file="${tm_file} a29k/unix.h"
2178 xmake_file=a29k/x-unix
2181 a29k-*-udi | a29k-*-coff)
2182 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
2183 tmake_file=a29k/t-a29kbare
2186 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2187 tmake_file=a29k/t-vx29k
2188 extra_parts="crtbegin.o crtend.o"
2189 thread_file='vxworks'
2191 a29k-*-*) # Default a29k environment.
2194 alpha*-*-linux-gnuecoff*)
2195 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2196 target_cpu_default="MASK_GAS"
2201 alpha*-*-linux-gnulibc1*)
2202 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2203 target_cpu_default="MASK_GAS"
2204 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2205 extra_parts="crtbegin.o crtend.o"
2206 fixincludes=fixinc.wrap
2209 if [ x$enable_threads = xyes ]; then
2213 alpha*-*-linux-gnu*)
2214 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2215 target_cpu_default="MASK_GAS"
2216 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
2217 extra_parts="crtbegin.o crtend.o"
2219 fixincludes=Makefile.in
2221 if [ x$enable_threads = xyes ]; then
2226 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2227 target_cpu_default="MASK_GAS"
2228 tmake_file="alpha/t-crtbe"
2229 extra_parts="crtbegin.o crtend.o"
2231 fixincludes=fixinc.wrap
2236 if [ x$stabs = xyes ]
2238 tm_file="${tm_file} dbx.h"
2240 if [ x$gas != xyes ]
2242 extra_passes="mips-tfile mips-tdump"
2247 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2250 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
2253 tm_file="${tm_file} alpha/osf.h"
2254 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2255 # a broken tar, so we use cpio instead.
2256 install_headers_dir=install-headers-cpio
2260 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2261 target_cpu_default=MASK_SUPPORT_ARCH
2266 tm_file="${tm_file} alpha/win-nt.h"
2267 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2268 tmake_file=t-libc-ok
2269 xmake_file=winnt/x-winnt
2270 extra_host_objs=oldnames.o
2271 extra_gcc_objs="spawnv.o oldnames.o"
2272 fixincludes=fixinc.winnt
2273 if [ x$gnu_ld != xyes ]
2275 extra_programs=ld.exe
2277 if [ x$enable_threads = xyes ]; then
2283 xm_file="${xm_file} alpha/xm-vms.h"
2284 tmake_file=alpha/t-vms
2285 fixincludes=Makefile.in
2288 extra_parts="crtinit.o crtfini.o"
2290 arm-*-coff* | armel-*-coff*)
2292 tmake_file=arm/t-bare
2294 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
2295 tm_file=arm/riscix1-1.h
2298 arm-*-riscix*) # Acorn RISC machine
2301 tm_file=arm/rix-gas.h
2303 tm_file=arm/riscix.h
2305 xmake_file=arm/x-riscix
2306 tmake_file=arm/t-riscix
2309 arm-semi-aout | armel-semi-aout)
2311 tmake_file=arm/t-semi
2312 fixincludes=Makefile.in # There is nothing to fix
2314 arm-semi-aof | armel-semi-aof)
2315 tm_file=arm/semiaof.h
2316 tmake_file=arm/t-semiaof
2317 fixincludes=Makefile.in # There is nothing to fix
2320 tm_file=arm/netbsd.h
2321 xm_file="xm-siglist.h ${xm_file}"
2322 tmake_file="t-netbsd arm/t-netbsd"
2323 # On NetBSD, the headers are already okay, except for math.h.
2324 fixincludes=fixinc.wrap
2326 arm-*-linux-gnuaout*) # ARM GNU/Linux
2329 tm_file=arm/linux-gas.h
2330 tmake_file=arm/t-linux
2331 fixincludes=Makefile.in
2336 tmake_file=arm/t-bare
2338 c1-convex-*) # Convex C1
2339 target_cpu_default=1
2341 fixincludes=Makefile.in
2343 c2-convex-*) # Convex C2
2344 target_cpu_default=2
2346 fixincludes=Makefile.in
2349 target_cpu_default=4
2351 fixincludes=Makefile.in
2354 target_cpu_default=8
2356 fixincludes=Makefile.in
2359 target_cpu_default=16
2361 fixincludes=Makefile.in
2363 clipper-intergraph-clix*)
2364 tm_file="${tm_file} svr3.h clipper/clix.h"
2365 xm_file=clipper/xm-clix.h
2366 xmake_file=clipper/x-clix
2367 extra_headers=va-clipper.h
2368 extra_parts="crtbegin.o crtend.o"
2369 install_headers_dir=install-headers-cpio
2376 # This hasn't been upgraded to GCC 2.
2377 # fx80-alliant-*) # Alliant FX/80
2383 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2384 xm_file=pa/xm-papro.h
2388 target_cpu_default=1
2389 tm_file="${tm_file} pa/pa-osf.h"
2391 fixincludes=Makefile.in
2394 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2395 xm_file=pa/xm-papro.h
2399 tm_file="${tm_file} pa/pa-osf.h"
2401 fixincludes=Makefile.in
2404 target_cpu_default=1
2406 fixincludes=Makefile.in
2410 fixincludes=Makefile.in
2413 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2414 xm_file=pa/xm-pahpux.h
2415 xmake_file=pa/x-pa-hpux
2418 tm_file="${tm_file} pa/gas.h"
2420 install_headers_dir=install-headers-cpio
2423 hppa1.0-*-hpux8.0[0-2]*)
2424 tm_file="${tm_file} pa/pa-hpux.h"
2425 xm_file=pa/xm-pahpux.h
2426 xmake_file=pa/x-pa-hpux
2429 tm_file="${tm_file} pa/pa-gas.h"
2431 tm_file="pa/pa-oldas.h ${tm_file}"
2433 install_headers_dir=install-headers-cpio
2436 hppa1.1-*-hpux8.0[0-2]*)
2437 target_cpu_default=1
2438 tm_file="${tm_file} pa/pa-hpux.h"
2439 xm_file=pa/xm-pahpux.h
2440 xmake_file=pa/x-pa-hpux
2443 tm_file="${tm_file} pa/pa-gas.h"
2445 tm_file="pa/pa-oldas.h ${tm_file}"
2447 install_headers_dir=install-headers-cpio
2451 target_cpu_default=1
2452 tm_file="${tm_file} pa/pa-hpux.h"
2453 xm_file=pa/xm-pahpux.h
2454 xmake_file=pa/x-pa-hpux
2457 tm_file="${tm_file} pa/pa-gas.h"
2459 install_headers_dir=install-headers-cpio
2463 tm_file="${tm_file} pa/pa-hpux.h"
2464 xm_file=pa/xm-pahpux.h
2465 xmake_file=pa/x-pa-hpux
2468 tm_file="${tm_file} pa/pa-gas.h"
2470 install_headers_dir=install-headers-cpio
2474 target_cpu_default=1
2475 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2476 xm_file=pa/xm-pahpux.h
2477 xmake_file=pa/x-pa-hpux
2481 tm_file="${tm_file} pa/pa-gas.h"
2483 if [ x$enable_threads = x ]; then
2484 enable_threads=$have_pthread_h
2486 if [ x$enable_threads = xyes ]; then
2488 tmake_file="${tmake_file} pa/t-dce-thr"
2490 install_headers_dir=install-headers-cpio
2494 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2495 xm_file=pa/xm-pahpux.h
2496 xmake_file=pa/x-pa-hpux
2499 tm_file="${tm_file} pa/pa-gas.h"
2501 if [ x$enable_threads = x ]; then
2502 enable_threads=$have_pthread_h
2504 if [ x$enable_threads = xyes ]; then
2506 tmake_file="${tmake_file} pa/t-dce-thr"
2508 install_headers_dir=install-headers-cpio
2512 target_cpu_default=1
2513 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2514 xm_file=pa/xm-pahpux.h
2515 xmake_file=pa/x-pa-hpux
2518 tm_file="${tm_file} pa/pa-gas.h"
2520 install_headers_dir=install-headers-cpio
2524 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2525 xm_file=pa/xm-pahpux.h
2526 xmake_file=pa/x-pa-hpux
2529 tm_file="${tm_file} pa/pa-gas.h"
2531 install_headers_dir=install-headers-cpio
2535 target_cpu_default=1
2536 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2537 xm_file=pa/xm-pahpux.h
2538 xmake_file=pa/x-pa-hpux
2541 tm_file="${tm_file} pa/pa-gas.h"
2543 install_headers_dir=install-headers-cpio
2547 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2548 xm_file=pa/xm-pahpux.h
2549 xmake_file=pa/x-pa-hpux
2552 tm_file="${tm_file} pa/pa-gas.h"
2554 install_headers_dir=install-headers-cpio
2558 target_cpu_default=1
2560 fixincludes=Makefile.in
2564 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
2567 tm_file=i386/aix386.h
2568 extra_parts="crtbegin.o crtend.o"
2569 tmake_file=i386/t-crtstuff
2571 tm_file=i386/aix386ng.h
2574 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
2576 xmake_file=i386/x-aix
2578 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2579 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2580 xm_defines="USG POSIX SMALL_ARG_MAX"
2581 xmake_file=i386/x-ncr3000
2582 if [ x$stabs = xyes -a x$gas = xyes ]
2584 tm_file=i386/sysv4gdb.h
2586 tm_file=i386/sysv4.h
2588 extra_parts="crtbegin.o crtend.o"
2589 tmake_file=i386/t-crtpic
2593 xm_file=i386/xm-next.h
2594 tmake_file=i386/t-next
2595 xmake_file=i386/x-next
2596 extra_objs=nextstep.o
2597 if [ x$enable_threads = xyes ]; then
2601 i[34567]86-sequent-bsd*) # 80386 from Sequent
2605 tm_file=i386/seq-gas.h
2607 tm_file=i386/sequent.h
2610 i[34567]86-sequent-ptx1*)
2611 xm_defines="USG SVR3"
2612 xmake_file=i386/x-sysv3
2613 tm_file=i386/seq-sysv3.h
2614 tmake_file=i386/t-crtstuff
2615 fixincludes=fixinc.ptx
2616 extra_parts="crtbegin.o crtend.o"
2617 install_headers_dir=install-headers-cpio
2619 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
2620 xm_defines="USG SVR3"
2621 xmake_file=i386/x-sysv3
2622 tm_file=i386/seq2-sysv3.h
2623 tmake_file=i386/t-crtstuff
2624 extra_parts="crtbegin.o crtend.o"
2625 fixincludes=fixinc.ptx
2626 install_headers_dir=install-headers-cpio
2628 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
2629 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2630 xm_defines="USG POSIX SMALL_ARG_MAX"
2632 tm_file=i386/ptx4-i.h
2634 extra_parts="crtbegin.o crtend.o"
2635 fixincludes=fixinc.ptx
2636 install_headers_dir=install-headers-cpio
2638 i386-sun-sunos*) # Sun i386 roadrunner
2643 i[34567]86-wrs-vxworks*)
2644 tm_file=i386/vxi386.h
2645 tmake_file=i386/t-i386bare
2648 tm_file=i386/i386-aout.h
2649 tmake_file=i386/t-i386bare
2651 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
2652 tm_file=i386/bsd386.h
2653 # tmake_file=t-libc-ok
2656 tm_file=i386/386bsd.h
2657 # tmake_file=t-libc-ok
2658 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2661 i[34567]86-*-freebsdelf*)
2662 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2663 # On FreeBSD, the headers are already ok, except for math.h.
2664 fixincludes=fixinc.wrap
2665 tmake_file=i386/t-freebsd
2670 i[34567]86-*-freebsd*)
2671 tm_file=i386/freebsd.h
2672 # On FreeBSD, the headers are already ok, except for math.h.
2673 fixincludes=fixinc.wrap
2674 tmake_file=i386/t-freebsd
2676 i[34567]86-*-netbsd*)
2677 tm_file=i386/netbsd.h
2678 # On NetBSD, the headers are already okay, except for math.h.
2679 fixincludes=fixinc.wrap
2683 tm_file=i386/i386-coff.h
2684 tmake_file=i386/t-i386bare
2686 i[34567]86-*-isc*) # 80386 running ISC system
2687 xm_file="${xm_file} i386/xm-isc.h"
2688 xm_defines="USG SVR3"
2690 i[34567]86-*-isc[34]*)
2691 xmake_file=i386/x-isc3
2694 xmake_file=i386/x-isc
2697 if [ x$gas = xyes -a x$stabs = xyes ]
2699 tm_file=i386/iscdbx.h
2700 tmake_file=i386/t-svr3dbx
2701 extra_parts="svr3.ifile svr3z.ifile"
2703 tm_file=i386/isccoff.h
2704 tmake_file=i386/t-crtstuff
2705 extra_parts="crtbegin.o crtend.o"
2707 install_headers_dir=install-headers-cpio
2709 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2710 # with a.out format using
2712 xmake_file=x-linux-aout
2713 tmake_file="t-linux-aout i386/t-crtstuff"
2714 tm_file=i386/linux-oldld.h
2715 fixincludes=Makefile.in #On Linux, the headers are ok already.
2718 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2720 xmake_file=x-linux-aout
2721 tmake_file="t-linux-aout i386/t-crtstuff"
2722 tm_file=i386/linux-aout.h
2723 fixincludes=Makefile.in #On Linux, the headers are ok already.
2726 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2727 # with ELF format using the
2728 # GNU/Linux C library 5
2730 tm_file=i386/linux.h
2731 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2732 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2733 fixincludes=Makefile.in #On Linux, the headers are ok already.
2735 if [ x$enable_threads = xyes ]; then
2736 thread_file='single'
2739 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2740 # with ELF format using glibc 2
2741 # aka GNU/Linux C library 6
2743 tm_file=i386/linux.h
2744 tmake_file="t-linux i386/t-crtstuff"
2745 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2746 fixincludes=Makefile.in #On Linux, the headers are ok already.
2748 if [ x$enable_threads = xyes ]; then
2754 i[34567]86-go32-msdos | i[34567]86-*-go32*)
2755 xm_file=i386/xm-go32.h
2757 tmake_file=i386/t-go32
2759 i[34567]86-pc-msdosdjgpp*)
2760 xm_file=i386/xm-go32.h
2762 tmake_file=i386/t-go32
2766 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
2768 tmake_file=t-libc-ok
2769 fixincludes=Makefile.in
2773 i[34567]86-*-lynxos*)
2778 tm_file=i386/lynx-ng.h
2780 xm_file=i386/xm-lynx.h
2781 tmake_file=i386/t-i386bare
2786 # tmake_file=t-libc-ok
2789 i[34567]86-*-osfrose*) # 386 using OSF/rose
2792 tm_file=i386/osfelf.h
2795 tm_file=i386/osfrose.h
2798 xm_file="i386/xm-osf.h ${xm_file}"
2799 xmake_file=i386/x-osfrose
2800 tmake_file=i386/t-osf
2801 extra_objs=halfpic.o
2803 i[34567]86-go32-rtems*)
2805 xm_file=i386/xm-go32.h
2806 tm_file=i386/go32-rtems.h
2807 tmake_file="i386/t-go32 t-rtems"
2809 i[34567]86-*-rtemself*)
2811 tm_file=i386/rtemself.h
2812 tmake_file="i386/t-i386bare t-rtems"
2814 i[34567]86-*-rtems*)
2816 tm_file=i386/rtems.h
2817 tmake_file="i386/t-i386bare t-rtems"
2819 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
2820 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2821 xm_defines="USG SVR3"
2822 xmake_file=i386/x-sco5
2823 fixincludes=fixinc.sco
2824 install_headers_dir=install-headers-cpio
2826 tmake_file=i386/t-sco5
2827 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2829 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
2830 xm_file="${xm_file} i386/xm-sco.h"
2831 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2832 xmake_file=i386/x-sco4
2833 fixincludes=fixinc.sco
2834 install_headers_dir=install-headers-cpio
2835 if [ x$stabs = xyes ]
2837 tm_file=i386/sco4dbx.h
2838 tmake_file=i386/t-svr3dbx
2839 extra_parts="svr3.ifile svr3z.rfile"
2842 tmake_file=i386/t-crtstuff
2843 extra_parts="crtbegin.o crtend.o"
2847 i[34567]86-*-sco*) # 80386 running SCO system
2848 xm_file=i386/xm-sco.h
2849 xmake_file=i386/x-sco
2850 install_headers_dir=install-headers-cpio
2851 if [ x$stabs = xyes ]
2853 tm_file=i386/scodbx.h
2854 tmake_file=i386/t-svr3dbx
2855 extra_parts="svr3.ifile svr3z.rfile"
2858 extra_parts="crtbegin.o crtend.o"
2859 tmake_file=i386/t-crtstuff
2863 i[34567]86-*-solaris2*)
2864 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2865 xm_defines="USG POSIX SMALL_ARG_MAX"
2866 if [ x$stabs = xyes ]
2868 tm_file=i386/sol2dbg.h
2872 tmake_file=i386/t-sol2
2873 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2877 fixincludes=fixinc.svr4;;
2879 fixincludes=fixinc.wrap;;
2881 if [ x$enable_threads = xyes ]; then
2882 thread_file='solaris'
2885 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
2886 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
2887 xm_defines="USG POSIX"
2888 tm_file=i386/sysv4.h
2889 if [ x$stabs = xyes ]
2891 tm_file="${tm_file} dbx.h"
2893 tmake_file=i386/t-crtpic
2895 extra_parts="crtbegin.o crtend.o"
2896 fixincludes=Makefile.in # The headers are just fine, thank you.
2898 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
2899 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
2900 xm_defines="USG POSIX SMALL_ARG_MAX"
2901 tm_file=i386/sysv4.h
2902 if [ x$stabs = xyes ]
2904 tm_file="${tm_file} dbx.h"
2906 tmake_file=i386/t-crtpic
2908 extra_parts="crtbegin.o crtend.o"
2910 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
2912 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
2913 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
2914 fixincludes=Makefile.in #Don't do it on OSF/1
2915 if [ x$stabs = xyes ]
2917 tm_file=i386/osf1elfgdb.h
2919 tm_file=i386/osf1elf.h
2921 tmake_file=i386/t-osf1elf
2922 xmake_file=i386/x-osf1elf
2923 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2925 i[34567]86-*-sysv*) # Intel 80386's running system V
2926 xm_defines="USG SVR3"
2927 xmake_file=i386/x-sysv3
2930 if [ x$stabs = xyes ]
2932 tm_file=i386/svr3dbx.h
2933 tmake_file=i386/t-svr3dbx
2934 extra_parts="svr3.ifile svr3z.rfile"
2936 tm_file=i386/svr3gas.h
2937 extra_parts="crtbegin.o crtend.o"
2938 tmake_file=i386/t-crtstuff
2941 tm_file=i386/sysv3.h
2942 extra_parts="crtbegin.o crtend.o"
2943 tmake_file=i386/t-crtstuff
2946 i386-*-vsta) # Intel 80386's running VSTa kernel
2947 xm_file="${xm_file} i386/xm-vsta.h"
2949 tmake_file=i386/t-vsta
2950 xmake_file=i386/x-vsta
2952 i[34567]86-*-pe | i[34567]86-*-cygwin32)
2953 xm_file="${xm_file} i386/xm-cygwin32.h"
2954 tmake_file=i386/t-cygwin32
2955 tm_file=i386/cygwin32.h
2956 xmake_file=i386/x-cygwin32
2958 fixincludes=Makefile.in
2959 if [ x$enable_threads = xyes ]; then
2964 i[34567]86-*-mingw32*)
2965 tm_file=i386/mingw32.h
2966 xm_file="${xm_file} i386/xm-mingw32.h"
2967 tmake_file="i386/t-cygwin32 i386/t-mingw32"
2969 xmake_file=i386/x-cygwin32
2970 fixincludes=Makefile.in
2971 if [ x$enable_threads = xyes ]; then
2978 *minwg32crt* | *mingw32*)
2979 tm_file="${tm_file} i386/crtdll.h"
2983 i[34567]86-*-winnt3*)
2984 tm_file=i386/win-nt.h
2985 out_file=i386/i386.c
2986 xm_file="xm-winnt.h ${xm_file}"
2987 xmake_file=winnt/x-winnt
2988 tmake_file=i386/t-winnt
2989 extra_host_objs="winnt.o oldnames.o"
2990 extra_gcc_objs="spawnv.o oldnames.o"
2991 fixincludes=fixinc.winnt
2992 if [ x$gnu_ld != xyes ]
2994 extra_programs=ld.exe
2996 if [ x$enable_threads = xyes ]; then
3000 i[34567]86-dg-dgux*)
3001 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3002 xm_defines="USG POSIX"
3003 out_file=i386/dgux.c
3005 tmake_file=i386/t-dgux
3006 xmake_file=i386/x-dgux
3007 fixincludes=fixinc.dgux
3008 install_headers_dir=install-headers-cpio
3010 i860-alliant-*) # Alliant FX/2800
3011 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3012 xm_file="${xm_file}"
3013 xmake_file=i860/x-fx2800
3014 tmake_file=i860/t-fx2800
3015 extra_parts="crtbegin.o crtend.o"
3018 tm_file="${tm_file} i860/bsd.h"
3021 tm_file="${tm_file} i860/bsd-gas.h"
3026 tm_file="${tm_file} i860/mach.h"
3027 tmake_file=t-libc-ok
3029 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3030 tm_file="${tm_file} svr3.h i860/paragon.h"
3031 xm_defines="USG SVR3"
3035 tm_file="${tm_file} svr3.h i860/sysv3.h"
3036 xm_defines="USG SVR3"
3037 xmake_file=i860/x-sysv3
3038 extra_parts="crtbegin.o crtend.o"
3041 tm_file="${tm_file} svr4.h i860/sysv4.h"
3042 xm_defines="USG SVR3"
3043 xmake_file=i860/x-sysv4
3045 extra_parts="crtbegin.o crtend.o"
3047 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
3048 tm_file="${tm_file} i960/vx960.h"
3049 tmake_file=i960/t-vxworks960
3051 thread_file='vxworks'
3053 i960-wrs-vxworks5* | i960-wrs-vxworks)
3054 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3055 tmake_file=i960/t-vxworks960
3057 thread_file='vxworks'
3060 tm_file="${tm_file} i960/vx960.h"
3061 tmake_file=i960/t-vxworks960
3063 thread_file='vxworks'
3066 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3067 tmake_file=i960/t-960bare
3071 tmake_file="i960/t-960bare t-rtems"
3072 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3075 i960-*-*) # Default i960 environment.
3079 extra_parts="crtinit.o crtfini.o"
3081 m68000-convergent-sysv*)
3083 xm_file="m68k/xm-3b1.h ${xm_file}"
3086 extra_headers=math-68881.h
3088 m68000-hp-bsd*) # HP 9000/200 running BSD
3089 tm_file=m68k/hp2bsd.h
3090 xmake_file=m68k/x-hp2bsd
3092 extra_headers=math-68881.h
3094 m68000-hp-hpux*) # HP 9000 series 300
3095 xm_file="xm_alloca.h ${xm_file}"
3096 xm_defines="USG NO_SYS_SIGLIST"
3099 xmake_file=m68k/x-hp320g
3100 tm_file=m68k/hp310g.h
3102 xmake_file=m68k/x-hp320
3103 tm_file=m68k/hp310.h
3105 install_headers_dir=install-headers-cpio
3107 extra_headers=math-68881.h
3112 extra_headers=math-68881.h
3115 tm_file=m68k/sun2o4.h
3117 extra_headers=math-68881.h
3120 xm_file="m68k/xm-3b1.h ${xm_file}"
3129 extra_headers=math-68881.h
3131 m68k-apple-aux*) # Apple Macintosh running A/UX
3132 xm_defines="USG AUX"
3133 tmake_file=m68k/t-aux
3134 install_headers_dir=install-headers-cpio
3135 extra_headers=math-68881.h
3136 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3138 if [ "$gnu_ld" = yes ]
3140 tm_file="${tm_file} m68k/auxgld.h"
3142 tm_file="${tm_file} m68k/auxld.h"
3146 tm_file="${tm_file} m68k/auxgas.h"
3148 tm_file="${tm_file} m68k/auxas.h"
3150 tm_file="${tm_file} m68k/a-ux.h"
3154 tm_file=m68k/apollo68.h
3155 xmake_file=m68k/x-apollo68
3157 extra_headers=math-68881.h
3160 m68k-altos-sysv*) # Altos 3068
3163 tm_file=m68k/altos3068.h
3166 echo "The Altos is supported only with the GNU assembler" 1>&2
3169 extra_headers=math-68881.h
3171 m68k-bull-sysv*) # Bull DPX/2
3174 if [ x$stabs = xyes ]
3176 tm_file=m68k/dpx2cdbx.h
3178 tm_file=m68k/dpx2g.h
3183 xm_file="xm-alloca.h ${xm_file}"
3185 xmake_file=m68k/x-dpx2
3187 extra_headers=math-68881.h
3189 m68k-atari-sysv4*) # Atari variant of V.4.
3190 tm_file=m68k/atari.h
3191 xm_file="xm-alloca.h ${xm_file}"
3192 xm_defines="USG FULL_PROTOTYPES"
3194 extra_parts="crtbegin.o crtend.o"
3195 extra_headers=math-68881.h
3198 m68k-motorola-sysv*)
3199 tm_file=m68k/mot3300.h
3200 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3201 xm_defines=NO_SYS_SIGLIST
3204 xmake_file=m68k/x-mot3300-gas
3205 if [ x$gnu_ld = xyes ]
3207 tmake_file=m68k/t-mot3300-gald
3209 tmake_file=m68k/t-mot3300-gas
3213 xmake_file=m68k/x-mot3300
3214 if [ x$gnu_ld = xyes ]
3216 tmake_file=m68k/t-mot3300-gld
3218 tmake_file=m68k/t-mot3300
3222 gdb_needs_out_file_path=yes
3223 extra_parts="crt0.o mcrt0.o"
3224 extra_headers=math-68881.h
3227 m68k-ncr-sysv*) # NCR Tower 32 SVR3
3228 tm_file=m68k/tower-as.h
3229 xm_defines="USG SVR3"
3230 xmake_file=m68k/x-tower
3231 extra_parts="crtbegin.o crtend.o"
3232 extra_headers=math-68881.h
3235 tm_file=m68k/plexus.h
3236 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3239 extra_headers=math-68881.h
3243 xm_file="xm-alloca.h ${xm_file}"
3245 extra_headers=math-68881.h
3248 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3249 xm_defines="USG unos"
3250 xmake_file=m68k/x-crds
3253 extra_headers=math-68881.h
3255 m68k-cbm-sysv4*) # Commodore variant of V.4.
3257 xm_file="xm-alloca.h ${xm_file}"
3258 xm_defines="USG FULL_PROTOTYPES"
3259 xmake_file=m68k/x-amix
3261 extra_parts="crtbegin.o crtend.o"
3262 extra_headers=math-68881.h
3266 tm_file=m68k/ccur-GAS.h
3267 xmake_file=m68k/x-ccur
3268 extra_headers=math-68881.h
3272 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
3273 tm_file=m68k/hp3bsd44.h
3274 xmake_file=m68k/x-hp3bsd44
3276 extra_headers=math-68881.h
3279 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
3280 tm_file=m68k/hp3bsd.h
3282 extra_headers=math-68881.h
3286 if [ x$with_fp = xno ]
3288 tm_file=m68k/isi-nfp.h
3294 extra_headers=math-68881.h
3296 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
3297 xm_file="xm_alloca.h ${xm_file}"
3298 xm_defines="USG NO_SYS_SIGLIST"
3301 xmake_file=m68k/x-hp320g
3302 tm_file=m68k/hp320g.h
3304 xmake_file=m68k/x-hp320
3305 tm_file=m68k/hpux7.h
3307 install_headers_dir=install-headers-cpio
3309 extra_headers=math-68881.h
3312 m68k-hp-hpux*) # HP 9000 series 300
3313 xm_file="xm_alloca.h ${xm_file}"
3314 xm_defines="USG NO_SYS_SIGLIST"
3317 xmake_file=m68k/x-hp320g
3318 tm_file=m68k/hp320g.h
3320 xmake_file=m68k/x-hp320
3321 tm_file=m68k/hp320.h
3323 install_headers_dir=install-headers-cpio
3325 extra_headers=math-68881.h
3329 tm_file=m68k/sun3mach.h
3331 extra_headers=math-68881.h
3337 tm_file=m68k/news3gas.h
3339 tm_file=m68k/news3.h
3342 extra_headers=math-68881.h
3345 m68k-sony-bsd* | m68k-sony-newsos*)
3348 tm_file=m68k/newsgas.h
3353 extra_headers=math-68881.h
3356 m68k-next-nextstep2*)
3357 tm_file=m68k/next21.h
3358 xm_file="m68k/xm-next.h ${xm_file}"
3359 tmake_file=m68k/t-next
3360 xmake_file=m68k/x-next
3361 extra_objs=nextstep.o
3362 extra_headers=math-68881.h
3366 m68k-next-nextstep3*)
3368 xm_file="m68k/xm-next.h ${xm_file}"
3369 tmake_file=m68k/t-next
3370 xmake_file=m68k/x-next
3371 extra_objs=nextstep.o
3372 extra_headers=math-68881.h
3374 if [ x$enable_threads = xyes ]; then
3379 if [ x$with_fp = xno ]
3381 tm_file=m68k/sun3n3.h
3383 tm_file=m68k/sun3o3.h
3387 extra_headers=math-68881.h
3389 m68k-sun-sunos*) # For SunOS 4 (the default).
3390 if [ x$with_fp = xno ]
3392 tm_file=m68k/sun3n.h
3398 extra_headers=math-68881.h
3401 tm_file=m68k/vxm68k.h
3402 tmake_file=m68k/t-vxworks68
3403 extra_headers=math-68881.h
3404 thread_file='vxworks'
3408 tmake_file=m68k/t-m68kbare
3409 tm_file="m68k/m68k-aout.h libgloss.h"
3410 extra_headers=math-68881.h
3414 tmake_file=m68k/t-m68kbare
3415 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
3416 extra_headers=math-68881.h
3424 tm_file=m68k/lynx-ng.h
3426 xm_file=m68k/xm-lynx.h
3428 tmake_file=m68k/t-lynx
3429 extra_headers=math-68881.h
3433 tm_file=m68k/netbsd.h
3434 # On NetBSD, the headers are already okay, except for math.h.
3435 fixincludes=fixinc.wrap
3439 m68k-*-sysv3*) # Motorola m68k's running system V.3
3440 xm_file="xm-alloca.h ${xm_file}"
3442 xmake_file=m68k/x-m68kv
3443 extra_parts="crtbegin.o crtend.o"
3444 extra_headers=math-68881.h
3447 m68k-*-sysv4*) # Motorola m68k's running system V.4
3448 tm_file=m68k/m68kv4.h
3449 xm_file="xm-alloca.h ${xm_file}"
3452 extra_parts="crtbegin.o crtend.o"
3453 extra_headers=math-68881.h
3456 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3459 tm_file=m68k/linux-aout.h
3460 tmake_file="t-linux-aout m68k/t-linux-aout"
3461 fixincludes=Makefile.in # The headers are ok already.
3462 extra_headers=math-68881.h
3466 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3467 # with ELF format using the
3468 # GNU/Linux C library 5
3470 tm_file=m68k/linux.h
3471 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
3472 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3473 fixincludes=Makefile.in # The headers are ok already.
3474 extra_headers=math-68881.h
3478 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
3479 # with ELF format using glibc 2
3480 # aka the GNU/Linux C library 6.
3482 tm_file=m68k/linux.h
3483 tmake_file="t-linux m68k/t-linux"
3484 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3485 fixincludes=Makefile.in # The headers are ok already.
3486 extra_headers=math-68881.h
3489 if [ x$enable_threads = xyes ]; then
3494 tmake_file=m68k/t-m68kbare
3495 tm_file=m68k/m68k-psos.h
3496 extra_headers=math-68881.h
3500 tmake_file="m68k/t-m68kbare t-rtems"
3501 tm_file=m68k/rtems.h
3502 extra_headers=math-68881.h
3509 tm_file=m88k/dguxbcs.h
3510 tmake_file=m88k/t-dguxbcs
3514 tmake_file=m88k/t-dgux
3517 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3518 xmake_file=m88k/x-dgux
3521 tmake_file=m88k/t-dgux-gas
3523 fixincludes=fixinc.dgux
3525 m88k-dolphin-sysv3*)
3526 tm_file=m88k/dolph.h
3527 extra_parts="crtbegin.o crtend.o"
3528 xm_file="m88k/xm-sysv3.h ${xm_file}"
3529 xmake_file=m88k/x-dolph
3532 tmake_file=m88k/t-m88k-gas
3535 m88k-tektronix-sysv3)
3536 tm_file=m88k/tekXD88.h
3537 extra_parts="crtbegin.o crtend.o"
3538 xm_file="m88k/xm-sysv3.h ${xm_file}"
3539 xmake_file=m88k/x-tekXD88
3542 tmake_file=m88k/t-m88k-gas
3546 tm_file=m88k/m88k-aout.h
3549 tm_file=m88k/m88k-coff.h
3550 tmake_file=m88k/t-bug
3554 extra_parts="crtbegin.o crtend.o"
3557 tmake_file=m88k/t-luna-gas
3559 tmake_file=m88k/t-luna
3563 tm_file=m88k/sysv3.h
3564 extra_parts="crtbegin.o crtend.o"
3565 xm_file="m88k/xm-sysv3.h ${xm_file}"
3566 xmake_file=m88k/x-sysv3
3569 tmake_file=m88k/t-m88k-gas
3573 tm_file=m88k/sysv4.h
3574 extra_parts="crtbegin.o crtend.o"
3575 xmake_file=m88k/x-sysv4
3576 tmake_file=m88k/t-sysv4
3578 mips-sgi-irix6*) # SGI System V.4., IRIX 6
3579 tm_file=mips/iris6.h
3580 xm_file=mips/xm-iris6.h
3581 fixincludes=fixinc.irix
3582 xmake_file=mips/x-iris6
3583 tmake_file=mips/t-iris6
3584 if [ x$enable_threads = xyes ]; then
3589 tm_file="mips/elf.h libgloss.h"
3590 tmake_file=mips/t-ecoff
3593 extra_parts="crtbegin.o crtend.o"
3594 # thread_file='vxworks'
3596 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
3597 tm_file="mips/iris6.h mips/cross64.h"
3598 xm_defines="USG HAVE_INTTYPES_H"
3599 fixincludes=Makefile.in
3600 xmake_file=mips/x-iris
3601 tmake_file=mips/t-cross64
3602 # See comment in mips/iris[56].h files.
3604 if [ x$enable_threads = xyes ]; then
3611 if [ x$stabs = xyes ]
3613 tm_file=mips/iris5gdb.h
3615 tm_file="mips/sni-svr4.h mips/sni-gas.h"
3618 tm_file=mips/sni-svr4.h
3621 xmake_file=mips/x-sni-svr4
3622 tmake_file=mips/t-mips-gas
3623 if [ x$gnu_ld != xyes ]
3628 mips-sgi-irix5*) # SGI System V.4., IRIX 5
3631 tm_file="mips/iris5.h mips/iris5gas.h"
3632 if [ x$stabs = xyes ]
3634 tm_file="${tm_file} dbx.h"
3637 tm_file=mips/iris5.h
3639 xm_defines="USG HAVE_INTTYPES_H"
3640 fixincludes=fixinc.irix
3641 xmake_file=mips/x-iris
3642 # mips-tfile doesn't work yet
3643 tmake_file=mips/t-mips-gas
3644 # See comment in mips/iris5.h file.
3646 if [ x$enable_threads = xyes ]; then
3650 mips-sgi-irix4loser*) # Mostly like a MIPS.
3651 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3652 if [ x$stabs = xyes ]; then
3653 tm_file="${tm_file} dbx.h"
3656 xmake_file=mips/x-iris
3659 tmake_file=mips/t-mips-gas
3661 extra_passes="mips-tfile mips-tdump"
3663 if [ x$gnu_ld != xyes ]
3667 if [ x$enable_threads = xyes ]; then
3671 mips-sgi-irix4*) # Mostly like a MIPS.
3672 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
3673 if [ x$stabs = xyes ]; then
3674 tm_file="${tm_file} dbx.h"
3677 xmake_file=mips/x-iris
3680 tmake_file=mips/t-mips-gas
3682 extra_passes="mips-tfile mips-tdump"
3684 if [ x$gnu_ld != xyes ]
3688 if [ x$enable_threads = xyes ]; then
3692 mips-sgi-*) # Mostly like a MIPS.
3693 tm_file="mips/iris3.h ${tm_file}"
3694 if [ x$stabs = xyes ]; then
3695 tm_file="${tm_file} dbx.h"
3698 xmake_file=mips/x-iris3
3701 tmake_file=mips/t-mips-gas
3703 extra_passes="mips-tfile mips-tdump"
3705 if [ x$gnu_ld != xyes ]
3710 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
3711 tm_file="mips/osfrose.h ${tm_file}"
3712 xmake_file=mips/x-osfrose
3713 tmake_file=mips/t-osfrose
3714 extra_objs=halfpic.o
3717 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
3718 tm_file=mips/dec-osf1.h
3719 if [ x$stabs = xyes ]; then
3720 tm_file="${tm_file} dbx.h"
3722 xmake_file=mips/x-dec-osf1
3725 tmake_file=mips/t-mips-gas
3727 tmake_file=mips/t-ultrix
3728 extra_passes="mips-tfile mips-tdump"
3730 if [ x$gnu_ld != xyes ]
3735 mips-dec-bsd*) # Decstation running 4.4 BSD
3736 tm_file=mips/dec-bsd.h
3740 tmake_file=mips/t-mips-gas
3742 tmake_file=mips/t-ultrix
3743 extra_passes="mips-tfile mips-tdump"
3745 if [ x$gnu_ld != xyes ]
3750 mips-dec-netbsd*) # Decstation running NetBSD
3751 tm_file=mips/netbsd.h
3752 # On NetBSD, the headers are already okay, except for math.h.
3753 fixincludes=fixinc.wrap
3756 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
3757 tm_file="mips/news4.h ${tm_file}"
3758 if [ x$stabs = xyes ]; then
3759 tm_file="${tm_file} dbx.h"
3763 tmake_file=mips/t-mips-gas
3765 extra_passes="mips-tfile mips-tdump"
3767 if [ x$gnu_ld != xyes ]
3771 xmake_file=mips/x-sony
3773 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
3774 # That is based on svr4.
3775 # t-svr4 is not right because this system doesn't use ELF.
3776 tm_file="mips/news5.h ${tm_file}"
3777 if [ x$stabs = xyes ]; then
3778 tm_file="${tm_file} dbx.h"
3780 xm_file="xm-siglist.h ${xm_file}"
3784 tmake_file=mips/t-mips-gas
3786 extra_passes="mips-tfile mips-tdump"
3788 if [ x$gnu_ld != xyes ]
3793 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
3794 tm_file="mips/svr4-5.h mips/svr4-t.h"
3795 if [ x$stabs = xyes ]; then
3796 tm_file="${tm_file} dbx.h"
3798 xm_file="xm-siglist.h ${xm_file}"
3800 xmake_file=mips/x-sysv
3803 tmake_file=mips/t-mips-gas
3804 extra_parts="crtbegin.o crtend.o"
3806 tmake_file=mips/t-mips
3807 extra_passes="mips-tfile mips-tdump"
3809 if [ x$gnu_ld != xyes ]
3814 mips-*-ultrix* | mips-dec-mach3) # Decstation.
3815 tm_file="mips/ultrix.h ${tm_file}"
3816 if [ x$stabs = xyes ]; then
3817 tm_file="${tm_file} dbx.h"
3819 xmake_file=mips/x-ultrix
3822 tmake_file=mips/t-mips-gas
3824 tmake_file=mips/t-ultrix
3825 extra_passes="mips-tfile mips-tdump"
3827 if [ x$gnu_ld != xyes ]
3832 mips-*-riscos[56789]bsd*)
3833 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
3834 if [ x$stabs = xyes ]; then
3835 tm_file="${tm_file} dbx.h"
3839 tmake_file=mips/t-bsd-gas
3841 tmake_file=mips/t-bsd
3842 extra_passes="mips-tfile mips-tdump"
3844 if [ x$gnu_ld != xyes ]
3849 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
3850 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
3851 if [ x$stabs = xyes ]; then
3852 tm_file="${tm_file} dbx.h"
3856 tmake_file=mips/t-bsd-gas
3858 tmake_file=mips/t-bsd
3859 extra_passes="mips-tfile mips-tdump"
3861 if [ x$gnu_ld != xyes ]
3866 mips-*-riscos[56789]sysv4*)
3867 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
3868 if [ x$stabs = xyes ]; then
3869 tm_file="${tm_file} dbx.h"
3871 xm_file="xm-siglist.h ${xm_file}"
3872 xmake_file=mips/x-sysv
3875 tmake_file=mips/t-svr4-gas
3877 tmake_file=mips/t-svr4
3878 extra_passes="mips-tfile mips-tdump"
3880 if [ x$gnu_ld != xyes ]
3885 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
3886 tm_file="mips/svr4-4.h ${tm_file}"
3887 if [ x$stabs = xyes ]; then
3888 tm_file="${tm_file} dbx.h"
3891 xmake_file=mips/x-sysv
3894 tmake_file=mips/t-svr4-gas
3896 tmake_file=mips/t-svr4
3897 extra_passes="mips-tfile mips-tdump"
3899 if [ x$gnu_ld != xyes ]
3904 mips-*-riscos[56789]sysv*)
3905 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
3906 if [ x$stabs = xyes ]; then
3907 tm_file="${tm_file} dbx.h"
3910 xmake_file=mips/x-sysv
3913 tmake_file=mips/t-svr3-gas
3915 tmake_file=mips/t-svr3
3916 extra_passes="mips-tfile mips-tdump"
3918 if [ x$gnu_ld != xyes ]
3923 mips-*-sysv* | mips-*-riscos*sysv*)
3924 tm_file="mips/svr3-4.h ${tm_file}"
3925 if [ x$stabs = xyes ]; then
3926 tm_file="${tm_file} dbx.h"
3929 xmake_file=mips/x-sysv
3932 tmake_file=mips/t-svr3-gas
3934 tmake_file=mips/t-svr3
3935 extra_passes="mips-tfile mips-tdump"
3937 if [ x$gnu_ld != xyes ]
3942 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3943 tm_file=mips/mips-5.h
3944 if [ x$stabs = xyes ]; then
3945 tm_file="${tm_file} dbx.h"
3949 tmake_file=mips/t-mips-gas
3951 extra_passes="mips-tfile mips-tdump"
3953 if [ x$gnu_ld != xyes ]
3961 tm_file=mips/ecoffl.h
3962 if [ x$stabs = xyes ]; then
3963 tm_file="${tm_file} dbx.h"
3965 tmake_file=mips/t-ecoff
3968 tm_file="gofast.h mips/ecoff.h"
3969 if [ x$stabs = xyes ]; then
3970 tm_file="${tm_file} dbx.h"
3972 tmake_file=mips/t-ecoff
3975 tm_file="mips/elfl.h libgloss.h"
3976 tmake_file=mips/t-ecoff
3979 tm_file="mips/elf.h libgloss.h"
3980 tmake_file=mips/t-ecoff
3983 tm_file="mips/elfl64.h libgloss.h"
3984 tmake_file=mips/t-ecoff
3986 mips64orionel-*-elf*)
3987 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
3988 tmake_file=mips/t-ecoff
3991 tm_file="mips/elf64.h libgloss.h"
3992 tmake_file=mips/t-ecoff
3995 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
3996 tmake_file=mips/t-ecoff
3998 mips64orion-*-rtems*)
3999 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
4000 tmake_file="mips/t-ecoff t-rtems"
4003 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4004 tmake_file=mips/t-r3900
4007 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4008 tmake_file=mips/t-r3900
4010 mips-*-*) # Default MIPS RISC-OS 4.0.
4011 if [ x$stabs = xyes ]; then
4012 tm_file="${tm_file} dbx.h"
4016 tmake_file=mips/t-mips-gas
4018 extra_passes="mips-tfile mips-tdump"
4020 if [ x$gnu_ld != xyes ]
4027 tm_file="mn10200/mn10200.h"
4028 if [ x$stabs = xyes ]
4030 tm_file="${tm_file} dbx.h"
4036 tm_file="mn10300/mn10300.h"
4037 if [ x$stabs = xyes ]
4039 tm_file="${tm_file} dbx.h"
4044 tm_file=ns32k/encore.h
4048 tm_file=ns32k/sequent.h
4052 tm_file=ns32k/tek6100.h
4056 tm_file=ns32k/tek6200.h
4059 # This has not been updated to GCC 2.
4062 # xmake_file=ns32k/x-genix
4063 # tm_file=ns32k/genix.h
4067 tm_file=ns32k/merlin.h
4071 tm_file=ns32k/pc532-mach.h
4075 tm_file=ns32k/pc532-min.h
4076 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
4080 ns32k-pc532-netbsd*)
4081 tm_file=ns32k/netbsd.h
4082 # On NetBSD, the headers are already okay, except for math.h.
4083 fixincludes=fixinc.wrap
4087 tm_file="${tm_file} pdp11/2bsd.h"
4093 xmake_file=pyr/x-pyr
4100 xmake_file=romp/x-mach
4105 tm_file=rs6000/beos.h
4106 xm_file=rs6000/xm-beos.h
4107 tmake_file=rs6000/t-beos
4108 xmake_file=rs6000/x-beos
4110 powerpc-*-sysv* | powerpc-*-elf*)
4111 tm_file=rs6000/sysv4.h
4112 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4113 xm_defines="USG POSIX"
4114 extra_headers=ppc-asm.h
4117 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4119 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4121 xmake_file=rs6000/x-sysv4
4124 tm_file=rs6000/eabiaix.h
4125 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4126 fixincludes=Makefile.in
4127 extra_headers=ppc-asm.h
4130 tm_file=rs6000/eabisim.h
4131 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4132 fixincludes=Makefile.in
4133 extra_headers=ppc-asm.h
4136 tm_file=rs6000/eabi.h
4139 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4141 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4143 fixincludes=Makefile.in
4144 extra_headers=ppc-asm.h
4147 tm_file=rs6000/rtems.h
4150 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4152 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4154 fixincludes=Makefile.in
4155 extra_headers=ppc-asm.h
4157 powerpc-*-linux-gnulibc1)
4158 tm_file=rs6000/linux.h
4159 xm_file=rs6000/xm-sysv4.h
4160 out_file=rs6000/rs6000.c
4163 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4165 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4168 fixincludes=Makefile.in
4169 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4170 extra_headers=ppc-asm.h
4171 if [ x$enable_threads = xyes ]; then
4175 powerpc-*-linux-gnu*)
4176 tm_file=rs6000/linux.h
4177 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4178 xm_defines="USG ${xm_defines}"
4179 out_file=rs6000/rs6000.c
4182 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4184 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4187 fixincludes=Makefile.in
4188 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4189 extra_headers=ppc-asm.h
4190 if [ x$enable_threads = xyes ]; then
4194 powerpc-wrs-vxworks*)
4196 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4197 xm_defines="USG POSIX"
4198 tm_file=rs6000/vxppc.h
4199 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4200 extra_headers=ppc-asm.h
4201 thread_file='vxworks'
4203 powerpcle-*-sysv* | powerpcle-*-elf*)
4204 tm_file=rs6000/sysv4le.h
4205 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4206 xm_defines="USG POSIX"
4209 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4211 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4213 xmake_file=rs6000/x-sysv4
4214 extra_headers=ppc-asm.h
4216 powerpcle-*-eabisim*)
4217 tm_file=rs6000/eabilesim.h
4218 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4219 fixincludes=Makefile.in
4220 extra_headers=ppc-asm.h
4223 tm_file=rs6000/eabile.h
4226 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4228 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4230 fixincludes=Makefile.in
4231 extra_headers=ppc-asm.h
4233 powerpcle-*-winnt* )
4234 tm_file=rs6000/win-nt.h
4235 tmake_file=rs6000/t-winnt
4237 fixincludes=Makefile.in
4238 if [ x$enable_threads = xyes ]; then
4241 extra_headers=ppc-asm.h
4243 powerpcle-*-pe | powerpcle-*-cygwin32)
4244 tm_file=rs6000/cygwin32.h
4245 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
4246 tmake_file=rs6000/t-winnt
4247 xmake_file=rs6000/x-cygwin32
4249 fixincludes=Makefile.in
4250 if [ x$enable_threads = xyes ]; then
4254 extra_headers=ppc-asm.h
4256 powerpcle-*-solaris2*)
4257 tm_file=rs6000/sol2.h
4258 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4259 xm_defines="USG POSIX"
4262 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4264 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4266 xmake_file=rs6000/x-sysv4
4269 fixincludes=fixinc.svr4;;
4271 fixincludes=fixinc.wrap;;
4273 extra_headers=ppc-asm.h
4275 rs6000-ibm-aix3.[01]*)
4276 tm_file=rs6000/aix31.h
4277 xmake_file=rs6000/x-aix31
4280 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
4281 tm_file=rs6000/aix3newas.h
4282 if [ x$host != x$target ]
4284 tmake_file=rs6000/t-xnewas
4286 tmake_file=rs6000/t-newas
4290 rs6000-ibm-aix4.[12].* | powerpc-ibm-aix4.[12].*)
4291 tm_file=rs6000/aix41.h
4292 if [ x$host != x$target ]
4294 tmake_file=rs6000/t-xnewas
4296 tmake_file=rs6000/t-newas
4298 xmake_file=rs6000/x-aix41
4301 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
4302 tm_file=rs6000/aix43.h
4303 if [ x$host != x$target ]
4305 tmake_file=rs6000/t-xaix43
4307 tmake_file=rs6000/t-aix43
4309 xmake_file=rs6000/x-aix43
4312 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
4313 tm_file=rs6000/aix43.h
4314 if [ x$host != x$target ]
4316 tmake_file=rs6000/t-xaix43
4318 tmake_file=rs6000/t-aix43
4320 xmake_file=rs6000/x-aix43
4330 tm_file=rs6000/mach.h
4331 xm_file="${xm_file} rs6000/xm-mach.h"
4332 xmake_file=rs6000/x-mach
4336 tm_file=rs6000/lynx.h
4337 xm_file=rs6000/xm-lynx.h
4338 tmake_file=rs6000/t-rs6000
4339 xmake_file=rs6000/x-lynx
4347 tmake_file="sh/t-sh t-rtems"
4356 xm_file="xm-alloca.h ${xm_file}"
4359 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
4360 tm_file=sparc/vxsparc.h
4361 tmake_file=sparc/t-vxsparc
4363 thread_file='vxworks'
4366 tmake_file=sparc/t-sparcbare
4367 tm_file="sparc/aout.h libgloss.h"
4370 tm_file=sparc/netbsd.h
4371 # On NetBSD, the headers are already okay, except for math.h.
4372 fixincludes=fixinc.wrap
4380 tmake_file=sparc/t-elf
4381 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4385 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4386 xm_file="${xm_file} sparc/xm-linux.h"
4387 tm_file=sparc/linux-aout.h
4389 fixincludes=Makefile.in #On Linux, the headers are ok already.
4392 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4393 xm_file="${xm_file} sparc/xm-linux.h"
4395 tm_file=sparc/linux.h
4396 tmake_file="t-linux t-linux-gnulibc1"
4397 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4398 fixincludes=Makefile.in #On Linux, the headers are ok already.
4401 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4402 xm_file="${xm_file} sparc/xm-linux.h"
4404 tm_file=sparc/linux.h
4405 tmake_file="t-linux"
4406 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4407 fixincludes=Makefile.in #On Linux, the headers are ok already.
4409 if [ x$enable_threads = xyes ]; then
4416 tm_file=sparc/lynx.h
4418 tm_file=sparc/lynx-ng.h
4420 xm_file=sparc/xm-lynx.h
4421 tmake_file=sparc/t-sunos41
4425 tmake_file="sparc/t-sparcbare t-rtems"
4426 tm_file=sparc/rtems.h
4429 if [ x$gnu_ld = xyes ]
4431 tm_file=sparc/sol2.h
4433 tm_file=sparc/sol2-sld.h
4435 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4436 xm_defines="USG POSIX"
4437 tmake_file=sparc/t-sol2
4438 xmake_file=sparc/x-sysv4
4439 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4442 fixincludes=fixinc.svr4;;
4444 fixincludes=fixinc.wrap;;
4447 if [ x${enable_threads} = x ]; then
4448 enable_threads=$have_pthread_h
4449 if [ x${enable_threads} = x ]; then
4450 enable_threads=$have_thread_h
4453 if [ x${enable_threads} = xyes ]; then
4454 if [ x${have_pthread_h} = xyes ]; then
4457 thread_file='solaris'
4462 tm_file=sparc/sunos4.h
4463 tmake_file=sparc/t-sunos40
4467 tm_file=sparc/sunos4.h
4468 tmake_file=sparc/t-sunos41
4470 if [ x$gas = xyes ]; then
4471 tm_file="${tm_file} sparc/sun4gas.h"
4475 tm_file=sparc/sun4o3.h
4479 tm_file=sparc/sysv4.h
4480 xm_file="xm-siglist.h sparc/xm-sysv4.h"
4481 xm_defines="USG POSIX"
4483 xmake_file=sparc/x-sysv4
4484 extra_parts="crtbegin.o crtend.o"
4487 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4488 xm_defines="USG POSIX"
4489 tm_file=sparc/vxsim.h
4490 tmake_file=sparc/t-vxsparc
4491 xmake_file=sparc/x-sysv4
4494 tm_file="sparc/splet.h libgloss.h"
4495 tmake_file=sparc/t-splet
4498 tm_file="sparc/litecoff.h libgloss.h"
4499 tmake_file=sparc/t-sparclite
4502 tm_file="sparc/lite.h aoutos.h libgloss.h"
4503 tmake_file=sparc/t-sparclite
4506 tmake_file=sparc/t-sp64
4507 tm_file=sparc/sp64-aout.h
4510 tmake_file=sparc/t-sp64
4511 tm_file=sparc/sp64-elf.h
4512 extra_parts="crtbegin.o crtend.o"
4514 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
4515 tmake_file=sparc/t-sp64
4516 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
4517 tm_file=sparc/linux64.h
4519 fixincludes=Makefile.in # The headers are ok already.
4522 # This hasn't been upgraded to GCC 2.
4523 # tahoe-harris-*) # Harris tahoe, using COFF.
4524 # tm_file=tahoe/harris.h
4526 # tahoe-*-bsd*) # tahoe running BSD
4528 thumb-*-coff* | thumbel-*-coff*)
4530 out_file=arm/thumb.c
4531 xm_file=arm/xm-thumb.h
4532 md_file=arm/thumb.md
4533 tmake_file=arm/t-thumb
4535 # This hasn't been upgraded to GCC 2.
4542 tm_file="v850/v850.h"
4543 xm_file="v850/xm-v850.h"
4544 tmake_file=v850/t-v850
4545 if [ x$stabs = xyes ]
4547 tm_file="${tm_file} dbx.h"
4551 vax-*-bsd*) # vaxen running BSD
4555 vax-*-sysv*) # vaxen running system V
4556 tm_file="${tm_file} vax/vaxv.h"
4561 tm_file="${tm_file} netbsd.h vax/netbsd.h"
4562 # On NetBSD, the headers are already okay, except for math.h.
4563 fixincludes=fixinc.wrap
4567 vax-*-ultrix*) # vaxen running ultrix
4568 tm_file="${tm_file} vax/ultrix.h"
4572 vax-*-vms*) # vaxen running VMS
4573 xm_file=vax/xm-vms.h
4577 vax-*-*) # vax default entry
4581 xm_file="${xm_file} xm-svr3"
4585 echo "Configuration $machine not supported" 1>&2
4592 ;; # Existing GNU/Linux systems do not use the GNU setup.
4594 # On the GNU system, the setup is just about the same on
4595 # each different CPU. The specific machines that GNU
4596 # supports are matched above and just set $cpu_type.
4597 xm_file="xm-gnu.h ${xm_file}"
4598 tm_file=${cpu_type}/gnu.h
4599 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4600 # GNU always uses ELF.
4602 # GNU tools are the only tools.
4605 # On GNU, the headers are already okay.
4606 fixincludes=Makefile.in
4607 xmake_file=x-linux # These details are the same as Linux.
4608 tmake_file=t-gnu # These are not.
4611 fixincludes=fixinc.svr4
4612 xmake_try_sysv=x-sysv
4613 install_headers_dir=install-headers-cpio
4616 install_headers_dir=install-headers-cpio
4620 # Distinguish i[34567]86
4621 # Also, do not run mips-tfile on MIPS if using gas.
4622 # Process --with-cpu= for PowerPC/rs6000
4623 target_cpu_default2=
4626 target_cpu_default2=1
4629 target_cpu_default2=2
4631 i686-*-* | i786-*-*)
4632 target_cpu_default2=3
4637 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4640 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4643 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
4646 target_cpu_default2="MASK_CPU_EV5"
4652 if [ "$target_cpu_default2" = "" ]
4654 target_cpu_default2="MASK_GAS"
4656 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
4661 case "x$with_cpu" in
4664 target_cpu_default2="TARGET_CPU_generic"
4667 # Distinguish cores, and major variants
4668 # arm7m doesn't exist, but D & I don't affect code
4669 xarm23678 | xarm250 | xarm67010 \
4670 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4671 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4672 | xstrongarm | xstrongarm110)
4673 target_cpu_default2="TARGET_CPU_$with_cpu"
4677 echo "--with-cpu must be passed a value" 1>&2
4682 if [ x$pass2done = xyes ]
4684 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4691 mips*-*-ecoff* | mips*-*-elf*)
4694 if [ x$gnu_ld = xyes ]
4696 target_cpu_default2=20
4698 target_cpu_default2=16
4705 target_cpu_default2=16
4708 powerpc*-*-* | rs6000-*-*)
4709 case "x$with_cpu" in
4713 xcommon | xpower | xpower2 | xpowerpc | xrios \
4714 | xrios1 | xrios2 | xrsc | xrsc1 \
4715 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4716 | x403 | x505 | x801 | x821 | x823 | x860)
4717 target_cpu_default2="\"$with_cpu\""
4721 echo "--with-cpu must be passed a value" 1>&2
4726 if [ x$pass2done = xyes ]
4728 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4735 case ".$with_cpu" in
4737 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
4739 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
4740 target_cpu_default2="TARGET_CPU_$with_cpu"
4743 if [ x$pass2done = xyes ]
4745 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4753 if [ "$target_cpu_default2" != "" ]
4755 if [ "$target_cpu_default" != "" ]
4757 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
4759 target_cpu_default=$target_cpu_default2
4763 # No need for collect2 if we have the GNU linker.
4770 # Save data on machine being used to compile GCC in build_xm_file.
4771 # Save data on host machine in vars host_xm_file and host_xmake_file.
4772 if [ x$pass1done = x ]
4774 if [ x"$xm_file" = x ]
4775 then build_xm_file=$cpu_type/xm-$cpu_type.h
4776 else build_xm_file=$xm_file
4778 build_xm_defines=$xm_defines
4779 build_install_headers_dir=$install_headers_dir
4780 build_exeext=$exeext
4783 if [ x$pass2done = x ]
4785 if [ x"$xm_file" = x ]
4786 then host_xm_file=$cpu_type/xm-$cpu_type.h
4787 else host_xm_file=$xm_file
4789 host_xm_defines=$xm_defines
4790 if [ x"$xmake_file" = x ]
4791 then xmake_file=$cpu_type/x-$cpu_type
4793 host_xmake_file="$xmake_file"
4794 host_truncate_target=$truncate_target
4795 host_extra_gcc_objs=$extra_gcc_objs
4796 host_extra_objs=$extra_host_objs
4803 extra_objs="${host_extra_objs} ${extra_objs}"
4805 # Default the target-machine variables that were not explicitly set.
4806 if [ x"$tm_file" = x ]
4807 then tm_file=$cpu_type/$cpu_type.h; fi
4809 if [ x$extra_headers = x ]
4810 then extra_headers=; fi
4812 if [ x"$xm_file" = x ]
4813 then xm_file=$cpu_type/xm-$cpu_type.h; fi
4815 if [ x$md_file = x ]
4816 then md_file=$cpu_type/$cpu_type.md; fi
4818 if [ x$out_file = x ]
4819 then out_file=$cpu_type/$cpu_type.c; fi
4821 if [ x"$tmake_file" = x ]
4822 then tmake_file=$cpu_type/t-$cpu_type
4825 if [ x$float_format = x ]
4826 then float_format=i64
4829 if [ x$enable_haifa = x ]
4832 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
4837 # Say what files are being used for the output code and MD file.
4838 echo "Using \`$srcdir/config/$out_file' to output insns."
4839 echo "Using \`$srcdir/config/$md_file' as machine description file."
4842 for f in $tm_file; do
4845 if [ $count = ax ]; then
4846 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4848 echo "Using the following target machine macro files:"
4849 for f in $tm_file; do
4850 echo " $srcdir/config/$f"
4855 for f in $host_xm_file; do
4858 if [ $count = ax ]; then
4859 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4861 echo "Using the following host machine macro files:"
4862 for f in $host_xm_file; do
4863 echo " $srcdir/config/$f"
4867 if [ "$host_xm_file" != "$build_xm_file" ]; then
4869 for f in $build_xm_file; do
4872 if [ $count = ax ]; then
4873 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4875 echo "Using the following build machine macro files:"
4876 for f in $build_xm_file; do
4877 echo " $srcdir/config/$f"
4882 if [ x$thread_file = x ]; then
4883 if [ x$target_thread_file != x ]; then
4884 thread_file=$target_thread_file
4886 thread_file='single'
4890 # Set up the header files.
4891 # $links is the list of header files to create.
4892 # $vars is the list of shell variables with file names to include.
4893 # auto-host.h is the file containing items generated by autoconf and is
4894 # the first file included by config.h.
4896 host_xm_file="auto-host.h ${host_xm_file}"
4898 # If host=build, it is correct to have hconfig include auto-host.h
4899 # as well. If host!=build, we are in error and need to do more
4900 # work to find out the build config parameters.
4901 if [ x$host = x$build ]
4903 build_xm_file="auto-host.h ${build_xm_file}"
4905 # We create a subdir, then run autoconf in the subdir.
4906 # To prevent recursion we set host and build for the new
4907 # invocation of configure to the build for this invocation
4914 /*) realsrcdir=${srcdir};;
4915 *) realsrcdir=../${srcdir};;
4917 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4918 --target=$target --host=$build --build=$build
4920 # We just finished tests for the build machine, so rename
4921 # the file auto-build.h in the gcc directory.
4922 mv auto-host.h ../auto-build.h
4925 build_xm_file="auto-build.h ${build_xm_file}"
4928 vars="host_xm_file tm_file xm_file build_xm_file"
4929 links="config.h tm.h tconfig.h hconfig.h"
4930 defines="host_xm_defines null_defines xm_defines build_xm_defines"
4933 if [ -f config.status ]; then mv -f config.status config.bak; fi
4936 while [ -n "$vars" ]
4938 set $vars; var=$1; shift; vars=$*
4939 set $links; link=$1; shift; links=$*
4940 set $defines; define=$1; shift; defines=$*
4944 # Define TARGET_CPU_DEFAULT if the system wants one.
4945 # This substitutes for lots of *.h files.
4946 if [ "$target_cpu_default" != "" -a $link = tm.h ]
4948 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4951 for file in `eval echo '$'$var`; do
4952 echo "#include \"$file\"" >>$link
4955 for def in `eval echo '$'$define`; do
4956 echo "#ifndef $def" >>$link
4957 echo "#define $def" >>$link
4958 echo "#endif" >>$link
4962 # Truncate the target if necessary
4963 if [ x$host_truncate_target != x ]; then
4964 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4967 # Get the version number from the toplevel
4968 version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4970 # Get an absolute path to the GCC top-level source directory
4976 # Conditionalize the makefile for this host machine.
4977 # Make-host contains the concatenation of all host makefile fragments
4978 # [there can be more than one]. This file is built by configure.frag.
4979 host_overrides=Make-host
4980 dep_host_xmake_file=
4981 for f in .. ${host_xmake_file}
4983 if [ -f ${srcdir}/config/$f ]
4985 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4989 # Conditionalize the makefile for this target machine.
4990 # Make-target contains the concatenation of all host makefile fragments
4991 # [there can be more than one]. This file is built by configure.frag.
4992 target_overrides=Make-target
4994 for f in .. ${tmake_file}
4996 if [ -f ${srcdir}/config/$f ]
4998 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
5002 # If the host doesn't support symlinks, modify CC in
5003 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5004 # Otherwise, we can use "CC=$(CC)".
5006 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
5008 cc_set_by_configure="\$(CC)"
5009 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
5012 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
5014 symbolic_link="cp -p"
5018 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5019 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5023 out_object_file=`basename $out_file .c`.o
5026 for f in $tm_file; do
5027 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
5031 for f in $host_xm_file; do
5032 if test $f != "auto-host.h"; then
5033 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
5035 host_xm_file_list="${host_xm_file_list} auto-host.h"
5040 for f in $build_xm_file; do
5041 if test $f != "auto-build.h"; then
5042 if test $f != "auto-host.h"; then
5043 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
5045 build_xm_file_list="${build_xm_file_list} auto-host.h"
5048 build_xm_file_list="${build_xm_file_list} auto-build.h"
5052 # Define macro CROSS_COMPILE in compilation
5053 # if this is a cross-compiler.
5054 # Also use all.cross instead of all.internal
5055 # and add cross-make to Makefile.
5056 cross_overrides="/dev/null"
5057 if [ x$host != x$target ]
5059 cross_defines="CROSS=-DCROSS_COMPILE"
5060 cross_overrides="${topdir}/cross-make"
5063 # When building gcc with a cross-compiler, we need to fix a few things.
5064 # This must come after cross-make as we want all.build to override
5066 build_overrides="/dev/null"
5067 if [ x$build != x$host ]
5069 build_overrides="${topdir}/build-make"
5072 # Expand extra_headers to include complete path.
5073 # This substitutes for lots of t-* files.
5075 if [ "x$extra_headers" = x ]
5078 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5079 for file in $extra_headers;
5081 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5085 # Add a definition of USE_COLLECT2 if system wants one.
5086 # Also tell toplev.c what to do.
5087 # This substitutes for lots of t-* files.
5088 if [ x$use_collect2 = x ]
5093 will_use_collect2="collect2"
5094 maybe_use_collect2="-DUSE_COLLECT2"
5098 # Set MD_DEPS if the real md file is in md.pre-cpp.
5099 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5100 # for line oriented comments, so we must always use a GNU cpp. If
5101 # building gcc with a cross compiler, use the cross compiler just
5102 # built. Otherwise, we can use the cpp just built.
5104 if [ "x$md_cppflags" = x ]
5106 md_file_sub=$srcdir/config/$md_file
5111 # If we have gas in the build tree, make a link to it.
5112 if [ -f ../gas/Makefile ]; then
5113 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
5116 # If we have ld in the build tree, make a link to it.
5117 if [ -f ../ld/Makefile ]; then
5118 # if [[ x$use_collect2 = x ]]; then
5119 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5121 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
5125 # Figure out what assembler alignment features are present.
5126 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5127 echo "configure:5128: checking assembler alignment features" >&5
5129 gcc_cv_as_alignment_features=
5130 if [ -x as$host_exeext ]; then
5131 # Build using assembler in the current directory.
5132 gcc_cv_as=./as$host_exeext
5133 elif [ -f $srcdir/../gas/configure.in ]; then
5134 # Single tree build which includes gas.
5135 for f in $srcdir/../gas/configure.in $srcdir/../gas/Makefile.in
5137 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5138 if [ x$gcc_cv_gas_version != x ]; then
5142 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5143 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5144 # Gas version 2.8 and later support specifying the maximum
5145 # bytes to skip when using .p2align.
5146 if [ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]; then
5147 gcc_cv_as_alignment_features=".p2align including maximum skip"
5148 cat >> confdefs.h <<\EOF
5149 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5153 elif [ x$host = x$target ]; then
5155 gcc_cv_as=as$host_exeext
5157 if [ x$gcc_cv_as != x ]; then
5158 # Check if specifying the maximum bytes to skip when
5159 # using .p2align is supported.
5160 echo ".p2align 4,,7" > conftest.s
5161 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
5162 gcc_cv_as_alignment_features=".p2align including maximum skip"
5163 cat >> confdefs.h <<\EOF
5164 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5168 rm -f conftest.s conftest.o
5170 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5172 # Figure out what language subdirectories are present.
5174 for lang in ${srcdir}/*/config-lang.in ..
5178 # The odd quoting in the next line works around
5179 # an apparent bug in bash 1.12 on linux.
5180 ${srcdir}/[*]/config-lang.in) ;;
5181 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5185 # Make gthr-default.h if we have a thread file.
5187 if [ $thread_file != single ]; then
5188 rm -f gthr-default.h
5189 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5190 gthread_flags=-DHAVE_GTHR_DEFAULT
5194 # Make empty files to contain the specs and options for each language.
5195 # Then add #include lines to for a compiler that has specs and/or options.
5199 rm -f specs.h options.h
5200 touch specs.h options.h
5201 for subdir in . $subdirs
5203 if [ -f $srcdir/$subdir/lang-specs.h ]; then
5204 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5205 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5207 if [ -f $srcdir/$subdir/lang-options.h ]; then
5208 echo "#include \"$subdir/lang-options.h\"" >>options.h
5209 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
5213 # These (without "all_") are set in each config-lang.in.
5214 # `language' must be a single word so is spelled singularly.
5220 all_outputs=Makefile
5221 # List of language makefile fragments.
5226 # Add the language fragments.
5227 # Languages are added via two mechanisms. Some information must be
5228 # recorded in makefile variables, these are defined in config-lang.in.
5229 # We accumulate them and plug them into the main Makefile.
5230 # The other mechanism is a set of hooks for each of the main targets
5231 # like `clean', `install', etc.
5233 language_fragments="Make-lang"
5234 language_hooks="Make-hooks"
5237 for s in .. $subdirs
5249 . ${srcdir}/$s/config-lang.in
5250 if [ "x$language" = x ]
5252 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5255 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5256 all_languages="$all_languages $language"
5257 if [ "x$boot_language" = xyes ]
5259 all_boot_languages="$all_boot_languages $language"
5261 all_compilers="$all_compilers $compilers"
5262 all_stagestuff="$all_stagestuff $stagestuff"
5263 all_diff_excludes="$all_diff_excludes $diff_excludes"
5264 all_headers="$all_headers $headers"
5265 all_outputs="$all_outputs $outputs"
5266 if [ x$outputs = x ]
5268 oldstyle_subdirs="$oldstyle_subdirs $s"
5270 all_lib2funcs="$all_lib2funcs $lib2funcs"
5274 # Since we can't use `::' targets, we link each language in
5275 # with a set of hooks, reached indirectly via lang.${target}.
5279 target_list="all.build all.cross start.encap rest.encap \
5281 install-normal install-common install-info install-man \
5283 mostlyclean clean distclean extraclean maintainer-clean \
5284 stage1 stage2 stage3 stage4"
5285 for t in $target_list
5288 for l in .. $all_languages
5290 if [ $l != ".." ]; then
5294 echo "lang.$t: $x" >> Make-hooks
5297 # If we're not building in srcdir, create .gdbinit.
5299 if [ ! -f Makefile.in ]; then
5300 echo "dir ." > .gdbinit
5301 echo "dir ${srcdir}" >> .gdbinit
5302 if [ x$gdb_needs_out_file_path = xyes ]
5304 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5306 if [ "x$subdirs" != x ]; then
5309 echo "dir ${srcdir}/$s" >> .gdbinit
5312 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5315 # Define variables host_canonical and build_canonical
5316 # because some Cygnus local changes in the Makefile depend on them.
5317 build_canonical=${build}
5318 host_canonical=${host}
5320 if [ "${host}" != "${target}" ] ; then
5321 target_subdir=${target}/
5327 # If this is using newlib, then define inhibit_libc in
5328 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5329 # libgcc.a, but that's OK because newib should have its own version of
5332 if [ x$with_newlib = xyes ]; then
5333 inhibit_libc=-Dinhibit_libc
5337 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5340 if [ x$enable_haifa = xyes ]; then
5341 echo "Using the Haifa scheduler."
5343 sched_cflags=-DHAIFA
5347 if [ x$enable_haifa != x ]; then
5348 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5349 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
5357 # Nothing to do for FLOAT_H, float_format already handled.
5361 # Process the language and host/target makefile fragments.
5362 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5364 # Substitute configuration variables
5417 # Echo that links are built
5418 if [ x$host = x$target ]
5426 if [ x$host != x$build ]
5428 str3=" on a $build system"
5431 if [ "x$str2" != x ] || [ "x$str3" != x ]
5436 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5438 if [ "x$str2" != x ] || [ "x$str3" != x ]
5440 echo " ${str2}${str3}." 1>&2
5443 # Truncate the target if necessary
5444 if [ x$host_truncate_target != x ]; then
5445 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5448 # Configure the subdirectories
5449 # AC_CONFIG_SUBDIRS($subdirs)
5451 # Create the Makefile
5452 # and configure language subdirectories
5454 cat > confcache <<\EOF
5455 # This file is a shell script that caches the results of configure
5456 # tests run on this system so they can be shared between configure
5457 # scripts and configure runs. It is not useful on other systems.
5458 # If it contains results you don't want to keep, you may remove or edit it.
5460 # By default, configure uses ./config.cache as the cache file,
5461 # creating it if it does not exist already. You can give configure
5462 # the --cache-file=FILE option to use a different cache file; that is
5463 # what configure does when it calls configure scripts in
5464 # subdirectories, so they share the cache.
5465 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5466 # config.status only pays attention to the cache file if you give it the
5467 # --recheck option to rerun configure.
5470 # The following way of writing the cache mishandles newlines in values,
5471 # but we know of no workaround that is simple, portable, and efficient.
5472 # So, don't put newlines in cache variables' values.
5473 # Ultrix sh set writes to stderr and can't be redirected directly,
5474 # and sets the high bit in the cache file unless we assign to the vars.
5476 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5478 # `set' does not quote correctly, so add quotes (double-quote substitution
5479 # turns \\\\ into \\, and sed turns \\ into \).
5481 -e "s/'/'\\\\''/g" \
5482 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5485 # `set' quotes correctly as required by POSIX, so do not add quotes.
5486 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5489 if cmp -s $cache_file confcache; then
5492 if test -w $cache_file; then
5493 echo "updating cache $cache_file"
5494 cat confcache > $cache_file
5496 echo "not updating unwritable cache $cache_file"
5501 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5504 # Let make expand exec_prefix.
5505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5507 # Any assignment to VPATH causes Sun make to only execute
5508 # the first set of double-colon rules, so remove it if not needed.
5509 # If there is a colon in the path, we need to keep it.
5510 if test "x$srcdir" = x.; then
5511 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5514 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5516 DEFS=-DHAVE_CONFIG_H
5518 # Without the "./", some shells look in PATH for config.status.
5519 : ${CONFIG_STATUS=./config.status}
5521 echo creating $CONFIG_STATUS
5522 rm -f $CONFIG_STATUS
5523 cat > $CONFIG_STATUS <<EOF
5525 # Generated automatically by configure.
5526 # Run this file to recreate the current configuration.
5527 # This directory was configured as follows,
5528 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5530 # $0 $ac_configure_args
5532 # Compiler output produced by configure, useful for debugging
5533 # configure, is in ./config.log if it exists.
5535 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5538 case "\$ac_option" in
5539 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5540 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5541 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5542 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5543 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5545 -help | --help | --hel | --he | --h)
5546 echo "\$ac_cs_usage"; exit 0 ;;
5547 *) echo "\$ac_cs_usage"; exit 1 ;;
5551 ac_given_srcdir=$srcdir
5553 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5555 cat >> $CONFIG_STATUS <<EOF
5557 # Protect against being on the right side of a sed subst in config.status.
5558 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5559 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5563 s%@CFLAGS@%$CFLAGS%g
5564 s%@CPPFLAGS@%$CPPFLAGS%g
5565 s%@CXXFLAGS@%$CXXFLAGS%g
5567 s%@LDFLAGS@%$LDFLAGS%g
5569 s%@exec_prefix@%$exec_prefix%g
5570 s%@prefix@%$prefix%g
5571 s%@program_transform_name@%$program_transform_name%g
5572 s%@bindir@%$bindir%g
5573 s%@sbindir@%$sbindir%g
5574 s%@libexecdir@%$libexecdir%g
5575 s%@datadir@%$datadir%g
5576 s%@sysconfdir@%$sysconfdir%g
5577 s%@sharedstatedir@%$sharedstatedir%g
5578 s%@localstatedir@%$localstatedir%g
5579 s%@libdir@%$libdir%g
5580 s%@includedir@%$includedir%g
5581 s%@oldincludedir@%$oldincludedir%g
5582 s%@infodir@%$infodir%g
5583 s%@mandir@%$mandir%g
5585 s%@host_alias@%$host_alias%g
5586 s%@host_cpu@%$host_cpu%g
5587 s%@host_vendor@%$host_vendor%g
5588 s%@host_os@%$host_os%g
5589 s%@target@%$target%g
5590 s%@target_alias@%$target_alias%g
5591 s%@target_cpu@%$target_cpu%g
5592 s%@target_vendor@%$target_vendor%g
5593 s%@target_os@%$target_os%g
5595 s%@build_alias@%$build_alias%g
5596 s%@build_cpu@%$build_cpu%g
5597 s%@build_vendor@%$build_vendor%g
5598 s%@build_os@%$build_os%g
5600 s%@SET_MAKE@%$SET_MAKE%g
5603 s%@LEXLIB@%$LEXLIB%g
5606 s%@RANLIB@%$RANLIB%g
5608 s%@INSTALL@%$INSTALL%g
5609 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5610 s%@INSTALL_DATA@%$INSTALL_DATA%g
5612 s%@vfprintf@%$vfprintf%g
5613 s%@doprint@%$doprint%g
5614 s%@manext@%$manext%g
5615 s%@objext@%$objext%g
5616 s%@gthread_flags@%$gthread_flags%g
5617 s%@build_canonical@%$build_canonical%g
5618 s%@host_canonical@%$host_canonical%g
5619 s%@target_subdir@%$target_subdir%g
5620 s%@inhibit_libc@%$inhibit_libc%g
5621 s%@sched_prefix@%$sched_prefix%g
5622 s%@sched_cflags@%$sched_cflags%g
5623 s%@objdir@%$objdir%g
5624 s%@subdirs@%$subdirs%g
5625 s%@all_languages@%$all_languages%g
5626 s%@all_boot_languages@%$all_boot_languages%g
5627 s%@all_compilers@%$all_compilers%g
5628 s%@all_lang_makefiles@%$all_lang_makefiles%g
5629 s%@all_stagestuff@%$all_stagestuff%g
5630 s%@all_diff_excludes@%$all_diff_excludes%g
5631 s%@all_lib2funcs@%$all_lib2funcs%g
5632 s%@all_headers@%$all_headers%g
5633 s%@extra_passes@%$extra_passes%g
5634 s%@extra_programs@%$extra_programs%g
5635 s%@extra_parts@%$extra_parts%g
5636 s%@extra_c_objs@%$extra_c_objs%g
5637 s%@extra_cxx_objs@%$extra_cxx_objs%g
5638 s%@extra_c_flags@%$extra_c_flags%g
5639 s%@extra_objs@%$extra_objs%g
5640 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5641 s%@extra_headers_list@%$extra_headers_list%g
5642 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5643 s%@dep_tmake_file@%$dep_tmake_file%g
5644 s%@out_file@%$out_file%g
5645 s%@out_object_file@%$out_object_file%g
5646 s%@md_file@%$md_file%g
5647 s%@tm_file_list@%$tm_file_list%g
5648 s%@build_xm_file_list@%$build_xm_file_list%g
5649 s%@host_xm_file_list@%$host_xm_file_list%g
5650 s%@lang_specs_files@%$lang_specs_files%g
5651 s%@lang_options_files@%$lang_options_files%g
5652 s%@thread_file@%$thread_file%g
5653 s%@version@%$version%g
5654 s%@local_prefix@%$local_prefix%g
5655 s%@gxx_include_dir@%$gxx_include_dir%g
5656 s%@fixincludes@%$fixincludes%g
5657 s%@build_install_headers_dir@%$build_install_headers_dir%g
5658 s%@build_exeext@%$build_exeext%g
5659 s%@host_exeext@%$host_exeext%g
5660 s%@float_format@%$float_format%g
5661 s%@will_use_collect2@%$will_use_collect2%g
5662 s%@maybe_use_collect2@%$maybe_use_collect2%g
5663 s%@cc_set_by_configure@%$cc_set_by_configure%g
5664 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5665 s%@install@%$install%g
5666 s%@symbolic_link@%$symbolic_link%g
5667 /@target_overrides@/r $target_overrides
5668 s%@target_overrides@%%g
5669 /@host_overrides@/r $host_overrides
5670 s%@host_overrides@%%g
5671 s%@cross_defines@%$cross_defines%g
5672 /@cross_overrides@/r $cross_overrides
5673 s%@cross_overrides@%%g
5674 /@build_overrides@/r $build_overrides
5675 s%@build_overrides@%%g
5676 /@language_fragments@/r $language_fragments
5677 s%@language_fragments@%%g
5678 /@language_hooks@/r $language_hooks
5679 s%@language_hooks@%%g
5684 cat >> $CONFIG_STATUS <<\EOF
5686 # Split the substitutions into bite-sized pieces for seds with
5687 # small command number limits, like on Digital OSF/1 and HP-UX.
5688 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5689 ac_file=1 # Number of current file.
5690 ac_beg=1 # First line for current file.
5691 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5694 while $ac_more_lines; do
5695 if test $ac_beg -gt 1; then
5696 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5698 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5700 if test ! -s conftest.s$ac_file; then
5702 rm -f conftest.s$ac_file
5704 if test -z "$ac_sed_cmds"; then
5705 ac_sed_cmds="sed -f conftest.s$ac_file"
5707 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5709 ac_file=`expr $ac_file + 1`
5711 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5714 if test -z "$ac_sed_cmds"; then
5719 cat >> $CONFIG_STATUS <<EOF
5721 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5723 cat >> $CONFIG_STATUS <<\EOF
5724 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5725 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5727 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5728 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5729 *) ac_file_in="${ac_file}.in" ;;
5732 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5734 # Remove last slash and all that follows it. Not all systems have dirname.
5735 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5736 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5737 # The file is in a subdirectory.
5738 test ! -d "$ac_dir" && mkdir "$ac_dir"
5739 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5740 # A "../" for each directory in $ac_dir_suffix.
5741 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5743 ac_dir_suffix= ac_dots=
5746 case "$ac_given_srcdir" in
5748 if test -z "$ac_dots"; then top_srcdir=.
5749 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5750 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5752 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5753 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5757 echo creating "$ac_file"
5759 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5761 *Makefile*) ac_comsub="1i\\
5762 # $configure_input" ;;
5766 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5768 s%@configure_input@%$configure_input%g
5769 s%@srcdir@%$srcdir%g
5770 s%@top_srcdir@%$top_srcdir%g
5771 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5775 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5776 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5778 # ac_d sets the value in "#define NAME VALUE" lines.
5779 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5780 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5783 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5784 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5785 ac_uB='\([ ]\)%\1#\2define\3'
5788 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5789 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5790 ac_eB='$%\1#\2define\3'
5794 if test "${CONFIG_HEADERS+set}" != set; then
5796 cat >> $CONFIG_STATUS <<EOF
5797 CONFIG_HEADERS="auto-host.h:config.in"
5799 cat >> $CONFIG_STATUS <<\EOF
5801 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5802 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5804 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5805 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5806 *) ac_file_in="${ac_file}.in" ;;
5809 echo creating $ac_file
5811 rm -f conftest.frag conftest.in conftest.out
5812 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5813 cat $ac_file_inputs > conftest.in
5817 # Transform confdefs.h into a sed script conftest.vals that substitutes
5818 # the proper values into config.h.in to produce config.h. And first:
5819 # Protect against being on the right side of a sed subst in config.status.
5820 # Protect against being in an unquoted here document in config.status.
5822 cat > conftest.hdr <<\EOF
5825 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5829 sed -n -f conftest.hdr confdefs.h > conftest.vals
5832 # This sed command replaces #undef with comments. This is necessary, for
5833 # example, in the case of _POSIX_SOURCE, which is predefined and required
5834 # on some systems where configure will not decide to define it.
5835 cat >> conftest.vals <<\EOF
5836 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5839 # Break up conftest.vals because some shells have a limit on
5840 # the size of here documents, and old seds have small limits too.
5845 ac_lines=`grep -c . conftest.vals`
5846 # grep -c gives empty output for an empty file on some AIX systems.
5847 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5848 # Write a limited-size here document to conftest.frag.
5849 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5850 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5852 sed -f conftest.frag conftest.in > conftest.out
5854 mv conftest.out conftest.in
5856 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5858 mv conftest.tail conftest.vals
5862 cat >> $CONFIG_STATUS <<\EOF
5863 rm -f conftest.frag conftest.h
5864 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5865 cat conftest.in >> conftest.h
5867 if cmp -s $ac_file conftest.h 2>/dev/null; then
5868 echo "$ac_file is unchanged"
5871 # Remove last slash and all that follows it. Not all systems have dirname.
5872 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5873 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5874 # The file is in a subdirectory.
5875 test ! -d "$ac_dir" && mkdir "$ac_dir"
5878 mv conftest.h $ac_file
5883 cat >> $CONFIG_STATUS <<EOF
5888 target_alias='${target_alias}'
5890 subdirs='${subdirs}'
5891 oldstyle_subdirs='${oldstyle_subdirs}'
5892 symbolic_link='${symbolic_link}'
5893 program_transform_set='${program_transform_set}'
5894 program_transform_name='${program_transform_name}'
5895 dep_host_xmake_file='${dep_host_xmake_file}'
5896 host_xmake_file='${host_xmake_file}'
5897 dep_tmake_file='${dep_tmake_file}'
5898 tmake_file='${tmake_file}'
5899 thread_file='${thread_file}'
5900 version='${version}'
5901 local_prefix='${local_prefix}'
5902 build_install_headers_dir='${build_install_headers_dir}'
5903 build_exeext='${build_exeext}'
5904 host_exeext='${host_exeext}'
5905 out_file='${out_file}'
5906 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5907 SET_MAKE='${SET_MAKE}'
5908 target_list='${target_list}'
5909 target_overrides='${target_overrides}'
5910 host_overrides='${host_overrides}'
5911 cross_defines='${cross_defines}'
5912 cross_overrides='${cross_overrides}'
5913 build_overrides='${build_overrides}'
5916 cat >> $CONFIG_STATUS <<\EOF
5918 . $srcdir/configure.lang
5919 case x$CONFIG_HEADERS in
5920 xauto-host.h:config.in)
5923 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5924 # bootstrapping and the installation procedure can still use
5925 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5926 # FLAGS_TO_PASS has been modified to solve the problem there.
5927 # This is virtually a duplicate of what happens in configure.lang; we do
5928 # an extra check to make sure this only happens if ln -s can be used.
5929 if [ "$symbolic_link" = "ln -s" ]; then
5930 for d in .. ${subdirs} ; do
5931 if [ $d != .. ]; then
5934 for t in stage1 stage2 stage3 stage4 include
5937 $symbolic_link ../$t $t 2>/dev/null
5946 chmod +x $CONFIG_STATUS
5947 rm -fr confdefs* $ac_clean_files
5948 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1