3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking enable expensive run-time checks."
34 --enable-c-cpplib Use cpplib for C and C++."
36 --enable-c-mbchar Enable multibyte characters for C and C++."
38 --enable-haifa Use the experimental scheduler.
39 --disable-haifa Don't use the experimental scheduler for the
40 targets which normally enable it."
42 --with-fast-fixincludes Use a faster fixinclude program. Experimental"
44 --enable-init-priority Use attributes to assign initialization order
46 --disable-init-priority Conform to ISO C++ rules for ordering static objects
47 (i.e. initialized in order of declaration). "
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
59 cache_file
=.
/config.cache
68 program_transform_name
=s
,x
,x
,
76 bindir
='${exec_prefix}/bin'
77 sbindir
='${exec_prefix}/sbin'
78 libexecdir
='${exec_prefix}/libexec'
79 datadir
='${prefix}/share'
80 sysconfdir
='${prefix}/etc'
81 sharedstatedir
='${prefix}/com'
82 localstatedir
='${prefix}/var'
83 libdir
='${exec_prefix}/lib'
84 includedir
='${prefix}/include'
85 oldincludedir
='/usr/include'
86 infodir
='${prefix}/info'
87 mandir
='${prefix}/man'
89 # Initialize some other variables.
92 # Maximum number of lines to put in a shell here document.
99 # If the previous option needs an argument, assign it.
100 if test -n "$ac_prev"; then
101 eval "$ac_prev=\$ac_option"
107 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
111 # Accept the important Cygnus configure options, so we can diagnose typos.
115 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
117 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
118 bindir
="$ac_optarg" ;;
120 -build |
--build |
--buil |
--bui |
--bu)
122 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
123 build
="$ac_optarg" ;;
125 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
126 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
127 ac_prev
=cache_file
;;
128 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
129 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
130 cache_file
="$ac_optarg" ;;
132 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
134 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
136 datadir
="$ac_optarg" ;;
138 -disable-* |
--disable-*)
139 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}=no" ;;
147 -enable-* |
--enable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}='$ac_optarg'" ;;
160 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
161 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
162 |
--exec |
--exe |
--ex)
163 ac_prev
=exec_prefix
;;
164 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
165 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
166 |
--exec=* |
--exe=* |
--ex=*)
167 exec_prefix
="$ac_optarg" ;;
169 -gas |
--gas |
--ga |
--g)
170 # Obsolete; use --with-gas.
173 -help |
--help |
--hel |
--he)
174 # Omit some internal or obsolete options to make the list less imposing.
175 # This message is too long to be a string in the A/UX 3.1 sh.
177 Usage: configure [options] [host]
178 Options: [defaults in brackets after descriptions]
180 --cache-file=FILE cache test results in FILE
181 --help print this message
182 --no-create do not create output files
183 --quiet, --silent do not print \`checking...' messages
184 --version print the version of autoconf that created configure
185 Directory and file names:
186 --prefix=PREFIX install architecture-independent files in PREFIX
188 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
190 --bindir=DIR user executables in DIR [EPREFIX/bin]
191 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
192 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
193 --datadir=DIR read-only architecture-independent data in DIR
195 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
196 --sharedstatedir=DIR modifiable architecture-independent data in DIR
198 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
199 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
200 --includedir=DIR C header files in DIR [PREFIX/include]
201 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
202 --infodir=DIR info documentation in DIR [PREFIX/info]
203 --mandir=DIR man documentation in DIR [PREFIX/man]
204 --srcdir=DIR find the sources in DIR [configure dir or ..]
205 --program-prefix=PREFIX prepend PREFIX to installed program names
206 --program-suffix=SUFFIX append SUFFIX to installed program names
207 --program-transform-name=PROGRAM
208 run sed PROGRAM on installed program names
212 --build=BUILD configure for building on BUILD [BUILD=HOST]
213 --host=HOST configure for HOST [guessed]
214 --target=TARGET configure for TARGET [TARGET=HOST]
215 Features and packages:
216 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
217 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
218 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
219 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
220 --x-includes=DIR X include files are in DIR
221 --x-libraries=DIR X library files are in DIR
223 if test -n "$ac_help"; then
224 echo "--enable and --with options recognized:$ac_help"
228 -host |
--host |
--hos |
--ho)
230 -host=* |
--host=* |
--hos=* |
--ho=*)
233 -includedir |
--includedir |
--includedi |
--included |
--include \
234 |
--includ |
--inclu |
--incl |
--inc)
235 ac_prev
=includedir
;;
236 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
237 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
238 includedir
="$ac_optarg" ;;
240 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
242 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
243 infodir
="$ac_optarg" ;;
245 -libdir |
--libdir |
--libdi |
--libd)
247 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
248 libdir
="$ac_optarg" ;;
250 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
251 |
--libexe |
--libex |
--libe)
252 ac_prev
=libexecdir
;;
253 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
254 |
--libexe=* |
--libex=* |
--libe=*)
255 libexecdir
="$ac_optarg" ;;
257 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
258 |
--localstate |
--localstat |
--localsta |
--localst \
259 |
--locals |
--local |
--loca |
--loc |
--lo)
260 ac_prev
=localstatedir
;;
261 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
262 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
263 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
264 localstatedir
="$ac_optarg" ;;
266 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
268 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
269 mandir
="$ac_optarg" ;;
272 # Obsolete; use --without-fp.
275 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
279 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
280 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
283 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
284 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
285 |
--oldin |
--oldi |
--old |
--ol |
--o)
286 ac_prev
=oldincludedir
;;
287 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
288 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
289 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
290 oldincludedir
="$ac_optarg" ;;
292 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
294 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
295 prefix
="$ac_optarg" ;;
297 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
298 |
--program-pre |
--program-pr |
--program-p)
299 ac_prev
=program_prefix
;;
300 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
301 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
302 program_prefix
="$ac_optarg" ;;
304 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
305 |
--program-suf |
--program-su |
--program-s)
306 ac_prev
=program_suffix
;;
307 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
308 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
309 program_suffix
="$ac_optarg" ;;
311 -program-transform-name |
--program-transform-name \
312 |
--program-transform-nam |
--program-transform-na \
313 |
--program-transform-n |
--program-transform- \
314 |
--program-transform |
--program-transfor \
315 |
--program-transfo |
--program-transf \
316 |
--program-trans |
--program-tran \
317 |
--progr-tra |
--program-tr |
--program-t)
318 ac_prev
=program_transform_name
;;
319 -program-transform-name=* |
--program-transform-name=* \
320 |
--program-transform-nam=* |
--program-transform-na=* \
321 |
--program-transform-n=* |
--program-transform-=* \
322 |
--program-transform=* |
--program-transfor=* \
323 |
--program-transfo=* |
--program-transf=* \
324 |
--program-trans=* |
--program-tran=* \
325 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
326 program_transform_name
="$ac_optarg" ;;
328 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
329 |
-silent |
--silent |
--silen |
--sile |
--sil)
332 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
334 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
336 sbindir
="$ac_optarg" ;;
338 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
339 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
340 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
342 ac_prev
=sharedstatedir
;;
343 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
344 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
345 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
347 sharedstatedir
="$ac_optarg" ;;
349 -site |
--site |
--sit)
351 -site=* |
--site=* |
--sit=*)
354 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
356 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
357 srcdir
="$ac_optarg" ;;
359 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
360 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
361 ac_prev
=sysconfdir
;;
362 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
363 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
364 sysconfdir
="$ac_optarg" ;;
366 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
368 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
369 target
="$ac_optarg" ;;
371 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
374 -version |
--version |
--versio |
--versi |
--vers)
375 echo "configure generated by autoconf version 2.12"
379 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}='$ac_optarg'" ;;
391 -without-* |
--without-*)
392 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package
=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}=no" ;;
401 # Obsolete; use --with-x.
404 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
405 |
--x-incl |
--x-inc |
--x-in |
--x-i)
406 ac_prev
=x_includes
;;
407 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
408 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
409 x_includes
="$ac_optarg" ;;
411 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
412 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
413 ac_prev
=x_libraries
;;
414 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
415 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
416 x_libraries
="$ac_optarg" ;;
418 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
422 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
423 echo "configure: warning: $ac_option: invalid host type" 1>&2
425 if test "x$nonopt" != xNONE
; then
426 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
434 if test -n "$ac_prev"; then
435 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
438 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440 # File descriptor usage:
443 # 2 errors and warnings
444 # 3 some systems may open it to /dev/tty
445 # 4 used on the Kubota Titan
446 # 6 checking for... messages and results
447 # 5 compiler messages saved in config.log
448 if test "$silent" = yes; then
456 This file contains any messages produced by compilers while
457 running configure, to aid debugging if configure makes a mistake.
460 # Strip out --no-create and --no-recursion so they do not pile up.
461 # Also quote any args containing shell metacharacters.
466 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
467 |
--no-cr |
--no-c) ;;
468 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
469 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
470 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
471 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
472 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
477 # Only set these to C if already set. These must not be set unconditionally
478 # because not all systems understand e.g. LANG=C (notably SCO).
479 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
480 # Non-C LC_CTYPE values break the ctype check.
481 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
482 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
483 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
484 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
487 rm -rf conftest
* confdefs.h
488 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 # A filename unique to this package, relative to the directory that
492 # configure is in, which we can look for to find out if srcdir is correct.
493 ac_unique_file
=tree.c
495 # Find the source files, if location was not specified.
496 if test -z "$srcdir"; then
497 ac_srcdir_defaulted
=yes
498 # Try the directory containing this script, then its parent.
500 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
501 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
503 if test ! -r $srcdir/$ac_unique_file; then
507 ac_srcdir_defaulted
=no
509 if test ! -r $srcdir/$ac_unique_file; then
510 if test "$ac_srcdir_defaulted" = yes; then
511 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
516 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518 # Prefer explicitly selected file to automatically selected ones.
519 if test -z "$CONFIG_SITE"; then
520 if test "x$prefix" != xNONE
; then
521 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
523 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526 for ac_site_file
in $CONFIG_SITE; do
527 if test -r "$ac_site_file"; then
528 echo "loading site script $ac_site_file"
533 if test -r "$cache_file"; then
534 echo "loading cache $cache_file"
537 echo "creating cache $cache_file"
542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
543 ac_cpp
='$CPP $CPPFLAGS'
544 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
545 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
546 cross_compiling
=$ac_cv_prog_cc_cross
548 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
549 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
550 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
557 ac_n
= ac_c
='\c' ac_t
=
565 symbolic_link
='ln -s'
568 # Check for bogus environment variables.
569 # Test if LIBRARY_PATH contains the notation for the current directory
570 # since this would lead to problems installing/building glibc.
571 # LIBRARY_PATH contains the current directory if one of the following
573 # - one of the terminals (":" and ";") is the first or last sign
574 # - two terminals occur directly after each other
575 # - the path contains an element with a dot in it
576 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
577 echo "configure:578: checking LIBRARY_PATH variable" >&5
578 case ${LIBRARY_PATH} in
579 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
580 library_path_setting
="contains current directory"
583 library_path_setting
="ok"
586 echo "$ac_t""$library_path_setting" 1>&6
587 if test "$library_path_setting" != "ok"; then
588 { echo "configure: error:
589 *** LIBRARY_PATH shouldn't contain the current directory when
590 *** building egcs. Please change the environment variable
591 *** and run configure again." 1>&2; exit 1; }
594 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
595 # since this would lead to problems installing/building glibc.
596 # GCC_EXEC_PREFIX contains the current directory if one of the following
598 # - one of the terminals (":" and ";") is the first or last sign
599 # - two terminals occur directly after each other
600 # - the path contains an element with a dot in it
601 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
602 echo "configure:603: checking GCC_EXEC_PREFIX variable" >&5
603 case ${GCC_EXEC_PREFIX} in
604 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
605 gcc_exec_prefix_setting
="contains current directory"
608 gcc_exec_prefix_setting
="ok"
611 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
612 if test "$gcc_exec_prefix_setting" != "ok"; then
613 { echo "configure: error:
614 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
615 *** building egcs. Please change the environment variable
616 *** and run configure again." 1>&2; exit 1; }
619 # Check for additional parameters
622 # Check whether --with-gnu-ld or --without-gnu-ld was given.
623 if test "${with_gnu_ld+set}" = set; then
624 withval
="$with_gnu_ld"
625 gnu_ld_flag
="$with_gnu_ld"
631 # With pre-defined ld
632 # Check whether --with-ld or --without-ld was given.
633 if test "${with_ld+set}" = set; then
638 if test x
"${LD+set}" = x
"set"; then
639 if test ! -x "$LD"; then
640 echo "configure: warning: cannot execute: $LD: check --with-ld or env. var. LD" 1>&2
641 elif test "GNU" = `$LD -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
644 cat >> confdefs.h
<<EOF
645 #define DEFAULT_LINKER "$LD"
651 # Check whether --with-gnu-as or --without-gnu-as was given.
652 if test "${with_gnu_as+set}" = set; then
653 withval
="$with_gnu_as"
654 gas_flag
="$with_gnu_as"
660 # Check whether --with-as or --without-as was given.
661 if test "${with_as+set}" = set; then
666 if test x
"${AS+set}" = x
"set"; then
667 if test ! -x "$AS"; then
668 echo "configure: warning: cannot execute: $AS: check --with-as or env. var. AS" 1>&2
669 elif test "GNU" = `$AS -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
672 cat >> confdefs.h
<<EOF
673 #define DEFAULT_ASSEMBLER "$AS"
679 # Check whether --with-stabs or --without-stabs was given.
680 if test "${with_stabs+set}" = set; then
681 withval
="$with_stabs"
689 # Check whether --with-elf or --without-elf was given.
690 if test "${with_elf+set}" = set; then
698 # Specify the local prefix
700 # Check whether --with-local-prefix or --without-local-prefix was given.
701 if test "${with_local_prefix+set}" = set; then
702 withval
="$with_local_prefix"
704 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
706 *) local_prefix
=$with_local_prefix ;;
711 # Default local prefix if it is empty
712 if test x
$local_prefix = x
; then
713 local_prefix
=/usr
/local
717 # Specify the g++ header file directory
718 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
719 if test "${with_gxx_include_dir+set}" = set; then
720 withval
="$with_gxx_include_dir"
722 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
724 *) gxx_include_dir
=$with_gxx_include_dir ;;
729 if test x
${gxx_include_dir} = x
; then
730 if test x
${enable_version_specific_runtime_libs} = xyes
; then
731 gxx_include_dir
='${libsubdir}/include/g++'
733 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
734 gxx_include_dir
='${prefix}/include/g++'-${libstdcxx_interface}
738 # Enable expensive internal checks
739 # Check whether --enable-checking or --disable-checking was given.
740 if test "${enable_checking+set}" = set; then
741 enableval
="$enable_checking"
742 case "${enableval}" in
743 yes) cat >> confdefs.h
<<\EOF
744 #define ENABLE_CHECKING 1
748 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
753 # Enable use of cpplib for C.
755 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
756 if test "${enable_c_cpplib+set}" = set; then
757 enableval
="$enable_c_cpplib"
758 if test x
$enable_c_cpplib != xno
; then
759 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
760 extra_c_objs
="${extra_c_objs} prefix.o"
761 extra_cxx_objs
="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
762 extra_c_flags
=-DUSE_CPPLIB=1
768 # Enable Multibyte Characters for C/C++
769 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
770 if test "${enable_c_mbchar+set}" = set; then
771 enableval
="$enable_c_mbchar"
772 if test x
$enable_c_mbchar != xno
; then
773 extra_c_flags
=-DMULTIBYTE_CHARS=1
778 # Enable Haifa scheduler.
779 # Check whether --enable-haifa or --disable-haifa was given.
780 if test "${enable_haifa+set}" = set; then
781 enableval
="$enable_haifa"
787 # This is a work in progress...
788 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
789 if test "${with_fast_fixincludes+set}" = set; then
790 withval
="$with_fast_fixincludes"
791 fast_fixinc
="$with_fast_fixincludes"
797 # Enable init_priority.
798 # Check whether --enable-init-priority or --disable-init-priority was given.
799 if test "${enable_init_priority+set}" = set; then
800 enableval
="$enable_init_priority"
801 if test x
$enable_init_priority != xno
; then
802 extra_c_flags
=-DUSE_INIT_PRIORITY
808 # Pass with no value to take the default
809 # Pass with a value to specify a thread package
810 # Check whether --enable-threads or --disable-threads was given.
811 if test "${enable_threads+set}" = set; then
812 enableval
="$enable_threads"
813 if test x
$enable_threads = xno
; then
821 enable_threads_flag
=$enable_threads
822 # Check if a valid thread package
823 case x
${enable_threads_flag} in
826 target_thread_file
='single'
830 target_thread_file
=''
832 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
833 xsolaris | xwin32 | xdce | xvxworks
)
834 target_thread_file
=$enable_threads_flag
837 echo "$enable_threads is an unknown thread package" 1>&2
842 # Check whether --enable-objc-gc or --disable-objc-gc was given.
843 if test "${enable_objc_gc+set}" = set; then
844 enableval
="$enable_objc_gc"
845 if [ x
$enable_objc_gc = xno
]; then
855 # Determine the host, build, and target systems
857 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
858 if test -f $ac_dir/install-sh
; then
860 ac_install_sh
="$ac_aux_dir/install-sh -c"
862 elif test -f $ac_dir/install.sh
; then
864 ac_install_sh
="$ac_aux_dir/install.sh -c"
868 if test -z "$ac_aux_dir"; then
869 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
871 ac_config_guess
=$ac_aux_dir/config.guess
872 ac_config_sub
=$ac_aux_dir/config.sub
873 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
876 # Do some error checking and defaulting for the host and target type.
878 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
881 # 1. You are not allowed to specify --host, --target, and nonopt at the
883 # 2. Host defaults to nonopt.
884 # 3. If nonopt is not specified, then host defaults to the current host,
885 # as determined by config.guess.
886 # 4. Target and build default to nonopt.
887 # 5. If nonopt is not specified, then target and build default to host.
889 # The aliases save the names the user supplied, while $host etc.
890 # will get canonicalized.
891 case $host---$target---$nonopt in
892 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
893 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
897 # Make sure we can run config.sub.
898 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
899 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
902 echo $ac_n "checking host system type""... $ac_c" 1>&6
903 echo "configure:904: checking host system type" >&5
906 case "$host_alias" in
910 if host_alias
=`$ac_config_guess`; then :
911 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
913 *) host_alias
=$nonopt ;;
917 host=`$ac_config_sub $host_alias`
918 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
921 echo "$ac_t""$host" 1>&6
923 echo $ac_n "checking target system type""... $ac_c" 1>&6
924 echo "configure:925: checking target system type" >&5
927 case "$target_alias" in
930 NONE
) target_alias
=$host_alias ;;
931 *) target_alias
=$nonopt ;;
935 target
=`$ac_config_sub $target_alias`
936 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
937 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
938 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
939 echo "$ac_t""$target" 1>&6
941 echo $ac_n "checking build system type""... $ac_c" 1>&6
942 echo "configure:943: checking build system type" >&5
945 case "$build_alias" in
948 NONE
) build_alias
=$host_alias ;;
949 *) build_alias
=$nonopt ;;
953 build
=`$ac_config_sub $build_alias`
954 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
955 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
956 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
957 echo "$ac_t""$build" 1>&6
959 test "$host_alias" != "$target_alias" &&
960 test "$program_prefix$program_suffix$program_transform_name" = \
962 program_prefix
=${target_alias}-
965 # Find the native compiler
966 # Extract the first word of "gcc", so it can be a program name with args.
967 set dummy gcc
; ac_word
=$2
968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
969 echo "configure:970: checking for $ac_word" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 if test -n "$CC"; then
974 ac_cv_prog_CC
="$CC" # Let the user override the test.
976 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
977 for ac_dir
in $PATH; do
978 test -z "$ac_dir" && ac_dir
=.
979 if test -f $ac_dir/$ac_word; then
988 if test -n "$CC"; then
989 echo "$ac_t""$CC" 1>&6
991 echo "$ac_t""no" 1>&6
994 if test -z "$CC"; then
995 # Extract the first word of "cc", so it can be a program name with args.
996 set dummy cc
; ac_word
=$2
997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998 echo "configure:999: checking for $ac_word" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 if test -n "$CC"; then
1003 ac_cv_prog_CC
="$CC" # Let the user override the test.
1005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1007 for ac_dir
in $PATH; do
1008 test -z "$ac_dir" && ac_dir
=.
1009 if test -f $ac_dir/$ac_word; then
1010 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1011 ac_prog_rejected
=yes
1019 if test $ac_prog_rejected = yes; then
1020 # We found a bogon in the path, so make sure we never use it.
1021 set dummy
$ac_cv_prog_CC
1023 if test $# -gt 0; then
1024 # We chose a different compiler from the bogus one.
1025 # However, it has the same basename, so the bogon will be chosen
1026 # first if we set CC to just the basename; use the full file name.
1028 set dummy
"$ac_dir/$ac_word" "$@"
1036 if test -n "$CC"; then
1037 echo "$ac_t""$CC" 1>&6
1039 echo "$ac_t""no" 1>&6
1042 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1045 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1049 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1050 ac_cpp
='$CPP $CPPFLAGS'
1051 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1052 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1053 cross_compiling
=$ac_cv_prog_cc_cross
1055 cat > conftest.
$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1060 if { (eval echo configure
:1061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1061 ac_cv_prog_cc_works
=yes
1062 # If we can't run a trivial program, we are probably using a cross compiler.
1063 if (.
/conftest
; exit) 2>/dev
/null
; then
1064 ac_cv_prog_cc_cross
=no
1066 ac_cv_prog_cc_cross
=yes
1069 echo "configure: failed program was:" >&5
1070 cat conftest.
$ac_ext >&5
1071 ac_cv_prog_cc_works
=no
1075 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1076 if test $ac_cv_prog_cc_works = no
; then
1077 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1079 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1081 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1082 cross_compiling
=$ac_cv_prog_cc_cross
1084 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether we are using GNU C" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 cat > conftest.c
<<EOF
1094 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1101 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1103 if test $ac_cv_prog_gcc = yes; then
1105 ac_test_CFLAGS
="${CFLAGS+set}"
1106 ac_save_CFLAGS
="$CFLAGS"
1108 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1109 echo "configure:1110: checking whether ${CC-cc} accepts -g" >&5
1110 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 echo 'void f(){}' > conftest.c
1114 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1123 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1124 if test "$ac_test_CFLAGS" = set; then
1125 CFLAGS
="$ac_save_CFLAGS"
1126 elif test $ac_cv_prog_cc_g = yes; then
1133 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1137 # If the native compiler is GCC, we can enable warnings even in stage1.
1138 # That's useful for people building cross-compilers, or just running a
1140 if test "x$GCC" = "xyes"; then
1141 stage1_warn_cflags
='$(WARN_CFLAGS)'
1143 stage1_warn_cflags
=""
1147 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether ${MAKE-make} sets \${MAKE}" >&5
1149 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1150 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 cat > conftestmake
<<\EOF
1155 @
echo 'ac_maketemp="${MAKE}"'
1157 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1158 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1159 if test -n "$ac_maketemp"; then
1160 eval ac_cv_prog_make_
${ac_make}_set
=yes
1162 eval ac_cv_prog_make_
${ac_make}_set
=no
1166 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1167 echo "$ac_t""yes" 1>&6
1170 echo "$ac_t""no" 1>&6
1171 SET_MAKE
="MAKE=${MAKE-make}"
1175 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1176 echo "configure:1177: checking whether a default assembler was specified" >&5
1177 if test x
"${AS+set}" = x
"set"; then
1178 if test x
"$with_gas" = x
"no"; then
1179 echo "$ac_t""yes ($AS)" 1>&6
1181 echo "$ac_t""yes ($AS - GNU as)" 1>&6
1184 echo "$ac_t""no" 1>&6
1187 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1188 echo "configure:1189: checking whether a default linker was specified" >&5
1189 if test x
"${LD+set}" = x
"set"; then
1190 if test x
"$with_gnu_ld" = x
"no"; then
1191 echo "$ac_t""yes ($LD)" 1>&6
1193 echo "$ac_t""yes ($LD - GNU ld)" 1>&6
1196 echo "$ac_t""no" 1>&6
1199 # Find some useful tools
1200 for ac_prog
in mawk gawk nawk
awk
1202 # Extract the first word of "$ac_prog", so it can be a program name with args.
1203 set dummy
$ac_prog; ac_word
=$2
1204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_word" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 if test -n "$AWK"; then
1210 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1212 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1213 for ac_dir
in $PATH; do
1214 test -z "$ac_dir" && ac_dir
=.
1215 if test -f $ac_dir/$ac_word; then
1216 ac_cv_prog_AWK
="$ac_prog"
1223 AWK
="$ac_cv_prog_AWK"
1224 if test -n "$AWK"; then
1225 echo "$ac_t""$AWK" 1>&6
1227 echo "$ac_t""no" 1>&6
1230 test -n "$AWK" && break
1233 # Extract the first word of "flex", so it can be a program name with args.
1234 set dummy flex
; ac_word
=$2
1235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_word" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 if test -n "$LEX"; then
1241 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1243 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1244 for ac_dir
in $PATH; do
1245 test -z "$ac_dir" && ac_dir
=.
1246 if test -f $ac_dir/$ac_word; then
1247 ac_cv_prog_LEX
="flex"
1252 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1255 LEX
="$ac_cv_prog_LEX"
1256 if test -n "$LEX"; then
1257 echo "$ac_t""$LEX" 1>&6
1259 echo "$ac_t""no" 1>&6
1262 if test -z "$LEXLIB"
1268 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1269 echo "configure:1270: checking for yywrap in -l$ac_lib" >&5
1270 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 ac_save_LIBS
="$LIBS"
1275 LIBS
="-l$ac_lib $LIBS"
1276 cat > conftest.
$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1279 /* Override any gcc2 internal prototype to avoid an error. */
1280 /* We use char because int might match the return type of a gcc2
1281 builtin and then its argument prototype would still apply. */
1288 if { (eval echo configure
:1289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1290 eval "ac_cv_lib_$ac_lib_var=yes"
1292 echo "configure: failed program was:" >&5
1293 cat conftest.
$ac_ext >&5
1295 eval "ac_cv_lib_$ac_lib_var=no"
1298 LIBS
="$ac_save_LIBS"
1301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1302 echo "$ac_t""yes" 1>&6
1305 echo "$ac_t""no" 1>&6
1310 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1311 echo "configure:1312: checking whether ln works" >&5
1312 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 rm -f conftestdata_t
1316 echo >conftestdata_f
1317 if ln conftestdata_f conftestdata_t
2>/dev
/null
1321 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1323 gcc_cv_prog_LN
="ln -s"
1328 rm -f conftestdata_f conftestdata_t
1331 LN
="$gcc_cv_prog_LN"
1332 if test "$gcc_cv_prog_LN" = "ln"; then
1333 echo "$ac_t""yes" 1>&6
1335 if test "$gcc_cv_prog_LN" = "ln -s"; then
1336 echo "$ac_t""no, using ln -s" 1>&6
1338 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1342 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1343 echo "configure:1344: checking whether ln -s works" >&5
1344 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1347 rm -f conftestdata_t
1348 echo >conftestdata_f
1349 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1351 gcc_cv_prog_LN_S
="ln -s"
1353 if ln conftestdata_f conftestdata_t
2>/dev
/null
1360 rm -f conftestdata_f conftestdata_t
1363 LN_S
="$gcc_cv_prog_LN_S"
1364 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1365 echo "$ac_t""yes" 1>&6
1367 if test "$gcc_cv_prog_LN_S" = "ln"; then
1368 echo "$ac_t""no, using ln" 1>&6
1370 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1374 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1375 echo "configure:1376: checking for volatile" >&5
1376 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 cat > conftest.
$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1387 if { (eval echo configure
:1388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1389 gcc_cv_c_volatile
=yes
1391 echo "configure: failed program was:" >&5
1392 cat conftest.
$ac_ext >&5
1394 gcc_cv_c_volatile
=no
1399 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1400 if test $gcc_cv_c_volatile = yes ; then
1401 cat >> confdefs.h
<<\EOF
1402 #define HAVE_VOLATILE 1
1407 # Extract the first word of "ranlib", so it can be a program name with args.
1408 set dummy ranlib
; ac_word
=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 if test -n "$RANLIB"; then
1415 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1417 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1418 for ac_dir
in $PATH; do
1419 test -z "$ac_dir" && ac_dir
=.
1420 if test -f $ac_dir/$ac_word; then
1421 ac_cv_prog_RANLIB
="ranlib"
1426 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1429 RANLIB
="$ac_cv_prog_RANLIB"
1430 if test -n "$RANLIB"; then
1431 echo "$ac_t""$RANLIB" 1>&6
1433 echo "$ac_t""no" 1>&6
1436 for ac_prog
in 'bison -y' byacc
1438 # Extract the first word of "$ac_prog", so it can be a program name with args.
1439 set dummy
$ac_prog; ac_word
=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 if test -n "$YACC"; then
1446 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1449 for ac_dir
in $PATH; do
1450 test -z "$ac_dir" && ac_dir
=.
1451 if test -f $ac_dir/$ac_word; then
1452 ac_cv_prog_YACC
="$ac_prog"
1459 YACC
="$ac_cv_prog_YACC"
1460 if test -n "$YACC"; then
1461 echo "$ac_t""$YACC" 1>&6
1463 echo "$ac_t""no" 1>&6
1466 test -n "$YACC" && break
1468 test -n "$YACC" || YACC
="yacc"
1470 # Find a good install program. We prefer a C program (faster),
1471 # so one script is as good as another. But avoid the broken or
1472 # incompatible versions:
1473 # SysV /etc/install, /usr/sbin/install
1474 # SunOS /usr/etc/install
1475 # IRIX /sbin/install
1477 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1478 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1479 # ./install, which can be erroneously created by make from ./install.sh.
1480 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1481 echo "configure:1482: checking for a BSD compatible install" >&5
1482 if test -z "$INSTALL"; then
1483 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1487 for ac_dir
in $PATH; do
1488 # Account for people who put trailing slashes in PATH elements.
1490 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1492 # OSF1 and SCO ODT 3.0 have their own names for install.
1493 for ac_prog
in ginstall scoinst
install; do
1494 if test -f $ac_dir/$ac_prog; then
1495 if test $ac_prog = install &&
1496 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1497 # AIX install. It has an incompatible calling convention.
1498 # OSF/1 installbsd also uses dspmsg, but is usable.
1501 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1512 if test "${ac_cv_path_install+set}" = set; then
1513 INSTALL
="$ac_cv_path_install"
1515 # As a last resort, use the slow shell script. We don't cache a
1516 # path for INSTALL within a source directory, because that will
1517 # break other packages using the cache if that directory is
1518 # removed, or if the path is relative.
1519 INSTALL
="$ac_install_sh"
1522 echo "$ac_t""$INSTALL" 1>&6
1524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1525 # It thinks the first close brace ends the variable substitution.
1526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1528 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1531 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1532 echo "configure:1533: checking how to run the C preprocessor" >&5
1533 # On Suns, sometimes $CPP names a directory.
1534 if test -n "$CPP" && test -d "$CPP"; then
1537 if test -z "$CPP"; then
1538 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 # This must be in double quotes, not single quotes, because CPP may get
1542 # substituted into the Makefile and "${CC-cc}" will confuse make.
1544 # On the NeXT, cc -E runs the code through the compiler's parser,
1545 # not just through cpp.
1546 cat > conftest.
$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1552 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1553 { (eval echo configure
:1554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1554 ac_err
=`grep -v '^ *+' conftest.out`
1555 if test -z "$ac_err"; then
1559 echo "configure: failed program was:" >&5
1560 cat conftest.
$ac_ext >&5
1562 CPP
="${CC-cc} -E -traditional-cpp"
1563 cat > conftest.
$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1569 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1570 { (eval echo configure
:1571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1571 ac_err
=`grep -v '^ *+' conftest.out`
1572 if test -z "$ac_err"; then
1576 echo "configure: failed program was:" >&5
1577 cat conftest.
$ac_ext >&5
1584 ac_cv_prog_CPP
="$CPP"
1586 CPP
="$ac_cv_prog_CPP"
1588 ac_cv_prog_CPP
="$CPP"
1590 echo "$ac_t""$CPP" 1>&6
1592 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1593 echo "configure:1594: checking for ANSI C header files" >&5
1594 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 cat > conftest.
$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1605 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1606 { (eval echo configure
:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1607 ac_err
=`grep -v '^ *+' conftest.out`
1608 if test -z "$ac_err"; then
1610 ac_cv_header_stdc
=yes
1613 echo "configure: failed program was:" >&5
1614 cat conftest.
$ac_ext >&5
1616 ac_cv_header_stdc
=no
1620 if test $ac_cv_header_stdc = yes; then
1621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1622 cat > conftest.
$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1628 egrep "memchr" >/dev
/null
2>&1; then
1632 ac_cv_header_stdc
=no
1638 if test $ac_cv_header_stdc = yes; then
1639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1640 cat > conftest.
$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1646 egrep "free" >/dev
/null
2>&1; then
1650 ac_cv_header_stdc
=no
1656 if test $ac_cv_header_stdc = yes; then
1657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1658 if test "$cross_compiling" = yes; then
1661 cat > conftest.
$ac_ext <<EOF
1662 #line 1663 "configure"
1663 #include "confdefs.h"
1665 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1666 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1668 int main () { int i; for (i = 0; i < 256; i++)
1669 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1673 if { (eval echo configure
:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1677 echo "configure: failed program was:" >&5
1678 cat conftest.
$ac_ext >&5
1680 ac_cv_header_stdc
=no
1688 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1689 if test $ac_cv_header_stdc = yes; then
1690 cat >> confdefs.h
<<\EOF
1691 #define STDC_HEADERS 1
1696 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1697 echo "configure:1698: checking whether time.h and sys/time.h may both be included" >&5
1698 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 cat > conftest.
$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704 #include <sys/types.h>
1705 #include <sys/time.h>
1711 if { (eval echo configure
:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1713 ac_cv_header_time
=yes
1715 echo "configure: failed program was:" >&5
1716 cat conftest.
$ac_ext >&5
1718 ac_cv_header_time
=no
1723 echo "$ac_t""$ac_cv_header_time" 1>&6
1724 if test $ac_cv_header_time = yes; then
1725 cat >> confdefs.h
<<\EOF
1726 #define TIME_WITH_SYS_TIME 1
1731 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether string.h and strings.h may both be included" >&5
1733 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1736 cat > conftest.
$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1740 #include <strings.h>
1745 if { (eval echo configure
:1746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1747 gcc_cv_header_string
=yes
1749 echo "configure: failed program was:" >&5
1750 cat conftest.
$ac_ext >&5
1752 gcc_cv_header_string
=no
1757 echo "$ac_t""$gcc_cv_header_string" 1>&6
1758 if test $gcc_cv_header_string = yes; then
1759 cat >> confdefs.h
<<\EOF
1760 #define STRING_WITH_STRINGS 1
1765 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h fcntl.h unistd.h stab.h sys
/file.h sys
/time.h sys
/resource.h sys
/param.h sys
/times.h
wait.h sys
/wait.h
1767 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1769 echo "configure:1770: checking for $ac_hdr" >&5
1770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 cat > conftest.
$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1778 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1779 { (eval echo configure
:1780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1780 ac_err
=`grep -v '^ *+' conftest.out`
1781 if test -z "$ac_err"; then
1783 eval "ac_cv_header_$ac_safe=yes"
1786 echo "configure: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1789 eval "ac_cv_header_$ac_safe=no"
1793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1796 cat >> confdefs.h
<<EOF
1797 #define $ac_tr_hdr 1
1801 echo "$ac_t""no" 1>&6
1806 # Check for thread headers.
1807 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1808 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1809 echo "configure:1810: checking for thread.h" >&5
1810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 cat > conftest.
$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1819 { (eval echo configure
:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1820 ac_err
=`grep -v '^ *+' conftest.out`
1821 if test -z "$ac_err"; then
1823 eval "ac_cv_header_$ac_safe=yes"
1826 echo "configure: failed program was:" >&5
1827 cat conftest.
$ac_ext >&5
1829 eval "ac_cv_header_$ac_safe=no"
1833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1834 echo "$ac_t""yes" 1>&6
1837 echo "$ac_t""no" 1>&6
1841 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1842 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1843 echo "configure:1844: checking for pthread.h" >&5
1844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1850 #include <pthread.h>
1852 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1853 { (eval echo configure
:1854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1854 ac_err
=`grep -v '^ *+' conftest.out`
1855 if test -z "$ac_err"; then
1857 eval "ac_cv_header_$ac_safe=yes"
1860 echo "configure: failed program was:" >&5
1861 cat conftest.
$ac_ext >&5
1863 eval "ac_cv_header_$ac_safe=no"
1867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1868 echo "$ac_t""yes" 1>&6
1871 echo "$ac_t""no" 1>&6
1876 # See if GNAT has been installed
1877 # Extract the first word of "gnatbind", so it can be a program name with args.
1878 set dummy gnatbind
; ac_word
=$2
1879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_word" >&5
1881 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 if test -n "$gnat"; then
1885 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
1887 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1888 for ac_dir
in $PATH; do
1889 test -z "$ac_dir" && ac_dir
=.
1890 if test -f $ac_dir/$ac_word; then
1891 ac_cv_prog_gnat
="yes"
1896 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
1899 gnat
="$ac_cv_prog_gnat"
1900 if test -n "$gnat"; then
1901 echo "$ac_t""$gnat" 1>&6
1903 echo "$ac_t""no" 1>&6
1907 # See if the system preprocessor understands the ANSI C preprocessor
1908 # stringification operator.
1909 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1910 echo "configure:1911: checking whether cpp understands the stringify operator" >&5
1911 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1920 char *test = S(foo);
1923 if { (eval echo configure
:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1925 gcc_cv_c_have_stringify
=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.
$ac_ext >&5
1930 gcc_cv_c_have_stringify
=no
1935 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1936 if test $gcc_cv_c_have_stringify = yes; then
1937 cat >> confdefs.h
<<\EOF
1938 #define HAVE_CPP_STRINGIFY 1
1943 # Use <inttypes.h> only if it exists,
1944 # doesn't clash with <sys/types.h>, and declares intmax_t.
1945 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1946 echo "configure:1947: checking for inttypes.h" >&5
1947 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 #include <sys/types.h>
1954 #include <inttypes.h>
1959 if { (eval echo configure
:1960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1961 cat >> confdefs.h
<<EOF
1962 #define HAVE_INTTYPES_H 1
1965 gcc_cv_header_inttypes_h
=yes
1967 echo "configure: failed program was:" >&5
1968 cat conftest.
$ac_ext >&5
1970 gcc_cv_header_inttypes_h
=no
1975 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1977 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1978 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
1979 sysconf isascii gettimeofday strsignal
1981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_func" >&5
1983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.
$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 /* System header to define __stub macros and hopefully few prototypes,
1990 which can conflict with char $ac_func(); below. */
1992 /* Override any gcc2 internal prototype to avoid an error. */
1993 /* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
1999 /* The GNU C library defines this for functions which it implements
2000 to always fail with ENOSYS. Some functions are actually named
2001 something starting with __ and the normal name is an alias. */
2002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2010 if { (eval echo configure
:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2012 eval "ac_cv_func_$ac_func=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2017 eval "ac_cv_func_$ac_func=no"
2022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2023 echo "$ac_t""yes" 1>&6
2024 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2025 cat >> confdefs.h
<<EOF
2026 #define $ac_tr_func 1
2030 echo "$ac_t""no" 1>&6
2035 # Make sure wchar_t is available
2036 #AC_CHECK_TYPE(wchar_t, unsigned int)
2038 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2039 echo "configure:2040: checking for vprintf" >&5
2040 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2043 cat > conftest.
$ac_ext <<EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2046 /* System header to define __stub macros and hopefully few prototypes,
2047 which can conflict with char vprintf(); below. */
2049 /* Override any gcc2 internal prototype to avoid an error. */
2050 /* We use char because int might match the return type of a gcc2
2051 builtin and then its argument prototype would still apply. */
2056 /* The GNU C library defines this for functions which it implements
2057 to always fail with ENOSYS. Some functions are actually named
2058 something starting with __ and the normal name is an alias. */
2059 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2067 if { (eval echo configure
:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2069 eval "ac_cv_func_vprintf=yes"
2071 echo "configure: failed program was:" >&5
2072 cat conftest.
$ac_ext >&5
2074 eval "ac_cv_func_vprintf=no"
2079 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2080 echo "$ac_t""yes" 1>&6
2081 cat >> confdefs.h
<<\EOF
2082 #define HAVE_VPRINTF 1
2086 echo "$ac_t""no" 1>&6
2089 if test "$ac_cv_func_vprintf" != yes; then
2090 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2091 echo "configure:2092: checking for _doprnt" >&5
2092 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 cat > conftest.
$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 /* System header to define __stub macros and hopefully few prototypes,
2099 which can conflict with char _doprnt(); below. */
2101 /* Override any gcc2 internal prototype to avoid an error. */
2102 /* We use char because int might match the return type of a gcc2
2103 builtin and then its argument prototype would still apply. */
2108 /* The GNU C library defines this for functions which it implements
2109 to always fail with ENOSYS. Some functions are actually named
2110 something starting with __ and the normal name is an alias. */
2111 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2119 if { (eval echo configure
:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2121 eval "ac_cv_func__doprnt=yes"
2123 echo "configure: failed program was:" >&5
2124 cat conftest.
$ac_ext >&5
2126 eval "ac_cv_func__doprnt=no"
2131 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2132 echo "$ac_t""yes" 1>&6
2133 cat >> confdefs.h
<<\EOF
2134 #define HAVE_DOPRNT 1
2138 echo "$ac_t""no" 1>&6
2145 if test $ac_cv_func_vprintf != yes ; then
2147 if test $ac_cv_func__doprnt != yes ; then
2154 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2155 echo "configure:2156: checking whether the printf functions support %p" >&5
2156 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 if test "$cross_compiling" = yes; then
2160 gcc_cv_func_printf_ptr
=no
2162 cat > conftest.
$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2170 char *p = buf, *q = NULL;
2171 sprintf(buf, "%p", p);
2172 sscanf(buf, "%p", &q);
2176 if { (eval echo configure
:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2178 gcc_cv_func_printf_ptr
=yes
2180 echo "configure: failed program was:" >&5
2181 cat conftest.
$ac_ext >&5
2183 gcc_cv_func_printf_ptr
=no
2188 rm -f core core.
* *.core
2191 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2192 if test $gcc_cv_func_printf_ptr = yes ; then
2193 cat >> confdefs.h
<<\EOF
2194 #define HAVE_PRINTF_PTR 1
2200 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
2201 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2204 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2205 echo "configure:2206: checking whether $ac_func must be declared" >&5
2206 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 cat > conftest.
$ac_ext <<EOF
2210 #line 2211 "configure"
2211 #include "confdefs.h"
2214 #ifdef STRING_WITH_STRINGS
2215 # include <string.h>
2216 # include <strings.h>
2218 # ifdef HAVE_STRING_H
2219 # include <string.h>
2221 # ifdef HAVE_STRINGS_H
2222 # include <strings.h>
2226 #ifdef HAVE_STDLIB_H
2229 #ifdef HAVE_UNISTD_H
2233 #define rindex strrchr
2236 #define index strchr
2240 char *(*pfn) = (char *(*)) $ac_func
2243 if { (eval echo configure
:2244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2245 eval "gcc_cv_decl_needed_$ac_func=no"
2247 echo "configure: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2250 eval "gcc_cv_decl_needed_$ac_func=yes"
2255 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2256 echo "$ac_t""yes" 1>&6
2257 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2258 cat >> confdefs.h
<<EOF
2259 #define $gcc_tr_decl 1
2263 echo "$ac_t""no" 1>&6
2269 for ac_func
in getrlimit setrlimit
2271 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2272 echo "configure:2273: checking whether $ac_func must be declared" >&5
2273 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 cat > conftest.
$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2281 #ifdef STRING_WITH_STRINGS
2282 # include <string.h>
2283 # include <strings.h>
2285 # ifdef HAVE_STRING_H
2286 # include <string.h>
2288 # ifdef HAVE_STRINGS_H
2289 # include <strings.h>
2293 #ifdef HAVE_STDLIB_H
2296 #ifdef HAVE_UNISTD_H
2300 #define rindex strrchr
2303 #define index strchr
2305 #include <sys/types.h>
2306 #ifdef HAVE_SYS_RESOURCE_H
2307 #include <sys/resource.h>
2311 char *(*pfn) = (char *(*)) $ac_func
2314 if { (eval echo configure
:2315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2316 eval "gcc_cv_decl_needed_$ac_func=no"
2318 echo "configure: failed program was:" >&5
2319 cat conftest.
$ac_ext >&5
2321 eval "gcc_cv_decl_needed_$ac_func=yes"
2326 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2329 cat >> confdefs.h
<<EOF
2330 #define $gcc_tr_decl 1
2334 echo "$ac_t""no" 1>&6
2340 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2341 echo "configure:2342: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2342 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <sys/types.h>
2350 /* NetBSD declares sys_siglist in unistd.h. */
2351 #ifdef HAVE_UNISTD_H
2355 char *msg = *(sys_siglist + 1);
2358 if { (eval echo configure
:2359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2360 ac_cv_decl_sys_siglist
=yes
2362 echo "configure: failed program was:" >&5
2363 cat conftest.
$ac_ext >&5
2365 ac_cv_decl_sys_siglist
=no
2370 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2371 if test $ac_cv_decl_sys_siglist = yes; then
2372 cat >> confdefs.h
<<\EOF
2373 #define SYS_SIGLIST_DECLARED 1
2387 build_install_headers_dir
=install-headers-tar
2392 host_truncate_target
=
2395 # Decode the host machine, then the target machine.
2396 # For the host machine, we save the xm_file variable as host_xm_file;
2397 # then we decode the target machine and forget everything else
2398 # that came from the host machine.
2399 for machine
in $build $host $target; do
2413 # Set this to force installation and use of collect2.
2415 # Set this to override the default target model.
2417 # Set this to control which fixincludes program to use.
2418 if test x
$fast_fixinc != xyes
; then
2419 fixincludes
=fixincludes
2420 else fixincludes
=fixinc.sh
; fi
2421 # Set this to control how the header file directory is installed.
2422 install_headers_dir
=install-headers-tar
2423 # Set this to a non-empty list of args to pass to cpp if the target
2424 # wants its .md file passed through cpp.
2426 # Set this if directory names should be truncated to 14 characters.
2428 # Set this if gdb needs a dir command with `dirname $out_file`
2429 gdb_needs_out_file_path
=
2430 # Set this if the build machine requires executables to have a
2433 # Set this to control which thread package will be used.
2435 # Reinitialize these from the flag values every loop pass, since some
2436 # configure entries modify them.
2438 gnu_ld
="$gnu_ld_flag"
2439 enable_threads
=$enable_threads_flag
2441 # Set default cpu_type, tm_file and xm_file so it can be updated in
2442 # each machine entry.
2443 cpu_type
=`echo $machine | sed 's/-.*$//'`
2477 tm_file
=${cpu_type}/${cpu_type}.h
2478 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2480 # Set the default macros to define for GNU/Linux systems.
2483 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2488 # Support site-specific machine types.
2490 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2491 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2492 xm_file
=${cpu_type}/xm-
$rest.h
2493 tm_file
=${cpu_type}/$rest.h
2494 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
2495 then xmake_file
=${cpu_type}/x-
$rest; \
2498 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
2499 then tmake_file
=${cpu_type}/t-
$rest; \
2505 a29k-
*-bsd* | a29k-
*-sym1*)
2506 tm_file
="${tm_file} a29k/unix.h"
2508 xmake_file
=a29k
/x-unix
2511 a29k-
*-udi | a29k-
*-coff)
2512 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2513 tmake_file
=a29k
/t-a29kbare
2516 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2517 tmake_file
=a29k
/t-vx29k
2518 extra_parts
="crtbegin.o crtend.o"
2519 thread_file
='vxworks'
2521 a29k-
*-*) # Default a29k environment.
2524 alpha
*-*-linux-gnuecoff*)
2525 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2526 target_cpu_default
="MASK_GAS"
2531 alpha
*-*-linux-gnulibc1*)
2532 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2533 target_cpu_default
="MASK_GAS"
2534 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2535 extra_parts
="crtbegin.o crtend.o"
2536 fixincludes
=fixinc.wrap
2539 if test x
$enable_threads = xyes
; then
2543 alpha
*-*-linux-gnu*)
2544 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2545 target_cpu_default
="MASK_GAS"
2546 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2547 extra_parts
="crtbegin.o crtend.o"
2549 fixincludes
=Makefile.
in
2551 if test x
$enable_threads = xyes
; then
2556 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2557 target_cpu_default
="MASK_GAS"
2558 tmake_file
="alpha/t-crtbe"
2559 extra_parts
="crtbegin.o crtend.o"
2561 fixincludes
=fixinc.wrap
2566 if test x
$stabs = xyes
2568 tm_file
="${tm_file} dbx.h"
2570 if test x
$gas != xyes
2572 extra_passes
="mips-tfile mips-tdump"
2577 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2580 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2583 tm_file
="${tm_file} alpha/osf.h"
2584 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2585 # a broken tar, so we use cpio instead.
2586 install_headers_dir
=install-headers-cpio
2590 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2591 target_cpu_default
=MASK_SUPPORT_ARCH
2596 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
2599 extra_passes
="mips-tfile mips-tdump"
2604 tm_file
="${tm_file} alpha/win-nt.h"
2605 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2606 tmake_file
=t-libc-ok
2607 xmake_file
=winnt
/x-winnt
2608 extra_host_objs
=oldnames.o
2609 extra_gcc_objs
="spawnv.o oldnames.o"
2610 fixincludes
=fixinc.winnt
2611 if test x
$gnu_ld != xyes
2613 extra_programs
=ld.exe
2615 if test x
$enable_threads = xyes
; then
2621 xm_file
="${xm_file} alpha/xm-vms.h"
2622 tmake_file
=alpha
/t-vms
2623 fixincludes
=Makefile.
in
2626 extra_parts
="crtinit.o crtfini.o"
2628 arm-
*-coff* | armel-
*-coff*)
2630 tmake_file
=arm
/t-bare
2632 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2633 tm_file
=arm
/riscix1-1.h
2636 arm-
*-riscix*) # Acorn RISC machine
2637 if test x
$gas = xyes
2639 tm_file
=arm
/rix-gas.h
2641 tm_file
=arm
/riscix.h
2643 xmake_file
=arm
/x-riscix
2644 tmake_file
=arm
/t-riscix
2647 arm-semi-aout | armel-semi-aout
)
2649 tmake_file
=arm
/t-semi
2650 fixincludes
=Makefile.
in # There is nothing to fix
2652 arm-semi-aof | armel-semi-aof
)
2653 tm_file
=arm
/semiaof.h
2654 tmake_file
=arm
/t-semiaof
2655 fixincludes
=Makefile.
in # There is nothing to fix
2658 tm_file
=arm
/netbsd.h
2659 xm_file
="arm/xm-netbsd.h ${xm_file}"
2660 tmake_file
="t-netbsd arm/t-netbsd"
2661 # On NetBSD, the headers are already okay, except for math.h.
2662 fixincludes
=fixinc.wrap
2664 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2667 tm_file
=arm
/linux-gas.h
2668 tmake_file
=arm
/t-linux
2669 fixincludes
=Makefile.
in
2674 tmake_file
=arm
/t-bare
2676 c1-convex-
*) # Convex C1
2677 target_cpu_default
=1
2679 fixincludes
=Makefile.
in
2681 c2-convex-
*) # Convex C2
2682 target_cpu_default
=2
2684 fixincludes
=Makefile.
in
2687 target_cpu_default
=4
2689 fixincludes
=Makefile.
in
2692 target_cpu_default
=8
2694 fixincludes
=Makefile.
in
2697 target_cpu_default
=16
2699 fixincludes
=Makefile.
in
2703 tmake_file
=c4x
/t-c4x
2705 clipper-intergraph-clix
*)
2706 tm_file
="${tm_file} svr3.h clipper/clix.h"
2707 xm_file
=clipper
/xm-clix.h
2708 xmake_file
=clipper
/x-clix
2709 extra_headers
=va-clipper.h
2710 extra_parts
="crtbegin.o crtend.o"
2711 install_headers_dir
=install-headers-cpio
2718 # This hasn't been upgraded to GCC 2.
2719 # fx80-alliant-*) # Alliant FX/80
2725 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2726 xm_file
=pa
/xm-papro.h
2730 target_cpu_default
=1
2731 tm_file
="${tm_file} pa/pa-osf.h"
2733 fixincludes
=Makefile.
in
2736 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2737 xm_file
=pa
/xm-papro.h
2741 tm_file
="${tm_file} pa/pa-osf.h"
2743 fixincludes
=Makefile.
in
2746 target_cpu_default
=1
2748 fixincludes
=Makefile.
in
2752 fixincludes
=Makefile.
in
2755 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2756 xm_file
=pa
/xm-pahpux.h
2757 xmake_file
=pa
/x-pa-hpux
2758 if test x
$gas = xyes
2760 tm_file
="${tm_file} pa/gas.h"
2762 install_headers_dir
=install-headers-cpio
2765 hppa1.0
-*-hpux8.0
[0-2]*)
2766 tm_file
="${tm_file} pa/pa-hpux.h"
2767 xm_file
=pa
/xm-pahpux.h
2768 xmake_file
=pa
/x-pa-hpux
2769 if test x
$gas = xyes
2771 tm_file
="${tm_file} pa/pa-gas.h"
2773 tm_file
="pa/pa-oldas.h ${tm_file}"
2775 install_headers_dir
=install-headers-cpio
2778 hppa1.1
-*-hpux8.0
[0-2]*)
2779 target_cpu_default
=1
2780 tm_file
="${tm_file} pa/pa-hpux.h"
2781 xm_file
=pa
/xm-pahpux.h
2782 xmake_file
=pa
/x-pa-hpux
2783 if test x
$gas = xyes
2785 tm_file
="${tm_file} pa/pa-gas.h"
2787 tm_file
="pa/pa-oldas.h ${tm_file}"
2789 install_headers_dir
=install-headers-cpio
2793 target_cpu_default
=1
2794 tm_file
="${tm_file} pa/pa-hpux.h"
2795 xm_file
=pa
/xm-pahpux.h
2796 xmake_file
=pa
/x-pa-hpux
2797 if test x
$gas = xyes
2799 tm_file
="${tm_file} pa/pa-gas.h"
2801 install_headers_dir
=install-headers-cpio
2805 tm_file
="${tm_file} pa/pa-hpux.h"
2806 xm_file
=pa
/xm-pahpux.h
2807 xmake_file
=pa
/x-pa-hpux
2808 if test x
$gas = xyes
2810 tm_file
="${tm_file} pa/pa-gas.h"
2812 install_headers_dir
=install-headers-cpio
2816 target_cpu_default
=1
2817 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2818 xm_file
=pa
/xm-pahpux.h
2819 xmake_file
=pa
/x-pa-hpux
2821 if test x
$gas = xyes
2823 tm_file
="${tm_file} pa/pa-gas.h"
2825 if test x
$enable_threads = x
; then
2826 enable_threads
=$have_pthread_h
2828 if test x
$enable_threads = xyes
; then
2830 tmake_file
="${tmake_file} pa/t-dce-thr"
2832 install_headers_dir
=install-headers-cpio
2836 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2837 xm_file
=pa
/xm-pahpux.h
2838 xmake_file
=pa
/x-pa-hpux
2839 if test x
$gas = xyes
2841 tm_file
="${tm_file} pa/pa-gas.h"
2843 if test x
$enable_threads = x
; then
2844 enable_threads
=$have_pthread_h
2846 if test x
$enable_threads = xyes
; then
2848 tmake_file
="${tmake_file} pa/t-dce-thr"
2850 install_headers_dir
=install-headers-cpio
2854 target_cpu_default
=1
2855 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2856 xm_file
=pa
/xm-pahpux.h
2857 xmake_file
=pa
/x-pa-hpux
2858 if test x
$gas = xyes
2860 tm_file
="${tm_file} pa/pa-gas.h"
2862 install_headers_dir
=install-headers-cpio
2866 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2867 xm_file
=pa
/xm-pahpux.h
2868 xmake_file
=pa
/x-pa-hpux
2869 if test x
$gas = xyes
2871 tm_file
="${tm_file} pa/pa-gas.h"
2873 install_headers_dir
=install-headers-cpio
2877 target_cpu_default
=1
2878 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2879 xm_file
=pa
/xm-pahpux.h
2880 xmake_file
=pa
/x-pa-hpux
2881 if test x
$gas = xyes
2883 tm_file
="${tm_file} pa/pa-gas.h"
2885 install_headers_dir
=install-headers-cpio
2889 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2890 xm_file
=pa
/xm-pahpux.h
2891 xmake_file
=pa
/x-pa-hpux
2892 if test x
$gas = xyes
2894 tm_file
="${tm_file} pa/pa-gas.h"
2896 install_headers_dir
=install-headers-cpio
2900 target_cpu_default
=1
2902 fixincludes
=Makefile.
in
2906 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2907 if test x
$gas = xyes
2909 tm_file
=i386
/aix386.h
2910 extra_parts
="crtbegin.o crtend.o"
2911 tmake_file
=i386
/t-crtstuff
2913 tm_file
=i386
/aix386ng.h
2916 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2918 xmake_file
=i386
/x-aix
2920 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2921 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2922 xm_defines
="USG POSIX SMALL_ARG_MAX"
2923 xmake_file
=i386
/x-ncr3000
2924 if test x
$stabs = xyes
-a x
$gas = xyes
2926 tm_file
=i386
/sysv4gdb.h
2928 tm_file
=i386
/sysv4.h
2930 extra_parts
="crtbegin.o crtend.o"
2931 tmake_file
=i386
/t-crtpic
2935 xm_file
=i386
/xm-next.h
2936 tmake_file
=i386
/t-next
2937 xmake_file
=i386
/x-next
2938 extra_objs
=nextstep.o
2939 extra_parts
="crtbegin.o crtend.o"
2940 if test x
$enable_threads = xyes
; then
2944 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2946 if test x
$gas = xyes
2948 tm_file
=i386
/seq-gas.h
2950 tm_file
=i386
/sequent.h
2953 i
[34567]86-sequent-ptx1*)
2954 xm_defines
="USG SVR3"
2955 xmake_file
=i386
/x-sysv3
2956 tm_file
=i386
/seq-sysv3.h
2957 tmake_file
=i386
/t-crtstuff
2958 fixincludes
=fixinc.
ptx
2959 extra_parts
="crtbegin.o crtend.o"
2960 install_headers_dir
=install-headers-cpio
2962 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2963 xm_defines
="USG SVR3"
2964 xmake_file
=i386
/x-sysv3
2965 tm_file
=i386
/seq2-sysv3.h
2966 tmake_file
=i386
/t-crtstuff
2967 extra_parts
="crtbegin.o crtend.o"
2968 fixincludes
=fixinc.
ptx
2969 install_headers_dir
=install-headers-cpio
2971 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2972 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2973 xm_defines
="USG POSIX SMALL_ARG_MAX"
2975 tm_file
=i386
/ptx4-i.h
2977 extra_parts
="crtbegin.o crtend.o"
2978 fixincludes
=fixinc.
ptx
2979 install_headers_dir
=install-headers-cpio
2981 i386-sun-sunos
*) # Sun i386 roadrunner
2986 i
[34567]86-wrs-vxworks*)
2987 tm_file
=i386
/vxi386.h
2988 tmake_file
=i386
/t-i386bare
2991 tm_file
=i386
/i386-aout.h
2992 tmake_file
=i386
/t-i386bare
2994 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2995 tm_file
=i386
/bsd386.h
2996 # tmake_file=t-libc-ok
2999 tm_file
=i386
/386bsd.h
3000 # tmake_file=t-libc-ok
3001 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3004 i
[34567]86-*-freebsdelf*)
3005 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
3006 # On FreeBSD, the headers are already ok, except for math.h.
3007 fixincludes
=fixinc.wrap
3008 tmake_file
=i386
/t-freebsd
3013 i
[34567]86-*-freebsd*)
3014 tm_file
=i386
/freebsd.h
3015 # On FreeBSD, the headers are already ok, except for math.h.
3016 fixincludes
=fixinc.wrap
3017 tmake_file
=i386
/t-freebsd
3019 # We are hoping OpenBSD is still close enough to NetBSD that we can
3020 # share the configurations.
3021 i
[34567]86-*-netbsd* | i
[34567]86-*-openbsd*)
3022 tm_file
=i386
/netbsd.h
3023 # On NetBSD, the headers are already okay, except for math.h.
3024 fixincludes
=fixinc.wrap
3028 tm_file
=i386
/i386-coff.h
3029 tmake_file
=i386
/t-i386bare
3031 i
[34567]86-*-isc*) # 80386 running ISC system
3032 xm_file
="${xm_file} i386/xm-isc.h"
3033 xm_defines
="USG SVR3"
3035 i
[34567]86-*-isc[34]*)
3036 xmake_file
=i386
/x-isc3
3039 xmake_file
=i386
/x-isc
3042 if test x
$gas = xyes
-a x
$stabs = xyes
3044 tm_file
=i386
/iscdbx.h
3045 tmake_file
=i386
/t-svr3dbx
3046 extra_parts
="svr3.ifile svr3z.ifile"
3048 tm_file
=i386
/isccoff.h
3049 tmake_file
=i386
/t-crtstuff
3050 extra_parts
="crtbegin.o crtend.o"
3052 install_headers_dir
=install-headers-cpio
3054 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3056 xmake_file
=x-linux-aout
3057 tmake_file
="t-linux-aout i386/t-crtstuff"
3058 tm_file
=i386
/linux-oldld.h
3059 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
3063 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3064 xmake_file
=x-linux-aout
3065 tmake_file
="t-linux-aout i386/t-crtstuff"
3066 tm_file
=i386
/linux-aout.h
3067 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
3071 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3072 # GNU/Linux C library 5
3074 tm_file
=i386
/linux.h
3075 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3076 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3077 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
3080 if test x
$enable_threads = xyes
; then
3081 thread_file
='single'
3084 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3085 # aka GNU/Linux C library 6
3087 tm_file
=i386
/linux.h
3088 tmake_file
="t-linux i386/t-crtstuff"
3089 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3090 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
3093 if test x
$enable_threads = xyes
; then
3099 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
3100 xm_file
=i386
/xm-go32.h
3102 tmake_file
=i386
/t-go32
3104 i
[34567]86-pc-msdosdjgpp*)
3105 xm_file
=i386
/xm-go32.h
3107 tmake_file
=i386
/t-go32
3111 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
3113 tmake_file
=t-libc-ok
3114 fixincludes
=Makefile.
in
3118 i
[34567]86-*-lynxos*)
3119 if test x
$gas = xyes
3123 tm_file
=i386
/lynx-ng.h
3125 xm_file
=i386
/xm-lynx.h
3126 tmake_file
=i386
/t-i386bare
3131 # tmake_file=t-libc-ok
3134 i
[34567]86-*-osfrose*) # 386 using OSF/rose
3135 if test x
$elf = xyes
3137 tm_file
=i386
/osfelf.h
3140 tm_file
=i386
/osfrose.h
3143 xm_file
="i386/xm-osf.h ${xm_file}"
3144 xmake_file
=i386
/x-osfrose
3145 tmake_file
=i386
/t-osf
3146 extra_objs
=halfpic.o
3148 i
[34567]86-go32-rtems*)
3150 xm_file
=i386
/xm-go32.h
3151 tm_file
=i386
/go32-rtems.h
3152 tmake_file
="i386/t-go32 t-rtems"
3154 i
[34567]86-*-rtemself*)
3156 tm_file
=i386
/rtemself.h
3157 tmake_file
="i386/t-i386bare t-rtems"
3159 i
[34567]86-*-rtems*)
3161 tm_file
=i386
/rtems.h
3162 tmake_file
="i386/t-i386bare t-rtems"
3164 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
3165 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3166 xm_defines
="USG SVR3"
3167 xmake_file
=i386
/x-sco5
3168 fixincludes
=fixinc.sco
3169 install_headers_dir
=install-headers-cpio
3171 if test x
$gas = xyes
3173 tm_file
="i386/sco5gas.h ${tm_file}"
3174 tmake_file
=i386
/t-sco5gas
3176 tmake_file
=i386
/t-sco5
3178 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3180 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
3181 xm_file
="${xm_file} i386/xm-sco.h"
3182 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3183 xmake_file
=i386
/x-sco4
3184 fixincludes
=fixinc.sco
3185 install_headers_dir
=install-headers-cpio
3186 if test x
$stabs = xyes
3188 tm_file
=i386
/sco4dbx.h
3189 tmake_file
=i386
/t-svr3dbx
3190 extra_parts
="svr3.ifile svr3z.rfile"
3193 tmake_file
=i386
/t-crtstuff
3194 extra_parts
="crtbegin.o crtend.o"
3198 i
[34567]86-*-sco*) # 80386 running SCO system
3199 xm_file
=i386
/xm-sco.h
3200 xmake_file
=i386
/x-sco
3201 install_headers_dir
=install-headers-cpio
3202 if test x
$stabs = xyes
3204 tm_file
=i386
/scodbx.h
3205 tmake_file
=i386
/t-svr3dbx
3206 extra_parts
="svr3.ifile svr3z.rfile"
3209 extra_parts
="crtbegin.o crtend.o"
3210 tmake_file
=i386
/t-crtstuff
3214 i
[34567]86-*-solaris2*)
3215 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3216 xm_defines
="USG POSIX SMALL_ARG_MAX"
3217 if test x
$stabs = xyes
3219 tm_file
=i386
/sol2dbg.h
3223 tmake_file
=i386
/t-sol2
3224 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3228 fixincludes
=fixinc.svr4
;;
3230 fixincludes
=fixinc.wrap
;;
3232 if test x
$enable_threads = xyes
; then
3233 thread_file
='solaris'
3236 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3237 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3238 xm_defines
="USG POSIX"
3239 tm_file
=i386
/sysv4.h
3240 if test x
$stabs = xyes
3242 tm_file
="${tm_file} dbx.h"
3244 tmake_file
=i386
/t-crtpic
3246 extra_parts
="crtbegin.o crtend.o"
3247 fixincludes
=fixinc.svr4
3249 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
3250 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3251 xm_defines
="USG POSIX SMALL_ARG_MAX"
3252 tm_file
=i386
/sysv4.h
3253 if test x
$stabs = xyes
3255 tm_file
="${tm_file} dbx.h"
3257 tmake_file
=i386
/t-crtpic
3259 extra_parts
="crtbegin.o crtend.o"
3261 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3263 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3264 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
3265 fixincludes
=Makefile.
in #Don't do it on OSF/1
3266 if test x
$stabs = xyes
3268 tm_file
=i386
/osf1elfgdb.h
3270 tm_file
=i386
/osf1elf.h
3272 tmake_file
=i386
/t-osf1elf
3273 xmake_file
=i386
/x-osf1elf
3274 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3276 i
[34567]86-*-sysv*) # Intel 80386's running system V
3277 xm_defines
="USG SVR3"
3278 xmake_file
=i386
/x-sysv3
3279 if test x
$gas = xyes
3281 if test x
$stabs = xyes
3283 tm_file
=i386
/svr3dbx.h
3284 tmake_file
=i386
/t-svr3dbx
3285 extra_parts
="svr3.ifile svr3z.rfile"
3287 tm_file
=i386
/svr3gas.h
3288 extra_parts
="crtbegin.o crtend.o"
3289 tmake_file
=i386
/t-crtstuff
3292 tm_file
=i386
/sysv3.h
3293 extra_parts
="crtbegin.o crtend.o"
3294 tmake_file
=i386
/t-crtstuff
3297 i386-
*-vsta) # Intel 80386's running VSTa kernel
3298 xm_file
="${xm_file} i386/xm-vsta.h"
3300 tmake_file
=i386
/t-vsta
3301 xmake_file
=i386
/x-vsta
3304 xm_file
="${xm_file} i386/xm-cygwin32.h"
3305 tmake_file
=i386
/t-cygwin32
3306 tm_file
=i386
/win32.h
3307 xmake_file
=i386
/x-cygwin32
3309 fixincludes
=Makefile.
in
3310 if test x
$enable_threads = xyes
; then
3315 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
3316 xm_file
="${xm_file} i386/xm-cygwin32.h"
3317 tmake_file
=i386
/t-cygwin32
3318 tm_file
=i386
/cygwin32.h
3319 xmake_file
=i386
/x-cygwin32
3321 fixincludes
=Makefile.
in
3322 if test x
$enable_threads = xyes
; then
3327 i
[34567]86-*-mingw32*)
3328 tm_file
=i386
/mingw32.h
3329 xm_file
="${xm_file} i386/xm-mingw32.h"
3330 tmake_file
="i386/t-cygwin32 i386/t-mingw32"
3332 xmake_file
=i386
/x-cygwin32
3333 fixincludes
=Makefile.
in
3334 if test x
$enable_threads = xyes
; then
3341 *minwg32crt
* |
*mingw32
*)
3342 tm_file
="${tm_file} i386/crtdll.h"
3346 i
[34567]86-*-winnt3*)
3347 tm_file
=i386
/win-nt.h
3348 out_file
=i386
/i386.c
3349 xm_file
="xm-winnt.h ${xm_file}"
3350 xmake_file
=winnt
/x-winnt
3351 tmake_file
=i386
/t-winnt
3352 extra_host_objs
="winnt.o oldnames.o"
3353 extra_gcc_objs
="spawnv.o oldnames.o"
3354 fixincludes
=fixinc.winnt
3355 if test x
$gnu_ld != xyes
3357 extra_programs
=ld.exe
3359 if test x
$enable_threads = xyes
; then
3363 i
[34567]86-dg-dgux*)
3364 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3365 xm_defines
="USG POSIX"
3366 out_file
=i386
/dgux.c
3368 tmake_file
=i386
/t-dgux
3369 xmake_file
=i386
/x-dgux
3370 fixincludes
=fixinc.dgux
3371 install_headers_dir
=install-headers-cpio
3373 i860-alliant-
*) # Alliant FX/2800
3374 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3375 xm_file
="${xm_file}"
3376 xmake_file
=i860
/x-fx2800
3377 tmake_file
=i860
/t-fx2800
3378 extra_parts
="crtbegin.o crtend.o"
3381 tm_file
="${tm_file} i860/bsd.h"
3382 if test x
$gas = xyes
3384 tm_file
="${tm_file} i860/bsd-gas.h"
3389 tm_file
="${tm_file} i860/mach.h"
3390 tmake_file
=t-libc-ok
3392 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3393 tm_file
="${tm_file} svr3.h i860/paragon.h"
3394 xm_defines
="USG SVR3"
3398 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3399 xm_defines
="USG SVR3"
3400 xmake_file
=i860
/x-sysv3
3401 extra_parts
="crtbegin.o crtend.o"
3404 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3405 xm_defines
="USG SVR3"
3406 xmake_file
=i860
/x-sysv4
3408 extra_parts
="crtbegin.o crtend.o"
3410 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3411 tm_file
="${tm_file} i960/vx960.h"
3412 tmake_file
=i960
/t-vxworks960
3414 thread_file
='vxworks'
3416 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3417 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3418 tmake_file
=i960
/t-vxworks960
3420 thread_file
='vxworks'
3423 tm_file
="${tm_file} i960/vx960.h"
3424 tmake_file
=i960
/t-vxworks960
3426 thread_file
='vxworks'
3429 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3430 tmake_file
=i960
/t-960bare
3434 tmake_file
="i960/t-960bare t-rtems"
3435 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3438 i960-
*-*) # Default i960 environment.
3442 extra_parts
="crtinit.o crtfini.o"
3444 m68000-convergent-sysv
*)
3446 xm_file
="m68k/xm-3b1.h ${xm_file}"
3449 extra_headers
=math-68881.h
3451 m68000-hp-bsd
*) # HP 9000/200 running BSD
3452 tm_file
=m68k
/hp2bsd.h
3453 xmake_file
=m68k
/x-hp2bsd
3455 extra_headers
=math-68881.h
3457 m68000-hp-hpux
*) # HP 9000 series 300
3458 xm_file
="xm_alloca.h ${xm_file}"
3459 xm_defines
="USG NO_SYS_SIGLIST"
3460 if test x
$gas = xyes
3462 xmake_file
=m68k
/x-hp320g
3463 tm_file
=m68k
/hp310g.h
3465 xmake_file
=m68k
/x-hp320
3466 tm_file
=m68k
/hp310.h
3468 install_headers_dir
=install-headers-cpio
3470 extra_headers
=math-68881.h
3475 extra_headers
=math-68881.h
3478 tm_file
=m68k
/sun2o4.h
3480 extra_headers
=math-68881.h
3483 xm_file
="m68k/xm-3b1.h ${xm_file}"
3485 if test x
$gas = xyes
3492 extra_headers
=math-68881.h
3494 m68k-apple-aux
*) # Apple Macintosh running A/UX
3495 xm_defines
="USG AUX"
3496 tmake_file
=m68k
/t-aux
3497 install_headers_dir
=install-headers-cpio
3498 extra_headers
=math-68881.h
3499 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3501 if test "$gnu_ld" = yes
3503 tm_file
="${tm_file} m68k/auxgld.h"
3505 tm_file
="${tm_file} m68k/auxld.h"
3507 if test "$gas" = yes
3509 tm_file
="${tm_file} m68k/auxgas.h"
3511 tm_file
="${tm_file} m68k/auxas.h"
3513 tm_file
="${tm_file} m68k/a-ux.h"
3517 tm_file
=m68k
/apollo68.h
3518 xmake_file
=m68k
/x-apollo68
3520 extra_headers
=math-68881.h
3523 m68k-altos-sysv
*) # Altos 3068
3524 if test x
$gas = xyes
3526 tm_file
=m68k
/altos3068.h
3529 echo "The Altos is supported only with the GNU assembler" 1>&2
3532 extra_headers
=math-68881.h
3534 m68k-bull-sysv
*) # Bull DPX/2
3535 if test x
$gas = xyes
3537 if test x
$stabs = xyes
3539 tm_file
=m68k
/dpx2cdbx.h
3541 tm_file
=m68k
/dpx2g.h
3546 xm_file
="xm-alloca.h ${xm_file}"
3548 xmake_file
=m68k
/x-dpx2
3550 extra_headers
=math-68881.h
3552 m68k-atari-sysv4
*) # Atari variant of V.4.
3553 tm_file
=m68k
/atari.h
3554 xm_file
="xm-alloca.h ${xm_file}"
3555 xm_defines
="USG FULL_PROTOTYPES"
3557 extra_parts
="crtbegin.o crtend.o"
3558 extra_headers
=math-68881.h
3561 m68k-motorola-sysv
*)
3562 tm_file
=m68k
/mot3300.h
3563 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3564 xm_defines
=NO_SYS_SIGLIST
3565 if test x
$gas = xyes
3567 xmake_file
=m68k
/x-mot3300-gas
3568 if test x
$gnu_ld = xyes
3570 tmake_file
=m68k
/t-mot3300-gald
3572 tmake_file
=m68k
/t-mot3300-gas
3576 xmake_file
=m68k
/x-mot3300
3577 if test x
$gnu_ld = xyes
3579 tmake_file
=m68k
/t-mot3300-gld
3581 tmake_file
=m68k
/t-mot3300
3585 gdb_needs_out_file_path
=yes
3586 extra_parts
="crt0.o mcrt0.o"
3587 extra_headers
=math-68881.h
3590 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3591 tm_file
=m68k
/tower-as.h
3592 xm_defines
="USG SVR3"
3593 xmake_file
=m68k
/x-tower
3594 extra_parts
="crtbegin.o crtend.o"
3595 extra_headers
=math-68881.h
3598 tm_file
=m68k
/plexus.h
3599 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3602 extra_headers
=math-68881.h
3606 xm_file
="xm-alloca.h ${xm_file}"
3608 extra_headers
=math-68881.h
3611 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3612 xm_defines
="USG unos"
3613 xmake_file
=m68k
/x-crds
3616 extra_headers
=math-68881.h
3618 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3620 xm_file
="xm-alloca.h ${xm_file}"
3621 xm_defines
="USG FULL_PROTOTYPES"
3622 xmake_file
=m68k
/x-amix
3624 extra_parts
="crtbegin.o crtend.o"
3625 extra_headers
=math-68881.h
3629 tm_file
=m68k
/ccur-GAS.h
3630 xmake_file
=m68k
/x-ccur
3631 extra_headers
=math-68881.h
3635 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3636 tm_file
=m68k
/hp3bsd44.h
3637 xmake_file
=m68k
/x-hp3bsd44
3639 extra_headers
=math-68881.h
3642 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3643 tm_file
=m68k
/hp3bsd.h
3645 extra_headers
=math-68881.h
3649 if test x
$with_fp = xno
3651 tm_file
=m68k
/isi-nfp.h
3657 extra_headers
=math-68881.h
3659 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3660 xm_file
="xm_alloca.h ${xm_file}"
3661 xm_defines
="USG NO_SYS_SIGLIST"
3662 if test x
$gas = xyes
3664 xmake_file
=m68k
/x-hp320g
3665 tm_file
=m68k
/hp320g.h
3667 xmake_file
=m68k
/x-hp320
3668 tm_file
=m68k
/hpux7.h
3670 install_headers_dir
=install-headers-cpio
3672 extra_headers
=math-68881.h
3675 m68k-hp-hpux
*) # HP 9000 series 300
3676 xm_file
="xm_alloca.h ${xm_file}"
3677 xm_defines
="USG NO_SYS_SIGLIST"
3678 if test x
$gas = xyes
3680 xmake_file
=m68k
/x-hp320g
3681 tm_file
=m68k
/hp320g.h
3683 xmake_file
=m68k
/x-hp320
3684 tm_file
=m68k
/hp320.h
3686 install_headers_dir
=install-headers-cpio
3688 extra_headers
=math-68881.h
3692 tm_file
=m68k
/sun3mach.h
3694 extra_headers
=math-68881.h
3698 if test x
$gas = xyes
3700 tm_file
=m68k
/news3gas.h
3702 tm_file
=m68k
/news3.h
3705 extra_headers
=math-68881.h
3708 m68k-sony-bsd
* | m68k-sony-newsos
*)
3709 if test x
$gas = xyes
3711 tm_file
=m68k
/newsgas.h
3716 extra_headers
=math-68881.h
3719 m68k-next-nextstep2
*)
3720 tm_file
=m68k
/next21.h
3721 xm_file
="m68k/xm-next.h ${xm_file}"
3722 tmake_file
=m68k
/t-next
3723 xmake_file
=m68k
/x-next
3724 extra_objs
=nextstep.o
3725 extra_headers
=math-68881.h
3729 m68k-next-nextstep3
*)
3731 xm_file
="m68k/xm-next.h ${xm_file}"
3732 tmake_file
=m68k
/t-next
3733 xmake_file
=m68k
/x-next
3734 extra_objs
=nextstep.o
3735 extra_parts
="crtbegin.o crtend.o"
3736 extra_headers
=math-68881.h
3738 if test x
$enable_threads = xyes
; then
3743 if test x
$with_fp = xno
3745 tm_file
=m68k
/sun3n3.h
3747 tm_file
=m68k
/sun3o3.h
3751 extra_headers
=math-68881.h
3753 m68k-sun-sunos
*) # For SunOS 4 (the default).
3754 if test x
$with_fp = xno
3756 tm_file
=m68k
/sun3n.h
3762 extra_headers
=math-68881.h
3765 tm_file
=m68k
/vxm68k.h
3766 tmake_file
=m68k
/t-vxworks68
3767 extra_headers
=math-68881.h
3768 thread_file
='vxworks'
3772 tmake_file
=m68k
/t-m68kbare
3773 tm_file
="m68k/m68k-aout.h libgloss.h"
3774 extra_headers
=math-68881.h
3778 tmake_file
=m68k
/t-m68kbare
3779 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3780 extra_headers
=math-68881.h
3784 if test x
$gas = xyes
3788 tm_file
=m68k
/lynx-ng.h
3790 xm_file
=m68k
/xm-lynx.h
3792 tmake_file
=m68k
/t-lynx
3793 extra_headers
=math-68881.h
3797 tm_file
=m68k
/netbsd.h
3798 # On NetBSD, the headers are already okay, except for math.h.
3799 fixincludes
=fixinc.wrap
3803 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3804 xm_file
="xm-alloca.h ${xm_file}"
3806 xmake_file
=m68k
/x-m68kv
3807 extra_parts
="crtbegin.o crtend.o"
3808 extra_headers
=math-68881.h
3811 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3812 tm_file
=m68k
/m68kv4.h
3813 xm_file
="xm-alloca.h ${xm_file}"
3816 extra_parts
="crtbegin.o crtend.o"
3817 extra_headers
=math-68881.h
3820 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3823 tm_file
=m68k
/linux-aout.h
3824 tmake_file
="t-linux-aout m68k/t-linux-aout"
3825 fixincludes
=Makefile.
in # The headers are ok already.
3826 extra_headers
=math-68881.h
3830 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3831 # with ELF format using the
3832 # GNU/Linux C library 5
3834 tm_file
=m68k
/linux.h
3835 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3836 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3837 fixincludes
=Makefile.
in # The headers are ok already.
3838 extra_headers
=math-68881.h
3842 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3843 # with ELF format using glibc 2
3844 # aka the GNU/Linux C library 6.
3846 tm_file
=m68k
/linux.h
3847 tmake_file
="t-linux m68k/t-linux"
3848 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3849 fixincludes
=Makefile.
in # The headers are ok already.
3850 extra_headers
=math-68881.h
3853 if test x
$enable_threads = xyes
; then
3858 tmake_file
=m68k
/t-m68kbare
3859 tm_file
=m68k
/m68k-psos.h
3860 extra_headers
=math-68881.h
3864 tmake_file
="m68k/t-m68kbare t-rtems"
3865 tm_file
=m68k
/rtems.h
3866 extra_headers
=math-68881.h
3873 tm_file
=m88k
/dguxbcs.h
3874 tmake_file
=m88k
/t-dguxbcs
3878 tmake_file
=m88k
/t-dgux
3881 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3882 xmake_file
=m88k
/x-dgux
3883 if test x
$gas = xyes
3885 tmake_file
=m88k
/t-dgux-gas
3887 fixincludes
=fixinc.dgux
3889 m88k-dolphin-sysv3
*)
3890 tm_file
=m88k
/dolph.h
3891 extra_parts
="crtbegin.o crtend.o"
3892 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3893 xmake_file
=m88k
/x-dolph
3894 if test x
$gas = xyes
3896 tmake_file
=m88k
/t-m88k-gas
3899 m88k-tektronix-sysv3
)
3900 tm_file
=m88k
/tekXD88.h
3901 extra_parts
="crtbegin.o crtend.o"
3902 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3903 xmake_file
=m88k
/x-tekXD88
3904 if test x
$gas = xyes
3906 tmake_file
=m88k
/t-m88k-gas
3910 tm_file
=m88k
/m88k-aout.h
3913 tm_file
=m88k
/m88k-coff.h
3914 tmake_file
=m88k
/t-bug
3918 extra_parts
="crtbegin.o crtend.o"
3919 if test x
$gas = xyes
3921 tmake_file
=m88k
/t-luna-gas
3923 tmake_file
=m88k
/t-luna
3927 tm_file
=m88k
/sysv3.h
3928 extra_parts
="crtbegin.o crtend.o"
3929 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3930 xmake_file
=m88k
/x-sysv3
3931 if test x
$gas = xyes
3933 tmake_file
=m88k
/t-m88k-gas
3937 tm_file
=m88k
/sysv4.h
3938 extra_parts
="crtbegin.o crtend.o"
3939 xmake_file
=m88k
/x-sysv4
3940 tmake_file
=m88k
/t-sysv4
3942 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3943 tm_file
=mips
/iris6.h
3944 xm_file
=mips
/xm-iris6.h
3945 fixincludes
=fixinc.irix
3946 xmake_file
=mips
/x-iris6
3947 tmake_file
=mips
/t-iris6
3948 # if test x$enable_threads = xyes; then
3949 # thread_file='irix'
3953 tm_file
="mips/elf.h libgloss.h"
3954 tmake_file
=mips
/t-ecoff
3957 extra_parts
="crtbegin.o crtend.o"
3958 # thread_file='vxworks'
3960 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3961 tm_file
="mips/iris6.h mips/cross64.h"
3963 xm_file
="mips/xm-iris5.h"
3964 fixincludes
=Makefile.
in
3965 xmake_file
=mips
/x-iris
3966 tmake_file
=mips
/t-cross64
3967 # See comment in mips/iris[56].h files.
3969 # if test x$enable_threads = xyes; then
3970 # thread_file='irix'
3974 if test x
$gas = xyes
3976 if test x
$stabs = xyes
3978 tm_file
=mips
/iris5gdb.h
3980 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3983 tm_file
=mips
/sni-svr4.h
3986 xmake_file
=mips
/x-sni-svr4
3987 tmake_file
=mips
/t-mips-gas
3988 if test x
$gnu_ld != xyes
3993 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3994 if test x
$gas = xyes
3996 tm_file
="mips/iris5.h mips/iris5gas.h"
3997 if test x
$stabs = xyes
3999 tm_file
="${tm_file} dbx.h"
4002 tm_file
=mips
/iris5.h
4005 xm_file
="mips/xm-iris5.h"
4006 fixincludes
=fixinc.irix
4007 xmake_file
=mips
/x-iris
4008 # mips-tfile doesn't work yet
4009 tmake_file
=mips
/t-mips-gas
4010 # See comment in mips/iris5.h file.
4012 # if test x$enable_threads = xyes; then
4013 # thread_file='irix'
4016 mips-sgi-irix4loser
*) # Mostly like a MIPS.
4017 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4018 if test x
$stabs = xyes
; then
4019 tm_file
="${tm_file} dbx.h"
4022 xmake_file
=mips
/x-iris
4023 if test x
$gas = xyes
4025 tmake_file
=mips
/t-mips-gas
4027 extra_passes
="mips-tfile mips-tdump"
4029 if test x
$gnu_ld != xyes
4033 # if test x$enable_threads = xyes; then
4034 # thread_file='irix'
4037 mips-sgi-irix4
*) # Mostly like a MIPS.
4038 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
4039 if test x
$stabs = xyes
; then
4040 tm_file
="${tm_file} dbx.h"
4043 xmake_file
=mips
/x-iris
4044 if test x
$gas = xyes
4046 tmake_file
=mips
/t-mips-gas
4048 extra_passes
="mips-tfile mips-tdump"
4050 if test x
$gnu_ld != xyes
4054 # if test x$enable_threads = xyes; then
4055 # thread_file='irix'
4058 mips-sgi-
*) # Mostly like a MIPS.
4059 tm_file
="mips/iris3.h ${tm_file}"
4060 if test x
$stabs = xyes
; then
4061 tm_file
="${tm_file} dbx.h"
4064 xmake_file
=mips
/x-iris3
4065 if test x
$gas = xyes
4067 tmake_file
=mips
/t-mips-gas
4069 extra_passes
="mips-tfile mips-tdump"
4071 if test x
$gnu_ld != xyes
4076 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
4077 tm_file
="mips/osfrose.h ${tm_file}"
4078 xmake_file
=mips
/x-osfrose
4079 tmake_file
=mips
/t-osfrose
4080 extra_objs
=halfpic.o
4083 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
4084 tm_file
=mips
/dec-osf1.h
4085 if test x
$stabs = xyes
; then
4086 tm_file
="${tm_file} dbx.h"
4088 xmake_file
=mips
/x-dec-osf1
4089 if test x
$gas = xyes
4091 tmake_file
=mips
/t-mips-gas
4093 tmake_file
=mips
/t-ultrix
4094 extra_passes
="mips-tfile mips-tdump"
4096 if test x
$gnu_ld != xyes
4101 mips-dec-bsd
*) # Decstation running 4.4 BSD
4102 tm_file
=mips
/dec-bsd.h
4104 if test x
$gas = xyes
4106 tmake_file
=mips
/t-mips-gas
4108 tmake_file
=mips
/t-ultrix
4109 extra_passes
="mips-tfile mips-tdump"
4111 if test x
$gnu_ld != xyes
4116 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
4117 tm_file
=mips
/netbsd.h
4118 # On NetBSD, the headers are already okay, except for math.h.
4119 fixincludes
=fixinc.wrap
4122 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
4123 tm_file
="mips/news4.h ${tm_file}"
4124 if test x
$stabs = xyes
; then
4125 tm_file
="${tm_file} dbx.h"
4127 if test x
$gas = xyes
4129 tmake_file
=mips
/t-mips-gas
4131 extra_passes
="mips-tfile mips-tdump"
4133 if test x
$gnu_ld != xyes
4137 xmake_file
=mips
/x-sony
4139 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
4140 # That is based on svr4.
4141 # t-svr4 is not right because this system doesn't use ELF.
4142 tm_file
="mips/news5.h ${tm_file}"
4143 if test x
$stabs = xyes
; then
4144 tm_file
="${tm_file} dbx.h"
4146 xm_file
="xm-siglist.h ${xm_file}"
4148 if test x
$gas = xyes
4150 tmake_file
=mips
/t-mips-gas
4152 extra_passes
="mips-tfile mips-tdump"
4154 if test x
$gnu_ld != xyes
4159 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
4160 tm_file
="mips/svr4-5.h mips/svr4-t.h"
4161 if test x
$stabs = xyes
; then
4162 tm_file
="${tm_file} dbx.h"
4164 xm_file
="xm-siglist.h ${xm_file}"
4166 xmake_file
=mips
/x-sysv
4167 if test x
$gas = xyes
4169 tmake_file
=mips
/t-mips-gas
4170 extra_parts
="crtbegin.o crtend.o"
4172 tmake_file
=mips
/t-mips
4173 extra_passes
="mips-tfile mips-tdump"
4175 if test x
$gnu_ld != xyes
4180 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
4181 tm_file
="mips/ultrix.h ${tm_file}"
4182 if test x
$stabs = xyes
; then
4183 tm_file
="${tm_file} dbx.h"
4185 xmake_file
=mips
/x-ultrix
4186 if test x
$gas = xyes
4188 tmake_file
=mips
/t-mips-gas
4190 tmake_file
=mips
/t-ultrix
4191 extra_passes
="mips-tfile mips-tdump"
4193 if test x
$gnu_ld != xyes
4198 mips-
*-riscos[56789]bsd
*)
4199 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
4200 if test x
$stabs = xyes
; then
4201 tm_file
="${tm_file} dbx.h"
4203 if test x
$gas = xyes
4205 tmake_file
=mips
/t-bsd-gas
4207 tmake_file
=mips
/t-bsd
4208 extra_passes
="mips-tfile mips-tdump"
4210 if test x
$gnu_ld != xyes
4215 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
4216 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4217 if test x
$stabs = xyes
; then
4218 tm_file
="${tm_file} dbx.h"
4220 if test x
$gas = xyes
4222 tmake_file
=mips
/t-bsd-gas
4224 tmake_file
=mips
/t-bsd
4225 extra_passes
="mips-tfile mips-tdump"
4227 if test x
$gnu_ld != xyes
4232 mips-
*-riscos[56789]sysv4
*)
4233 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
4234 if test x
$stabs = xyes
; then
4235 tm_file
="${tm_file} dbx.h"
4237 xm_file
="xm-siglist.h ${xm_file}"
4238 xmake_file
=mips
/x-sysv
4239 if test x
$gas = xyes
4241 tmake_file
=mips
/t-svr4-gas
4243 tmake_file
=mips
/t-svr4
4244 extra_passes
="mips-tfile mips-tdump"
4246 if test x
$gnu_ld != xyes
4251 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
4252 tm_file
="mips/svr4-4.h ${tm_file}"
4253 if test x
$stabs = xyes
; then
4254 tm_file
="${tm_file} dbx.h"
4257 xmake_file
=mips
/x-sysv
4258 if test x
$gas = xyes
4260 tmake_file
=mips
/t-svr4-gas
4262 tmake_file
=mips
/t-svr4
4263 extra_passes
="mips-tfile mips-tdump"
4265 if test x
$gnu_ld != xyes
4270 mips-
*-riscos[56789]sysv
*)
4271 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
4272 if test x
$stabs = xyes
; then
4273 tm_file
="${tm_file} dbx.h"
4276 xmake_file
=mips
/x-sysv
4277 if test x
$gas = xyes
4279 tmake_file
=mips
/t-svr3-gas
4281 tmake_file
=mips
/t-svr3
4282 extra_passes
="mips-tfile mips-tdump"
4284 if test x
$gnu_ld != xyes
4289 mips-
*-sysv* | mips-
*-riscos*sysv
*)
4290 tm_file
="mips/svr3-4.h ${tm_file}"
4291 if test x
$stabs = xyes
; then
4292 tm_file
="${tm_file} dbx.h"
4295 xmake_file
=mips
/x-sysv
4296 if test x
$gas = xyes
4298 tmake_file
=mips
/t-svr3-gas
4300 tmake_file
=mips
/t-svr3
4301 extra_passes
="mips-tfile mips-tdump"
4303 if test x
$gnu_ld != xyes
4308 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4309 tm_file
=mips
/mips-5.h
4310 if test x
$stabs = xyes
; then
4311 tm_file
="${tm_file} dbx.h"
4313 if test x
$gas = xyes
4315 tmake_file
=mips
/t-mips-gas
4317 extra_passes
="mips-tfile mips-tdump"
4319 if test x
$gnu_ld != xyes
4327 tm_file
=mips
/ecoffl.h
4328 if test x
$stabs = xyes
; then
4329 tm_file
="${tm_file} dbx.h"
4331 tmake_file
=mips
/t-ecoff
4334 tm_file
="gofast.h mips/ecoff.h"
4335 if test x
$stabs = xyes
; then
4336 tm_file
="${tm_file} dbx.h"
4338 tmake_file
=mips
/t-ecoff
4341 tm_file
="mips/elfl.h libgloss.h"
4342 tmake_file
=mips
/t-ecoff
4345 tm_file
="mips/elf.h libgloss.h"
4346 tmake_file
=mips
/t-ecoff
4349 tm_file
="mips/elfl64.h libgloss.h"
4350 tmake_file
=mips
/t-ecoff
4352 mips64orionel-
*-elf*)
4353 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
4354 tmake_file
=mips
/t-ecoff
4357 tm_file
="mips/elf64.h libgloss.h"
4358 tmake_file
=mips
/t-ecoff
4361 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
4362 tmake_file
=mips
/t-ecoff
4364 mips64orion-
*-rtems*)
4365 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
4366 tmake_file
="mips/t-ecoff t-rtems"
4369 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4370 tmake_file
=mips
/t-r3900
4373 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4374 tmake_file
=mips
/t-r3900
4375 # FIXME mips-elf should be fixed to use crtstuff.
4378 mips-
*-*) # Default MIPS RISC-OS 4.0.
4379 if test x
$stabs = xyes
; then
4380 tm_file
="${tm_file} dbx.h"
4382 if test x
$gas = xyes
4384 tmake_file
=mips
/t-mips-gas
4386 extra_passes
="mips-tfile mips-tdump"
4388 if test x
$gnu_ld != xyes
4395 tm_file
="mn10200/mn10200.h"
4396 if test x
$stabs = xyes
4398 tm_file
="${tm_file} dbx.h"
4404 tm_file
="mn10300/mn10300.h"
4405 if test x
$stabs = xyes
4407 tm_file
="${tm_file} dbx.h"
4412 tm_file
=ns32k
/encore.h
4416 tm_file
=ns32k
/sequent.h
4420 tm_file
=ns32k
/tek6100.h
4424 tm_file
=ns32k
/tek6200.h
4427 # This has not been updated to GCC 2.
4430 # xmake_file=ns32k/x-genix
4431 # tm_file=ns32k/genix.h
4435 tm_file
=ns32k
/merlin.h
4439 tm_file
=ns32k
/pc532-mach.h
4443 tm_file
=ns32k
/pc532-min.h
4444 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4449 tm_file
=ns32k
/netbsd.h
4450 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
4451 # On NetBSD, the headers are already okay, except for math.h.
4452 fixincludes
=fixinc.wrap
4456 tm_file
="${tm_file} pdp11/2bsd.h"
4462 xmake_file
=pyr
/x-pyr
4469 xmake_file
=romp
/x-mach
4474 tm_file
=rs6000
/beos.h
4475 xm_file
=rs6000
/xm-beos.h
4476 tmake_file
=rs6000
/t-beos
4477 xmake_file
=rs6000
/x-beos
4479 powerpc-
*-sysv* | powerpc-
*-elf*)
4480 tm_file
=rs6000
/sysv4.h
4481 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4482 xm_defines
="USG POSIX"
4483 extra_headers
=ppc-asm.h
4484 if test x
$gas = xyes
4486 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4488 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4490 xmake_file
=rs6000
/x-sysv4
4493 tm_file
=rs6000
/eabiaix.h
4494 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4495 fixincludes
=Makefile.
in
4496 extra_headers
=ppc-asm.h
4499 tm_file
=rs6000
/eabisim.h
4500 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4501 fixincludes
=Makefile.
in
4502 extra_headers
=ppc-asm.h
4505 tm_file
=rs6000
/eabi.h
4506 if test x
$gas = xyes
4508 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4510 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4512 fixincludes
=Makefile.
in
4513 extra_headers
=ppc-asm.h
4516 tm_file
=rs6000
/rtems.h
4517 if test x
$gas = xyes
4519 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4521 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4523 fixincludes
=Makefile.
in
4524 extra_headers
=ppc-asm.h
4526 powerpc-
*-linux-gnulibc1)
4527 tm_file
=rs6000
/linux.h
4528 xm_file
=rs6000
/xm-sysv4.h
4529 out_file
=rs6000
/rs6000.c
4530 if test x
$gas = xyes
4532 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4534 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4537 fixincludes
=Makefile.
in
4538 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4539 extra_headers
=ppc-asm.h
4540 if test x
$enable_threads = xyes
; then
4544 powerpc-
*-linux-gnu*)
4545 tm_file
=rs6000
/linux.h
4546 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4547 xm_defines
="USG ${xm_defines}"
4548 out_file
=rs6000
/rs6000.c
4549 if test x
$gas = xyes
4551 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4553 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4556 fixincludes
=Makefile.
in
4557 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4558 extra_headers
=ppc-asm.h
4559 if test x
$enable_threads = xyes
; then
4563 powerpc-wrs-vxworks
*)
4565 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4566 xm_defines
="USG POSIX"
4567 tm_file
=rs6000
/vxppc.h
4568 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4569 extra_headers
=ppc-asm.h
4570 thread_file
='vxworks'
4572 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4573 tm_file
=rs6000
/sysv4le.h
4574 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4575 xm_defines
="USG POSIX"
4576 if test x
$gas = xyes
4578 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4580 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4582 xmake_file
=rs6000
/x-sysv4
4583 extra_headers
=ppc-asm.h
4585 powerpcle-
*-eabisim*)
4586 tm_file
=rs6000
/eabilesim.h
4587 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4588 fixincludes
=Makefile.
in
4589 extra_headers
=ppc-asm.h
4592 tm_file
=rs6000
/eabile.h
4593 if test x
$gas = xyes
4595 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4597 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4599 fixincludes
=Makefile.
in
4600 extra_headers
=ppc-asm.h
4602 powerpcle-
*-winnt* )
4603 tm_file
=rs6000
/win-nt.h
4604 tmake_file
=rs6000
/t-winnt
4606 fixincludes
=Makefile.
in
4607 if test x
$enable_threads = xyes
; then
4610 extra_headers
=ppc-asm.h
4612 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4613 tm_file
=rs6000
/cygwin32.h
4614 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4615 tmake_file
=rs6000
/t-winnt
4616 xmake_file
=rs6000
/x-cygwin32
4618 fixincludes
=Makefile.
in
4619 if test x
$enable_threads = xyes
; then
4623 extra_headers
=ppc-asm.h
4625 powerpcle-
*-solaris2*)
4626 tm_file
=rs6000
/sol2.h
4627 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4628 xm_defines
="USG POSIX"
4629 if test x
$gas = xyes
4631 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4633 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4635 xmake_file
=rs6000
/x-sysv4
4638 fixincludes
=fixinc.svr4
;;
4640 fixincludes
=fixinc.wrap
;;
4642 extra_headers
=ppc-asm.h
4644 rs6000-ibm-aix3.
[01]*)
4645 tm_file
=rs6000
/aix31.h
4646 xmake_file
=rs6000
/x-aix31
4649 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4650 tm_file
=rs6000
/aix3newas.h
4651 if test x
$host != x
$target
4653 tmake_file
=rs6000
/t-xnewas
4655 tmake_file
=rs6000
/t-newas
4659 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
4660 tm_file
=rs6000
/aix41.h
4661 if test x
$host != x
$target
4663 tmake_file
=rs6000
/t-xnewas
4665 tmake_file
=rs6000
/t-newas
4667 xmake_file
=rs6000
/x-aix41
4670 rs6000-ibm-aix4.
[3456789].
* | powerpc-ibm-aix4.
[3456789].
*)
4671 tm_file
=rs6000
/aix43.h
4672 if test x
$host != x
$target
4674 tmake_file
=rs6000
/t-xaix43
4676 tmake_file
=rs6000
/t-aix43
4678 xmake_file
=rs6000
/x-aix43
4681 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
4682 tm_file
=rs6000
/aix43.h
4683 if test x
$host != x
$target
4685 tmake_file
=rs6000
/t-xaix43
4687 tmake_file
=rs6000
/t-aix43
4689 xmake_file
=rs6000
/x-aix43
4699 tm_file
=rs6000
/mach.h
4700 xm_file
="${xm_file} rs6000/xm-mach.h"
4701 xmake_file
=rs6000
/x-mach
4705 tm_file
=rs6000
/lynx.h
4706 xm_file
=rs6000
/xm-lynx.h
4707 tmake_file
=rs6000
/t-rs6000
4708 xmake_file
=rs6000
/x-lynx
4716 tmake_file
="sh/t-sh t-rtems"
4717 tm_file
=sh
/rtemself.h
4721 tmake_file
="sh/t-sh t-rtems"
4730 xm_file
="xm-alloca.h ${xm_file}"
4733 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4734 tm_file
=sparc
/vxsparc.h
4735 tmake_file
=sparc
/t-vxsparc
4737 thread_file
='vxworks'
4740 tmake_file
=sparc
/t-sparcbare
4741 tm_file
="sparc/aout.h libgloss.h"
4744 tm_file
=sparc
/netbsd.h
4745 # On NetBSD, the headers are already okay, except for math.h.
4746 fixincludes
=fixinc.wrap
4754 tmake_file
=sparc
/t-elf
4755 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4759 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4760 xm_file
="${xm_file} sparc/xm-linux.h"
4761 tm_file
=sparc
/linux-aout.h
4763 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4766 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4767 xm_file
="${xm_file} sparc/xm-linux.h"
4769 tm_file
=sparc
/linux.h
4770 tmake_file
="t-linux t-linux-gnulibc1"
4771 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4772 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4775 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4776 xm_file
="${xm_file} sparc/xm-linux.h"
4778 tm_file
=sparc
/linux.h
4779 tmake_file
="t-linux"
4780 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4781 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4783 if test x
$enable_threads = xyes
; then
4788 if test x
$gas = xyes
4790 tm_file
=sparc
/lynx.h
4792 tm_file
=sparc
/lynx-ng.h
4794 xm_file
=sparc
/xm-lynx.h
4795 tmake_file
=sparc
/t-sunos41
4799 tmake_file
="sparc/t-sparcbare t-rtems"
4800 tm_file
=sparc
/rtems.h
4802 sparcv9-
*-solaris2*)
4803 tm_file
=sparc
/sol2-sld-64.h
4804 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
4805 xm_defines
="USG POSIX"
4806 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
4807 xmake_file
=sparc
/x-sysv4
4808 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
4809 fixincludes
=fixinc.wrap
4811 if test x
${enable_threads} = x
; then
4812 enable_threads
=$have_pthread_h
4813 if test x
${enable_threads} = x
; then
4814 enable_threads
=$have_thread_h
4817 if test x
${enable_threads} = xyes
; then
4818 if test x
${have_pthread_h} = xyes
; then
4821 thread_file
='solaris'
4826 if test x
$gnu_ld = xyes
4828 tm_file
=sparc
/sol2.h
4830 tm_file
=sparc
/sol2-sld.h
4832 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4833 xm_defines
="USG POSIX"
4834 tmake_file
=sparc
/t-sol2
4835 xmake_file
=sparc
/x-sysv4
4836 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4839 fixincludes
=fixinc.svr4
;;
4841 fixincludes
=fixinc.wrap
;;
4844 if test x
${enable_threads} = x
; then
4845 enable_threads
=$have_pthread_h
4846 if test x
${enable_threads} = x
; then
4847 enable_threads
=$have_thread_h
4850 if test x
${enable_threads} = xyes
; then
4851 if test x
${have_pthread_h} = xyes
; then
4854 thread_file
='solaris'
4859 tm_file
=sparc
/sunos4.h
4860 tmake_file
=sparc
/t-sunos40
4864 tm_file
=sparc
/sunos4.h
4865 tmake_file
=sparc
/t-sunos41
4867 if test x
$gas = xyes
; then
4868 tm_file
="${tm_file} sparc/sun4gas.h"
4872 tm_file
=sparc
/sun4o3.h
4876 tm_file
=sparc
/sysv4.h
4877 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4878 xm_defines
="USG POSIX"
4880 xmake_file
=sparc
/x-sysv4
4881 extra_parts
="crtbegin.o crtend.o"
4884 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4885 xm_defines
="USG POSIX"
4886 tm_file
=sparc
/vxsim.h
4887 tmake_file
=sparc
/t-vxsparc
4888 xmake_file
=sparc
/x-sysv4
4891 tm_file
="sparc/splet.h libgloss.h"
4892 tmake_file
=sparc
/t-splet
4895 tm_file
="sparc/litecoff.h libgloss.h"
4896 tmake_file
=sparc
/t-sparclite
4899 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4900 tmake_file
=sparc
/t-sparclite
4903 tmake_file
=sparc
/t-sp64
4904 tm_file
=sparc
/sp64-aout.h
4907 tmake_file
=sparc
/t-sp64
4908 tm_file
=sparc
/sp64-elf.h
4909 extra_parts
="crtbegin.o crtend.o"
4911 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4912 tmake_file
="t-linux sparc/t-linux64"
4913 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4914 tm_file
=sparc
/linux64.h
4916 fixincludes
=Makefile.
in # The headers are ok already.
4917 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4920 # This hasn't been upgraded to GCC 2.
4921 # tahoe-harris-*) # Harris tahoe, using COFF.
4922 # tm_file=tahoe/harris.h
4924 # tahoe-*-bsd*) # tahoe running BSD
4926 thumb-
*-coff* | thumbel-
*-coff*)
4928 out_file
=arm
/thumb.c
4929 xm_file
=arm
/xm-thumb.h
4930 md_file
=arm
/thumb.md
4931 tmake_file
=arm
/t-thumb
4932 fixincludes
=Makefile.
in # There is nothing to fix
4934 # This hasn't been upgraded to GCC 2.
4941 tm_file
="v850/v850.h"
4942 xm_file
="v850/xm-v850.h"
4943 tmake_file
=v850
/t-v850
4944 if test x
$stabs = xyes
4946 tm_file
="${tm_file} dbx.h"
4950 vax-
*-bsd*) # vaxen running BSD
4954 vax-
*-sysv*) # vaxen running system V
4955 tm_file
="${tm_file} vax/vaxv.h"
4960 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4961 # On NetBSD, the headers are already okay, except for math.h.
4962 fixincludes
=fixinc.wrap
4966 vax-
*-ultrix*) # vaxen running ultrix
4967 tm_file
="${tm_file} vax/ultrix.h"
4971 vax-
*-vms*) # vaxen running VMS
4972 xm_file
=vax
/xm-vms.h
4976 vax-
*-*) # vax default entry
4980 xm_file
="${xm_file} xm-svr3"
4984 echo "Configuration $machine not supported" 1>&2
4991 ;; # Existing GNU/Linux systems do not use the GNU setup.
4993 # On the GNU system, the setup is just about the same on
4994 # each different CPU. The specific machines that GNU
4995 # supports are matched above and just set $cpu_type.
4996 xm_file
="xm-gnu.h ${xm_file}"
4997 tm_file
=${cpu_type}/gnu.h
4998 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4999 # GNU always uses ELF.
5001 # GNU tools are the only tools.
5004 # On GNU, the headers are already okay.
5005 fixincludes
=Makefile.
in
5006 xmake_file
=x-linux
# These details are the same as Linux.
5007 tmake_file
=t-gnu
# These are not.
5010 fixincludes
=fixinc.svr4
5011 xmake_try_sysv
=x-sysv
5012 install_headers_dir
=install-headers-cpio
5015 install_headers_dir
=install-headers-cpio
5019 # Distinguish i[34567]86
5020 # Also, do not run mips-tfile on MIPS if using gas.
5021 # Process --with-cpu= for PowerPC/rs6000
5022 target_cpu_default2
=
5025 target_cpu_default2
=1
5028 target_cpu_default2
=2
5030 i686-
*-* | i786-
*-*)
5031 target_cpu_default2
=3
5036 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
5039 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5042 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
5045 target_cpu_default2
="MASK_CPU_EV5"
5049 if test x
$gas = xyes
5051 if test "$target_cpu_default2" = ""
5053 target_cpu_default2
="MASK_GAS"
5055 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
5060 case "x$with_cpu" in
5063 target_cpu_default2
="TARGET_CPU_generic"
5066 # Distinguish cores, and major variants
5067 # arm7m doesn't exist, but D & I don't affect code
5068 xarm23678 | xarm250 | xarm67010 \
5069 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5070 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5071 | xstrongarm | xstrongarm110
)
5072 target_cpu_default2
="TARGET_CPU_$with_cpu"
5076 echo "--with-cpu must be passed a value" 1>&2
5081 if test x
$pass2done = xyes
5083 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5090 mips
*-*-ecoff* | mips
*-*-elf*)
5091 if test x
$gas = xyes
5093 if test x
$gnu_ld = xyes
5095 target_cpu_default2
=20
5097 target_cpu_default2
=16
5102 if test x
$gas = xyes
5104 target_cpu_default2
=16
5107 powerpc
*-*-* | rs6000-
*-*)
5108 case "x$with_cpu" in
5112 xcommon | xpower | xpower2 | xpowerpc | xrios \
5113 | xrios1 | xrios2 | xrsc | xrsc1 \
5114 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5115 | x403 | x505 | x801 | x821 | x823 | x860
)
5116 target_cpu_default2
="\"$with_cpu\""
5120 echo "--with-cpu must be passed a value" 1>&2
5125 if test x
$pass2done = xyes
5127 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5134 case ".$with_cpu" in
5136 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
5138 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
5139 target_cpu_default2
="TARGET_CPU_$with_cpu"
5142 if test x
$pass2done = xyes
5144 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5152 if test "$target_cpu_default2" != ""
5154 if test "$target_cpu_default" != ""
5156 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
5158 target_cpu_default
=$target_cpu_default2
5162 # No need for collect2 if we have the GNU linker.
5163 # Actually, there is now; GNU ld doesn't handle the EH info or
5164 # collecting for shared libraries.
5171 # Save data on machine being used to compile GCC in build_xm_file.
5172 # Save data on host machine in vars host_xm_file and host_xmake_file.
5173 if test x
$pass1done = x
5175 if test x
"$xm_file" = x
5176 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
5177 else build_xm_file
=$xm_file
5179 build_xm_defines
=$xm_defines
5180 build_install_headers_dir
=$install_headers_dir
5181 build_exeext
=$exeext
5184 if test x
$pass2done = x
5186 if test x
"$xm_file" = x
5187 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
5188 else host_xm_file
=$xm_file
5190 host_xm_defines
=$xm_defines
5191 if test x
"$xmake_file" = x
5192 then xmake_file
=$cpu_type/x-
$cpu_type
5194 host_xmake_file
="$xmake_file"
5195 host_truncate_target
=$truncate_target
5196 host_extra_gcc_objs
=$extra_gcc_objs
5197 host_extra_objs
=$extra_host_objs
5204 extra_objs
="${host_extra_objs} ${extra_objs}"
5206 # Default the target-machine variables that were not explicitly set.
5207 if test x
"$tm_file" = x
5208 then tm_file
=$cpu_type/$cpu_type.h
; fi
5210 if test x
$extra_headers = x
5211 then extra_headers
=; fi
5213 if test x
"$xm_file" = x
5214 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
5216 if test x
$md_file = x
5217 then md_file
=$cpu_type/$cpu_type.md
; fi
5219 if test x
$out_file = x
5220 then out_file
=$cpu_type/$cpu_type.c
; fi
5222 if test x
"$tmake_file" = x
5223 then tmake_file
=$cpu_type/t-
$cpu_type
5226 if test x
$float_format = x
5227 then float_format
=i64
5230 if test x
$enable_haifa = x
5233 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
* |
*sparc
*-* | m32r
*-*)
5238 # Say what files are being used for the output code and MD file.
5239 echo "Using \`$srcdir/config/$out_file' to output insns."
5240 echo "Using \`$srcdir/config/$md_file' as machine description file."
5243 for f
in $tm_file; do
5246 if test $count = ax
; then
5247 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5249 echo "Using the following target machine macro files:"
5250 for f
in $tm_file; do
5251 echo " $srcdir/config/$f"
5256 for f
in $host_xm_file; do
5259 if test $count = ax
; then
5260 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5262 echo "Using the following host machine macro files:"
5263 for f
in $host_xm_file; do
5264 echo " $srcdir/config/$f"
5268 if test "$host_xm_file" != "$build_xm_file"; then
5270 for f
in $build_xm_file; do
5273 if test $count = ax
; then
5274 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5276 echo "Using the following build machine macro files:"
5277 for f
in $build_xm_file; do
5278 echo " $srcdir/config/$f"
5283 if test x
$thread_file = x
; then
5284 if test x
$target_thread_file != x
; then
5285 thread_file
=$target_thread_file
5287 thread_file
='single'
5291 # Set up the header files.
5292 # $links is the list of header files to create.
5293 # $vars is the list of shell variables with file names to include.
5294 # auto-host.h is the file containing items generated by autoconf and is
5295 # the first file included by config.h.
5297 host_xm_file
="auto-host.h ${host_xm_file}"
5299 # If host=build, it is correct to have hconfig include auto-host.h
5300 # as well. If host!=build, we are in error and need to do more
5301 # work to find out the build config parameters.
5302 if test x
$host = x
$build
5304 build_xm_file
="auto-host.h ${build_xm_file}"
5306 # We create a subdir, then run autoconf in the subdir.
5307 # To prevent recursion we set host and build for the new
5308 # invocation of configure to the build for this invocation
5315 /*) realsrcdir
=${srcdir};;
5316 *) realsrcdir
=..
/${srcdir};;
5318 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
5319 --target=$target --host=$build --build=$build
5321 # We just finished tests for the build machine, so rename
5322 # the file auto-build.h in the gcc directory.
5323 mv auto-host.h ..
/auto-build.h
5326 build_xm_file
="auto-build.h ${build_xm_file}"
5329 vars
="host_xm_file tm_file xm_file build_xm_file"
5330 links
="config.h tm.h tconfig.h hconfig.h"
5331 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
5334 if test -f config.status
; then mv -f config.status config.bak
; fi
5337 while test -n "$vars"
5339 set $vars; var
=$1; shift; vars
=$
*
5340 set $links; link
=$1; shift; links
=$
*
5341 set $defines; define
=$1; shift; defines
=$
*
5345 # Define TARGET_CPU_DEFAULT if the system wants one.
5346 # This substitutes for lots of *.h files.
5347 if test "$target_cpu_default" != "" -a $link = tm.h
5349 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5352 for file in `eval echo '$'$var`; do
5353 echo "#include \"$file\"" >>$link
5356 for def
in `eval echo '$'$define`; do
5357 echo "#ifndef $def" >>$link
5358 echo "#define $def" >>$link
5359 echo "#endif" >>$link
5363 # Truncate the target if necessary
5364 if test x
$host_truncate_target != x
; then
5365 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5368 # Get the version trigger filename from the toplevel
5369 if test "${with_gcc_version_trigger+set}" = set; then
5370 gcc_version_trigger
=$with_gcc_version_trigger
5372 gcc_version_trigger
=${srcdir}/version.c
5374 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5376 # Get an absolute path to the GCC top-level source directory
5382 # Conditionalize the makefile for this host machine.
5383 # Make-host contains the concatenation of all host makefile fragments
5384 # [there can be more than one]. This file is built by configure.frag.
5385 host_overrides
=Make-host
5386 dep_host_xmake_file
=
5387 for f
in ..
${host_xmake_file}
5389 if test -f ${srcdir}/config
/$f
5391 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
5395 # Conditionalize the makefile for this target machine.
5396 # Make-target contains the concatenation of all host makefile fragments
5397 # [there can be more than one]. This file is built by configure.frag.
5398 target_overrides
=Make-target
5400 for f
in ..
${tmake_file}
5402 if test -f ${srcdir}/config
/$f
5404 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
5408 # If the host doesn't support symlinks, modify CC in
5409 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5410 # Otherwise, we can use "CC=$(CC)".
5412 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5414 cc_set_by_configure
="\$(CC)"
5415 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5418 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5420 symbolic_link
="cp -p"
5424 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5425 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5429 out_object_file
=`basename $out_file .c`.o
5432 for f
in $tm_file; do
5433 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
5437 for f
in $host_xm_file; do
5438 if test $f != "auto-host.h"; then
5439 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
5441 host_xm_file_list
="${host_xm_file_list} auto-host.h"
5446 for f
in $build_xm_file; do
5447 if test $f != "auto-build.h"; then
5448 if test $f != "auto-host.h"; then
5449 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
5451 build_xm_file_list
="${build_xm_file_list} auto-host.h"
5454 build_xm_file_list
="${build_xm_file_list} auto-build.h"
5458 # Define macro CROSS_COMPILE in compilation
5459 # if this is a cross-compiler.
5460 # Also use all.cross instead of all.internal
5461 # and add cross-make to Makefile.
5462 cross_overrides
="/dev/null"
5463 if test x
$host != x
$target
5465 cross_defines
="CROSS=-DCROSS_COMPILE"
5466 cross_overrides
="${topdir}/cross-make"
5469 # When building gcc with a cross-compiler, we need to fix a few things.
5470 # This must come after cross-make as we want all.build to override
5472 build_overrides
="/dev/null"
5473 if test x
$build != x
$host
5475 build_overrides
="${topdir}/build-make"
5478 # Expand extra_headers to include complete path.
5479 # This substitutes for lots of t-* files.
5481 if test "x$extra_headers" = x
5484 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5485 for file in $extra_headers;
5487 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5491 if test x
$use_collect2 = xno
; then
5495 # Add a definition of USE_COLLECT2 if system wants one.
5496 # Also tell toplev.c what to do.
5497 # This substitutes for lots of t-* files.
5498 if test x
$use_collect2 = x
5503 will_use_collect2
="collect2"
5504 maybe_use_collect2
="-DUSE_COLLECT2"
5508 # Set MD_DEPS if the real md file is in md.pre-cpp.
5509 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5510 # for line oriented comments, so we must always use a GNU cpp. If
5511 # building gcc with a cross compiler, use the cross compiler just
5512 # built. Otherwise, we can use the cpp just built.
5514 if test "x$md_cppflags" = x
5516 md_file_sub
=$srcdir/config
/$md_file
5521 # If we have gas in the build tree, make a link to it.
5522 if test -f ..
/gas
/Makefile
; then
5523 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5526 # If we have nm in the build tree, make a link to it.
5527 if test -f ..
/binutils
/Makefile
; then
5528 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
5531 # If we have ld in the build tree, make a link to it.
5532 if test -f ..
/ld
/Makefile
; then
5533 # if test x$use_collect2 = x; then
5534 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5536 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
5540 # Figure out what assembler alignment features are present.
5541 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5542 echo "configure:5543: checking assembler alignment features" >&5
5544 gcc_cv_as_alignment_features
=
5545 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5546 if test -x "$AS"; then
5548 elif test -x as
$host_exeext; then
5549 # Build using assembler in the current directory.
5550 gcc_cv_as
=.
/as
$host_exeext
5551 elif test -f $gcc_cv_as_gas_srcdir/configure.
in; then
5552 # Single tree build which includes gas.
5553 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
5555 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5556 if test x
$gcc_cv_gas_version != x
; then
5560 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5561 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5562 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
5563 # Gas version 2.6 and later support for .balign and .p2align.
5564 # bytes to skip when using .p2align.
5565 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
5566 gcc_cv_as_alignment_features
=".balign and .p2align"
5567 cat >> confdefs.h
<<\EOF
5568 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5572 # Gas version 2.8 and later support specifying the maximum
5573 # bytes to skip when using .p2align.
5574 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
5575 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5576 cat >> confdefs.h
<<\EOF
5577 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5582 elif test x
$host = x
$target; then
5584 gcc_cv_as
=as
$host_exeext
5586 if test x
$gcc_cv_as != x
; then
5587 # Check if we have .balign and .p2align
5588 echo ".balign 4" > conftest.s
5589 echo ".p2align 2" >> conftest.s
5590 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5591 gcc_cv_as_alignment_features
=".balign and .p2align"
5592 cat >> confdefs.h
<<\EOF
5593 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5597 rm -f conftest.s conftest.o
5598 # Check if specifying the maximum bytes to skip when
5599 # using .p2align is supported.
5600 echo ".p2align 4,,7" > conftest.s
5601 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5602 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5603 cat >> confdefs.h
<<\EOF
5604 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5608 rm -f conftest.s conftest.o
5610 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5612 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
5613 echo "configure:5614: checking assembler subsection support" >&5
5614 gcc_cv_as_subsections
=
5615 if test x
$gcc_cv_as != x
; then
5616 # Check if we have .subsection
5617 echo ".subsection 1" > conftest.s
5618 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5619 gcc_cv_as_subsections
=".subsection"
5620 if test -x nm
$host_exeext; then
5621 gcc_cv_nm
=.
/nm
$host_exeext
5622 elif test x
$host = x
$target; then
5624 gcc_cv_nm
=nm
$host_exeext
5626 if test x
$gcc_cv_nm != x
; then
5627 cat > conftest.s
<<EOF
5628 conftest_label1: .word 0
5630 conftest_label2: .word 0
5633 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5634 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
5635 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
5636 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
5639 gcc_cv_as_subsections
="working .subsection -1"
5640 cat >> confdefs.h
<<\EOF
5641 #define HAVE_GAS_SUBSECTION_ORDERING 1
5648 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5650 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
5652 # Figure out what language subdirectories are present.
5654 for lang
in ${srcdir}/*/config-lang.
in ..
5658 # The odd quoting in the next line works around
5659 # an apparent bug in bash 1.12 on linux.
5660 ${srcdir}/ada
/config-lang.
in)
5661 if test x
$gnat = xyes
; then
5662 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
5665 ${srcdir}/[*]/config-lang.
in) ;;
5666 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5670 # Make gthr-default.h if we have a thread file.
5672 if test $thread_file != single
; then
5673 rm -f gthr-default.h
5674 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5675 gthread_flags
=-DHAVE_GTHR_DEFAULT
5679 # Make empty files to contain the specs and options for each language.
5680 # Then add #include lines to for a compiler that has specs and/or options.
5685 rm -f specs.h options.h gencheck.h
5686 touch specs.h options.h gencheck.h
5687 for subdir
in .
$subdirs
5689 if test -f $srcdir/$subdir/lang-specs.h
; then
5690 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5691 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5693 if test -f $srcdir/$subdir/lang-options.h
; then
5694 echo "#include \"$subdir/lang-options.h\"" >>options.h
5695 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
5697 if test -f $srcdir/$subdir/$subdir-tree.def
; then
5698 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
5699 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
5703 # These (without "all_") are set in each config-lang.in.
5704 # `language' must be a single word so is spelled singularly.
5710 all_outputs
=Makefile
5711 # List of language makefile fragments.
5716 # Add the language fragments.
5717 # Languages are added via two mechanisms. Some information must be
5718 # recorded in makefile variables, these are defined in config-lang.in.
5719 # We accumulate them and plug them into the main Makefile.
5720 # The other mechanism is a set of hooks for each of the main targets
5721 # like `clean', `install', etc.
5723 language_fragments
="Make-lang"
5724 language_hooks
="Make-hooks"
5727 for s
in ..
$subdirs
5739 .
${srcdir}/$s/config-lang.
in
5740 if test "x$language" = x
5742 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5745 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5746 all_languages
="$all_languages $language"
5747 if test "x$boot_language" = xyes
5749 all_boot_languages
="$all_boot_languages $language"
5751 all_compilers
="$all_compilers $compilers"
5752 all_stagestuff
="$all_stagestuff $stagestuff"
5753 all_diff_excludes
="$all_diff_excludes $diff_excludes"
5754 all_headers
="$all_headers $headers"
5755 all_outputs
="$all_outputs $outputs"
5756 if test x
$outputs = x
5758 oldstyle_subdirs
="$oldstyle_subdirs $s"
5760 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5764 # Since we can't use `::' targets, we link each language in
5765 # with a set of hooks, reached indirectly via lang.${target}.
5769 target_list
="all.build all.cross start.encap rest.encap \
5771 install-normal install-common install-info install-man \
5773 mostlyclean clean distclean extraclean maintainer-clean \
5774 stage1 stage2 stage3 stage4"
5775 for t
in $target_list
5778 for l
in ..
$all_languages
5780 if test $l != ".."; then
5784 echo "lang.$t: $x" >> Make-hooks
5787 # If we're not building in srcdir, create .gdbinit.
5789 if test ! -f Makefile.
in; then
5790 echo "dir ." > .gdbinit
5791 echo "dir ${srcdir}" >> .gdbinit
5792 if test x
$gdb_needs_out_file_path = xyes
5794 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5796 if test "x$subdirs" != x
; then
5799 echo "dir ${srcdir}/$s" >> .gdbinit
5802 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5805 # Define variables host_canonical and build_canonical
5806 # because some Cygnus local changes in the Makefile depend on them.
5807 build_canonical
=${build}
5808 host_canonical
=${host}
5810 if test "${host}" != "${target}" ; then
5811 target_subdir
=${target}/
5817 # If this is using newlib, then define inhibit_libc in
5818 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5819 # libgcc.a, but that's OK because newib should have its own version of
5822 if test x
$with_newlib = xyes
; then
5823 inhibit_libc
=-Dinhibit_libc
5827 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5830 if test x
$enable_haifa = xyes
; then
5831 echo "Using the Haifa scheduler."
5833 sched_cflags
=-DHAIFA
5837 if test x
$enable_haifa != x
; then
5838 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5839 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5847 # Warn if using init_priority.
5848 echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
5849 echo "configure:5850: checking whether to enable init_priority by default" >&5
5850 if test x
$enable_init_priority != xyes
; then
5851 enable_init_priority
=no
5853 echo "$ac_t""$enable_init_priority" 1>&6
5855 # Nothing to do for FLOAT_H, float_format already handled.
5859 # Process the language and host/target makefile fragments.
5860 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5862 # Substitute configuration variables
5920 # Echo that links are built
5921 if test x
$host = x
$target
5929 if test x
$host != x
$build
5931 str3
=" on a $build system"
5934 if test "x$str2" != x ||
test "x$str3" != x
5939 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5941 if test "x$str2" != x ||
test "x$str3" != x
5943 echo " ${str2}${str3}." 1>&2
5946 # Truncate the target if necessary
5947 if test x
$host_truncate_target != x
; then
5948 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5951 # Configure the subdirectories
5952 # AC_CONFIG_SUBDIRS($subdirs)
5954 # Create the Makefile
5955 # and configure language subdirectories
5957 cat > confcache
<<\EOF
5958 # This file is a shell script that caches the results of configure
5959 # tests run on this system so they can be shared between configure
5960 # scripts and configure runs. It is not useful on other systems.
5961 # If it contains results you don't want to keep, you may remove or edit it.
5963 # By default, configure uses ./config.cache as the cache file,
5964 # creating it if it does not exist already. You can give configure
5965 # the --cache-file=FILE option to use a different cache file; that is
5966 # what configure does when it calls configure scripts in
5967 # subdirectories, so they share the cache.
5968 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5969 # config.status only pays attention to the cache file if you give it the
5970 # --recheck option to rerun configure.
5973 # The following way of writing the cache mishandles newlines in values,
5974 # but we know of no workaround that is simple, portable, and efficient.
5975 # So, don't put newlines in cache variables' values.
5976 # Ultrix sh set writes to stderr and can't be redirected directly,
5977 # and sets the high bit in the cache file unless we assign to the vars.
5979 case `(ac_space=' '; set) 2>&1` in
5981 # `set' does not quote correctly, so add quotes (double-quote substitution
5982 # turns \\\\ into \\, and sed turns \\ into \).
5984 -e "s/'/'\\\\''/g" \
5985 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5988 # `set' quotes correctly as required by POSIX, so do not add quotes.
5989 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5992 if cmp -s $cache_file confcache
; then
5995 if test -w $cache_file; then
5996 echo "updating cache $cache_file"
5997 cat confcache
> $cache_file
5999 echo "not updating unwritable cache $cache_file"
6004 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6006 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6007 # Let make expand exec_prefix.
6008 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6010 # Any assignment to VPATH causes Sun make to only execute
6011 # the first set of double-colon rules, so remove it if not needed.
6012 # If there is a colon in the path, we need to keep it.
6013 if test "x$srcdir" = x.
; then
6014 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6017 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6019 DEFS
=-DHAVE_CONFIG_H
6021 # Without the "./", some shells look in PATH for config.status.
6022 : ${CONFIG_STATUS=./config.status}
6024 echo creating
$CONFIG_STATUS
6025 rm -f $CONFIG_STATUS
6026 cat > $CONFIG_STATUS <<EOF
6028 # Generated automatically by configure.
6029 # Run this file to recreate the current configuration.
6030 # This directory was configured as follows,
6031 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6033 # $0 $ac_configure_args
6035 # Compiler output produced by configure, useful for debugging
6036 # configure, is in ./config.log if it exists.
6038 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6041 case "\$ac_option" in
6042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6043 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6044 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6045 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6046 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6048 -help | --help | --hel | --he | --h)
6049 echo "\$ac_cs_usage"; exit 0 ;;
6050 *) echo "\$ac_cs_usage"; exit 1 ;;
6054 ac_given_srcdir=$srcdir
6056 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6058 cat >> $CONFIG_STATUS <<EOF
6060 # Protect against being on the right side of a sed subst in config.status.
6061 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6062 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6065 s%@CFLAGS@%$CFLAGS%g
6066 s%@CPPFLAGS@%$CPPFLAGS%g
6067 s%@CXXFLAGS@%$CXXFLAGS%g
6069 s%@LDFLAGS@%$LDFLAGS%g
6071 s%@exec_prefix@%$exec_prefix%g
6072 s%@prefix@%$prefix%g
6073 s%@program_transform_name@%$program_transform_name%g
6074 s%@bindir@%$bindir%g
6075 s%@sbindir@%$sbindir%g
6076 s%@libexecdir@%$libexecdir%g
6077 s%@datadir@%$datadir%g
6078 s%@sysconfdir@%$sysconfdir%g
6079 s%@sharedstatedir@%$sharedstatedir%g
6080 s%@localstatedir@%$localstatedir%g
6081 s%@libdir@%$libdir%g
6082 s%@includedir@%$includedir%g
6083 s%@oldincludedir@%$oldincludedir%g
6084 s%@infodir@%$infodir%g
6085 s%@mandir@%$mandir%g
6087 s%@host_alias@%$host_alias%g
6088 s%@host_cpu@%$host_cpu%g
6089 s%@host_vendor@%$host_vendor%g
6090 s%@host_os@%$host_os%g
6091 s%@target@%$target%g
6092 s%@target_alias@%$target_alias%g
6093 s%@target_cpu@%$target_cpu%g
6094 s%@target_vendor@%$target_vendor%g
6095 s%@target_os@%$target_os%g
6097 s%@build_alias@%$build_alias%g
6098 s%@build_cpu@%$build_cpu%g
6099 s%@build_vendor@%$build_vendor%g
6100 s%@build_os@%$build_os%g
6102 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
6103 s%@SET_MAKE@%$SET_MAKE%g
6106 s%@LEXLIB@%$LEXLIB%g
6109 s%@RANLIB@%$RANLIB%g
6111 s%@INSTALL@%$INSTALL%g
6112 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6113 s%@INSTALL_DATA@%$INSTALL_DATA%g
6116 s%@vfprintf@%$vfprintf%g
6117 s%@doprint@%$doprint%g
6118 s%@manext@%$manext%g
6119 s%@objext@%$objext%g
6120 s%@gthread_flags@%$gthread_flags%g
6121 s%@build_canonical@%$build_canonical%g
6122 s%@host_canonical@%$host_canonical%g
6123 s%@target_subdir@%$target_subdir%g
6124 s%@inhibit_libc@%$inhibit_libc%g
6125 s%@sched_prefix@%$sched_prefix%g
6126 s%@sched_cflags@%$sched_cflags%g
6127 s%@objdir@%$objdir%g
6128 s%@subdirs@%$subdirs%g
6129 s%@all_languages@%$all_languages%g
6130 s%@all_boot_languages@%$all_boot_languages%g
6131 s%@all_compilers@%$all_compilers%g
6132 s%@all_lang_makefiles@%$all_lang_makefiles%g
6133 s%@all_stagestuff@%$all_stagestuff%g
6134 s%@all_diff_excludes@%$all_diff_excludes%g
6135 s%@all_lib2funcs@%$all_lib2funcs%g
6136 s%@all_headers@%$all_headers%g
6137 s%@cpp_main@%$cpp_main%g
6138 s%@extra_passes@%$extra_passes%g
6139 s%@extra_programs@%$extra_programs%g
6140 s%@extra_parts@%$extra_parts%g
6141 s%@extra_c_objs@%$extra_c_objs%g
6142 s%@extra_cxx_objs@%$extra_cxx_objs%g
6143 s%@extra_cpp_objs@%$extra_cpp_objs%g
6144 s%@extra_c_flags@%$extra_c_flags%g
6145 s%@extra_objs@%$extra_objs%g
6146 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6147 s%@extra_headers_list@%$extra_headers_list%g
6148 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6149 s%@dep_tmake_file@%$dep_tmake_file%g
6150 s%@out_file@%$out_file%g
6151 s%@out_object_file@%$out_object_file%g
6152 s%@md_file@%$md_file%g
6153 s%@tm_file_list@%$tm_file_list%g
6154 s%@build_xm_file_list@%$build_xm_file_list%g
6155 s%@host_xm_file_list@%$host_xm_file_list%g
6156 s%@lang_specs_files@%$lang_specs_files%g
6157 s%@lang_options_files@%$lang_options_files%g
6158 s%@lang_tree_files@%$lang_tree_files%g
6159 s%@thread_file@%$thread_file%g
6160 s%@objc_boehm_gc@%$objc_boehm_gc%g
6161 s%@gcc_version@%$gcc_version%g
6162 s%@gcc_version_trigger@%$gcc_version_trigger%g
6163 s%@local_prefix@%$local_prefix%g
6164 s%@gxx_include_dir@%$gxx_include_dir%g
6165 s%@fixincludes@%$fixincludes%g
6166 s%@build_install_headers_dir@%$build_install_headers_dir%g
6167 s%@build_exeext@%$build_exeext%g
6168 s%@host_exeext@%$host_exeext%g
6169 s%@float_format@%$float_format%g
6170 s%@will_use_collect2@%$will_use_collect2%g
6171 s%@maybe_use_collect2@%$maybe_use_collect2%g
6172 s%@cc_set_by_configure@%$cc_set_by_configure%g
6173 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
6174 s%@install@%$install%g
6175 s%@symbolic_link@%$symbolic_link%g
6176 /@target_overrides@/r $target_overrides
6177 s%@target_overrides@%%g
6178 /@host_overrides@/r $host_overrides
6179 s%@host_overrides@%%g
6180 s%@cross_defines@%$cross_defines%g
6181 /@cross_overrides@/r $cross_overrides
6182 s%@cross_overrides@%%g
6183 /@build_overrides@/r $build_overrides
6184 s%@build_overrides@%%g
6185 /@language_fragments@/r $language_fragments
6186 s%@language_fragments@%%g
6187 /@language_hooks@/r $language_hooks
6188 s%@language_hooks@%%g
6193 cat >> $CONFIG_STATUS <<\EOF
6195 # Split the substitutions into bite-sized pieces for seds with
6196 # small command number limits, like on Digital OSF/1 and HP-UX.
6197 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6198 ac_file
=1 # Number of current file.
6199 ac_beg
=1 # First line for current file.
6200 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6203 while $ac_more_lines; do
6204 if test $ac_beg -gt 1; then
6205 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6207 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6209 if test ! -s conftest.s
$ac_file; then
6211 rm -f conftest.s
$ac_file
6213 if test -z "$ac_sed_cmds"; then
6214 ac_sed_cmds
="sed -f conftest.s$ac_file"
6216 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6218 ac_file
=`expr $ac_file + 1`
6220 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6223 if test -z "$ac_sed_cmds"; then
6228 cat >> $CONFIG_STATUS <<EOF
6230 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
6232 cat >> $CONFIG_STATUS <<\EOF
6233 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6234 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6236 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6237 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6238 *) ac_file_in
="${ac_file}.in" ;;
6241 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6243 # Remove last slash and all that follows it. Not all systems have dirname.
6244 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6245 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6246 # The file is in a subdirectory.
6247 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6248 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6249 # A "../" for each directory in $ac_dir_suffix.
6250 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6252 ac_dir_suffix
= ac_dots
=
6255 case "$ac_given_srcdir" in
6257 if test -z "$ac_dots"; then top_srcdir
=.
6258 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6259 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6261 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6262 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6266 echo creating
"$ac_file"
6268 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6270 *Makefile
*) ac_comsub
="1i\\
6271 # $configure_input" ;;
6275 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6277 s%@configure_input@%$configure_input%g
6278 s%@srcdir@%$srcdir%g
6279 s%@top_srcdir@%$top_srcdir%g
6280 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6284 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6285 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6287 # ac_d sets the value in "#define NAME VALUE" lines.
6288 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6289 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6292 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6293 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6294 ac_uB
='\([ ]\)%\1#\2define\3'
6297 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6298 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6299 ac_eB
='$%\1#\2define\3'
6303 if test "${CONFIG_HEADERS+set}" != set; then
6305 cat >> $CONFIG_STATUS <<EOF
6306 CONFIG_HEADERS="auto-host.h:config.in"
6308 cat >> $CONFIG_STATUS <<\EOF
6310 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6311 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6313 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6314 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6315 *) ac_file_in
="${ac_file}.in" ;;
6318 echo creating
$ac_file
6320 rm -f conftest.frag conftest.
in conftest.out
6321 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6322 cat $ac_file_inputs > conftest.
in
6326 # Transform confdefs.h into a sed script conftest.vals that substitutes
6327 # the proper values into config.h.in to produce config.h. And first:
6328 # Protect against being on the right side of a sed subst in config.status.
6329 # Protect against being in an unquoted here document in config.status.
6331 cat > conftest.hdr
<<\EOF
6334 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6338 sed -n -f conftest.hdr confdefs.h > conftest.vals
6341 # This sed command replaces #undef with comments. This is necessary, for
6342 # example, in the case of _POSIX_SOURCE, which is predefined and required
6343 # on some systems where configure will not decide to define it.
6344 cat >> conftest.vals <<\EOF
6345 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6348 # Break up conftest.vals because some shells have a limit on
6349 # the size of here documents, and old seds have small limits too.
6354 ac_lines=`grep -c . conftest.vals
`
6355 # grep -c gives empty output for an empty file on some AIX systems.
6356 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6357 # Write a limited-size here document to conftest.frag.
6358 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6359 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6361 sed -f conftest.frag conftest.in > conftest.out
6363 mv conftest.out conftest.in
6365 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6367 mv conftest.tail conftest.vals
6371 cat >> $CONFIG_STATUS <<\EOF
6372 rm -f conftest.frag conftest.h
6373 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6374 cat conftest.in >> conftest.h
6376 if cmp -s $ac_file conftest.h 2>/dev/null; then
6377 echo "$ac_file is unchanged"
6380 # Remove last slash and all that follows it. Not all systems have dirname.
6381 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6382 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6383 # The file is in a subdirectory.
6384 test ! -d "$ac_dir" && mkdir "$ac_dir"
6387 mv conftest.h $ac_file
6392 cat >> $CONFIG_STATUS <<EOF
6397 target_alias='${target_alias}'
6399 subdirs='${subdirs}'
6400 oldstyle_subdirs='${oldstyle_subdirs}'
6401 symbolic_link='${symbolic_link}'
6402 program_transform_set='${program_transform_set}'
6403 program_transform_name='${program_transform_name}'
6404 dep_host_xmake_file='${dep_host_xmake_file}'
6405 host_xmake_file='${host_xmake_file}'
6406 dep_tmake_file='${dep_tmake_file}'
6407 tmake_file='${tmake_file}'
6408 thread_file='${thread_file}'
6409 gcc_version='${gcc_version}'
6410 gcc_version_trigger='${gcc_version_trigger}'
6411 local_prefix='${local_prefix}'
6412 build_install_headers_dir='${build_install_headers_dir}'
6413 build_exeext='${build_exeext}'
6414 host_exeext='${host_exeext}'
6415 out_file='${out_file}'
6416 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
6417 SET_MAKE='${SET_MAKE}'
6418 target_list='${target_list}'
6419 target_overrides='${target_overrides}'
6420 host_overrides='${host_overrides}'
6421 cross_defines='${cross_defines}'
6422 cross_overrides='${cross_overrides}'
6423 build_overrides='${build_overrides}'
6426 cat >> $CONFIG_STATUS <<\EOF
6428 . $srcdir/configure.lang
6429 case x$CONFIG_HEADERS in
6430 xauto-host.h:config.in)
6433 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
6434 # bootstrapping and the installation procedure can still use
6435 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
6436 # FLAGS_TO_PASS has been modified to solve the problem there.
6437 # This is virtually a duplicate of what happens in configure.lang; we do
6438 # an extra check to make sure this only happens if ln -s can be used.
6439 if test "$symbolic_link" = "ln -s"; then
6440 for d in .. ${subdirs} ; do
6441 if test $d != ..; then
6444 for t in stage1 stage2 stage3 stage4 include
6447 $symbolic_link ../$t $t 2>/dev/null
6456 chmod +x $CONFIG_STATUS
6457 rm -fr confdefs* $ac_clean_files
6458 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1