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-c-cpplib Use cpplib for C."
30 --enable-haifa Use the experimental scheduler.
31 --disable-haifa Don't use the experimental scheduler for the
32 targets which normally enable it."
34 --enable-threads enable thread usage for target GCC.
35 --enable-threads=LIB use LIB thread package for target GCC."
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file
=.
/config.cache
50 program_transform_name
=s
,x
,x
,
58 bindir
='${exec_prefix}/bin'
59 sbindir
='${exec_prefix}/sbin'
60 libexecdir
='${exec_prefix}/libexec'
61 datadir
='${prefix}/share'
62 sysconfdir
='${prefix}/etc'
63 sharedstatedir
='${prefix}/com'
64 localstatedir
='${prefix}/var'
65 libdir
='${exec_prefix}/lib'
66 includedir
='${prefix}/include'
67 oldincludedir
='/usr/include'
68 infodir
='${prefix}/info'
69 mandir
='${prefix}/man'
71 # Initialize some other variables.
74 SHELL
=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
100 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
101 bindir
="$ac_optarg" ;;
103 -build |
--build |
--buil |
--bui |
--bu)
105 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
106 build
="$ac_optarg" ;;
108 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
109 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
110 ac_prev
=cache_file
;;
111 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
112 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
113 cache_file
="$ac_optarg" ;;
115 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
117 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
119 datadir
="$ac_optarg" ;;
121 -disable-* |
--disable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* |
--enable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
144 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
145 |
--exec |
--exe |
--ex)
146 ac_prev
=exec_prefix
;;
147 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
148 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
149 |
--exec=* |
--exe=* |
--ex=*)
150 exec_prefix
="$ac_optarg" ;;
152 -gas |
--gas |
--ga |
--g)
153 # Obsolete; use --with-gas.
156 -help |
--help |
--hel |
--he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
211 -host |
--host |
--hos |
--ho)
213 -host=* |
--host=* |
--hos=* |
--ho=*)
216 -includedir |
--includedir |
--includedi |
--included |
--include \
217 |
--includ |
--inclu |
--incl |
--inc)
218 ac_prev
=includedir
;;
219 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
220 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
221 includedir
="$ac_optarg" ;;
223 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
225 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
226 infodir
="$ac_optarg" ;;
228 -libdir |
--libdir |
--libdi |
--libd)
230 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
231 libdir
="$ac_optarg" ;;
233 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
234 |
--libexe |
--libex |
--libe)
235 ac_prev
=libexecdir
;;
236 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
237 |
--libexe=* |
--libex=* |
--libe=*)
238 libexecdir
="$ac_optarg" ;;
240 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
241 |
--localstate |
--localstat |
--localsta |
--localst \
242 |
--locals |
--local |
--loca |
--loc |
--lo)
243 ac_prev
=localstatedir
;;
244 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
245 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
246 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
247 localstatedir
="$ac_optarg" ;;
249 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
251 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
252 mandir
="$ac_optarg" ;;
255 # Obsolete; use --without-fp.
258 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
262 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
263 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
266 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
267 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
268 |
--oldin |
--oldi |
--old |
--ol |
--o)
269 ac_prev
=oldincludedir
;;
270 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
271 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
272 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
273 oldincludedir
="$ac_optarg" ;;
275 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
277 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
278 prefix
="$ac_optarg" ;;
280 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
281 |
--program-pre |
--program-pr |
--program-p)
282 ac_prev
=program_prefix
;;
283 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
284 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
285 program_prefix
="$ac_optarg" ;;
287 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
288 |
--program-suf |
--program-su |
--program-s)
289 ac_prev
=program_suffix
;;
290 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
291 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
292 program_suffix
="$ac_optarg" ;;
294 -program-transform-name |
--program-transform-name \
295 |
--program-transform-nam |
--program-transform-na \
296 |
--program-transform-n |
--program-transform- \
297 |
--program-transform |
--program-transfor \
298 |
--program-transfo |
--program-transf \
299 |
--program-trans |
--program-tran \
300 |
--progr-tra |
--program-tr |
--program-t)
301 ac_prev
=program_transform_name
;;
302 -program-transform-name=* |
--program-transform-name=* \
303 |
--program-transform-nam=* |
--program-transform-na=* \
304 |
--program-transform-n=* |
--program-transform-=* \
305 |
--program-transform=* |
--program-transfor=* \
306 |
--program-transfo=* |
--program-transf=* \
307 |
--program-trans=* |
--program-tran=* \
308 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
309 program_transform_name
="$ac_optarg" ;;
311 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
312 |
-silent |
--silent |
--silen |
--sile |
--sil)
315 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
317 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
319 sbindir
="$ac_optarg" ;;
321 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
322 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
323 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
325 ac_prev
=sharedstatedir
;;
326 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
327 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
328 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
330 sharedstatedir
="$ac_optarg" ;;
332 -site |
--site |
--sit)
334 -site=* |
--site=* |
--sit=*)
337 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
339 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
340 srcdir
="$ac_optarg" ;;
342 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
343 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
344 ac_prev
=sysconfdir
;;
345 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
346 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
347 sysconfdir
="$ac_optarg" ;;
349 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
351 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
352 target
="$ac_optarg" ;;
354 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
357 -version |
--version |
--versio |
--versi |
--vers)
358 echo "configure generated by autoconf version 2.12.1"
362 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* |
--without-*)
375 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
388 |
--x-incl |
--x-inc |
--x-in |
--x-i)
389 ac_prev
=x_includes
;;
390 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
391 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
392 x_includes
="$ac_optarg" ;;
394 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
395 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
396 ac_prev
=x_libraries
;;
397 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
398 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
399 x_libraries
="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE
; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
450 |
--no-cr |
--no-c) ;;
451 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
452 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
453 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest
* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file
=tree.c
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted
=yes
481 # Try the directory containing this script, then its parent.
483 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
486 if test ! -r $srcdir/$ac_unique_file; then
490 ac_srcdir_defaulted
=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE
; then
504 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
506 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 for ac_site_file
in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
520 echo "creating cache $cache_file"
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp
='$CPP $CPPFLAGS'
527 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling
=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
540 ac_n
= ac_c
='\c' ac_t
=
548 symbolic_link
='ln -s'
551 # Check for additional parameters
554 # Check whether --with-gnu-ld or --without-gnu-ld was given.
555 if test "${with_gnu_ld+set}" = set; then
556 withval
="$with_gnu_ld"
557 gnu_ld
="$with_gnu_ld"
564 # Check whether --with-gnu-as or --without-gnu-as was given.
565 if test "${with_gnu_as+set}" = set; then
566 withval
="$with_gnu_as"
574 # Check whether --with-stabs or --without-stabs was given.
575 if test "${with_stabs+set}" = set; then
576 withval
="$with_stabs"
584 # Check whether --with-elf or --without-elf was given.
585 if test "${with_elf+set}" = set; then
593 # Specify the local prefix
594 # Check whether --with-local-prefix or --without-local-prefix was given.
595 if test "${with_local_prefix+set}" = set; then
596 withval
="$with_local_prefix"
597 local_prefix
=$with_local_prefix
599 local_prefix
=/usr
/local
603 # Default local prefix if it is empty
604 if [ x
$local_prefix = x
]; then
605 local_prefix
=/usr
/local
608 # Specify the g++ header file directory
609 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
610 if test "${with_gxx_include_dir+set}" = set; then
611 withval
="$with_gxx_include_dir"
612 gxx_include_dir
=$with_gxx_include_dir
614 gxx_include_dir
='${prefix}/include/g++'
618 # Default g++ header file directory if it is empty
619 if [ x
$gxx_include_dir = x
]; then
620 gxx_include_dir
='${prefix}/include/g++'
623 # Enable use of cpplib for C.
624 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
625 if test "${enable_c_cpplib+set}" = set; then
626 enableval
="$enable_c_cpplib"
627 if [ x
$enable_c_cpplib != xno
]; then
628 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
629 extra_c_flags
=-DUSE_CPPLIB=1
634 # Enable Haifa scheduler.
635 # Check whether --enable-haifa or --disable-haifa was given.
636 if test "${enable_haifa+set}" = set; then
637 enableval
="$enable_haifa"
643 # Pass with no value to take the default
644 # Pass with a value to specify a thread package
645 # Check whether --enable-threads or --disable-threads was given.
646 if test "${enable_threads+set}" = set; then
647 enableval
="$enable_threads"
648 if [ x
$enable_threads = xno
]; then
656 # Check if a valid thread package
657 case x
${enable_threads} in
660 target_thread_file
='single'
664 target_thread_file
=''
666 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
667 xsolaris | xwin32 | xdce | xvxworks
)
668 target_thread_file
=$enable_threads
671 echo "$enable_threads is an unknown thread package" 1>&2
676 # Determine the host, build, and target systems
678 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
679 if test -f $ac_dir/install-sh
; then
681 ac_install_sh
="$ac_aux_dir/install-sh -c"
683 elif test -f $ac_dir/install.sh
; then
685 ac_install_sh
="$ac_aux_dir/install.sh -c"
689 if test -z "$ac_aux_dir"; then
690 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
692 ac_config_guess
=$ac_aux_dir/config.guess
693 ac_config_sub
=$ac_aux_dir/config.sub
694 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
697 # Do some error checking and defaulting for the host and target type.
699 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
702 # 1. You are not allowed to specify --host, --target, and nonopt at the
704 # 2. Host defaults to nonopt.
705 # 3. If nonopt is not specified, then host defaults to the current host,
706 # as determined by config.guess.
707 # 4. Target and build default to nonopt.
708 # 5. If nonopt is not specified, then target and build default to host.
710 # The aliases save the names the user supplied, while $host etc.
711 # will get canonicalized.
712 case $host---$target---$nonopt in
713 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
714 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
718 # Make sure we can run config.sub.
719 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
720 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
723 echo $ac_n "checking host system type""... $ac_c" 1>&6
724 echo "configure:725: checking host system type" >&5
727 case "$host_alias" in
731 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
732 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
734 *) host_alias
=$nonopt ;;
738 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
739 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
740 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
741 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
742 echo "$ac_t""$host" 1>&6
744 echo $ac_n "checking target system type""... $ac_c" 1>&6
745 echo "configure:746: checking target system type" >&5
748 case "$target_alias" in
751 NONE
) target_alias
=$host_alias ;;
752 *) target_alias
=$nonopt ;;
756 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
757 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
758 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
759 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
760 echo "$ac_t""$target" 1>&6
762 echo $ac_n "checking build system type""... $ac_c" 1>&6
763 echo "configure:764: checking build system type" >&5
766 case "$build_alias" in
769 NONE
) build_alias
=$host_alias ;;
770 *) build_alias
=$nonopt ;;
774 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
775 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
776 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
777 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
778 echo "$ac_t""$build" 1>&6
780 test "$host_alias" != "$target_alias" &&
781 test "$program_prefix$program_suffix$program_transform_name" = \
783 program_prefix
=${target_alias}-
786 # Find the native compiler
787 # Extract the first word of "gcc", so it can be a program name with args.
788 set dummy gcc
; ac_word
=$2
789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
790 echo "configure:791: checking for $ac_word" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 if test -n "$CC"; then
795 ac_cv_prog_CC
="$CC" # Let the user override the test.
797 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
798 for ac_dir
in $PATH; do
799 test -z "$ac_dir" && ac_dir
=.
800 if test -f $ac_dir/$ac_word; then
809 if test -n "$CC"; then
810 echo "$ac_t""$CC" 1>&6
812 echo "$ac_t""no" 1>&6
815 if test -z "$CC"; then
816 # Extract the first word of "cc", so it can be a program name with args.
817 set dummy cc
; ac_word
=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 if test -n "$CC"; then
824 ac_cv_prog_CC
="$CC" # Let the user override the test.
826 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
831 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
840 if test $ac_prog_rejected = yes; then
841 # We found a bogon in the path, so make sure we never use it.
842 set dummy
$ac_cv_prog_CC
844 if test $# -gt 0; then
845 # We chose a different compiler from the bogus one.
846 # However, it has the same basename, so the bogon will be chosen
847 # first if we set CC to just the basename; use the full file name.
849 set dummy
"$ac_dir/$ac_word" "$@"
857 if test -n "$CC"; then
858 echo "$ac_t""$CC" 1>&6
860 echo "$ac_t""no" 1>&6
863 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
866 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
867 echo "configure:868: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
870 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
871 ac_cpp
='$CPP $CPPFLAGS'
872 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
873 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
874 cross_compiling
=$ac_cv_prog_cc_cross
876 cat > conftest.
$ac_ext <<EOF
877 #line 878 "configure"
878 #include "confdefs.h"
881 if { (eval echo configure
:882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
882 ac_cv_prog_cc_works
=yes
883 # If we can't run a trivial program, we are probably using a cross compiler.
884 if (.
/conftest
; exit) 2>/dev
/null
; then
885 ac_cv_prog_cc_cross
=no
887 ac_cv_prog_cc_cross
=yes
890 echo "configure: failed program was:" >&5
891 cat conftest.
$ac_ext >&5
892 ac_cv_prog_cc_works
=no
896 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
897 if test $ac_cv_prog_cc_works = no
; then
898 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
900 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
902 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
903 cross_compiling
=$ac_cv_prog_cc_cross
905 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
906 echo "configure:907: checking whether we are using GNU C" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 cat > conftest.c
<<EOF
915 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
922 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
924 if test $ac_cv_prog_gcc = yes; then
926 ac_test_CFLAGS
="${CFLAGS+set}"
927 ac_save_CFLAGS
="$CFLAGS"
929 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
930 echo "configure:931: checking whether ${CC-cc} accepts -g" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 echo 'void f(){}' > conftest.c
935 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
944 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
945 if test "$ac_test_CFLAGS" = set; then
946 CFLAGS
="$ac_save_CFLAGS"
947 elif test $ac_cv_prog_cc_g = yes; then
954 test "${CFLAGS+set}" = set || CFLAGS
="-g"
957 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
958 echo "configure:959: checking whether ${MAKE-make} sets \${MAKE}" >&5
959 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
960 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 cat > conftestmake
<<\EOF
965 @
echo 'ac_maketemp="${MAKE}"'
967 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
968 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
969 if test -n "$ac_maketemp"; then
970 eval ac_cv_prog_make_
${ac_make}_set
=yes
972 eval ac_cv_prog_make_
${ac_make}_set
=no
976 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
977 echo "$ac_t""yes" 1>&6
980 echo "$ac_t""no" 1>&6
981 SET_MAKE
="MAKE=${MAKE-make}"
985 # Find some useful tools
986 for ac_prog
in mawk gawk nawk
awk
988 # Extract the first word of "$ac_prog", so it can be a program name with args.
989 set dummy
$ac_prog; ac_word
=$2
990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
991 echo "configure:992: checking for $ac_word" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 if test -n "$AWK"; then
996 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
998 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
999 for ac_dir
in $PATH; do
1000 test -z "$ac_dir" && ac_dir
=.
1001 if test -f $ac_dir/$ac_word; then
1002 ac_cv_prog_AWK
="$ac_prog"
1009 AWK
="$ac_cv_prog_AWK"
1010 if test -n "$AWK"; then
1011 echo "$ac_t""$AWK" 1>&6
1013 echo "$ac_t""no" 1>&6
1016 test -n "$AWK" && break
1019 # Extract the first word of "flex", so it can be a program name with args.
1020 set dummy flex
; ac_word
=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 if test -n "$LEX"; then
1027 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1030 for ac_dir
in $PATH; do
1031 test -z "$ac_dir" && ac_dir
=.
1032 if test -f $ac_dir/$ac_word; then
1033 ac_cv_prog_LEX
="flex"
1038 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1041 LEX
="$ac_cv_prog_LEX"
1042 if test -n "$LEX"; then
1043 echo "$ac_t""$LEX" 1>&6
1045 echo "$ac_t""no" 1>&6
1048 if test -z "$LEXLIB"
1054 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1055 echo "configure:1056: checking for yywrap in -l$ac_lib" >&5
1056 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 ac_save_LIBS
="$LIBS"
1061 LIBS
="-l$ac_lib $LIBS"
1062 cat > conftest.
$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1065 /* Override any gcc2 internal prototype to avoid an error. */
1066 /* We use char because int might match the return type of a gcc2
1067 builtin and then its argument prototype would still apply. */
1074 if { (eval echo configure
:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1076 eval "ac_cv_lib_$ac_lib_var=yes"
1078 echo "configure: failed program was:" >&5
1079 cat conftest.
$ac_ext >&5
1081 eval "ac_cv_lib_$ac_lib_var=no"
1084 LIBS
="$ac_save_LIBS"
1087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1088 echo "$ac_t""yes" 1>&6
1091 echo "$ac_t""no" 1>&6
1096 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether ln works" >&5
1098 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 rm -f conftestdata_t
1102 echo >conftestdata_f
1103 if ln conftestdata_f conftestdata_t
2>/dev
/null
1107 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1109 gcc_cv_prog_LN
="ln -s"
1114 rm -f conftestdata_f conftestdata_t
1117 LN
="$gcc_cv_prog_LN"
1118 if test "$gcc_cv_prog_LN" = "ln"; then
1119 echo "$ac_t""yes" 1>&6
1121 if test "$gcc_cv_prog_LN" = "ln -s"; then
1122 echo "$ac_t""no, using ln -s" 1>&6
1124 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1128 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1129 echo "configure:1130: checking whether ln -s works" >&5
1130 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 rm -f conftestdata_t
1134 echo >conftestdata_f
1135 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1137 gcc_cv_prog_LN_S
="ln -s"
1139 if ln conftestdata_f conftestdata_t
2>/dev
/null
1146 rm -f conftestdata_f conftestdata_t
1149 LN_S
="$gcc_cv_prog_LN_S"
1150 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1151 echo "$ac_t""yes" 1>&6
1153 if test "$gcc_cv_prog_LN_S" = "ln"; then
1154 echo "$ac_t""no, using ln" 1>&6
1156 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1160 # Extract the first word of "ranlib", so it can be a program name with args.
1161 set dummy ranlib
; ac_word
=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 if test -n "$RANLIB"; then
1168 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1170 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1171 for ac_dir
in $PATH; do
1172 test -z "$ac_dir" && ac_dir
=.
1173 if test -f $ac_dir/$ac_word; then
1174 ac_cv_prog_RANLIB
="ranlib"
1179 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1182 RANLIB
="$ac_cv_prog_RANLIB"
1183 if test -n "$RANLIB"; then
1184 echo "$ac_t""$RANLIB" 1>&6
1186 echo "$ac_t""no" 1>&6
1189 for ac_prog
in 'bison -y' byacc
1191 # Extract the first word of "$ac_prog", so it can be a program name with args.
1192 set dummy
$ac_prog; ac_word
=$2
1193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194 echo "configure:1195: checking for $ac_word" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 if test -n "$YACC"; then
1199 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1201 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1202 for ac_dir
in $PATH; do
1203 test -z "$ac_dir" && ac_dir
=.
1204 if test -f $ac_dir/$ac_word; then
1205 ac_cv_prog_YACC
="$ac_prog"
1212 YACC
="$ac_cv_prog_YACC"
1213 if test -n "$YACC"; then
1214 echo "$ac_t""$YACC" 1>&6
1216 echo "$ac_t""no" 1>&6
1219 test -n "$YACC" && break
1221 test -n "$YACC" || YACC
="yacc"
1223 # Find a good install program. We prefer a C program (faster),
1224 # so one script is as good as another. But avoid the broken or
1225 # incompatible versions:
1226 # SysV /etc/install, /usr/sbin/install
1227 # SunOS /usr/etc/install
1228 # IRIX /sbin/install
1230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1232 # ./install, which can be erroneously created by make from ./install.sh.
1233 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1234 echo "configure:1235: checking for a BSD compatible install" >&5
1235 if test -z "$INSTALL"; then
1236 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1240 for ac_dir
in $PATH; do
1241 # Account for people who put trailing slashes in PATH elements.
1243 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1245 # OSF1 and SCO ODT 3.0 have their own names for install.
1246 for ac_prog
in ginstall scoinst
install; do
1247 if test -f $ac_dir/$ac_prog; then
1248 if test $ac_prog = install &&
1249 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1250 # AIX install. It has an incompatible calling convention.
1251 # OSF/1 installbsd also uses dspmsg, but is usable.
1254 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1265 if test "${ac_cv_path_install+set}" = set; then
1266 INSTALL
="$ac_cv_path_install"
1268 # As a last resort, use the slow shell script. We don't cache a
1269 # path for INSTALL within a source directory, because that will
1270 # break other packages using the cache if that directory is
1271 # removed, or if the path is relative.
1272 INSTALL
="$ac_install_sh"
1275 echo "$ac_t""$INSTALL" 1>&6
1277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1278 # It thinks the first close brace ends the variable substitution.
1279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1281 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1284 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1285 echo "configure:1286: checking how to run the C preprocessor" >&5
1286 # On Suns, sometimes $CPP names a directory.
1287 if test -n "$CPP" && test -d "$CPP"; then
1290 if test -z "$CPP"; then
1291 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 # This must be in double quotes, not single quotes, because CPP may get
1295 # substituted into the Makefile and "${CC-cc}" will confuse make.
1297 # On the NeXT, cc -E runs the code through the compiler's parser,
1298 # not just through cpp.
1299 cat > conftest.
$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1305 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err
=`grep -v '^ *+' conftest.out`
1308 if test -z "$ac_err"; then
1312 echo "configure: failed program was:" >&5
1313 cat conftest.
$ac_ext >&5
1315 CPP
="${CC-cc} -E -traditional-cpp"
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1323 { (eval echo configure
:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1324 ac_err
=`grep -v '^ *+' conftest.out`
1325 if test -z "$ac_err"; then
1329 echo "configure: failed program was:" >&5
1330 cat conftest.
$ac_ext >&5
1337 ac_cv_prog_CPP
="$CPP"
1339 CPP
="$ac_cv_prog_CPP"
1341 ac_cv_prog_CPP
="$CPP"
1343 echo "$ac_t""$CPP" 1>&6
1345 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1346 echo "configure:1347: checking for ANSI C header files" >&5
1347 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 cat > conftest.
$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1358 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1359 { (eval echo configure
:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1360 ac_err
=`grep -v '^ *+' conftest.out`
1361 if test -z "$ac_err"; then
1363 ac_cv_header_stdc
=yes
1366 echo "configure: failed program was:" >&5
1367 cat conftest.
$ac_ext >&5
1369 ac_cv_header_stdc
=no
1373 if test $ac_cv_header_stdc = yes; then
1374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1375 cat > conftest.
$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1381 egrep "memchr" >/dev
/null
2>&1; then
1385 ac_cv_header_stdc
=no
1391 if test $ac_cv_header_stdc = yes; then
1392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1399 egrep "free" >/dev
/null
2>&1; then
1403 ac_cv_header_stdc
=no
1409 if test $ac_cv_header_stdc = yes; then
1410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1411 if test "$cross_compiling" = yes; then
1414 cat > conftest.
$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1418 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1419 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1421 int main () { int i; for (i = 0; i < 256; i++)
1422 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1426 if { (eval echo configure
:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1430 echo "configure: failed program was:" >&5
1431 cat conftest.
$ac_ext >&5
1433 ac_cv_header_stdc
=no
1441 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1442 if test $ac_cv_header_stdc = yes; then
1443 cat >> confdefs.h
<<\EOF
1444 #define STDC_HEADERS 1
1449 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1450 echo "configure:1451: checking whether time.h and sys/time.h may both be included" >&5
1451 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 cat > conftest.
$ac_ext <<EOF
1455 #line 1456 "configure"
1456 #include "confdefs.h"
1457 #include <sys/types.h>
1458 #include <sys/time.h>
1464 if { (eval echo configure
:1465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1466 ac_cv_header_time
=yes
1468 echo "configure: failed program was:" >&5
1469 cat conftest.
$ac_ext >&5
1471 ac_cv_header_time
=no
1476 echo "$ac_t""$ac_cv_header_time" 1>&6
1477 if test $ac_cv_header_time = yes; then
1478 cat >> confdefs.h
<<\EOF
1479 #define TIME_WITH_SYS_TIME 1
1484 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h fcntl.h unistd.h sys
/file.h sys
/time.h sys
/resource.h sys
/param.h sys
/times.h varargs.h sys
/varargs.h
1486 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1488 echo "configure:1489: checking for $ac_hdr" >&5
1489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1492 cat > conftest.
$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1497 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1498 { (eval echo configure
:1499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1499 ac_err
=`grep -v '^ *+' conftest.out`
1500 if test -z "$ac_err"; then
1502 eval "ac_cv_header_$ac_safe=yes"
1505 echo "configure: failed program was:" >&5
1506 cat conftest.
$ac_ext >&5
1508 eval "ac_cv_header_$ac_safe=no"
1512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1513 echo "$ac_t""yes" 1>&6
1514 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1515 cat >> confdefs.h
<<EOF
1516 #define $ac_tr_hdr 1
1520 echo "$ac_t""no" 1>&6
1525 # Check for thread headers.
1526 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1527 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1528 echo "configure:1529: checking for thread.h" >&5
1529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.
$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1537 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1538 { (eval echo configure
:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1539 ac_err
=`grep -v '^ *+' conftest.out`
1540 if test -z "$ac_err"; then
1542 eval "ac_cv_header_$ac_safe=yes"
1545 echo "configure: failed program was:" >&5
1546 cat conftest.
$ac_ext >&5
1548 eval "ac_cv_header_$ac_safe=no"
1552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1556 echo "$ac_t""no" 1>&6
1560 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1561 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1562 echo "configure:1563: checking for pthread.h" >&5
1563 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 cat > conftest.
$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1569 #include <pthread.h>
1571 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1572 { (eval echo configure
:1573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1573 ac_err
=`grep -v '^ *+' conftest.out`
1574 if test -z "$ac_err"; then
1576 eval "ac_cv_header_$ac_safe=yes"
1579 echo "configure: failed program was:" >&5
1580 cat conftest.
$ac_ext >&5
1582 eval "ac_cv_header_$ac_safe=no"
1586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1587 echo "$ac_t""yes" 1>&6
1590 echo "$ac_t""no" 1>&6
1595 # See if the system preprocessor understands the ANSI C preprocessor
1596 # stringification operator.
1597 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1598 echo "configure:1599: checking whether cpp understands the stringify operator" >&5
1599 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 cat > conftest.
$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1608 char *test = S(foo);
1611 if { (eval echo configure
:1612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1613 gcc_cv_c_have_stringify
=yes
1615 echo "configure: failed program was:" >&5
1616 cat conftest.
$ac_ext >&5
1618 gcc_cv_c_have_stringify
=no
1623 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1624 if test $gcc_cv_c_have_stringify = yes; then
1625 cat >> confdefs.h
<<\EOF
1626 #define HAVE_CPP_STRINGIFY 1
1631 # Use <inttypes.h> only if it exists,
1632 # doesn't clash with <sys/types.h>, and declares intmax_t.
1633 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1634 echo "configure:1635: checking for inttypes.h" >&5
1635 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 cat > conftest.
$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1641 #include <sys/types.h>
1642 #include <inttypes.h>
1647 if { (eval echo configure
:1648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1649 cat >> confdefs.h
<<EOF
1650 #define HAVE_INTTYPES_H 1
1653 gcc_cv_header_inttypes_h
=yes
1655 echo "configure: failed program was:" >&5
1656 cat conftest.
$ac_ext >&5
1658 gcc_cv_header_inttypes_h
=no
1663 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1665 for ac_func
in strtoul bsearch strerror putenv popen vprintf bcopy bzero bcmp \
1666 index rindex
kill getrlimit setrlimit atoll atoq sysconf
1668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_func" >&5
1670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 cat > conftest.
$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 /* System header to define __stub macros and hopefully few prototypes,
1677 which can conflict with char $ac_func(); below. */
1679 /* Override any gcc2 internal prototype to avoid an error. */
1680 /* We use char because int might match the return type of a gcc2
1681 builtin and then its argument prototype would still apply. */
1686 /* The GNU C library defines this for functions which it implements
1687 to always fail with ENOSYS. Some functions are actually named
1688 something starting with __ and the normal name is an alias. */
1689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1697 if { (eval echo configure
:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1699 eval "ac_cv_func_$ac_func=yes"
1701 echo "configure: failed program was:" >&5
1702 cat conftest.
$ac_ext >&5
1704 eval "ac_cv_func_$ac_func=no"
1709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1710 echo "$ac_t""yes" 1>&6
1711 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1712 cat >> confdefs.h
<<EOF
1713 #define $ac_tr_func 1
1717 echo "$ac_t""no" 1>&6
1722 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether the printf functions support %p" >&5
1724 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1727 if test "$cross_compiling" = yes; then
1728 gcc_cv_func_printf_ptr
=no
1730 cat > conftest.
$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1738 char *p = buf, *q = NULL;
1739 sprintf(buf, "%p", p);
1740 sscanf(buf, "%p", &q);
1744 if { (eval echo configure
:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1746 gcc_cv_func_printf_ptr
=yes
1748 echo "configure: failed program was:" >&5
1749 cat conftest.
$ac_ext >&5
1751 gcc_cv_func_printf_ptr
=no
1756 rm -f core core.
* *.core
1759 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1760 if test $gcc_cv_func_printf_ptr = yes ; then
1761 cat >> confdefs.h
<<\EOF
1762 #define HOST_PTR_PRINTF "%p"
1768 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
1769 index rindex getenv atol sbrk abort
1771 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
1772 echo "configure:1773: checking whether $ac_func must be declared" >&5
1773 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 cat > conftest.
$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1781 #ifdef HAVE_STRING_H
1784 #ifdef HAVE_STRINGS_H
1785 #include <strings.h>
1788 #ifdef HAVE_STDLIB_H
1791 #ifdef HAVE_UNISTD_H
1795 #define rindex strrchr
1798 #define index strchr
1801 char *(*pfn) = (char *(*)) $ac_func
1804 if { (eval echo configure
:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1806 eval "gcc_cv_decl_needed_$ac_func=no"
1808 echo "configure: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1811 eval "gcc_cv_decl_needed_$ac_func=yes"
1816 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
1817 echo "$ac_t""yes" 1>&6
1818 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1819 cat >> confdefs.h
<<EOF
1820 #define $gcc_tr_decl 1
1824 echo "$ac_t""no" 1>&6
1830 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
1831 echo "configure:1832: checking for sys_siglist declaration in signal.h or unistd.h" >&5
1832 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 cat > conftest.
$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1838 #include <sys/types.h>
1840 /* NetBSD declares sys_siglist in unistd.h. */
1841 #ifdef HAVE_UNISTD_H
1845 char *msg = *(sys_siglist + 1);
1848 if { (eval echo configure
:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1850 ac_cv_decl_sys_siglist
=yes
1852 echo "configure: failed program was:" >&5
1853 cat conftest.
$ac_ext >&5
1855 ac_cv_decl_sys_siglist
=no
1860 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
1861 if test $ac_cv_decl_sys_siglist = yes; then
1862 cat >> confdefs.h
<<\EOF
1863 #define SYS_SIGLIST_DECLARED 1
1877 build_install_headers_dir
=install-headers-tar
1882 host_truncate_target
=
1885 # Decode the host machine, then the target machine.
1886 # For the host machine, we save the xm_file variable as host_xm_file;
1887 # then we decode the target machine and forget everything else
1888 # that came from the host machine.
1889 for machine
in $build $host $target; do
1903 # Set this to force installation and use of collect2.
1905 # Set this to override the default target model.
1907 # Set this to control which fixincludes program to use.
1908 fixincludes
=fixincludes
1909 # Set this to control how the header file directory is installed.
1910 install_headers_dir
=install-headers-tar
1911 # Set this to a non-empty list of args to pass to cpp if the target
1912 # wants its .md file passed through cpp.
1914 # Set this if directory names should be truncated to 14 characters.
1916 # Set this if gdb needs a dir command with `dirname $out_file`
1917 gdb_needs_out_file_path
=
1918 # Set this if the build machine requires executables to have a
1921 # Set this to control which thread package will be used.
1924 # Set default cpu_type, tm_file and xm_file so it can be updated in
1925 # each machine entry.
1926 cpu_type
=`echo $machine | sed 's/-.*$//'`
1960 tm_file
=${cpu_type}/${cpu_type}.h
1961 xm_file
=${cpu_type}/xm-
${cpu_type}.h
1963 # Set the default macros to define for GNU/Linux systems.
1966 xm_defines
="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
1971 # Support site-specific machine types.
1973 cpu_type
=`echo $machine | sed -e 's/-.*//'`
1974 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
1975 xm_file
=${cpu_type}/xm-
$rest.h
1976 tm_file
=${cpu_type}/$rest.h
1977 if [ -f $srcdir/config
/${cpu_type}/x-
$rest ] ; \
1978 then xmake_file
=${cpu_type}/x-
$rest; \
1981 if [ -f $srcdir/config
/${cpu_type}/t-
$rest ] ; \
1982 then tmake_file
=${cpu_type}/t-
$rest; \
1988 a29k-
*-bsd* | a29k-
*-sym1*)
1989 tm_file
="${tm_file} a29k/unix.h"
1991 xmake_file
=a29k
/x-unix
1994 a29k-
*-udi | a29k-
*-coff)
1995 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
1996 tmake_file
=a29k
/t-a29kbare
1999 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2000 tmake_file
=a29k
/t-vx29k
2001 extra_parts
="crtbegin.o crtend.o"
2002 thread_file
='vxworks'
2004 a29k-
*-*) # Default a29k environment.
2007 alpha
*-*-linux-gnuecoff*)
2008 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2010 target_cpu_default
="MASK_GAS"
2015 alpha
*-*-linux-gnulibc1*)
2016 tm_file
="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
2018 target_cpu_default
="MASK_GAS"
2019 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2020 extra_parts
="crtbegin.o crtend.o"
2023 if [ x
$enable_threads = xyes
]; then
2027 alpha
*-*-linux-gnu*)
2028 tm_file
="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
2030 target_cpu_default
="MASK_GAS"
2031 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2032 extra_parts
="crtbegin.o crtend.o"
2034 fixincludes
=Makefile.
in
2036 if [ x
$enable_threads = xyes
]; then
2041 if [ x
$stabs = xyes
]
2043 tm_file
="${tm_file} dbx.h"
2045 if [ x
$gas != xyes
]
2047 extra_passes
="mips-tfile mips-tdump"
2052 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2055 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2058 tm_file
="${tm_file} alpha/osf.h"
2059 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2060 # a broken tar, so we use cpio instead.
2061 install_headers_dir
=install-headers-cpio
2065 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2066 target_cpu_default
=MASK_SUPPORT_ARCH
2071 tm_file
="${tm_file} alpha/win-nt.h"
2072 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2073 tmake_file
=t-libc-ok
2074 xmake_file
=winnt
/x-winnt
2075 extra_host_objs
=oldnames.o
2076 extra_gcc_objs
="spawnv.o oldnames.o"
2077 fixincludes
=fixinc.winnt
2078 if [ x
$gnu_ld != xyes
]
2080 extra_programs
=ld.exe
2082 if [ x
$enable_threads = xyes
]; then
2088 xm_file
="${xm_file} alpha/xm-vms.h"
2089 tmake_file
=alpha
/t-vms
2090 fixincludes
=Makefile.
in
2093 extra_parts
="crtinit.o crtfini.o"
2095 arm-
*-coff* | armel-
*-coff*)
2097 tmake_file
=arm
/t-bare
2099 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2100 tm_file
=arm
/riscix1-1.h
2103 arm-
*-riscix*) # Acorn RISC machine
2106 tm_file
=arm
/rix-gas.h
2108 tm_file
=arm
/riscix.h
2110 xmake_file
=arm
/x-riscix
2111 tmake_file
=arm
/t-riscix
2114 arm-semi-aout | armel-semi-aout
)
2116 tmake_file
=arm
/t-semi
2117 fixincludes
=Makefile.
in # There is nothing to fix
2119 arm-semi-aof | armel-semi-aof
)
2120 tm_file
=arm
/semiaof.h
2121 tmake_file
=arm
/t-semiaof
2122 fixincludes
=Makefile.
in # There is nothing to fix
2125 tm_file
=arm
/netbsd.h
2126 xm_file
="xm-siglist.h ${xm_file}"
2127 tmake_file
="t-netbsd arm/t-netbsd"
2128 # On NetBSD, the headers are already okay, except for math.h.
2129 fixincludes
=fixinc.math
2131 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2134 tm_file
=arm
/linux-gas.h
2135 tmake_file
=arm
/t-linux
2136 fixincludes
=Makefile.
in
2141 tmake_file
=arm
/t-bare
2143 c1-convex-
*) # Convex C1
2144 target_cpu_default
=1
2146 fixincludes
=Makefile.
in
2148 c2-convex-
*) # Convex C2
2149 target_cpu_default
=2
2151 fixincludes
=Makefile.
in
2154 target_cpu_default
=4
2156 fixincludes
=Makefile.
in
2159 target_cpu_default
=8
2161 fixincludes
=Makefile.
in
2164 target_cpu_default
=16
2166 fixincludes
=Makefile.
in
2168 clipper-intergraph-clix
*)
2169 tm_file
="${tm_file} svr3.h clipper/clix.h"
2170 xm_file
=clipper
/xm-clix.h
2171 xmake_file
=clipper
/x-clix
2172 extra_headers
=va-clipper.h
2173 extra_parts
="crtbegin.o crtend.o"
2174 install_headers_dir
=install-headers-cpio
2181 # This hasn't been upgraded to GCC 2.
2182 # fx80-alliant-*) # Alliant FX/80
2188 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2189 xm_file
=pa
/xm-papro.h
2193 target_cpu_default
=1
2194 tm_file
="${tm_file} pa/pa-osf.h"
2196 fixincludes
=Makefile.
in
2199 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2200 xm_file
=pa
/xm-papro.h
2204 tm_file
="${tm_file} pa/pa-osf.h"
2206 fixincludes
=Makefile.
in
2209 target_cpu_default
=1
2211 fixincludes
=Makefile.
in
2215 fixincludes
=Makefile.
in
2218 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2219 xm_file
=pa
/xm-pahpux.h
2220 xmake_file
=pa
/x-pa-hpux
2223 tm_file
="${tm_file} pa/gas.h"
2225 install_headers_dir
=install-headers-cpio
2228 hppa1.0
-*-hpux8.0
[0-2]*)
2229 tm_file
="${tm_file} pa/pa-hpux.h"
2230 xm_file
=pa
/xm-pahpux.h
2231 xmake_file
=pa
/x-pa-hpux
2234 tm_file
="${tm_file} pa/pa-gas.h"
2236 tm_file
="pa/pa-oldas.h ${tm_file}"
2238 install_headers_dir
=install-headers-cpio
2241 hppa1.1
-*-hpux8.0
[0-2]*)
2242 target_cpu_default
=1
2243 tm_file
="${tm_file} pa/pa-hpux.h"
2244 xm_file
=pa
/xm-pahpux.h
2245 xmake_file
=pa
/x-pa-hpux
2248 tm_file
="${tm_file} pa/pa-gas.h"
2250 tm_file
="pa/pa-oldas.h ${tm_file}"
2252 install_headers_dir
=install-headers-cpio
2256 target_cpu_default
=1
2257 tm_file
="${tm_file} pa/pa-hpux.h"
2258 xm_file
=pa
/xm-pahpux.h
2259 xmake_file
=pa
/x-pa-hpux
2262 tm_file
="${tm_file} pa/pa-gas.h"
2264 install_headers_dir
=install-headers-cpio
2268 tm_file
="${tm_file} pa/pa-hpux.h"
2269 xm_file
=pa
/xm-pahpux.h
2270 xmake_file
=pa
/x-pa-hpux
2273 tm_file
="${tm_file} pa/pa-gas.h"
2275 install_headers_dir
=install-headers-cpio
2279 target_cpu_default
=1
2280 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2281 xm_file
=pa
/xm-pahpux.h
2282 xmake_file
=pa
/x-pa-hpux
2286 tm_file
="${tm_file} pa/pa-gas.h"
2288 if [ x
$enable_threads = x
]; then
2289 enable_threads
=$have_pthread_h
2291 if [ x
$enable_threads = xyes
]; then
2293 tmake_file
="${tmake_file} pa/t-dce-thr"
2295 install_headers_dir
=install-headers-cpio
2299 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2300 xm_file
=pa
/xm-pahpux.h
2301 xmake_file
=pa
/x-pa-hpux
2304 tm_file
="${tm_file} pa/pa-gas.h"
2306 if [ x
$enable_threads = x
]; then
2307 enable_threads
=$have_pthread_h
2309 if [ x
$enable_threads = xyes
]; then
2311 tmake_file
="${tmake_file} pa/t-dce-thr"
2313 install_headers_dir
=install-headers-cpio
2317 target_cpu_default
=1
2318 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2319 xm_file
=pa
/xm-pahpux.h
2320 xmake_file
=pa
/x-pa-hpux
2323 tm_file
="${tm_file} pa/pa-gas.h"
2325 install_headers_dir
=install-headers-cpio
2329 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2330 xm_file
=pa
/xm-pahpux.h
2331 xmake_file
=pa
/x-pa-hpux
2334 tm_file
="${tm_file} pa/pa-gas.h"
2336 install_headers_dir
=install-headers-cpio
2340 target_cpu_default
=1
2341 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2342 xm_file
=pa
/xm-pahpux.h
2343 xmake_file
=pa
/x-pa-hpux
2346 tm_file
="${tm_file} pa/pa-gas.h"
2348 install_headers_dir
=install-headers-cpio
2352 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2353 xm_file
=pa
/xm-pahpux.h
2354 xmake_file
=pa
/x-pa-hpux
2357 tm_file
="${tm_file} pa/pa-gas.h"
2359 install_headers_dir
=install-headers-cpio
2363 target_cpu_default
=1
2365 fixincludes
=Makefile.
in
2369 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2372 tm_file
=i386
/aix386.h
2373 extra_parts
="crtbegin.o crtend.o"
2374 tmake_file
=i386
/t-crtstuff
2376 tm_file
=i386
/aix386ng.h
2379 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2381 xmake_file
=i386
/x-aix
2383 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2384 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2385 xm_defines
="USG POSIX SMALL_ARG_MAX"
2386 xmake_file
=i386
/x-ncr3000
2387 if [ x
$stabs = xyes
-a x
$gas = xyes
]
2389 tm_file
=i386
/sysv4gdb.h
2391 tm_file
=i386
/sysv4.h
2393 extra_parts
="crtbegin.o crtend.o"
2394 tmake_file
=i386
/t-crtpic
2398 xm_file
=i386
/xm-next.h
2399 tmake_file
=i386
/t-next
2400 xmake_file
=i386
/x-next
2401 extra_objs
=nextstep.o
2402 if [ x
$enable_threads = xyes
]; then
2406 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2410 tm_file
=i386
/seq-gas.h
2412 tm_file
=i386
/sequent.h
2415 i
[34567]86-sequent-ptx1*)
2416 xm_defines
="USG SVR3"
2417 xmake_file
=i386
/x-sysv3
2418 tm_file
=i386
/seq-sysv3.h
2419 tmake_file
=i386
/t-crtstuff
2420 fixincludes
=fixinc.
ptx
2421 extra_parts
="crtbegin.o crtend.o"
2422 install_headers_dir
=install-headers-cpio
2424 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2425 xm_defines
="USG SVR3"
2426 xmake_file
=i386
/x-sysv3
2427 tm_file
=i386
/seq2-sysv3.h
2428 tmake_file
=i386
/t-crtstuff
2429 extra_parts
="crtbegin.o crtend.o"
2430 fixincludes
=fixinc.
ptx
2431 install_headers_dir
=install-headers-cpio
2433 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2434 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2435 xm_defines
="USG POSIX SMALL_ARG_MAX"
2437 tm_file
=i386
/ptx4-i.h
2439 extra_parts
="crtbegin.o crtend.o"
2440 fixincludes
=fixinc.
ptx
2441 install_headers_dir
=install-headers-cpio
2443 i386-sun-sunos
*) # Sun i386 roadrunner
2448 i
[3456]86-wrs-vxworks*)
2449 tm_file
=i386
/vxi386.h
2450 tmake_file
=i386
/t-i386bare
2453 tm_file
=i386
/i386-aout.h
2454 tmake_file
=i386
/t-i386bare
2456 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2457 tm_file
=i386
/bsd386.h
2458 # tmake_file=t-libc-ok
2461 tm_file
=i386
/386bsd.h
2462 # tmake_file=t-libc-ok
2463 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2466 i
[34567]86-*-freebsdelf*)
2467 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2468 # On FreeBSD, the headers are already ok, except for math.h.
2469 fixincludes
=fixinc.math
2470 tmake_file
=i386
/t-freebsd
2475 i
[34567]86-*-freebsd*)
2476 tm_file
=i386
/freebsd.h
2477 # On FreeBSD, the headers are already ok, except for math.h.
2478 fixincludes
=fixinc.math
2479 tmake_file
=i386
/t-freebsd
2481 i
[34567]86-*-netbsd*)
2482 tm_file
=i386
/netbsd.h
2483 # On NetBSD, the headers are already okay, except for math.h.
2484 fixincludes
=fixinc.math
2488 tm_file
=i386
/i386-coff.h
2489 tmake_file
=i386
/t-i386bare
2491 i
[34567]86-*-isc*) # 80386 running ISC system
2492 xm_file
="${xm_file} i386/xm-isc.h"
2493 xm_defines
="USG SVR3"
2495 i
[34567]86-*-isc[34]*)
2496 xmake_file
=i386
/x-isc3
2499 xmake_file
=i386
/x-isc
2502 if [ x
$gas = xyes
-a x
$stabs = xyes
]
2504 tm_file
=i386
/iscdbx.h
2505 tmake_file
=i386
/t-svr3dbx
2506 extra_parts
="svr3.ifile svr3z.ifile"
2508 tm_file
=i386
/isccoff.h
2509 tmake_file
=i386
/t-crtstuff
2510 extra_parts
="crtbegin.o crtend.o"
2512 install_headers_dir
=install-headers-cpio
2514 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2515 # with a.out format using
2517 xmake_file
=x-linux-aout
2518 tmake_file
="t-linux-aout i386/t-crtstuff"
2519 tm_file
=i386
/linux-oldld.h
2520 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2523 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2525 xmake_file
=x-linux-aout
2526 tmake_file
="t-linux-aout i386/t-crtstuff"
2527 tm_file
=i386
/linux-aout.h
2528 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2531 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
2532 # with ELF format using the
2533 # GNU/Linux C library 5
2535 tm_file
=i386
/linux.h
2536 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2537 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2538 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2540 if [ x
$enable_threads = xyes
]; then
2541 thread_file
='single'
2544 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
2545 # with ELF format using glibc 2
2546 # aka GNU/Linux C library 6
2548 tm_file
=i386
/linux.h
2549 tmake_file
="t-linux i386/t-crtstuff"
2550 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2551 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2553 if [ x
$enable_threads = xyes
]; then
2559 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
2560 xm_file
=i386
/xm-go32.h
2562 tmake_file
=i386
/t-go32
2564 i
[34567]86-pc-msdosdjgpp*)
2565 xm_file
=i386
/xm-go32.h
2567 tmake_file
=i386
/t-go32
2571 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
2573 tmake_file
=t-libc-ok
2574 fixincludes
=Makefile.
in
2578 i
[34567]86-*-lynxos*)
2583 tm_file
=i386
/lynx-ng.h
2585 xm_file
=i386
/xm-lynx.h
2586 tmake_file
=i386
/t-i386bare
2591 # tmake_file=t-libc-ok
2594 i
[34567]86-*-osfrose*) # 386 using OSF/rose
2597 tm_file
=i386
/osfelf.h
2600 tm_file
=i386
/osfrose.h
2603 xm_file
="i386/xm-osf.h ${xm_file}"
2604 xmake_file
=i386
/x-osfrose
2605 tmake_file
=i386
/t-osf
2606 extra_objs
=halfpic.o
2608 i
[34567]86-go32-rtems*)
2610 xm_file
=i386
/xm-go32.h
2611 tm_file
=i386
/go32-rtems.h
2612 tmake_file
="i386/t-go32 t-rtems"
2614 i
[34567]86-*-rtems*)
2616 tm_file
=i386
/rtems.h
2617 tmake_file
="i386/t-i386bare t-rtems"
2619 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
2620 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
2621 xm_defines
="USG SVR3"
2622 xmake_file
=i386
/x-sco5
2623 fixincludes
=fixinc.sco
2624 install_headers_dir
=install-headers-cpio
2626 tmake_file
=i386
/t-sco5
2627 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2629 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
2630 xm_file
="${xm_file} i386/xm-sco.h"
2631 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
2632 xmake_file
=i386
/x-sco4
2633 fixincludes
=fixinc.sco
2634 install_headers_dir
=install-headers-cpio
2635 if [ x
$stabs = xyes
]
2637 tm_file
=i386
/sco4dbx.h
2638 tmake_file
=i386
/t-svr3dbx
2639 extra_parts
="svr3.ifile svr3z.rfile"
2642 tmake_file
=i386
/t-crtstuff
2643 extra_parts
="crtbegin.o crtend.o"
2647 i
[34567]86-*-sco*) # 80386 running SCO system
2648 xm_file
=i386
/xm-sco.h
2649 xmake_file
=i386
/x-sco
2650 install_headers_dir
=install-headers-cpio
2651 if [ x
$stabs = xyes
]
2653 tm_file
=i386
/scodbx.h
2654 tmake_file
=i386
/t-svr3dbx
2655 extra_parts
="svr3.ifile svr3z.rfile"
2658 extra_parts
="crtbegin.o crtend.o"
2659 tmake_file
=i386
/t-crtstuff
2663 i
[34567]86-*-solaris2*)
2664 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2665 xm_defines
="USG POSIX SMALL_ARG_MAX"
2666 if [ x
$stabs = xyes
]
2668 tm_file
=i386
/sol2dbg.h
2672 tmake_file
=i386
/t-sol2
2673 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2677 fixincludes
=fixinc.svr4
;;
2679 fixincludes
=fixinc.math
;;
2681 if [ x
$enable_threads = xyes
]; then
2682 thread_file
='solaris'
2685 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
2686 xm_file
=i386
/xm-sysv4.h
2687 tm_file
=i386
/sysv4.h
2688 if [ x
$stabs = xyes
]
2690 tm_file
="${tm_file} dbx.h"
2692 tmake_file
=i386
/t-crtpic
2694 extra_parts
="crtbegin.o crtend.o"
2695 fixincludes
=Makefile.
in # The headers are just fine, thank you.
2697 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
2698 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2699 xm_defines
="USG POSIX SMALL_ARG_MAX"
2700 tm_file
=i386
/sysv4.h
2701 if [ x
$stabs = xyes
]
2703 tm_file
="${tm_file} dbx.h"
2705 tmake_file
=i386
/t-crtpic
2707 extra_parts
="crtbegin.o crtend.o"
2709 i
[34567]86-*-sysv*) # Intel 80386's running system V
2710 xm_defines
="USG SVR3"
2711 xmake_file
=i386
/x-sysv3
2714 if [ x
$stabs = xyes
]
2716 tm_file
=i386
/svr3dbx.h
2717 tmake_file
=i386
/t-svr3dbx
2718 extra_parts
="svr3.ifile svr3z.rfile"
2720 tm_file
=i386
/svr3gas.h
2721 extra_parts
="crtbegin.o crtend.o"
2722 tmake_file
=i386
/t-crtstuff
2725 tm_file
=i386
/sysv3.h
2726 extra_parts
="crtbegin.o crtend.o"
2727 tmake_file
=i386
/t-crtstuff
2730 i386-
*-vsta) # Intel 80386's running VSTa kernel
2731 xm_file
=i386
/xm-vsta.h
2733 tmake_file
=i386
/t-vsta
2734 xmake_file
=i386
/x-vsta
2736 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
2737 xm_file
="${xm_file} i386/xm-cygwin32.h"
2738 tmake_file
=i386
/t-cygwin32
2739 tm_file
=i386
/cygwin32.h
2740 xmake_file
=i386
/x-cygwin32
2742 fixincludes
=Makefile.
in
2743 if [ x
$enable_threads = xyes
]; then
2748 i
[34567]86-*-mingw32*)
2749 tm_file
=i386
/mingw32.h
2750 xm_file
="${xm_file} i386/xm-mingw32.h"
2751 tmake_file
=i386
/t-cygwin32
2753 xmake_file
=i386
/x-cygwin32
2754 fixincludes
=Makefile.
in
2755 if [ x
$enable_threads = xyes
]; then
2762 *minwg32crt
* |
*mingw32
*)
2763 tm_file
="${tm_file} i386/crtdll.h"
2767 i
[34567]86-*-winnt3*)
2768 tm_file
=i386
/win-nt.h
2769 out_file
=i386
/i386.c
2770 xm_file
="xm-winnt.h ${xm_file}"
2771 xmake_file
=winnt
/x-winnt
2772 tmake_file
=i386
/t-winnt
2773 extra_host_objs
="winnt.o oldnames.o"
2774 extra_gcc_objs
="spawnv.o oldnames.o"
2775 fixincludes
=fixinc.winnt
2776 if [ x
$gnu_ld != xyes
]
2778 extra_programs
=ld.exe
2780 if [ x
$enable_threads = xyes
]; then
2784 i
[34567]86-dg-dgux*)
2785 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
2786 xm_defines
="USG POSIX"
2787 out_file
=i386
/dgux.c
2789 tmake_file
=i386
/t-dgux
2790 xmake_file
=i386
/x-dgux
2791 fixincludes
=fixinc.dgux
2792 install_headers_dir
=install-headers-cpio
2794 i860-alliant-
*) # Alliant FX/2800
2795 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
2796 xm_file
="${xm_file}"
2797 xmake_file
=i860
/x-fx2800
2798 tmake_file
=i860
/t-fx2800
2799 extra_parts
="crtbegin.o crtend.o"
2802 tm_file
="${tm_file} i860/bsd.h"
2805 tm_file
="${tm_file} i860/bsd-gas.h"
2810 tm_file
="${tm_file} i860/mach.h"
2811 tmake_file
=t-libc-ok
2813 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
2814 tm_file
="${tm_file} svr3.h i860/paragon.h"
2815 xm_defines
="USG SVR3"
2819 tm_file
="${tm_file} svr3.h i860/sysv3.h"
2820 xm_defines
="USG SVR3"
2821 xmake_file
=i860
/x-sysv3
2822 extra_parts
="crtbegin.o crtend.o"
2825 tm_file
="${tm_file} svr4.h i860/sysv4.h"
2826 xm_defines
="USG SVR3"
2827 xmake_file
=i860
/x-sysv4
2829 extra_parts
="crtbegin.o crtend.o"
2831 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
2832 tm_file
="${tm_file} i960/vx960.h"
2833 tmake_file
=i960
/t-vxworks960
2835 thread_file
='vxworks'
2837 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
2838 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2839 tmake_file
=i960
/t-vxworks960
2841 thread_file
='vxworks'
2844 tm_file
="${tm_file} i960/vx960.h"
2845 tmake_file
=i960
/t-vxworks960
2847 thread_file
='vxworks'
2850 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2851 tmake_file
=i960
/t-960bare
2855 tmake_file
="i960/t-960bare t-rtems"
2856 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
2859 i960-
*-*) # Default i960 environment.
2863 extra_parts
="crtinit.o crtfini.o"
2865 m68000-convergent-sysv
*)
2867 xm_file
="m68k/xm-3b1.h ${xm_file}"
2870 extra_headers
=math-68881.h
2872 m68000-hp-bsd
*) # HP 9000/200 running BSD
2873 tm_file
=m68k
/hp2bsd.h
2874 xmake_file
=m68k
/x-hp2bsd
2876 extra_headers
=math-68881.h
2878 m68000-hp-hpux
*) # HP 9000 series 300
2879 xm_file
="xm_alloca.h ${xm_file}"
2880 xm_defines
="USG NO_SYS_SIGLIST"
2883 xmake_file
=m68k
/x-hp320g
2884 tm_file
=m68k
/hp310g.h
2886 xmake_file
=m68k
/x-hp320
2887 tm_file
=m68k
/hp310.h
2889 install_headers_dir
=install-headers-cpio
2891 extra_headers
=math-68881.h
2896 extra_headers
=math-68881.h
2899 tm_file
=m68k
/sun2o4.h
2901 extra_headers
=math-68881.h
2904 xm_file
="m68k/xm-3b1.h ${xm_file}"
2913 extra_headers
=math-68881.h
2915 m68k-apple-aux
*) # Apple Macintosh running A/UX
2916 xm_defines
="USG AUX"
2917 tmake_file
=m68k
/t-aux
2918 install_headers_dir
=install-headers-cpio
2919 extra_headers
=math-68881.h
2920 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2922 if [ "$gnu_ld" = yes ]
2924 tm_file
="${tm_file} m68k/auxgld.h"
2926 tm_file
="${tm_file} m68k/auxld.h"
2930 tm_file
="${tm_file} m68k/auxgas.h"
2932 tm_file
="${tm_file} m68k/auxas.h"
2934 tm_file
="${tm_file} m68k/a-ux.h"
2937 tm_file
=m68k
/apollo68.h
2938 xmake_file
=m68k
/x-apollo68
2940 extra_headers
=math-68881.h
2942 m68k-altos-sysv
*) # Altos 3068
2945 tm_file
=m68k
/altos3068.h
2948 echo "The Altos is supported only with the GNU assembler" 1>&2
2951 extra_headers
=math-68881.h
2953 m68k-bull-sysv
*) # Bull DPX/2
2956 if [ x
$stabs = xyes
]
2958 tm_file
=m68k
/dpx2cdbx.h
2960 tm_file
=m68k
/dpx2g.h
2965 xm_file
="xm-alloca.h ${xm_file}"
2967 xmake_file
=m68k
/x-dpx2
2969 extra_headers
=math-68881.h
2971 m68k-atari-sysv4
*) # Atari variant of V.4.
2972 tm_file
=m68k
/atari.h
2973 xm_file
="xm-alloca.h ${xm_file}"
2974 xm_defines
="USG FULL_PROTOTYPES"
2976 extra_parts
="crtbegin.o crtend.o"
2977 extra_headers
=math-68881.h
2979 m68k-motorola-sysv
*)
2980 tm_file
=m68k
/mot3300.h
2981 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2982 xm_defines
=NO_SYS_SIGLIST
2985 xmake_file
=m68k
/x-mot3300-gas
2986 if [ x
$gnu_ld = xyes
]
2988 tmake_file
=m68k
/t-mot3300-gald
2990 tmake_file
=m68k
/t-mot3300-gas
2994 xmake_file
=m68k
/x-mot3300
2995 if [ x
$gnu_ld = xyes
]
2997 tmake_file
=m68k
/t-mot3300-gld
2999 tmake_file
=m68k
/t-mot3300
3003 gdb_needs_out_file_path
=yes
3004 extra_parts
="crt0.o mcrt0.o"
3005 extra_headers
=math-68881.h
3007 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3008 tm_file
=m68k
/tower-as.h
3009 xm_defines
="USG SVR3"
3010 xmake_file
=m68k
/x-tower
3011 extra_parts
="crtbegin.o crtend.o"
3012 extra_headers
=math-68881.h
3015 tm_file
=m68k
/plexus.h
3016 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3019 extra_headers
=math-68881.h
3023 xm_file
="xm-alloca.h ${xm_file}"
3025 extra_headers
=math-68881.h
3028 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3029 xm_defines
="USG unos"
3030 xmake_file
=m68k
/x-crds
3033 extra_headers
=math-68881.h
3035 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3037 xm_file
="xm-alloca.h ${xm_file}"
3038 xm_defines
="USG FULL_PROTOTYPES"
3039 xmake_file
=m68k
/x-amix
3041 extra_parts
="crtbegin.o crtend.o"
3042 extra_headers
=math-68881.h
3045 tm_file
=m68k
/ccur-GAS.h
3046 xmake_file
=m68k
/x-ccur
3047 extra_headers
=math-68881.h
3050 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3051 tm_file
=m68k
/hp3bsd44.h
3052 xmake_file
=m68k
/x-hp3bsd44
3054 extra_headers
=math-68881.h
3056 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3057 tm_file
=m68k
/hp3bsd.h
3059 extra_headers
=math-68881.h
3062 if [ x
$with_fp = xno
]
3064 tm_file
=m68k
/isi-nfp.h
3069 extra_headers
=math-68881.h
3071 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3072 xm_file
="xm_alloca.h ${xm_file}"
3073 xm_defines
="USG NO_SYS_SIGLIST"
3076 xmake_file
=m68k
/x-hp320g
3077 tm_file
=m68k
/hp320g.h
3079 xmake_file
=m68k
/x-hp320
3080 tm_file
=m68k
/hpux7.h
3082 install_headers_dir
=install-headers-cpio
3084 extra_headers
=math-68881.h
3086 m68k-hp-hpux
*) # HP 9000 series 300
3087 xm_file
="xm_alloca.h ${xm_file}"
3088 xm_defines
="USG NO_SYS_SIGLIST"
3091 xmake_file
=m68k
/x-hp320g
3092 tm_file
=m68k
/hp320g.h
3094 xmake_file
=m68k
/x-hp320
3095 tm_file
=m68k
/hp320.h
3097 install_headers_dir
=install-headers-cpio
3099 extra_headers
=math-68881.h
3102 tm_file
=m68k
/sun3mach.h
3104 extra_headers
=math-68881.h
3109 tm_file
=m68k
/news3gas.h
3111 tm_file
=m68k
/news3.h
3114 extra_headers
=math-68881.h
3116 m68k-sony-bsd
* | m68k-sony-newsos
*)
3119 tm_file
=m68k
/newsgas.h
3124 extra_headers
=math-68881.h
3126 m68k-next-nextstep2
*)
3127 tm_file
=m68k
/next21.h
3128 xm_file
="m68k/xm-next.h ${xm_file}"
3129 tmake_file
=m68k
/t-next
3130 xmake_file
=m68k
/x-next
3131 extra_objs
=nextstep.o
3132 extra_headers
=math-68881.h
3135 m68k-next-nextstep3
*)
3137 xm_file
="m68k/xm-next.h ${xm_file}"
3138 tmake_file
=m68k
/t-next
3139 xmake_file
=m68k
/x-next
3140 extra_objs
=nextstep.o
3141 extra_headers
=math-68881.h
3142 if [ x
$enable_threads = xyes
]; then
3147 if [ x
$with_fp = xno
]
3149 tm_file
=m68k
/sun3n3.h
3151 tm_file
=m68k
/sun3o3.h
3154 extra_headers
=math-68881.h
3156 m68k-sun-sunos
*) # For SunOS 4 (the default).
3157 if [ x
$with_fp = xno
]
3159 tm_file
=m68k
/sun3n.h
3164 extra_headers
=math-68881.h
3167 tm_file
=m68k
/vxm68k.h
3168 tmake_file
=m68k
/t-vxworks68
3169 extra_headers
=math-68881.h
3170 thread_file
='vxworks'
3173 tmake_file
=m68k
/t-m68kbare
3174 tm_file
="m68k/m68k-aout.h libgloss.h"
3175 extra_headers
=math-68881.h
3178 tmake_file
=m68k
/t-m68kbare
3179 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3180 extra_headers
=math-68881.h
3187 tm_file
=m68k
/lynx-ng.h
3189 xm_file
=m68k
/xm-lynx.h
3191 tmake_file
=m68k
/t-lynx
3192 extra_headers
=math-68881.h
3195 tm_file
=m68k
/netbsd.h
3196 # On NetBSD, the headers are already okay, except for math.h.
3197 fixincludes
=fixinc.math
3200 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3201 xm_file
="xm-alloca.h ${xm_file}"
3203 xmake_file
=m68k
/x-m68kv
3204 extra_parts
="crtbegin.o crtend.o"
3205 extra_headers
=math-68881.h
3207 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3208 tm_file
=m68k
/m68kv4.h
3209 xm_file
="xm-alloca.h ${xm_file}"
3212 extra_parts
="crtbegin.o crtend.o"
3213 extra_headers
=math-68881.h
3215 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3218 tm_file
=m68k
/linux-aout.h
3219 tmake_file
="t-linux-aout m68k/t-linux-aout"
3220 fixincludes
=Makefile.
in # The headers are ok already.
3221 extra_headers
=math-68881.h
3224 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3225 # with ELF format using the
3226 # GNU/Linux C library 5
3228 tm_file
=m68k
/linux.h
3229 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3230 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3231 fixincludes
=Makefile.
in # The headers are ok already.
3232 extra_headers
=math-68881.h
3235 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3236 # with ELF format using glibc 2
3237 # aka the GNU/Linux C library 6.
3239 tm_file
=m68k
/linux.h
3240 tmake_file
="t-linux m68k/t-linux"
3241 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3242 fixincludes
=Makefile.
in # The headers are ok already.
3243 extra_headers
=math-68881.h
3245 if [ x
$enable_threads = xyes
]; then
3250 tmake_file
=m68k
/t-m68kbare
3251 tm_file
=m68k
/m68k-psos.h
3252 extra_headers
=math-68881.h
3255 tmake_file
="m68k/t-m68kbare t-rtems"
3256 tm_file
=m68k
/rtems.h
3257 extra_headers
=math-68881.h
3263 tm_file
=m88k
/dguxbcs.h
3264 tmake_file
=m88k
/t-dguxbcs
3268 tmake_file
=m88k
/t-dgux
3271 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3272 xmake_file
=m88k
/x-dgux
3275 tmake_file
=m88k
/t-dgux-gas
3277 fixincludes
=fixinc.dgux
3279 m88k-dolphin-sysv3
*)
3280 tm_file
=m88k
/dolph.h
3281 extra_parts
="crtbegin.o crtend.o"
3282 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3283 xmake_file
=m88k
/x-dolph
3286 tmake_file
=m88k
/t-m88k-gas
3289 m88k-tektronix-sysv3
)
3290 tm_file
=m88k
/tekXD88.h
3291 extra_parts
="crtbegin.o crtend.o"
3292 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3293 xmake_file
=m88k
/x-tekXD88
3296 tmake_file
=m88k
/t-m88k-gas
3300 tm_file
=m88k
/m88k-aout.h
3303 tm_file
=m88k
/m88k-coff.h
3304 tmake_file
=m88k
/t-bug
3308 extra_parts
="crtbegin.o crtend.o"
3311 tmake_file
=m88k
/t-luna-gas
3313 tmake_file
=m88k
/t-luna
3317 tm_file
=m88k
/sysv3.h
3318 extra_parts
="crtbegin.o crtend.o"
3319 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3320 xmake_file
=m88k
/x-sysv3
3323 tmake_file
=m88k
/t-m88k-gas
3327 tm_file
=m88k
/sysv4.h
3328 extra_parts
="crtbegin.o crtend.o"
3329 xmake_file
=m88k
/x-sysv4
3330 tmake_file
=m88k
/t-sysv4
3332 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3333 tm_file
=mips
/iris6.h
3334 xm_file
=mips
/xm-iris6.h
3335 fixincludes
=fixinc.irix
3336 xmake_file
=mips
/x-iris6
3337 tmake_file
=mips
/t-iris6
3338 if [ x
$enable_threads = xyes
]; then
3343 tm_file
="mips/elf.h libgloss.h"
3344 tmake_file
=mips
/t-ecoff
3347 extra_parts
="crtbegin.o crtend.o"
3348 # thread_file='vxworks'
3350 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3351 tm_file
="mips/iris6.h mips/cross64.h"
3352 xm_defines
="USG HAVE_INTTYPES_H"
3353 fixincludes
=Makefile.
in
3354 xmake_file
=mips
/x-iris
3355 tmake_file
=mips
/t-cross64
3356 # See comment in mips/iris[56].h files.
3358 if [ x
$enable_threads = xyes
]; then
3365 if [ x
$stabs = xyes
]
3367 tm_file
=mips
/iris5gdb.h
3369 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3372 tm_file
=mips
/sni-svr4.h
3375 xmake_file
=mips
/x-sni-svr4
3376 tmake_file
=mips
/t-mips-gas
3377 if [ x
$gnu_ld != xyes
]
3382 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3385 tm_file
="mips/iris5.h mips/iris5gas.h"
3386 if [ x
$stabs = xyes
]
3388 tm_file
="${tm_file} dbx.h"
3391 tm_file
=mips
/iris5.h
3393 xm_defines
="USG HAVE_INTTYPES_H"
3394 fixincludes
=fixinc.irix
3395 xmake_file
=mips
/x-iris
3396 # mips-tfile doesn't work yet
3397 tmake_file
=mips
/t-mips-gas
3398 # See comment in mips/iris5.h file.
3400 if [ x
$enable_threads = xyes
]; then
3404 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3405 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3406 if [ x
$stabs = xyes
]; then
3407 tm_file
="${tm_file} dbx.h"
3410 xmake_file
=mips
/x-iris
3413 tmake_file
=mips
/t-mips-gas
3415 extra_passes
="mips-tfile mips-tdump"
3417 if [ x
$gnu_ld != xyes
]
3421 if [ x
$enable_threads = xyes
]; then
3425 mips-sgi-irix4
*) # Mostly like a MIPS.
3426 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3427 if [ x
$stabs = xyes
]; then
3428 tm_file
="${tm_file} dbx.h"
3431 xmake_file
=mips
/x-iris
3434 tmake_file
=mips
/t-mips-gas
3436 extra_passes
="mips-tfile mips-tdump"
3438 if [ x
$gnu_ld != xyes
]
3442 if [ x
$enable_threads = xyes
]; then
3446 mips-sgi-
*) # Mostly like a MIPS.
3447 tm_file
="mips/iris3.h ${tm_file}"
3448 if [ x
$stabs = xyes
]; then
3449 tm_file
="${tm_file} dbx.h"
3452 xmake_file
=mips
/x-iris3
3455 tmake_file
=mips
/t-mips-gas
3457 extra_passes
="mips-tfile mips-tdump"
3459 if [ x
$gnu_ld != xyes
]
3464 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
3465 tm_file
="mips/osfrose.h ${tm_file}"
3466 xmake_file
=mips
/x-osfrose
3467 tmake_file
=mips
/t-osfrose
3468 extra_objs
=halfpic.o
3471 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
3472 tm_file
=mips
/dec-osf1.h
3473 if [ x
$stabs = xyes
]; then
3474 tm_file
="${tm_file} dbx.h"
3476 xmake_file
=mips
/x-dec-osf1
3479 tmake_file
=mips
/t-mips-gas
3481 tmake_file
=mips
/t-ultrix
3482 extra_passes
="mips-tfile mips-tdump"
3484 if [ x
$gnu_ld != xyes
]
3489 mips-dec-bsd
*) # Decstation running 4.4 BSD
3490 tm_file
=mips
/dec-bsd.h
3494 tmake_file
=mips
/t-mips-gas
3496 tmake_file
=mips
/t-ultrix
3497 extra_passes
="mips-tfile mips-tdump"
3499 if [ x
$gnu_ld != xyes
]
3504 mips-dec-netbsd
*) # Decstation running NetBSD
3505 tm_file
=mips
/netbsd.h
3506 # On NetBSD, the headers are already okay, except for math.h.
3507 fixincludes
=fixinc.math
3510 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
3511 tm_file
="mips/news4.h ${tm_file}"
3512 if [ x
$stabs = xyes
]; then
3513 tm_file
="${tm_file} dbx.h"
3517 tmake_file
=mips
/t-mips-gas
3519 extra_passes
="mips-tfile mips-tdump"
3521 if [ x
$gnu_ld != xyes
]
3525 xmake_file
=mips
/x-sony
3527 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
3528 # That is based on svr4.
3529 # t-svr4 is not right because this system doesn't use ELF.
3530 tm_file
="mips/news5.h ${tm_file}"
3531 if [ x
$stabs = xyes
]; then
3532 tm_file
="${tm_file} dbx.h"
3534 xm_file
="xm-siglist.h ${xm_file}"
3538 tmake_file
=mips
/t-mips-gas
3540 extra_passes
="mips-tfile mips-tdump"
3542 if [ x
$gnu_ld != xyes
]
3547 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
3548 tm_file
="mips/svr4-5.h mips/svr4-t.h"
3549 if [ x
$stabs = xyes
]; then
3550 tm_file
="${tm_file} dbx.h"
3552 xm_file
="xm-siglist.h ${xm_file}"
3554 xmake_file
=mips
/x-sysv
3557 tmake_file
=mips
/t-mips-gas
3558 extra_parts
="crtbegin.o crtend.o"
3560 tmake_file
=mips
/t-mips
3561 extra_passes
="mips-tfile mips-tdump"
3563 if [ x
$gnu_ld != xyes
]
3568 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
3569 tm_file
="mips/ultrix.h ${tm_file}"
3570 if [ x
$stabs = xyes
]; then
3571 tm_file
="${tm_file} dbx.h"
3573 xmake_file
=mips
/x-ultrix
3576 tmake_file
=mips
/t-mips-gas
3578 tmake_file
=mips
/t-ultrix
3579 extra_passes
="mips-tfile mips-tdump"
3581 if [ x
$gnu_ld != xyes
]
3586 mips-
*-riscos[56789]bsd
*)
3587 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
3588 if [ x
$stabs = xyes
]; then
3589 tm_file
="${tm_file} dbx.h"
3593 tmake_file
=mips
/t-bsd-gas
3595 tmake_file
=mips
/t-bsd
3596 extra_passes
="mips-tfile mips-tdump"
3598 if [ x
$gnu_ld != xyes
]
3603 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
3604 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
3605 if [ x
$stabs = xyes
]; then
3606 tm_file
="${tm_file} dbx.h"
3610 tmake_file
=mips
/t-bsd-gas
3612 tmake_file
=mips
/t-bsd
3613 extra_passes
="mips-tfile mips-tdump"
3615 if [ x
$gnu_ld != xyes
]
3620 mips-
*-riscos[56789]sysv4
*)
3621 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
3622 if [ x
$stabs = xyes
]; then
3623 tm_file
="${tm_file} dbx.h"
3625 xm_file
="xm-siglist.h ${xm_file}"
3626 xmake_file
=mips
/x-sysv
3629 tmake_file
=mips
/t-svr4-gas
3631 tmake_file
=mips
/t-svr4
3632 extra_passes
="mips-tfile mips-tdump"
3634 if [ x
$gnu_ld != xyes
]
3639 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
3640 tm_file
="mips/svr4-4.h ${tm_file}"
3641 if [ x
$stabs = xyes
]; then
3642 tm_file
="${tm_file} dbx.h"
3645 xmake_file
=mips
/x-sysv
3648 tmake_file
=mips
/t-svr4-gas
3650 tmake_file
=mips
/t-svr4
3651 extra_passes
="mips-tfile mips-tdump"
3653 if [ x
$gnu_ld != xyes
]
3658 mips-
*-riscos[56789]sysv
*)
3659 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
3660 if [ x
$stabs = xyes
]; then
3661 tm_file
="${tm_file} dbx.h"
3664 xmake_file
=mips
/x-sysv
3667 tmake_file
=mips
/t-svr3-gas
3669 tmake_file
=mips
/t-svr3
3670 extra_passes
="mips-tfile mips-tdump"
3672 if [ x
$gnu_ld != xyes
]
3677 mips-
*-sysv* | mips-
*-riscos*sysv
*)
3678 tm_file
="mips/svr3-4.h ${tm_file}"
3679 if [ x
$stabs = xyes
]; then
3680 tm_file
="${tm_file} dbx.h"
3683 xmake_file
=mips
/x-sysv
3686 tmake_file
=mips
/t-svr3-gas
3688 tmake_file
=mips
/t-svr3
3689 extra_passes
="mips-tfile mips-tdump"
3691 if [ x
$gnu_ld != xyes
]
3696 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3697 tm_file
=mips
/mips-5.h
3698 if [ x
$stabs = xyes
]; then
3699 tm_file
="${tm_file} dbx.h"
3703 tmake_file
=mips
/t-mips-gas
3705 extra_passes
="mips-tfile mips-tdump"
3707 if [ x
$gnu_ld != xyes
]
3715 tm_file
=mips
/ecoffl.h
3716 if [ x
$stabs = xyes
]; then
3717 tm_file
="${tm_file} dbx.h"
3719 tmake_file
=mips
/t-ecoff
3722 tm_file
="${tm_file} gofast.h mips/ecoff.h"
3723 if [ x
$stabs = xyes
]; then
3724 tm_file
="${tm_file} dbx.h"
3726 tmake_file
=mips
/t-ecoff
3729 tm_file
="mips/elfl.h libgloss.h"
3730 tmake_file
=mips
/t-ecoff
3733 tm_file
="mips/elf.h libgloss.h"
3734 tmake_file
=mips
/t-ecoff
3737 tm_file
="mips/elfl64.h libgloss.h"
3738 tmake_file
=mips
/t-ecoff
3740 mips64orionel-
*-elf*)
3741 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
3742 tmake_file
=mips
/t-ecoff
3745 tm_file
="mips/elf64.h libgloss.h"
3746 tmake_file
=mips
/t-ecoff
3749 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
3750 tmake_file
=mips
/t-ecoff
3752 mips64orion-
*-rtems*)
3753 tm_file
="mips/elforion.h mips/elfl64.h mips/rtems64.h"
3754 tmake_file
="mips/t-ecoff t-rtems"
3757 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
3758 tmake_file
=mips
/t-r3900
3761 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
3762 tmake_file
=mips
/t-r3900
3764 mips-
*-*) # Default MIPS RISC-OS 4.0.
3765 if [ x
$stabs = xyes
]; then
3766 tm_file
="${tm_file} dbx.h"
3770 tmake_file
=mips
/t-mips-gas
3772 extra_passes
="mips-tfile mips-tdump"
3774 if [ x
$gnu_ld != xyes
]
3781 tm_file
="mn10200/mn10200.h"
3782 if [ x
$stabs = xyes
]
3784 tm_file
="${tm_file} dbx.h"
3790 tm_file
="mn10300/mn10300.h"
3791 if [ x
$stabs = xyes
]
3793 tm_file
="${tm_file} dbx.h"
3798 tm_file
=ns32k
/encore.h
3802 tm_file
=ns32k
/sequent.h
3806 tm_file
=ns32k
/tek6100.h
3810 tm_file
=ns32k
/tek6200.h
3813 # This has not been updated to GCC 2.
3816 # xmake_file=ns32k/x-genix
3817 # tm_file=ns32k/genix.h
3821 tm_file
=ns32k
/merlin.h
3825 tm_file
=ns32k
/pc532-mach.h
3829 tm_file
=ns32k
/pc532-min.h
3830 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
3834 ns32k-pc532-netbsd
*)
3835 tm_file
=ns32k
/netbsd.h
3836 # On NetBSD, the headers are already okay, except for math.h.
3837 fixincludes
=fixinc.math
3841 tm_file
="${tm_file} pdp11/2bsd.h"
3847 xmake_file
=pyr
/x-pyr
3854 xmake_file
=romp
/x-mach
3859 tm_file
=rs6000
/beos.h
3860 xm_file
=rs6000
/xm-beos.h
3861 tmake_file
=rs6000
/t-beos
3862 xmake_file
=rs6000
/x-beos
3864 powerpc-
*-sysv* | powerpc-
*-elf*)
3865 tm_file
=rs6000
/sysv4.h
3866 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
3867 xm_defines
="USG POSIX"
3868 extra_headers
=ppc-asm.h
3871 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
3873 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
3875 xmake_file
=rs6000
/x-sysv4
3878 tm_file
=rs6000
/eabiaix.h
3879 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3880 fixincludes
=Makefile.
in
3881 extra_headers
=ppc-asm.h
3884 tm_file
=rs6000
/eabisim.h
3885 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3886 fixincludes
=Makefile.
in
3887 extra_headers
=ppc-asm.h
3890 tm_file
=rs6000
/eabi.h
3893 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3895 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
3897 fixincludes
=Makefile.
in
3898 extra_headers
=ppc-asm.h
3901 tm_file
=rs6000
/rtems.h
3904 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3906 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
3908 fixincludes
=Makefile.
in
3909 extra_headers
=ppc-asm.h
3911 powerpc-
*-linux-gnulibc1)
3912 tm_file
=rs6000
/linux.h
3913 xm_file
=rs6000
/xm-sysv4.h
3914 out_file
=rs6000
/rs6000.c
3917 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3919 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3922 fixincludes
=Makefile.
in
3923 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3924 extra_headers
=ppc-asm.h
3925 if [ x
$enable_threads = xyes
]; then
3929 powerpc-
*-linux-gnu*)
3930 tm_file
=rs6000
/linux.h
3931 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
3932 xm_defines
="USG ${xm_defines}"
3933 out_file
=rs6000
/rs6000.c
3936 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3938 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
3941 fixincludes
=Makefile.
in
3942 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3943 extra_headers
=ppc-asm.h
3944 if [ x
$enable_threads = xyes
]; then
3948 powerpc-wrs-vxworks
*)
3950 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
3951 xm_defines
="USG POSIX"
3952 tm_file
=rs6000
/vxppc.h
3953 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3954 extra_headers
=ppc-asm.h
3955 thread_file
='vxworks'
3957 powerpcle-
*-sysv* | powerpcle-
*-elf*)
3958 tm_file
=rs6000
/sysv4le.h
3959 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
3960 xm_defines
="USG POSIX"
3963 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
3965 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
3967 xmake_file
=rs6000
/x-sysv4
3968 extra_headers
=ppc-asm.h
3970 powerpcle-
*-eabisim*)
3971 tm_file
=rs6000
/eabilesim.h
3972 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3973 fixincludes
=Makefile.
in
3974 extra_headers
=ppc-asm.h
3977 tm_file
=rs6000
/eabile.h
3980 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
3982 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
3984 fixincludes
=Makefile.
in
3985 extra_headers
=ppc-asm.h
3987 powerpcle-
*-winnt* )
3988 tm_file
=rs6000
/win-nt.h
3989 tmake_file
=rs6000
/t-winnt
3991 fixincludes
=Makefile.
in
3992 if [ x
$enable_threads = xyes
]; then
3995 extra_headers
=ppc-asm.h
3997 powerpcle-
*-pe | powerpcle-
*-cygwin32)
3998 tm_file
=rs6000
/cygwin32.h
3999 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4000 xm_defines
=NO_STAB_H
4001 tmake_file
=rs6000
/t-winnt
4002 xmake_file
=rs6000
/x-cygwin32
4004 fixincludes
=Makefile.
in
4005 if [ x
$enable_threads = xyes
]; then
4009 extra_headers
=ppc-asm.h
4011 powerpcle-
*-solaris2*)
4012 tm_file
=rs6000
/sol2.h
4013 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4014 xm_defines
="USG POSIX"
4017 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4019 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4021 xmake_file
=rs6000
/x-sysv4
4024 fixincludes
=fixinc.svr4
;;
4026 fixincludes
=fixinc.math
;;
4028 extra_headers
=ppc-asm.h
4030 rs6000-ibm-aix3.
[01]*)
4031 tm_file
=rs6000
/aix31.h
4032 xmake_file
=rs6000
/x-aix31
4035 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4036 tm_file
=rs6000
/aix3newas.h
4037 if [ x
$host != x
$target ]
4039 tmake_file
=rs6000
/t-xnewas
4041 tmake_file
=rs6000
/t-newas
4045 rs6000-ibm-aix
[456789].
* | powerpc-ibm-aix
[456789].
*)
4046 tm_file
=rs6000
/aix41.h
4047 if [ x
$host != x
$target ]
4049 tmake_file
=rs6000
/t-xnewas
4051 tmake_file
=rs6000
/t-newas
4053 xmake_file
=rs6000
/x-aix31
4063 tm_file
=rs6000
/mach.h
4064 xm_file
="${xm_file} rs6000/xm-mach.h"
4065 xmake_file
=rs6000
/x-mach
4069 tm_file
=rs6000
/lynx.h
4070 xm_file
=rs6000
/xm-lynx.h
4071 tmake_file
=rs6000
/t-rs6000
4072 xmake_file
=rs6000
/x-lynx
4080 tmake_file
="sh/t-sh t-rtems"
4089 xm_file
="xm-alloca.h ${xm_file}"
4092 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4093 tm_file
=sparc
/vxsparc.h
4094 tmake_file
=sparc
/t-vxsparc
4096 thread_file
='vxworks'
4099 tmake_file
=sparc
/t-sparcbare
4100 tm_file
="sparc/aout.h libgloss.h"
4103 tm_file
=sparc
/netbsd.h
4104 # On NetBSD, the headers are already okay, except for math.h.
4105 fixincludes
=fixinc.math
4113 tmake_file
=sparc
/t-elf
4114 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4118 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4119 xm_file
="${xm_file} sparc/xm-linux.h"
4120 tm_file
=sparc
/linux-aout.h
4122 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4125 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4126 xm_file
="${xm_file} sparc/xm-linux.h"
4128 tm_file
=sparc
/linux.h
4129 tmake_file
="t-linux t-linux-gnulibc1"
4130 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4131 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4134 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4135 xm_file
="${xm_file} sparc/xm-linux.h"
4137 tm_file
=sparc
/linux.h
4138 tmake_file
="t-linux"
4139 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4140 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4142 if [ x
$enable_threads = xyes
]; then
4149 tm_file
=sparc
/lynx.h
4151 tm_file
=sparc
/lynx-ng.h
4153 xm_file
=sparc
/xm-lynx.h
4154 tmake_file
=sparc
/t-sunos41
4158 tmake_file
="sparc/t-sparcbare t-rtems"
4159 tm_file
=sparc
/rtems.h
4162 if [ x
$gnu_ld = xyes
]
4164 tm_file
=sparc
/sol2.h
4166 tm_file
=sparc
/sol2-sld.h
4168 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4169 xm_defines
="USG POSIX"
4170 tmake_file
=sparc
/t-sol2
4171 xmake_file
=sparc
/x-sysv4
4172 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4175 fixincludes
=fixinc.svr4
;;
4177 fixincludes
=fixinc.math
;;
4180 if [ x
${enable_threads} = x
]; then
4181 enable_threads
=$have_pthread_h
4182 if [ x
${enable_threads} = x
]; then
4183 enable_threads
=$have_thread_h
4186 if [ x
${enable_threads} = xyes
]; then
4187 if [ x
${have_pthread_h} = xyes
]; then
4190 thread_file
='solaris'
4195 tm_file
=sparc
/sunos4.h
4196 tmake_file
=sparc
/t-sunos40
4200 tm_file
=sparc
/sunos4.h
4201 tmake_file
=sparc
/t-sunos41
4203 if [ x
$gas = xyes
]; then
4204 tm_file
="${tm_file} sparc/sun4gas.h"
4208 tm_file
=sparc
/sun4o3.h
4212 tm_file
=sparc
/sysv4.h
4213 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4214 xm_defines
="USG POSIX"
4216 xmake_file
=sparc
/x-sysv4
4217 extra_parts
="crtbegin.o crtend.o"
4220 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
4221 tm_file
=sparc
/vxsim.h
4222 tmake_file
=sparc
/t-vxsparc
4223 xmake_file
=sparc
/x-sysv4
4226 tm_file
="sparc/splet.h libgloss.h"
4227 tmake_file
=sparc
/t-splet
4230 tm_file
="sparc/litecoff.h libgloss.h"
4231 tmake_file
=sparc
/t-sparclite
4234 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4235 tmake_file
=sparc
/t-sparclite
4238 tmake_file
=sparc
/t-sp64
4239 tm_file
=sparc
/sp64-aout.h
4242 tmake_file
=sparc
/t-sp64
4243 tm_file
=sparc
/sp64-elf.h
4244 extra_parts
="crtbegin.o crtend.o"
4246 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4247 tmake_file
=sparc
/t-sp64
4248 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4249 tm_file
=sparc
/linux64.h
4251 fixincludes
=Makefile.
in # The headers are ok already.
4254 # This hasn't been upgraded to GCC 2.
4255 # tahoe-harris-*) # Harris tahoe, using COFF.
4256 # tm_file=tahoe/harris.h
4258 # tahoe-*-bsd*) # tahoe running BSD
4260 thumb-
*-coff* | thumbel-
*-coff*)
4262 out_file
=arm
/thumb.c
4263 xm_file
=arm
/xm-thumb.h
4264 md_file
=arm
/thumb.md
4265 tmake_file
=arm
/t-thumb
4267 # This hasn't been upgraded to GCC 2.
4274 tm_file
="v850/v850.h"
4275 xm_file
="v850/xm-v850.h"
4276 if [ x
$stabs = xyes
]
4278 tm_file
="${tm_file} dbx.h"
4282 vax-
*-bsd*) # vaxen running BSD
4286 vax-
*-sysv*) # vaxen running system V
4287 tm_file
="${tm_file} vax/vaxv.h"
4292 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4293 # On NetBSD, the headers are already okay, except for math.h.
4294 fixincludes
=fixinc.math
4298 vax-
*-ultrix*) # vaxen running ultrix
4299 tm_file
="${tm_file} vax/ultrix.h"
4303 vax-
*-vms*) # vaxen running VMS
4304 xm_file
=vax
/xm-vms.h
4308 vax-
*-*) # vax default entry
4312 xm_file
="${xm_file} xm-svr3"
4316 echo "Configuration $machine not supported" 1>&2
4323 ;; # Existing GNU/Linux systems do not use the GNU setup.
4325 # On the GNU system, the setup is just about the same on
4326 # each different CPU. The specific machines that GNU
4327 # supports are matched above and just set $cpu_type.
4328 xm_file
="xm-gnu.h ${xm_file}"
4329 tm_file
=${cpu_type}/gnu.h
4330 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4331 # GNU always uses ELF.
4333 # GNU tools are the only tools.
4336 # On GNU, the headers are already okay.
4337 fixincludes
=Makefile.
in
4338 xmake_file
=x-linux
# These details are the same as Linux.
4339 tmake_file
=t-gnu
# These are not.
4342 fixincludes
=fixinc.svr4
4343 xmake_try_sysv
=x-sysv
4344 install_headers_dir
=install-headers-cpio
4347 install_headers_dir
=install-headers-cpio
4351 # Distinguish i[34567]86
4352 # Also, do not run mips-tfile on MIPS if using gas.
4353 # Process --with-cpu= for PowerPC/rs6000
4354 target_cpu_default2
=
4357 target_cpu_default2
=1
4360 target_cpu_default2
=2
4362 i686-
*-* | i786-
*-*)
4363 target_cpu_default2
=3
4368 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4371 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4374 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4377 target_cpu_default2
="MASK_CPU_EV5"
4383 if [ "$target_cpu_default2" = "" ]
4385 target_cpu_default2
="MASK_GAS"
4387 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4392 case "x$with_cpu" in
4395 target_cpu_default2
="TARGET_CPU_generic"
4398 # Distinguish cores, and major variants
4399 # arm7m doesn't exist, but D & I don't affect code
4400 xarm23678 | xarm250 | xarm67010 \
4401 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4402 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4403 | xstrongarm | xstrongarm110
)
4404 target_cpu_default2
="TARGET_CPU_$with_cpu"
4408 echo "--with-cpu must be passed a value" 1>&2
4413 if [ x
$pass2done = xyes
]
4415 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4422 mips
*-*-ecoff* | mips
*-*-elf*)
4425 if [ x
$gnu_ld = xyes
]
4427 target_cpu_default2
=20
4429 target_cpu_default2
=16
4436 target_cpu_default2
=16
4439 powerpc
*-*-* | rs6000-
*-*)
4440 case "x$with_cpu" in
4444 xcommon | xpower | xpower2 | xpowerpc | xrios \
4445 | xrios1 | xrios2 | xrsc | xrsc1 \
4446 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4447 | x403 | x505 | x801 | x821 | x823 | x860
)
4448 target_cpu_default2
="\"$with_cpu\""
4452 echo "--with-cpu must be passed a value" 1>&2
4457 if [ x
$pass2done = xyes
]
4459 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4466 case ".$with_cpu" in
4468 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4470 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4471 target_cpu_default2
="TARGET_CPU_$with_cpu"
4474 if [ x
$pass2done = xyes
]
4476 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4484 if [ "$target_cpu_default2" != "" ]
4486 if [ "$target_cpu_default" != "" ]
4488 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
4490 target_cpu_default
=$target_cpu_default2
4494 # No need for collect2 if we have the GNU linker.
4501 # Save data on machine being used to compile GCC in build_xm_file.
4502 # Save data on host machine in vars host_xm_file and host_xmake_file.
4503 if [ x
$pass1done = x
]
4505 if [ x
"$xm_file" = x
]
4506 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
4507 else build_xm_file
=$xm_file
4509 build_xm_defines
=$xm_defines
4510 build_install_headers_dir
=$install_headers_dir
4511 build_exeext
=$exeext
4514 if [ x
$pass2done = x
]
4516 if [ x
"$xm_file" = x
]
4517 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
4518 else host_xm_file
=$xm_file
4520 host_xm_defines
=$xm_defines
4521 if [ x
"$xmake_file" = x
]
4522 then xmake_file
=$cpu_type/x-
$cpu_type
4524 host_xmake_file
="$xmake_file"
4525 host_truncate_target
=$truncate_target
4526 host_extra_gcc_objs
=$extra_gcc_objs
4527 host_extra_objs
=$extra_host_objs
4534 extra_objs
="${host_extra_objs} ${extra_objs}"
4536 # Default the target-machine variables that were not explicitly set.
4537 if [ x
"$tm_file" = x
]
4538 then tm_file
=$cpu_type/$cpu_type.h
; fi
4540 if [ x
$extra_headers = x
]
4541 then extra_headers
=; fi
4543 if [ x
"$xm_file" = x
]
4544 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
4546 if [ x
$md_file = x
]
4547 then md_file
=$cpu_type/$cpu_type.md
; fi
4549 if [ x
$out_file = x
]
4550 then out_file
=$cpu_type/$cpu_type.c
; fi
4552 if [ x
"$tmake_file" = x
]
4553 then tmake_file
=$cpu_type/t-
$cpu_type
4556 if [ x
$float_format = x
]
4557 then float_format
=i64
4560 if [ x
$enable_haifa = x
]
4563 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
*)
4568 # Say what files are being used for the output code and MD file.
4569 echo "Using \`$srcdir/config/$out_file' to output insns."
4570 echo "Using \`$srcdir/config/$md_file' as machine description file."
4573 for f
in $tm_file; do
4576 if [ $count = ax
]; then
4577 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4579 echo "Using the following target machine macro files:"
4580 for f
in $tm_file; do
4581 echo " $srcdir/config/$f"
4586 for f
in $host_xm_file; do
4589 if [ $count = ax
]; then
4590 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4592 echo "Using the following host machine macro files:"
4593 for f
in $host_xm_file; do
4594 echo " $srcdir/config/$f"
4598 if [ "$host_xm_file" != "$build_xm_file" ]; then
4600 for f
in $build_xm_file; do
4603 if [ $count = ax
]; then
4604 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4606 echo "Using the following build machine macro files:"
4607 for f
in $build_xm_file; do
4608 echo " $srcdir/config/$f"
4613 if [ x
$thread_file = x
]; then
4614 if [ x
$target_thread_file != x
]; then
4615 thread_file
=$target_thread_file
4617 thread_file
='single'
4621 # Set up the header files.
4622 # $links is the list of header files to create.
4623 # $vars is the list of shell variables with file names to include.
4624 # auto-conf.h is the file containing items generated by autoconf and is
4625 # the first file included by config.h.
4627 host_xm_file
="auto-config.h ${host_xm_file}"
4629 # If host=build, it is correct to have hconfig include auto-conf.h
4630 # as well. If host!=build, we are in error and need to do more
4631 # work to find out the build config parameters.
4632 if [ x
$host = x
$build ]
4634 build_xm_file
="auto-config.h ${build_xm_file}"
4637 vars
="host_xm_file tm_file xm_file build_xm_file"
4638 links
="config.h tm.h tconfig.h hconfig.h"
4639 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
4642 if [ -f config.status
]; then mv -f config.status config.bak
; fi
4645 while [ -n "$vars" ]
4647 set $vars; var
=$1; shift; vars
=$
*
4648 set $links; link
=$1; shift; links
=$
*
4649 set $defines; define
=$1; shift; defines
=$
*
4653 # Define TARGET_CPU_DEFAULT if the system wants one.
4654 # This substitutes for lots of *.h files.
4655 if [ "$target_cpu_default" != "" -a $link = tm.h
]
4657 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4660 for file in `eval echo '$'$var`; do
4661 echo "#include \"$file\"" >>$link
4664 for def
in `eval echo '$'$define`; do
4665 echo "#ifndef $def" >>$link
4666 echo "#define $def" >>$link
4667 echo "#endif" >>$link
4671 # Truncate the target if necessary
4672 if [ x
$host_truncate_target != x
]; then
4673 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
4676 # Get the version number from the toplevel
4677 version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4679 # Get an absolute path to the GCC top-level source directory
4685 # Conditionalize the makefile for this host machine.
4686 # Make-host contains the concatenation of all host makefile fragments
4687 # [there can be more than one]. This file is built by configure.frag.
4688 host_overrides
=Make-host
4689 dep_host_xmake_file
=
4690 for f
in ..
${host_xmake_file}
4692 if [ -f ${srcdir}/config
/$f ]
4694 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
4698 # Conditionalize the makefile for this target machine.
4699 # Make-target contains the concatenation of all host makefile fragments
4700 # [there can be more than one]. This file is built by configure.frag.
4701 target_overrides
=Make-target
4703 for f
in ..
${tmake_file}
4705 if [ -f ${srcdir}/config
/$f ]
4707 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
4711 # If the host doesn't support symlinks, modify CC in
4712 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4713 # Otherwise, we can use "CC=$(CC)".
4715 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
4717 cc_set_by_configure
="\$(CC)"
4718 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
4721 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
4723 symbolic_link
="cp -p"
4727 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4728 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4732 out_object_file
=`basename $out_file .c`.o
4735 for f
in $tm_file; do
4736 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
4740 for f
in $host_xm_file; do
4741 if test $f != "auto-config.h"; then
4742 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
4744 host_xm_file_list
="${host_xm_file_list} auto-config.h"
4749 for f
in $build_xm_file; do
4750 if test $f != "auto-config.h"; then
4751 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
4753 build_xm_file_list
="${build_xm_file_list} auto-config.h"
4757 # Define macro CROSS_COMPILE in compilation
4758 # if this is a cross-compiler.
4759 # Also use all.cross instead of all.internal
4760 # and add cross-make to Makefile.
4761 cross_overrides
="/dev/null"
4762 if [ x
$host != x
$target ]
4764 cross_defines
="CROSS=-DCROSS_COMPILE"
4765 cross_overrides
="${topdir}/cross-make"
4768 # When building gcc with a cross-compiler, we need to fix a few things.
4769 # This must come after cross-make as we want all.build to override
4771 build_overrides
="/dev/null"
4772 if [ x
$build != x
$host ]
4774 build_overrides
="${topdir}/build-make"
4777 # Expand extra_headers to include complete path.
4778 # This substitutes for lots of t-* files.
4780 if [ "x$extra_headers" = x
]
4783 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4784 for file in $extra_headers;
4786 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4790 # Add a definition of USE_COLLECT2 if system wants one.
4791 # Also tell toplev.c what to do.
4792 # This substitutes for lots of t-* files.
4793 if [ x
$use_collect2 = x
]
4798 will_use_collect2
="collect2"
4799 maybe_use_collect2
="-DUSE_COLLECT2"
4803 # Set MD_DEPS if the real md file is in md.pre-cpp.
4804 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4805 # for line oriented comments, so we must always use a GNU cpp. If
4806 # building gcc with a cross compiler, use the cross compiler just
4807 # built. Otherwise, we can use the cpp just built.
4809 if [ "x$md_cppflags" = x
]
4811 md_file_sub
=$srcdir/config
/$md_file
4816 # If we have gas in the build tree, make a link to it.
4817 if [ -f ..
/gas
/Makefile
]; then
4818 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
4821 # If we have ld in the build tree, make a link to it.
4822 if [ -f ..
/ld
/Makefile
]; then
4823 # if [[ x$use_collect2 = x ]]; then
4824 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4826 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
4830 # Figure out what language subdirectories are present.
4832 for lang
in ${srcdir}/*/config-lang.
in ..
4836 # The odd quoting in the next line works around
4837 # an apparent bug in bash 1.12 on linux.
4838 ${srcdir}/[*]/config-lang.
in) ;;
4839 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4843 # Make gthr-default.h if we have a thread file.
4845 if [ $thread_file != single
]; then
4846 rm -f gthr-default.h
4847 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4848 gthread_flags
=-DHAVE_GTHR_DEFAULT
4852 # Make empty files to contain the specs and options for each language.
4853 # Then add #include lines to for a compiler that has specs and/or options.
4857 rm -f specs.h options.h
4858 touch specs.h options.h
4859 for subdir
in .
$subdirs
4861 if [ -f $srcdir/$subdir/lang-specs.h
]; then
4862 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4863 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4865 if [ -f $srcdir/$subdir/lang-options.h
]; then
4866 echo "#include \"$subdir/lang-options.h\"" >>options.h
4867 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
4871 # These (without "all_") are set in each config-lang.in.
4872 # `language' must be a single word so is spelled singularly.
4878 all_outputs
=Makefile
4879 # List of language makefile fragments.
4884 # Add the language fragments.
4885 # Languages are added via two mechanisms. Some information must be
4886 # recorded in makefile variables, these are defined in config-lang.in.
4887 # We accumulate them and plug them into the main Makefile.
4888 # The other mechanism is a set of hooks for each of the main targets
4889 # like `clean', `install', etc.
4891 language_fragments
="Make-lang"
4892 language_hooks
="Make-hooks"
4895 for s
in ..
$subdirs
4907 .
${srcdir}/$s/config-lang.
in
4908 if [ "x$language" = x
]
4910 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4913 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4914 all_languages
="$all_languages $language"
4915 if [ "x$boot_language" = xyes
]
4917 all_boot_languages
="$all_boot_languages $language"
4919 all_compilers
="$all_compilers $compilers"
4920 all_stagestuff
="$all_stagestuff $stagestuff"
4921 all_diff_excludes
="$all_diff_excludes $diff_excludes"
4922 all_headers
="$all_headers $headers"
4923 all_outputs
="$all_outputs $outputs"
4924 if [ x
$outputs = x
]
4926 oldstyle_subdirs
="$oldstyle_subdirs $s"
4928 all_lib2funcs
="$all_lib2funcs $lib2funcs"
4932 # Since we can't use `::' targets, we link each language in
4933 # with a set of hooks, reached indirectly via lang.${target}.
4937 target_list
="all.build all.cross start.encap rest.encap \
4939 install-normal install-common install-info install-man \
4941 mostlyclean clean distclean extraclean maintainer-clean \
4942 stage1 stage2 stage3 stage4"
4943 for t
in $target_list
4946 for l
in ..
$all_languages
4948 if [ $l != ".." ]; then
4952 echo "lang.$t: $x" >> Make-hooks
4955 # If we're not building in srcdir, create .gdbinit.
4957 if [ ! -f Makefile.
in ]; then
4958 echo "dir ." > .gdbinit
4959 echo "dir ${srcdir}" >> .gdbinit
4960 if [ x
$gdb_needs_out_file_path = xyes
]
4962 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4964 if [ "x$subdirs" != x
]; then
4967 echo "dir ${srcdir}/$s" >> .gdbinit
4970 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4973 # If this is using newlib, then define inhibit_libc in
4974 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4975 # libgcc.a, but that's OK because newib should have its own version of
4978 if [ x
$with_newlib = xyes
]; then
4979 inhibit_libc
=-Dinhibit_libc
4983 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4986 if [ x
$enable_haifa = xyes
]; then
4987 echo "Using the Haifa scheduler."
4989 sched_cflags
=-DHAIFA
4993 if [ x
$enable_haifa != x
]; then
4994 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4995 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5003 # Process the language and host/target makefile fragments.
5004 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5006 # Substitute configuration variables
5058 # Echo that links are built
5059 if [ x
$host = x
$target ]
5067 if [ x
$host != x
$build ]
5069 str3
=" on a $build system"
5072 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5077 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5079 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
5081 echo " ${str2}${str3}." 1>&2
5084 # Truncate the target if necessary
5085 if [ x
$host_truncate_target != x
]; then
5086 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5089 # Configure the subdirectories
5090 # AC_CONFIG_SUBDIRS($subdirs)
5092 # Create the Makefile
5093 # and configure language subdirectories
5095 cat > confcache
<<\EOF
5096 # This file is a shell script that caches the results of configure
5097 # tests run on this system so they can be shared between configure
5098 # scripts and configure runs. It is not useful on other systems.
5099 # If it contains results you don't want to keep, you may remove or edit it.
5101 # By default, configure uses ./config.cache as the cache file,
5102 # creating it if it does not exist already. You can give configure
5103 # the --cache-file=FILE option to use a different cache file; that is
5104 # what configure does when it calls configure scripts in
5105 # subdirectories, so they share the cache.
5106 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5107 # config.status only pays attention to the cache file if you give it the
5108 # --recheck option to rerun configure.
5111 # The following way of writing the cache mishandles newlines in values,
5112 # but we know of no workaround that is simple, portable, and efficient.
5113 # So, don't put newlines in cache variables' values.
5114 # Ultrix sh set writes to stderr and can't be redirected directly,
5115 # and sets the high bit in the cache file unless we assign to the vars.
5117 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
5119 # `set' does not quote correctly, so add quotes (double-quote substitution
5120 # turns \\\\ into \\, and sed turns \\ into \).
5122 -e "s/'/'\\\\''/g" \
5123 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5126 # `set' quotes correctly as required by POSIX, so do not add quotes.
5127 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5130 if cmp -s $cache_file confcache
; then
5133 if test -w $cache_file; then
5134 echo "updating cache $cache_file"
5135 cat confcache
> $cache_file
5137 echo "not updating unwritable cache $cache_file"
5142 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5144 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5145 # Let make expand exec_prefix.
5146 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5148 # Any assignment to VPATH causes Sun make to only execute
5149 # the first set of double-colon rules, so remove it if not needed.
5150 # If there is a colon in the path, we need to keep it.
5151 if test "x$srcdir" = x.
; then
5152 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5155 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5157 DEFS
=-DHAVE_CONFIG_H
5159 # Without the "./", some shells look in PATH for config.status.
5160 : ${CONFIG_STATUS=./config.status}
5162 echo creating
$CONFIG_STATUS
5163 rm -f $CONFIG_STATUS
5164 cat > $CONFIG_STATUS <<EOF
5166 # Generated automatically by configure.
5167 # Run this file to recreate the current configuration.
5168 # This directory was configured as follows,
5169 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5171 # $0 $ac_configure_args
5173 # Compiler output produced by configure, useful for debugging
5174 # configure, is in ./config.log if it exists.
5176 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5179 case "\$ac_option" in
5180 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5181 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5182 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5183 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5184 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
5186 -help | --help | --hel | --he | --h)
5187 echo "\$ac_cs_usage"; exit 0 ;;
5188 *) echo "\$ac_cs_usage"; exit 1 ;;
5192 ac_given_srcdir=$srcdir
5194 trap 'rm -fr `echo "$all_outputs auto-config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5196 cat >> $CONFIG_STATUS <<EOF
5198 # Protect against being on the right side of a sed subst in config.status.
5199 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5200 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5204 s%@CFLAGS@%$CFLAGS%g
5205 s%@CPPFLAGS@%$CPPFLAGS%g
5206 s%@CXXFLAGS@%$CXXFLAGS%g
5208 s%@LDFLAGS@%$LDFLAGS%g
5210 s%@exec_prefix@%$exec_prefix%g
5211 s%@prefix@%$prefix%g
5212 s%@program_transform_name@%$program_transform_name%g
5213 s%@bindir@%$bindir%g
5214 s%@sbindir@%$sbindir%g
5215 s%@libexecdir@%$libexecdir%g
5216 s%@datadir@%$datadir%g
5217 s%@sysconfdir@%$sysconfdir%g
5218 s%@sharedstatedir@%$sharedstatedir%g
5219 s%@localstatedir@%$localstatedir%g
5220 s%@libdir@%$libdir%g
5221 s%@includedir@%$includedir%g
5222 s%@oldincludedir@%$oldincludedir%g
5223 s%@infodir@%$infodir%g
5224 s%@mandir@%$mandir%g
5226 s%@host_alias@%$host_alias%g
5227 s%@host_cpu@%$host_cpu%g
5228 s%@host_vendor@%$host_vendor%g
5229 s%@host_os@%$host_os%g
5230 s%@target@%$target%g
5231 s%@target_alias@%$target_alias%g
5232 s%@target_cpu@%$target_cpu%g
5233 s%@target_vendor@%$target_vendor%g
5234 s%@target_os@%$target_os%g
5236 s%@build_alias@%$build_alias%g
5237 s%@build_cpu@%$build_cpu%g
5238 s%@build_vendor@%$build_vendor%g
5239 s%@build_os@%$build_os%g
5241 s%@SET_MAKE@%$SET_MAKE%g
5244 s%@LEXLIB@%$LEXLIB%g
5247 s%@RANLIB@%$RANLIB%g
5249 s%@INSTALL@%$INSTALL%g
5250 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5251 s%@INSTALL_DATA@%$INSTALL_DATA%g
5253 s%@manext@%$manext%g
5254 s%@objext@%$objext%g
5255 s%@gthread_flags@%$gthread_flags%g
5256 s%@inhibit_libc@%$inhibit_libc%g
5257 s%@sched_prefix@%$sched_prefix%g
5258 s%@sched_cflags@%$sched_cflags%g
5259 s%@subdirs@%$subdirs%g
5260 s%@all_languages@%$all_languages%g
5261 s%@all_boot_languages@%$all_boot_languages%g
5262 s%@all_compilers@%$all_compilers%g
5263 s%@all_lang_makefiles@%$all_lang_makefiles%g
5264 s%@all_stagestuff@%$all_stagestuff%g
5265 s%@all_diff_excludes@%$all_diff_excludes%g
5266 s%@all_lib2funcs@%$all_lib2funcs%g
5267 s%@all_headers@%$all_headers%g
5268 s%@extra_passes@%$extra_passes%g
5269 s%@extra_programs@%$extra_programs%g
5270 s%@extra_parts@%$extra_parts%g
5271 s%@extra_c_objs@%$extra_c_objs%g
5272 s%@extra_c_flags@%$extra_c_flags%g
5273 s%@extra_objs@%$extra_objs%g
5274 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
5275 s%@extra_headers_list@%$extra_headers_list%g
5276 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
5277 s%@dep_tmake_file@%$dep_tmake_file%g
5278 s%@out_file@%$out_file%g
5279 s%@out_object_file@%$out_object_file%g
5280 s%@md_file@%$md_file%g
5281 s%@tm_file_list@%$tm_file_list%g
5282 s%@build_xm_file_list@%$build_xm_file_list%g
5283 s%@host_xm_file_list@%$host_xm_file_list%g
5284 s%@lang_specs_files@%$lang_specs_files%g
5285 s%@lang_options_files@%$lang_options_files%g
5286 s%@thread_file@%$thread_file%g
5287 s%@version@%$version%g
5288 s%@local_prefix@%$local_prefix%g
5289 s%@gxx_include_dir@%$gxx_include_dir%g
5290 s%@fixincludes@%$fixincludes%g
5291 s%@build_install_headers_dir@%$build_install_headers_dir%g
5292 s%@build_exeext@%$build_exeext%g
5293 s%@host_exeext@%$host_exeext%g
5294 s%@float_format@%$float_format%g
5295 s%@will_use_collect2@%$will_use_collect2%g
5296 s%@maybe_use_collect2@%$maybe_use_collect2%g
5297 s%@cc_set_by_configure@%$cc_set_by_configure%g
5298 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
5299 s%@install@%$install%g
5300 s%@symbolic_link@%$symbolic_link%g
5301 /@target_overrides@/r $target_overrides
5302 s%@target_overrides@%%g
5303 /@host_overrides@/r $host_overrides
5304 s%@host_overrides@%%g
5305 s%@cross_defines@%$cross_defines%g
5306 /@cross_overrides@/r $cross_overrides
5307 s%@cross_overrides@%%g
5308 /@build_overrides@/r $build_overrides
5309 s%@build_overrides@%%g
5310 /@language_fragments@/r $language_fragments
5311 s%@language_fragments@%%g
5312 /@language_hooks@/r $language_hooks
5313 s%@language_hooks@%%g
5318 cat >> $CONFIG_STATUS <<\EOF
5320 # Split the substitutions into bite-sized pieces for seds with
5321 # small command number limits, like on Digital OSF/1 and HP-UX.
5322 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5323 ac_file
=1 # Number of current file.
5324 ac_beg
=1 # First line for current file.
5325 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5328 while $ac_more_lines; do
5329 if test $ac_beg -gt 1; then
5330 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5332 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5334 if test ! -s conftest.s
$ac_file; then
5336 rm -f conftest.s
$ac_file
5338 if test -z "$ac_sed_cmds"; then
5339 ac_sed_cmds
="sed -f conftest.s$ac_file"
5341 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5343 ac_file
=`expr $ac_file + 1`
5345 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5348 if test -z "$ac_sed_cmds"; then
5353 cat >> $CONFIG_STATUS <<EOF
5355 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
5357 cat >> $CONFIG_STATUS <<\EOF
5358 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5359 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5361 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5362 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5363 *) ac_file_in
="${ac_file}.in" ;;
5366 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5368 # Remove last slash and all that follows it. Not all systems have dirname.
5369 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5370 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5371 # The file is in a subdirectory.
5372 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5373 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5374 # A "../" for each directory in $ac_dir_suffix.
5375 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5377 ac_dir_suffix
= ac_dots
=
5380 case "$ac_given_srcdir" in
5382 if test -z "$ac_dots"; then top_srcdir
=.
5383 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5384 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5386 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5387 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5391 echo creating
"$ac_file"
5393 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5395 *Makefile
*) ac_comsub
="1i\\
5396 # $configure_input" ;;
5400 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5402 s%@configure_input@%$configure_input%g
5403 s%@srcdir@%$srcdir%g
5404 s%@top_srcdir@%$top_srcdir%g
5405 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5409 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5410 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5412 # ac_d sets the value in "#define NAME VALUE" lines.
5413 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5414 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5417 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5418 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5419 ac_uB
='\([ ]\)%\1#\2define\3'
5422 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5423 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5424 ac_eB
='$%\1#\2define\3'
5428 if test "${CONFIG_HEADERS+set}" != set; then
5430 cat >> $CONFIG_STATUS <<EOF
5431 CONFIG_HEADERS="auto-config.h:config.in"
5433 cat >> $CONFIG_STATUS <<\EOF
5435 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5438 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5439 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5440 *) ac_file_in
="${ac_file}.in" ;;
5443 echo creating
$ac_file
5445 rm -f conftest.frag conftest.
in conftest.out
5446 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5447 cat $ac_file_inputs > conftest.
in
5451 # Transform confdefs.h into a sed script conftest.vals that substitutes
5452 # the proper values into config.h.in to produce config.h. And first:
5453 # Protect against being on the right side of a sed subst in config.status.
5454 # Protect against being in an unquoted here document in config.status.
5456 cat > conftest.hdr
<<\EOF
5459 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5463 sed -n -f conftest.hdr confdefs.h > conftest.vals
5466 # This sed command replaces #undef with comments. This is necessary, for
5467 # example, in the case of _POSIX_SOURCE, which is predefined and required
5468 # on some systems where configure will not decide to define it.
5469 cat >> conftest.vals <<\EOF
5470 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5473 # Break up conftest.vals because some shells have a limit on
5474 # the size of here documents, and old seds have small limits too.
5479 ac_lines=`grep -c . conftest.vals
`
5480 # grep -c gives empty output for an empty file on some AIX systems.
5481 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5482 # Write a limited-size here document to conftest.frag.
5483 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5484 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5486 sed -f conftest.frag conftest.in > conftest.out
5488 mv conftest.out conftest.in
5490 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5492 mv conftest.tail conftest.vals
5496 cat >> $CONFIG_STATUS <<\EOF
5497 rm -f conftest.frag conftest.h
5498 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5499 cat conftest.in >> conftest.h
5501 if cmp -s $ac_file conftest.h 2>/dev/null; then
5502 echo "$ac_file is unchanged"
5505 # Remove last slash and all that follows it. Not all systems have dirname.
5506 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5507 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5508 # The file is in a subdirectory.
5509 test ! -d "$ac_dir" && mkdir "$ac_dir"
5512 mv conftest.h $ac_file
5517 cat >> $CONFIG_STATUS <<EOF
5522 target_alias='${target_alias}'
5524 subdirs='${subdirs}'
5525 oldstyle_subdirs='${oldstyle_subdirs}'
5526 symbolic_link='${symbolic_link}'
5527 program_transform_set='${program_transform_set}'
5528 program_transform_name='${program_transform_name}'
5529 dep_host_xmake_file='${dep_host_xmake_file}'
5530 host_xmake_file='${host_xmake_file}'
5531 dep_tmake_file='${dep_tmake_file}'
5532 tmake_file='${tmake_file}'
5533 thread_file='${thread_file}'
5534 version='${version}'
5535 local_prefix='${local_prefix}'
5536 build_install_headers_dir='${build_install_headers_dir}'
5537 build_exeext='${build_exeext}'
5538 host_exeext='${host_exeext}'
5539 out_file='${out_file}'
5540 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5541 SET_MAKE='${SET_MAKE}'
5542 target_list='${target_list}'
5543 target_overrides='${target_overrides}'
5544 host_overrides='${host_overrides}'
5545 cross_defines='${cross_defines}'
5546 cross_overrides='${cross_overrides}'
5547 build_overrides='${build_overrides}'
5550 cat >> $CONFIG_STATUS <<\EOF
5552 . $srcdir/configure.lang
5553 case x$CONFIG_HEADERS in
5554 xauto-config.h:config.in)
5557 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5558 # bootstrapping and the installation procedure can still use
5559 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5560 # FLAGS_TO_PASS has been modified to solve the problem there.
5561 # This is virtually a duplicate of what happens in configure.lang; we do
5562 # an extra check to make sure this only happens if ln -s can be used.
5563 if [ "$symbolic_link" = "ln -s" ]; then
5564 for d in .. ${subdirs} ; do
5565 if [ $d != .. ]; then
5568 for t in stage1 stage2 stage3 stage4 include
5571 $symbolic_link ../$t $t 2>/dev/null
5580 chmod +x $CONFIG_STATUS
5581 rm -fr confdefs* $ac_clean_files
5582 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1