3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking enable expensive run-time checks."
34 --enable-cpplib use cpplib for the C preprocessor."
36 --enable-c-cpplib link cpplib directly into C and C++ compilers
37 (implies --enable-cpplib)."
39 --enable-c-mbchar enable multibyte characters for C and C++."
41 --enable-haifa use the experimental scheduler.
42 --disable-haifa don't use the experimental scheduler for the
43 targets which normally enable it."
45 --with-fast-fixincludes use a faster fixinclude program (experimental)"
47 --enable-init-priority use attributes to assign initialization order
49 --disable-init-priority conform to ISO C++ rules for ordering static objects
50 (i.e. initialized in order of declaration). "
52 --enable-threads enable thread usage for target GCC.
53 --enable-threads=LIB use LIB thread package for target GCC."
55 --enable-objc-gc enable the use of Boehm's garbage collector with
56 the GNU Objective-C runtime."
58 --enable-java-gc=TYPE choose garbage collector [boehm]"
60 --enable-dwarf2 enable DWARF2 debugging as default."
62 --enable-nls use Native Language Support (disabled by default)"
64 --disable-nls do not use Native Language Support"
66 --with-included-gettext use the GNU gettext library included here"
68 --with-catgets use catgets functions if available"
70 # Initialize some variables set by options.
71 # The variables have the same names as the options, with
72 # dashes changed to underlines.
74 cache_file=./config.cache
83 program_transform_name=s,x,x,
91 bindir='${exec_prefix}/bin'
92 sbindir='${exec_prefix}/sbin'
93 libexecdir='${exec_prefix}/libexec'
94 datadir='${prefix}/share'
95 sysconfdir='${prefix}/etc'
96 sharedstatedir='${prefix}/com'
97 localstatedir='${prefix}/var'
98 libdir='${exec_prefix}/lib'
99 includedir='${prefix}/include'
100 oldincludedir='/usr/include'
101 infodir='${prefix}/info'
102 mandir='${prefix}/man'
104 # Initialize some other variables.
107 SHELL=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
123 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 # Accept the important Cygnus configure options, so we can diagnose typos.
131 -bindir | --bindir | --bindi | --bind | --bin | --bi)
133 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
134 bindir="$ac_optarg" ;;
136 -build | --build | --buil | --bui | --bu)
138 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
139 build="$ac_optarg" ;;
141 -cache-file | --cache-file | --cache-fil | --cache-fi \
142 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
143 ac_prev=cache_file ;;
144 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
145 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
146 cache_file="$ac_optarg" ;;
148 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
150 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
152 datadir="$ac_optarg" ;;
154 -disable-* | --disable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* | --enable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
178 | --exec | --exe | --ex)
179 ac_prev=exec_prefix ;;
180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
182 | --exec=* | --exe=* | --ex=*)
183 exec_prefix="$ac_optarg" ;;
185 -gas | --gas | --ga | --g)
186 # Obsolete; use --with-gas.
189 -help | --help | --hel | --he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --version print the version of autoconf that created configure
201 Directory and file names:
202 --prefix=PREFIX install architecture-independent files in PREFIX
204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
206 --bindir=DIR user executables in DIR [EPREFIX/bin]
207 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
208 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
209 --datadir=DIR read-only architecture-independent data in DIR
211 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
212 --sharedstatedir=DIR modifiable architecture-independent data in DIR
214 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
215 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
216 --includedir=DIR C header files in DIR [PREFIX/include]
217 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
218 --infodir=DIR info documentation in DIR [PREFIX/info]
219 --mandir=DIR man documentation in DIR [PREFIX/man]
220 --srcdir=DIR find the sources in DIR [configure dir or ..]
221 --program-prefix=PREFIX prepend PREFIX to installed program names
222 --program-suffix=SUFFIX append SUFFIX to installed program names
223 --program-transform-name=PROGRAM
224 run sed PROGRAM on installed program names
228 --build=BUILD configure for building on BUILD [BUILD=HOST]
229 --host=HOST configure for HOST [guessed]
230 --target=TARGET configure for TARGET [TARGET=HOST]
231 Features and packages:
232 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
233 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
236 --x-includes=DIR X include files are in DIR
237 --x-libraries=DIR X library files are in DIR
239 if test -n "$ac_help"; then
240 echo "--enable and --with options recognized:$ac_help"
244 -host | --host | --hos | --ho)
246 -host=* | --host=* | --hos=* | --ho=*)
249 -includedir | --includedir | --includedi | --included | --include \
250 | --includ | --inclu | --incl | --inc)
251 ac_prev=includedir ;;
252 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
253 | --includ=* | --inclu=* | --incl=* | --inc=*)
254 includedir="$ac_optarg" ;;
256 -infodir | --infodir | --infodi | --infod | --info | --inf)
258 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
259 infodir="$ac_optarg" ;;
261 -libdir | --libdir | --libdi | --libd)
263 -libdir=* | --libdir=* | --libdi=* | --libd=*)
264 libdir="$ac_optarg" ;;
266 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
267 | --libexe | --libex | --libe)
268 ac_prev=libexecdir ;;
269 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
270 | --libexe=* | --libex=* | --libe=*)
271 libexecdir="$ac_optarg" ;;
273 -localstatedir | --localstatedir | --localstatedi | --localstated \
274 | --localstate | --localstat | --localsta | --localst \
275 | --locals | --local | --loca | --loc | --lo)
276 ac_prev=localstatedir ;;
277 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
278 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
279 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
280 localstatedir="$ac_optarg" ;;
282 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
284 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
285 mandir="$ac_optarg" ;;
288 # Obsolete; use --without-fp.
291 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
296 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
300 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
301 | --oldin | --oldi | --old | --ol | --o)
302 ac_prev=oldincludedir ;;
303 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
304 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
305 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
306 oldincludedir="$ac_optarg" ;;
308 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
310 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
311 prefix="$ac_optarg" ;;
313 -program-prefix | --program-prefix | --program-prefi | --program-pref \
314 | --program-pre | --program-pr | --program-p)
315 ac_prev=program_prefix ;;
316 -program-prefix=* | --program-prefix=* | --program-prefi=* \
317 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
318 program_prefix="$ac_optarg" ;;
320 -program-suffix | --program-suffix | --program-suffi | --program-suff \
321 | --program-suf | --program-su | --program-s)
322 ac_prev=program_suffix ;;
323 -program-suffix=* | --program-suffix=* | --program-suffi=* \
324 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
325 program_suffix="$ac_optarg" ;;
327 -program-transform-name | --program-transform-name \
328 | --program-transform-nam | --program-transform-na \
329 | --program-transform-n | --program-transform- \
330 | --program-transform | --program-transfor \
331 | --program-transfo | --program-transf \
332 | --program-trans | --program-tran \
333 | --progr-tra | --program-tr | --program-t)
334 ac_prev=program_transform_name ;;
335 -program-transform-name=* | --program-transform-name=* \
336 | --program-transform-nam=* | --program-transform-na=* \
337 | --program-transform-n=* | --program-transform-=* \
338 | --program-transform=* | --program-transfor=* \
339 | --program-transfo=* | --program-transf=* \
340 | --program-trans=* | --program-tran=* \
341 | --progr-tra=* | --program-tr=* | --program-t=*)
342 program_transform_name="$ac_optarg" ;;
344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
345 | -silent | --silent | --silen | --sile | --sil)
348 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
350 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
352 sbindir="$ac_optarg" ;;
354 -sharedstatedir | --sharedstatedir | --sharedstatedi \
355 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
356 | --sharedst | --shareds | --shared | --share | --shar \
358 ac_prev=sharedstatedir ;;
359 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
360 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
361 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
363 sharedstatedir="$ac_optarg" ;;
365 -site | --site | --sit)
367 -site=* | --site=* | --sit=*)
370 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
372 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
373 srcdir="$ac_optarg" ;;
375 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
376 | --syscon | --sysco | --sysc | --sys | --sy)
377 ac_prev=sysconfdir ;;
378 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
379 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
380 sysconfdir="$ac_optarg" ;;
382 -target | --target | --targe | --targ | --tar | --ta | --t)
384 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
385 target="$ac_optarg" ;;
387 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 -version | --version | --versio | --versi | --vers)
391 echo "configure generated by autoconf version 2.12.1"
395 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}='$ac_optarg'" ;;
407 -without-* | --without-*)
408 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}=no" ;;
417 # Obsolete; use --with-x.
420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
421 | --x-incl | --x-inc | --x-in | --x-i)
422 ac_prev=x_includes ;;
423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
425 x_includes="$ac_optarg" ;;
427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
429 ac_prev=x_libraries ;;
430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
432 x_libraries="$ac_optarg" ;;
434 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
438 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
439 echo "configure: warning: $ac_option: invalid host type" 1>&2
441 if test "x$nonopt" != xNONE; then
442 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 if test -n "$ac_prev"; then
451 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456 # File descriptor usage:
459 # 2 errors and warnings
460 # 3 some systems may open it to /dev/tty
461 # 4 used on the Kubota Titan
462 # 6 checking for... messages and results
463 # 5 compiler messages saved in config.log
464 if test "$silent" = yes; then
472 This file contains any messages produced by compilers while
473 running configure, to aid debugging if configure makes a mistake.
476 # Strip out --no-create and --no-recursion so they do not pile up.
477 # Also quote any args containing shell metacharacters.
482 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
483 | --no-cr | --no-c) ;;
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
486 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
487 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
488 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
493 # Only set these to C if already set. These must not be set unconditionally
494 # because not all systems understand e.g. LANG=C (notably SCO).
495 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
496 # Non-C LC_CTYPE values break the ctype check.
497 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
498 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
499 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
500 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
503 rm -rf conftest* confdefs.h
504 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 # A filename unique to this package, relative to the directory that
508 # configure is in, which we can look for to find out if srcdir is correct.
509 ac_unique_file=tree.c
511 # Find the source files, if location was not specified.
512 if test -z "$srcdir"; then
513 ac_srcdir_defaulted=yes
514 # Try the directory containing this script, then its parent.
516 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
517 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
519 if test ! -r $srcdir/$ac_unique_file; then
523 ac_srcdir_defaulted=no
525 if test ! -r $srcdir/$ac_unique_file; then
526 if test "$ac_srcdir_defaulted" = yes; then
527 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
529 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534 # Prefer explicitly selected file to automatically selected ones.
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE; then
537 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
539 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542 for ac_site_file in $CONFIG_SITE; do
543 if test -r "$ac_site_file"; then
544 echo "loading site script $ac_site_file"
549 if test -r "$cache_file"; then
550 echo "loading cache $cache_file"
553 echo "creating cache $cache_file"
558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
559 ac_cpp='$CPP $CPPFLAGS'
560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
561 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
562 cross_compiling=$ac_cv_prog_cc_cross
564 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
565 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
566 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
573 ac_n= ac_c='\c' ac_t=
581 symbolic_link='ln -s'
584 # Check for bogus environment variables.
585 # Test if LIBRARY_PATH contains the notation for the current directory
586 # since this would lead to problems installing/building glibc.
587 # LIBRARY_PATH contains the current directory if one of the following
589 # - one of the terminals (":" and ";") is the first or last sign
590 # - two terminals occur directly after each other
591 # - the path contains an element with a dot in it
592 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
593 echo "configure:594: checking LIBRARY_PATH variable" >&5
594 case ${LIBRARY_PATH} in
595 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
596 library_path_setting="contains current directory"
599 library_path_setting="ok"
602 echo "$ac_t""$library_path_setting" 1>&6
603 if test "$library_path_setting" != "ok"; then
604 { echo "configure: error:
605 *** LIBRARY_PATH shouldn't contain the current directory when
606 *** building egcs. Please change the environment variable
607 *** and run configure again." 1>&2; exit 1; }
610 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
611 # since this would lead to problems installing/building glibc.
612 # GCC_EXEC_PREFIX contains the current directory if one of the following
614 # - one of the terminals (":" and ";") is the first or last sign
615 # - two terminals occur directly after each other
616 # - the path contains an element with a dot in it
617 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
618 echo "configure:619: checking GCC_EXEC_PREFIX variable" >&5
619 case ${GCC_EXEC_PREFIX} in
620 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
621 gcc_exec_prefix_setting="contains current directory"
624 gcc_exec_prefix_setting="ok"
627 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
628 if test "$gcc_exec_prefix_setting" != "ok"; then
629 { echo "configure: error:
630 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
631 *** building egcs. Please change the environment variable
632 *** and run configure again." 1>&2; exit 1; }
635 # Check for additional parameters
638 # Check whether --with-gnu-ld or --without-gnu-ld was given.
639 if test "${with_gnu_ld+set}" = set; then
640 withval="$with_gnu_ld"
641 gnu_ld_flag="$with_gnu_ld"
647 # With pre-defined ld
648 # Check whether --with-ld or --without-ld was given.
649 if test "${with_ld+set}" = set; then
651 DEFAULT_LINKER="$with_ld"
654 if test x"${DEFAULT_LINKER+set}" = x"set"; then
655 if test ! -x "$DEFAULT_LINKER"; then
656 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
657 elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
660 cat >> confdefs.h <<EOF
661 #define DEFAULT_LINKER "$DEFAULT_LINKER"
667 # Check whether --with-gnu-as or --without-gnu-as was given.
668 if test "${with_gnu_as+set}" = set; then
669 withval="$with_gnu_as"
670 gas_flag="$with_gnu_as"
676 # Check whether --with-as or --without-as was given.
677 if test "${with_as+set}" = set; then
679 DEFAULT_ASSEMBLER="$with_as"
682 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
683 if test ! -x "$DEFAULT_ASSEMBLER"; then
684 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
685 elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
688 cat >> confdefs.h <<EOF
689 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
695 # Check whether --with-stabs or --without-stabs was given.
696 if test "${with_stabs+set}" = set; then
697 withval="$with_stabs"
705 # Check whether --with-elf or --without-elf was given.
706 if test "${with_elf+set}" = set; then
714 # Specify the local prefix
716 # Check whether --with-local-prefix or --without-local-prefix was given.
717 if test "${with_local_prefix+set}" = set; then
718 withval="$with_local_prefix"
720 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
722 *) local_prefix=$with_local_prefix ;;
727 # Default local prefix if it is empty
728 if test x$local_prefix = x; then
729 local_prefix=/usr/local
733 # Specify the g++ header file directory
734 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
735 if test "${with_gxx_include_dir+set}" = set; then
736 withval="$with_gxx_include_dir"
738 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
740 *) gxx_include_dir=$with_gxx_include_dir ;;
745 if test x${gxx_include_dir} = x; then
746 if test x${enable_version_specific_runtime_libs} = xyes; then
747 gxx_include_dir='${libsubdir}/include/g++'
749 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
750 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
754 # Enable expensive internal checks
755 # Check whether --enable-checking or --disable-checking was given.
756 if test "${enable_checking+set}" = set; then
757 enableval="$enable_checking"
758 case "${enableval}" in
759 yes) cat >> confdefs.h <<\EOF
760 #define ENABLE_CHECKING 1
764 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
769 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
771 # Check whether --enable-cpplib or --disable-cpplib was given.
772 if test "${enable_cpplib+set}" = set; then
773 enableval="$enable_cpplib"
774 if test x$enable_cpplib != xno; then
780 # Link cpplib into the compiler proper, for C/C++/ObjC.
781 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
782 if test "${enable_c_cpplib+set}" = set; then
783 enableval="$enable_c_cpplib"
784 if test x$enable_c_cpplib != xno; then
785 extra_c_objs="${extra_c_objs} libcpp.a"
786 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
787 extra_c_flags=-DUSE_CPPLIB=1
793 # Enable Multibyte Characters for C/C++
794 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
795 if test "${enable_c_mbchar+set}" = set; then
796 enableval="$enable_c_mbchar"
797 if test x$enable_c_mbchar != xno; then
798 extra_c_flags=-DMULTIBYTE_CHARS=1
803 # Enable Haifa scheduler.
804 # Check whether --enable-haifa or --disable-haifa was given.
805 if test "${enable_haifa+set}" = set; then
806 enableval="$enable_haifa"
812 # This is a work in progress...
813 # Check whether --with-fast-fixincludes or --without-fast-fixincludes was given.
814 if test "${with_fast_fixincludes+set}" = set; then
815 withval="$with_fast_fixincludes"
816 fast_fixinc="$with_fast_fixincludes"
822 # Enable init_priority.
823 # Check whether --enable-init-priority or --disable-init-priority was given.
824 if test "${enable_init_priority+set}" = set; then
825 enableval="$enable_init_priority"
826 if test x$enable_init_priority != xno; then
827 extra_c_flags=-DUSE_INIT_PRIORITY
833 # Pass with no value to take the default
834 # Pass with a value to specify a thread package
835 # Check whether --enable-threads or --disable-threads was given.
836 if test "${enable_threads+set}" = set; then
837 enableval="$enable_threads"
838 if test x$enable_threads = xno; then
846 enable_threads_flag=$enable_threads
847 # Check if a valid thread package
848 case x${enable_threads_flag} in
851 target_thread_file='single'
855 target_thread_file=''
857 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
858 xsolaris | xwin32 | xdce | xvxworks)
859 target_thread_file=$enable_threads_flag
862 echo "$enable_threads is an unknown thread package" 1>&2
867 # Check whether --enable-objc-gc or --disable-objc-gc was given.
868 if test "${enable_objc_gc+set}" = set; then
869 enableval="$enable_objc_gc"
870 if [ x$enable_objc_gc = xno ]; then
880 # Check whether --enable-java-gc or --disable-java-gc was given.
881 if test "${enable_java_gc+set}" = set; then
882 enableval="$enable_java_gc"
890 # Check whether --with-dwarf2 or --without-dwarf2 was given.
891 if test "${with_dwarf2+set}" = set; then
892 withval="$with_dwarf2"
893 dwarf2="$with_dwarf2"
899 # Determine the host, build, and target systems
901 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
902 if test -f $ac_dir/install-sh; then
904 ac_install_sh="$ac_aux_dir/install-sh -c"
906 elif test -f $ac_dir/install.sh; then
908 ac_install_sh="$ac_aux_dir/install.sh -c"
912 if test -z "$ac_aux_dir"; then
913 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
915 ac_config_guess=$ac_aux_dir/config.guess
916 ac_config_sub=$ac_aux_dir/config.sub
917 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
920 # Do some error checking and defaulting for the host and target type.
922 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
925 # 1. You are not allowed to specify --host, --target, and nonopt at the
927 # 2. Host defaults to nonopt.
928 # 3. If nonopt is not specified, then host defaults to the current host,
929 # as determined by config.guess.
930 # 4. Target and build default to nonopt.
931 # 5. If nonopt is not specified, then target and build default to host.
933 # The aliases save the names the user supplied, while $host etc.
934 # will get canonicalized.
935 case $host---$target---$nonopt in
936 NONE---*---* | *---NONE---* | *---*---NONE) ;;
937 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
941 # Make sure we can run config.sub.
942 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
943 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
946 echo $ac_n "checking host system type""... $ac_c" 1>&6
947 echo "configure:948: checking host system type" >&5
950 case "$host_alias" in
954 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
955 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
957 *) host_alias=$nonopt ;;
961 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
962 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
963 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
964 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
965 echo "$ac_t""$host" 1>&6
967 echo $ac_n "checking target system type""... $ac_c" 1>&6
968 echo "configure:969: checking target system type" >&5
971 case "$target_alias" in
974 NONE) target_alias=$host_alias ;;
975 *) target_alias=$nonopt ;;
979 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
980 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983 echo "$ac_t""$target" 1>&6
985 echo $ac_n "checking build system type""... $ac_c" 1>&6
986 echo "configure:987: checking build system type" >&5
989 case "$build_alias" in
992 NONE) build_alias=$host_alias ;;
993 *) build_alias=$nonopt ;;
997 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
998 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001 echo "$ac_t""$build" 1>&6
1003 test "$host_alias" != "$target_alias" &&
1004 test "$program_prefix$program_suffix$program_transform_name" = \
1006 program_prefix=${target_alias}-
1009 # Find the native compiler
1010 # Extract the first word of "gcc", so it can be a program name with args.
1011 set dummy gcc; ac_word=$2
1012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1013 echo "configure:1014: checking for $ac_word" >&5
1014 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 if test -n "$CC"; then
1018 ac_cv_prog_CC="$CC" # Let the user override the test.
1020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1021 for ac_dir in $PATH; do
1022 test -z "$ac_dir" && ac_dir=.
1023 if test -f $ac_dir/$ac_word; then
1032 if test -n "$CC"; then
1033 echo "$ac_t""$CC" 1>&6
1035 echo "$ac_t""no" 1>&6
1038 if test -z "$CC"; then
1039 # Extract the first word of "cc", so it can be a program name with args.
1040 set dummy cc; ac_word=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 if test -n "$CC"; then
1047 ac_cv_prog_CC="$CC" # Let the user override the test.
1049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1051 for ac_dir in $PATH; do
1052 test -z "$ac_dir" && ac_dir=.
1053 if test -f $ac_dir/$ac_word; then
1054 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1055 ac_prog_rejected=yes
1063 if test $ac_prog_rejected = yes; then
1064 # We found a bogon in the path, so make sure we never use it.
1065 set dummy $ac_cv_prog_CC
1067 if test $# -gt 0; then
1068 # We chose a different compiler from the bogus one.
1069 # However, it has the same basename, so the bogon will be chosen
1070 # first if we set CC to just the basename; use the full file name.
1072 set dummy "$ac_dir/$ac_word" "$@"
1080 if test -n "$CC"; then
1081 echo "$ac_t""$CC" 1>&6
1083 echo "$ac_t""no" 1>&6
1086 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1089 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1094 ac_cpp='$CPP $CPPFLAGS'
1095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1096 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1097 cross_compiling=$ac_cv_prog_cc_cross
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1104 if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1105 ac_cv_prog_cc_works=yes
1106 # If we can't run a trivial program, we are probably using a cross compiler.
1107 if (./conftest; exit) 2>/dev/null; then
1108 ac_cv_prog_cc_cross=no
1110 ac_cv_prog_cc_cross=yes
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1115 ac_cv_prog_cc_works=no
1119 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1120 if test $ac_cv_prog_cc_works = no; then
1121 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1123 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1124 echo "configure:1125: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1125 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1126 cross_compiling=$ac_cv_prog_cc_cross
1128 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1129 echo "configure:1130: checking whether we are using GNU C" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 cat > conftest.c <<EOF
1138 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1145 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1147 if test $ac_cv_prog_gcc = yes; then
1149 ac_test_CFLAGS="${CFLAGS+set}"
1150 ac_save_CFLAGS="$CFLAGS"
1152 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether ${CC-cc} accepts -g" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 echo 'void f(){}' > conftest.c
1158 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1167 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1168 if test "$ac_test_CFLAGS" = set; then
1169 CFLAGS="$ac_save_CFLAGS"
1170 elif test $ac_cv_prog_cc_g = yes; then
1177 test "${CFLAGS+set}" = set || CFLAGS="-g"
1181 # If the native compiler is GCC, we can enable warnings even in stage1.
1182 # That's useful for people building cross-compilers, or just running a
1184 if test "x$GCC" = "xyes"; then
1185 stage1_warn_cflags='$(WARN_CFLAGS)'
1187 stage1_warn_cflags=""
1191 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ${MAKE-make} sets \${MAKE}" >&5
1193 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1194 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 cat > conftestmake <<\EOF
1199 @echo 'ac_maketemp="${MAKE}"'
1201 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1202 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1203 if test -n "$ac_maketemp"; then
1204 eval ac_cv_prog_make_${ac_make}_set=yes
1206 eval ac_cv_prog_make_${ac_make}_set=no
1210 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1211 echo "$ac_t""yes" 1>&6
1214 echo "$ac_t""no" 1>&6
1215 SET_MAKE="MAKE=${MAKE-make}"
1219 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether a default assembler was specified" >&5
1221 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1222 if test x"$with_gas" = x"no"; then
1223 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1225 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1228 echo "$ac_t""no" 1>&6
1231 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether a default linker was specified" >&5
1233 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1234 if test x"$with_gnu_ld" = x"no"; then
1235 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1237 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1240 echo "$ac_t""no" 1>&6
1243 # Find some useful tools
1244 for ac_prog in mawk gawk nawk awk
1246 # Extract the first word of "$ac_prog", so it can be a program name with args.
1247 set dummy $ac_prog; ac_word=$2
1248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1249 echo "configure:1250: checking for $ac_word" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 if test -n "$AWK"; then
1254 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1257 for ac_dir in $PATH; do
1258 test -z "$ac_dir" && ac_dir=.
1259 if test -f $ac_dir/$ac_word; then
1260 ac_cv_prog_AWK="$ac_prog"
1267 AWK="$ac_cv_prog_AWK"
1268 if test -n "$AWK"; then
1269 echo "$ac_t""$AWK" 1>&6
1271 echo "$ac_t""no" 1>&6
1274 test -n "$AWK" && break
1277 # Extract the first word of "flex", so it can be a program name with args.
1278 set dummy flex; ac_word=$2
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1280 echo "configure:1281: checking for $ac_word" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 if test -n "$LEX"; then
1285 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1288 for ac_dir in $PATH; do
1289 test -z "$ac_dir" && ac_dir=.
1290 if test -f $ac_dir/$ac_word; then
1291 ac_cv_prog_LEX="flex"
1296 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1299 LEX="$ac_cv_prog_LEX"
1300 if test -n "$LEX"; then
1301 echo "$ac_t""$LEX" 1>&6
1303 echo "$ac_t""no" 1>&6
1306 if test -z "$LEXLIB"
1312 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1313 echo "configure:1314: checking for yywrap in -l$ac_lib" >&5
1314 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 ac_save_LIBS="$LIBS"
1319 LIBS="-l$ac_lib $LIBS"
1320 cat > conftest.$ac_ext <<EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1323 /* Override any gcc2 internal prototype to avoid an error. */
1324 /* We use char because int might match the return type of a gcc2
1325 builtin and then its argument prototype would still apply. */
1332 if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1334 eval "ac_cv_lib_$ac_lib_var=yes"
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1339 eval "ac_cv_lib_$ac_lib_var=no"
1342 LIBS="$ac_save_LIBS"
1345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1346 echo "$ac_t""yes" 1>&6
1349 echo "$ac_t""no" 1>&6
1354 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1355 echo "configure:1356: checking whether ln works" >&5
1356 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 rm -f conftestdata_t
1360 echo >conftestdata_f
1361 if ln conftestdata_f conftestdata_t 2>/dev/null
1365 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1367 gcc_cv_prog_LN="ln -s"
1372 rm -f conftestdata_f conftestdata_t
1375 LN="$gcc_cv_prog_LN"
1376 if test "$gcc_cv_prog_LN" = "ln"; then
1377 echo "$ac_t""yes" 1>&6
1379 if test "$gcc_cv_prog_LN" = "ln -s"; then
1380 echo "$ac_t""no, using ln -s" 1>&6
1382 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1386 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether ln -s works" >&5
1388 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 rm -f conftestdata_t
1392 echo >conftestdata_f
1393 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1395 gcc_cv_prog_LN_S="ln -s"
1397 if ln conftestdata_f conftestdata_t 2>/dev/null
1404 rm -f conftestdata_f conftestdata_t
1407 LN_S="$gcc_cv_prog_LN_S"
1408 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1409 echo "$ac_t""yes" 1>&6
1411 if test "$gcc_cv_prog_LN_S" = "ln"; then
1412 echo "$ac_t""no, using ln" 1>&6
1414 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1418 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1419 echo "configure:1420: checking for volatile" >&5
1420 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 cat > conftest.$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1431 if { (eval echo configure:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1433 gcc_cv_c_volatile=yes
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1438 gcc_cv_c_volatile=no
1443 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1444 if test $gcc_cv_c_volatile = yes ; then
1445 cat >> confdefs.h <<\EOF
1446 #define HAVE_VOLATILE 1
1451 # Extract the first word of "ranlib", so it can be a program name with args.
1452 set dummy ranlib; ac_word=$2
1453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1454 echo "configure:1455: checking for $ac_word" >&5
1455 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 if test -n "$RANLIB"; then
1459 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1462 for ac_dir in $PATH; do
1463 test -z "$ac_dir" && ac_dir=.
1464 if test -f $ac_dir/$ac_word; then
1465 ac_cv_prog_RANLIB="ranlib"
1470 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1473 RANLIB="$ac_cv_prog_RANLIB"
1474 if test -n "$RANLIB"; then
1475 echo "$ac_t""$RANLIB" 1>&6
1477 echo "$ac_t""no" 1>&6
1480 for ac_prog in 'bison -y' byacc
1482 # Extract the first word of "$ac_prog", so it can be a program name with args.
1483 set dummy $ac_prog; ac_word=$2
1484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $ac_word" >&5
1486 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 if test -n "$YACC"; then
1490 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1493 for ac_dir in $PATH; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_prog_YACC="$ac_prog"
1503 YACC="$ac_cv_prog_YACC"
1504 if test -n "$YACC"; then
1505 echo "$ac_t""$YACC" 1>&6
1507 echo "$ac_t""no" 1>&6
1510 test -n "$YACC" && break
1512 test -n "$YACC" || YACC="yacc"
1514 # Find a good install program. We prefer a C program (faster),
1515 # so one script is as good as another. But avoid the broken or
1516 # incompatible versions:
1517 # SysV /etc/install, /usr/sbin/install
1518 # SunOS /usr/etc/install
1519 # IRIX /sbin/install
1521 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1522 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1523 # ./install, which can be erroneously created by make from ./install.sh.
1524 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1525 echo "configure:1526: checking for a BSD compatible install" >&5
1526 if test -z "$INSTALL"; then
1527 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1530 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1531 for ac_dir in $PATH; do
1532 # Account for people who put trailing slashes in PATH elements.
1534 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1536 # OSF1 and SCO ODT 3.0 have their own names for install.
1537 for ac_prog in ginstall scoinst install; do
1538 if test -f $ac_dir/$ac_prog; then
1539 if test $ac_prog = install &&
1540 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1541 # AIX install. It has an incompatible calling convention.
1542 # OSF/1 installbsd also uses dspmsg, but is usable.
1545 ac_cv_path_install="$ac_dir/$ac_prog -c"
1556 if test "${ac_cv_path_install+set}" = set; then
1557 INSTALL="$ac_cv_path_install"
1559 # As a last resort, use the slow shell script. We don't cache a
1560 # path for INSTALL within a source directory, because that will
1561 # break other packages using the cache if that directory is
1562 # removed, or if the path is relative.
1563 INSTALL="$ac_install_sh"
1566 echo "$ac_t""$INSTALL" 1>&6
1568 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1569 # It thinks the first close brace ends the variable substitution.
1570 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1572 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1575 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1576 echo "configure:1577: checking how to run the C preprocessor" >&5
1577 # On Suns, sometimes $CPP names a directory.
1578 if test -n "$CPP" && test -d "$CPP"; then
1581 if test -z "$CPP"; then
1582 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 # This must be in double quotes, not single quotes, because CPP may get
1586 # substituted into the Makefile and "${CC-cc}" will confuse make.
1588 # On the NeXT, cc -E runs the code through the compiler's parser,
1589 # not just through cpp.
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1597 { (eval echo configure:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1598 ac_err=`grep -v '^ *+' conftest.out`
1599 if test -z "$ac_err"; then
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1606 CPP="${CC-cc} -E -traditional-cpp"
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1614 { (eval echo configure:1615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1615 ac_err=`grep -v '^ *+' conftest.out`
1616 if test -z "$ac_err"; then
1620 echo "configure: failed program was:" >&5
1621 cat conftest.$ac_ext >&5
1628 ac_cv_prog_CPP="$CPP"
1630 CPP="$ac_cv_prog_CPP"
1632 ac_cv_prog_CPP="$CPP"
1634 echo "$ac_t""$CPP" 1>&6
1636 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1637 echo "configure:1638: checking for ANSI C header files" >&5
1638 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1650 { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1651 ac_err=`grep -v '^ *+' conftest.out`
1652 if test -z "$ac_err"; then
1654 ac_cv_header_stdc=yes
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1660 ac_cv_header_stdc=no
1664 if test $ac_cv_header_stdc = yes; then
1665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1672 egrep "memchr" >/dev/null 2>&1; then
1676 ac_cv_header_stdc=no
1682 if test $ac_cv_header_stdc = yes; then
1683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1690 egrep "free" >/dev/null 2>&1; then
1694 ac_cv_header_stdc=no
1700 if test $ac_cv_header_stdc = yes; then
1701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1702 if test "$cross_compiling" = yes; then
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1709 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1710 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1712 int main () { int i; for (i = 0; i < 256; i++)
1713 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1717 if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1724 ac_cv_header_stdc=no
1732 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1733 if test $ac_cv_header_stdc = yes; then
1734 cat >> confdefs.h <<\EOF
1735 #define STDC_HEADERS 1
1740 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1741 echo "configure:1742: checking whether time.h and sys/time.h may both be included" >&5
1742 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 cat > conftest.$ac_ext <<EOF
1746 #line 1747 "configure"
1747 #include "confdefs.h"
1748 #include <sys/types.h>
1749 #include <sys/time.h>
1755 if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1757 ac_cv_header_time=yes
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1762 ac_cv_header_time=no
1767 echo "$ac_t""$ac_cv_header_time" 1>&6
1768 if test $ac_cv_header_time = yes; then
1769 cat >> confdefs.h <<\EOF
1770 #define TIME_WITH_SYS_TIME 1
1775 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether string.h and strings.h may both be included" >&5
1777 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1784 #include <strings.h>
1789 if { (eval echo configure:1790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1791 gcc_cv_header_string=yes
1793 echo "configure: failed program was:" >&5
1794 cat conftest.$ac_ext >&5
1796 gcc_cv_header_string=no
1801 echo "$ac_t""$gcc_cv_header_string" 1>&6
1802 if test $gcc_cv_header_string = yes; then
1803 cat >> confdefs.h <<\EOF
1804 #define STRING_WITH_STRINGS 1
1809 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1810 echo "configure:1811: checking for sys/wait.h that is POSIX.1 compatible" >&5
1811 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 #include <sys/types.h>
1818 #include <sys/wait.h>
1820 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1823 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1828 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1831 if { (eval echo configure:1832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1833 ac_cv_header_sys_wait_h=yes
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 ac_cv_header_sys_wait_h=no
1843 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1844 if test $ac_cv_header_sys_wait_h = yes; then
1845 cat >> confdefs.h <<\EOF
1846 #define HAVE_SYS_WAIT_H 1
1851 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 sys/stat.h
1853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_hdr" >&5
1856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err=`grep -v '^ *+' conftest.out`
1867 if test -z "$ac_err"; then
1869 eval "ac_cv_header_$ac_safe=yes"
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1875 eval "ac_cv_header_$ac_safe=no"
1879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1882 cat >> confdefs.h <<EOF
1883 #define $ac_tr_hdr 1
1887 echo "$ac_t""no" 1>&6
1892 # Check for thread headers.
1893 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1894 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1895 echo "configure:1896: checking for thread.h" >&5
1896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 cat > conftest.$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1905 { (eval echo configure:1906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1906 ac_err=`grep -v '^ *+' conftest.out`
1907 if test -z "$ac_err"; then
1909 eval "ac_cv_header_$ac_safe=yes"
1912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 eval "ac_cv_header_$ac_safe=no"
1919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1920 echo "$ac_t""yes" 1>&6
1923 echo "$ac_t""no" 1>&6
1927 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1928 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1929 echo "configure:1930: checking for pthread.h" >&5
1930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 cat > conftest.$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1936 #include <pthread.h>
1938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1939 { (eval echo configure:1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1940 ac_err=`grep -v '^ *+' conftest.out`
1941 if test -z "$ac_err"; then
1943 eval "ac_cv_header_$ac_safe=yes"
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1949 eval "ac_cv_header_$ac_safe=no"
1953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1954 echo "$ac_t""yes" 1>&6
1957 echo "$ac_t""no" 1>&6
1962 # See if GNAT has been installed
1963 # Extract the first word of "gnatbind", so it can be a program name with args.
1964 set dummy gnatbind; ac_word=$2
1965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_word" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 if test -n "$gnat"; then
1971 ac_cv_prog_gnat="$gnat" # Let the user override the test.
1973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1974 for ac_dir in $PATH; do
1975 test -z "$ac_dir" && ac_dir=.
1976 if test -f $ac_dir/$ac_word; then
1977 ac_cv_prog_gnat="yes"
1982 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
1985 gnat="$ac_cv_prog_gnat"
1986 if test -n "$gnat"; then
1987 echo "$ac_t""$gnat" 1>&6
1989 echo "$ac_t""no" 1>&6
1993 # See if the system preprocessor understands the ANSI C preprocessor
1994 # stringification operator.
1995 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
1996 echo "configure:1997: checking whether cpp understands the stringify operator" >&5
1997 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2006 char *test = S(foo);
2009 if { (eval echo configure:2010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2011 gcc_cv_c_have_stringify=yes
2013 echo "configure: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2016 gcc_cv_c_have_stringify=no
2021 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2022 if test $gcc_cv_c_have_stringify = yes; then
2023 cat >> confdefs.h <<\EOF
2024 #define HAVE_CPP_STRINGIFY 1
2029 # Use <inttypes.h> only if it exists,
2030 # doesn't clash with <sys/types.h>, and declares intmax_t.
2031 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2032 echo "configure:2033: checking for inttypes.h" >&5
2033 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <sys/types.h>
2040 #include <inttypes.h>
2045 if { (eval echo configure:2046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2047 gcc_cv_header_inttypes_h=yes
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2052 gcc_cv_header_inttypes_h=no
2057 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2058 if test $gcc_cv_header_inttypes_h = yes; then
2059 cat >> confdefs.h <<\EOF
2060 #define HAVE_INTTYPES_H 1
2065 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2066 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2067 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_func" >&5
2072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 /* System header to define __stub macros and hopefully few prototypes,
2079 which can conflict with char $ac_func(); below. */
2081 /* Override any gcc2 internal prototype to avoid an error. */
2082 /* We use char because int might match the return type of a gcc2
2083 builtin and then its argument prototype would still apply. */
2088 /* The GNU C library defines this for functions which it implements
2089 to always fail with ENOSYS. Some functions are actually named
2090 something starting with __ and the normal name is an alias. */
2091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2099 if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2101 eval "ac_cv_func_$ac_func=yes"
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2106 eval "ac_cv_func_$ac_func=no"
2111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2112 echo "$ac_t""yes" 1>&6
2113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2114 cat >> confdefs.h <<EOF
2115 #define $ac_tr_func 1
2119 echo "$ac_t""no" 1>&6
2124 # Make sure wchar_t is available
2125 #AC_CHECK_TYPE(wchar_t, unsigned int)
2127 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2128 echo "configure:2129: checking for vprintf" >&5
2129 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2135 /* System header to define __stub macros and hopefully few prototypes,
2136 which can conflict with char vprintf(); below. */
2138 /* Override any gcc2 internal prototype to avoid an error. */
2139 /* We use char because int might match the return type of a gcc2
2140 builtin and then its argument prototype would still apply. */
2145 /* The GNU C library defines this for functions which it implements
2146 to always fail with ENOSYS. Some functions are actually named
2147 something starting with __ and the normal name is an alias. */
2148 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2156 if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2158 eval "ac_cv_func_vprintf=yes"
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2163 eval "ac_cv_func_vprintf=no"
2168 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2169 echo "$ac_t""yes" 1>&6
2170 cat >> confdefs.h <<\EOF
2171 #define HAVE_VPRINTF 1
2175 echo "$ac_t""no" 1>&6
2178 if test "$ac_cv_func_vprintf" != yes; then
2179 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2180 echo "configure:2181: checking for _doprnt" >&5
2181 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 /* System header to define __stub macros and hopefully few prototypes,
2188 which can conflict with char _doprnt(); below. */
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2197 /* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2208 if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2210 eval "ac_cv_func__doprnt=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 eval "ac_cv_func__doprnt=no"
2220 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2221 echo "$ac_t""yes" 1>&6
2222 cat >> confdefs.h <<\EOF
2223 #define HAVE_DOPRNT 1
2227 echo "$ac_t""no" 1>&6
2234 if test $ac_cv_func_vprintf != yes ; then
2236 if test $ac_cv_func__doprnt != yes ; then
2243 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2244 echo "configure:2245: checking whether the printf functions support %p" >&5
2245 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 if test "$cross_compiling" = yes; then
2249 gcc_cv_func_printf_ptr=no
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2259 char *p = buf, *q = NULL;
2260 sprintf(buf, "%p", p);
2261 sscanf(buf, "%p", &q);
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2267 gcc_cv_func_printf_ptr=yes
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2272 gcc_cv_func_printf_ptr=no
2277 rm -f core core.* *.core
2280 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2281 if test $gcc_cv_func_printf_ptr = yes ; then
2282 cat >> confdefs.h <<\EOF
2283 #define HAVE_PRINTF_PTR 1
2288 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2289 echo "configure:2290: checking for pid_t" >&5
2290 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 #include <sys/types.h>
2302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2303 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2305 ac_cv_type_pid_t=yes
2313 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2314 if test $ac_cv_type_pid_t = no; then
2315 cat >> confdefs.h <<\EOF
2321 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2322 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2323 echo "configure:2324: checking for vfork.h" >&5
2324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2333 { (eval echo configure:2334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2334 ac_err=`grep -v '^ *+' conftest.out`
2335 if test -z "$ac_err"; then
2337 eval "ac_cv_header_$ac_safe=yes"
2340 echo "configure: failed program was:" >&5
2341 cat conftest.$ac_ext >&5
2343 eval "ac_cv_header_$ac_safe=no"
2347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2349 cat >> confdefs.h <<\EOF
2350 #define HAVE_VFORK_H 1
2354 echo "$ac_t""no" 1>&6
2357 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2358 echo "configure:2359: checking for working vfork" >&5
2359 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 if test "$cross_compiling" = yes; then
2363 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2364 echo "configure:2365: checking for vfork" >&5
2365 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char vfork(); below. */
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2381 /* The GNU C library defines this for functions which it implements
2382 to always fail with ENOSYS. Some functions are actually named
2383 something starting with __ and the normal name is an alias. */
2384 #if defined (__stub_vfork) || defined (__stub___vfork)
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2394 eval "ac_cv_func_vfork=yes"
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2399 eval "ac_cv_func_vfork=no"
2404 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2405 echo "$ac_t""yes" 1>&6
2408 echo "$ac_t""no" 1>&6
2411 ac_cv_func_vfork_works=$ac_cv_func_vfork
2413 cat > conftest.$ac_ext <<EOF
2414 #line 2415 "configure"
2415 #include "confdefs.h"
2416 /* Thanks to Paul Eggert for this test. */
2418 #include <sys/types.h>
2419 #include <sys/stat.h>
2420 #ifdef HAVE_UNISTD_H
2426 /* On some sparc systems, changes by the child to local and incoming
2427 argument registers are propagated back to the parent.
2428 The compiler is told about this with #include <vfork.h>,
2429 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2430 Test for this by using a static variable whose address
2431 is put into a register that is clobbered by the vfork. */
2434 sparc_address_test (int arg)
2436 sparc_address_test (arg) int arg;
2454 pid_t parent = getpid ();
2457 sparc_address_test ();
2462 /* Here is another test for sparc vfork register problems.
2463 This test uses lots of local variables, at least
2464 as many local variables as main has allocated so far
2465 including compiler temporaries. 4 locals are enough for
2466 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2467 A buggy compiler should reuse the register of parent
2468 for one of the local variables, since it will think that
2469 parent can't possibly be used any more in this routine.
2470 Assigning to the local variable will thus munge parent
2471 in the parent process. */
2473 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2474 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2475 /* Convince the compiler that p..p7 are live; otherwise, it might
2476 use the same hardware register for all 8 local variables. */
2477 if (p != p1 || p != p2 || p != p3 || p != p4
2478 || p != p5 || p != p6 || p != p7)
2481 /* On some systems (e.g. IRIX 3.3),
2482 vfork doesn't separate parent from child file descriptors.
2483 If the child closes a descriptor before it execs or exits,
2484 this munges the parent's descriptor as well.
2485 Test for this by closing stdout in the child. */
2486 _exit(close(fileno(stdout)) != 0);
2491 while (wait(&status) != child)
2494 /* Was there some problem with vforking? */
2497 /* Did the child fail? (This shouldn't happen.) */
2500 /* Did the vfork/compiler bug occur? */
2501 || parent != getpid()
2503 /* Did the file descriptor bug occur? */
2504 || fstat(fileno(stdout), &st) != 0
2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2511 ac_cv_func_vfork_works=yes
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2516 ac_cv_func_vfork_works=no
2523 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2524 if test $ac_cv_func_vfork_works = no; then
2525 cat >> confdefs.h <<\EOF
2532 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2533 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2536 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2537 echo "configure:2538: checking whether $ac_func must be declared" >&5
2538 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2546 #ifdef STRING_WITH_STRINGS
2547 # include <string.h>
2548 # include <strings.h>
2550 # ifdef HAVE_STRING_H
2551 # include <string.h>
2553 # ifdef HAVE_STRINGS_H
2554 # include <strings.h>
2558 #ifdef HAVE_STDLIB_H
2561 #ifdef HAVE_UNISTD_H
2565 #define rindex strrchr
2568 #define index strchr
2572 char *(*pfn) = (char *(*)) $ac_func
2575 if { (eval echo configure:2576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2577 eval "gcc_cv_decl_needed_$ac_func=no"
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2582 eval "gcc_cv_decl_needed_$ac_func=yes"
2587 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2589 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2590 cat >> confdefs.h <<EOF
2591 #define $gcc_tr_decl 1
2595 echo "$ac_t""no" 1>&6
2601 for ac_func in getrlimit setrlimit
2603 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2604 echo "configure:2605: checking whether $ac_func must be declared" >&5
2605 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 #ifdef STRING_WITH_STRINGS
2614 # include <string.h>
2615 # include <strings.h>
2617 # ifdef HAVE_STRING_H
2618 # include <string.h>
2620 # ifdef HAVE_STRINGS_H
2621 # include <strings.h>
2625 #ifdef HAVE_STDLIB_H
2628 #ifdef HAVE_UNISTD_H
2632 #define rindex strrchr
2635 #define index strchr
2637 #include <sys/types.h>
2638 #ifdef HAVE_SYS_RESOURCE_H
2639 #include <sys/resource.h>
2643 char *(*pfn) = (char *(*)) $ac_func
2646 if { (eval echo configure:2647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2648 eval "gcc_cv_decl_needed_$ac_func=no"
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2653 eval "gcc_cv_decl_needed_$ac_func=yes"
2658 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2659 echo "$ac_t""yes" 1>&6
2660 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2661 cat >> confdefs.h <<EOF
2662 #define $gcc_tr_decl 1
2666 echo "$ac_t""no" 1>&6
2672 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2673 echo "configure:2674: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2674 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2682 /* NetBSD declares sys_siglist in unistd.h. */
2683 #ifdef HAVE_UNISTD_H
2687 char *msg = *(sys_siglist + 1);
2690 if { (eval echo configure:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2692 ac_cv_decl_sys_siglist=yes
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 ac_cv_decl_sys_siglist=no
2702 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2703 if test $ac_cv_decl_sys_siglist = yes; then
2704 cat >> confdefs.h <<\EOF
2705 #define SYS_SIGLIST_DECLARED 1
2719 build_install_headers_dir=install-headers-tar
2724 host_truncate_target=
2727 # Decode the host machine, then the target machine.
2728 # For the host machine, we save the xm_file variable as host_xm_file;
2729 # then we decode the target machine and forget everything else
2730 # that came from the host machine.
2731 for machine in $build $host $target; do
2745 # Set this to force installation and use of collect2.
2747 # Set this to override the default target model.
2749 # Set this to control which fixincludes program to use.
2750 if test x$fast_fixinc != xyes; then
2751 fixincludes=fixincludes
2752 else fixincludes=fixinc.sh ; fi
2753 # Set this to control how the header file directory is installed.
2754 install_headers_dir=install-headers-tar
2755 # Set this to a non-empty list of args to pass to cpp if the target
2756 # wants its .md file passed through cpp.
2758 # Set this if directory names should be truncated to 14 characters.
2760 # Set this if gdb needs a dir command with `dirname $out_file`
2761 gdb_needs_out_file_path=
2762 # Set this if the build machine requires executables to have a
2765 # Set this to control which thread package will be used.
2767 # Reinitialize these from the flag values every loop pass, since some
2768 # configure entries modify them.
2770 gnu_ld="$gnu_ld_flag"
2771 enable_threads=$enable_threads_flag
2773 # Set default cpu_type, tm_file and xm_file so it can be updated in
2774 # each machine entry.
2775 cpu_type=`echo $machine | sed 's/-.*$//'`
2809 tm_file=${cpu_type}/${cpu_type}.h
2810 xm_file=${cpu_type}/xm-${cpu_type}.h
2812 # Set the default macros to define for GNU/Linux systems.
2815 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2820 # Support site-specific machine types.
2822 cpu_type=`echo $machine | sed -e 's/-.*//'`
2823 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2824 xm_file=${cpu_type}/xm-$rest.h
2825 tm_file=${cpu_type}/$rest.h
2826 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2827 then xmake_file=${cpu_type}/x-$rest; \
2830 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2831 then tmake_file=${cpu_type}/t-$rest; \
2837 a29k-*-bsd* | a29k-*-sym1*)
2838 tm_file="${tm_file} a29k/unix.h"
2840 xmake_file=a29k/x-unix
2843 a29k-*-udi | a29k-*-coff)
2844 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
2845 tmake_file=a29k/t-a29kbare
2848 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2849 tmake_file=a29k/t-vx29k
2850 extra_parts="crtbegin.o crtend.o"
2851 thread_file='vxworks'
2853 a29k-*-*) # Default a29k environment.
2856 alpha*-*-linux-gnuecoff*)
2857 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
2858 target_cpu_default="MASK_GAS"
2863 alpha*-*-linux-gnulibc1*)
2864 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2865 target_cpu_default="MASK_GAS"
2866 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2867 extra_parts="crtbegin.o crtend.o"
2868 fixincludes=fixinc.wrap
2871 if test x$enable_threads = xyes; then
2875 alpha*-*-linux-gnu*)
2876 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
2877 target_cpu_default="MASK_GAS"
2878 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
2879 extra_parts="crtbegin.o crtend.o"
2881 fixincludes=Makefile.in
2883 if test x$enable_threads = xyes; then
2888 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
2889 target_cpu_default="MASK_GAS"
2890 tmake_file="alpha/t-crtbe"
2891 extra_parts="crtbegin.o crtend.o"
2893 fixincludes=fixinc.wrap
2898 if test x$stabs = xyes
2900 tm_file="${tm_file} dbx.h"
2902 if test x$gas != xyes
2904 extra_passes="mips-tfile mips-tdump"
2909 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
2912 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
2915 tm_file="${tm_file} alpha/osf.h"
2916 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2917 # a broken tar, so we use cpio instead.
2918 install_headers_dir=install-headers-cpio
2922 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2923 target_cpu_default=MASK_SUPPORT_ARCH
2928 tm_file="${tm_file} dbx.h alpha/vxworks.h"
2931 extra_passes="mips-tfile mips-tdump"
2936 tm_file="${tm_file} alpha/win-nt.h"
2937 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2938 tmake_file=t-libc-ok
2939 xmake_file=winnt/x-winnt
2940 extra_host_objs=oldnames.o
2941 extra_gcc_objs="spawnv.o oldnames.o"
2942 fixincludes=fixinc.winnt
2943 if test x$gnu_ld != xyes
2945 extra_programs=ld.exe
2947 if test x$enable_threads = xyes; then
2953 xm_file="${xm_file} alpha/xm-vms.h"
2954 tmake_file=alpha/t-vms
2955 fixincludes=Makefile.in
2958 extra_parts="crtinit.o crtfini.o"
2960 arm-*-coff* | armel-*-coff*)
2962 tmake_file=arm/t-bare
2964 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
2965 tm_file=arm/riscix1-1.h
2968 arm-*-riscix*) # Acorn RISC machine
2969 if test x$gas = xyes
2971 tm_file=arm/rix-gas.h
2973 tm_file=arm/riscix.h
2975 xmake_file=arm/x-riscix
2976 tmake_file=arm/t-riscix
2979 arm-semi-aout | armel-semi-aout)
2981 tmake_file=arm/t-semi
2982 fixincludes=Makefile.in # There is nothing to fix
2984 arm-semi-aof | armel-semi-aof)
2985 tm_file=arm/semiaof.h
2986 tmake_file=arm/t-semiaof
2987 fixincludes=Makefile.in # There is nothing to fix
2990 tm_file=arm/netbsd.h
2991 xm_file="arm/xm-netbsd.h ${xm_file}"
2992 tmake_file="t-netbsd arm/t-netbsd"
2993 # On NetBSD, the headers are already okay, except for math.h.
2994 fixincludes=fixinc.wrap
2996 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
2999 tm_file=arm/linux-aout.h
3000 tmake_file=arm/t-linux
3001 fixincludes=Makefile.in
3004 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3005 xm_file=arm/xm-linux.h
3009 tm_file=arm/linux-elf26.h
3012 tm_file=arm/linux-elf.h
3015 tmake_file="t-linux arm/t-linux"
3016 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3017 fixincludes=Makefile.in # Nothing to fix
3022 tmake_file=arm/t-bare
3025 tm_file=arm/ecos-elf.h
3026 tmake_file=arm/t-elf
3029 tm_file=arm/unknown-elf.h
3030 tmake_file=arm/t-arm-elf
3032 c1-convex-*) # Convex C1
3033 target_cpu_default=1
3035 fixincludes=Makefile.in
3037 c2-convex-*) # Convex C2
3038 target_cpu_default=2
3040 fixincludes=Makefile.in
3043 target_cpu_default=4
3045 fixincludes=Makefile.in
3048 target_cpu_default=8
3050 fixincludes=Makefile.in
3053 target_cpu_default=16
3055 fixincludes=Makefile.in
3059 tmake_file=c4x/t-c4x
3061 clipper-intergraph-clix*)
3062 tm_file="${tm_file} svr3.h clipper/clix.h"
3063 xm_file=clipper/xm-clix.h
3064 xmake_file=clipper/x-clix
3065 extra_headers=va-clipper.h
3066 extra_parts="crtbegin.o crtend.o"
3067 install_headers_dir=install-headers-cpio
3074 # This hasn't been upgraded to GCC 2.
3075 # fx80-alliant-*) # Alliant FX/80
3081 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3082 xm_file=pa/xm-papro.h
3086 target_cpu_default=1
3087 tm_file="${tm_file} pa/pa-osf.h"
3089 fixincludes=Makefile.in
3092 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3093 xm_file=pa/xm-papro.h
3097 tm_file="${tm_file} pa/pa-osf.h"
3099 fixincludes=Makefile.in
3102 target_cpu_default=1
3104 fixincludes=Makefile.in
3108 fixincludes=Makefile.in
3111 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3112 xm_file=pa/xm-pahpux.h
3113 xmake_file=pa/x-pa-hpux
3114 if test x$gas = xyes
3116 tm_file="${tm_file} pa/gas.h"
3118 install_headers_dir=install-headers-cpio
3121 hppa1.0-*-hpux8.0[0-2]*)
3122 tm_file="${tm_file} pa/pa-hpux.h"
3123 xm_file=pa/xm-pahpux.h
3124 xmake_file=pa/x-pa-hpux
3125 if test x$gas = xyes
3127 tm_file="${tm_file} pa/pa-gas.h"
3129 tm_file="pa/pa-oldas.h ${tm_file}"
3131 install_headers_dir=install-headers-cpio
3134 hppa1.1-*-hpux8.0[0-2]*)
3135 target_cpu_default=1
3136 tm_file="${tm_file} pa/pa-hpux.h"
3137 xm_file=pa/xm-pahpux.h
3138 xmake_file=pa/x-pa-hpux
3139 if test x$gas = xyes
3141 tm_file="${tm_file} pa/pa-gas.h"
3143 tm_file="pa/pa-oldas.h ${tm_file}"
3145 install_headers_dir=install-headers-cpio
3149 target_cpu_default=1
3150 tm_file="${tm_file} pa/pa-hpux.h"
3151 xm_file=pa/xm-pahpux.h
3152 xmake_file=pa/x-pa-hpux
3153 if test x$gas = xyes
3155 tm_file="${tm_file} pa/pa-gas.h"
3157 install_headers_dir=install-headers-cpio
3161 tm_file="${tm_file} pa/pa-hpux.h"
3162 xm_file=pa/xm-pahpux.h
3163 xmake_file=pa/x-pa-hpux
3164 if test x$gas = xyes
3166 tm_file="${tm_file} pa/pa-gas.h"
3168 install_headers_dir=install-headers-cpio
3171 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3172 target_cpu_default=1
3173 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3174 xm_file=pa/xm-pahpux.h
3175 xmake_file=pa/x-pa-hpux
3177 if test x$gas = xyes
3179 tm_file="${tm_file} pa/pa-gas.h"
3181 if test x$enable_threads = x; then
3182 enable_threads=$have_pthread_h
3184 if test x$enable_threads = xyes; then
3186 tmake_file="${tmake_file} pa/t-dce-thr"
3188 install_headers_dir=install-headers-cpio
3192 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3193 xm_file=pa/xm-pahpux.h
3194 xmake_file=pa/x-pa-hpux
3195 if test x$gas = xyes
3197 tm_file="${tm_file} pa/pa-gas.h"
3199 if test x$enable_threads = x; then
3200 enable_threads=$have_pthread_h
3202 if test x$enable_threads = xyes; then
3204 tmake_file="${tmake_file} pa/t-dce-thr"
3206 install_headers_dir=install-headers-cpio
3209 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3210 target_cpu_default=1
3211 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3212 xm_file=pa/xm-pahpux.h
3213 xmake_file=pa/x-pa-hpux
3214 if test x$gas = xyes
3216 tm_file="${tm_file} pa/pa-gas.h"
3218 install_headers_dir=install-headers-cpio
3222 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3223 xm_file=pa/xm-pahpux.h
3224 xmake_file=pa/x-pa-hpux
3225 if test x$gas = xyes
3227 tm_file="${tm_file} pa/pa-gas.h"
3229 install_headers_dir=install-headers-cpio
3232 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3233 target_cpu_default=1
3234 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3235 xm_file=pa/xm-pahpux.h
3236 xmake_file=pa/x-pa-hpux
3237 if test x$gas = xyes
3239 tm_file="${tm_file} pa/pa-gas.h"
3241 install_headers_dir=install-headers-cpio
3245 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3246 xm_file=pa/xm-pahpux.h
3247 xmake_file=pa/x-pa-hpux
3248 if test x$gas = xyes
3250 tm_file="${tm_file} pa/pa-gas.h"
3252 install_headers_dir=install-headers-cpio
3256 target_cpu_default=1
3258 fixincludes=Makefile.in
3262 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3263 if test x$gas = xyes
3265 tm_file=i386/aix386.h
3266 extra_parts="crtbegin.o crtend.o"
3267 tmake_file=i386/t-crtstuff
3269 tm_file=i386/aix386ng.h
3272 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3274 xmake_file=i386/x-aix
3276 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3277 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3278 xm_defines="USG POSIX SMALL_ARG_MAX"
3279 xmake_file=i386/x-ncr3000
3280 if test x$stabs = xyes -a x$gas = xyes
3282 tm_file=i386/sysv4gdb.h
3284 tm_file=i386/sysv4.h
3286 extra_parts="crtbegin.o crtend.o"
3287 tmake_file=i386/t-crtpic
3291 xm_file=i386/xm-next.h
3292 tmake_file=i386/t-next
3293 xmake_file=i386/x-next
3294 extra_objs=nextstep.o
3295 extra_parts="crtbegin.o crtend.o"
3296 if test x$enable_threads = xyes; then
3300 i[34567]86-sequent-bsd*) # 80386 from Sequent
3302 if test x$gas = xyes
3304 tm_file=i386/seq-gas.h
3306 tm_file=i386/sequent.h
3309 i[34567]86-sequent-ptx1*)
3310 xm_defines="USG SVR3"
3311 xmake_file=i386/x-sysv3
3312 tm_file=i386/seq-sysv3.h
3313 tmake_file=i386/t-crtstuff
3314 fixincludes=fixinc.ptx
3315 extra_parts="crtbegin.o crtend.o"
3316 install_headers_dir=install-headers-cpio
3318 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3319 xm_defines="USG SVR3"
3320 xmake_file=i386/x-sysv3
3321 tm_file=i386/seq2-sysv3.h
3322 tmake_file=i386/t-crtstuff
3323 extra_parts="crtbegin.o crtend.o"
3324 fixincludes=fixinc.ptx
3325 install_headers_dir=install-headers-cpio
3327 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3328 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3329 xm_defines="USG POSIX SMALL_ARG_MAX"
3331 tm_file=i386/ptx4-i.h
3333 extra_parts="crtbegin.o crtend.o"
3334 fixincludes=fixinc.ptx
3335 install_headers_dir=install-headers-cpio
3337 i386-sun-sunos*) # Sun i386 roadrunner
3342 i[34567]86-wrs-vxworks*)
3343 tm_file=i386/vxi386.h
3344 tmake_file=i386/t-i386bare
3347 tm_file=i386/i386-aout.h
3348 tmake_file=i386/t-i386bare
3350 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3351 tm_file=i386/bsd386.h
3352 # tmake_file=t-libc-ok
3355 tm_file=i386/386bsd.h
3356 # tmake_file=t-libc-ok
3357 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3360 i[34567]86-*-freebsdelf*)
3361 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
3362 # On FreeBSD, the headers are already ok, except for math.h.
3363 fixincludes=fixinc.wrap
3364 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3365 tmake_file=i386/t-freebsd
3370 i[34567]86-*-freebsd*)
3371 tm_file=i386/freebsd.h
3372 # On FreeBSD, the headers are already ok, except for math.h.
3373 fixincludes=fixinc.wrap
3374 tmake_file=i386/t-freebsd
3376 # We are hoping OpenBSD is still close enough to NetBSD that we can
3377 # share the configurations.
3378 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
3379 tm_file=i386/netbsd.h
3380 # On NetBSD, the headers are already okay, except for math.h.
3381 fixincludes=fixinc.wrap
3385 tm_file=i386/i386-coff.h
3386 tmake_file=i386/t-i386bare
3388 i[34567]86-*-isc*) # 80386 running ISC system
3389 xm_file="${xm_file} i386/xm-isc.h"
3390 xm_defines="USG SVR3"
3392 i[34567]86-*-isc[34]*)
3393 xmake_file=i386/x-isc3
3396 xmake_file=i386/x-isc
3399 if test x$gas = xyes -a x$stabs = xyes
3401 tm_file=i386/iscdbx.h
3402 tmake_file=i386/t-svr3dbx
3403 extra_parts="svr3.ifile svr3z.ifile"
3405 tm_file=i386/isccoff.h
3406 tmake_file=i386/t-crtstuff
3407 extra_parts="crtbegin.o crtend.o"
3409 install_headers_dir=install-headers-cpio
3411 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3413 xmake_file=x-linux-aout
3414 tmake_file="t-linux-aout i386/t-crtstuff"
3415 tm_file=i386/linux-oldld.h
3416 fixincludes=Makefile.in #On Linux, the headers are ok already.
3420 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3421 xmake_file=x-linux-aout
3422 tmake_file="t-linux-aout i386/t-crtstuff"
3423 tm_file=i386/linux-aout.h
3424 fixincludes=Makefile.in #On Linux, the headers are ok already.
3428 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3429 # GNU/Linux C library 5
3431 tm_file=i386/linux.h
3432 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3433 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3434 fixincludes=Makefile.in #On Linux, the headers are ok already.
3437 if test x$enable_threads = xyes; then
3438 thread_file='single'
3441 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3442 # aka GNU/Linux C library 6
3444 tm_file=i386/linux.h
3445 tmake_file="t-linux i386/t-crtstuff"
3446 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3447 fixincludes=Makefile.in #On Linux, the headers are ok already.
3450 if test x$enable_threads = xyes; then
3456 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3457 xm_file=i386/xm-go32.h
3459 tmake_file=i386/t-go32
3461 i[34567]86-pc-msdosdjgpp*)
3462 xm_file=i386/xm-go32.h
3464 tmake_file=i386/t-go32
3465 xmake_file=i386/x-go32
3475 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3477 tmake_file=t-libc-ok
3478 fixincludes=Makefile.in
3482 i[34567]86-*-lynxos*)
3483 if test x$gas = xyes
3487 tm_file=i386/lynx-ng.h
3489 xm_file=i386/xm-lynx.h
3490 tmake_file=i386/t-i386bare
3495 # tmake_file=t-libc-ok
3498 i[34567]86-*-osfrose*) # 386 using OSF/rose
3499 if test x$elf = xyes
3501 tm_file=i386/osfelf.h
3504 tm_file=i386/osfrose.h
3507 xm_file="i386/xm-osf.h ${xm_file}"
3508 xmake_file=i386/x-osfrose
3509 tmake_file=i386/t-osf
3510 extra_objs=halfpic.o
3512 i[34567]86-go32-rtems*)
3514 xm_file=i386/xm-go32.h
3515 tm_file=i386/go32-rtems.h
3516 tmake_file="i386/t-go32 t-rtems"
3518 i[34567]86-*-rtemself*)
3520 tm_file=i386/rtemself.h
3521 tmake_file="i386/t-i386bare t-rtems"
3523 i[34567]86-*-rtems*)
3525 tm_file=i386/rtems.h
3526 tmake_file="i386/t-i386bare t-rtems"
3528 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3529 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3530 xm_defines="USG SVR3"
3531 xmake_file=i386/x-sco5
3532 fixincludes=fixinc.sco
3533 install_headers_dir=install-headers-cpio
3535 if test x$gas = xyes
3537 tm_file="i386/sco5gas.h ${tm_file}"
3538 tmake_file=i386/t-sco5gas
3540 tmake_file=i386/t-sco5
3542 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3544 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3545 xm_file="${xm_file} i386/xm-sco.h"
3546 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3547 xmake_file=i386/x-sco4
3548 fixincludes=fixinc.sco
3549 install_headers_dir=install-headers-cpio
3550 if test x$stabs = xyes
3552 tm_file=i386/sco4dbx.h
3553 tmake_file=i386/t-svr3dbx
3554 extra_parts="svr3.ifile svr3z.rfile"
3557 tmake_file=i386/t-crtstuff
3558 extra_parts="crtbegin.o crtend.o"
3562 i[34567]86-*-sco*) # 80386 running SCO system
3563 xm_file=i386/xm-sco.h
3564 xmake_file=i386/x-sco
3565 install_headers_dir=install-headers-cpio
3566 if test x$stabs = xyes
3568 tm_file=i386/scodbx.h
3569 tmake_file=i386/t-svr3dbx
3570 extra_parts="svr3.ifile svr3z.rfile"
3573 extra_parts="crtbegin.o crtend.o"
3574 tmake_file=i386/t-crtstuff
3578 i[34567]86-*-solaris2*)
3579 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3580 xm_defines="USG POSIX SMALL_ARG_MAX"
3581 if test x$stabs = xyes
3583 tm_file=i386/sol2dbg.h
3587 tmake_file=i386/t-sol2
3588 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3592 fixincludes=fixinc.svr4;;
3594 fixincludes=fixinc.wrap;;
3596 if test x$enable_threads = xyes; then
3597 thread_file='solaris'
3600 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3601 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3602 xm_defines="USG POSIX"
3603 tm_file=i386/sysv4.h
3604 if test x$stabs = xyes
3606 tm_file="${tm_file} dbx.h"
3608 tmake_file=i386/t-crtpic
3610 extra_parts="crtbegin.o crtend.o"
3611 fixincludes=fixinc.svr4
3613 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3614 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3615 xm_defines="USG POSIX SMALL_ARG_MAX"
3616 tm_file=i386/sysv4.h
3617 if test x$stabs = xyes
3619 tm_file="${tm_file} dbx.h"
3621 tmake_file=i386/t-crtpic
3623 extra_parts="crtbegin.o crtend.o"
3625 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3626 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3627 xm_defines="USG POSIX"
3629 tmake_file="i386/t-crtpic i386/t-udk"
3631 extra_parts="crtbegin.o crtend.o"
3632 fixincludes="fixinc.svr4"
3634 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3636 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3637 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3638 fixincludes=Makefile.in #Don't do it on OSF/1
3639 if test x$stabs = xyes
3641 tm_file=i386/osf1elfgdb.h
3643 tm_file=i386/osf1elf.h
3645 tmake_file=i386/t-osf1elf
3646 xmake_file=i386/x-osf1elf
3647 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3649 i[34567]86-*-sysv*) # Intel 80386's running system V
3650 xm_defines="USG SVR3"
3651 xmake_file=i386/x-sysv3
3652 if test x$gas = xyes
3654 if test x$stabs = xyes
3656 tm_file=i386/svr3dbx.h
3657 tmake_file=i386/t-svr3dbx
3658 extra_parts="svr3.ifile svr3z.rfile"
3660 tm_file=i386/svr3gas.h
3661 extra_parts="crtbegin.o crtend.o"
3662 tmake_file=i386/t-crtstuff
3665 tm_file=i386/sysv3.h
3666 extra_parts="crtbegin.o crtend.o"
3667 tmake_file=i386/t-crtstuff
3670 i386-*-vsta) # Intel 80386's running VSTa kernel
3671 xm_file="${xm_file} i386/xm-vsta.h"
3673 tmake_file=i386/t-vsta
3674 xmake_file=i386/x-vsta
3677 xm_file="${xm_file} i386/xm-cygwin.h"
3678 tmake_file=i386/t-cygwin
3679 tm_file=i386/win32.h
3680 xmake_file=i386/x-cygwin
3682 fixincludes=Makefile.in
3683 if test x$enable_threads = xyes; then
3688 i[34567]86-*-pe | i[34567]86-*-cygwin*)
3689 xm_file="${xm_file} i386/xm-cygwin.h"
3690 tmake_file=i386/t-cygwin
3691 tm_file=i386/cygwin.h
3692 xmake_file=i386/x-cygwin
3694 fixincludes=Makefile.in
3695 if test x$enable_threads = xyes; then
3700 i[34567]86-*-mingw32*)
3701 tm_file=i386/mingw32.h
3702 xm_file="${xm_file} i386/xm-mingw32.h"
3703 tmake_file="i386/t-cygwin i386/t-mingw32"
3705 xmake_file=i386/x-cygwin
3706 fixincludes=Makefile.in
3707 if test x$enable_threads = xyes; then
3714 *minwg32crt* | *mingw32*)
3715 tm_file="${tm_file} i386/crtdll.h"
3719 i[34567]86-*-winnt3*)
3720 tm_file=i386/win-nt.h
3721 out_file=i386/i386.c
3722 xm_file="xm-winnt.h ${xm_file}"
3723 xmake_file=winnt/x-winnt
3724 tmake_file=i386/t-winnt
3725 extra_host_objs="winnt.o oldnames.o"
3726 extra_gcc_objs="spawnv.o oldnames.o"
3727 fixincludes=fixinc.winnt
3728 if test x$gnu_ld != xyes
3730 extra_programs=ld.exe
3732 if test x$enable_threads = xyes; then
3736 i[34567]86-dg-dgux*)
3737 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3738 xm_defines="USG POSIX"
3739 out_file=i386/dgux.c
3741 tmake_file=i386/t-dgux
3742 xmake_file=i386/x-dgux
3743 fixincludes=fixinc.dgux
3744 install_headers_dir=install-headers-cpio
3746 i860-alliant-*) # Alliant FX/2800
3747 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3748 xm_file="${xm_file}"
3749 xmake_file=i860/x-fx2800
3750 tmake_file=i860/t-fx2800
3751 extra_parts="crtbegin.o crtend.o"
3754 tm_file="${tm_file} i860/bsd.h"
3755 if test x$gas = xyes
3757 tm_file="${tm_file} i860/bsd-gas.h"
3762 tm_file="${tm_file} i860/mach.h"
3763 tmake_file=t-libc-ok
3765 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3766 tm_file="${tm_file} svr3.h i860/paragon.h"
3767 xm_defines="USG SVR3"
3771 tm_file="${tm_file} svr3.h i860/sysv3.h"
3772 xm_defines="USG SVR3"
3773 xmake_file=i860/x-sysv3
3774 extra_parts="crtbegin.o crtend.o"
3777 tm_file="${tm_file} svr4.h i860/sysv4.h"
3778 xm_defines="USG SVR3"
3779 xmake_file=i860/x-sysv4
3781 extra_parts="crtbegin.o crtend.o"
3783 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
3784 tm_file="${tm_file} i960/vx960.h"
3785 tmake_file=i960/t-vxworks960
3787 thread_file='vxworks'
3789 i960-wrs-vxworks5* | i960-wrs-vxworks)
3790 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3791 tmake_file=i960/t-vxworks960
3793 thread_file='vxworks'
3796 tm_file="${tm_file} i960/vx960.h"
3797 tmake_file=i960/t-vxworks960
3799 thread_file='vxworks'
3802 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3803 tmake_file=i960/t-960bare
3807 tmake_file="i960/t-960bare t-rtems"
3808 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3811 i960-*-*) # Default i960 environment.
3815 extra_parts="crtinit.o crtfini.o"
3817 m68000-convergent-sysv*)
3819 xm_file="m68k/xm-3b1.h ${xm_file}"
3822 extra_headers=math-68881.h
3824 m68000-hp-bsd*) # HP 9000/200 running BSD
3825 tm_file=m68k/hp2bsd.h
3826 xmake_file=m68k/x-hp2bsd
3828 extra_headers=math-68881.h
3830 m68000-hp-hpux*) # HP 9000 series 300
3831 xm_file="xm_alloca.h ${xm_file}"
3832 xm_defines="USG NO_SYS_SIGLIST"
3833 if test x$gas = xyes
3835 xmake_file=m68k/x-hp320g
3836 tm_file=m68k/hp310g.h
3838 xmake_file=m68k/x-hp320
3839 tm_file=m68k/hp310.h
3841 install_headers_dir=install-headers-cpio
3843 extra_headers=math-68881.h
3848 extra_headers=math-68881.h
3851 tm_file=m68k/sun2o4.h
3853 extra_headers=math-68881.h
3856 xm_file="m68k/xm-3b1.h ${xm_file}"
3858 if test x$gas = xyes
3865 extra_headers=math-68881.h
3867 m68k-apple-aux*) # Apple Macintosh running A/UX
3868 xm_defines="USG AUX"
3869 tmake_file=m68k/t-aux
3870 install_headers_dir=install-headers-cpio
3871 extra_headers=math-68881.h
3872 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3874 if test "$gnu_ld" = yes
3876 tm_file="${tm_file} m68k/auxgld.h"
3878 tm_file="${tm_file} m68k/auxld.h"
3880 if test "$gas" = yes
3882 tm_file="${tm_file} m68k/auxgas.h"
3884 tm_file="${tm_file} m68k/auxas.h"
3886 tm_file="${tm_file} m68k/a-ux.h"
3890 tm_file=m68k/apollo68.h
3891 xmake_file=m68k/x-apollo68
3893 extra_headers=math-68881.h
3896 m68k-altos-sysv*) # Altos 3068
3897 if test x$gas = xyes
3899 tm_file=m68k/altos3068.h
3902 echo "The Altos is supported only with the GNU assembler" 1>&2
3905 extra_headers=math-68881.h
3907 m68k-bull-sysv*) # Bull DPX/2
3908 if test x$gas = xyes
3910 if test x$stabs = xyes
3912 tm_file=m68k/dpx2cdbx.h
3914 tm_file=m68k/dpx2g.h
3919 xm_file="xm-alloca.h ${xm_file}"
3921 xmake_file=m68k/x-dpx2
3923 extra_headers=math-68881.h
3925 m68k-atari-sysv4*) # Atari variant of V.4.
3926 tm_file=m68k/atari.h
3927 xm_file="xm-alloca.h ${xm_file}"
3928 xm_defines="USG FULL_PROTOTYPES"
3930 extra_parts="crtbegin.o crtend.o"
3931 extra_headers=math-68881.h
3934 m68k-motorola-sysv*)
3935 tm_file=m68k/mot3300.h
3936 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3937 xm_defines=NO_SYS_SIGLIST
3938 if test x$gas = xyes
3940 xmake_file=m68k/x-mot3300-gas
3941 if test x$gnu_ld = xyes
3943 tmake_file=m68k/t-mot3300-gald
3945 tmake_file=m68k/t-mot3300-gas
3949 xmake_file=m68k/x-mot3300
3950 if test x$gnu_ld = xyes
3952 tmake_file=m68k/t-mot3300-gld
3954 tmake_file=m68k/t-mot3300
3958 gdb_needs_out_file_path=yes
3959 extra_parts="crt0.o mcrt0.o"
3960 extra_headers=math-68881.h
3963 m68k-ncr-sysv*) # NCR Tower 32 SVR3
3964 tm_file=m68k/tower-as.h
3965 xm_defines="USG SVR3"
3966 xmake_file=m68k/x-tower
3967 extra_parts="crtbegin.o crtend.o"
3968 extra_headers=math-68881.h
3971 tm_file=m68k/plexus.h
3972 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3975 extra_headers=math-68881.h
3979 xm_file="xm-alloca.h ${xm_file}"
3981 extra_headers=math-68881.h
3984 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3985 xm_defines="USG unos"
3986 xmake_file=m68k/x-crds
3989 extra_headers=math-68881.h
3991 m68k-cbm-sysv4*) # Commodore variant of V.4.
3993 xm_file="xm-alloca.h ${xm_file}"
3994 xm_defines="USG FULL_PROTOTYPES"
3995 xmake_file=m68k/x-amix
3997 extra_parts="crtbegin.o crtend.o"
3998 extra_headers=math-68881.h
4002 tm_file=m68k/ccur-GAS.h
4003 xmake_file=m68k/x-ccur
4004 extra_headers=math-68881.h
4008 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4009 tm_file=m68k/hp3bsd44.h
4010 xmake_file=m68k/x-hp3bsd44
4012 extra_headers=math-68881.h
4015 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4016 tm_file=m68k/hp3bsd.h
4018 extra_headers=math-68881.h
4022 if test x$with_fp = xno
4024 tm_file=m68k/isi-nfp.h
4030 extra_headers=math-68881.h
4032 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4033 xm_file="xm_alloca.h ${xm_file}"
4034 xm_defines="USG NO_SYS_SIGLIST"
4035 if test x$gas = xyes
4037 xmake_file=m68k/x-hp320g
4038 tm_file=m68k/hp320g.h
4040 xmake_file=m68k/x-hp320
4041 tm_file=m68k/hpux7.h
4043 install_headers_dir=install-headers-cpio
4045 extra_headers=math-68881.h
4048 m68k-hp-hpux*) # HP 9000 series 300
4049 xm_file="xm_alloca.h ${xm_file}"
4050 xm_defines="USG NO_SYS_SIGLIST"
4051 if test x$gas = xyes
4053 xmake_file=m68k/x-hp320g
4054 tm_file=m68k/hp320g.h
4056 xmake_file=m68k/x-hp320
4057 tm_file=m68k/hp320.h
4059 install_headers_dir=install-headers-cpio
4061 extra_headers=math-68881.h
4065 tm_file=m68k/sun3mach.h
4067 extra_headers=math-68881.h
4071 if test x$gas = xyes
4073 tm_file=m68k/news3gas.h
4075 tm_file=m68k/news3.h
4078 extra_headers=math-68881.h
4081 m68k-sony-bsd* | m68k-sony-newsos*)
4082 if test x$gas = xyes
4084 tm_file=m68k/newsgas.h
4089 extra_headers=math-68881.h
4092 m68k-next-nextstep2*)
4093 tm_file=m68k/next21.h
4094 xm_file="m68k/xm-next.h ${xm_file}"
4095 tmake_file=m68k/t-next
4096 xmake_file=m68k/x-next
4097 extra_objs=nextstep.o
4098 extra_headers=math-68881.h
4102 m68k-next-nextstep3*)
4104 xm_file="m68k/xm-next.h ${xm_file}"
4105 tmake_file=m68k/t-next
4106 xmake_file=m68k/x-next
4107 extra_objs=nextstep.o
4108 extra_parts="crtbegin.o crtend.o"
4109 extra_headers=math-68881.h
4111 if test x$enable_threads = xyes; then
4116 if test x$with_fp = xno
4118 tm_file=m68k/sun3n3.h
4120 tm_file=m68k/sun3o3.h
4124 extra_headers=math-68881.h
4126 m68k-sun-sunos*) # For SunOS 4 (the default).
4127 if test x$with_fp = xno
4129 tm_file=m68k/sun3n.h
4135 extra_headers=math-68881.h
4138 tm_file=m68k/vxm68k.h
4139 tmake_file=m68k/t-vxworks68
4140 extra_headers=math-68881.h
4141 thread_file='vxworks'
4145 tmake_file=m68k/t-m68kbare
4146 tm_file="m68k/m68k-aout.h libgloss.h"
4147 extra_headers=math-68881.h
4151 tmake_file=m68k/t-m68kbare
4152 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4153 extra_headers=math-68881.h
4156 m68020-*-elf* | m68k-*-elf*)
4157 tm_file="m68k/m68020-elf.h libgloss.h"
4158 xm_file=m68k/xm-m68kv.h
4159 tmake_file=m68k/t-m68kelf
4160 header_files=math-68881.h
4163 if test x$gas = xyes
4167 tm_file=m68k/lynx-ng.h
4169 xm_file=m68k/xm-lynx.h
4171 tmake_file=m68k/t-lynx
4172 extra_headers=math-68881.h
4176 tm_file=m68k/netbsd.h
4177 # On NetBSD, the headers are already okay, except for math.h.
4178 fixincludes=fixinc.wrap
4182 m68k-*-sysv3*) # Motorola m68k's running system V.3
4183 xm_file="xm-alloca.h ${xm_file}"
4185 xmake_file=m68k/x-m68kv
4186 extra_parts="crtbegin.o crtend.o"
4187 extra_headers=math-68881.h
4190 m68k-*-sysv4*) # Motorola m68k's running system V.4
4191 tm_file=m68k/m68kv4.h
4192 xm_file="xm-alloca.h ${xm_file}"
4195 extra_parts="crtbegin.o crtend.o"
4196 extra_headers=math-68881.h
4199 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4202 tm_file=m68k/linux-aout.h
4203 tmake_file="t-linux-aout m68k/t-linux-aout"
4204 fixincludes=Makefile.in # The headers are ok already.
4205 extra_headers=math-68881.h
4209 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4210 # with ELF format using the
4211 # GNU/Linux C library 5
4213 tm_file=m68k/linux.h
4214 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4215 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4216 fixincludes=Makefile.in # The headers are ok already.
4217 extra_headers=math-68881.h
4221 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4222 # with ELF format using glibc 2
4223 # aka the GNU/Linux C library 6.
4225 tm_file=m68k/linux.h
4226 tmake_file="t-linux m68k/t-linux"
4227 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4228 fixincludes=Makefile.in # The headers are ok already.
4229 extra_headers=math-68881.h
4232 if test x$enable_threads = xyes; then
4237 tmake_file=m68k/t-m68kbare
4238 tm_file=m68k/m68k-psos.h
4239 extra_headers=math-68881.h
4243 tmake_file="m68k/t-m68kbare t-rtems"
4244 tm_file=m68k/rtems.h
4245 extra_headers=math-68881.h
4252 tm_file=m88k/dguxbcs.h
4253 tmake_file=m88k/t-dguxbcs
4257 tmake_file=m88k/t-dgux
4260 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4261 xmake_file=m88k/x-dgux
4262 if test x$gas = xyes
4264 tmake_file=m88k/t-dgux-gas
4266 fixincludes=fixinc.dgux
4268 m88k-dolphin-sysv3*)
4269 tm_file=m88k/dolph.h
4270 extra_parts="crtbegin.o crtend.o"
4271 xm_file="m88k/xm-sysv3.h ${xm_file}"
4272 xmake_file=m88k/x-dolph
4273 if test x$gas = xyes
4275 tmake_file=m88k/t-m88k-gas
4278 m88k-tektronix-sysv3)
4279 tm_file=m88k/tekXD88.h
4280 extra_parts="crtbegin.o crtend.o"
4281 xm_file="m88k/xm-sysv3.h ${xm_file}"
4282 xmake_file=m88k/x-tekXD88
4283 if test x$gas = xyes
4285 tmake_file=m88k/t-m88k-gas
4289 tm_file=m88k/m88k-aout.h
4292 tm_file=m88k/m88k-coff.h
4293 tmake_file=m88k/t-bug
4297 extra_parts="crtbegin.o crtend.o"
4298 if test x$gas = xyes
4300 tmake_file=m88k/t-luna-gas
4302 tmake_file=m88k/t-luna
4306 tm_file=m88k/sysv3.h
4307 extra_parts="crtbegin.o crtend.o"
4308 xm_file="m88k/xm-sysv3.h ${xm_file}"
4309 xmake_file=m88k/x-sysv3
4310 if test x$gas = xyes
4312 tmake_file=m88k/t-m88k-gas
4316 tm_file=m88k/sysv4.h
4317 extra_parts="crtbegin.o crtend.o"
4318 xmake_file=m88k/x-sysv4
4319 tmake_file=m88k/t-sysv4
4321 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4322 tm_file=mips/iris6.h
4323 xm_file=mips/xm-iris6.h
4324 fixincludes=fixinc.irix
4325 xmake_file=mips/x-iris6
4326 tmake_file=mips/t-iris6
4327 # if test x$enable_threads = xyes; then
4328 # thread_file='irix'
4332 tm_file="mips/elf.h libgloss.h"
4333 tmake_file=mips/t-ecoff
4336 extra_parts="crtbegin.o crtend.o"
4337 # thread_file='vxworks'
4339 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4340 tm_file="mips/iris6.h mips/cross64.h"
4342 xm_file="mips/xm-iris5.h"
4343 fixincludes=Makefile.in
4344 xmake_file=mips/x-iris
4345 tmake_file=mips/t-cross64
4346 # See comment in mips/iris[56].h files.
4348 # if test x$enable_threads = xyes; then
4349 # thread_file='irix'
4353 if test x$gas = xyes
4355 if test x$stabs = xyes
4357 tm_file=mips/iris5gdb.h
4359 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4362 tm_file=mips/sni-svr4.h
4365 xmake_file=mips/x-sni-svr4
4366 tmake_file=mips/t-mips-gas
4367 if test x$gnu_ld != xyes
4372 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4373 if test x$gas = xyes
4375 tm_file="mips/iris5.h mips/iris5gas.h"
4376 if test x$stabs = xyes
4378 tm_file="${tm_file} dbx.h"
4381 tm_file=mips/iris5.h
4384 xm_file="mips/xm-iris5.h"
4385 fixincludes=fixinc.irix
4386 xmake_file=mips/x-iris
4387 # mips-tfile doesn't work yet
4388 tmake_file=mips/t-mips-gas
4389 # See comment in mips/iris5.h file.
4391 # if test x$enable_threads = xyes; then
4392 # thread_file='irix'
4395 mips-sgi-irix4loser*) # Mostly like a MIPS.
4396 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4397 if test x$stabs = xyes; then
4398 tm_file="${tm_file} dbx.h"
4401 xmake_file=mips/x-iris
4402 if test x$gas = xyes
4404 tmake_file=mips/t-mips-gas
4406 extra_passes="mips-tfile mips-tdump"
4408 if test x$gnu_ld != xyes
4412 # if test x$enable_threads = xyes; then
4413 # thread_file='irix'
4416 mips-sgi-irix4*) # Mostly like a MIPS.
4417 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4418 if test x$stabs = xyes; then
4419 tm_file="${tm_file} dbx.h"
4422 xmake_file=mips/x-iris
4423 if test x$gas = xyes
4425 tmake_file=mips/t-mips-gas
4427 extra_passes="mips-tfile mips-tdump"
4429 if test x$gnu_ld != xyes
4433 # if test x$enable_threads = xyes; then
4434 # thread_file='irix'
4437 mips-sgi-*) # Mostly like a MIPS.
4438 tm_file="mips/iris3.h ${tm_file}"
4439 if test x$stabs = xyes; then
4440 tm_file="${tm_file} dbx.h"
4443 xmake_file=mips/x-iris3
4444 if test x$gas = xyes
4446 tmake_file=mips/t-mips-gas
4448 extra_passes="mips-tfile mips-tdump"
4450 if test x$gnu_ld != xyes
4455 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4456 tm_file="mips/osfrose.h ${tm_file}"
4457 xmake_file=mips/x-osfrose
4458 tmake_file=mips/t-osfrose
4459 extra_objs=halfpic.o
4462 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4463 tm_file=mips/dec-osf1.h
4464 if test x$stabs = xyes; then
4465 tm_file="${tm_file} dbx.h"
4467 xmake_file=mips/x-dec-osf1
4468 if test x$gas = xyes
4470 tmake_file=mips/t-mips-gas
4472 tmake_file=mips/t-ultrix
4473 extra_passes="mips-tfile mips-tdump"
4475 if test x$gnu_ld != xyes
4480 mips-dec-bsd*) # Decstation running 4.4 BSD
4481 tm_file=mips/dec-bsd.h
4483 if test x$gas = xyes
4485 tmake_file=mips/t-mips-gas
4487 tmake_file=mips/t-ultrix
4488 extra_passes="mips-tfile mips-tdump"
4490 if test x$gnu_ld != xyes
4495 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4496 tm_file=mips/netbsd.h
4497 # On NetBSD, the headers are already okay, except for math.h.
4498 fixincludes=fixinc.wrap
4501 mips*-*-linux*) # Linux MIPS, either endian.
4503 xm_file="xm-siglist.h ${xm_file}"
4505 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4506 *) tm_file="mips/elf.h mips/linux.h" ;;
4508 extra_parts="crtbegin.o crtend.o"
4511 fixincludes=Makefile.in
4513 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4514 tm_file="mips/news4.h ${tm_file}"
4515 if test x$stabs = xyes; then
4516 tm_file="${tm_file} dbx.h"
4518 if test x$gas = xyes
4520 tmake_file=mips/t-mips-gas
4522 extra_passes="mips-tfile mips-tdump"
4524 if test x$gnu_ld != xyes
4528 xmake_file=mips/x-sony
4530 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4531 # That is based on svr4.
4532 # t-svr4 is not right because this system doesn't use ELF.
4533 tm_file="mips/news5.h ${tm_file}"
4534 if test x$stabs = xyes; then
4535 tm_file="${tm_file} dbx.h"
4537 xm_file="xm-siglist.h ${xm_file}"
4539 if test x$gas = xyes
4541 tmake_file=mips/t-mips-gas
4543 extra_passes="mips-tfile mips-tdump"
4545 if test x$gnu_ld != xyes
4550 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4551 tm_file="mips/svr4-5.h mips/svr4-t.h"
4552 if test x$stabs = xyes; then
4553 tm_file="${tm_file} dbx.h"
4555 xm_file="xm-siglist.h ${xm_file}"
4557 xmake_file=mips/x-sysv
4558 if test x$gas = xyes
4560 tmake_file=mips/t-mips-gas
4561 extra_parts="crtbegin.o crtend.o"
4563 tmake_file=mips/t-mips
4564 extra_passes="mips-tfile mips-tdump"
4566 if test x$gnu_ld != xyes
4571 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4572 tm_file="mips/ultrix.h ${tm_file}"
4573 if test x$stabs = xyes; then
4574 tm_file="${tm_file} dbx.h"
4576 xmake_file=mips/x-ultrix
4577 if test x$gas = xyes
4579 tmake_file=mips/t-mips-gas
4581 tmake_file=mips/t-ultrix
4582 extra_passes="mips-tfile mips-tdump"
4584 if test x$gnu_ld != xyes
4589 mips-*-riscos[56789]bsd*)
4590 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4591 if test x$stabs = xyes; then
4592 tm_file="${tm_file} dbx.h"
4594 if test x$gas = xyes
4596 tmake_file=mips/t-bsd-gas
4598 tmake_file=mips/t-bsd
4599 extra_passes="mips-tfile mips-tdump"
4601 if test x$gnu_ld != xyes
4606 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4607 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4608 if test x$stabs = xyes; then
4609 tm_file="${tm_file} dbx.h"
4611 if test x$gas = xyes
4613 tmake_file=mips/t-bsd-gas
4615 tmake_file=mips/t-bsd
4616 extra_passes="mips-tfile mips-tdump"
4618 if test x$gnu_ld != xyes
4623 mips-*-riscos[56789]sysv4*)
4624 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4625 if test x$stabs = xyes; then
4626 tm_file="${tm_file} dbx.h"
4628 xm_file="xm-siglist.h ${xm_file}"
4629 xmake_file=mips/x-sysv
4630 if test x$gas = xyes
4632 tmake_file=mips/t-svr4-gas
4634 tmake_file=mips/t-svr4
4635 extra_passes="mips-tfile mips-tdump"
4637 if test x$gnu_ld != xyes
4642 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4643 tm_file="mips/svr4-4.h ${tm_file}"
4644 if test x$stabs = xyes; then
4645 tm_file="${tm_file} dbx.h"
4648 xmake_file=mips/x-sysv
4649 if test x$gas = xyes
4651 tmake_file=mips/t-svr4-gas
4653 tmake_file=mips/t-svr4
4654 extra_passes="mips-tfile mips-tdump"
4656 if test x$gnu_ld != xyes
4661 mips-*-riscos[56789]sysv*)
4662 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4663 if test x$stabs = xyes; then
4664 tm_file="${tm_file} dbx.h"
4667 xmake_file=mips/x-sysv
4668 if test x$gas = xyes
4670 tmake_file=mips/t-svr3-gas
4672 tmake_file=mips/t-svr3
4673 extra_passes="mips-tfile mips-tdump"
4675 if test x$gnu_ld != xyes
4680 mips-*-sysv* | mips-*-riscos*sysv*)
4681 tm_file="mips/svr3-4.h ${tm_file}"
4682 if test x$stabs = xyes; then
4683 tm_file="${tm_file} dbx.h"
4686 xmake_file=mips/x-sysv
4687 if test x$gas = xyes
4689 tmake_file=mips/t-svr3-gas
4691 tmake_file=mips/t-svr3
4692 extra_passes="mips-tfile mips-tdump"
4694 if test x$gnu_ld != xyes
4699 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4700 tm_file=mips/mips-5.h
4701 if test x$stabs = xyes; then
4702 tm_file="${tm_file} dbx.h"
4704 if test x$gas = xyes
4706 tmake_file=mips/t-mips-gas
4708 extra_passes="mips-tfile mips-tdump"
4710 if test x$gnu_ld != xyes
4718 tm_file=mips/ecoffl.h
4719 if test x$stabs = xyes; then
4720 tm_file="${tm_file} dbx.h"
4722 tmake_file=mips/t-ecoff
4725 tm_file="gofast.h mips/ecoff.h"
4726 if test x$stabs = xyes; then
4727 tm_file="${tm_file} dbx.h"
4729 tmake_file=mips/t-ecoff
4732 tm_file="mips/elfl.h libgloss.h"
4733 tmake_file=mips/t-ecoff
4736 tm_file="mips/elf.h libgloss.h"
4737 tmake_file=mips/t-ecoff
4740 tm_file="mips/elfl64.h libgloss.h"
4741 tmake_file=mips/t-ecoff
4743 mips64orionel-*-elf*)
4744 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4745 tmake_file=mips/t-ecoff
4748 tm_file="mips/elf64.h libgloss.h"
4749 tmake_file=mips/t-ecoff
4752 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
4753 tmake_file=mips/t-ecoff
4755 mips64orion-*-rtems*)
4756 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
4757 tmake_file="mips/t-ecoff t-rtems"
4760 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4761 tmake_file=mips/t-r3900
4764 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4765 tmake_file=mips/t-r3900
4766 # FIXME mips-elf should be fixed to use crtstuff.
4769 mips-*-*) # Default MIPS RISC-OS 4.0.
4770 if test x$stabs = xyes; then
4771 tm_file="${tm_file} dbx.h"
4773 if test x$gas = xyes
4775 tmake_file=mips/t-mips-gas
4777 extra_passes="mips-tfile mips-tdump"
4779 if test x$gnu_ld != xyes
4786 tm_file="mn10200/mn10200.h"
4787 if test x$stabs = xyes
4789 tm_file="${tm_file} dbx.h"
4795 tm_file="mn10300/mn10300.h"
4796 if test x$stabs = xyes
4798 tm_file="${tm_file} dbx.h"
4803 tm_file=ns32k/encore.h
4807 tm_file=ns32k/sequent.h
4811 tm_file=ns32k/tek6100.h
4815 tm_file=ns32k/tek6200.h
4818 # This has not been updated to GCC 2.
4821 # xmake_file=ns32k/x-genix
4822 # tm_file=ns32k/genix.h
4826 tm_file=ns32k/merlin.h
4830 tm_file=ns32k/pc532-mach.h
4834 tm_file=ns32k/pc532-min.h
4835 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
4840 tm_file=ns32k/netbsd.h
4841 xm_file="ns32k/xm-netbsd.h ${xm_file}"
4842 # On NetBSD, the headers are already okay, except for math.h.
4843 fixincludes=fixinc.wrap
4847 tm_file="${tm_file} pdp11/2bsd.h"
4853 xmake_file=pyr/x-pyr
4860 xmake_file=romp/x-mach
4865 tm_file=rs6000/beos.h
4866 xm_file=rs6000/xm-beos.h
4867 tmake_file=rs6000/t-beos
4868 xmake_file=rs6000/x-beos
4870 powerpc-*-sysv* | powerpc-*-elf*)
4871 tm_file=rs6000/sysv4.h
4872 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4873 xm_defines="USG POSIX"
4874 extra_headers=ppc-asm.h
4875 if test x$gas = xyes
4877 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4879 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4881 xmake_file=rs6000/x-sysv4
4884 tm_file=rs6000/eabiaix.h
4885 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4886 fixincludes=Makefile.in
4887 extra_headers=ppc-asm.h
4890 tm_file=rs6000/eabisim.h
4891 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4892 fixincludes=Makefile.in
4893 extra_headers=ppc-asm.h
4896 tm_file=rs6000/eabi.h
4897 if test x$gas = xyes
4899 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4901 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4903 fixincludes=Makefile.in
4904 extra_headers=ppc-asm.h
4907 tm_file=rs6000/rtems.h
4908 if test x$gas = xyes
4910 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4912 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4914 fixincludes=Makefile.in
4915 extra_headers=ppc-asm.h
4917 powerpc-*-linux-gnulibc1)
4918 tm_file=rs6000/linux.h
4919 xm_file=rs6000/xm-sysv4.h
4920 out_file=rs6000/rs6000.c
4921 if test x$gas = xyes
4923 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4925 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
4928 fixincludes=Makefile.in
4929 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4930 extra_headers=ppc-asm.h
4931 if test x$enable_threads = xyes; then
4935 powerpc-*-linux-gnu*)
4936 tm_file=rs6000/linux.h
4937 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4938 xm_defines="USG ${xm_defines}"
4939 out_file=rs6000/rs6000.c
4940 if test x$gas = xyes
4942 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4944 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4947 fixincludes=Makefile.in
4948 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4949 extra_headers=ppc-asm.h
4950 if test x$enable_threads = xyes; then
4954 powerpc-wrs-vxworks*)
4956 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4957 xm_defines="USG POSIX"
4958 tm_file=rs6000/vxppc.h
4959 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4960 extra_headers=ppc-asm.h
4961 thread_file='vxworks'
4963 powerpcle-*-sysv* | powerpcle-*-elf*)
4964 tm_file=rs6000/sysv4le.h
4965 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
4966 xm_defines="USG POSIX"
4967 if test x$gas = xyes
4969 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4971 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4973 xmake_file=rs6000/x-sysv4
4974 extra_headers=ppc-asm.h
4976 powerpcle-*-eabisim*)
4977 tm_file=rs6000/eabilesim.h
4978 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4979 fixincludes=Makefile.in
4980 extra_headers=ppc-asm.h
4983 tm_file=rs6000/eabile.h
4984 if test x$gas = xyes
4986 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4988 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4990 fixincludes=Makefile.in
4991 extra_headers=ppc-asm.h
4993 powerpcle-*-winnt* )
4994 tm_file=rs6000/win-nt.h
4995 tmake_file=rs6000/t-winnt
4997 fixincludes=Makefile.in
4998 if test x$enable_threads = xyes; then
5001 extra_headers=ppc-asm.h
5003 powerpcle-*-pe | powerpcle-*-cygwin*)
5004 tm_file=rs6000/cygwin.h
5005 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5006 tmake_file=rs6000/t-winnt
5007 xmake_file=rs6000/x-cygwin
5009 fixincludes=Makefile.in
5010 if test x$enable_threads = xyes; then
5014 extra_headers=ppc-asm.h
5016 powerpcle-*-solaris2*)
5017 tm_file=rs6000/sol2.h
5018 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5019 xm_defines="USG POSIX"
5020 if test x$gas = xyes
5022 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5024 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5026 xmake_file=rs6000/x-sysv4
5029 fixincludes=fixinc.svr4;;
5031 fixincludes=fixinc.wrap;;
5033 extra_headers=ppc-asm.h
5035 rs6000-ibm-aix3.[01]*)
5036 tm_file=rs6000/aix31.h
5037 xmake_file=rs6000/x-aix31
5040 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5041 tm_file=rs6000/aix3newas.h
5042 if test x$host != x$target
5044 tmake_file=rs6000/t-xnewas
5046 tmake_file=rs6000/t-newas
5050 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5051 if test "$gnu_ld" = yes
5053 tm_file=rs6000/aix41-gld.h
5055 tm_file=rs6000/aix41.h
5057 if test x$host != x$target
5059 tmake_file=rs6000/t-xnewas
5061 tmake_file=rs6000/t-newas
5063 xmake_file=rs6000/x-aix41
5066 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
5067 tm_file=rs6000/aix43.h
5068 if test x$host != x$target
5070 tmake_file=rs6000/t-xaix43
5072 tmake_file=rs6000/t-aix43
5074 xmake_file=rs6000/x-aix43
5077 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5078 tm_file=rs6000/aix43.h
5079 if test x$host != x$target
5081 tmake_file=rs6000/t-xaix43
5083 tmake_file=rs6000/t-aix43
5085 xmake_file=rs6000/x-aix43
5095 tm_file=rs6000/mach.h
5096 xm_file="${xm_file} rs6000/xm-mach.h"
5097 xmake_file=rs6000/x-mach
5101 tm_file=rs6000/lynx.h
5102 xm_file=rs6000/xm-lynx.h
5103 tmake_file=rs6000/t-rs6000
5104 xmake_file=rs6000/x-lynx
5112 tmake_file="sh/t-sh t-rtems"
5113 tm_file=sh/rtemself.h
5117 tmake_file="sh/t-sh t-rtems"
5126 xm_file="xm-alloca.h ${xm_file}"
5129 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5130 tm_file=sparc/vxsparc.h
5131 tmake_file=sparc/t-vxsparc
5133 thread_file='vxworks'
5136 tmake_file=sparc/t-sparcbare
5137 tm_file="sparc/aout.h libgloss.h"
5140 tm_file=sparc/netbsd.h
5141 # On NetBSD, the headers are already okay, except for math.h.
5142 fixincludes=fixinc.wrap
5150 tmake_file=sparc/t-elf
5151 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5155 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5156 xm_file="${xm_file} sparc/xm-linux.h"
5157 tm_file=sparc/linux-aout.h
5159 fixincludes=Makefile.in #On Linux, the headers are ok already.
5162 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5163 xm_file="${xm_file} sparc/xm-linux.h"
5165 tm_file=sparc/linux.h
5166 tmake_file="t-linux t-linux-gnulibc1"
5167 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5168 fixincludes=Makefile.in #On Linux, the headers are ok already.
5171 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5172 xm_file="${xm_file} sparc/xm-linux.h"
5174 tm_file=sparc/linux.h
5175 tmake_file="t-linux"
5176 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5177 fixincludes=Makefile.in #On Linux, the headers are ok already.
5179 if test x$enable_threads = xyes; then
5184 if test x$gas = xyes
5186 tm_file=sparc/lynx.h
5188 tm_file=sparc/lynx-ng.h
5190 xm_file=sparc/xm-lynx.h
5191 tmake_file=sparc/t-sunos41
5195 tmake_file="sparc/t-sparcbare t-rtems"
5196 tm_file=sparc/rtems.h
5198 sparcv9-*-solaris2*)
5199 tm_file=sparc/sol2-sld-64.h
5200 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5201 xm_defines="USG POSIX"
5202 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5203 xmake_file=sparc/x-sysv4
5204 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5205 fixincludes=fixinc.wrap
5207 if test x${enable_threads} = x ; then
5208 enable_threads=$have_pthread_h
5209 if test x${enable_threads} = x ; then
5210 enable_threads=$have_thread_h
5213 if test x${enable_threads} = xyes ; then
5214 if test x${have_pthread_h} = xyes ; then
5217 thread_file='solaris'
5221 sparc-hal-solaris2*)
5222 xm_file=sparc/xm-sol2.h
5223 tm_file="sparc/sol2.h sparc/hal.h"
5224 tmake_file="sparc/t-halos sparc/t-sol2"
5225 xmake_file=sparc/x-sysv4
5226 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5227 fixincludes=fixinc.svr4
5231 if test x$gnu_ld = xyes
5233 tm_file=sparc/sol2.h
5235 tm_file=sparc/sol2-sld.h
5237 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5238 xm_defines="USG POSIX"
5239 tmake_file=sparc/t-sol2
5240 xmake_file=sparc/x-sysv4
5241 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5244 fixincludes=fixinc.svr4;;
5246 fixincludes=fixinc.wrap;;
5249 if test x${enable_threads} = x; then
5250 enable_threads=$have_pthread_h
5251 if test x${enable_threads} = x; then
5252 enable_threads=$have_thread_h
5255 if test x${enable_threads} = xyes; then
5256 if test x${have_pthread_h} = xyes; then
5259 thread_file='solaris'
5264 tm_file=sparc/sunos4.h
5265 tmake_file=sparc/t-sunos40
5269 tm_file=sparc/sunos4.h
5270 tmake_file=sparc/t-sunos41
5272 if test x$gas = xyes; then
5273 tm_file="${tm_file} sparc/sun4gas.h"
5277 tm_file=sparc/sun4o3.h
5281 tm_file=sparc/sysv4.h
5282 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5283 xm_defines="USG POSIX"
5285 xmake_file=sparc/x-sysv4
5286 extra_parts="crtbegin.o crtend.o"
5289 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5290 xm_defines="USG POSIX"
5291 tm_file=sparc/vxsim.h
5292 tmake_file=sparc/t-vxsparc
5293 xmake_file=sparc/x-sysv4
5296 tm_file="sparc/splet.h libgloss.h"
5297 tmake_file=sparc/t-splet
5300 tm_file="sparc/litecoff.h libgloss.h"
5301 tmake_file=sparc/t-sparclite
5304 tm_file="sparc/lite.h aoutos.h libgloss.h"
5305 tmake_file=sparc/t-sparclite
5308 tmake_file=sparc/t-sp64
5309 tm_file=sparc/sp64-aout.h
5312 tmake_file=sparc/t-sp64
5313 tm_file=sparc/sp64-elf.h
5314 extra_parts="crtbegin.o crtend.o"
5316 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5317 tmake_file="t-linux sparc/t-linux64"
5318 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5319 tm_file=sparc/linux64.h
5321 fixincludes=Makefile.in # The headers are ok already.
5322 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5325 # This hasn't been upgraded to GCC 2.
5326 # tahoe-harris-*) # Harris tahoe, using COFF.
5327 # tm_file=tahoe/harris.h
5329 # tahoe-*-bsd*) # tahoe running BSD
5331 thumb-*-coff* | thumbel-*-coff*)
5333 out_file=arm/thumb.c
5334 xm_file=arm/xm-thumb.h
5335 md_file=arm/thumb.md
5336 tmake_file=arm/t-thumb
5337 fixincludes=Makefile.in # There is nothing to fix
5339 # This hasn't been upgraded to GCC 2.
5346 tm_file="v850/v850.h"
5347 xm_file="v850/xm-v850.h"
5348 tmake_file=v850/t-v850
5349 if test x$stabs = xyes
5351 tm_file="${tm_file} dbx.h"
5355 vax-*-bsd*) # vaxen running BSD
5359 vax-*-sysv*) # vaxen running system V
5360 tm_file="${tm_file} vax/vaxv.h"
5365 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5366 # On NetBSD, the headers are already okay, except for math.h.
5367 fixincludes=fixinc.wrap
5371 vax-*-ultrix*) # vaxen running ultrix
5372 tm_file="${tm_file} vax/ultrix.h"
5376 vax-*-vms*) # vaxen running VMS
5377 xm_file=vax/xm-vms.h
5381 vax-*-*) # vax default entry
5385 xm_file="${xm_file} xm-svr3"
5389 echo "Configuration $machine not supported" 1>&2
5396 ;; # Existing GNU/Linux systems do not use the GNU setup.
5398 # On the GNU system, the setup is just about the same on
5399 # each different CPU. The specific machines that GNU
5400 # supports are matched above and just set $cpu_type.
5401 xm_file="xm-gnu.h ${xm_file}"
5402 tm_file=${cpu_type}/gnu.h
5403 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5404 # GNU always uses ELF.
5406 # GNU tools are the only tools.
5409 # On GNU, the headers are already okay.
5410 fixincludes=Makefile.in
5411 xmake_file=x-linux # These details are the same as Linux.
5412 tmake_file=t-gnu # These are not.
5415 fixincludes=fixinc.svr4
5416 xmake_try_sysv=x-sysv
5417 install_headers_dir=install-headers-cpio
5420 install_headers_dir=install-headers-cpio
5424 # Distinguish i[34567]86
5425 # Also, do not run mips-tfile on MIPS if using gas.
5426 # Process --with-cpu= for PowerPC/rs6000
5427 target_cpu_default2=
5430 target_cpu_default2=1
5433 target_cpu_default2=2
5435 i686-*-* | i786-*-*)
5436 target_cpu_default2=3
5441 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
5444 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5447 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5450 target_cpu_default2="MASK_CPU_EV5"
5454 if test x$gas = xyes
5456 if test "$target_cpu_default2" = ""
5458 target_cpu_default2="MASK_GAS"
5460 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5465 case "x$with_cpu" in
5468 target_cpu_default2="TARGET_CPU_generic"
5471 # Distinguish cores, and major variants
5472 # arm7m doesn't exist, but D & I don't affect code
5473 xarm23678 | xarm250 | xarm67010 \
5474 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5475 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5476 | xstrongarm | xstrongarm110)
5477 target_cpu_default2="TARGET_CPU_$with_cpu"
5481 echo "--with-cpu must be passed a value" 1>&2
5486 if test x$pass2done = xyes
5488 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5495 mips*-*-ecoff* | mips*-*-elf*)
5496 if test x$gas = xyes
5498 if test x$gnu_ld = xyes
5500 target_cpu_default2=20
5502 target_cpu_default2=16
5507 if test x$gas = xyes
5509 target_cpu_default2=16
5512 powerpc*-*-* | rs6000-*-*)
5513 case "x$with_cpu" in
5517 xcommon | xpower | xpower2 | xpowerpc | xrios \
5518 | xrios1 | xrios2 | xrsc | xrsc1 \
5519 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5520 | x403 | x505 | x801 | x821 | x823 | x860)
5521 target_cpu_default2="\"$with_cpu\""
5525 echo "--with-cpu must be passed a value" 1>&2
5530 if test x$pass2done = xyes
5532 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5539 case ".$with_cpu" in
5541 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5543 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5544 target_cpu_default2="TARGET_CPU_$with_cpu"
5547 if test x$pass2done = xyes
5549 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5557 if test "$target_cpu_default2" != ""
5559 if test "$target_cpu_default" != ""
5561 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5563 target_cpu_default=$target_cpu_default2
5567 # No need for collect2 if we have the GNU linker.
5568 # Actually, there is now; GNU ld doesn't handle the EH info or
5569 # collecting for shared libraries.
5576 # Save data on machine being used to compile GCC in build_xm_file.
5577 # Save data on host machine in vars host_xm_file and host_xmake_file.
5578 if test x$pass1done = x
5580 if test x"$xm_file" = x
5581 then build_xm_file=$cpu_type/xm-$cpu_type.h
5582 else build_xm_file=$xm_file
5584 build_xm_defines=$xm_defines
5585 build_install_headers_dir=$install_headers_dir
5586 build_exeext=$exeext
5589 if test x$pass2done = x
5591 if test x"$xm_file" = x
5592 then host_xm_file=$cpu_type/xm-$cpu_type.h
5593 else host_xm_file=$xm_file
5595 host_xm_defines=$xm_defines
5596 if test x"$xmake_file" = x
5597 then xmake_file=$cpu_type/x-$cpu_type
5599 host_xmake_file="$xmake_file"
5600 host_truncate_target=$truncate_target
5601 host_extra_gcc_objs=$extra_gcc_objs
5602 host_extra_objs=$extra_host_objs
5609 extra_objs="${host_extra_objs} ${extra_objs}"
5611 # Default the target-machine variables that were not explicitly set.
5612 if test x"$tm_file" = x
5613 then tm_file=$cpu_type/$cpu_type.h; fi
5615 if test x$extra_headers = x
5616 then extra_headers=; fi
5618 if test x"$xm_file" = x
5619 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5621 if test x$md_file = x
5622 then md_file=$cpu_type/$cpu_type.md; fi
5624 if test x$out_file = x
5625 then out_file=$cpu_type/$cpu_type.c; fi
5627 if test x"$tmake_file" = x
5628 then tmake_file=$cpu_type/t-$cpu_type
5631 if test x"$dwarf2" = xyes
5632 then tm_file="tm-dwarf2.h $tm_file"
5635 if test x$float_format = x
5636 then float_format=i64
5639 if test x$enable_haifa = x
5642 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5647 # Say what files are being used for the output code and MD file.
5648 echo "Using \`$srcdir/config/$out_file' to output insns."
5649 echo "Using \`$srcdir/config/$md_file' as machine description file."
5652 for f in $tm_file; do
5655 if test $count = ax; then
5656 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5658 echo "Using the following target machine macro files:"
5659 for f in $tm_file; do
5660 echo " $srcdir/config/$f"
5665 for f in $host_xm_file; do
5668 if test $count = ax; then
5669 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5671 echo "Using the following host machine macro files:"
5672 for f in $host_xm_file; do
5673 echo " $srcdir/config/$f"
5677 if test "$host_xm_file" != "$build_xm_file"; then
5679 for f in $build_xm_file; do
5682 if test $count = ax; then
5683 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5685 echo "Using the following build machine macro files:"
5686 for f in $build_xm_file; do
5687 echo " $srcdir/config/$f"
5692 if test x$thread_file = x; then
5693 if test x$target_thread_file != x; then
5694 thread_file=$target_thread_file
5696 thread_file='single'
5700 # Set up the header files.
5701 # $links is the list of header files to create.
5702 # $vars is the list of shell variables with file names to include.
5703 # auto-host.h is the file containing items generated by autoconf and is
5704 # the first file included by config.h.
5706 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
5708 # If host=build, it is correct to have hconfig include auto-host.h
5709 # as well. If host!=build, we are in error and need to do more
5710 # work to find out the build config parameters.
5711 if test x$host = x$build
5713 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
5715 # We create a subdir, then run autoconf in the subdir.
5716 # To prevent recursion we set host and build for the new
5717 # invocation of configure to the build for this invocation
5724 /*) realsrcdir=${srcdir};;
5725 *) realsrcdir=../${srcdir};;
5727 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
5728 --target=$target --host=$build --build=$build
5730 # We just finished tests for the build machine, so rename
5731 # the file auto-build.h in the gcc directory.
5732 mv auto-host.h ../auto-build.h
5735 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
5738 xm_file="gansidecl.h ${xm_file}"
5739 tm_file="gansidecl.h ${tm_file}"
5741 vars="host_xm_file tm_file xm_file build_xm_file"
5742 links="config.h tm.h tconfig.h hconfig.h"
5743 defines="host_xm_defines null_defines xm_defines build_xm_defines"
5746 if test -f config.status; then mv -f config.status config.bak; fi
5749 while test -n "$vars"
5751 set $vars; var=$1; shift; vars=$*
5752 set $links; link=$1; shift; links=$*
5753 set $defines; define=$1; shift; defines=$*
5757 # Define TARGET_CPU_DEFAULT if the system wants one.
5758 # This substitutes for lots of *.h files.
5759 if test "$target_cpu_default" != "" -a $link = tm.h
5761 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5764 for file in `eval echo '$'$var`; do
5769 echo '#ifdef IN_GCC' >>$link
5772 echo "#include \"$file\"" >>$link
5777 echo '#endif' >>$link
5782 for def in `eval echo '$'$define`; do
5783 echo "#ifndef $def" >>$link
5784 echo "#define $def" >>$link
5785 echo "#endif" >>$link
5789 # Truncate the target if necessary
5790 if test x$host_truncate_target != x; then
5791 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5794 # Get the version trigger filename from the toplevel
5795 if test "${with_gcc_version_trigger+set}" = set; then
5796 gcc_version_trigger=$with_gcc_version_trigger
5798 gcc_version_trigger=${srcdir}/version.c
5800 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5802 # Internationalization
5804 VERSION="$gcc_version"
5805 cat >> confdefs.h <<EOF
5806 #define PACKAGE "$PACKAGE"
5809 cat >> confdefs.h <<EOF
5810 #define VERSION "$VERSION"
5818 # NLS support is still experimental, so disable it by default for now.
5819 # Check whether --enable-nls or --disable-nls was given.
5820 if test "${enable_nls+set}" = set; then
5821 enableval="$enable_nls"
5829 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
5830 echo "configure:5831: checking for strerror in -lcposix" >&5
5831 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
5832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 ac_save_LIBS="$LIBS"
5836 LIBS="-lcposix $LIBS"
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5849 if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5851 eval "ac_cv_lib_$ac_lib_var=yes"
5853 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5856 eval "ac_cv_lib_$ac_lib_var=no"
5859 LIBS="$ac_save_LIBS"
5862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5863 echo "$ac_t""yes" 1>&6
5864 LIBS="$LIBS -lcposix"
5866 echo "$ac_t""no" 1>&6
5871 echo $ac_n "checking for working const""... $ac_c" 1>&6
5872 echo "configure:5873: checking for working const" >&5
5873 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5874 echo $ac_n "(cached) $ac_c" 1>&6
5876 cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5882 /* Ultrix mips cc rejects this. */
5883 typedef int charset[2]; const charset x;
5884 /* SunOS 4.1.1 cc rejects this. */
5885 char const *const *ccp;
5887 /* NEC SVR4.0.2 mips cc rejects this. */
5888 struct point {int x, y;};
5889 static struct point const zero = {0,0};
5890 /* AIX XL C 1.02.0.0 rejects this.
5891 It does not let you subtract one const X* pointer from another in an arm
5892 of an if-expression whose if-part is not a constant expression */
5893 const char *g = "string";
5894 ccp = &g + (g ? g-g : 0);
5895 /* HPUX 7.0 cc rejects these. */
5898 ccp = (char const *const *) p;
5899 { /* SCO 3.2v4 cc rejects this. */
5901 char const *s = 0 ? (char *) 0 : (char const *) 0;
5905 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5907 const int *foo = &x[0];
5910 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5911 typedef const int *iptr;
5915 { /* AIX XL C 1.02.0.0 rejects this saying
5916 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5917 struct s { int j; const int *ap[3]; };
5918 struct s *b; b->j = 5;
5920 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5926 if { (eval echo configure:5927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5930 echo "configure: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5938 echo "$ac_t""$ac_cv_c_const" 1>&6
5939 if test $ac_cv_c_const = no; then
5940 cat >> confdefs.h <<\EOF
5946 echo $ac_n "checking for inline""... $ac_c" 1>&6
5947 echo "configure:5948: checking for inline" >&5
5948 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5952 for ac_kw in inline __inline__ __inline; do
5953 cat > conftest.$ac_ext <<EOF
5954 #line 5955 "configure"
5955 #include "confdefs.h"
5961 if { (eval echo configure:5962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5963 ac_cv_c_inline=$ac_kw; break
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5973 echo "$ac_t""$ac_cv_c_inline" 1>&6
5974 case "$ac_cv_c_inline" in
5976 no) cat >> confdefs.h <<\EOF
5980 *) cat >> confdefs.h <<EOF
5981 #define inline $ac_cv_c_inline
5986 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5987 echo "configure:5988: checking for off_t" >&5
5988 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5991 cat > conftest.$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5994 #include <sys/types.h>
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6003 ac_cv_type_off_t=yes
6011 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6012 if test $ac_cv_type_off_t = no; then
6013 cat >> confdefs.h <<\EOF
6019 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6020 echo "configure:6021: checking for size_t" >&5
6021 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6027 #include <sys/types.h>
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6036 ac_cv_type_size_t=yes
6039 ac_cv_type_size_t=no
6044 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6045 if test $ac_cv_type_size_t = no; then
6046 cat >> confdefs.h <<\EOF
6047 #define size_t unsigned
6052 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6053 # for constant arguments. Useless!
6054 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6055 echo "configure:6056: checking for working alloca.h" >&5
6056 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6064 char *p = alloca(2 * sizeof(int));
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6069 ac_cv_header_alloca_h=yes
6071 echo "configure: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6074 ac_cv_header_alloca_h=no
6079 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6080 if test $ac_cv_header_alloca_h = yes; then
6081 cat >> confdefs.h <<\EOF
6082 #define HAVE_ALLOCA_H 1
6087 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6088 echo "configure:6089: checking for alloca" >&5
6089 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6097 # define alloca __builtin_alloca
6100 # include <alloca.h>
6105 # ifndef alloca /* predefined by HP cc +Olibcalls */
6113 char *p = (char *) alloca(1);
6116 if { (eval echo configure:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6118 ac_cv_func_alloca_works=yes
6120 echo "configure: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6123 ac_cv_func_alloca_works=no
6128 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6129 if test $ac_cv_func_alloca_works = yes; then
6130 cat >> confdefs.h <<\EOF
6131 #define HAVE_ALLOCA 1
6136 if test $ac_cv_func_alloca_works = no; then
6137 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6138 # that cause trouble. Some versions do not even contain alloca or
6139 # contain a buggy version. If you still want to use their alloca,
6140 # use ar to extract alloca.o from them instead of compiling alloca.c.
6142 cat >> confdefs.h <<\EOF
6147 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6148 echo "configure:6149: checking whether alloca needs Cray hooks" >&5
6149 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6152 cat > conftest.$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 #if defined(CRAY) && ! defined(CRAY2)
6162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6163 egrep "webecray" >/dev/null 2>&1; then
6174 echo "$ac_t""$ac_cv_os_cray" 1>&6
6175 if test $ac_cv_os_cray = yes; then
6176 for ac_func in _getb67 GETB67 getb67; do
6177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6178 echo "configure:6179: checking for $ac_func" >&5
6179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 /* System header to define __stub macros and hopefully few prototypes,
6186 which can conflict with char $ac_func(); below. */
6188 /* Override any gcc2 internal prototype to avoid an error. */
6189 /* We use char because int might match the return type of a gcc2
6190 builtin and then its argument prototype would still apply. */
6195 /* The GNU C library defines this for functions which it implements
6196 to always fail with ENOSYS. Some functions are actually named
6197 something starting with __ and the normal name is an alias. */
6198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6208 eval "ac_cv_func_$ac_func=yes"
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6213 eval "ac_cv_func_$ac_func=no"
6218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6219 echo "$ac_t""yes" 1>&6
6220 cat >> confdefs.h <<EOF
6221 #define CRAY_STACKSEG_END $ac_func
6226 echo "$ac_t""no" 1>&6
6232 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6233 echo "configure:6234: checking stack direction for C alloca" >&5
6234 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6237 if test "$cross_compiling" = yes; then
6238 ac_cv_c_stack_direction=0
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6242 "configure"
6242 #include "confdefs.h"
6243 find_stack_direction ()
6245 static char *addr = 0;
6250 return find_stack_direction ();
6253 return (&dummy > addr) ? 1 : -1;
6257 exit (find_stack_direction() < 0);
6260 if { (eval echo configure:6261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6262 ac_cv_c_stack_direction=1
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 ac_cv_c_stack_direction=-1
6274 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6275 cat >> confdefs.h <<EOF
6276 #define STACK_DIRECTION $ac_cv_c_stack_direction
6281 for ac_hdr in unistd.h
6283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6285 echo "configure:6286: checking for $ac_hdr" >&5
6286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6289 cat > conftest.$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6295 { (eval echo configure:6296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6296 ac_err=`grep -v '^ *+' conftest.out`
6297 if test -z "$ac_err"; then
6299 eval "ac_cv_header_$ac_safe=yes"
6302 echo "configure: failed program was:" >&5
6303 cat conftest.$ac_ext >&5
6305 eval "ac_cv_header_$ac_safe=no"
6309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6310 echo "$ac_t""yes" 1>&6
6311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6312 cat >> confdefs.h <<EOF
6313 #define $ac_tr_hdr 1
6317 echo "$ac_t""no" 1>&6
6321 for ac_func in getpagesize
6323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6324 echo "configure:6325: checking for $ac_func" >&5
6325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func(); below. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6354 eval "ac_cv_func_$ac_func=yes"
6356 echo "configure: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6359 eval "ac_cv_func_$ac_func=no"
6364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6367 cat >> confdefs.h <<EOF
6368 #define $ac_tr_func 1
6372 echo "$ac_t""no" 1>&6
6376 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6377 echo "configure:6378: checking for working mmap" >&5
6378 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6381 if test "$cross_compiling" = yes; then
6382 ac_cv_func_mmap_fixed_mapped=no
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6388 /* Thanks to Mike Haertel and Jim Avera for this test.
6389 Here is a matrix of mmap possibilities:
6390 mmap private not fixed
6391 mmap private fixed at somewhere currently unmapped
6392 mmap private fixed at somewhere already mapped
6393 mmap shared not fixed
6394 mmap shared fixed at somewhere currently unmapped
6395 mmap shared fixed at somewhere already mapped
6396 For private mappings, we should verify that changes cannot be read()
6397 back from the file, nor mmap's back from the file at a different
6398 address. (There have been systems where private was not correctly
6399 implemented like the infamous i386 svr4.0, and systems where the
6400 VM page cache was not coherent with the filesystem buffer cache
6401 like early versions of FreeBSD and possibly contemporary NetBSD.)
6402 For shared mappings, we should conversely verify that changes get
6403 propogated back to all the places they're supposed to be.
6405 Grep wants private fixed already mapped.
6406 The main things grep needs to know about mmap are:
6407 * does it exist and is it safe to write into the mmap'd area
6408 * how to use it (BSD variants) */
6409 #include <sys/types.h>
6411 #include <sys/mman.h>
6413 /* This mess was copied from the GNU getpagesize.h. */
6414 #ifndef HAVE_GETPAGESIZE
6415 # ifdef HAVE_UNISTD_H
6416 # include <unistd.h>
6419 /* Assume that all systems that can run configure have sys/param.h. */
6420 # ifndef HAVE_SYS_PARAM_H
6421 # define HAVE_SYS_PARAM_H 1
6424 # ifdef _SC_PAGESIZE
6425 # define getpagesize() sysconf(_SC_PAGESIZE)
6426 # else /* no _SC_PAGESIZE */
6427 # ifdef HAVE_SYS_PARAM_H
6428 # include <sys/param.h>
6429 # ifdef EXEC_PAGESIZE
6430 # define getpagesize() EXEC_PAGESIZE
6431 # else /* no EXEC_PAGESIZE */
6433 # define getpagesize() NBPG * CLSIZE
6436 # endif /* no CLSIZE */
6437 # else /* no NBPG */
6439 # define getpagesize() NBPC
6440 # else /* no NBPC */
6442 # define getpagesize() PAGESIZE
6443 # endif /* PAGESIZE */
6444 # endif /* no NBPC */
6445 # endif /* no NBPG */
6446 # endif /* no EXEC_PAGESIZE */
6447 # else /* no HAVE_SYS_PARAM_H */
6448 # define getpagesize() 8192 /* punt totally */
6449 # endif /* no HAVE_SYS_PARAM_H */
6450 # endif /* no _SC_PAGESIZE */
6452 #endif /* no HAVE_GETPAGESIZE */
6455 extern "C" { void *malloc(unsigned); }
6463 char *data, *data2, *data3;
6467 pagesize = getpagesize();
6470 * First, make a file with some known garbage in it.
6472 data = malloc(pagesize);
6475 for (i = 0; i < pagesize; ++i)
6476 *(data + i) = rand();
6478 fd = creat("conftestmmap", 0600);
6481 if (write(fd, data, pagesize) != pagesize)
6486 * Next, try to mmap the file at a fixed address which
6487 * already has something else allocated at it. If we can,
6488 * also make sure that we see the same garbage.
6490 fd = open("conftestmmap", O_RDWR);
6493 data2 = malloc(2 * pagesize);
6496 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6497 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6498 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6500 for (i = 0; i < pagesize; ++i)
6501 if (*(data + i) != *(data2 + i))
6505 * Finally, make sure that changes to the mapped area
6506 * do not percolate back to the file as seen by read().
6507 * (This is a bug on some variants of i386 svr4.0.)
6509 for (i = 0; i < pagesize; ++i)
6510 *(data2 + i) = *(data2 + i) + 1;
6511 data3 = malloc(pagesize);
6514 if (read(fd, data3, pagesize) != pagesize)
6516 for (i = 0; i < pagesize; ++i)
6517 if (*(data + i) != *(data3 + i))
6520 unlink("conftestmmap");
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6527 ac_cv_func_mmap_fixed_mapped=yes
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6532 ac_cv_func_mmap_fixed_mapped=no
6539 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6540 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6541 cat >> confdefs.h <<\EOF
6548 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6549 unistd.h sys/param.h
6551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6553 echo "configure:6554: checking for $ac_hdr" >&5
6554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6557 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6563 { (eval echo configure:6564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6564 ac_err=`grep -v '^ *+' conftest.out`
6565 if test -z "$ac_err"; then
6567 eval "ac_cv_header_$ac_safe=yes"
6570 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6573 eval "ac_cv_header_$ac_safe=no"
6577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6578 echo "$ac_t""yes" 1>&6
6579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6580 cat >> confdefs.h <<EOF
6581 #define $ac_tr_hdr 1
6585 echo "$ac_t""no" 1>&6
6589 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6590 strdup __argz_count __argz_stringify __argz_next
6592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6593 echo "configure:6594: checking for $ac_func" >&5
6594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6595 echo $ac_n "(cached) $ac_c" 1>&6
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* System header to define __stub macros and hopefully few prototypes,
6601 which can conflict with char $ac_func(); below. */
6603 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6610 /* The GNU C library defines this for functions which it implements
6611 to always fail with ENOSYS. Some functions are actually named
6612 something starting with __ and the normal name is an alias. */
6613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6621 if { (eval echo configure:6622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6623 eval "ac_cv_func_$ac_func=yes"
6625 echo "configure: failed program was:" >&5
6626 cat conftest.$ac_ext >&5
6628 eval "ac_cv_func_$ac_func=no"
6633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6634 echo "$ac_t""yes" 1>&6
6635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6636 cat >> confdefs.h <<EOF
6637 #define $ac_tr_func 1
6641 echo "$ac_t""no" 1>&6
6646 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6647 for ac_func in stpcpy
6649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6650 echo "configure:6651: checking for $ac_func" >&5
6651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6652 echo $ac_n "(cached) $ac_c" 1>&6
6654 cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6657 /* System header to define __stub macros and hopefully few prototypes,
6658 which can conflict with char $ac_func(); below. */
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 /* We use char because int might match the return type of a gcc2
6662 builtin and then its argument prototype would still apply. */
6667 /* The GNU C library defines this for functions which it implements
6668 to always fail with ENOSYS. Some functions are actually named
6669 something starting with __ and the normal name is an alias. */
6670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6680 eval "ac_cv_func_$ac_func=yes"
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 eval "ac_cv_func_$ac_func=no"
6690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6691 echo "$ac_t""yes" 1>&6
6692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6693 cat >> confdefs.h <<EOF
6694 #define $ac_tr_func 1
6698 echo "$ac_t""no" 1>&6
6703 if test "${ac_cv_func_stpcpy}" = "yes"; then
6704 cat >> confdefs.h <<\EOF
6705 #define HAVE_STPCPY 1
6710 if test $ac_cv_header_locale_h = yes; then
6711 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6712 echo "configure:6713: checking for LC_MESSAGES" >&5
6713 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6
6716 cat > conftest.$ac_ext <<EOF
6717 #line 6718 "configure"
6718 #include "confdefs.h"
6724 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6726 am_cv_val_LC_MESSAGES=yes
6728 echo "configure: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6731 am_cv_val_LC_MESSAGES=no
6736 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
6737 if test $am_cv_val_LC_MESSAGES = yes; then
6738 cat >> confdefs.h <<\EOF
6739 #define HAVE_LC_MESSAGES 1
6744 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
6745 echo "configure:6746: checking whether NLS is requested" >&5
6746 # Check whether --enable-nls or --disable-nls was given.
6747 if test "${enable_nls+set}" = set; then
6748 enableval="$enable_nls"
6754 echo "$ac_t""$USE_NLS" 1>&6
6757 USE_INCLUDED_LIBINTL=no
6759 if test "$USE_NLS" = "yes"; then
6760 cat >> confdefs.h <<\EOF
6761 #define ENABLE_NLS 1
6764 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
6765 echo "configure:6766: checking whether included gettext is requested" >&5
6766 # Check whether --with-included-gettext or --without-included-gettext was given.
6767 if test "${with_included_gettext+set}" = set; then
6768 withval="$with_included_gettext"
6769 nls_cv_force_use_gnu_gettext=$withval
6771 nls_cv_force_use_gnu_gettext=no
6774 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6776 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6777 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6779 nls_cv_header_libgt=
6782 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6783 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6784 echo "configure:6785: checking for libintl.h" >&5
6785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 #include <libintl.h>
6793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6794 { (eval echo configure:6795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6795 ac_err=`grep -v '^ *+' conftest.out`
6796 if test -z "$ac_err"; then
6798 eval "ac_cv_header_$ac_safe=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 eval "ac_cv_header_$ac_safe=no"
6808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6809 echo "$ac_t""yes" 1>&6
6810 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
6811 echo "configure:6812: checking for gettext in libc" >&5
6812 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6818 #include <libintl.h>
6820 return (int) gettext ("")
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6825 gt_cv_func_gettext_libc=yes
6827 echo "configure: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6830 gt_cv_func_gettext_libc=no
6835 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
6837 if test "$gt_cv_func_gettext_libc" != "yes"; then
6838 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
6839 echo "configure:6840: checking for bindtextdomain in -lintl" >&5
6840 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
6841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 ac_save_LIBS="$LIBS"
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 /* Override any gcc2 internal prototype to avoid an error. */
6850 /* We use char because int might match the return type of a gcc2
6851 builtin and then its argument prototype would still apply. */
6852 char bindtextdomain();
6858 if { (eval echo configure:6859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6860 eval "ac_cv_lib_$ac_lib_var=yes"
6862 echo "configure: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6865 eval "ac_cv_lib_$ac_lib_var=no"
6868 LIBS="$ac_save_LIBS"
6871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6872 echo "$ac_t""yes" 1>&6
6873 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
6874 echo "configure:6875: checking for gettext in libintl" >&5
6875 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
6879 echo "configure:6880: checking for gettext in -lintl" >&5
6880 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
6881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6884 ac_save_LIBS="$LIBS"
6886 cat > conftest.$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 /* Override any gcc2 internal prototype to avoid an error. */
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6898 if { (eval echo configure:6899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6900 eval "ac_cv_lib_$ac_lib_var=yes"
6902 echo "configure: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6905 eval "ac_cv_lib_$ac_lib_var=no"
6908 LIBS="$ac_save_LIBS"
6911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6912 echo "$ac_t""yes" 1>&6
6913 gt_cv_func_gettext_libintl=yes
6915 echo "$ac_t""no" 1>&6
6916 gt_cv_func_gettext_libintl=no
6921 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
6923 echo "$ac_t""no" 1>&6
6928 if test "$gt_cv_func_gettext_libc" = "yes" \
6929 || test "$gt_cv_func_gettext_libintl" = "yes"; then
6930 cat >> confdefs.h <<\EOF
6931 #define HAVE_GETTEXT 1
6934 # Extract the first word of "msgfmt", so it can be a program name with args.
6935 set dummy msgfmt; ac_word=$2
6936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6937 echo "configure:6938: checking for $ac_word" >&5
6938 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6943 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6947 for ac_dir in $PATH; do
6948 test -z "$ac_dir" && ac_dir=.
6949 if test -f $ac_dir/$ac_word; then
6950 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6951 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6957 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6961 MSGFMT="$ac_cv_path_MSGFMT"
6962 if test -n "$MSGFMT"; then
6963 echo "$ac_t""$MSGFMT" 1>&6
6965 echo "$ac_t""no" 1>&6
6967 if test "$MSGFMT" != "no"; then
6968 for ac_func in dcgettext
6970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6971 echo "configure:6972: checking for $ac_func" >&5
6972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978 /* System header to define __stub macros and hopefully few prototypes,
6979 which can conflict with char $ac_func(); below. */
6981 /* Override any gcc2 internal prototype to avoid an error. */
6982 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */
6988 /* The GNU C library defines this for functions which it implements
6989 to always fail with ENOSYS. Some functions are actually named
6990 something starting with __ and the normal name is an alias. */
6991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6999 if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7001 eval "ac_cv_func_$ac_func=yes"
7003 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7006 eval "ac_cv_func_$ac_func=no"
7011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7012 echo "$ac_t""yes" 1>&6
7013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7014 cat >> confdefs.h <<EOF
7015 #define $ac_tr_func 1
7019 echo "$ac_t""no" 1>&6
7023 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7024 set dummy gmsgfmt; ac_word=$2
7025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7026 echo "configure:7027: checking for $ac_word" >&5
7027 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7032 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7035 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7039 for ac_dir in $PATH; do
7040 test -z "$ac_dir" && ac_dir=.
7041 if test -f $ac_dir/$ac_word; then
7042 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7047 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7051 GMSGFMT="$ac_cv_path_GMSGFMT"
7052 if test -n "$GMSGFMT"; then
7053 echo "$ac_t""$GMSGFMT" 1>&6
7055 echo "$ac_t""no" 1>&6
7058 # Extract the first word of "xgettext", so it can be a program name with args.
7059 set dummy xgettext; ac_word=$2
7060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7061 echo "configure:7062: checking for $ac_word" >&5
7062 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7063 echo $ac_n "(cached) $ac_c" 1>&6
7067 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7071 for ac_dir in $PATH; do
7072 test -z "$ac_dir" && ac_dir=.
7073 if test -f $ac_dir/$ac_word; then
7074 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7075 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7081 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7085 XGETTEXT="$ac_cv_path_XGETTEXT"
7086 if test -n "$XGETTEXT"; then
7087 echo "$ac_t""$XGETTEXT" 1>&6
7089 echo "$ac_t""no" 1>&6
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7097 extern int _nl_msg_cat_cntr;
7098 return _nl_msg_cat_cntr
7101 if { (eval echo configure:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7118 echo "$ac_t""no" 1>&6
7122 if test "$CATOBJEXT" = "NONE"; then
7123 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7124 echo "configure:7125: checking whether catgets can be used" >&5
7125 # Check whether --with-catgets or --without-catgets was given.
7126 if test "${with_catgets+set}" = set; then
7127 withval="$with_catgets"
7128 nls_cv_use_catgets=$withval
7130 nls_cv_use_catgets=no
7133 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7135 if test "$nls_cv_use_catgets" = "yes"; then
7136 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7137 echo "configure:7138: checking for main in -li" >&5
7138 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7140 echo $ac_n "(cached) $ac_c" 1>&6
7142 ac_save_LIBS="$LIBS"
7144 cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7154 eval "ac_cv_lib_$ac_lib_var=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7159 eval "ac_cv_lib_$ac_lib_var=no"
7162 LIBS="$ac_save_LIBS"
7165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7169 cat >> confdefs.h <<EOF
7170 #define $ac_tr_lib 1
7176 echo "$ac_t""no" 1>&6
7179 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7180 echo "configure:7181: checking for catgets" >&5
7181 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure"
7186 #include "confdefs.h"
7187 /* System header to define __stub macros and hopefully few prototypes,
7188 which can conflict with char catgets(); below. */
7190 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7197 /* The GNU C library defines this for functions which it implements
7198 to always fail with ENOSYS. Some functions are actually named
7199 something starting with __ and the normal name is an alias. */
7200 #if defined (__stub_catgets) || defined (__stub___catgets)
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7210 eval "ac_cv_func_catgets=yes"
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7215 eval "ac_cv_func_catgets=no"
7220 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7221 echo "$ac_t""yes" 1>&6
7222 cat >> confdefs.h <<\EOF
7223 #define HAVE_CATGETS 1
7226 INTLOBJS="\$(CATOBJS)"
7227 # Extract the first word of "gencat", so it can be a program name with args.
7228 set dummy gencat; ac_word=$2
7229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7230 echo "configure:7231: checking for $ac_word" >&5
7231 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7232 echo $ac_n "(cached) $ac_c" 1>&6
7236 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7239 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7243 for ac_dir in $PATH; do
7244 test -z "$ac_dir" && ac_dir=.
7245 if test -f $ac_dir/$ac_word; then
7246 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7251 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7255 GENCAT="$ac_cv_path_GENCAT"
7256 if test -n "$GENCAT"; then
7257 echo "$ac_t""$GENCAT" 1>&6
7259 echo "$ac_t""no" 1>&6
7261 if test "$GENCAT" != "no"; then
7262 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7263 set dummy gmsgfmt; ac_word=$2
7264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7265 echo "configure:7266: checking for $ac_word" >&5
7266 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7267 echo $ac_n "(cached) $ac_c" 1>&6
7271 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7274 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7278 for ac_dir in $PATH; do
7279 test -z "$ac_dir" && ac_dir=.
7280 if test -f $ac_dir/$ac_word; then
7281 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7286 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7290 GMSGFMT="$ac_cv_path_GMSGFMT"
7291 if test -n "$GMSGFMT"; then
7292 echo "$ac_t""$GMSGFMT" 1>&6
7294 echo "$ac_t""no" 1>&6
7297 if test "$GMSGFMT" = "no"; then
7298 # Extract the first word of "msgfmt", so it can be a program name with args.
7299 set dummy msgfmt; ac_word=$2
7300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7301 echo "configure:7302: checking for $ac_word" >&5
7302 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7303 echo $ac_n "(cached) $ac_c" 1>&6
7307 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7311 for ac_dir in $PATH; do
7312 test -z "$ac_dir" && ac_dir=.
7313 if test -f $ac_dir/$ac_word; then
7314 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7315 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7321 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7325 GMSGFMT="$ac_cv_path_GMSGFMT"
7326 if test -n "$GMSGFMT"; then
7327 echo "$ac_t""$GMSGFMT" 1>&6
7329 echo "$ac_t""no" 1>&6
7333 # Extract the first word of "xgettext", so it can be a program name with args.
7334 set dummy xgettext; ac_word=$2
7335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7336 echo "configure:7337: checking for $ac_word" >&5
7337 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7342 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7346 for ac_dir in $PATH; do
7347 test -z "$ac_dir" && ac_dir=.
7348 if test -f $ac_dir/$ac_word; then
7349 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7350 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7356 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7360 XGETTEXT="$ac_cv_path_XGETTEXT"
7361 if test -n "$XGETTEXT"; then
7362 echo "$ac_t""$XGETTEXT" 1>&6
7364 echo "$ac_t""no" 1>&6
7367 USE_INCLUDED_LIBINTL=yes
7371 INTLDEPS='$(top_builddir)/intl/libintl.a'
7373 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7374 nls_cv_header_intl=intl/libintl.h
7375 nls_cv_header_libgt=intl/libgettext.h
7378 echo "$ac_t""no" 1>&6
7384 if test "$CATOBJEXT" = "NONE"; then
7385 nls_cv_use_gnu_gettext=yes
7389 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7390 INTLOBJS="\$(GETTOBJS)"
7391 # Extract the first word of "msgfmt", so it can be a program name with args.
7392 set dummy msgfmt; ac_word=$2
7393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7394 echo "configure:7395: checking for $ac_word" >&5
7395 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7400 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7404 for ac_dir in $PATH; do
7405 test -z "$ac_dir" && ac_dir=.
7406 if test -f $ac_dir/$ac_word; then
7407 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7408 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7414 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7418 MSGFMT="$ac_cv_path_MSGFMT"
7419 if test -n "$MSGFMT"; then
7420 echo "$ac_t""$MSGFMT" 1>&6
7422 echo "$ac_t""no" 1>&6
7425 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7426 set dummy gmsgfmt; ac_word=$2
7427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7428 echo "configure:7429: checking for $ac_word" >&5
7429 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7434 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7437 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7441 for ac_dir in $PATH; do
7442 test -z "$ac_dir" && ac_dir=.
7443 if test -f $ac_dir/$ac_word; then
7444 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7453 GMSGFMT="$ac_cv_path_GMSGFMT"
7454 if test -n "$GMSGFMT"; then
7455 echo "$ac_t""$GMSGFMT" 1>&6
7457 echo "$ac_t""no" 1>&6
7460 # Extract the first word of "xgettext", so it can be a program name with args.
7461 set dummy xgettext; ac_word=$2
7462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7463 echo "configure:7464: checking for $ac_word" >&5
7464 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7469 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7473 for ac_dir in $PATH; do
7474 test -z "$ac_dir" && ac_dir=.
7475 if test -f $ac_dir/$ac_word; then
7476 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7477 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7483 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7487 XGETTEXT="$ac_cv_path_XGETTEXT"
7488 if test -n "$XGETTEXT"; then
7489 echo "$ac_t""$XGETTEXT" 1>&6
7491 echo "$ac_t""no" 1>&6
7495 USE_INCLUDED_LIBINTL=yes
7499 INTLDEPS='$(top_builddir)/intl/libintl.a'
7501 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7502 nls_cv_header_intl=intl/libintl.h
7503 nls_cv_header_libgt=intl/libgettext.h
7506 if test "$XGETTEXT" != ":"; then
7507 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7510 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7515 # We need to process the po/ directory.
7519 nls_cv_header_intl=intl/libintl.h
7520 nls_cv_header_libgt=intl/libgettext.h
7526 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7527 # because some of the sources are only built for this goal.
7528 if test "$PACKAGE" = gettext; then
7530 USE_INCLUDED_LIBINTL=yes
7533 for lang in $ALL_LINGUAS; do
7534 GMOFILES="$GMOFILES $lang.gmo"
7535 POFILES="$POFILES $lang.po"
7551 if test "x$CATOBJEXT" != "x"; then
7552 if test "x$ALL_LINGUAS" = "x"; then
7555 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7556 echo "configure:7557: checking for catalogs to be installed" >&5
7558 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7559 case "$ALL_LINGUAS" in
7560 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7563 LINGUAS=$NEW_LINGUAS
7564 echo "$ac_t""$LINGUAS" 1>&6
7567 if test -n "$LINGUAS"; then
7568 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7572 if test $ac_cv_header_locale_h = yes; then
7573 INCLUDE_LOCALE_H="#include <locale.h>"
7576 /* The system does not provide the header <locale.h>. Take care yourself. */"
7580 test -d intl || mkdir intl
7581 if test "$CATOBJEXT" = ".cat"; then
7582 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7583 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7584 echo "configure:7585: checking for linux/version.h" >&5
7585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7591 #include <linux/version.h>
7593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7594 { (eval echo configure:7595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7595 ac_err=`grep -v '^ *+' conftest.out`
7596 if test -z "$ac_err"; then
7598 eval "ac_cv_header_$ac_safe=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 eval "ac_cv_header_$ac_safe=no"
7608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7612 echo "$ac_t""no" 1>&6
7617 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
7619 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7620 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
7622 if test "$PACKAGE" = "gettext"; then
7633 if test -n "$ac_aux_dir"; then
7634 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7636 if test -z "$MKINSTALLDIRS"; then
7637 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7644 test -d po || mkdir po
7645 if test "x$srcdir" != "x."; then
7646 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7647 posrcprefix="$srcdir/"
7649 posrcprefix="../$srcdir/"
7655 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7656 < $srcdir/po/POTFILES.in > po/POTFILES
7658 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7660 # Get an absolute path to the GCC top-level source directory
7666 # Conditionalize the makefile for this host machine.
7667 # Make-host contains the concatenation of all host makefile fragments
7668 # [there can be more than one]. This file is built by configure.frag.
7669 host_overrides=Make-host
7670 dep_host_xmake_file=
7671 for f in .. ${host_xmake_file}
7673 if test -f ${srcdir}/config/$f
7675 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
7679 # Conditionalize the makefile for this target machine.
7680 # Make-target contains the concatenation of all host makefile fragments
7681 # [there can be more than one]. This file is built by configure.frag.
7682 target_overrides=Make-target
7684 for f in .. ${tmake_file}
7686 if test -f ${srcdir}/config/$f
7688 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
7692 # If the host doesn't support symlinks, modify CC in
7693 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7694 # Otherwise, we can use "CC=$(CC)".
7696 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
7698 cc_set_by_configure="\$(CC)"
7699 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
7702 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
7704 symbolic_link="cp -p"
7708 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7709 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7713 out_object_file=`basename $out_file .c`.o
7716 for f in $tm_file; do
7717 if test $f != "gansidecl.h" ; then
7718 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
7720 tm_file_list="${tm_file_list} $f"
7725 for f in $host_xm_file; do
7726 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
7727 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
7729 host_xm_file_list="${host_xm_file_list} $f"
7734 for f in $build_xm_file; do
7735 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
7736 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
7738 build_xm_file_list="${build_xm_file_list} $f"
7742 # Define macro CROSS_COMPILE in compilation
7743 # if this is a cross-compiler.
7744 # Also use all.cross instead of all.internal
7745 # and add cross-make to Makefile.
7746 cross_overrides="/dev/null"
7747 if test x$host != x$target
7749 cross_defines="CROSS=-DCROSS_COMPILE"
7750 cross_overrides="${topdir}/cross-make"
7753 # When building gcc with a cross-compiler, we need to fix a few things.
7754 # This must come after cross-make as we want all.build to override
7756 build_overrides="/dev/null"
7757 if test x$build != x$host
7759 build_overrides="${topdir}/build-make"
7762 # Expand extra_headers to include complete path.
7763 # This substitutes for lots of t-* files.
7765 if test "x$extra_headers" = x
7768 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
7769 for file in $extra_headers;
7771 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
7775 if test x$use_collect2 = xno; then
7779 # Add a definition of USE_COLLECT2 if system wants one.
7780 # Also tell toplev.c what to do.
7781 # This substitutes for lots of t-* files.
7782 if test x$use_collect2 = x
7787 will_use_collect2="collect2"
7788 maybe_use_collect2="-DUSE_COLLECT2"
7792 # Set MD_DEPS if the real md file is in md.pre-cpp.
7793 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
7794 # for line oriented comments, so we must always use a GNU cpp. If
7795 # building gcc with a cross compiler, use the cross compiler just
7796 # built. Otherwise, we can use the cpp just built.
7798 if test "x$md_cppflags" = x
7800 md_file_sub=$srcdir/config/$md_file
7805 # If we have gas in the build tree, make a link to it.
7806 if test -f ../gas/Makefile; then
7807 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
7810 # If we have nm in the build tree, make a link to it.
7811 if test -f ../binutils/Makefile; then
7812 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
7815 # If we have ld in the build tree, make a link to it.
7816 if test -f ../ld/Makefile; then
7817 # if test x$use_collect2 = x; then
7818 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
7820 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
7824 # Figure out what assembler alignment features are present.
7825 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
7826 echo "configure:7827: checking assembler alignment features" >&5
7828 gcc_cv_as_alignment_features=
7829 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
7830 if test -x "$DEFAULT_ASSEMBLER"; then
7831 gcc_cv_as="$DEFAULT_ASSEMBLER"
7832 elif test -x "$AS"; then
7834 elif test -x as$host_exeext; then
7835 # Build using assembler in the current directory.
7836 gcc_cv_as=./as$host_exeext
7837 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
7838 # Single tree build which includes gas.
7839 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
7841 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
7842 if test x$gcc_cv_gas_version != x; then
7846 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
7847 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
7848 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
7849 # Gas version 2.6 and later support for .balign and .p2align.
7850 # bytes to skip when using .p2align.
7851 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
7852 gcc_cv_as_alignment_features=".balign and .p2align"
7853 cat >> confdefs.h <<\EOF
7854 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7858 # Gas version 2.8 and later support specifying the maximum
7859 # bytes to skip when using .p2align.
7860 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
7861 gcc_cv_as_alignment_features=".p2align including maximum skip"
7862 cat >> confdefs.h <<\EOF
7863 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7868 elif test x$host = x$target; then
7870 gcc_cv_as=as$host_exeext
7872 if test x$gcc_cv_as != x; then
7873 # Check if we have .balign and .p2align
7874 echo ".balign 4" > conftest.s
7875 echo ".p2align 2" >> conftest.s
7876 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7877 gcc_cv_as_alignment_features=".balign and .p2align"
7878 cat >> confdefs.h <<\EOF
7879 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
7883 rm -f conftest.s conftest.o
7884 # Check if specifying the maximum bytes to skip when
7885 # using .p2align is supported.
7886 echo ".p2align 4,,7" > conftest.s
7887 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7888 gcc_cv_as_alignment_features=".p2align including maximum skip"
7889 cat >> confdefs.h <<\EOF
7890 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
7894 rm -f conftest.s conftest.o
7896 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
7898 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
7899 echo "configure:7900: checking assembler subsection support" >&5
7900 gcc_cv_as_subsections=
7901 if test x$gcc_cv_as != x; then
7902 # Check if we have .subsection
7903 echo ".subsection 1" > conftest.s
7904 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7905 gcc_cv_as_subsections=".subsection"
7906 if test -x nm$host_exeext; then
7907 gcc_cv_nm=./nm$host_exeext
7908 elif test x$host = x$target; then
7910 gcc_cv_nm=nm$host_exeext
7912 if test x$gcc_cv_nm != x; then
7913 cat > conftest.s <<EOF
7914 conftest_label1: .word 0
7916 conftest_label2: .word 0
7919 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
7920 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
7921 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
7922 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
7925 gcc_cv_as_subsections="working .subsection -1"
7926 cat >> confdefs.h <<\EOF
7927 #define HAVE_GAS_SUBSECTION_ORDERING 1
7934 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
7936 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
7938 # Figure out what language subdirectories are present.
7939 # Look if the user specified --enable-languages="..."; if not, use
7940 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7942 if test x"${enable_languages+set}" != xset; then
7943 if test x"${LANGUAGES+set}" = xset; then
7944 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
7946 enable_languages=all
7950 for lang in ${srcdir}/*/config-lang.in ..
7954 # The odd quoting in the next line works around
7955 # an apparent bug in bash 1.12 on linux.
7956 ${srcdir}/[*]/config-lang.in) ;;
7958 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7959 if test "x$lang_alias" = x
7961 echo "$lang doesn't set \$language." 1>&2
7964 if test x"${enable_languages}" = xall; then
7967 case "${enable_languages}" in
7968 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
7976 if test x"${add_this_lang}" = xyes; then
7978 ${srcdir}/ada/config-lang.in)
7979 if test x$gnat = xyes ; then
7980 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7984 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
7992 # Make gthr-default.h if we have a thread file.
7994 if test $thread_file != single; then
7995 rm -f gthr-default.h
7996 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
7997 gthread_flags=-DHAVE_GTHR_DEFAULT
8001 # Make empty files to contain the specs and options for each language.
8002 # Then add #include lines to for a compiler that has specs and/or options.
8007 rm -f specs.h options.h gencheck.h
8008 touch specs.h options.h gencheck.h
8009 for subdir in . $subdirs
8011 if test -f $srcdir/$subdir/lang-specs.h; then
8012 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8013 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8015 if test -f $srcdir/$subdir/lang-options.h; then
8016 echo "#include \"$subdir/lang-options.h\"" >>options.h
8017 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8019 if test -f $srcdir/$subdir/$subdir-tree.def; then
8020 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8021 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8025 # These (without "all_") are set in each config-lang.in.
8026 # `language' must be a single word so is spelled singularly.
8032 all_outputs='Makefile intl/Makefile po/Makefile.in'
8033 # List of language makefile fragments.
8038 # Add the language fragments.
8039 # Languages are added via two mechanisms. Some information must be
8040 # recorded in makefile variables, these are defined in config-lang.in.
8041 # We accumulate them and plug them into the main Makefile.
8042 # The other mechanism is a set of hooks for each of the main targets
8043 # like `clean', `install', etc.
8045 language_fragments="Make-lang"
8046 language_hooks="Make-hooks"
8049 for s in .. $subdirs
8061 . ${srcdir}/$s/config-lang.in
8062 if test "x$language" = x
8064 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8067 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8068 all_languages="$all_languages $language"
8069 if test "x$boot_language" = xyes
8071 all_boot_languages="$all_boot_languages $language"
8073 all_compilers="$all_compilers $compilers"
8074 all_stagestuff="$all_stagestuff $stagestuff"
8075 all_diff_excludes="$all_diff_excludes $diff_excludes"
8076 all_headers="$all_headers $headers"
8077 all_outputs="$all_outputs $outputs"
8078 if test x$outputs = x
8080 oldstyle_subdirs="$oldstyle_subdirs $s"
8082 all_lib2funcs="$all_lib2funcs $lib2funcs"
8086 # Since we can't use `::' targets, we link each language in
8087 # with a set of hooks, reached indirectly via lang.${target}.
8091 target_list="all.build all.cross start.encap rest.encap \
8093 install-normal install-common install-info install-man \
8095 mostlyclean clean distclean extraclean maintainer-clean \
8096 stage1 stage2 stage3 stage4"
8097 for t in $target_list
8100 for lang in .. $all_languages
8102 if test $lang != ".."; then
8106 echo "lang.$t: $x" >> Make-hooks
8109 # If we're not building in srcdir, create .gdbinit.
8111 if test ! -f Makefile.in; then
8112 echo "dir ." > .gdbinit
8113 echo "dir ${srcdir}" >> .gdbinit
8114 if test x$gdb_needs_out_file_path = xyes
8116 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8118 if test "x$subdirs" != x; then
8121 echo "dir ${srcdir}/$s" >> .gdbinit
8124 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8127 # Define variables host_canonical and build_canonical
8128 # because some Cygnus local changes in the Makefile depend on them.
8129 build_canonical=${build}
8130 host_canonical=${host}
8132 if test "${host}" != "${target}" ; then
8133 target_subdir=${target}/
8139 # If this is using newlib, then define inhibit_libc in
8140 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8141 # libgcc.a, but that's OK because newib should have its own version of
8144 if test x$with_newlib = xyes; then
8145 inhibit_libc=-Dinhibit_libc
8149 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8152 if test x$enable_haifa = xyes; then
8153 echo "Using the Haifa scheduler."
8155 sched_cflags=-DHAIFA
8159 if test x$enable_haifa != x; then
8160 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8161 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
8169 # if $(exec_prefix) is not the same as $(prefix), then do not use a relative
8170 # directory to get to $gcc_tooldir. Also handle the case where the user did
8171 # not specify a value for exec_prefix.
8172 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8173 # make and thus we'd get different behavior depending on where we built the
8175 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8176 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8178 gcc_tooldir='$(exec_prefix)'/${target_alias}
8182 # Warn if using init_priority.
8183 echo $ac_n "checking whether to enable init_priority by default""... $ac_c" 1>&6
8184 echo "configure:8185: checking whether to enable init_priority by default" >&5
8185 if test x$enable_init_priority != xyes; then
8186 enable_init_priority=no
8188 echo "$ac_t""$enable_init_priority" 1>&6
8190 # Nothing to do for FLOAT_H, float_format already handled.
8194 # Process the language and host/target makefile fragments.
8195 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8197 # Substitute configuration variables
8256 # Echo that links are built
8257 if test x$host = x$target
8265 if test x$host != x$build
8267 str3=" on a $build system"
8270 if test "x$str2" != x || test "x$str3" != x
8275 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8277 if test "x$str2" != x || test "x$str3" != x
8279 echo " ${str2}${str3}." 1>&2
8282 # Truncate the target if necessary
8283 if test x$host_truncate_target != x; then
8284 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8287 # Configure the subdirectories
8288 # AC_CONFIG_SUBDIRS($subdirs)
8290 # Create the Makefile
8291 # and configure language subdirectories
8293 cat > confcache <<\EOF
8294 # This file is a shell script that caches the results of configure
8295 # tests run on this system so they can be shared between configure
8296 # scripts and configure runs. It is not useful on other systems.
8297 # If it contains results you don't want to keep, you may remove or edit it.
8299 # By default, configure uses ./config.cache as the cache file,
8300 # creating it if it does not exist already. You can give configure
8301 # the --cache-file=FILE option to use a different cache file; that is
8302 # what configure does when it calls configure scripts in
8303 # subdirectories, so they share the cache.
8304 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8305 # config.status only pays attention to the cache file if you give it the
8306 # --recheck option to rerun configure.
8309 # The following way of writing the cache mishandles newlines in values,
8310 # but we know of no workaround that is simple, portable, and efficient.
8311 # So, don't put newlines in cache variables' values.
8312 # Ultrix sh set writes to stderr and can't be redirected directly,
8313 # and sets the high bit in the cache file unless we assign to the vars.
8315 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
8317 # `set' does not quote correctly, so add quotes (double-quote substitution
8318 # turns \\\\ into \\, and sed turns \\ into \).
8320 -e "s/'/'\\\\''/g" \
8321 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8324 # `set' quotes correctly as required by POSIX, so do not add quotes.
8325 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8328 if cmp -s $cache_file confcache; then
8331 if test -w $cache_file; then
8332 echo "updating cache $cache_file"
8333 cat confcache > $cache_file
8335 echo "not updating unwritable cache $cache_file"
8340 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8343 # Let make expand exec_prefix.
8344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8346 # Any assignment to VPATH causes Sun make to only execute
8347 # the first set of double-colon rules, so remove it if not needed.
8348 # If there is a colon in the path, we need to keep it.
8349 if test "x$srcdir" = x.; then
8350 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8353 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8355 DEFS=-DHAVE_CONFIG_H
8357 # Without the "./", some shells look in PATH for config.status.
8358 : ${CONFIG_STATUS=./config.status}
8360 echo creating $CONFIG_STATUS
8361 rm -f $CONFIG_STATUS
8362 cat > $CONFIG_STATUS <<EOF
8364 # Generated automatically by configure.
8365 # Run this file to recreate the current configuration.
8366 # This directory was configured as follows,
8367 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8369 # $0 $ac_configure_args
8371 # Compiler output produced by configure, useful for debugging
8372 # configure, is in ./config.log if it exists.
8374 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8377 case "\$ac_option" in
8378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8379 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8380 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8381 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8382 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
8384 -help | --help | --hel | --he | --h)
8385 echo "\$ac_cs_usage"; exit 0 ;;
8386 *) echo "\$ac_cs_usage"; exit 1 ;;
8390 ac_given_srcdir=$srcdir
8392 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8394 cat >> $CONFIG_STATUS <<EOF
8396 # Protect against being on the right side of a sed subst in config.status.
8397 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8398 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8402 s%@CFLAGS@%$CFLAGS%g
8403 s%@CPPFLAGS@%$CPPFLAGS%g
8404 s%@CXXFLAGS@%$CXXFLAGS%g
8406 s%@LDFLAGS@%$LDFLAGS%g
8408 s%@exec_prefix@%$exec_prefix%g
8409 s%@prefix@%$prefix%g
8410 s%@program_transform_name@%$program_transform_name%g
8411 s%@bindir@%$bindir%g
8412 s%@sbindir@%$sbindir%g
8413 s%@libexecdir@%$libexecdir%g
8414 s%@datadir@%$datadir%g
8415 s%@sysconfdir@%$sysconfdir%g
8416 s%@sharedstatedir@%$sharedstatedir%g
8417 s%@localstatedir@%$localstatedir%g
8418 s%@libdir@%$libdir%g
8419 s%@includedir@%$includedir%g
8420 s%@oldincludedir@%$oldincludedir%g
8421 s%@infodir@%$infodir%g
8422 s%@mandir@%$mandir%g
8424 s%@host_alias@%$host_alias%g
8425 s%@host_cpu@%$host_cpu%g
8426 s%@host_vendor@%$host_vendor%g
8427 s%@host_os@%$host_os%g
8428 s%@target@%$target%g
8429 s%@target_alias@%$target_alias%g
8430 s%@target_cpu@%$target_cpu%g
8431 s%@target_vendor@%$target_vendor%g
8432 s%@target_os@%$target_os%g
8434 s%@build_alias@%$build_alias%g
8435 s%@build_cpu@%$build_cpu%g
8436 s%@build_vendor@%$build_vendor%g
8437 s%@build_os@%$build_os%g
8439 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8440 s%@SET_MAKE@%$SET_MAKE%g
8443 s%@LEXLIB@%$LEXLIB%g
8446 s%@RANLIB@%$RANLIB%g
8448 s%@INSTALL@%$INSTALL%g
8449 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8450 s%@INSTALL_DATA@%$INSTALL_DATA%g
8453 s%@vfprintf@%$vfprintf%g
8454 s%@doprint@%$doprint%g
8455 s%@manext@%$manext%g
8456 s%@objext@%$objext%g
8457 s%@PACKAGE@%$PACKAGE%g
8458 s%@VERSION@%$VERSION%g
8459 s%@ALLOCA@%$ALLOCA%g
8460 s%@USE_NLS@%$USE_NLS%g
8461 s%@MSGFMT@%$MSGFMT%g
8462 s%@GMSGFMT@%$GMSGFMT%g
8463 s%@XGETTEXT@%$XGETTEXT%g
8464 s%@GENCAT@%$GENCAT%g
8465 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8466 s%@CATALOGS@%$CATALOGS%g
8467 s%@CATOBJEXT@%$CATOBJEXT%g
8468 s%@DATADIRNAME@%$DATADIRNAME%g
8469 s%@GMOFILES@%$GMOFILES%g
8470 s%@INSTOBJEXT@%$INSTOBJEXT%g
8471 s%@INTLDEPS@%$INTLDEPS%g
8472 s%@INTLLIBS@%$INTLLIBS%g
8473 s%@INTLOBJS@%$INTLOBJS%g
8474 s%@POFILES@%$POFILES%g
8476 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8478 s%@GT_YES@%$GT_YES%g
8479 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8481 s%@gthread_flags@%$gthread_flags%g
8482 s%@build_canonical@%$build_canonical%g
8483 s%@host_canonical@%$host_canonical%g
8484 s%@target_subdir@%$target_subdir%g
8485 s%@inhibit_libc@%$inhibit_libc%g
8486 s%@sched_prefix@%$sched_prefix%g
8487 s%@sched_cflags@%$sched_cflags%g
8488 s%@gcc_tooldir@%$gcc_tooldir%g
8489 s%@objdir@%$objdir%g
8490 s%@subdirs@%$subdirs%g
8491 s%@all_languages@%$all_languages%g
8492 s%@all_boot_languages@%$all_boot_languages%g
8493 s%@all_compilers@%$all_compilers%g
8494 s%@all_lang_makefiles@%$all_lang_makefiles%g
8495 s%@all_stagestuff@%$all_stagestuff%g
8496 s%@all_diff_excludes@%$all_diff_excludes%g
8497 s%@all_lib2funcs@%$all_lib2funcs%g
8498 s%@all_headers@%$all_headers%g
8499 s%@cpp_main@%$cpp_main%g
8500 s%@extra_passes@%$extra_passes%g
8501 s%@extra_programs@%$extra_programs%g
8502 s%@extra_parts@%$extra_parts%g
8503 s%@extra_c_objs@%$extra_c_objs%g
8504 s%@extra_cxx_objs@%$extra_cxx_objs%g
8505 s%@extra_cpp_objs@%$extra_cpp_objs%g
8506 s%@extra_c_flags@%$extra_c_flags%g
8507 s%@extra_objs@%$extra_objs%g
8508 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8509 s%@extra_headers_list@%$extra_headers_list%g
8510 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8511 s%@dep_tmake_file@%$dep_tmake_file%g
8512 s%@out_file@%$out_file%g
8513 s%@out_object_file@%$out_object_file%g
8514 s%@md_file@%$md_file%g
8515 s%@tm_file_list@%$tm_file_list%g
8516 s%@build_xm_file_list@%$build_xm_file_list%g
8517 s%@host_xm_file_list@%$host_xm_file_list%g
8518 s%@lang_specs_files@%$lang_specs_files%g
8519 s%@lang_options_files@%$lang_options_files%g
8520 s%@lang_tree_files@%$lang_tree_files%g
8521 s%@thread_file@%$thread_file%g
8522 s%@objc_boehm_gc@%$objc_boehm_gc%g
8523 s%@JAVAGC@%$JAVAGC%g
8524 s%@gcc_version@%$gcc_version%g
8525 s%@gcc_version_trigger@%$gcc_version_trigger%g
8526 s%@local_prefix@%$local_prefix%g
8527 s%@gxx_include_dir@%$gxx_include_dir%g
8528 s%@fixincludes@%$fixincludes%g
8529 s%@build_install_headers_dir@%$build_install_headers_dir%g
8530 s%@build_exeext@%$build_exeext%g
8531 s%@host_exeext@%$host_exeext%g
8532 s%@float_format@%$float_format%g
8533 s%@will_use_collect2@%$will_use_collect2%g
8534 s%@maybe_use_collect2@%$maybe_use_collect2%g
8535 s%@cc_set_by_configure@%$cc_set_by_configure%g
8536 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8537 s%@install@%$install%g
8538 s%@symbolic_link@%$symbolic_link%g
8539 /@target_overrides@/r $target_overrides
8540 s%@target_overrides@%%g
8541 /@host_overrides@/r $host_overrides
8542 s%@host_overrides@%%g
8543 s%@cross_defines@%$cross_defines%g
8544 /@cross_overrides@/r $cross_overrides
8545 s%@cross_overrides@%%g
8546 /@build_overrides@/r $build_overrides
8547 s%@build_overrides@%%g
8548 /@language_fragments@/r $language_fragments
8549 s%@language_fragments@%%g
8550 /@language_hooks@/r $language_hooks
8551 s%@language_hooks@%%g
8556 cat >> $CONFIG_STATUS <<\EOF
8558 # Split the substitutions into bite-sized pieces for seds with
8559 # small command number limits, like on Digital OSF/1 and HP-UX.
8560 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8561 ac_file=1 # Number of current file.
8562 ac_beg=1 # First line for current file.
8563 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8566 while $ac_more_lines; do
8567 if test $ac_beg -gt 1; then
8568 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8570 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8572 if test ! -s conftest.s$ac_file; then
8574 rm -f conftest.s$ac_file
8576 if test -z "$ac_sed_cmds"; then
8577 ac_sed_cmds="sed -f conftest.s$ac_file"
8579 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8581 ac_file=`expr $ac_file + 1`
8583 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8586 if test -z "$ac_sed_cmds"; then
8591 cat >> $CONFIG_STATUS <<EOF
8593 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8595 cat >> $CONFIG_STATUS <<\EOF
8596 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8599 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8600 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8601 *) ac_file_in="${ac_file}.in" ;;
8604 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8606 # Remove last slash and all that follows it. Not all systems have dirname.
8607 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8609 # The file is in a subdirectory.
8610 test ! -d "$ac_dir" && mkdir "$ac_dir"
8611 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8612 # A "../" for each directory in $ac_dir_suffix.
8613 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8615 ac_dir_suffix= ac_dots=
8618 case "$ac_given_srcdir" in
8620 if test -z "$ac_dots"; then top_srcdir=.
8621 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8622 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8624 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8625 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8629 echo creating "$ac_file"
8631 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8633 *Makefile*) ac_comsub="1i\\
8634 # $configure_input" ;;
8638 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8640 s%@configure_input@%$configure_input%g
8641 s%@srcdir@%$srcdir%g
8642 s%@top_srcdir@%$top_srcdir%g
8643 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8647 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8648 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8650 # ac_d sets the value in "#define NAME VALUE" lines.
8651 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8652 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8655 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8656 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8657 ac_uB='\([ ]\)%\1#\2define\3'
8660 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8661 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8662 ac_eB='$%\1#\2define\3'
8666 if test "${CONFIG_HEADERS+set}" != set; then
8668 cat >> $CONFIG_STATUS <<EOF
8669 CONFIG_HEADERS="auto-host.h:config.in"
8671 cat >> $CONFIG_STATUS <<\EOF
8673 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8676 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8677 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8678 *) ac_file_in="${ac_file}.in" ;;
8681 echo creating $ac_file
8683 rm -f conftest.frag conftest.in conftest.out
8684 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8685 cat $ac_file_inputs > conftest.in
8689 # Transform confdefs.h into a sed script conftest.vals that substitutes
8690 # the proper values into config.h.in to produce config.h. And first:
8691 # Protect against being on the right side of a sed subst in config.status.
8692 # Protect against being in an unquoted here document in config.status.
8694 cat > conftest.hdr <<\EOF
8697 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8701 sed -n -f conftest.hdr confdefs.h > conftest.vals
8704 # This sed command replaces #undef with comments. This is necessary, for
8705 # example, in the case of _POSIX_SOURCE, which is predefined and required
8706 # on some systems where configure will not decide to define it.
8707 cat >> conftest.vals <<\EOF
8708 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8711 # Break up conftest.vals because some shells have a limit on
8712 # the size of here documents, and old seds have small limits too.
8717 ac_lines=`grep -c . conftest.vals`
8718 # grep -c gives empty output for an empty file on some AIX systems.
8719 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8720 # Write a limited-size here document to conftest.frag.
8721 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8722 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8724 sed -f conftest.frag conftest.in > conftest.out
8726 mv conftest.out conftest.in
8728 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8730 mv conftest.tail conftest.vals
8734 cat >> $CONFIG_STATUS <<\EOF
8735 rm -f conftest.frag conftest.h
8736 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8737 cat conftest.in >> conftest.h
8739 if cmp -s $ac_file conftest.h 2>/dev/null; then
8740 echo "$ac_file is unchanged"
8743 # Remove last slash and all that follows it. Not all systems have dirname.
8744 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8745 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8746 # The file is in a subdirectory.
8747 test ! -d "$ac_dir" && mkdir "$ac_dir"
8750 mv conftest.h $ac_file
8756 cat >> $CONFIG_STATUS <<EOF
8757 ac_sources="$nls_cv_header_libgt"
8758 ac_dests="$nls_cv_header_intl"
8761 cat >> $CONFIG_STATUS <<\EOF
8762 srcdir=$ac_given_srcdir
8763 while test -n "$ac_sources"; do
8764 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8765 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8767 echo "linking $srcdir/$ac_source to $ac_dest"
8769 if test ! -r $srcdir/$ac_source; then
8770 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8774 # Make relative symlinks.
8775 # Remove last slash and all that follows it. Not all systems have dirname.
8776 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8777 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8778 # The dest file is in a subdirectory.
8779 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8780 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8781 # A "../" for each directory in $ac_dest_dir_suffix.
8782 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8784 ac_dest_dir_suffix= ac_dots=
8788 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8789 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8792 # Make a symlink if possible; otherwise try a hard link.
8793 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8794 ln $srcdir/$ac_source $ac_dest; then :
8796 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8800 cat >> $CONFIG_STATUS <<EOF
8806 target_alias='${target_alias}'
8808 subdirs='${subdirs}'
8809 oldstyle_subdirs='${oldstyle_subdirs}'
8810 symbolic_link='${symbolic_link}'
8811 program_transform_set='${program_transform_set}'
8812 program_transform_name='${program_transform_name}'
8813 dep_host_xmake_file='${dep_host_xmake_file}'
8814 host_xmake_file='${host_xmake_file}'
8815 dep_tmake_file='${dep_tmake_file}'
8816 tmake_file='${tmake_file}'
8817 thread_file='${thread_file}'
8818 gcc_version='${gcc_version}'
8819 gcc_version_trigger='${gcc_version_trigger}'
8820 local_prefix='${local_prefix}'
8821 build_install_headers_dir='${build_install_headers_dir}'
8822 build_exeext='${build_exeext}'
8823 host_exeext='${host_exeext}'
8824 out_file='${out_file}'
8825 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
8826 SET_MAKE='${SET_MAKE}'
8827 target_list='${target_list}'
8828 target_overrides='${target_overrides}'
8829 host_overrides='${host_overrides}'
8830 cross_defines='${cross_defines}'
8831 cross_overrides='${cross_overrides}'
8832 build_overrides='${build_overrides}'
8835 cat >> $CONFIG_STATUS <<\EOF
8836 case "$CONFIG_FILES" in *po/Makefile.in*)
8837 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8840 . $srcdir/configure.lang
8841 case x$CONFIG_HEADERS in
8842 xauto-host.h:config.in)
8845 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8846 # bootstrapping and the installation procedure can still use
8847 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8848 # FLAGS_TO_PASS has been modified to solve the problem there.
8849 # This is virtually a duplicate of what happens in configure.lang; we do
8850 # an extra check to make sure this only happens if ln -s can be used.
8851 if test "$symbolic_link" = "ln -s"; then
8852 for d in .. ${subdirs} ; do
8853 if test $d != ..; then
8856 for t in stage1 stage2 stage3 stage4 include
8859 $symbolic_link ../$t $t 2>/dev/null
8865 # Avoid having to add intl to our include paths.
8866 if test -f intl/libintl.h; then
8867 echo creating libintl.h
8868 echo '#include "intl/libintl.h"' >libintl.h
8873 chmod +x $CONFIG_STATUS
8874 rm -fr confdefs* $ac_clean_files
8875 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1