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-gnu-as arrange to work with GNU as."
19 --with-stabs arrange to use stabs instead of host debug format."
21 --with-elf arrange to use ELF instead of host debug format."
23 --with-local-prefix=DIR specifies directory to put local include."
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
28 --enable-checking enable expensive run-time checks."
30 --enable-c-cpplib Use cpplib for C and C++."
32 --enable-c-mbchar Enable multibyte characters for C and C++."
34 --enable-haifa Use the experimental scheduler.
35 --disable-haifa Don't use the experimental scheduler for the
36 targets which normally enable it."
38 --with-fast-fixincludes Use a faster fixinclude program. Experimental"
40 --enable-init-priority Use attributes to assign initialization order
42 --disable-init-priority Conform to ISO C++ rules for ordering static objects
43 (i.e. initialized in order of declaration). "
45 --enable-threads enable thread usage for target GCC.
46 --enable-threads=LIB use LIB thread package for target GCC."
48 --enable-objc-gc enable the use of Boehm's garbage collector with
49 the GNU Objective-C runtime."
51 # Initialize some variables set by options.
52 # The variables have the same names as the options, with
53 # dashes changed to underlines.
55 cache_file
=.
/config.cache
64 program_transform_name
=s
,x
,x
,
72 bindir
='${exec_prefix}/bin'
73 sbindir
='${exec_prefix}/sbin'
74 libexecdir
='${exec_prefix}/libexec'
75 datadir
='${prefix}/share'
76 sysconfdir
='${prefix}/etc'
77 sharedstatedir
='${prefix}/com'
78 localstatedir
='${prefix}/var'
79 libdir
='${exec_prefix}/lib'
80 includedir
='${prefix}/include'
81 oldincludedir
='/usr/include'
82 infodir
='${prefix}/info'
83 mandir
='${prefix}/man'
85 # Initialize some other variables.
88 # Maximum number of lines to put in a shell here document.
95 # If the previous option needs an argument, assign it.
96 if test -n "$ac_prev"; then
97 eval "$ac_prev=\$ac_option"
103 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107 # Accept the important Cygnus configure options, so we can diagnose typos.
111 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
113 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
114 bindir
="$ac_optarg" ;;
116 -build |
--build |
--buil |
--bui |
--bu)
118 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
119 build
="$ac_optarg" ;;
121 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
122 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
123 ac_prev
=cache_file
;;
124 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
125 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
126 cache_file
="$ac_optarg" ;;
128 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
130 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
132 datadir
="$ac_optarg" ;;
134 -disable-* |
--disable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}=no" ;;
143 -enable-* |
--enable-*)
144 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}='$ac_optarg'" ;;
156 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
157 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
158 |
--exec |
--exe |
--ex)
159 ac_prev
=exec_prefix
;;
160 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
161 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
162 |
--exec=* |
--exe=* |
--ex=*)
163 exec_prefix
="$ac_optarg" ;;
165 -gas |
--gas |
--ga |
--g)
166 # Obsolete; use --with-gas.
169 -help |
--help |
--hel |
--he)
170 # Omit some internal or obsolete options to make the list less imposing.
171 # This message is too long to be a string in the A/UX 3.1 sh.
173 Usage: configure [options] [host]
174 Options: [defaults in brackets after descriptions]
176 --cache-file=FILE cache test results in FILE
177 --help print this message
178 --no-create do not create output files
179 --quiet, --silent do not print \`checking...' messages
180 --version print the version of autoconf that created configure
181 Directory and file names:
182 --prefix=PREFIX install architecture-independent files in PREFIX
184 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
186 --bindir=DIR user executables in DIR [EPREFIX/bin]
187 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
188 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
189 --datadir=DIR read-only architecture-independent data in DIR
191 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
192 --sharedstatedir=DIR modifiable architecture-independent data in DIR
194 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
195 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
196 --includedir=DIR C header files in DIR [PREFIX/include]
197 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
198 --infodir=DIR info documentation in DIR [PREFIX/info]
199 --mandir=DIR man documentation in DIR [PREFIX/man]
200 --srcdir=DIR find the sources in DIR [configure dir or ..]
201 --program-prefix=PREFIX prepend PREFIX to installed program names
202 --program-suffix=SUFFIX append SUFFIX to installed program names
203 --program-transform-name=PROGRAM
204 run sed PROGRAM on installed program names
208 --build=BUILD configure for building on BUILD [BUILD=HOST]
209 --host=HOST configure for HOST [guessed]
210 --target=TARGET configure for TARGET [TARGET=HOST]
211 Features and packages:
212 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
213 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
214 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
215 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
216 --x-includes=DIR X include files are in DIR
217 --x-libraries=DIR X library files are in DIR
219 if test -n "$ac_help"; then
220 echo "--enable and --with options recognized:$ac_help"
224 -host |
--host |
--hos |
--ho)
226 -host=* |
--host=* |
--hos=* |
--ho=*)
229 -includedir |
--includedir |
--includedi |
--included |
--include \
230 |
--includ |
--inclu |
--incl |
--inc)
231 ac_prev
=includedir
;;
232 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
233 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
234 includedir
="$ac_optarg" ;;
236 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
238 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
239 infodir
="$ac_optarg" ;;
241 -libdir |
--libdir |
--libdi |
--libd)
243 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
244 libdir
="$ac_optarg" ;;
246 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
247 |
--libexe |
--libex |
--libe)
248 ac_prev
=libexecdir
;;
249 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
250 |
--libexe=* |
--libex=* |
--libe=*)
251 libexecdir
="$ac_optarg" ;;
253 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
254 |
--localstate |
--localstat |
--localsta |
--localst \
255 |
--locals |
--local |
--loca |
--loc |
--lo)
256 ac_prev
=localstatedir
;;
257 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
258 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
259 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
260 localstatedir
="$ac_optarg" ;;
262 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
264 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
265 mandir
="$ac_optarg" ;;
268 # Obsolete; use --without-fp.
271 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
275 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
276 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
279 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
280 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
281 |
--oldin |
--oldi |
--old |
--ol |
--o)
282 ac_prev
=oldincludedir
;;
283 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
284 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
285 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
286 oldincludedir
="$ac_optarg" ;;
288 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
290 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
291 prefix
="$ac_optarg" ;;
293 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
294 |
--program-pre |
--program-pr |
--program-p)
295 ac_prev
=program_prefix
;;
296 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
297 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
298 program_prefix
="$ac_optarg" ;;
300 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
301 |
--program-suf |
--program-su |
--program-s)
302 ac_prev
=program_suffix
;;
303 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
304 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
305 program_suffix
="$ac_optarg" ;;
307 -program-transform-name |
--program-transform-name \
308 |
--program-transform-nam |
--program-transform-na \
309 |
--program-transform-n |
--program-transform- \
310 |
--program-transform |
--program-transfor \
311 |
--program-transfo |
--program-transf \
312 |
--program-trans |
--program-tran \
313 |
--progr-tra |
--program-tr |
--program-t)
314 ac_prev
=program_transform_name
;;
315 -program-transform-name=* |
--program-transform-name=* \
316 |
--program-transform-nam=* |
--program-transform-na=* \
317 |
--program-transform-n=* |
--program-transform-=* \
318 |
--program-transform=* |
--program-transfor=* \
319 |
--program-transfo=* |
--program-transf=* \
320 |
--program-trans=* |
--program-tran=* \
321 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
322 program_transform_name
="$ac_optarg" ;;
324 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
325 |
-silent |
--silent |
--silen |
--sile |
--sil)
328 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
330 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
332 sbindir
="$ac_optarg" ;;
334 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
335 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
336 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
338 ac_prev
=sharedstatedir
;;
339 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
340 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
341 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
343 sharedstatedir
="$ac_optarg" ;;
345 -site |
--site |
--sit)
347 -site=* |
--site=* |
--sit=*)
350 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
352 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
353 srcdir
="$ac_optarg" ;;
355 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
356 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
357 ac_prev
=sysconfdir
;;
358 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
359 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
360 sysconfdir
="$ac_optarg" ;;
362 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
364 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
365 target
="$ac_optarg" ;;
367 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
370 -version |
--version |
--versio |
--versi |
--vers)
371 echo "configure generated by autoconf version 2.12"
375 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package
=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}='$ac_optarg'" ;;
387 -without-* |
--without-*)
388 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package
=`echo $ac_package| sed 's/-/_/g'`
394 eval "with_${ac_package}=no" ;;
397 # Obsolete; use --with-x.
400 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
401 |
--x-incl |
--x-inc |
--x-in |
--x-i)
402 ac_prev
=x_includes
;;
403 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
404 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
405 x_includes
="$ac_optarg" ;;
407 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
408 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
409 ac_prev
=x_libraries
;;
410 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
411 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
412 x_libraries
="$ac_optarg" ;;
414 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
418 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
419 echo "configure: warning: $ac_option: invalid host type" 1>&2
421 if test "x$nonopt" != xNONE
; then
422 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
430 if test -n "$ac_prev"; then
431 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
434 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
436 # File descriptor usage:
439 # 2 errors and warnings
440 # 3 some systems may open it to /dev/tty
441 # 4 used on the Kubota Titan
442 # 6 checking for... messages and results
443 # 5 compiler messages saved in config.log
444 if test "$silent" = yes; then
452 This file contains any messages produced by compilers while
453 running configure, to aid debugging if configure makes a mistake.
456 # Strip out --no-create and --no-recursion so they do not pile up.
457 # Also quote any args containing shell metacharacters.
462 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
463 |
--no-cr |
--no-c) ;;
464 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
465 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
466 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
467 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
468 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
473 # Only set these to C if already set. These must not be set unconditionally
474 # because not all systems understand e.g. LANG=C (notably SCO).
475 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
476 # Non-C LC_CTYPE values break the ctype check.
477 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
478 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
479 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
480 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
482 # confdefs.h avoids OS command line length limits that DEFS can exceed.
483 rm -rf conftest
* confdefs.h
484 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
487 # A filename unique to this package, relative to the directory that
488 # configure is in, which we can look for to find out if srcdir is correct.
489 ac_unique_file
=tree.c
491 # Find the source files, if location was not specified.
492 if test -z "$srcdir"; then
493 ac_srcdir_defaulted
=yes
494 # Try the directory containing this script, then its parent.
496 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
497 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
499 if test ! -r $srcdir/$ac_unique_file; then
503 ac_srcdir_defaulted
=no
505 if test ! -r $srcdir/$ac_unique_file; then
506 if test "$ac_srcdir_defaulted" = yes; then
507 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
512 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
514 # Prefer explicitly selected file to automatically selected ones.
515 if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE
; then
517 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
519 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
522 for ac_site_file
in $CONFIG_SITE; do
523 if test -r "$ac_site_file"; then
524 echo "loading site script $ac_site_file"
529 if test -r "$cache_file"; then
530 echo "loading cache $cache_file"
533 echo "creating cache $cache_file"
538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539 ac_cpp
='$CPP $CPPFLAGS'
540 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542 cross_compiling
=$ac_cv_prog_cc_cross
544 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
545 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
546 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
553 ac_n
= ac_c
='\c' ac_t
=
561 symbolic_link
='ln -s'
564 # Check for bogus environment variables.
565 # Test if LIBRARY_PATH contains the notation for the current directory
566 # since this would lead to problems installing/building glibc.
567 # LIBRARY_PATH contains the current directory if one of the following
569 # - one of the terminals (":" and ";") is the first or last sign
570 # - two terminals occur directly after each other
571 # - the path contains an element with a dot in it
572 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
573 echo "configure:574: checking LIBRARY_PATH variable" >&5
574 case ${LIBRARY_PATH} in
575 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
576 library_path_setting
="contains current directory"
579 library_path_setting
="ok"
582 echo "$ac_t""$library_path_setting" 1>&6
583 if test "$library_path_setting" != "ok"; then
584 { echo "configure: error:
585 *** LIBRARY_PATH shouldn't contain the current directory when
586 *** building egcs. Please change the environment variable
587 *** and run configure again." 1>&2; exit 1; }
590 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
591 # since this would lead to problems installing/building glibc.
592 # GCC_EXEC_PREFIX contains the current directory if one of the following
594 # - one of the terminals (":" and ";") is the first or last sign
595 # - two terminals occur directly after each other
596 # - the path contains an element with a dot in it
597 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
598 echo "configure:599: checking GCC_EXEC_PREFIX variable" >&5
599 case ${GCC_EXEC_PREFIX} in
600 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
601 gcc_exec_prefix_setting
="contains current directory"
604 gcc_exec_prefix_setting
="ok"
607 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
608 if test "$gcc_exec_prefix_setting" != "ok"; then
609 { echo "configure: error:
610 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
611 *** building egcs. Please change the environment variable
612 *** and run configure again." 1>&2; exit 1; }
615 # Check for additional parameters
618 # Check whether --with-gnu-ld or --without-gnu-ld was given.
619 if test "${with_gnu_ld+set}" = set; then
620 withval
="$with_gnu_ld"
621 gnu_ld_flag
="$with_gnu_ld"
628 # Check whether --with-gnu-as or --without-gnu-as was given.
629 if test "${with_gnu_as+set}" = set; then
630 withval
="$with_gnu_as"
631 gas_flag
="$with_gnu_as"
638 # Check whether --with-stabs or --without-stabs was given.
639 if test "${with_stabs+set}" = set; then
640 withval
="$with_stabs"
648 # Check whether --with-elf or --without-elf was given.
649 if test "${with_elf+set}" = set; then
657 # Specify the local prefix
659 # Check whether --with-local-prefix or --without-local-prefix was given.
660 if test "${with_local_prefix+set}" = set; then
661 withval
="$with_local_prefix"
663 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
665 *) local_prefix
=$with_local_prefix ;;
670 # Default local prefix if it is empty
671 if test x
$local_prefix = x
; then
672 local_prefix
=/usr
/local
676 # Specify the g++ header file directory
677 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
678 if test "${with_gxx_include_dir+set}" = set; then
679 withval
="$with_gxx_include_dir"
681 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
683 *) gxx_include_dir
=$with_gxx_include_dir ;;
688 if test x
${gxx_include_dir} = x
; then
689 if test x
${enable_version_specific_runtime_libs} = xyes
; then
690 gxx_include_dir
='${libsubdir}/include/g++'
692 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
693 gxx_include_dir
='${prefix}/include/g++'-${libstdcxx_interface}
697 # Enable expensive internal checks
698 # Check whether --enable-checking or --disable-checking was given.
699 if test "${enable_checking+set}" = set; then
700 enableval
="$enable_checking"
701 case "${enableval}" in
702 yes) cat >> confdefs.h
<<\EOF
703 #define ENABLE_CHECKING 1
707 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
712 # Enable use of cpplib for C.
714 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
715 if test "${enable_c_cpplib+set}" = set; then
716 enableval
="$enable_c_cpplib"
717 if test x
$enable_c_cpplib != xno
; then
718 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
719 extra_c_objs
="${extra_c_objs} prefix.o"
720 extra_cxx_objs
="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
721 extra_c_flags
=-DUSE_CPPLIB=1
727 # Enable Multibyte Characters for C/C++
728 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
729 if test "${enable_c_mbchar+set}" = set; then
730 enableval
="$enable_c_mbchar"
731 if test x
$enable_c_mbchar != xno
; then
732 extra_c_flags
=-DMULTIBYTE_CHARS=1
737 # Enable Haifa scheduler.
738 # Check whether --enable-haifa or --disable-haifa was given.
739 if test "${enable_haifa+set}" = set; then
740 enableval
="$enable_haifa"
746 # This is a work in progress...
747 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
748 if test "${with_fast_fixincludes+set}" = set; then
749 withval
="$with_fast_fixincludes"
750 fast_fixinc
="$with_fast_fixincludes"
756 # Enable init_priority.
757 # Check whether --enable-init-priority or --disable-init-priority was given.
758 if test "${enable_init_priority+set}" = set; then
759 enableval
="$enable_init_priority"
760 if test x
$enable_init_priority != xno
; then
761 extra_c_flags
=-DUSE_INIT_PRIORITY
767 # Pass with no value to take the default
768 # Pass with a value to specify a thread package
769 # Check whether --enable-threads or --disable-threads was given.
770 if test "${enable_threads+set}" = set; then
771 enableval
="$enable_threads"
772 if test x
$enable_threads = xno
; then
780 enable_threads_flag
=$enable_threads
781 # Check if a valid thread package
782 case x
${enable_threads_flag} in
785 target_thread_file
='single'
789 target_thread_file
=''
791 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
792 xsolaris | xwin32 | xdce | xvxworks
)
793 target_thread_file
=$enable_threads_flag
796 echo "$enable_threads is an unknown thread package" 1>&2
801 # Check whether --enable-objc-gc or --disable-objc-gc was given.
802 if test "${enable_objc_gc+set}" = set; then
803 enableval
="$enable_objc_gc"
804 if [ x
$enable_objc_gc = xno
]; then
814 # Determine the host, build, and target systems
816 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
817 if test -f $ac_dir/install-sh
; then
819 ac_install_sh
="$ac_aux_dir/install-sh -c"
821 elif test -f $ac_dir/install.sh
; then
823 ac_install_sh
="$ac_aux_dir/install.sh -c"
827 if test -z "$ac_aux_dir"; then
828 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
830 ac_config_guess
=$ac_aux_dir/config.guess
831 ac_config_sub
=$ac_aux_dir/config.sub
832 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
835 # Do some error checking and defaulting for the host and target type.
837 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
840 # 1. You are not allowed to specify --host, --target, and nonopt at the
842 # 2. Host defaults to nonopt.
843 # 3. If nonopt is not specified, then host defaults to the current host,
844 # as determined by config.guess.
845 # 4. Target and build default to nonopt.
846 # 5. If nonopt is not specified, then target and build default to host.
848 # The aliases save the names the user supplied, while $host etc.
849 # will get canonicalized.
850 case $host---$target---$nonopt in
851 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
852 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
856 # Make sure we can run config.sub.
857 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
858 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
861 echo $ac_n "checking host system type""... $ac_c" 1>&6
862 echo "configure:863: checking host system type" >&5
865 case "$host_alias" in
869 if host_alias
=`$ac_config_guess`; then :
870 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
872 *) host_alias
=$nonopt ;;
876 host=`$ac_config_sub $host_alias`
877 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
878 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
879 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
880 echo "$ac_t""$host" 1>&6
882 echo $ac_n "checking target system type""... $ac_c" 1>&6
883 echo "configure:884: checking target system type" >&5
886 case "$target_alias" in
889 NONE
) target_alias
=$host_alias ;;
890 *) target_alias
=$nonopt ;;
894 target
=`$ac_config_sub $target_alias`
895 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
896 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
897 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
898 echo "$ac_t""$target" 1>&6
900 echo $ac_n "checking build system type""... $ac_c" 1>&6
901 echo "configure:902: checking build system type" >&5
904 case "$build_alias" in
907 NONE
) build_alias
=$host_alias ;;
908 *) build_alias
=$nonopt ;;
912 build
=`$ac_config_sub $build_alias`
913 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
914 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
915 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
916 echo "$ac_t""$build" 1>&6
918 test "$host_alias" != "$target_alias" &&
919 test "$program_prefix$program_suffix$program_transform_name" = \
921 program_prefix
=${target_alias}-
924 # Find the native compiler
925 # Extract the first word of "gcc", so it can be a program name with args.
926 set dummy gcc
; ac_word
=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 if test -n "$CC"; then
933 ac_cv_prog_CC
="$CC" # Let the user override the test.
935 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
936 for ac_dir
in $PATH; do
937 test -z "$ac_dir" && ac_dir
=.
938 if test -f $ac_dir/$ac_word; then
947 if test -n "$CC"; then
948 echo "$ac_t""$CC" 1>&6
950 echo "$ac_t""no" 1>&6
953 if test -z "$CC"; then
954 # Extract the first word of "cc", so it can be a program name with args.
955 set dummy cc
; ac_word
=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$CC"; then
962 ac_cv_prog_CC
="$CC" # Let the user override the test.
964 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
966 for ac_dir
in $PATH; do
967 test -z "$ac_dir" && ac_dir
=.
968 if test -f $ac_dir/$ac_word; then
969 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
978 if test $ac_prog_rejected = yes; then
979 # We found a bogon in the path, so make sure we never use it.
980 set dummy
$ac_cv_prog_CC
982 if test $# -gt 0; then
983 # We chose a different compiler from the bogus one.
984 # However, it has the same basename, so the bogon will be chosen
985 # first if we set CC to just the basename; use the full file name.
987 set dummy
"$ac_dir/$ac_word" "$@"
995 if test -n "$CC"; then
996 echo "$ac_t""$CC" 1>&6
998 echo "$ac_t""no" 1>&6
1001 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1004 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1005 echo "configure:1006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1008 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1009 ac_cpp
='$CPP $CPPFLAGS'
1010 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1011 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1012 cross_compiling
=$ac_cv_prog_cc_cross
1014 cat > conftest.
$ac_ext <<EOF
1015 #line 1016 "configure"
1016 #include "confdefs.h"
1019 if { (eval echo configure
:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1020 ac_cv_prog_cc_works
=yes
1021 # If we can't run a trivial program, we are probably using a cross compiler.
1022 if (.
/conftest
; exit) 2>/dev
/null
; then
1023 ac_cv_prog_cc_cross
=no
1025 ac_cv_prog_cc_cross
=yes
1028 echo "configure: failed program was:" >&5
1029 cat conftest.
$ac_ext >&5
1030 ac_cv_prog_cc_works
=no
1034 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1035 if test $ac_cv_prog_cc_works = no
; then
1036 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1038 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1040 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1041 cross_compiling
=$ac_cv_prog_cc_cross
1043 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1044 echo "configure:1045: checking whether we are using GNU C" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 cat > conftest.c
<<EOF
1053 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1060 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1062 if test $ac_cv_prog_gcc = yes; then
1064 ac_test_CFLAGS
="${CFLAGS+set}"
1065 ac_save_CFLAGS
="$CFLAGS"
1067 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1068 echo "configure:1069: checking whether ${CC-cc} accepts -g" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 echo 'void f(){}' > conftest.c
1073 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1082 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1083 if test "$ac_test_CFLAGS" = set; then
1084 CFLAGS
="$ac_save_CFLAGS"
1085 elif test $ac_cv_prog_cc_g = yes; then
1092 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1096 # If the native compiler is GCC, we can enable warnings even in stage1.
1097 # That's useful for people building cross-compilers, or just running a
1099 if test "x$GCC" = "xyes"; then
1100 stage1_warn_cflags
='$(WARN_CFLAGS)'
1102 stage1_warn_cflags
=""
1106 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1107 echo "configure:1108: checking whether ${MAKE-make} sets \${MAKE}" >&5
1108 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1109 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 cat > conftestmake
<<\EOF
1114 @
echo 'ac_maketemp="${MAKE}"'
1116 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1117 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1118 if test -n "$ac_maketemp"; then
1119 eval ac_cv_prog_make_
${ac_make}_set
=yes
1121 eval ac_cv_prog_make_
${ac_make}_set
=no
1125 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1126 echo "$ac_t""yes" 1>&6
1129 echo "$ac_t""no" 1>&6
1130 SET_MAKE
="MAKE=${MAKE-make}"
1134 # Find some useful tools
1135 for ac_prog
in mawk gawk nawk
awk
1137 # Extract the first word of "$ac_prog", so it can be a program name with args.
1138 set dummy
$ac_prog; ac_word
=$2
1139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1140 echo "configure:1141: checking for $ac_word" >&5
1141 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 if test -n "$AWK"; then
1145 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1147 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1148 for ac_dir
in $PATH; do
1149 test -z "$ac_dir" && ac_dir
=.
1150 if test -f $ac_dir/$ac_word; then
1151 ac_cv_prog_AWK
="$ac_prog"
1158 AWK
="$ac_cv_prog_AWK"
1159 if test -n "$AWK"; then
1160 echo "$ac_t""$AWK" 1>&6
1162 echo "$ac_t""no" 1>&6
1165 test -n "$AWK" && break
1168 # Extract the first word of "flex", so it can be a program name with args.
1169 set dummy flex
; ac_word
=$2
1170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1171 echo "configure:1172: checking for $ac_word" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 if test -n "$LEX"; then
1176 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1179 for ac_dir
in $PATH; do
1180 test -z "$ac_dir" && ac_dir
=.
1181 if test -f $ac_dir/$ac_word; then
1182 ac_cv_prog_LEX
="flex"
1187 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1190 LEX
="$ac_cv_prog_LEX"
1191 if test -n "$LEX"; then
1192 echo "$ac_t""$LEX" 1>&6
1194 echo "$ac_t""no" 1>&6
1197 if test -z "$LEXLIB"
1203 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1204 echo "configure:1205: checking for yywrap in -l$ac_lib" >&5
1205 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 ac_save_LIBS
="$LIBS"
1210 LIBS
="-l$ac_lib $LIBS"
1211 cat > conftest.
$ac_ext <<EOF
1212 #line 1213 "configure"
1213 #include "confdefs.h"
1214 /* Override any gcc2 internal prototype to avoid an error. */
1215 /* We use char because int might match the return type of a gcc2
1216 builtin and then its argument prototype would still apply. */
1223 if { (eval echo configure
:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1225 eval "ac_cv_lib_$ac_lib_var=yes"
1227 echo "configure: failed program was:" >&5
1228 cat conftest.
$ac_ext >&5
1230 eval "ac_cv_lib_$ac_lib_var=no"
1233 LIBS
="$ac_save_LIBS"
1236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1240 echo "$ac_t""no" 1>&6
1245 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether ln works" >&5
1247 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 rm -f conftestdata_t
1251 echo >conftestdata_f
1252 if ln conftestdata_f conftestdata_t
2>/dev
/null
1256 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1258 gcc_cv_prog_LN
="ln -s"
1263 rm -f conftestdata_f conftestdata_t
1266 LN
="$gcc_cv_prog_LN"
1267 if test "$gcc_cv_prog_LN" = "ln"; then
1268 echo "$ac_t""yes" 1>&6
1270 if test "$gcc_cv_prog_LN" = "ln -s"; then
1271 echo "$ac_t""no, using ln -s" 1>&6
1273 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1277 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1278 echo "configure:1279: checking whether ln -s works" >&5
1279 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 rm -f conftestdata_t
1283 echo >conftestdata_f
1284 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1286 gcc_cv_prog_LN_S
="ln -s"
1288 if ln conftestdata_f conftestdata_t
2>/dev
/null
1295 rm -f conftestdata_f conftestdata_t
1298 LN_S
="$gcc_cv_prog_LN_S"
1299 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1300 echo "$ac_t""yes" 1>&6
1302 if test "$gcc_cv_prog_LN_S" = "ln"; then
1303 echo "$ac_t""no, using ln" 1>&6
1305 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1309 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1310 echo "configure:1311: checking for volatile" >&5
1311 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 cat > conftest.
$ac_ext <<EOF
1315 #line 1316 "configure"
1316 #include "confdefs.h"
1322 if { (eval echo configure
:1323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 gcc_cv_c_volatile
=yes
1326 echo "configure: failed program was:" >&5
1327 cat conftest.
$ac_ext >&5
1329 gcc_cv_c_volatile
=no
1334 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1335 if test $gcc_cv_c_volatile = yes ; then
1336 cat >> confdefs.h
<<\EOF
1337 #define HAVE_VOLATILE 1
1342 # Extract the first word of "ranlib", so it can be a program name with args.
1343 set dummy ranlib
; ac_word
=$2
1344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_word" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 if test -n "$RANLIB"; then
1350 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1352 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1353 for ac_dir
in $PATH; do
1354 test -z "$ac_dir" && ac_dir
=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_RANLIB
="ranlib"
1361 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1364 RANLIB
="$ac_cv_prog_RANLIB"
1365 if test -n "$RANLIB"; then
1366 echo "$ac_t""$RANLIB" 1>&6
1368 echo "$ac_t""no" 1>&6
1371 for ac_prog
in 'bison -y' byacc
1373 # Extract the first word of "$ac_prog", so it can be a program name with args.
1374 set dummy
$ac_prog; ac_word
=$2
1375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1376 echo "configure:1377: checking for $ac_word" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1380 if test -n "$YACC"; then
1381 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1383 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1384 for ac_dir
in $PATH; do
1385 test -z "$ac_dir" && ac_dir
=.
1386 if test -f $ac_dir/$ac_word; then
1387 ac_cv_prog_YACC
="$ac_prog"
1394 YACC
="$ac_cv_prog_YACC"
1395 if test -n "$YACC"; then
1396 echo "$ac_t""$YACC" 1>&6
1398 echo "$ac_t""no" 1>&6
1401 test -n "$YACC" && break
1403 test -n "$YACC" || YACC
="yacc"
1405 # Find a good install program. We prefer a C program (faster),
1406 # so one script is as good as another. But avoid the broken or
1407 # incompatible versions:
1408 # SysV /etc/install, /usr/sbin/install
1409 # SunOS /usr/etc/install
1410 # IRIX /sbin/install
1412 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1413 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1414 # ./install, which can be erroneously created by make from ./install.sh.
1415 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1416 echo "configure:1417: checking for a BSD compatible install" >&5
1417 if test -z "$INSTALL"; then
1418 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1422 for ac_dir
in $PATH; do
1423 # Account for people who put trailing slashes in PATH elements.
1425 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1427 # OSF1 and SCO ODT 3.0 have their own names for install.
1428 for ac_prog
in ginstall scoinst
install; do
1429 if test -f $ac_dir/$ac_prog; then
1430 if test $ac_prog = install &&
1431 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1432 # AIX install. It has an incompatible calling convention.
1433 # OSF/1 installbsd also uses dspmsg, but is usable.
1436 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1447 if test "${ac_cv_path_install+set}" = set; then
1448 INSTALL
="$ac_cv_path_install"
1450 # As a last resort, use the slow shell script. We don't cache a
1451 # path for INSTALL within a source directory, because that will
1452 # break other packages using the cache if that directory is
1453 # removed, or if the path is relative.
1454 INSTALL
="$ac_install_sh"
1457 echo "$ac_t""$INSTALL" 1>&6
1459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1460 # It thinks the first close brace ends the variable substitution.
1461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1463 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1466 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1467 echo "configure:1468: checking how to run the C preprocessor" >&5
1468 # On Suns, sometimes $CPP names a directory.
1469 if test -n "$CPP" && test -d "$CPP"; then
1472 if test -z "$CPP"; then
1473 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 # This must be in double quotes, not single quotes, because CPP may get
1477 # substituted into the Makefile and "${CC-cc}" will confuse make.
1479 # On the NeXT, cc -E runs the code through the compiler's parser,
1480 # not just through cpp.
1481 cat > conftest.
$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1487 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1488 { (eval echo configure
:1489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1489 ac_err
=`grep -v '^ *+' conftest.out`
1490 if test -z "$ac_err"; then
1494 echo "configure: failed program was:" >&5
1495 cat conftest.
$ac_ext >&5
1497 CPP
="${CC-cc} -E -traditional-cpp"
1498 cat > conftest.
$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1504 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1505 { (eval echo configure
:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1506 ac_err
=`grep -v '^ *+' conftest.out`
1507 if test -z "$ac_err"; then
1511 echo "configure: failed program was:" >&5
1512 cat conftest.
$ac_ext >&5
1519 ac_cv_prog_CPP
="$CPP"
1521 CPP
="$ac_cv_prog_CPP"
1523 ac_cv_prog_CPP
="$CPP"
1525 echo "$ac_t""$CPP" 1>&6
1527 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1528 echo "configure:1529: checking for ANSI C header files" >&5
1529 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 cat > conftest.
$ac_ext <<EOF
1533 #line 1534 "configure"
1534 #include "confdefs.h"
1540 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1541 { (eval echo configure
:1542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1542 ac_err
=`grep -v '^ *+' conftest.out`
1543 if test -z "$ac_err"; then
1545 ac_cv_header_stdc
=yes
1548 echo "configure: failed program was:" >&5
1549 cat conftest.
$ac_ext >&5
1551 ac_cv_header_stdc
=no
1555 if test $ac_cv_header_stdc = yes; then
1556 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1557 cat > conftest.
$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1563 egrep "memchr" >/dev
/null
2>&1; then
1567 ac_cv_header_stdc
=no
1573 if test $ac_cv_header_stdc = yes; then
1574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1575 cat > conftest.
$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1581 egrep "free" >/dev
/null
2>&1; then
1585 ac_cv_header_stdc
=no
1591 if test $ac_cv_header_stdc = yes; then
1592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1593 if test "$cross_compiling" = yes; then
1596 cat > conftest.
$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1600 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1601 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1603 int main () { int i; for (i = 0; i < 256; i++)
1604 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1608 if { (eval echo configure
:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1612 echo "configure: failed program was:" >&5
1613 cat conftest.
$ac_ext >&5
1615 ac_cv_header_stdc
=no
1623 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1624 if test $ac_cv_header_stdc = yes; then
1625 cat >> confdefs.h
<<\EOF
1626 #define STDC_HEADERS 1
1631 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1632 echo "configure:1633: checking whether time.h and sys/time.h may both be included" >&5
1633 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 cat > conftest.
$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 #include <sys/types.h>
1640 #include <sys/time.h>
1646 if { (eval echo configure
:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648 ac_cv_header_time
=yes
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1653 ac_cv_header_time
=no
1658 echo "$ac_t""$ac_cv_header_time" 1>&6
1659 if test $ac_cv_header_time = yes; then
1660 cat >> confdefs.h
<<\EOF
1661 #define TIME_WITH_SYS_TIME 1
1666 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1667 echo "configure:1668: checking whether string.h and strings.h may both be included" >&5
1668 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 cat > conftest.
$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1675 #include <strings.h>
1680 if { (eval echo configure
:1681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1682 gcc_cv_header_string
=yes
1684 echo "configure: failed program was:" >&5
1685 cat conftest.
$ac_ext >&5
1687 gcc_cv_header_string
=no
1692 echo "$ac_t""$gcc_cv_header_string" 1>&6
1693 if test $gcc_cv_header_string = yes; then
1694 cat >> confdefs.h
<<\EOF
1695 #define STRING_WITH_STRINGS 1
1700 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
1702 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1703 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1704 echo "configure:1705: checking for $ac_hdr" >&5
1705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 cat > conftest.
$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1713 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714 { (eval echo configure
:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1715 ac_err
=`grep -v '^ *+' conftest.out`
1716 if test -z "$ac_err"; then
1718 eval "ac_cv_header_$ac_safe=yes"
1721 echo "configure: failed program was:" >&5
1722 cat conftest.
$ac_ext >&5
1724 eval "ac_cv_header_$ac_safe=no"
1728 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1729 echo "$ac_t""yes" 1>&6
1730 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1731 cat >> confdefs.h
<<EOF
1732 #define $ac_tr_hdr 1
1736 echo "$ac_t""no" 1>&6
1741 # Check for thread headers.
1742 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1743 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1744 echo "configure:1745: checking for thread.h" >&5
1745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 cat > conftest.
$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1753 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1754 { (eval echo configure
:1755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1755 ac_err
=`grep -v '^ *+' conftest.out`
1756 if test -z "$ac_err"; then
1758 eval "ac_cv_header_$ac_safe=yes"
1761 echo "configure: failed program was:" >&5
1762 cat conftest.
$ac_ext >&5
1764 eval "ac_cv_header_$ac_safe=no"
1768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1769 echo "$ac_t""yes" 1>&6
1772 echo "$ac_t""no" 1>&6
1776 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1777 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1778 echo "configure:1779: checking for pthread.h" >&5
1779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 cat > conftest.
$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1785 #include <pthread.h>
1787 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1788 { (eval echo configure
:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1789 ac_err
=`grep -v '^ *+' conftest.out`
1790 if test -z "$ac_err"; then
1792 eval "ac_cv_header_$ac_safe=yes"
1795 echo "configure: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1798 eval "ac_cv_header_$ac_safe=no"
1802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1806 echo "$ac_t""no" 1>&6
1811 # See if GNAT has been installed
1812 # Extract the first word of "gnatbind", so it can be a program name with args.
1813 set dummy gnatbind
; ac_word
=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 if test -n "$gnat"; then
1820 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
1822 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1823 for ac_dir
in $PATH; do
1824 test -z "$ac_dir" && ac_dir
=.
1825 if test -f $ac_dir/$ac_word; then
1826 ac_cv_prog_gnat
="yes"
1831 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
1834 gnat
="$ac_cv_prog_gnat"
1835 if test -n "$gnat"; then
1836 echo "$ac_t""$gnat" 1>&6
1838 echo "$ac_t""no" 1>&6
1842 # See if the system preprocessor understands the ANSI C preprocessor
1843 # stringification operator.
1844 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1845 echo "configure:1846: checking whether cpp understands the stringify operator" >&5
1846 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 cat > conftest.
$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1855 char *test = S(foo);
1858 if { (eval echo configure
:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1860 gcc_cv_c_have_stringify
=yes
1862 echo "configure: failed program was:" >&5
1863 cat conftest.
$ac_ext >&5
1865 gcc_cv_c_have_stringify
=no
1870 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
1871 if test $gcc_cv_c_have_stringify = yes; then
1872 cat >> confdefs.h
<<\EOF
1873 #define HAVE_CPP_STRINGIFY 1
1878 # Use <inttypes.h> only if it exists,
1879 # doesn't clash with <sys/types.h>, and declares intmax_t.
1880 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1881 echo "configure:1882: checking for inttypes.h" >&5
1882 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 cat > conftest.
$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1888 #include <sys/types.h>
1889 #include <inttypes.h>
1894 if { (eval echo configure
:1895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1896 cat >> confdefs.h
<<EOF
1897 #define HAVE_INTTYPES_H 1
1900 gcc_cv_header_inttypes_h
=yes
1902 echo "configure: failed program was:" >&5
1903 cat conftest.
$ac_ext >&5
1905 gcc_cv_header_inttypes_h
=no
1910 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1912 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
1913 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
1914 sysconf isascii gettimeofday strsignal
1916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_func" >&5
1918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 cat > conftest.
$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 /* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $ac_func(); below. */
1927 /* Override any gcc2 internal prototype to avoid an error. */
1928 /* We use char because int might match the return type of a gcc2
1929 builtin and then its argument prototype would still apply. */
1934 /* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1945 if { (eval echo configure
:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1947 eval "ac_cv_func_$ac_func=yes"
1949 echo "configure: failed program was:" >&5
1950 cat conftest.
$ac_ext >&5
1952 eval "ac_cv_func_$ac_func=no"
1957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1958 echo "$ac_t""yes" 1>&6
1959 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1960 cat >> confdefs.h
<<EOF
1961 #define $ac_tr_func 1
1965 echo "$ac_t""no" 1>&6
1970 # Make sure wchar_t is available
1971 #AC_CHECK_TYPE(wchar_t, unsigned int)
1973 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1974 echo "configure:1975: checking for vprintf" >&5
1975 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.
$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1981 /* System header to define __stub macros and hopefully few prototypes,
1982 which can conflict with char vprintf(); below. */
1984 /* Override any gcc2 internal prototype to avoid an error. */
1985 /* We use char because int might match the return type of a gcc2
1986 builtin and then its argument prototype would still apply. */
1991 /* The GNU C library defines this for functions which it implements
1992 to always fail with ENOSYS. Some functions are actually named
1993 something starting with __ and the normal name is an alias. */
1994 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2002 if { (eval echo configure
:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2004 eval "ac_cv_func_vprintf=yes"
2006 echo "configure: failed program was:" >&5
2007 cat conftest.
$ac_ext >&5
2009 eval "ac_cv_func_vprintf=no"
2014 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 cat >> confdefs.h
<<\EOF
2017 #define HAVE_VPRINTF 1
2021 echo "$ac_t""no" 1>&6
2024 if test "$ac_cv_func_vprintf" != yes; then
2025 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2026 echo "configure:2027: checking for _doprnt" >&5
2027 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 cat > conftest.
$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char _doprnt(); below. */
2036 /* Override any gcc2 internal prototype to avoid an error. */
2037 /* We use char because int might match the return type of a gcc2
2038 builtin and then its argument prototype would still apply. */
2043 /* The GNU C library defines this for functions which it implements
2044 to always fail with ENOSYS. Some functions are actually named
2045 something starting with __ and the normal name is an alias. */
2046 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2054 if { (eval echo configure
:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2056 eval "ac_cv_func__doprnt=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.
$ac_ext >&5
2061 eval "ac_cv_func__doprnt=no"
2066 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2068 cat >> confdefs.h
<<\EOF
2069 #define HAVE_DOPRNT 1
2073 echo "$ac_t""no" 1>&6
2080 if test $ac_cv_func_vprintf != yes ; then
2082 if test $ac_cv_func__doprnt != yes ; then
2089 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2090 echo "configure:2091: checking whether the printf functions support %p" >&5
2091 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 if test "$cross_compiling" = yes; then
2095 gcc_cv_func_printf_ptr
=no
2097 cat > conftest.
$ac_ext <<EOF
2098 #line 2099 "configure"
2099 #include "confdefs.h"
2105 char *p = buf, *q = NULL;
2106 sprintf(buf, "%p", p);
2107 sscanf(buf, "%p", &q);
2111 if { (eval echo configure
:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2113 gcc_cv_func_printf_ptr
=yes
2115 echo "configure: failed program was:" >&5
2116 cat conftest.
$ac_ext >&5
2118 gcc_cv_func_printf_ptr
=no
2123 rm -f core core.
* *.core
2126 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2127 if test $gcc_cv_func_printf_ptr = yes ; then
2128 cat >> confdefs.h
<<\EOF
2129 #define HAVE_PRINTF_PTR 1
2135 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
2136 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2139 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether $ac_func must be declared" >&5
2141 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2149 #ifdef STRING_WITH_STRINGS
2150 # include <string.h>
2151 # include <strings.h>
2153 # ifdef HAVE_STRING_H
2154 # include <string.h>
2156 # ifdef HAVE_STRINGS_H
2157 # include <strings.h>
2161 #ifdef HAVE_STDLIB_H
2164 #ifdef HAVE_UNISTD_H
2168 #define rindex strrchr
2171 #define index strchr
2175 char *(*pfn) = (char *(*)) $ac_func
2178 if { (eval echo configure
:2179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2180 eval "gcc_cv_decl_needed_$ac_func=no"
2182 echo "configure: failed program was:" >&5
2183 cat conftest.
$ac_ext >&5
2185 eval "gcc_cv_decl_needed_$ac_func=yes"
2190 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2191 echo "$ac_t""yes" 1>&6
2192 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2193 cat >> confdefs.h
<<EOF
2194 #define $gcc_tr_decl 1
2198 echo "$ac_t""no" 1>&6
2204 for ac_func
in getrlimit setrlimit
2206 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2207 echo "configure:2208: checking whether $ac_func must be declared" >&5
2208 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2209 echo $ac_n "(cached) $ac_c" 1>&6
2211 cat > conftest.
$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2216 #ifdef STRING_WITH_STRINGS
2217 # include <string.h>
2218 # include <strings.h>
2220 # ifdef HAVE_STRING_H
2221 # include <string.h>
2223 # ifdef HAVE_STRINGS_H
2224 # include <strings.h>
2228 #ifdef HAVE_STDLIB_H
2231 #ifdef HAVE_UNISTD_H
2235 #define rindex strrchr
2238 #define index strchr
2240 #include <sys/types.h>
2241 #ifdef HAVE_SYS_RESOURCE_H
2242 #include <sys/resource.h>
2246 char *(*pfn) = (char *(*)) $ac_func
2249 if { (eval echo configure
:2250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2251 eval "gcc_cv_decl_needed_$ac_func=no"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.
$ac_ext >&5
2256 eval "gcc_cv_decl_needed_$ac_func=yes"
2261 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2262 echo "$ac_t""yes" 1>&6
2263 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2264 cat >> confdefs.h
<<EOF
2265 #define $gcc_tr_decl 1
2269 echo "$ac_t""no" 1>&6
2275 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2276 echo "configure:2277: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2277 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 cat > conftest.
$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 #include <sys/types.h>
2285 /* NetBSD declares sys_siglist in unistd.h. */
2286 #ifdef HAVE_UNISTD_H
2290 char *msg = *(sys_siglist + 1);
2293 if { (eval echo configure
:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2295 ac_cv_decl_sys_siglist
=yes
2297 echo "configure: failed program was:" >&5
2298 cat conftest.
$ac_ext >&5
2300 ac_cv_decl_sys_siglist
=no
2305 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2306 if test $ac_cv_decl_sys_siglist = yes; then
2307 cat >> confdefs.h
<<\EOF
2308 #define SYS_SIGLIST_DECLARED 1
2322 build_install_headers_dir
=install-headers-tar
2327 host_truncate_target
=
2330 # Decode the host machine, then the target machine.
2331 # For the host machine, we save the xm_file variable as host_xm_file;
2332 # then we decode the target machine and forget everything else
2333 # that came from the host machine.
2334 for machine
in $build $host $target; do
2348 # Set this to force installation and use of collect2.
2350 # Set this to override the default target model.
2352 # Set this to control which fixincludes program to use.
2353 if test x
$fast_fixinc != xyes
; then
2354 fixincludes
=fixincludes
2355 else fixincludes
=fixinc.sh
; fi
2356 # Set this to control how the header file directory is installed.
2357 install_headers_dir
=install-headers-tar
2358 # Set this to a non-empty list of args to pass to cpp if the target
2359 # wants its .md file passed through cpp.
2361 # Set this if directory names should be truncated to 14 characters.
2363 # Set this if gdb needs a dir command with `dirname $out_file`
2364 gdb_needs_out_file_path
=
2365 # Set this if the build machine requires executables to have a
2368 # Set this to control which thread package will be used.
2370 # Reinitialize these from the flag values every loop pass, since some
2371 # configure entries modify them.
2373 gnu_ld
="$gnu_ld_flag"
2374 enable_threads
=$enable_threads_flag
2376 # Set default cpu_type, tm_file and xm_file so it can be updated in
2377 # each machine entry.
2378 cpu_type
=`echo $machine | sed 's/-.*$//'`
2412 tm_file
=${cpu_type}/${cpu_type}.h
2413 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2415 # Set the default macros to define for GNU/Linux systems.
2418 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2423 # Support site-specific machine types.
2425 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2426 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2427 xm_file
=${cpu_type}/xm-
$rest.h
2428 tm_file
=${cpu_type}/$rest.h
2429 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
2430 then xmake_file
=${cpu_type}/x-
$rest; \
2433 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
2434 then tmake_file
=${cpu_type}/t-
$rest; \
2440 a29k-
*-bsd* | a29k-
*-sym1*)
2441 tm_file
="${tm_file} a29k/unix.h"
2443 xmake_file
=a29k
/x-unix
2446 a29k-
*-udi | a29k-
*-coff)
2447 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2448 tmake_file
=a29k
/t-a29kbare
2451 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2452 tmake_file
=a29k
/t-vx29k
2453 extra_parts
="crtbegin.o crtend.o"
2454 thread_file
='vxworks'
2456 a29k-
*-*) # Default a29k environment.
2459 alpha
*-*-linux-gnuecoff*)
2460 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2461 target_cpu_default
="MASK_GAS"
2466 alpha
*-*-linux-gnulibc1*)
2467 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2468 target_cpu_default
="MASK_GAS"
2469 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2470 extra_parts
="crtbegin.o crtend.o"
2471 fixincludes
=fixinc.wrap
2474 if test x
$enable_threads = xyes
; then
2478 alpha
*-*-linux-gnu*)
2479 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2480 target_cpu_default
="MASK_GAS"
2481 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2482 extra_parts
="crtbegin.o crtend.o"
2484 fixincludes
=Makefile.
in
2486 if test x
$enable_threads = xyes
; then
2491 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
2492 target_cpu_default
="MASK_GAS"
2493 tmake_file
="alpha/t-crtbe"
2494 extra_parts
="crtbegin.o crtend.o"
2496 fixincludes
=fixinc.wrap
2501 if test x
$stabs = xyes
2503 tm_file
="${tm_file} dbx.h"
2505 if test x
$gas != xyes
2507 extra_passes
="mips-tfile mips-tdump"
2512 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2515 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
2518 tm_file
="${tm_file} alpha/osf.h"
2519 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2520 # a broken tar, so we use cpio instead.
2521 install_headers_dir
=install-headers-cpio
2525 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2526 target_cpu_default
=MASK_SUPPORT_ARCH
2531 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
2534 extra_passes
="mips-tfile mips-tdump"
2539 tm_file
="${tm_file} alpha/win-nt.h"
2540 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2541 tmake_file
=t-libc-ok
2542 xmake_file
=winnt
/x-winnt
2543 extra_host_objs
=oldnames.o
2544 extra_gcc_objs
="spawnv.o oldnames.o"
2545 fixincludes
=fixinc.winnt
2546 if test x
$gnu_ld != xyes
2548 extra_programs
=ld.exe
2550 if test x
$enable_threads = xyes
; then
2556 xm_file
="${xm_file} alpha/xm-vms.h"
2557 tmake_file
=alpha
/t-vms
2558 fixincludes
=Makefile.
in
2561 extra_parts
="crtinit.o crtfini.o"
2563 arm-
*-coff* | armel-
*-coff*)
2565 tmake_file
=arm
/t-bare
2567 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2568 tm_file
=arm
/riscix1-1.h
2571 arm-
*-riscix*) # Acorn RISC machine
2572 if test x
$gas = xyes
2574 tm_file
=arm
/rix-gas.h
2576 tm_file
=arm
/riscix.h
2578 xmake_file
=arm
/x-riscix
2579 tmake_file
=arm
/t-riscix
2582 arm-semi-aout | armel-semi-aout
)
2584 tmake_file
=arm
/t-semi
2585 fixincludes
=Makefile.
in # There is nothing to fix
2587 arm-semi-aof | armel-semi-aof
)
2588 tm_file
=arm
/semiaof.h
2589 tmake_file
=arm
/t-semiaof
2590 fixincludes
=Makefile.
in # There is nothing to fix
2593 tm_file
=arm
/netbsd.h
2594 xm_file
="arm/xm-netbsd.h ${xm_file}"
2595 tmake_file
="t-netbsd arm/t-netbsd"
2596 # On NetBSD, the headers are already okay, except for math.h.
2597 fixincludes
=fixinc.wrap
2599 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2602 tm_file
=arm
/linux-gas.h
2603 tmake_file
=arm
/t-linux
2604 fixincludes
=Makefile.
in
2609 tmake_file
=arm
/t-bare
2611 c1-convex-
*) # Convex C1
2612 target_cpu_default
=1
2614 fixincludes
=Makefile.
in
2616 c2-convex-
*) # Convex C2
2617 target_cpu_default
=2
2619 fixincludes
=Makefile.
in
2622 target_cpu_default
=4
2624 fixincludes
=Makefile.
in
2627 target_cpu_default
=8
2629 fixincludes
=Makefile.
in
2632 target_cpu_default
=16
2634 fixincludes
=Makefile.
in
2636 clipper-intergraph-clix
*)
2637 tm_file
="${tm_file} svr3.h clipper/clix.h"
2638 xm_file
=clipper
/xm-clix.h
2639 xmake_file
=clipper
/x-clix
2640 extra_headers
=va-clipper.h
2641 extra_parts
="crtbegin.o crtend.o"
2642 install_headers_dir
=install-headers-cpio
2649 # This hasn't been upgraded to GCC 2.
2650 # fx80-alliant-*) # Alliant FX/80
2656 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2657 xm_file
=pa
/xm-papro.h
2661 target_cpu_default
=1
2662 tm_file
="${tm_file} pa/pa-osf.h"
2664 fixincludes
=Makefile.
in
2667 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2668 xm_file
=pa
/xm-papro.h
2672 tm_file
="${tm_file} pa/pa-osf.h"
2674 fixincludes
=Makefile.
in
2677 target_cpu_default
=1
2679 fixincludes
=Makefile.
in
2683 fixincludes
=Makefile.
in
2686 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2687 xm_file
=pa
/xm-pahpux.h
2688 xmake_file
=pa
/x-pa-hpux
2689 if test x
$gas = xyes
2691 tm_file
="${tm_file} pa/gas.h"
2693 install_headers_dir
=install-headers-cpio
2696 hppa1.0
-*-hpux8.0
[0-2]*)
2697 tm_file
="${tm_file} pa/pa-hpux.h"
2698 xm_file
=pa
/xm-pahpux.h
2699 xmake_file
=pa
/x-pa-hpux
2700 if test x
$gas = xyes
2702 tm_file
="${tm_file} pa/pa-gas.h"
2704 tm_file
="pa/pa-oldas.h ${tm_file}"
2706 install_headers_dir
=install-headers-cpio
2709 hppa1.1
-*-hpux8.0
[0-2]*)
2710 target_cpu_default
=1
2711 tm_file
="${tm_file} pa/pa-hpux.h"
2712 xm_file
=pa
/xm-pahpux.h
2713 xmake_file
=pa
/x-pa-hpux
2714 if test x
$gas = xyes
2716 tm_file
="${tm_file} pa/pa-gas.h"
2718 tm_file
="pa/pa-oldas.h ${tm_file}"
2720 install_headers_dir
=install-headers-cpio
2724 target_cpu_default
=1
2725 tm_file
="${tm_file} pa/pa-hpux.h"
2726 xm_file
=pa
/xm-pahpux.h
2727 xmake_file
=pa
/x-pa-hpux
2728 if test x
$gas = xyes
2730 tm_file
="${tm_file} pa/pa-gas.h"
2732 install_headers_dir
=install-headers-cpio
2736 tm_file
="${tm_file} pa/pa-hpux.h"
2737 xm_file
=pa
/xm-pahpux.h
2738 xmake_file
=pa
/x-pa-hpux
2739 if test x
$gas = xyes
2741 tm_file
="${tm_file} pa/pa-gas.h"
2743 install_headers_dir
=install-headers-cpio
2747 target_cpu_default
=1
2748 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2749 xm_file
=pa
/xm-pahpux.h
2750 xmake_file
=pa
/x-pa-hpux
2752 if test x
$gas = xyes
2754 tm_file
="${tm_file} pa/pa-gas.h"
2756 if test x
$enable_threads = x
; then
2757 enable_threads
=$have_pthread_h
2759 if test x
$enable_threads = xyes
; then
2761 tmake_file
="${tmake_file} pa/t-dce-thr"
2763 install_headers_dir
=install-headers-cpio
2767 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2768 xm_file
=pa
/xm-pahpux.h
2769 xmake_file
=pa
/x-pa-hpux
2770 if test x
$gas = xyes
2772 tm_file
="${tm_file} pa/pa-gas.h"
2774 if test x
$enable_threads = x
; then
2775 enable_threads
=$have_pthread_h
2777 if test x
$enable_threads = xyes
; then
2779 tmake_file
="${tmake_file} pa/t-dce-thr"
2781 install_headers_dir
=install-headers-cpio
2785 target_cpu_default
=1
2786 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2787 xm_file
=pa
/xm-pahpux.h
2788 xmake_file
=pa
/x-pa-hpux
2789 if test x
$gas = xyes
2791 tm_file
="${tm_file} pa/pa-gas.h"
2793 install_headers_dir
=install-headers-cpio
2797 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2798 xm_file
=pa
/xm-pahpux.h
2799 xmake_file
=pa
/x-pa-hpux
2800 if test x
$gas = xyes
2802 tm_file
="${tm_file} pa/pa-gas.h"
2804 install_headers_dir
=install-headers-cpio
2808 target_cpu_default
=1
2809 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2810 xm_file
=pa
/xm-pahpux.h
2811 xmake_file
=pa
/x-pa-hpux
2812 if test x
$gas = xyes
2814 tm_file
="${tm_file} pa/pa-gas.h"
2816 install_headers_dir
=install-headers-cpio
2820 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2821 xm_file
=pa
/xm-pahpux.h
2822 xmake_file
=pa
/x-pa-hpux
2823 if test x
$gas = xyes
2825 tm_file
="${tm_file} pa/pa-gas.h"
2827 install_headers_dir
=install-headers-cpio
2831 target_cpu_default
=1
2833 fixincludes
=Makefile.
in
2837 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2838 if test x
$gas = xyes
2840 tm_file
=i386
/aix386.h
2841 extra_parts
="crtbegin.o crtend.o"
2842 tmake_file
=i386
/t-crtstuff
2844 tm_file
=i386
/aix386ng.h
2847 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2849 xmake_file
=i386
/x-aix
2851 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
2852 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2853 xm_defines
="USG POSIX SMALL_ARG_MAX"
2854 xmake_file
=i386
/x-ncr3000
2855 if test x
$stabs = xyes
-a x
$gas = xyes
2857 tm_file
=i386
/sysv4gdb.h
2859 tm_file
=i386
/sysv4.h
2861 extra_parts
="crtbegin.o crtend.o"
2862 tmake_file
=i386
/t-crtpic
2866 xm_file
=i386
/xm-next.h
2867 tmake_file
=i386
/t-next
2868 xmake_file
=i386
/x-next
2869 extra_objs
=nextstep.o
2871 if test x
$enable_threads = xyes
; then
2875 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2877 if test x
$gas = xyes
2879 tm_file
=i386
/seq-gas.h
2881 tm_file
=i386
/sequent.h
2884 i
[34567]86-sequent-ptx1*)
2885 xm_defines
="USG SVR3"
2886 xmake_file
=i386
/x-sysv3
2887 tm_file
=i386
/seq-sysv3.h
2888 tmake_file
=i386
/t-crtstuff
2889 fixincludes
=fixinc.
ptx
2890 extra_parts
="crtbegin.o crtend.o"
2891 install_headers_dir
=install-headers-cpio
2893 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2894 xm_defines
="USG SVR3"
2895 xmake_file
=i386
/x-sysv3
2896 tm_file
=i386
/seq2-sysv3.h
2897 tmake_file
=i386
/t-crtstuff
2898 extra_parts
="crtbegin.o crtend.o"
2899 fixincludes
=fixinc.
ptx
2900 install_headers_dir
=install-headers-cpio
2902 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2903 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2904 xm_defines
="USG POSIX SMALL_ARG_MAX"
2906 tm_file
=i386
/ptx4-i.h
2908 extra_parts
="crtbegin.o crtend.o"
2909 fixincludes
=fixinc.
ptx
2910 install_headers_dir
=install-headers-cpio
2912 i386-sun-sunos
*) # Sun i386 roadrunner
2917 i
[34567]86-wrs-vxworks*)
2918 tm_file
=i386
/vxi386.h
2919 tmake_file
=i386
/t-i386bare
2922 tm_file
=i386
/i386-aout.h
2923 tmake_file
=i386
/t-i386bare
2925 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2926 tm_file
=i386
/bsd386.h
2927 # tmake_file=t-libc-ok
2930 tm_file
=i386
/386bsd.h
2931 # tmake_file=t-libc-ok
2932 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2935 i
[34567]86-*-freebsdelf*)
2936 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2937 # On FreeBSD, the headers are already ok, except for math.h.
2938 fixincludes
=fixinc.wrap
2939 tmake_file
=i386
/t-freebsd
2944 i
[34567]86-*-freebsd*)
2945 tm_file
=i386
/freebsd.h
2946 # On FreeBSD, the headers are already ok, except for math.h.
2947 fixincludes
=fixinc.wrap
2948 tmake_file
=i386
/t-freebsd
2950 i
[34567]86-*-netbsd*)
2951 tm_file
=i386
/netbsd.h
2952 # On NetBSD, the headers are already okay, except for math.h.
2953 fixincludes
=fixinc.wrap
2957 tm_file
=i386
/i386-coff.h
2958 tmake_file
=i386
/t-i386bare
2960 i
[34567]86-*-isc*) # 80386 running ISC system
2961 xm_file
="${xm_file} i386/xm-isc.h"
2962 xm_defines
="USG SVR3"
2964 i
[34567]86-*-isc[34]*)
2965 xmake_file
=i386
/x-isc3
2968 xmake_file
=i386
/x-isc
2971 if test x
$gas = xyes
-a x
$stabs = xyes
2973 tm_file
=i386
/iscdbx.h
2974 tmake_file
=i386
/t-svr3dbx
2975 extra_parts
="svr3.ifile svr3z.ifile"
2977 tm_file
=i386
/isccoff.h
2978 tmake_file
=i386
/t-crtstuff
2979 extra_parts
="crtbegin.o crtend.o"
2981 install_headers_dir
=install-headers-cpio
2983 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
2985 xmake_file
=x-linux-aout
2986 tmake_file
="t-linux-aout i386/t-crtstuff"
2987 tm_file
=i386
/linux-oldld.h
2988 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
2992 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
2993 xmake_file
=x-linux-aout
2994 tmake_file
="t-linux-aout i386/t-crtstuff"
2995 tm_file
=i386
/linux-aout.h
2996 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
3000 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3001 # GNU/Linux C library 5
3003 tm_file
=i386
/linux.h
3004 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3005 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3006 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
3009 if test x
$enable_threads = xyes
; then
3010 thread_file
='single'
3013 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3014 # aka GNU/Linux C library 6
3016 tm_file
=i386
/linux.h
3017 tmake_file
="t-linux i386/t-crtstuff"
3018 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3019 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
3022 if test x
$enable_threads = xyes
; then
3028 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
3029 xm_file
=i386
/xm-go32.h
3031 tmake_file
=i386
/t-go32
3033 i
[34567]86-pc-msdosdjgpp*)
3034 xm_file
=i386
/xm-go32.h
3036 tmake_file
=i386
/t-go32
3040 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
3042 tmake_file
=t-libc-ok
3043 fixincludes
=Makefile.
in
3047 i
[34567]86-*-lynxos*)
3048 if test x
$gas = xyes
3052 tm_file
=i386
/lynx-ng.h
3054 xm_file
=i386
/xm-lynx.h
3055 tmake_file
=i386
/t-i386bare
3060 # tmake_file=t-libc-ok
3063 i
[34567]86-*-osfrose*) # 386 using OSF/rose
3064 if test x
$elf = xyes
3066 tm_file
=i386
/osfelf.h
3069 tm_file
=i386
/osfrose.h
3072 xm_file
="i386/xm-osf.h ${xm_file}"
3073 xmake_file
=i386
/x-osfrose
3074 tmake_file
=i386
/t-osf
3075 extra_objs
=halfpic.o
3077 i
[34567]86-go32-rtems*)
3079 xm_file
=i386
/xm-go32.h
3080 tm_file
=i386
/go32-rtems.h
3081 tmake_file
="i386/t-go32 t-rtems"
3083 i
[34567]86-*-rtemself*)
3085 tm_file
=i386
/rtemself.h
3086 tmake_file
="i386/t-i386bare t-rtems"
3088 i
[34567]86-*-rtems*)
3090 tm_file
=i386
/rtems.h
3091 tmake_file
="i386/t-i386bare t-rtems"
3093 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
3094 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3095 xm_defines
="USG SVR3"
3096 xmake_file
=i386
/x-sco5
3097 fixincludes
=fixinc.sco
3098 install_headers_dir
=install-headers-cpio
3100 if test x
$gas = xyes
3102 tm_file
="i386/sco5gas.h ${tm_file}"
3103 tmake_file
=i386
/t-sco5gas
3105 tmake_file
=i386
/t-sco5
3107 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3109 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
3110 xm_file
="${xm_file} i386/xm-sco.h"
3111 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3112 xmake_file
=i386
/x-sco4
3113 fixincludes
=fixinc.sco
3114 install_headers_dir
=install-headers-cpio
3115 if test x
$stabs = xyes
3117 tm_file
=i386
/sco4dbx.h
3118 tmake_file
=i386
/t-svr3dbx
3119 extra_parts
="svr3.ifile svr3z.rfile"
3122 tmake_file
=i386
/t-crtstuff
3123 extra_parts
="crtbegin.o crtend.o"
3127 i
[34567]86-*-sco*) # 80386 running SCO system
3128 xm_file
=i386
/xm-sco.h
3129 xmake_file
=i386
/x-sco
3130 install_headers_dir
=install-headers-cpio
3131 if test x
$stabs = xyes
3133 tm_file
=i386
/scodbx.h
3134 tmake_file
=i386
/t-svr3dbx
3135 extra_parts
="svr3.ifile svr3z.rfile"
3138 extra_parts
="crtbegin.o crtend.o"
3139 tmake_file
=i386
/t-crtstuff
3143 i
[34567]86-*-solaris2*)
3144 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3145 xm_defines
="USG POSIX SMALL_ARG_MAX"
3146 if test x
$stabs = xyes
3148 tm_file
=i386
/sol2dbg.h
3152 tmake_file
=i386
/t-sol2
3153 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3157 fixincludes
=fixinc.svr4
;;
3159 fixincludes
=fixinc.wrap
;;
3161 if test x
$enable_threads = xyes
; then
3162 thread_file
='solaris'
3165 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3166 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3167 xm_defines
="USG POSIX"
3168 tm_file
=i386
/sysv4.h
3169 if test x
$stabs = xyes
3171 tm_file
="${tm_file} dbx.h"
3173 tmake_file
=i386
/t-crtpic
3175 extra_parts
="crtbegin.o crtend.o"
3176 fixincludes
=Makefile.
in # The headers are just fine, thank you.
3178 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
3179 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3180 xm_defines
="USG POSIX SMALL_ARG_MAX"
3181 tm_file
=i386
/sysv4.h
3182 if test x
$stabs = xyes
3184 tm_file
="${tm_file} dbx.h"
3186 tmake_file
=i386
/t-crtpic
3188 extra_parts
="crtbegin.o crtend.o"
3190 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3192 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3193 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
3194 fixincludes
=Makefile.
in #Don't do it on OSF/1
3195 if test x
$stabs = xyes
3197 tm_file
=i386
/osf1elfgdb.h
3199 tm_file
=i386
/osf1elf.h
3201 tmake_file
=i386
/t-osf1elf
3202 xmake_file
=i386
/x-osf1elf
3203 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3205 i
[34567]86-*-sysv*) # Intel 80386's running system V
3206 xm_defines
="USG SVR3"
3207 xmake_file
=i386
/x-sysv3
3208 if test x
$gas = xyes
3210 if test x
$stabs = xyes
3212 tm_file
=i386
/svr3dbx.h
3213 tmake_file
=i386
/t-svr3dbx
3214 extra_parts
="svr3.ifile svr3z.rfile"
3216 tm_file
=i386
/svr3gas.h
3217 extra_parts
="crtbegin.o crtend.o"
3218 tmake_file
=i386
/t-crtstuff
3221 tm_file
=i386
/sysv3.h
3222 extra_parts
="crtbegin.o crtend.o"
3223 tmake_file
=i386
/t-crtstuff
3226 i386-
*-vsta) # Intel 80386's running VSTa kernel
3227 xm_file
="${xm_file} i386/xm-vsta.h"
3229 tmake_file
=i386
/t-vsta
3230 xmake_file
=i386
/x-vsta
3233 xm_file
="${xm_file} i386/xm-cygwin32.h"
3234 tmake_file
=i386
/t-cygwin32
3235 tm_file
=i386
/win32.h
3236 xmake_file
=i386
/x-cygwin32
3238 fixincludes
=Makefile.
in
3239 if test x
$enable_threads = xyes
; then
3244 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
3245 xm_file
="${xm_file} i386/xm-cygwin32.h"
3246 tmake_file
=i386
/t-cygwin32
3247 tm_file
=i386
/cygwin32.h
3248 xmake_file
=i386
/x-cygwin32
3250 fixincludes
=Makefile.
in
3251 if test x
$enable_threads = xyes
; then
3256 i
[34567]86-*-mingw32*)
3257 tm_file
=i386
/mingw32.h
3258 xm_file
="${xm_file} i386/xm-mingw32.h"
3259 tmake_file
="i386/t-cygwin32 i386/t-mingw32"
3261 xmake_file
=i386
/x-cygwin32
3262 fixincludes
=Makefile.
in
3263 if test x
$enable_threads = xyes
; then
3270 *minwg32crt
* |
*mingw32
*)
3271 tm_file
="${tm_file} i386/crtdll.h"
3275 i
[34567]86-*-winnt3*)
3276 tm_file
=i386
/win-nt.h
3277 out_file
=i386
/i386.c
3278 xm_file
="xm-winnt.h ${xm_file}"
3279 xmake_file
=winnt
/x-winnt
3280 tmake_file
=i386
/t-winnt
3281 extra_host_objs
="winnt.o oldnames.o"
3282 extra_gcc_objs
="spawnv.o oldnames.o"
3283 fixincludes
=fixinc.winnt
3284 if test x
$gnu_ld != xyes
3286 extra_programs
=ld.exe
3288 if test x
$enable_threads = xyes
; then
3292 i
[34567]86-dg-dgux*)
3293 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3294 xm_defines
="USG POSIX"
3295 out_file
=i386
/dgux.c
3297 tmake_file
=i386
/t-dgux
3298 xmake_file
=i386
/x-dgux
3299 fixincludes
=fixinc.dgux
3300 install_headers_dir
=install-headers-cpio
3302 i860-alliant-
*) # Alliant FX/2800
3303 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3304 xm_file
="${xm_file}"
3305 xmake_file
=i860
/x-fx2800
3306 tmake_file
=i860
/t-fx2800
3307 extra_parts
="crtbegin.o crtend.o"
3310 tm_file
="${tm_file} i860/bsd.h"
3311 if test x
$gas = xyes
3313 tm_file
="${tm_file} i860/bsd-gas.h"
3318 tm_file
="${tm_file} i860/mach.h"
3319 tmake_file
=t-libc-ok
3321 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3322 tm_file
="${tm_file} svr3.h i860/paragon.h"
3323 xm_defines
="USG SVR3"
3327 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3328 xm_defines
="USG SVR3"
3329 xmake_file
=i860
/x-sysv3
3330 extra_parts
="crtbegin.o crtend.o"
3333 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3334 xm_defines
="USG SVR3"
3335 xmake_file
=i860
/x-sysv4
3337 extra_parts
="crtbegin.o crtend.o"
3339 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3340 tm_file
="${tm_file} i960/vx960.h"
3341 tmake_file
=i960
/t-vxworks960
3343 thread_file
='vxworks'
3345 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3346 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3347 tmake_file
=i960
/t-vxworks960
3349 thread_file
='vxworks'
3352 tm_file
="${tm_file} i960/vx960.h"
3353 tmake_file
=i960
/t-vxworks960
3355 thread_file
='vxworks'
3358 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3359 tmake_file
=i960
/t-960bare
3363 tmake_file
="i960/t-960bare t-rtems"
3364 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3367 i960-
*-*) # Default i960 environment.
3371 extra_parts
="crtinit.o crtfini.o"
3373 m68000-convergent-sysv
*)
3375 xm_file
="m68k/xm-3b1.h ${xm_file}"
3378 extra_headers
=math-68881.h
3380 m68000-hp-bsd
*) # HP 9000/200 running BSD
3381 tm_file
=m68k
/hp2bsd.h
3382 xmake_file
=m68k
/x-hp2bsd
3384 extra_headers
=math-68881.h
3386 m68000-hp-hpux
*) # HP 9000 series 300
3387 xm_file
="xm_alloca.h ${xm_file}"
3388 xm_defines
="USG NO_SYS_SIGLIST"
3389 if test x
$gas = xyes
3391 xmake_file
=m68k
/x-hp320g
3392 tm_file
=m68k
/hp310g.h
3394 xmake_file
=m68k
/x-hp320
3395 tm_file
=m68k
/hp310.h
3397 install_headers_dir
=install-headers-cpio
3399 extra_headers
=math-68881.h
3404 extra_headers
=math-68881.h
3407 tm_file
=m68k
/sun2o4.h
3409 extra_headers
=math-68881.h
3412 xm_file
="m68k/xm-3b1.h ${xm_file}"
3414 if test x
$gas = xyes
3421 extra_headers
=math-68881.h
3423 m68k-apple-aux
*) # Apple Macintosh running A/UX
3424 xm_defines
="USG AUX"
3425 tmake_file
=m68k
/t-aux
3426 install_headers_dir
=install-headers-cpio
3427 extra_headers
=math-68881.h
3428 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3430 if test "$gnu_ld" = yes
3432 tm_file
="${tm_file} m68k/auxgld.h"
3434 tm_file
="${tm_file} m68k/auxld.h"
3436 if test "$gas" = yes
3438 tm_file
="${tm_file} m68k/auxgas.h"
3440 tm_file
="${tm_file} m68k/auxas.h"
3442 tm_file
="${tm_file} m68k/a-ux.h"
3446 tm_file
=m68k
/apollo68.h
3447 xmake_file
=m68k
/x-apollo68
3449 extra_headers
=math-68881.h
3452 m68k-altos-sysv
*) # Altos 3068
3453 if test x
$gas = xyes
3455 tm_file
=m68k
/altos3068.h
3458 echo "The Altos is supported only with the GNU assembler" 1>&2
3461 extra_headers
=math-68881.h
3463 m68k-bull-sysv
*) # Bull DPX/2
3464 if test x
$gas = xyes
3466 if test x
$stabs = xyes
3468 tm_file
=m68k
/dpx2cdbx.h
3470 tm_file
=m68k
/dpx2g.h
3475 xm_file
="xm-alloca.h ${xm_file}"
3477 xmake_file
=m68k
/x-dpx2
3479 extra_headers
=math-68881.h
3481 m68k-atari-sysv4
*) # Atari variant of V.4.
3482 tm_file
=m68k
/atari.h
3483 xm_file
="xm-alloca.h ${xm_file}"
3484 xm_defines
="USG FULL_PROTOTYPES"
3486 extra_parts
="crtbegin.o crtend.o"
3487 extra_headers
=math-68881.h
3490 m68k-motorola-sysv
*)
3491 tm_file
=m68k
/mot3300.h
3492 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3493 xm_defines
=NO_SYS_SIGLIST
3494 if test x
$gas = xyes
3496 xmake_file
=m68k
/x-mot3300-gas
3497 if test x
$gnu_ld = xyes
3499 tmake_file
=m68k
/t-mot3300-gald
3501 tmake_file
=m68k
/t-mot3300-gas
3505 xmake_file
=m68k
/x-mot3300
3506 if test x
$gnu_ld = xyes
3508 tmake_file
=m68k
/t-mot3300-gld
3510 tmake_file
=m68k
/t-mot3300
3514 gdb_needs_out_file_path
=yes
3515 extra_parts
="crt0.o mcrt0.o"
3516 extra_headers
=math-68881.h
3519 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3520 tm_file
=m68k
/tower-as.h
3521 xm_defines
="USG SVR3"
3522 xmake_file
=m68k
/x-tower
3523 extra_parts
="crtbegin.o crtend.o"
3524 extra_headers
=math-68881.h
3527 tm_file
=m68k
/plexus.h
3528 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3531 extra_headers
=math-68881.h
3535 xm_file
="xm-alloca.h ${xm_file}"
3537 extra_headers
=math-68881.h
3540 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3541 xm_defines
="USG unos"
3542 xmake_file
=m68k
/x-crds
3545 extra_headers
=math-68881.h
3547 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3549 xm_file
="xm-alloca.h ${xm_file}"
3550 xm_defines
="USG FULL_PROTOTYPES"
3551 xmake_file
=m68k
/x-amix
3553 extra_parts
="crtbegin.o crtend.o"
3554 extra_headers
=math-68881.h
3558 tm_file
=m68k
/ccur-GAS.h
3559 xmake_file
=m68k
/x-ccur
3560 extra_headers
=math-68881.h
3564 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3565 tm_file
=m68k
/hp3bsd44.h
3566 xmake_file
=m68k
/x-hp3bsd44
3568 extra_headers
=math-68881.h
3571 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3572 tm_file
=m68k
/hp3bsd.h
3574 extra_headers
=math-68881.h
3578 if test x
$with_fp = xno
3580 tm_file
=m68k
/isi-nfp.h
3586 extra_headers
=math-68881.h
3588 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3589 xm_file
="xm_alloca.h ${xm_file}"
3590 xm_defines
="USG NO_SYS_SIGLIST"
3591 if test x
$gas = xyes
3593 xmake_file
=m68k
/x-hp320g
3594 tm_file
=m68k
/hp320g.h
3596 xmake_file
=m68k
/x-hp320
3597 tm_file
=m68k
/hpux7.h
3599 install_headers_dir
=install-headers-cpio
3601 extra_headers
=math-68881.h
3604 m68k-hp-hpux
*) # HP 9000 series 300
3605 xm_file
="xm_alloca.h ${xm_file}"
3606 xm_defines
="USG NO_SYS_SIGLIST"
3607 if test x
$gas = xyes
3609 xmake_file
=m68k
/x-hp320g
3610 tm_file
=m68k
/hp320g.h
3612 xmake_file
=m68k
/x-hp320
3613 tm_file
=m68k
/hp320.h
3615 install_headers_dir
=install-headers-cpio
3617 extra_headers
=math-68881.h
3621 tm_file
=m68k
/sun3mach.h
3623 extra_headers
=math-68881.h
3627 if test x
$gas = xyes
3629 tm_file
=m68k
/news3gas.h
3631 tm_file
=m68k
/news3.h
3634 extra_headers
=math-68881.h
3637 m68k-sony-bsd
* | m68k-sony-newsos
*)
3638 if test x
$gas = xyes
3640 tm_file
=m68k
/newsgas.h
3645 extra_headers
=math-68881.h
3648 m68k-next-nextstep2
*)
3649 tm_file
=m68k
/next21.h
3650 xm_file
="m68k/xm-next.h ${xm_file}"
3651 tmake_file
=m68k
/t-next
3652 xmake_file
=m68k
/x-next
3653 extra_objs
=nextstep.o
3654 extra_headers
=math-68881.h
3658 m68k-next-nextstep3
*)
3660 xm_file
="m68k/xm-next.h ${xm_file}"
3661 tmake_file
=m68k
/t-next
3662 xmake_file
=m68k
/x-next
3663 extra_objs
=nextstep.o
3664 extra_headers
=math-68881.h
3667 if test x
$enable_threads = xyes
; then
3672 if test x
$with_fp = xno
3674 tm_file
=m68k
/sun3n3.h
3676 tm_file
=m68k
/sun3o3.h
3680 extra_headers
=math-68881.h
3682 m68k-sun-sunos
*) # For SunOS 4 (the default).
3683 if test x
$with_fp = xno
3685 tm_file
=m68k
/sun3n.h
3691 extra_headers
=math-68881.h
3694 tm_file
=m68k
/vxm68k.h
3695 tmake_file
=m68k
/t-vxworks68
3696 extra_headers
=math-68881.h
3697 thread_file
='vxworks'
3701 tmake_file
=m68k
/t-m68kbare
3702 tm_file
="m68k/m68k-aout.h libgloss.h"
3703 extra_headers
=math-68881.h
3707 tmake_file
=m68k
/t-m68kbare
3708 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3709 extra_headers
=math-68881.h
3713 if test x
$gas = xyes
3717 tm_file
=m68k
/lynx-ng.h
3719 xm_file
=m68k
/xm-lynx.h
3721 tmake_file
=m68k
/t-lynx
3722 extra_headers
=math-68881.h
3726 tm_file
=m68k
/netbsd.h
3727 # On NetBSD, the headers are already okay, except for math.h.
3728 fixincludes
=fixinc.wrap
3732 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3733 xm_file
="xm-alloca.h ${xm_file}"
3735 xmake_file
=m68k
/x-m68kv
3736 extra_parts
="crtbegin.o crtend.o"
3737 extra_headers
=math-68881.h
3740 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3741 tm_file
=m68k
/m68kv4.h
3742 xm_file
="xm-alloca.h ${xm_file}"
3745 extra_parts
="crtbegin.o crtend.o"
3746 extra_headers
=math-68881.h
3749 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3752 tm_file
=m68k
/linux-aout.h
3753 tmake_file
="t-linux-aout m68k/t-linux-aout"
3754 fixincludes
=Makefile.
in # The headers are ok already.
3755 extra_headers
=math-68881.h
3759 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3760 # with ELF format using the
3761 # GNU/Linux C library 5
3763 tm_file
=m68k
/linux.h
3764 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3765 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3766 fixincludes
=Makefile.
in # The headers are ok already.
3767 extra_headers
=math-68881.h
3771 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3772 # with ELF format using glibc 2
3773 # aka the GNU/Linux C library 6.
3775 tm_file
=m68k
/linux.h
3776 tmake_file
="t-linux m68k/t-linux"
3777 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3778 fixincludes
=Makefile.
in # The headers are ok already.
3779 extra_headers
=math-68881.h
3782 if test x
$enable_threads = xyes
; then
3787 tmake_file
=m68k
/t-m68kbare
3788 tm_file
=m68k
/m68k-psos.h
3789 extra_headers
=math-68881.h
3793 tmake_file
="m68k/t-m68kbare t-rtems"
3794 tm_file
=m68k
/rtems.h
3795 extra_headers
=math-68881.h
3802 tm_file
=m88k
/dguxbcs.h
3803 tmake_file
=m88k
/t-dguxbcs
3807 tmake_file
=m88k
/t-dgux
3810 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3811 xmake_file
=m88k
/x-dgux
3812 if test x
$gas = xyes
3814 tmake_file
=m88k
/t-dgux-gas
3816 fixincludes
=fixinc.dgux
3818 m88k-dolphin-sysv3
*)
3819 tm_file
=m88k
/dolph.h
3820 extra_parts
="crtbegin.o crtend.o"
3821 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3822 xmake_file
=m88k
/x-dolph
3823 if test x
$gas = xyes
3825 tmake_file
=m88k
/t-m88k-gas
3828 m88k-tektronix-sysv3
)
3829 tm_file
=m88k
/tekXD88.h
3830 extra_parts
="crtbegin.o crtend.o"
3831 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3832 xmake_file
=m88k
/x-tekXD88
3833 if test x
$gas = xyes
3835 tmake_file
=m88k
/t-m88k-gas
3839 tm_file
=m88k
/m88k-aout.h
3842 tm_file
=m88k
/m88k-coff.h
3843 tmake_file
=m88k
/t-bug
3847 extra_parts
="crtbegin.o crtend.o"
3848 if test x
$gas = xyes
3850 tmake_file
=m88k
/t-luna-gas
3852 tmake_file
=m88k
/t-luna
3856 tm_file
=m88k
/sysv3.h
3857 extra_parts
="crtbegin.o crtend.o"
3858 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3859 xmake_file
=m88k
/x-sysv3
3860 if test x
$gas = xyes
3862 tmake_file
=m88k
/t-m88k-gas
3866 tm_file
=m88k
/sysv4.h
3867 extra_parts
="crtbegin.o crtend.o"
3868 xmake_file
=m88k
/x-sysv4
3869 tmake_file
=m88k
/t-sysv4
3871 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3872 tm_file
=mips
/iris6.h
3873 xm_file
=mips
/xm-iris6.h
3874 fixincludes
=fixinc.irix
3875 xmake_file
=mips
/x-iris6
3876 tmake_file
=mips
/t-iris6
3877 # if test x$enable_threads = xyes; then
3878 # thread_file='irix'
3882 tm_file
="mips/elf.h libgloss.h"
3883 tmake_file
=mips
/t-ecoff
3886 extra_parts
="crtbegin.o crtend.o"
3887 # thread_file='vxworks'
3889 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3890 tm_file
="mips/iris6.h mips/cross64.h"
3892 xm_file
="mips/xm-iris5.h"
3893 fixincludes
=Makefile.
in
3894 xmake_file
=mips
/x-iris
3895 tmake_file
=mips
/t-cross64
3896 # See comment in mips/iris[56].h files.
3898 # if test x$enable_threads = xyes; then
3899 # thread_file='irix'
3903 if test x
$gas = xyes
3905 if test x
$stabs = xyes
3907 tm_file
=mips
/iris5gdb.h
3909 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3912 tm_file
=mips
/sni-svr4.h
3915 xmake_file
=mips
/x-sni-svr4
3916 tmake_file
=mips
/t-mips-gas
3917 if test x
$gnu_ld != xyes
3922 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3923 if test x
$gas = xyes
3925 tm_file
="mips/iris5.h mips/iris5gas.h"
3926 if test x
$stabs = xyes
3928 tm_file
="${tm_file} dbx.h"
3931 tm_file
=mips
/iris5.h
3934 xm_file
="mips/xm-iris5.h"
3935 fixincludes
=fixinc.irix
3936 xmake_file
=mips
/x-iris
3937 # mips-tfile doesn't work yet
3938 tmake_file
=mips
/t-mips-gas
3939 # See comment in mips/iris5.h file.
3941 # if test x$enable_threads = xyes; then
3942 # thread_file='irix'
3945 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3946 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3947 if test x
$stabs = xyes
; then
3948 tm_file
="${tm_file} dbx.h"
3951 xmake_file
=mips
/x-iris
3952 if test x
$gas = xyes
3954 tmake_file
=mips
/t-mips-gas
3956 extra_passes
="mips-tfile mips-tdump"
3958 if test x
$gnu_ld != xyes
3962 # if test x$enable_threads = xyes; then
3963 # thread_file='irix'
3966 mips-sgi-irix4
*) # Mostly like a MIPS.
3967 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3968 if test x
$stabs = xyes
; then
3969 tm_file
="${tm_file} dbx.h"
3972 xmake_file
=mips
/x-iris
3973 if test x
$gas = xyes
3975 tmake_file
=mips
/t-mips-gas
3977 extra_passes
="mips-tfile mips-tdump"
3979 if test x
$gnu_ld != xyes
3983 # if test x$enable_threads = xyes; then
3984 # thread_file='irix'
3987 mips-sgi-
*) # Mostly like a MIPS.
3988 tm_file
="mips/iris3.h ${tm_file}"
3989 if test x
$stabs = xyes
; then
3990 tm_file
="${tm_file} dbx.h"
3993 xmake_file
=mips
/x-iris3
3994 if test x
$gas = xyes
3996 tmake_file
=mips
/t-mips-gas
3998 extra_passes
="mips-tfile mips-tdump"
4000 if test x
$gnu_ld != xyes
4005 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
4006 tm_file
="mips/osfrose.h ${tm_file}"
4007 xmake_file
=mips
/x-osfrose
4008 tmake_file
=mips
/t-osfrose
4009 extra_objs
=halfpic.o
4012 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
4013 tm_file
=mips
/dec-osf1.h
4014 if test x
$stabs = xyes
; then
4015 tm_file
="${tm_file} dbx.h"
4017 xmake_file
=mips
/x-dec-osf1
4018 if test x
$gas = xyes
4020 tmake_file
=mips
/t-mips-gas
4022 tmake_file
=mips
/t-ultrix
4023 extra_passes
="mips-tfile mips-tdump"
4025 if test x
$gnu_ld != xyes
4030 mips-dec-bsd
*) # Decstation running 4.4 BSD
4031 tm_file
=mips
/dec-bsd.h
4033 if test x
$gas = xyes
4035 tmake_file
=mips
/t-mips-gas
4037 tmake_file
=mips
/t-ultrix
4038 extra_passes
="mips-tfile mips-tdump"
4040 if test x
$gnu_ld != xyes
4045 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
4046 tm_file
=mips
/netbsd.h
4047 # On NetBSD, the headers are already okay, except for math.h.
4048 fixincludes
=fixinc.wrap
4051 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
4052 tm_file
="mips/news4.h ${tm_file}"
4053 if test x
$stabs = xyes
; then
4054 tm_file
="${tm_file} dbx.h"
4056 if test x
$gas = xyes
4058 tmake_file
=mips
/t-mips-gas
4060 extra_passes
="mips-tfile mips-tdump"
4062 if test x
$gnu_ld != xyes
4066 xmake_file
=mips
/x-sony
4068 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
4069 # That is based on svr4.
4070 # t-svr4 is not right because this system doesn't use ELF.
4071 tm_file
="mips/news5.h ${tm_file}"
4072 if test x
$stabs = xyes
; then
4073 tm_file
="${tm_file} dbx.h"
4075 xm_file
="xm-siglist.h ${xm_file}"
4077 if test x
$gas = xyes
4079 tmake_file
=mips
/t-mips-gas
4081 extra_passes
="mips-tfile mips-tdump"
4083 if test x
$gnu_ld != xyes
4088 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
4089 tm_file
="mips/svr4-5.h mips/svr4-t.h"
4090 if test x
$stabs = xyes
; then
4091 tm_file
="${tm_file} dbx.h"
4093 xm_file
="xm-siglist.h ${xm_file}"
4095 xmake_file
=mips
/x-sysv
4096 if test x
$gas = xyes
4098 tmake_file
=mips
/t-mips-gas
4099 extra_parts
="crtbegin.o crtend.o"
4101 tmake_file
=mips
/t-mips
4102 extra_passes
="mips-tfile mips-tdump"
4104 if test x
$gnu_ld != xyes
4109 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
4110 tm_file
="mips/ultrix.h ${tm_file}"
4111 if test x
$stabs = xyes
; then
4112 tm_file
="${tm_file} dbx.h"
4114 xmake_file
=mips
/x-ultrix
4115 if test x
$gas = xyes
4117 tmake_file
=mips
/t-mips-gas
4119 tmake_file
=mips
/t-ultrix
4120 extra_passes
="mips-tfile mips-tdump"
4122 if test x
$gnu_ld != xyes
4127 mips-
*-riscos[56789]bsd
*)
4128 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
4129 if test x
$stabs = xyes
; then
4130 tm_file
="${tm_file} dbx.h"
4132 if test x
$gas = xyes
4134 tmake_file
=mips
/t-bsd-gas
4136 tmake_file
=mips
/t-bsd
4137 extra_passes
="mips-tfile mips-tdump"
4139 if test x
$gnu_ld != xyes
4144 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
4145 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4146 if test x
$stabs = xyes
; then
4147 tm_file
="${tm_file} dbx.h"
4149 if test x
$gas = xyes
4151 tmake_file
=mips
/t-bsd-gas
4153 tmake_file
=mips
/t-bsd
4154 extra_passes
="mips-tfile mips-tdump"
4156 if test x
$gnu_ld != xyes
4161 mips-
*-riscos[56789]sysv4
*)
4162 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
4163 if test x
$stabs = xyes
; then
4164 tm_file
="${tm_file} dbx.h"
4166 xm_file
="xm-siglist.h ${xm_file}"
4167 xmake_file
=mips
/x-sysv
4168 if test x
$gas = xyes
4170 tmake_file
=mips
/t-svr4-gas
4172 tmake_file
=mips
/t-svr4
4173 extra_passes
="mips-tfile mips-tdump"
4175 if test x
$gnu_ld != xyes
4180 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
4181 tm_file
="mips/svr4-4.h ${tm_file}"
4182 if test x
$stabs = xyes
; then
4183 tm_file
="${tm_file} dbx.h"
4186 xmake_file
=mips
/x-sysv
4187 if test x
$gas = xyes
4189 tmake_file
=mips
/t-svr4-gas
4191 tmake_file
=mips
/t-svr4
4192 extra_passes
="mips-tfile mips-tdump"
4194 if test x
$gnu_ld != xyes
4199 mips-
*-riscos[56789]sysv
*)
4200 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
4201 if test x
$stabs = xyes
; then
4202 tm_file
="${tm_file} dbx.h"
4205 xmake_file
=mips
/x-sysv
4206 if test x
$gas = xyes
4208 tmake_file
=mips
/t-svr3-gas
4210 tmake_file
=mips
/t-svr3
4211 extra_passes
="mips-tfile mips-tdump"
4213 if test x
$gnu_ld != xyes
4218 mips-
*-sysv* | mips-
*-riscos*sysv
*)
4219 tm_file
="mips/svr3-4.h ${tm_file}"
4220 if test x
$stabs = xyes
; then
4221 tm_file
="${tm_file} dbx.h"
4224 xmake_file
=mips
/x-sysv
4225 if test x
$gas = xyes
4227 tmake_file
=mips
/t-svr3-gas
4229 tmake_file
=mips
/t-svr3
4230 extra_passes
="mips-tfile mips-tdump"
4232 if test x
$gnu_ld != xyes
4237 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4238 tm_file
=mips
/mips-5.h
4239 if test x
$stabs = xyes
; then
4240 tm_file
="${tm_file} dbx.h"
4242 if test x
$gas = xyes
4244 tmake_file
=mips
/t-mips-gas
4246 extra_passes
="mips-tfile mips-tdump"
4248 if test x
$gnu_ld != xyes
4256 tm_file
=mips
/ecoffl.h
4257 if test x
$stabs = xyes
; then
4258 tm_file
="${tm_file} dbx.h"
4260 tmake_file
=mips
/t-ecoff
4263 tm_file
="gofast.h mips/ecoff.h"
4264 if test x
$stabs = xyes
; then
4265 tm_file
="${tm_file} dbx.h"
4267 tmake_file
=mips
/t-ecoff
4270 tm_file
="mips/elfl.h libgloss.h"
4271 tmake_file
=mips
/t-ecoff
4274 tm_file
="mips/elf.h libgloss.h"
4275 tmake_file
=mips
/t-ecoff
4278 tm_file
="mips/elfl64.h libgloss.h"
4279 tmake_file
=mips
/t-ecoff
4281 mips64orionel-
*-elf*)
4282 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
4283 tmake_file
=mips
/t-ecoff
4286 tm_file
="mips/elf64.h libgloss.h"
4287 tmake_file
=mips
/t-ecoff
4290 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
4291 tmake_file
=mips
/t-ecoff
4293 mips64orion-
*-rtems*)
4294 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
4295 tmake_file
="mips/t-ecoff t-rtems"
4298 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4299 tmake_file
=mips
/t-r3900
4302 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4303 tmake_file
=mips
/t-r3900
4304 # FIXME mips-elf should be fixed to use crtstuff.
4307 mips-
*-*) # Default MIPS RISC-OS 4.0.
4308 if test x
$stabs = xyes
; then
4309 tm_file
="${tm_file} dbx.h"
4311 if test x
$gas = xyes
4313 tmake_file
=mips
/t-mips-gas
4315 extra_passes
="mips-tfile mips-tdump"
4317 if test x
$gnu_ld != xyes
4324 tm_file
="mn10200/mn10200.h"
4325 if test x
$stabs = xyes
4327 tm_file
="${tm_file} dbx.h"
4333 tm_file
="mn10300/mn10300.h"
4334 if test x
$stabs = xyes
4336 tm_file
="${tm_file} dbx.h"
4341 tm_file
=ns32k
/encore.h
4345 tm_file
=ns32k
/sequent.h
4349 tm_file
=ns32k
/tek6100.h
4353 tm_file
=ns32k
/tek6200.h
4356 # This has not been updated to GCC 2.
4359 # xmake_file=ns32k/x-genix
4360 # tm_file=ns32k/genix.h
4364 tm_file
=ns32k
/merlin.h
4368 tm_file
=ns32k
/pc532-mach.h
4372 tm_file
=ns32k
/pc532-min.h
4373 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4378 tm_file
=ns32k
/netbsd.h
4379 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
4380 # On NetBSD, the headers are already okay, except for math.h.
4381 fixincludes
=fixinc.wrap
4385 tm_file
="${tm_file} pdp11/2bsd.h"
4391 xmake_file
=pyr
/x-pyr
4398 xmake_file
=romp
/x-mach
4403 tm_file
=rs6000
/beos.h
4404 xm_file
=rs6000
/xm-beos.h
4405 tmake_file
=rs6000
/t-beos
4406 xmake_file
=rs6000
/x-beos
4408 powerpc-
*-sysv* | powerpc-
*-elf*)
4409 tm_file
=rs6000
/sysv4.h
4410 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4411 xm_defines
="USG POSIX"
4412 extra_headers
=ppc-asm.h
4413 if test x
$gas = xyes
4415 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4417 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4419 xmake_file
=rs6000
/x-sysv4
4422 tm_file
=rs6000
/eabiaix.h
4423 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4424 fixincludes
=Makefile.
in
4425 extra_headers
=ppc-asm.h
4428 tm_file
=rs6000
/eabisim.h
4429 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4430 fixincludes
=Makefile.
in
4431 extra_headers
=ppc-asm.h
4434 tm_file
=rs6000
/eabi.h
4435 if test x
$gas = xyes
4437 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4439 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4441 fixincludes
=Makefile.
in
4442 extra_headers
=ppc-asm.h
4445 tm_file
=rs6000
/rtems.h
4446 if test x
$gas = xyes
4448 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4450 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4452 fixincludes
=Makefile.
in
4453 extra_headers
=ppc-asm.h
4455 powerpc-
*-linux-gnulibc1)
4456 tm_file
=rs6000
/linux.h
4457 xm_file
=rs6000
/xm-sysv4.h
4458 out_file
=rs6000
/rs6000.c
4459 if test x
$gas = xyes
4461 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4463 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4466 fixincludes
=Makefile.
in
4467 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4468 extra_headers
=ppc-asm.h
4469 if test x
$enable_threads = xyes
; then
4473 powerpc-
*-linux-gnu*)
4474 tm_file
=rs6000
/linux.h
4475 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4476 xm_defines
="USG ${xm_defines}"
4477 out_file
=rs6000
/rs6000.c
4478 if test x
$gas = xyes
4480 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4482 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4485 fixincludes
=Makefile.
in
4486 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4487 extra_headers
=ppc-asm.h
4488 if test x
$enable_threads = xyes
; then
4492 powerpc-wrs-vxworks
*)
4494 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4495 xm_defines
="USG POSIX"
4496 tm_file
=rs6000
/vxppc.h
4497 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4498 extra_headers
=ppc-asm.h
4499 thread_file
='vxworks'
4501 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4502 tm_file
=rs6000
/sysv4le.h
4503 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4504 xm_defines
="USG POSIX"
4505 if test x
$gas = xyes
4507 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4509 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4511 xmake_file
=rs6000
/x-sysv4
4512 extra_headers
=ppc-asm.h
4514 powerpcle-
*-eabisim*)
4515 tm_file
=rs6000
/eabilesim.h
4516 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4517 fixincludes
=Makefile.
in
4518 extra_headers
=ppc-asm.h
4521 tm_file
=rs6000
/eabile.h
4522 if test x
$gas = xyes
4524 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4526 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4528 fixincludes
=Makefile.
in
4529 extra_headers
=ppc-asm.h
4531 powerpcle-
*-winnt* )
4532 tm_file
=rs6000
/win-nt.h
4533 tmake_file
=rs6000
/t-winnt
4535 fixincludes
=Makefile.
in
4536 if test x
$enable_threads = xyes
; then
4539 extra_headers
=ppc-asm.h
4541 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4542 tm_file
=rs6000
/cygwin32.h
4543 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4544 tmake_file
=rs6000
/t-winnt
4545 xmake_file
=rs6000
/x-cygwin32
4547 fixincludes
=Makefile.
in
4548 if test x
$enable_threads = xyes
; then
4552 extra_headers
=ppc-asm.h
4554 powerpcle-
*-solaris2*)
4555 tm_file
=rs6000
/sol2.h
4556 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4557 xm_defines
="USG POSIX"
4558 if test x
$gas = xyes
4560 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4562 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4564 xmake_file
=rs6000
/x-sysv4
4567 fixincludes
=fixinc.svr4
;;
4569 fixincludes
=fixinc.wrap
;;
4571 extra_headers
=ppc-asm.h
4573 rs6000-ibm-aix3.
[01]*)
4574 tm_file
=rs6000
/aix31.h
4575 xmake_file
=rs6000
/x-aix31
4578 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4579 tm_file
=rs6000
/aix3newas.h
4580 if test x
$host != x
$target
4582 tmake_file
=rs6000
/t-xnewas
4584 tmake_file
=rs6000
/t-newas
4588 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
4589 tm_file
=rs6000
/aix41.h
4590 if test x
$host != x
$target
4592 tmake_file
=rs6000
/t-xnewas
4594 tmake_file
=rs6000
/t-newas
4596 xmake_file
=rs6000
/x-aix41
4599 rs6000-ibm-aix4.
[3456789].
* | powerpc-ibm-aix4.
[3456789].
*)
4600 tm_file
=rs6000
/aix43.h
4601 if test x
$host != x
$target
4603 tmake_file
=rs6000
/t-xaix43
4605 tmake_file
=rs6000
/t-aix43
4607 xmake_file
=rs6000
/x-aix43
4610 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
4611 tm_file
=rs6000
/aix43.h
4612 if test x
$host != x
$target
4614 tmake_file
=rs6000
/t-xaix43
4616 tmake_file
=rs6000
/t-aix43
4618 xmake_file
=rs6000
/x-aix43
4628 tm_file
=rs6000
/mach.h
4629 xm_file
="${xm_file} rs6000/xm-mach.h"
4630 xmake_file
=rs6000
/x-mach
4634 tm_file
=rs6000
/lynx.h
4635 xm_file
=rs6000
/xm-lynx.h
4636 tmake_file
=rs6000
/t-rs6000
4637 xmake_file
=rs6000
/x-lynx
4645 tmake_file
="sh/t-sh t-rtems"
4646 tm_file
=sh
/rtemself.h
4650 tmake_file
="sh/t-sh t-rtems"
4659 xm_file
="xm-alloca.h ${xm_file}"
4662 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4663 tm_file
=sparc
/vxsparc.h
4664 tmake_file
=sparc
/t-vxsparc
4666 thread_file
='vxworks'
4669 tmake_file
=sparc
/t-sparcbare
4670 tm_file
="sparc/aout.h libgloss.h"
4673 tm_file
=sparc
/netbsd.h
4674 # On NetBSD, the headers are already okay, except for math.h.
4675 fixincludes
=fixinc.wrap
4683 tmake_file
=sparc
/t-elf
4684 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4688 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4689 xm_file
="${xm_file} sparc/xm-linux.h"
4690 tm_file
=sparc
/linux-aout.h
4692 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4695 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4696 xm_file
="${xm_file} sparc/xm-linux.h"
4698 tm_file
=sparc
/linux.h
4699 tmake_file
="t-linux t-linux-gnulibc1"
4700 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4701 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4704 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4705 xm_file
="${xm_file} sparc/xm-linux.h"
4707 tm_file
=sparc
/linux.h
4708 tmake_file
="t-linux"
4709 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4710 fixincludes
=Makefile.
in #On Linux, the headers are ok already.
4712 if test x
$enable_threads = xyes
; then
4717 if test x
$gas = xyes
4719 tm_file
=sparc
/lynx.h
4721 tm_file
=sparc
/lynx-ng.h
4723 xm_file
=sparc
/xm-lynx.h
4724 tmake_file
=sparc
/t-sunos41
4728 tmake_file
="sparc/t-sparcbare t-rtems"
4729 tm_file
=sparc
/rtems.h
4731 sparcv9-
*-solaris2*)
4732 tm_file
=sparc
/sol2-sld-64.h
4733 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
4734 xm_defines
="USG POSIX"
4735 tmake_file
=sparc
/t-sol2
4736 xmake_file
=sparc
/x-sysv4
4737 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
4738 fixincludes
=fixinc.wrap
4740 if test x
${enable_threads} = x
; then
4741 enable_threads
=$have_pthread_h
4742 if test x
${enable_threads} = x
; then
4743 enable_threads
=$have_thread_h
4746 if test x
${enable_threads} = xyes
; then
4747 if test x
${have_pthread_h} = xyes
; then
4750 thread_file
='solaris'
4755 if test x
$gnu_ld = xyes
4757 tm_file
=sparc
/sol2.h
4759 tm_file
=sparc
/sol2-sld.h
4761 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4762 xm_defines
="USG POSIX"
4763 tmake_file
=sparc
/t-sol2
4764 xmake_file
=sparc
/x-sysv4
4765 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4768 fixincludes
=fixinc.svr4
;;
4770 fixincludes
=fixinc.wrap
;;
4773 if test x
${enable_threads} = x
; then
4774 enable_threads
=$have_pthread_h
4775 if test x
${enable_threads} = x
; then
4776 enable_threads
=$have_thread_h
4779 if test x
${enable_threads} = xyes
; then
4780 if test x
${have_pthread_h} = xyes
; then
4783 thread_file
='solaris'
4788 tm_file
=sparc
/sunos4.h
4789 tmake_file
=sparc
/t-sunos40
4793 tm_file
=sparc
/sunos4.h
4794 tmake_file
=sparc
/t-sunos41
4796 if test x
$gas = xyes
; then
4797 tm_file
="${tm_file} sparc/sun4gas.h"
4801 tm_file
=sparc
/sun4o3.h
4805 tm_file
=sparc
/sysv4.h
4806 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4807 xm_defines
="USG POSIX"
4809 xmake_file
=sparc
/x-sysv4
4810 extra_parts
="crtbegin.o crtend.o"
4813 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4814 xm_defines
="USG POSIX"
4815 tm_file
=sparc
/vxsim.h
4816 tmake_file
=sparc
/t-vxsparc
4817 xmake_file
=sparc
/x-sysv4
4820 tm_file
="sparc/splet.h libgloss.h"
4821 tmake_file
=sparc
/t-splet
4824 tm_file
="sparc/litecoff.h libgloss.h"
4825 tmake_file
=sparc
/t-sparclite
4828 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4829 tmake_file
=sparc
/t-sparclite
4832 tmake_file
=sparc
/t-sp64
4833 tm_file
=sparc
/sp64-aout.h
4836 tmake_file
=sparc
/t-sp64
4837 tm_file
=sparc
/sp64-elf.h
4838 extra_parts
="crtbegin.o crtend.o"
4840 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4841 tmake_file
=sparc
/t-sp64
4842 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4843 tm_file
=sparc
/linux64.h
4845 fixincludes
=Makefile.
in # The headers are ok already.
4848 # This hasn't been upgraded to GCC 2.
4849 # tahoe-harris-*) # Harris tahoe, using COFF.
4850 # tm_file=tahoe/harris.h
4852 # tahoe-*-bsd*) # tahoe running BSD
4854 thumb-
*-coff* | thumbel-
*-coff*)
4856 out_file
=arm
/thumb.c
4857 xm_file
=arm
/xm-thumb.h
4858 md_file
=arm
/thumb.md
4859 tmake_file
=arm
/t-thumb
4860 fixincludes
=Makefile.
in # There is nothing to fix
4862 # This hasn't been upgraded to GCC 2.
4869 tm_file
="v850/v850.h"
4870 xm_file
="v850/xm-v850.h"
4871 tmake_file
=v850
/t-v850
4872 if test x
$stabs = xyes
4874 tm_file
="${tm_file} dbx.h"
4878 vax-
*-bsd*) # vaxen running BSD
4882 vax-
*-sysv*) # vaxen running system V
4883 tm_file
="${tm_file} vax/vaxv.h"
4888 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4889 # On NetBSD, the headers are already okay, except for math.h.
4890 fixincludes
=fixinc.wrap
4894 vax-
*-ultrix*) # vaxen running ultrix
4895 tm_file
="${tm_file} vax/ultrix.h"
4899 vax-
*-vms*) # vaxen running VMS
4900 xm_file
=vax
/xm-vms.h
4904 vax-
*-*) # vax default entry
4908 xm_file
="${xm_file} xm-svr3"
4912 echo "Configuration $machine not supported" 1>&2
4919 ;; # Existing GNU/Linux systems do not use the GNU setup.
4921 # On the GNU system, the setup is just about the same on
4922 # each different CPU. The specific machines that GNU
4923 # supports are matched above and just set $cpu_type.
4924 xm_file
="xm-gnu.h ${xm_file}"
4925 tm_file
=${cpu_type}/gnu.h
4926 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4927 # GNU always uses ELF.
4929 # GNU tools are the only tools.
4932 # On GNU, the headers are already okay.
4933 fixincludes
=Makefile.
in
4934 xmake_file
=x-linux
# These details are the same as Linux.
4935 tmake_file
=t-gnu
# These are not.
4938 fixincludes
=fixinc.svr4
4939 xmake_try_sysv
=x-sysv
4940 install_headers_dir
=install-headers-cpio
4943 install_headers_dir
=install-headers-cpio
4947 # Distinguish i[34567]86
4948 # Also, do not run mips-tfile on MIPS if using gas.
4949 # Process --with-cpu= for PowerPC/rs6000
4950 target_cpu_default2
=
4953 target_cpu_default2
=1
4956 target_cpu_default2
=2
4958 i686-
*-* | i786-
*-*)
4959 target_cpu_default2
=3
4964 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4967 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
4970 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4973 target_cpu_default2
="MASK_CPU_EV5"
4977 if test x
$gas = xyes
4979 if test "$target_cpu_default2" = ""
4981 target_cpu_default2
="MASK_GAS"
4983 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4988 case "x$with_cpu" in
4991 target_cpu_default2
="TARGET_CPU_generic"
4994 # Distinguish cores, and major variants
4995 # arm7m doesn't exist, but D & I don't affect code
4996 xarm23678 | xarm250 | xarm67010 \
4997 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4998 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4999 | xstrongarm | xstrongarm110
)
5000 target_cpu_default2
="TARGET_CPU_$with_cpu"
5004 echo "--with-cpu must be passed a value" 1>&2
5009 if test x
$pass2done = xyes
5011 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5018 mips
*-*-ecoff* | mips
*-*-elf*)
5019 if test x
$gas = xyes
5021 if test x
$gnu_ld = xyes
5023 target_cpu_default2
=20
5025 target_cpu_default2
=16
5030 if test x
$gas = xyes
5032 target_cpu_default2
=16
5035 powerpc
*-*-* | rs6000-
*-*)
5036 case "x$with_cpu" in
5040 xcommon | xpower | xpower2 | xpowerpc | xrios \
5041 | xrios1 | xrios2 | xrsc | xrsc1 \
5042 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5043 | x403 | x505 | x801 | x821 | x823 | x860
)
5044 target_cpu_default2
="\"$with_cpu\""
5048 echo "--with-cpu must be passed a value" 1>&2
5053 if test x
$pass2done = xyes
5055 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5062 case ".$with_cpu" in
5064 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
5066 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
5067 target_cpu_default2
="TARGET_CPU_$with_cpu"
5070 if test x
$pass2done = xyes
5072 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5080 if test "$target_cpu_default2" != ""
5082 if test "$target_cpu_default" != ""
5084 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
5086 target_cpu_default
=$target_cpu_default2
5090 # No need for collect2 if we have the GNU linker.
5091 # Actually, there is now; GNU ld doesn't handle the EH info or
5092 # collecting for shared libraries.
5099 # Save data on machine being used to compile GCC in build_xm_file.
5100 # Save data on host machine in vars host_xm_file and host_xmake_file.
5101 if test x
$pass1done = x
5103 if test x
"$xm_file" = x
5104 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
5105 else build_xm_file
=$xm_file
5107 build_xm_defines
=$xm_defines
5108 build_install_headers_dir
=$install_headers_dir
5109 build_exeext
=$exeext
5112 if test x
$pass2done = x
5114 if test x
"$xm_file" = x
5115 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
5116 else host_xm_file
=$xm_file
5118 host_xm_defines
=$xm_defines
5119 if test x
"$xmake_file" = x
5120 then xmake_file
=$cpu_type/x-
$cpu_type
5122 host_xmake_file
="$xmake_file"
5123 host_truncate_target
=$truncate_target
5124 host_extra_gcc_objs
=$extra_gcc_objs
5125 host_extra_objs
=$extra_host_objs
5132 extra_objs
="${host_extra_objs} ${extra_objs}"
5134 # Default the target-machine variables that were not explicitly set.
5135 if test x
"$tm_file" = x
5136 then tm_file
=$cpu_type/$cpu_type.h
; fi
5138 if test x
$extra_headers = x
5139 then extra_headers
=; fi
5141 if test x
"$xm_file" = x
5142 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
5144 if test x
$md_file = x
5145 then md_file
=$cpu_type/$cpu_type.md
; fi
5147 if test x
$out_file = x
5148 then out_file
=$cpu_type/$cpu_type.c
; fi
5150 if test x
"$tmake_file" = x
5151 then tmake_file
=$cpu_type/t-
$cpu_type
5154 if test x
$float_format = x
5155 then float_format
=i64
5158 if test x
$enable_haifa = x
5161 alpha
*-* | hppa1.?
-* | powerpc
*-* | rs6000-
* |
*sparc
*-* | m32r
*-*)
5166 # Say what files are being used for the output code and MD file.
5167 echo "Using \`$srcdir/config/$out_file' to output insns."
5168 echo "Using \`$srcdir/config/$md_file' as machine description file."
5171 for f
in $tm_file; do
5174 if test $count = ax
; then
5175 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5177 echo "Using the following target machine macro files:"
5178 for f
in $tm_file; do
5179 echo " $srcdir/config/$f"
5184 for f
in $host_xm_file; do
5187 if test $count = ax
; then
5188 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5190 echo "Using the following host machine macro files:"
5191 for f
in $host_xm_file; do
5192 echo " $srcdir/config/$f"
5196 if test "$host_xm_file" != "$build_xm_file"; then
5198 for f
in $build_xm_file; do
5201 if test $count = ax
; then
5202 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5204 echo "Using the following build machine macro files:"
5205 for f
in $build_xm_file; do
5206 echo " $srcdir/config/$f"
5211 if test x
$thread_file = x
; then
5212 if test x
$target_thread_file != x
; then
5213 thread_file
=$target_thread_file
5215 thread_file
='single'
5219 # Set up the header files.
5220 # $links is the list of header files to create.
5221 # $vars is the list of shell variables with file names to include.
5222 # auto-host.h is the file containing items generated by autoconf and is
5223 # the first file included by config.h.
5225 host_xm_file
="auto-host.h ${host_xm_file}"
5227 # If host=build, it is correct to have hconfig include auto-host.h
5228 # as well. If host!=build, we are in error and need to do more
5229 # work to find out the build config parameters.
5230 if test x
$host = x
$build
5232 build_xm_file
="auto-host.h ${build_xm_file}"
5234 # We create a subdir, then run autoconf in the subdir.
5235 # To prevent recursion we set host and build for the new
5236 # invocation of configure to the build for this invocation
5243 /*) realsrcdir
=${srcdir};;
5244 *) realsrcdir
=..
/${srcdir};;
5246 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
5247 --target=$target --host=$build --build=$build
5249 # We just finished tests for the build machine, so rename
5250 # the file auto-build.h in the gcc directory.
5251 mv auto-host.h ..
/auto-build.h
5254 build_xm_file
="auto-build.h ${build_xm_file}"
5257 vars
="host_xm_file tm_file xm_file build_xm_file"
5258 links
="config.h tm.h tconfig.h hconfig.h"
5259 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
5262 if test -f config.status
; then mv -f config.status config.bak
; fi
5265 while test -n "$vars"
5267 set $vars; var
=$1; shift; vars
=$
*
5268 set $links; link
=$1; shift; links
=$
*
5269 set $defines; define
=$1; shift; defines
=$
*
5273 # Define TARGET_CPU_DEFAULT if the system wants one.
5274 # This substitutes for lots of *.h files.
5275 if test "$target_cpu_default" != "" -a $link = tm.h
5277 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5280 for file in `eval echo '$'$var`; do
5281 echo "#include \"$file\"" >>$link
5284 for def
in `eval echo '$'$define`; do
5285 echo "#ifndef $def" >>$link
5286 echo "#define $def" >>$link
5287 echo "#endif" >>$link
5291 # Truncate the target if necessary
5292 if test x
$host_truncate_target != x
; then
5293 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5296 # Get the version trigger filename from the toplevel
5297 if test "${with_gcc_version_trigger+set}" = set; then
5298 gcc_version_trigger
=$with_gcc_version_trigger
5300 gcc_version_trigger
=${srcdir}/version.c
5302 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5304 # Get an absolute path to the GCC top-level source directory
5310 # Conditionalize the makefile for this host machine.
5311 # Make-host contains the concatenation of all host makefile fragments
5312 # [there can be more than one]. This file is built by configure.frag.
5313 host_overrides
=Make-host
5314 dep_host_xmake_file
=
5315 for f
in ..
${host_xmake_file}
5317 if test -f ${srcdir}/config
/$f
5319 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
5323 # Conditionalize the makefile for this target machine.
5324 # Make-target contains the concatenation of all host makefile fragments
5325 # [there can be more than one]. This file is built by configure.frag.
5326 target_overrides
=Make-target
5328 for f
in ..
${tmake_file}
5330 if test -f ${srcdir}/config
/$f
5332 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
5336 # If the host doesn't support symlinks, modify CC in
5337 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
5338 # Otherwise, we can use "CC=$(CC)".
5340 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
5342 cc_set_by_configure
="\$(CC)"
5343 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
5346 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
5348 symbolic_link
="cp -p"
5352 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
5353 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
5357 out_object_file
=`basename $out_file .c`.o
5360 for f
in $tm_file; do
5361 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
5365 for f
in $host_xm_file; do
5366 if test $f != "auto-host.h"; then
5367 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
5369 host_xm_file_list
="${host_xm_file_list} auto-host.h"
5374 for f
in $build_xm_file; do
5375 if test $f != "auto-build.h"; then
5376 if test $f != "auto-host.h"; then
5377 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
5379 build_xm_file_list
="${build_xm_file_list} auto-host.h"
5382 build_xm_file_list
="${build_xm_file_list} auto-build.h"
5386 # Define macro CROSS_COMPILE in compilation
5387 # if this is a cross-compiler.
5388 # Also use all.cross instead of all.internal
5389 # and add cross-make to Makefile.
5390 cross_overrides
="/dev/null"
5391 if test x
$host != x
$target
5393 cross_defines
="CROSS=-DCROSS_COMPILE"
5394 cross_overrides
="${topdir}/cross-make"
5397 # When building gcc with a cross-compiler, we need to fix a few things.
5398 # This must come after cross-make as we want all.build to override
5400 build_overrides
="/dev/null"
5401 if test x
$build != x
$host
5403 build_overrides
="${topdir}/build-make"
5406 # Expand extra_headers to include complete path.
5407 # This substitutes for lots of t-* files.
5409 if test "x$extra_headers" = x
5412 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
5413 for file in $extra_headers;
5415 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
5419 if test x
$use_collect2 = xno
; then
5423 # Add a definition of USE_COLLECT2 if system wants one.
5424 # Also tell toplev.c what to do.
5425 # This substitutes for lots of t-* files.
5426 if test x
$use_collect2 = x
5431 will_use_collect2
="collect2"
5432 maybe_use_collect2
="-DUSE_COLLECT2"
5436 # Set MD_DEPS if the real md file is in md.pre-cpp.
5437 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
5438 # for line oriented comments, so we must always use a GNU cpp. If
5439 # building gcc with a cross compiler, use the cross compiler just
5440 # built. Otherwise, we can use the cpp just built.
5442 if test "x$md_cppflags" = x
5444 md_file_sub
=$srcdir/config
/$md_file
5449 # If we have gas in the build tree, make a link to it.
5450 if test -f ..
/gas
/Makefile
; then
5451 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
5454 # If we have nm in the build tree, make a link to it.
5455 if test -f ..
/binutils
/Makefile
; then
5456 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
5459 # If we have ld in the build tree, make a link to it.
5460 if test -f ..
/ld
/Makefile
; then
5461 # if test x$use_collect2 = x; then
5462 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
5464 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
5468 # Figure out what assembler alignment features are present.
5469 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
5470 echo "configure:5471: checking assembler alignment features" >&5
5472 gcc_cv_as_alignment_features
=
5473 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
5474 if test -x as
$host_exeext; then
5475 # Build using assembler in the current directory.
5476 gcc_cv_as
=.
/as
$host_exeext
5477 elif test -f $gcc_cv_as_gas_srcdir/configure.
in; then
5478 # Single tree build which includes gas.
5479 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
5481 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
5482 if test x
$gcc_cv_gas_version != x
; then
5486 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
5487 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
5488 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
5489 # Gas version 2.6 and later support for .balign and .p2align.
5490 # bytes to skip when using .p2align.
5491 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
5492 gcc_cv_as_alignment_features
=".balign and .p2align"
5493 cat >> confdefs.h
<<\EOF
5494 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5498 # Gas version 2.8 and later support specifying the maximum
5499 # bytes to skip when using .p2align.
5500 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
5501 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5502 cat >> confdefs.h
<<\EOF
5503 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5508 elif test x
$host = x
$target; then
5510 gcc_cv_as
=as
$host_exeext
5512 if test x
$gcc_cv_as != x
; then
5513 # Check if we have .balign and .p2align
5514 echo ".balign 4" > conftest.s
5515 echo ".p2align 2" >> conftest.s
5516 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5517 gcc_cv_as_alignment_features
=".balign and .p2align"
5518 cat >> confdefs.h
<<\EOF
5519 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
5523 rm -f conftest.s conftest.o
5524 # Check if specifying the maximum bytes to skip when
5525 # using .p2align is supported.
5526 echo ".p2align 4,,7" > conftest.s
5527 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5528 gcc_cv_as_alignment_features
=".p2align including maximum skip"
5529 cat >> confdefs.h
<<\EOF
5530 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
5534 rm -f conftest.s conftest.o
5536 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
5538 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
5539 echo "configure:5540: checking assembler subsection support" >&5
5540 gcc_cv_as_subsections
=
5541 if test x
$gcc_cv_as != x
; then
5542 # Check if we have .subsection
5543 echo ".subsection 1" > conftest.s
5544 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5545 gcc_cv_as_subsections
=".subsection"
5546 if test -x nm
$host_exeext; then
5547 gcc_cv_nm
=.
/nm
$host_exeext
5548 elif test x
$host = x
$target; then
5550 gcc_cv_nm
=nm
$host_exeext
5552 if test x
$gcc_cv_nm != x
; then
5553 cat > conftest.s
<<EOF
5554 conftest_label1: .word 0
5556 conftest_label2: .word 0
5559 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
5560 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
5561 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
5562 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
5565 gcc_cv_as_subsections
="working .subsection -1"
5566 cat >> confdefs.h
<<\EOF
5567 #define HAVE_GAS_SUBSECTION_ORDERING 1
5574 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
5576 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
5578 # Figure out what language subdirectories are present.
5580 for lang
in ${srcdir}/*/config-lang.
in ..
5584 # The odd quoting in the next line works around
5585 # an apparent bug in bash 1.12 on linux.
5586 ${srcdir}/ada
/config-lang.
in)
5587 if test x
$gnat = xyes
; then
5588 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
5591 ${srcdir}/[*]/config-lang.
in) ;;
5592 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
5596 # Make gthr-default.h if we have a thread file.
5598 if test $thread_file != single
; then
5599 rm -f gthr-default.h
5600 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
5601 gthread_flags
=-DHAVE_GTHR_DEFAULT
5605 # Make empty files to contain the specs and options for each language.
5606 # Then add #include lines to for a compiler that has specs and/or options.
5611 rm -f specs.h options.h gencheck.h
5612 touch specs.h options.h gencheck.h
5613 for subdir
in .
$subdirs
5615 if test -f $srcdir/$subdir/lang-specs.h
; then
5616 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
5617 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
5619 if test -f $srcdir/$subdir/lang-options.h
; then
5620 echo "#include \"$subdir/lang-options.h\"" >>options.h
5621 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
5623 if test -f $srcdir/$subdir/$subdir-tree.def
; then
5624 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
5625 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
5629 # These (without "all_") are set in each config-lang.in.
5630 # `language' must be a single word so is spelled singularly.
5636 all_outputs
=Makefile
5637 # List of language makefile fragments.
5642 # Add the language fragments.
5643 # Languages are added via two mechanisms. Some information must be
5644 # recorded in makefile variables, these are defined in config-lang.in.
5645 # We accumulate them and plug them into the main Makefile.
5646 # The other mechanism is a set of hooks for each of the main targets
5647 # like `clean', `install', etc.
5649 language_fragments
="Make-lang"
5650 language_hooks
="Make-hooks"
5653 for s
in ..
$subdirs
5665 .
${srcdir}/$s/config-lang.
in
5666 if test "x$language" = x
5668 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5671 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
5672 all_languages
="$all_languages $language"
5673 if test "x$boot_language" = xyes
5675 all_boot_languages
="$all_boot_languages $language"
5677 all_compilers
="$all_compilers $compilers"
5678 all_stagestuff
="$all_stagestuff $stagestuff"
5679 all_diff_excludes
="$all_diff_excludes $diff_excludes"
5680 all_headers
="$all_headers $headers"
5681 all_outputs
="$all_outputs $outputs"
5682 if test x
$outputs = x
5684 oldstyle_subdirs
="$oldstyle_subdirs $s"
5686 all_lib2funcs
="$all_lib2funcs $lib2funcs"
5690 # Since we can't use `::' targets, we link each language in
5691 # with a set of hooks, reached indirectly via lang.${target}.
5695 target_list
="all.build all.cross start.encap rest.encap \
5697 install-normal install-common install-info install-man \
5699 mostlyclean clean distclean extraclean maintainer-clean \
5700 stage1 stage2 stage3 stage4"
5701 for t
in $target_list
5704 for l
in ..
$all_languages
5706 if test $l != ".."; then
5710 echo "lang.$t: $x" >> Make-hooks
5713 # If we're not building in srcdir, create .gdbinit.
5715 if test ! -f Makefile.
in; then
5716 echo "dir ." > .gdbinit
5717 echo "dir ${srcdir}" >> .gdbinit
5718 if test x
$gdb_needs_out_file_path = xyes
5720 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5722 if test "x$subdirs" != x
; then
5725 echo "dir ${srcdir}/$s" >> .gdbinit
5728 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5731 # Define variables host_canonical and build_canonical
5732 # because some Cygnus local changes in the Makefile depend on them.
5733 build_canonical
=${build}
5734 host_canonical
=${host}
5736 if test "${host}" != "${target}" ; then
5737 target_subdir
=${target}/
5743 # If this is using newlib, then define inhibit_libc in
5744 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
5745 # libgcc.a, but that's OK because newib should have its own version of
5748 if test x
$with_newlib = xyes
; then
5749 inhibit_libc
=-Dinhibit_libc
5753 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
5756 if test x
$enable_haifa = xyes
; then
5757 echo "Using the Haifa scheduler."
5759 sched_cflags
=-DHAIFA
5763 if test x
$enable_haifa != x
; then
5764 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
5765 for x
in genattrtab.o toplev.o loop.o unroll.o
*sched.o
; do
5773 # Warn if using init_priority.
5774 echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
5775 echo "configure:5776: checking whether to enable init_priority by default" >&5
5776 if test x
$enable_init_priority != xyes
; then
5777 enable_init_priority
=no
5779 echo "$ac_t""$enable_init_priority" 1>&6
5781 # Nothing to do for FLOAT_H, float_format already handled.
5785 # Process the language and host/target makefile fragments.
5786 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5788 # Substitute configuration variables
5846 # Echo that links are built
5847 if test x
$host = x
$target
5855 if test x
$host != x
$build
5857 str3
=" on a $build system"
5860 if test "x$str2" != x ||
test "x$str3" != x
5865 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5867 if test "x$str2" != x ||
test "x$str3" != x
5869 echo " ${str2}${str3}." 1>&2
5872 # Truncate the target if necessary
5873 if test x
$host_truncate_target != x
; then
5874 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5877 # Configure the subdirectories
5878 # AC_CONFIG_SUBDIRS($subdirs)
5880 # Create the Makefile
5881 # and configure language subdirectories
5883 cat > confcache
<<\EOF
5884 # This file is a shell script that caches the results of configure
5885 # tests run on this system so they can be shared between configure
5886 # scripts and configure runs. It is not useful on other systems.
5887 # If it contains results you don't want to keep, you may remove or edit it.
5889 # By default, configure uses ./config.cache as the cache file,
5890 # creating it if it does not exist already. You can give configure
5891 # the --cache-file=FILE option to use a different cache file; that is
5892 # what configure does when it calls configure scripts in
5893 # subdirectories, so they share the cache.
5894 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5895 # config.status only pays attention to the cache file if you give it the
5896 # --recheck option to rerun configure.
5899 # The following way of writing the cache mishandles newlines in values,
5900 # but we know of no workaround that is simple, portable, and efficient.
5901 # So, don't put newlines in cache variables' values.
5902 # Ultrix sh set writes to stderr and can't be redirected directly,
5903 # and sets the high bit in the cache file unless we assign to the vars.
5905 case `(ac_space=' '; set) 2>&1` in
5907 # `set' does not quote correctly, so add quotes (double-quote substitution
5908 # turns \\\\ into \\, and sed turns \\ into \).
5910 -e "s/'/'\\\\''/g" \
5911 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5914 # `set' quotes correctly as required by POSIX, so do not add quotes.
5915 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5918 if cmp -s $cache_file confcache
; then
5921 if test -w $cache_file; then
5922 echo "updating cache $cache_file"
5923 cat confcache
> $cache_file
5925 echo "not updating unwritable cache $cache_file"
5930 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5932 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5933 # Let make expand exec_prefix.
5934 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5936 # Any assignment to VPATH causes Sun make to only execute
5937 # the first set of double-colon rules, so remove it if not needed.
5938 # If there is a colon in the path, we need to keep it.
5939 if test "x$srcdir" = x.
; then
5940 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5943 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5945 DEFS
=-DHAVE_CONFIG_H
5947 # Without the "./", some shells look in PATH for config.status.
5948 : ${CONFIG_STATUS=./config.status}
5950 echo creating
$CONFIG_STATUS
5951 rm -f $CONFIG_STATUS
5952 cat > $CONFIG_STATUS <<EOF
5954 # Generated automatically by configure.
5955 # Run this file to recreate the current configuration.
5956 # This directory was configured as follows,
5957 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5959 # $0 $ac_configure_args
5961 # Compiler output produced by configure, useful for debugging
5962 # configure, is in ./config.log if it exists.
5964 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5967 case "\$ac_option" in
5968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5969 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5970 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5971 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5972 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5974 -help | --help | --hel | --he | --h)
5975 echo "\$ac_cs_usage"; exit 0 ;;
5976 *) echo "\$ac_cs_usage"; exit 1 ;;
5980 ac_given_srcdir=$srcdir
5982 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5984 cat >> $CONFIG_STATUS <<EOF
5986 # Protect against being on the right side of a sed subst in config.status.
5987 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5988 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5991 s%@CFLAGS@%$CFLAGS%g
5992 s%@CPPFLAGS@%$CPPFLAGS%g
5993 s%@CXXFLAGS@%$CXXFLAGS%g
5995 s%@LDFLAGS@%$LDFLAGS%g
5997 s%@exec_prefix@%$exec_prefix%g
5998 s%@prefix@%$prefix%g
5999 s%@program_transform_name@%$program_transform_name%g
6000 s%@bindir@%$bindir%g
6001 s%@sbindir@%$sbindir%g
6002 s%@libexecdir@%$libexecdir%g
6003 s%@datadir@%$datadir%g
6004 s%@sysconfdir@%$sysconfdir%g
6005 s%@sharedstatedir@%$sharedstatedir%g
6006 s%@localstatedir@%$localstatedir%g
6007 s%@libdir@%$libdir%g
6008 s%@includedir@%$includedir%g
6009 s%@oldincludedir@%$oldincludedir%g
6010 s%@infodir@%$infodir%g
6011 s%@mandir@%$mandir%g
6013 s%@host_alias@%$host_alias%g
6014 s%@host_cpu@%$host_cpu%g
6015 s%@host_vendor@%$host_vendor%g
6016 s%@host_os@%$host_os%g
6017 s%@target@%$target%g
6018 s%@target_alias@%$target_alias%g
6019 s%@target_cpu@%$target_cpu%g
6020 s%@target_vendor@%$target_vendor%g
6021 s%@target_os@%$target_os%g
6023 s%@build_alias@%$build_alias%g
6024 s%@build_cpu@%$build_cpu%g
6025 s%@build_vendor@%$build_vendor%g
6026 s%@build_os@%$build_os%g
6028 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
6029 s%@SET_MAKE@%$SET_MAKE%g
6032 s%@LEXLIB@%$LEXLIB%g
6035 s%@RANLIB@%$RANLIB%g
6037 s%@INSTALL@%$INSTALL%g
6038 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6039 s%@INSTALL_DATA@%$INSTALL_DATA%g
6042 s%@vfprintf@%$vfprintf%g
6043 s%@doprint@%$doprint%g
6044 s%@manext@%$manext%g
6045 s%@objext@%$objext%g
6046 s%@gthread_flags@%$gthread_flags%g
6047 s%@build_canonical@%$build_canonical%g
6048 s%@host_canonical@%$host_canonical%g
6049 s%@target_subdir@%$target_subdir%g
6050 s%@inhibit_libc@%$inhibit_libc%g
6051 s%@sched_prefix@%$sched_prefix%g
6052 s%@sched_cflags@%$sched_cflags%g
6053 s%@objdir@%$objdir%g
6054 s%@subdirs@%$subdirs%g
6055 s%@all_languages@%$all_languages%g
6056 s%@all_boot_languages@%$all_boot_languages%g
6057 s%@all_compilers@%$all_compilers%g
6058 s%@all_lang_makefiles@%$all_lang_makefiles%g
6059 s%@all_stagestuff@%$all_stagestuff%g
6060 s%@all_diff_excludes@%$all_diff_excludes%g
6061 s%@all_lib2funcs@%$all_lib2funcs%g
6062 s%@all_headers@%$all_headers%g
6063 s%@cpp_main@%$cpp_main%g
6064 s%@extra_passes@%$extra_passes%g
6065 s%@extra_programs@%$extra_programs%g
6066 s%@extra_parts@%$extra_parts%g
6067 s%@extra_c_objs@%$extra_c_objs%g
6068 s%@extra_cxx_objs@%$extra_cxx_objs%g
6069 s%@extra_cpp_objs@%$extra_cpp_objs%g
6070 s%@extra_c_flags@%$extra_c_flags%g
6071 s%@extra_objs@%$extra_objs%g
6072 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
6073 s%@extra_headers_list@%$extra_headers_list%g
6074 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
6075 s%@dep_tmake_file@%$dep_tmake_file%g
6076 s%@out_file@%$out_file%g
6077 s%@out_object_file@%$out_object_file%g
6078 s%@md_file@%$md_file%g
6079 s%@tm_file_list@%$tm_file_list%g
6080 s%@build_xm_file_list@%$build_xm_file_list%g
6081 s%@host_xm_file_list@%$host_xm_file_list%g
6082 s%@lang_specs_files@%$lang_specs_files%g
6083 s%@lang_options_files@%$lang_options_files%g
6084 s%@lang_tree_files@%$lang_tree_files%g
6085 s%@thread_file@%$thread_file%g
6086 s%@objc_boehm_gc@%$objc_boehm_gc%g
6087 s%@gcc_version@%$gcc_version%g
6088 s%@gcc_version_trigger@%$gcc_version_trigger%g
6089 s%@local_prefix@%$local_prefix%g
6090 s%@gxx_include_dir@%$gxx_include_dir%g
6091 s%@fixincludes@%$fixincludes%g
6092 s%@build_install_headers_dir@%$build_install_headers_dir%g
6093 s%@build_exeext@%$build_exeext%g
6094 s%@host_exeext@%$host_exeext%g
6095 s%@float_format@%$float_format%g
6096 s%@will_use_collect2@%$will_use_collect2%g
6097 s%@maybe_use_collect2@%$maybe_use_collect2%g
6098 s%@cc_set_by_configure@%$cc_set_by_configure%g
6099 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
6100 s%@install@%$install%g
6101 s%@symbolic_link@%$symbolic_link%g
6102 /@target_overrides@/r $target_overrides
6103 s%@target_overrides@%%g
6104 /@host_overrides@/r $host_overrides
6105 s%@host_overrides@%%g
6106 s%@cross_defines@%$cross_defines%g
6107 /@cross_overrides@/r $cross_overrides
6108 s%@cross_overrides@%%g
6109 /@build_overrides@/r $build_overrides
6110 s%@build_overrides@%%g
6111 /@language_fragments@/r $language_fragments
6112 s%@language_fragments@%%g
6113 /@language_hooks@/r $language_hooks
6114 s%@language_hooks@%%g
6119 cat >> $CONFIG_STATUS <<\EOF
6121 # Split the substitutions into bite-sized pieces for seds with
6122 # small command number limits, like on Digital OSF/1 and HP-UX.
6123 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6124 ac_file
=1 # Number of current file.
6125 ac_beg
=1 # First line for current file.
6126 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6129 while $ac_more_lines; do
6130 if test $ac_beg -gt 1; then
6131 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6133 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6135 if test ! -s conftest.s
$ac_file; then
6137 rm -f conftest.s
$ac_file
6139 if test -z "$ac_sed_cmds"; then
6140 ac_sed_cmds
="sed -f conftest.s$ac_file"
6142 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6144 ac_file
=`expr $ac_file + 1`
6146 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6149 if test -z "$ac_sed_cmds"; then
6154 cat >> $CONFIG_STATUS <<EOF
6156 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
6158 cat >> $CONFIG_STATUS <<\EOF
6159 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6162 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6163 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6164 *) ac_file_in
="${ac_file}.in" ;;
6167 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6169 # Remove last slash and all that follows it. Not all systems have dirname.
6170 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6171 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6172 # The file is in a subdirectory.
6173 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6174 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6175 # A "../" for each directory in $ac_dir_suffix.
6176 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6178 ac_dir_suffix
= ac_dots
=
6181 case "$ac_given_srcdir" in
6183 if test -z "$ac_dots"; then top_srcdir
=.
6184 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6185 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6187 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6188 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6192 echo creating
"$ac_file"
6194 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6196 *Makefile
*) ac_comsub
="1i\\
6197 # $configure_input" ;;
6201 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6203 s%@configure_input@%$configure_input%g
6204 s%@srcdir@%$srcdir%g
6205 s%@top_srcdir@%$top_srcdir%g
6206 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6210 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6211 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6213 # ac_d sets the value in "#define NAME VALUE" lines.
6214 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6215 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6218 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6219 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6220 ac_uB
='\([ ]\)%\1#\2define\3'
6223 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6224 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6225 ac_eB
='$%\1#\2define\3'
6229 if test "${CONFIG_HEADERS+set}" != set; then
6231 cat >> $CONFIG_STATUS <<EOF
6232 CONFIG_HEADERS="auto-host.h:config.in"
6234 cat >> $CONFIG_STATUS <<\EOF
6236 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6239 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6240 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6241 *) ac_file_in
="${ac_file}.in" ;;
6244 echo creating
$ac_file
6246 rm -f conftest.frag conftest.
in conftest.out
6247 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6248 cat $ac_file_inputs > conftest.
in
6252 # Transform confdefs.h into a sed script conftest.vals that substitutes
6253 # the proper values into config.h.in to produce config.h. And first:
6254 # Protect against being on the right side of a sed subst in config.status.
6255 # Protect against being in an unquoted here document in config.status.
6257 cat > conftest.hdr
<<\EOF
6260 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6264 sed -n -f conftest.hdr confdefs.h > conftest.vals
6267 # This sed command replaces #undef with comments. This is necessary, for
6268 # example, in the case of _POSIX_SOURCE, which is predefined and required
6269 # on some systems where configure will not decide to define it.
6270 cat >> conftest.vals <<\EOF
6271 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6274 # Break up conftest.vals because some shells have a limit on
6275 # the size of here documents, and old seds have small limits too.
6280 ac_lines=`grep -c . conftest.vals
`
6281 # grep -c gives empty output for an empty file on some AIX systems.
6282 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6283 # Write a limited-size here document to conftest.frag.
6284 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6285 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6287 sed -f conftest.frag conftest.in > conftest.out
6289 mv conftest.out conftest.in
6291 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6293 mv conftest.tail conftest.vals
6297 cat >> $CONFIG_STATUS <<\EOF
6298 rm -f conftest.frag conftest.h
6299 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6300 cat conftest.in >> conftest.h
6302 if cmp -s $ac_file conftest.h 2>/dev/null; then
6303 echo "$ac_file is unchanged"
6306 # Remove last slash and all that follows it. Not all systems have dirname.
6307 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6308 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6309 # The file is in a subdirectory.
6310 test ! -d "$ac_dir" && mkdir "$ac_dir"
6313 mv conftest.h $ac_file
6318 cat >> $CONFIG_STATUS <<EOF
6323 target_alias='${target_alias}'
6325 subdirs='${subdirs}'
6326 oldstyle_subdirs='${oldstyle_subdirs}'
6327 symbolic_link='${symbolic_link}'
6328 program_transform_set='${program_transform_set}'
6329 program_transform_name='${program_transform_name}'
6330 dep_host_xmake_file='${dep_host_xmake_file}'
6331 host_xmake_file='${host_xmake_file}'
6332 dep_tmake_file='${dep_tmake_file}'
6333 tmake_file='${tmake_file}'
6334 thread_file='${thread_file}'
6335 gcc_version='${gcc_version}'
6336 gcc_version_trigger='${gcc_version_trigger}'
6337 local_prefix='${local_prefix}'
6338 build_install_headers_dir='${build_install_headers_dir}'
6339 build_exeext='${build_exeext}'
6340 host_exeext='${host_exeext}'
6341 out_file='${out_file}'
6342 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
6343 SET_MAKE='${SET_MAKE}'
6344 target_list='${target_list}'
6345 target_overrides='${target_overrides}'
6346 host_overrides='${host_overrides}'
6347 cross_defines='${cross_defines}'
6348 cross_overrides='${cross_overrides}'
6349 build_overrides='${build_overrides}'
6352 cat >> $CONFIG_STATUS <<\EOF
6354 . $srcdir/configure.lang
6355 case x$CONFIG_HEADERS in
6356 xauto-host.h:config.in)
6359 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
6360 # bootstrapping and the installation procedure can still use
6361 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
6362 # FLAGS_TO_PASS has been modified to solve the problem there.
6363 # This is virtually a duplicate of what happens in configure.lang; we do
6364 # an extra check to make sure this only happens if ln -s can be used.
6365 if test "$symbolic_link" = "ln -s"; then
6366 for d in .. ${subdirs} ; do
6367 if test $d != ..; then
6370 for t in stage1 stage2 stage3 stage4 include
6373 $symbolic_link ../$t $t 2>/dev/null
6382 chmod +x $CONFIG_STATUS
6383 rm -fr confdefs* $ac_clean_files
6384 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1