3 # $FreeBSD: src/contrib/gcc/configure,v 1.8.2.1 2001/04/10 19:23:03 obrien Exp $
4 # $DragonFly: src/contrib/gcc/Attic/configure,v 1.3 2003/11/19 00:51:31 dillon Exp $
6 # Guess values for system-dependent variables and create Makefiles.
7 # Generated automatically using autoconf version 2.13
8 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
15 ac_default_prefix=/usr/local
16 # Any additions from configure.in:
18 --with-gnu-ld arrange to work with GNU ld."
20 --with-ld arrange to use the specified ld (full pathname)."
22 --with-gnu-as arrange to work with GNU as."
24 --with-as arrange to use the specified as (full pathname)."
26 --with-stabs arrange to use stabs instead of host debug format."
28 --with-elf arrange to use ELF instead of host debug format."
30 --with-local-prefix=DIR specifies directory to put local include."
32 --with-gxx-include-dir=DIR
33 specifies directory to put g++ header files."
35 --enable-checking enable expensive run-time checks."
37 --disable-cpp don't provide a user-visible C preprocessor."
39 --with-cpp-install-dir=DIR
40 install the user visible C preprocessor in DIR
41 (relative to PREFIX) as well as PREFIX/bin."
43 --enable-cpplib use cpplib for the C preprocessor."
45 --enable-c-cpplib link cpplib directly into C and C++ compilers
46 (EXPERIMENTAL) (implies --enable-cpplib)."
48 --enable-c-mbchar enable multibyte characters for C and C++."
50 --disable-fast-fixincludes
51 Disable the new fast fixincludes.
52 Run the old fixincludes script unconditionally"
54 --enable-haifa use the experimental scheduler.
55 --disable-haifa don't use the experimental scheduler for the
56 targets which normally enable it."
58 --enable-threads enable thread usage for target GCC.
59 --enable-threads=LIB use LIB thread package for target GCC."
61 --enable-objc-gc enable the use of Boehm's garbage collector with
62 the GNU Objective-C runtime."
64 --enable-java-gc=TYPE choose garbage collector [boehm]"
66 --enable-dwarf2 enable DWARF2 debugging as default."
68 --enable-nls use Native Language Support (disabled by default).
69 EXPERIMENTAL, see ABOUT-GCC-NLS."
71 --disable-nls do not use Native Language Support"
73 --with-included-gettext use the GNU gettext library included here"
75 --with-catgets use catgets functions if available"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file=./config.cache
90 program_transform_name=s,x,x,
98 bindir='${exec_prefix}/bin'
99 sbindir='${exec_prefix}/sbin'
100 libexecdir='${exec_prefix}/libexec'
101 datadir='${prefix}/share'
102 sysconfdir='${prefix}/etc'
103 sharedstatedir='${prefix}/com'
104 localstatedir='${prefix}/var'
105 libdir='${exec_prefix}/lib'
106 includedir='${prefix}/include'
107 oldincludedir='/usr/include'
108 infodir='${prefix}/info'
109 mandir='${prefix}/man'
111 # Initialize some other variables.
114 SHELL=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir | --bindir | --bindi | --bind | --bin | --bi)
140 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
141 bindir="$ac_optarg" ;;
143 -build | --build | --buil | --bui | --bu)
145 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
146 build="$ac_optarg" ;;
148 -cache-file | --cache-file | --cache-fil | --cache-fi \
149 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
150 ac_prev=cache_file ;;
151 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
152 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
153 cache_file="$ac_optarg" ;;
155 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
157 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
159 datadir="$ac_optarg" ;;
161 -disable-* | --disable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* | --enable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
185 | --exec | --exe | --ex)
186 ac_prev=exec_prefix ;;
187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
189 | --exec=* | --exe=* | --ex=*)
190 exec_prefix="$ac_optarg" ;;
192 -gas | --gas | --ga | --g)
193 # Obsolete; use --with-gas.
196 -help | --help | --hel | --he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
379 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
380 srcdir="$ac_optarg" ;;
382 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
383 | --syscon | --sysco | --sysc | --sys | --sy)
384 ac_prev=sysconfdir ;;
385 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
386 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
387 sysconfdir="$ac_optarg" ;;
389 -target | --target | --targe | --targ | --tar | --ta | --t)
391 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
392 target="$ac_optarg" ;;
394 -v | -verbose | --verbose | --verbos | --verbo | --verb)
397 -version | --version | --versio | --versi | --vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* | --without-*)
415 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
428 | --x-incl | --x-inc | --x-in | --x-i)
429 ac_prev=x_includes ;;
430 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
431 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
432 x_includes="$ac_optarg" ;;
434 -x-libraries | --x-libraries | --x-librarie | --x-librari \
435 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
436 ac_prev=x_libraries ;;
437 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
438 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
439 x_libraries="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c) ;;
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file=tree.c
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp='$CPP $CPPFLAGS'
567 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='\c' ac_t=
590 symbolic_link='ln -s'
593 # Check for bogus environment variables.
594 # Test if LIBRARY_PATH contains the notation for the current directory
595 # since this would lead to problems installing/building glibc.
596 # LIBRARY_PATH contains the current directory if one of the following
598 # - one of the terminals (":" and ";") is the first or last sign
599 # - two terminals occur directly after each other
600 # - the path contains an element with a dot in it
601 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
602 echo "configure:600: checking LIBRARY_PATH variable" >&5
603 case ${LIBRARY_PATH} in
604 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
605 library_path_setting="contains current directory"
608 library_path_setting="ok"
611 echo "$ac_t""$library_path_setting" 1>&6
612 if test "$library_path_setting" != "ok"; then
613 { echo "configure: error:
614 *** LIBRARY_PATH shouldn't contain the current directory when
615 *** building gcc. Please change the environment variable
616 *** and run configure again." 1>&2; exit 1; }
619 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
620 # since this would lead to problems installing/building glibc.
621 # GCC_EXEC_PREFIX contains the current directory if one of the following
623 # - one of the terminals (":" and ";") is the first or last sign
624 # - two terminals occur directly after each other
625 # - the path contains an element with a dot in it
626 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
627 echo "configure:625: checking GCC_EXEC_PREFIX variable" >&5
628 case ${GCC_EXEC_PREFIX} in
629 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
630 gcc_exec_prefix_setting="contains current directory"
633 gcc_exec_prefix_setting="ok"
636 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
637 if test "$gcc_exec_prefix_setting" != "ok"; then
638 { echo "configure: error:
639 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
640 *** building gcc. Please change the environment variable
641 *** and run configure again." 1>&2; exit 1; }
644 # Check for additional parameters
647 # Check whether --with-gnu-ld or --without-gnu-ld was given.
648 if test "${with_gnu_ld+set}" = set; then
649 withval="$with_gnu_ld"
650 gnu_ld_flag="$with_gnu_ld"
656 # With pre-defined ld
657 # Check whether --with-ld or --without-ld was given.
658 if test "${with_ld+set}" = set; then
660 DEFAULT_LINKER="$with_ld"
663 if test x"${DEFAULT_LINKER+set}" = x"set"; then
664 if test ! -x "$DEFAULT_LINKER"; then
665 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
666 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
669 cat >> confdefs.h <<EOF
670 #define DEFAULT_LINKER "$DEFAULT_LINKER"
676 # Check whether --with-gnu-as or --without-gnu-as was given.
677 if test "${with_gnu_as+set}" = set; then
678 withval="$with_gnu_as"
679 gas_flag="$with_gnu_as"
685 # Check whether --with-as or --without-as was given.
686 if test "${with_as+set}" = set; then
688 DEFAULT_ASSEMBLER="$with_as"
691 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
692 if test ! -x "$DEFAULT_ASSEMBLER"; then
693 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
694 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
697 cat >> confdefs.h <<EOF
698 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
704 # Check whether --with-stabs or --without-stabs was given.
705 if test "${with_stabs+set}" = set; then
706 withval="$with_stabs"
714 # Check whether --with-elf or --without-elf was given.
715 if test "${with_elf+set}" = set; then
723 # Specify the local prefix
725 # Check whether --with-local-prefix or --without-local-prefix was given.
726 if test "${with_local_prefix+set}" = set; then
727 withval="$with_local_prefix"
729 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
731 *) local_prefix=$with_local_prefix ;;
736 # Default local prefix if it is empty
737 if test x$local_prefix = x; then
738 local_prefix=/usr/local
741 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
742 # passed in by the toplevel make and thus we'd get different behavior
743 # depending on where we built the sources.
745 # Specify the g++ header file directory
746 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
747 if test "${with_gxx_include_dir+set}" = set; then
748 withval="$with_gxx_include_dir"
750 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
752 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
757 if test x${gcc_gxx_include_dir} = x; then
758 if test x${enable_version_specific_runtime_libs} = xyes; then
759 gcc_gxx_include_dir='${libsubdir}/include/g++'
761 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
762 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
766 # Enable expensive internal checks
767 # Check whether --enable-checking or --disable-checking was given.
768 if test "${enable_checking+set}" = set; then
769 enableval="$enable_checking"
770 case "${enableval}" in
771 yes) cat >> confdefs.h <<\EOF
772 #define ENABLE_CHECKING 1
776 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
781 # Check whether --enable-cpp or --disable-cpp was given.
782 if test "${enable_cpp+set}" = set; then
783 enableval="$enable_cpp"
790 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
791 if test "${with_cpp_install_dir+set}" = set; then
792 withval="$with_cpp_install_dir"
793 if test x$withval = xyes; then
794 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
795 elif test x$withval != xno; then
796 cpp_install_dir=$withval
801 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
803 # Check whether --enable-cpplib or --disable-cpplib was given.
804 if test "${enable_cpplib+set}" = set; then
805 enableval="$enable_cpplib"
806 if test x$enable_cpplib != xno; then
812 # Link cpplib into the compiler proper, for C/C++/ObjC.
813 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
814 if test "${enable_c_cpplib+set}" = set; then
815 enableval="$enable_c_cpplib"
816 if test x$enable_c_cpplib != xno; then
817 extra_c_objs="${extra_c_objs} libcpp.a"
818 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
819 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
825 # Enable Multibyte Characters for C/C++
826 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
827 if test "${enable_c_mbchar+set}" = set; then
828 enableval="$enable_c_mbchar"
829 if test x$enable_c_mbchar != xno; then
830 extra_c_flags=-DMULTIBYTE_CHARS=1
835 # Disable fast fixincludes
836 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
837 if test "${enable_fast_fixincludes+set}" = set; then
838 enableval="$enable_fast_fixincludes"
839 if test x$enable_fast_fixincludes = xno ; then
840 cp $srcdir/fixincludes ./fixinc.sh
845 # Enable Haifa scheduler.
846 # Check whether --enable-haifa or --disable-haifa was given.
847 if test "${enable_haifa+set}" = set; then
848 enableval="$enable_haifa"
854 # Pass with no value to take the default
855 # Pass with a value to specify a thread package
856 # Check whether --enable-threads or --disable-threads was given.
857 if test "${enable_threads+set}" = set; then
858 enableval="$enable_threads"
859 if test x$enable_threads = xno; then
867 enable_threads_flag=$enable_threads
868 # Check if a valid thread package
869 case x${enable_threads_flag} in
872 target_thread_file='single'
876 target_thread_file=''
878 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
879 xsolaris | xwin32 | xdce | xvxworks)
880 target_thread_file=$enable_threads_flag
883 echo "$enable_threads is an unknown thread package" 1>&2
888 # Check whether --enable-objc-gc or --disable-objc-gc was given.
889 if test "${enable_objc_gc+set}" = set; then
890 enableval="$enable_objc_gc"
891 if [ x$enable_objc_gc = xno ]; then
901 # Check whether --enable-java-gc or --disable-java-gc was given.
902 if test "${enable_java_gc+set}" = set; then
903 enableval="$enable_java_gc"
911 # Check whether --with-dwarf2 or --without-dwarf2 was given.
912 if test "${with_dwarf2+set}" = set; then
913 withval="$with_dwarf2"
914 dwarf2="$with_dwarf2"
920 # Determine the host, build, and target systems
922 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
923 if test -f $ac_dir/install-sh; then
925 ac_install_sh="$ac_aux_dir/install-sh -c"
927 elif test -f $ac_dir/install.sh; then
929 ac_install_sh="$ac_aux_dir/install.sh -c"
933 if test -z "$ac_aux_dir"; then
934 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
936 ac_config_guess=$ac_aux_dir/config.guess
937 ac_config_sub=$ac_aux_dir/config.sub
938 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
941 # Do some error checking and defaulting for the host and target type.
943 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
946 # 1. You are not allowed to specify --host, --target, and nonopt at the
948 # 2. Host defaults to nonopt.
949 # 3. If nonopt is not specified, then host defaults to the current host,
950 # as determined by config.guess.
951 # 4. Target and build default to nonopt.
952 # 5. If nonopt is not specified, then target and build default to host.
954 # The aliases save the names the user supplied, while $host etc.
955 # will get canonicalized.
956 case $host---$target---$nonopt in
957 NONE---*---* | *---NONE---* | *---*---NONE) ;;
958 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
962 # Make sure we can run config.sub.
963 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
964 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
967 echo $ac_n "checking host system type""... $ac_c" 1>&6
968 echo "configure:966: checking host system type" >&5
971 case "$host_alias" in
975 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
976 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
978 *) host_alias=$nonopt ;;
982 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
983 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986 echo "$ac_t""$host" 1>&6
988 echo $ac_n "checking target system type""... $ac_c" 1>&6
989 echo "configure:987: checking target system type" >&5
992 case "$target_alias" in
995 NONE) target_alias=$host_alias ;;
996 *) target_alias=$nonopt ;;
1000 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1001 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1002 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1003 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1004 echo "$ac_t""$target" 1>&6
1006 echo $ac_n "checking build system type""... $ac_c" 1>&6
1007 echo "configure:1005: checking build system type" >&5
1010 case "$build_alias" in
1013 NONE) build_alias=$host_alias ;;
1014 *) build_alias=$nonopt ;;
1018 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1019 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$ac_t""$build" 1>&6
1024 test "$host_alias" != "$target_alias" &&
1025 test "$program_prefix$program_suffix$program_transform_name" = \
1027 program_prefix=${target_alias}-
1030 # Find the native compiler
1031 # Extract the first word of "gcc", so it can be a program name with args.
1032 set dummy gcc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1032: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC="$CC" # Let the user override the test.
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1043 for ac_dir in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1057 echo "$ac_t""no" 1>&6
1060 if test -z "$CC"; then
1061 # Extract the first word of "cc", so it can be a program name with args.
1062 set dummy cc; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1062: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 if test -n "$CC"; then
1069 ac_cv_prog_CC="$CC" # Let the user override the test.
1071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1074 for ac_dir in $ac_dummy; do
1075 test -z "$ac_dir" && ac_dir=.
1076 if test -f $ac_dir/$ac_word; then
1077 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1078 ac_prog_rejected=yes
1086 if test $ac_prog_rejected = yes; then
1087 # We found a bogon in the path, so make sure we never use it.
1088 set dummy $ac_cv_prog_CC
1090 if test $# -gt 0; then
1091 # We chose a different compiler from the bogus one.
1092 # However, it has the same basename, so the bogon will be chosen
1093 # first if we set CC to just the basename; use the full file name.
1095 set dummy "$ac_dir/$ac_word" "$@"
1103 if test -n "$CC"; then
1104 echo "$ac_t""$CC" 1>&6
1106 echo "$ac_t""no" 1>&6
1109 if test -z "$CC"; then
1110 case "`uname -s`" in
1112 # Extract the first word of "cl", so it can be a program name with args.
1113 set dummy cl; ac_word=$2
1114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115 echo "configure:1113: checking for $ac_word" >&5
1116 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 if test -n "$CC"; then
1120 ac_cv_prog_CC="$CC" # Let the user override the test.
1122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1124 for ac_dir in $ac_dummy; do
1125 test -z "$ac_dir" && ac_dir=.
1126 if test -f $ac_dir/$ac_word; then
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1138 echo "$ac_t""no" 1>&6
1143 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1146 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1147 echo "configure:1145: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1151 ac_cpp='$CPP $CPPFLAGS'
1152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1154 cross_compiling=$ac_cv_prog_cc_cross
1156 cat > conftest.$ac_ext << EOF
1158 #line 1156 "configure"
1159 #include "confdefs.h"
1163 if { (eval echo configure:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1164 ac_cv_prog_cc_works=yes
1165 # If we can't run a trivial program, we are probably using a cross compiler.
1166 if (./conftest; exit) 2>/dev/null; then
1167 ac_cv_prog_cc_cross=no
1169 ac_cv_prog_cc_cross=yes
1172 echo "configure: failed program was:" >&5
1173 cat conftest.$ac_ext >&5
1174 ac_cv_prog_cc_works=no
1178 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1181 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1182 cross_compiling=$ac_cv_prog_cc_cross
1184 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1185 if test $ac_cv_prog_cc_works = no; then
1186 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1188 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1189 echo "configure:1187: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1190 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1191 cross_compiling=$ac_cv_prog_cc_cross
1193 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1194 echo "configure:1192: checking whether we are using GNU C" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftest.c <<EOF
1203 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1210 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1212 if test $ac_cv_prog_gcc = yes; then
1218 ac_test_CFLAGS="${CFLAGS+set}"
1219 ac_save_CFLAGS="$CFLAGS"
1221 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1222 echo "configure:1220: checking whether ${CC-cc} accepts -g" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 echo 'void f(){}' > conftest.c
1227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1237 if test "$ac_test_CFLAGS" = set; then
1238 CFLAGS="$ac_save_CFLAGS"
1239 elif test $ac_cv_prog_cc_g = yes; then
1240 if test "$GCC" = yes; then
1246 if test "$GCC" = yes; then
1254 # If the native compiler is GCC, we can enable warnings even in stage1.
1255 # That's useful for people building cross-compilers, or just running a
1257 if test "x$GCC" = "xyes"; then
1258 stage1_warn_cflags='$(WARN_CFLAGS)'
1260 stage1_warn_cflags=""
1264 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1265 echo "configure:1263: checking whether ${MAKE-make} sets \${MAKE}" >&5
1266 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1267 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftestmake <<\EOF
1272 @echo 'ac_maketemp="${MAKE}"'
1274 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1275 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1276 if test -n "$ac_maketemp"; then
1277 eval ac_cv_prog_make_${ac_make}_set=yes
1279 eval ac_cv_prog_make_${ac_make}_set=no
1283 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1287 echo "$ac_t""no" 1>&6
1288 SET_MAKE="MAKE=${MAKE-make}"
1292 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1293 echo "configure:1291: checking whether a default assembler was specified" >&5
1294 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1295 if test x"$gas_flag" = x"no"; then
1296 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1298 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1301 echo "$ac_t""no" 1>&6
1304 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1305 echo "configure:1303: checking whether a default linker was specified" >&5
1306 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1307 if test x"$gnu_ld_flag" = x"no"; then
1308 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1310 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1313 echo "$ac_t""no" 1>&6
1316 # Find some useful tools
1317 for ac_prog in gawk mawk nawk awk
1319 # Extract the first word of "$ac_prog", so it can be a program name with args.
1320 set dummy $ac_prog; ac_word=$2
1321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1322 echo "configure:1320: checking for $ac_word" >&5
1323 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 if test -n "$AWK"; then
1327 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1331 for ac_dir in $ac_dummy; do
1332 test -z "$ac_dir" && ac_dir=.
1333 if test -f $ac_dir/$ac_word; then
1334 ac_cv_prog_AWK="$ac_prog"
1341 AWK="$ac_cv_prog_AWK"
1342 if test -n "$AWK"; then
1343 echo "$ac_t""$AWK" 1>&6
1345 echo "$ac_t""no" 1>&6
1348 test -n "$AWK" && break
1351 # Extract the first word of "flex", so it can be a program name with args.
1352 set dummy flex; ac_word=$2
1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354 echo "configure:1352: checking for $ac_word" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 if test -n "$LEX"; then
1359 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1363 for ac_dir in $ac_dummy; do
1364 test -z "$ac_dir" && ac_dir=.
1365 if test -f $ac_dir/$ac_word; then
1366 ac_cv_prog_LEX="flex"
1371 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1374 LEX="$ac_cv_prog_LEX"
1375 if test -n "$LEX"; then
1376 echo "$ac_t""$LEX" 1>&6
1378 echo "$ac_t""no" 1>&6
1381 if test -z "$LEXLIB"
1387 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1388 echo "configure:1386: checking for yywrap in -l$ac_lib" >&5
1389 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 ac_save_LIBS="$LIBS"
1394 LIBS="-l$ac_lib $LIBS"
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1394 "configure"
1397 #include "confdefs.h"
1398 /* Override any gcc2 internal prototype to avoid an error. */
1399 /* We use char because int might match the return type of a gcc2
1400 builtin and then its argument prototype would still apply. */
1407 if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1409 eval "ac_cv_lib_$ac_lib_var=yes"
1411 echo "configure: failed program was:" >&5
1412 cat conftest.$ac_ext >&5
1414 eval "ac_cv_lib_$ac_lib_var=no"
1417 LIBS="$ac_save_LIBS"
1420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1421 echo "$ac_t""yes" 1>&6
1424 echo "$ac_t""no" 1>&6
1429 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1430 echo "configure:1428: checking whether ln works" >&5
1431 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 rm -f conftestdata_t
1435 echo >conftestdata_f
1436 if ln conftestdata_f conftestdata_t 2>/dev/null
1440 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1442 gcc_cv_prog_LN="ln -s"
1447 rm -f conftestdata_f conftestdata_t
1450 LN="$gcc_cv_prog_LN"
1451 if test "$gcc_cv_prog_LN" = "ln"; then
1452 echo "$ac_t""yes" 1>&6
1454 if test "$gcc_cv_prog_LN" = "ln -s"; then
1455 echo "$ac_t""no, using ln -s" 1>&6
1457 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1461 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1462 echo "configure:1460: checking whether ln -s works" >&5
1463 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1464 echo $ac_n "(cached) $ac_c" 1>&6
1466 rm -f conftestdata_t
1467 echo >conftestdata_f
1468 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1470 gcc_cv_prog_LN_S="ln -s"
1472 if ln conftestdata_f conftestdata_t 2>/dev/null
1479 rm -f conftestdata_f conftestdata_t
1482 LN_S="$gcc_cv_prog_LN_S"
1483 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1484 echo "$ac_t""yes" 1>&6
1486 if test "$gcc_cv_prog_LN_S" = "ln"; then
1487 echo "$ac_t""no, using ln" 1>&6
1489 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1493 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1494 echo "configure:1492: checking for volatile" >&5
1495 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1497 "configure"
1500 #include "confdefs.h"
1506 if { (eval echo configure:1504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1508 gcc_cv_c_volatile=yes
1510 echo "configure: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1513 gcc_cv_c_volatile=no
1518 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1519 if test $gcc_cv_c_volatile = yes ; then
1520 cat >> confdefs.h <<\EOF
1521 #define HAVE_VOLATILE 1
1526 # Extract the first word of "ranlib", so it can be a program name with args.
1527 set dummy ranlib; ac_word=$2
1528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1529 echo "configure:1527: checking for $ac_word" >&5
1530 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 if test -n "$RANLIB"; then
1534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1538 for ac_dir in $ac_dummy; do
1539 test -z "$ac_dir" && ac_dir=.
1540 if test -f $ac_dir/$ac_word; then
1541 ac_cv_prog_RANLIB="ranlib"
1546 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1549 RANLIB="$ac_cv_prog_RANLIB"
1550 if test -n "$RANLIB"; then
1551 echo "$ac_t""$RANLIB" 1>&6
1553 echo "$ac_t""no" 1>&6
1556 for ac_prog in 'bison -y' byacc
1558 # Extract the first word of "$ac_prog", so it can be a program name with args.
1559 set dummy $ac_prog; ac_word=$2
1560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1561 echo "configure:1559: checking for $ac_word" >&5
1562 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 if test -n "$YACC"; then
1566 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1570 for ac_dir in $ac_dummy; do
1571 test -z "$ac_dir" && ac_dir=.
1572 if test -f $ac_dir/$ac_word; then
1573 ac_cv_prog_YACC="$ac_prog"
1580 YACC="$ac_cv_prog_YACC"
1581 if test -n "$YACC"; then
1582 echo "$ac_t""$YACC" 1>&6
1584 echo "$ac_t""no" 1>&6
1587 test -n "$YACC" && break
1589 test -n "$YACC" || YACC="yacc"
1591 # Find a good install program. We prefer a C program (faster),
1592 # so one script is as good as another. But avoid the broken or
1593 # incompatible versions:
1594 # SysV /etc/install, /usr/sbin/install
1595 # SunOS /usr/etc/install
1596 # IRIX /sbin/install
1598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1600 # ./install, which can be erroneously created by make from ./install.sh.
1601 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1602 echo "configure:1600: checking for a BSD compatible install" >&5
1603 if test -z "$INSTALL"; then
1604 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1608 for ac_dir in $PATH; do
1609 # Account for people who put trailing slashes in PATH elements.
1611 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1613 # OSF1 and SCO ODT 3.0 have their own names for install.
1614 for ac_prog in ginstall scoinst install; do
1615 if test -f $ac_dir/$ac_prog; then
1616 if test $ac_prog = install &&
1617 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1618 # AIX install. It has an incompatible calling convention.
1619 # OSF/1 installbsd also uses dspmsg, but is usable.
1622 ac_cv_path_install="$ac_dir/$ac_prog -c"
1633 if test "${ac_cv_path_install+set}" = set; then
1634 INSTALL="$ac_cv_path_install"
1636 # As a last resort, use the slow shell script. We don't cache a
1637 # path for INSTALL within a source directory, because that will
1638 # break other packages using the cache if that directory is
1639 # removed, or if the path is relative.
1640 INSTALL="$ac_install_sh"
1643 echo "$ac_t""$INSTALL" 1>&6
1645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1646 # It thinks the first close brace ends the variable substitution.
1647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1652 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1653 echo "configure:1651: checking how to run the C preprocessor" >&5
1654 # On Suns, sometimes $CPP names a directory.
1655 if test -n "$CPP" && test -d "$CPP"; then
1658 if test -z "$CPP"; then
1659 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 # This must be in double quotes, not single quotes, because CPP may get
1663 # substituted into the Makefile and "${CC-cc}" will confuse make.
1665 # On the NeXT, cc -E runs the code through the compiler's parser,
1666 # not just through cpp.
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1666 "configure"
1669 #include "confdefs.h"
1673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1674 { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1676 if test -z "$ac_err"; then
1680 echo "configure: failed program was:" >&5
1681 cat conftest.$ac_ext >&5
1683 CPP="${CC-cc} -E -traditional-cpp"
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1683 "configure"
1686 #include "confdefs.h"
1690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1691 { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1693 if test -z "$ac_err"; then
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 CPP="${CC-cc} -nologo -E"
1701 cat > conftest.$ac_ext <<EOF
1702 #line 1700 "configure"
1703 #include "confdefs.h"
1707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1708 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1710 if test -z "$ac_err"; then
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1724 ac_cv_prog_CPP="$CPP"
1726 CPP="$ac_cv_prog_CPP"
1728 ac_cv_prog_CPP="$CPP"
1730 echo "$ac_t""$CPP" 1>&6
1732 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1733 echo "configure:1731: checking for ANSI C header files" >&5
1734 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1736 "configure"
1739 #include "confdefs.h"
1745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1746 { (eval echo configure:1744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1748 if test -z "$ac_err"; then
1750 ac_cv_header_stdc=yes
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1756 ac_cv_header_stdc=no
1760 if test $ac_cv_header_stdc = yes; then
1761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1761 "configure"
1764 #include "confdefs.h"
1767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1768 egrep "memchr" >/dev/null 2>&1; then
1772 ac_cv_header_stdc=no
1778 if test $ac_cv_header_stdc = yes; then
1779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1779 "configure"
1782 #include "confdefs.h"
1785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1786 egrep "free" >/dev/null 2>&1; then
1790 ac_cv_header_stdc=no
1796 if test $ac_cv_header_stdc = yes; then
1797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1798 if test "$cross_compiling" = yes; then
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1800 "configure"
1803 #include "confdefs.h"
1805 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1806 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1808 int main () { int i; for (i = 0; i < 256; i++)
1809 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1813 if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1820 ac_cv_header_stdc=no
1828 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1829 if test $ac_cv_header_stdc = yes; then
1830 cat >> confdefs.h <<\EOF
1831 #define STDC_HEADERS 1
1836 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1837 echo "configure:1835: checking whether time.h and sys/time.h may both be included" >&5
1838 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1840 "configure"
1843 #include "confdefs.h"
1844 #include <sys/types.h>
1845 #include <sys/time.h>
1851 if { (eval echo configure:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1853 ac_cv_header_time=yes
1855 echo "configure: failed program was:" >&5
1856 cat conftest.$ac_ext >&5
1858 ac_cv_header_time=no
1863 echo "$ac_t""$ac_cv_header_time" 1>&6
1864 if test $ac_cv_header_time = yes; then
1865 cat >> confdefs.h <<\EOF
1866 #define TIME_WITH_SYS_TIME 1
1871 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1872 echo "configure:1870: checking whether string.h and strings.h may both be included" >&5
1873 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1875 "configure"
1878 #include "confdefs.h"
1880 #include <strings.h>
1885 if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1887 gcc_cv_header_string=yes
1889 echo "configure: failed program was:" >&5
1890 cat conftest.$ac_ext >&5
1892 gcc_cv_header_string=no
1897 echo "$ac_t""$gcc_cv_header_string" 1>&6
1898 if test $gcc_cv_header_string = yes; then
1899 cat >> confdefs.h <<\EOF
1900 #define STRING_WITH_STRINGS 1
1905 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1906 echo "configure:1904: checking for sys/wait.h that is POSIX.1 compatible" >&5
1907 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1909 "configure"
1912 #include "confdefs.h"
1913 #include <sys/types.h>
1914 #include <sys/wait.h>
1916 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1919 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1924 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1927 if { (eval echo configure:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1929 ac_cv_header_sys_wait_h=yes
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1934 ac_cv_header_sys_wait_h=no
1939 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1940 if test $ac_cv_header_sys_wait_h = yes; then
1941 cat >> confdefs.h <<\EOF
1942 #define HAVE_SYS_WAIT_H 1
1947 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 direct.h
1949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951 echo "configure:1949: checking for $ac_hdr" >&5
1952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1954 "configure"
1957 #include "confdefs.h"
1960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure:1959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963 if test -z "$ac_err"; then
1965 eval "ac_cv_header_$ac_safe=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_header_$ac_safe=no"
1975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_hdr 1
1983 echo "$ac_t""no" 1>&6
1988 # Check for thread headers.
1989 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1990 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1991 echo "configure:1989: checking for thread.h" >&5
1992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1994 "configure"
1997 #include "confdefs.h"
2000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2001 { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2003 if test -z "$ac_err"; then
2005 eval "ac_cv_header_$ac_safe=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_header_$ac_safe=no"
2015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2019 echo "$ac_t""no" 1>&6
2023 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2024 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2025 echo "configure:2023: checking for pthread.h" >&5
2026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2028 "configure"
2031 #include "confdefs.h"
2032 #include <pthread.h>
2034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2035 { (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2037 if test -z "$ac_err"; then
2039 eval "ac_cv_header_$ac_safe=yes"
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 eval "ac_cv_header_$ac_safe=no"
2049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2053 echo "$ac_t""no" 1>&6
2058 # See if GNAT has been installed
2059 # Extract the first word of "gnatbind", so it can be a program name with args.
2060 set dummy gnatbind; ac_word=$2
2061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2062 echo "configure:2060: checking for $ac_word" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 if test -n "$gnat"; then
2067 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2071 for ac_dir in $ac_dummy; do
2072 test -z "$ac_dir" && ac_dir=.
2073 if test -f $ac_dir/$ac_word; then
2074 ac_cv_prog_gnat="yes"
2079 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2082 gnat="$ac_cv_prog_gnat"
2083 if test -n "$gnat"; then
2084 echo "$ac_t""$gnat" 1>&6
2086 echo "$ac_t""no" 1>&6
2090 # See if the system preprocessor understands the ANSI C preprocessor
2091 # stringification operator.
2092 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2093 echo "configure:2091: checking whether cpp understands the stringify operator" >&5
2094 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2095 echo $ac_n "(cached) $ac_c" 1>&6
2097 cat > conftest.$ac_ext <<EOF
2098 #line 2096 "configure"
2099 #include "confdefs.h"
2103 char *test = S(foo);
2106 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2108 gcc_cv_c_have_stringify=yes
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2113 gcc_cv_c_have_stringify=no
2118 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2119 if test $gcc_cv_c_have_stringify = yes; then
2120 cat >> confdefs.h <<\EOF
2121 #define HAVE_CPP_STRINGIFY 1
2126 # Use <inttypes.h> only if it exists,
2127 # doesn't clash with <sys/types.h>, and declares intmax_t.
2128 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2129 echo "configure:2127: checking for inttypes.h" >&5
2130 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2132 "configure"
2135 #include "confdefs.h"
2136 #include <sys/types.h>
2137 #include <inttypes.h>
2142 if { (eval echo configure:2140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2144 gcc_cv_header_inttypes_h=yes
2146 echo "configure: failed program was:" >&5
2147 cat conftest.$ac_ext >&5
2149 gcc_cv_header_inttypes_h=no
2154 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2155 if test $gcc_cv_header_inttypes_h = yes; then
2156 cat >> confdefs.h <<\EOF
2157 #define HAVE_INTTYPES_H 1
2162 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2163 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2164 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2168 echo "configure:2166: checking for $ac_func" >&5
2169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2171 "configure"
2174 #include "confdefs.h"
2175 /* System header to define __stub macros and hopefully few prototypes,
2176 which can conflict with char $ac_func(); below. */
2178 /* Override any gcc2 internal prototype to avoid an error. */
2179 /* We use char because int might match the return type of a gcc2
2180 builtin and then its argument prototype would still apply. */
2185 /* The GNU C library defines this for functions which it implements
2186 to always fail with ENOSYS. Some functions are actually named
2187 something starting with __ and the normal name is an alias. */
2188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2196 if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2198 eval "ac_cv_func_$ac_func=yes"
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 eval "ac_cv_func_$ac_func=no"
2208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2211 cat >> confdefs.h <<EOF
2212 #define $ac_tr_func 1
2216 echo "$ac_t""no" 1>&6
2221 # Make sure wchar_t is available
2222 #AC_CHECK_TYPE(wchar_t, unsigned int)
2224 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2225 echo "configure:2223: checking for vprintf" >&5
2226 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2228 "configure"
2231 #include "confdefs.h"
2232 /* System header to define __stub macros and hopefully few prototypes,
2233 which can conflict with char vprintf(); below. */
2235 /* Override any gcc2 internal prototype to avoid an error. */
2236 /* We use char because int might match the return type of a gcc2
2237 builtin and then its argument prototype would still apply. */
2242 /* The GNU C library defines this for functions which it implements
2243 to always fail with ENOSYS. Some functions are actually named
2244 something starting with __ and the normal name is an alias. */
2245 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2253 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2255 eval "ac_cv_func_vprintf=yes"
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2260 eval "ac_cv_func_vprintf=no"
2265 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2266 echo "$ac_t""yes" 1>&6
2267 cat >> confdefs.h <<\EOF
2268 #define HAVE_VPRINTF 1
2272 echo "$ac_t""no" 1>&6
2275 if test "$ac_cv_func_vprintf" != yes; then
2276 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2277 echo "configure:2275: checking for _doprnt" >&5
2278 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.$ac_ext <<EOF
2282 #line 2280 "configure"
2283 #include "confdefs.h"
2284 /* System header to define __stub macros and hopefully few prototypes,
2285 which can conflict with char _doprnt(); below. */
2287 /* Override any gcc2 internal prototype to avoid an error. */
2288 /* We use char because int might match the return type of a gcc2
2289 builtin and then its argument prototype would still apply. */
2294 /* The GNU C library defines this for functions which it implements
2295 to always fail with ENOSYS. Some functions are actually named
2296 something starting with __ and the normal name is an alias. */
2297 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2305 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2307 eval "ac_cv_func__doprnt=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 eval "ac_cv_func__doprnt=no"
2317 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2318 echo "$ac_t""yes" 1>&6
2319 cat >> confdefs.h <<\EOF
2320 #define HAVE_DOPRNT 1
2324 echo "$ac_t""no" 1>&6
2331 if test $ac_cv_func_vprintf != yes ; then
2333 if test $ac_cv_func__doprnt != yes ; then
2340 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2341 echo "configure:2339: checking whether the printf functions support %p" >&5
2342 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 if test "$cross_compiling" = yes; then
2346 gcc_cv_func_printf_ptr=no
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2347 "configure"
2350 #include "confdefs.h"
2356 char *p = buf, *q = NULL;
2357 sprintf(buf, "%p", p);
2358 sscanf(buf, "%p", &q);
2362 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2364 gcc_cv_func_printf_ptr=yes
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2369 gcc_cv_func_printf_ptr=no
2374 rm -f core core.* *.core
2377 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2378 if test $gcc_cv_func_printf_ptr = yes ; then
2379 cat >> confdefs.h <<\EOF
2380 #define HAVE_PRINTF_PTR 1
2388 { echo "configure: error:
2389 *** UWIN may not be used as a host platform because
2390 *** linking with posix.dll is not allowed by the GNU GPL" 1>&2; exit 1; }
2393 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2394 echo "configure:2392: checking for pid_t" >&5
2395 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2397 "configure"
2400 #include "confdefs.h"
2401 #include <sys/types.h>
2407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2408 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2410 ac_cv_type_pid_t=yes
2418 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2419 if test $ac_cv_type_pid_t = no; then
2420 cat >> confdefs.h <<\EOF
2426 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2427 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2428 echo "configure:2426: checking for vfork.h" >&5
2429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2431 "configure"
2434 #include "confdefs.h"
2437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2438 { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2440 if test -z "$ac_err"; then
2442 eval "ac_cv_header_$ac_safe=yes"
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2448 eval "ac_cv_header_$ac_safe=no"
2452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 cat >> confdefs.h <<\EOF
2455 #define HAVE_VFORK_H 1
2459 echo "$ac_t""no" 1>&6
2462 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2463 echo "configure:2461: checking for working vfork" >&5
2464 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 if test "$cross_compiling" = yes; then
2468 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2469 echo "configure:2467: checking for vfork" >&5
2470 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2472 "configure"
2475 #include "confdefs.h"
2476 /* System header to define __stub macros and hopefully few prototypes,
2477 which can conflict with char vfork(); below. */
2479 /* Override any gcc2 internal prototype to avoid an error. */
2480 /* We use char because int might match the return type of a gcc2
2481 builtin and then its argument prototype would still apply. */
2486 /* The GNU C library defines this for functions which it implements
2487 to always fail with ENOSYS. Some functions are actually named
2488 something starting with __ and the normal name is an alias. */
2489 #if defined (__stub_vfork) || defined (__stub___vfork)
2497 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2499 eval "ac_cv_func_vfork=yes"
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2504 eval "ac_cv_func_vfork=no"
2509 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2510 echo "$ac_t""yes" 1>&6
2513 echo "$ac_t""no" 1>&6
2516 ac_cv_func_vfork_works=$ac_cv_func_vfork
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2517 "configure"
2520 #include "confdefs.h"
2521 /* Thanks to Paul Eggert for this test. */
2523 #include <sys/types.h>
2524 #include <sys/stat.h>
2525 #ifdef HAVE_UNISTD_H
2531 /* On some sparc systems, changes by the child to local and incoming
2532 argument registers are propagated back to the parent.
2533 The compiler is told about this with #include <vfork.h>,
2534 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2535 Test for this by using a static variable whose address
2536 is put into a register that is clobbered by the vfork. */
2539 sparc_address_test (int arg)
2541 sparc_address_test (arg) int arg;
2559 pid_t parent = getpid ();
2562 sparc_address_test ();
2567 /* Here is another test for sparc vfork register problems.
2568 This test uses lots of local variables, at least
2569 as many local variables as main has allocated so far
2570 including compiler temporaries. 4 locals are enough for
2571 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2572 A buggy compiler should reuse the register of parent
2573 for one of the local variables, since it will think that
2574 parent can't possibly be used any more in this routine.
2575 Assigning to the local variable will thus munge parent
2576 in the parent process. */
2578 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2579 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2580 /* Convince the compiler that p..p7 are live; otherwise, it might
2581 use the same hardware register for all 8 local variables. */
2582 if (p != p1 || p != p2 || p != p3 || p != p4
2583 || p != p5 || p != p6 || p != p7)
2586 /* On some systems (e.g. IRIX 3.3),
2587 vfork doesn't separate parent from child file descriptors.
2588 If the child closes a descriptor before it execs or exits,
2589 this munges the parent's descriptor as well.
2590 Test for this by closing stdout in the child. */
2591 _exit(close(fileno(stdout)) != 0);
2596 while (wait(&status) != child)
2599 /* Was there some problem with vforking? */
2602 /* Did the child fail? (This shouldn't happen.) */
2605 /* Did the vfork/compiler bug occur? */
2606 || parent != getpid()
2608 /* Did the file descriptor bug occur? */
2609 || fstat(fileno(stdout), &st) != 0
2614 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2616 ac_cv_func_vfork_works=yes
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2621 ac_cv_func_vfork_works=no
2628 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2629 if test $ac_cv_func_vfork_works = no; then
2630 cat >> confdefs.h <<\EOF
2637 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2638 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2639 strsignal putc_unlocked fputs_unlocked strstr
2641 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2642 echo "configure:2640: checking whether $ac_func must be declared" >&5
2643 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2646 cat > conftest.$ac_ext <<EOF
2647 #line 2645 "configure"
2648 #include "confdefs.h"
2651 #ifdef STRING_WITH_STRINGS
2652 # include <string.h>
2653 # include <strings.h>
2655 # ifdef HAVE_STRING_H
2656 # include <string.h>
2658 # ifdef HAVE_STRINGS_H
2659 # include <strings.h>
2663 #ifdef HAVE_STDLIB_H
2666 #ifdef HAVE_UNISTD_H
2670 #define rindex strrchr
2673 #define index strchr
2677 char *(*pfn) = (char *(*)) $ac_func
2680 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2682 eval "gcc_cv_decl_needed_$ac_func=no"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 eval "gcc_cv_decl_needed_$ac_func=yes"
2692 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2694 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2695 cat >> confdefs.h <<EOF
2696 #define $gcc_tr_decl 1
2700 echo "$ac_t""no" 1>&6
2706 for ac_func in getrlimit setrlimit
2708 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2709 echo "configure:2707: checking whether $ac_func must be declared" >&5
2710 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2712 "configure"
2715 #include "confdefs.h"
2718 #ifdef STRING_WITH_STRINGS
2719 # include <string.h>
2720 # include <strings.h>
2722 # ifdef HAVE_STRING_H
2723 # include <string.h>
2725 # ifdef HAVE_STRINGS_H
2726 # include <strings.h>
2730 #ifdef HAVE_STDLIB_H
2733 #ifdef HAVE_UNISTD_H
2737 #define rindex strrchr
2740 #define index strchr
2742 #include <sys/types.h>
2743 #ifdef HAVE_SYS_RESOURCE_H
2744 #include <sys/resource.h>
2748 char *(*pfn) = (char *(*)) $ac_func
2751 if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2753 eval "gcc_cv_decl_needed_$ac_func=no"
2755 echo "configure: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2758 eval "gcc_cv_decl_needed_$ac_func=yes"
2763 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2766 cat >> confdefs.h <<EOF
2767 #define $gcc_tr_decl 1
2771 echo "$ac_t""no" 1>&6
2777 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2778 echo "configure:2776: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2779 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2781 "configure"
2784 #include "confdefs.h"
2785 #include <sys/types.h>
2787 /* NetBSD declares sys_siglist in unistd.h. */
2788 #ifdef HAVE_UNISTD_H
2792 char *msg = *(sys_siglist + 1);
2795 if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2797 ac_cv_decl_sys_siglist=yes
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2802 ac_cv_decl_sys_siglist=no
2807 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2808 if test $ac_cv_decl_sys_siglist = yes; then
2809 cat >> confdefs.h <<\EOF
2810 #define SYS_SIGLIST_DECLARED 1
2816 # mkdir takes a single argument on some systems.
2817 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2818 echo "configure:2816: checking if mkdir takes one argument" >&5
2819 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2821 "configure"
2824 #include "confdefs.h"
2826 #include <sys/types.h>
2827 #ifdef HAVE_SYS_STAT_H
2828 # include <sys/stat.h>
2830 #ifdef HAVE_UNISTD_H
2831 # include <unistd.h>
2833 #ifdef HAVE_DIRECT_H
2834 # include <direct.h>
2840 if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2842 gcc_cv_mkdir_takes_one_arg=no
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 gcc_cv_mkdir_takes_one_arg=yes
2852 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2853 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2854 cat >> confdefs.h <<\EOF
2855 #define MKDIR_TAKES_ONE_ARG 1
2869 build_install_headers_dir=install-headers-tar
2874 host_truncate_target=
2877 # Decode the host machine, then the target machine.
2878 # For the host machine, we save the xm_file variable as host_xm_file;
2879 # then we decode the target machine and forget everything else
2880 # that came from the host machine.
2881 for machine in $build $host $target; do
2895 # Set this to force installation and use of collect2.
2897 # Set this to override the default target model.
2899 # Set this to control how the header file directory is installed.
2900 install_headers_dir=install-headers-tar
2901 # Set this to a non-empty list of args to pass to cpp if the target
2902 # wants its .md file passed through cpp.
2904 # Set this if directory names should be truncated to 14 characters.
2906 # Set this if gdb needs a dir command with `dirname $out_file`
2907 gdb_needs_out_file_path=
2908 # Set this if the build machine requires executables to have a
2911 # Set this to control which thread package will be used.
2913 # Reinitialize these from the flag values every loop pass, since some
2914 # configure entries modify them.
2916 gnu_ld="$gnu_ld_flag"
2917 enable_threads=$enable_threads_flag
2919 # Set default cpu_type, tm_file and xm_file so it can be updated in
2920 # each machine entry.
2921 cpu_type=`echo $machine | sed 's/-.*$//'`
2955 tm_file=${cpu_type}/${cpu_type}.h
2956 xm_file=${cpu_type}/xm-${cpu_type}.h
2958 # Common parts for linux-gnu and openbsd systems
2961 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2964 tm_file=${cpu_type}/openbsd.h
2965 tmake_file="t-libc-ok t-openbsd"
2966 # avoid surprises, always provide an xm-openbsd file
2967 xm_file=${cpu_type}/xm-openbsd.h
2968 # don't depend on processor x-fragments as well
2970 if test x$enable_threads = xyes; then
2972 tmake_file="${tmake_file} t-openbsd-thread"
2978 # Support site-specific machine types.
2980 cpu_type=`echo $machine | sed -e 's/-.*//'`
2981 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2982 xm_file=${cpu_type}/xm-$rest.h
2983 tm_file=${cpu_type}/$rest.h
2984 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2985 then xmake_file=${cpu_type}/x-$rest; \
2988 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2989 then tmake_file=${cpu_type}/t-$rest; \
2995 a29k-*-bsd* | a29k-*-sym1*)
2996 tm_file="${tm_file} a29k/unix.h"
2998 xmake_file=a29k/x-unix
3001 a29k-*-udi | a29k-*-coff)
3002 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3003 tmake_file=a29k/t-a29kbare
3006 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3007 tmake_file=a29k/t-vx29k
3008 extra_parts="crtbegin.o crtend.o"
3009 thread_file='vxworks'
3011 a29k-*-*) # Default a29k environment.
3015 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3017 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3018 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3020 # GAS + IEEE_CONFORMANT
3021 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3023 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3024 xmake_file="x-interix alpha/t-pe"
3025 tmake_file="alpha/t-interix alpha/t-ieee"
3026 if test x$enable_threads = xyes ; then
3029 if test x$stabs = xyes ; then
3030 tm_file="${tm_file} dbxcoff.h"
3032 #prefix='$$INTERIX_ROOT'/usr/contrib
3033 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3035 alpha*-*-linux-gnuecoff*)
3036 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3037 target_cpu_default="MASK_GAS"
3038 tmake_file="alpha/t-ieee"
3043 alpha*-*-linux-gnulibc1*)
3044 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3045 target_cpu_default="MASK_GAS"
3046 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3047 extra_parts="crtbegin.o crtend.o"
3050 if test x$enable_threads = xyes; then
3054 alpha*-*-linux-gnu*)
3055 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3056 target_cpu_default="MASK_GAS"
3057 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3058 extra_parts="crtbegin.o crtend.o"
3061 if test x$enable_threads = xyes; then
3066 tm_file="${tm_file} freebsd.h alpha/freebsd.h"
3067 xm_file="${xm_file} xm-freebsd.h"
3068 target_cpu_default="MASK_GAS"
3069 tmake_file="t-freebsd alpha/t-crtbe"
3071 fixincludes=fixinc.wrap
3075 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3076 target_cpu_default="MASK_GAS"
3077 tmake_file="alpha/t-crtbe alpha/t-ieee"
3078 extra_parts="crtbegin.o crtend.o"
3084 # default x-alpha is only appropriate for dec-osf.
3085 target_cpu_default="MASK_GAS"
3086 tmake_file="alpha/t-ieee"
3090 if test x$stabs = xyes
3092 tm_file="${tm_file} dbx.h"
3094 if test x$gas != xyes
3096 extra_passes="mips-tfile mips-tdump"
3099 tmake_file="alpha/t-ieee"
3102 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3105 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3108 tm_file="${tm_file} alpha/osf.h"
3109 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3110 # a broken tar, so we use cpio instead.
3111 install_headers_dir=install-headers-cpio
3115 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3116 target_cpu_default=MASK_SUPPORT_ARCH
3121 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3122 tmake_file="alpha/t-ieee"
3125 extra_passes="mips-tfile mips-tdump"
3128 thread_file='vxworks'
3131 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3132 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3133 tmake_file="t-libc-ok alpha/t-ieee"
3134 xmake_file=winnt/x-winnt
3135 extra_host_objs=oldnames.o
3136 extra_gcc_objs="spawnv.o oldnames.o"
3137 if test x$gnu_ld != xyes
3139 extra_programs=ld.exe
3141 if test x$enable_threads = xyes; then
3147 xm_file="${xm_file} alpha/xm-vms.h"
3148 tmake_file="alpha/t-vms alpha/t-ieee"
3151 extra_parts="crtinit.o crtfini.o"
3153 arm-*-coff* | armel-*-coff*)
3155 tmake_file=arm/t-bare
3159 tmake_file=arm/t-bare
3160 thread_file='vxworks'
3162 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3163 tm_file=arm/riscix1-1.h
3166 arm-*-riscix*) # Acorn RISC machine
3167 if test x$gas = xyes
3169 tm_file=arm/rix-gas.h
3171 tm_file=arm/riscix.h
3173 xmake_file=arm/x-riscix
3174 tmake_file=arm/t-riscix
3177 arm-semi-aout | armel-semi-aout)
3179 tmake_file=arm/t-semi
3181 arm-semi-aof | armel-semi-aof)
3182 tm_file=arm/semiaof.h
3183 tmake_file=arm/t-semiaof
3186 tm_file=arm/netbsd.h
3187 xm_file="arm/xm-netbsd.h ${xm_file}"
3188 tmake_file="t-netbsd arm/t-netbsd"
3191 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3194 tm_file=arm/linux-aout.h
3195 tmake_file=arm/t-linux
3198 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3199 xm_file=arm/xm-linux.h
3201 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3204 tm_file="arm/linux-elf26.h $tm_file"
3207 tmake_file="t-linux arm/t-linux"
3208 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3210 case x${enable_threads} in
3211 x | xyes | xpthreads | xposix)
3216 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3217 xm_file=arm/xm-linux.h
3219 tm_file="arm/linux-elf.h"
3222 tm_file="arm/linux-elf26.h $tm_file"
3225 tmake_file="t-linux arm/t-linux"
3226 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3228 case x${enable_threads} in
3229 x | xyes | xpthreads | xposix)
3236 tmake_file=arm/t-bare
3239 tm_file=arm/ecos-elf.h
3240 tmake_file=arm/t-elf
3243 tm_file=arm/unknown-elf.h
3244 tmake_file=arm/t-arm-elf
3247 tm_file=arm/unknown-elf-oabi.h
3248 tmake_file=arm/t-arm-elf
3250 c1-convex-*) # Convex C1
3251 target_cpu_default=1
3254 c2-convex-*) # Convex C2
3255 target_cpu_default=2
3259 target_cpu_default=4
3263 target_cpu_default=8
3267 target_cpu_default=16
3272 tmake_file=c4x/t-c4x
3274 clipper-intergraph-clix*)
3275 tm_file="${tm_file} svr3.h clipper/clix.h"
3276 xm_file=clipper/xm-clix.h
3277 xmake_file=clipper/x-clix
3278 extra_headers=va-clipper.h
3279 extra_parts="crtbegin.o crtend.o"
3280 install_headers_dir=install-headers-cpio
3287 # This hasn't been upgraded to GCC 2.
3288 # fx80-alliant-*) # Alliant FX/80
3294 target_cpu_default="MASK_PA_11"
3295 tmake_file=pa/t-openbsd
3298 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3299 xm_file=pa/xm-papro.h
3303 target_cpu_default="MASK_PA_11"
3304 tm_file="${tm_file} pa/pa-osf.h"
3308 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3309 xm_file=pa/xm-papro.h
3313 tm_file="${tm_file} pa/pa-osf.h"
3317 target_cpu_default="MASK_PA_11"
3324 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3325 xm_file=pa/xm-pahpux.h
3326 xmake_file=pa/x-pa-hpux
3327 if test x$gas = xyes
3329 tm_file="${tm_file} pa/gas.h"
3331 install_headers_dir=install-headers-cpio
3334 hppa1.0-*-hpux8.0[0-2]*)
3335 tm_file="${tm_file} pa/pa-hpux.h"
3336 xm_file=pa/xm-pahpux.h
3337 xmake_file=pa/x-pa-hpux
3338 if test x$gas = xyes
3340 tm_file="${tm_file} pa/pa-gas.h"
3342 tm_file="pa/pa-oldas.h ${tm_file}"
3344 install_headers_dir=install-headers-cpio
3347 hppa1.1-*-hpux8.0[0-2]*)
3348 target_cpu_default="MASK_PA_11"
3349 tm_file="${tm_file} pa/pa-hpux.h"
3350 xm_file=pa/xm-pahpux.h
3351 xmake_file=pa/x-pa-hpux
3352 if test x$gas = xyes
3354 tm_file="${tm_file} pa/pa-gas.h"
3356 tm_file="pa/pa-oldas.h ${tm_file}"
3358 install_headers_dir=install-headers-cpio
3362 target_cpu_default="MASK_PA_11"
3363 tm_file="${tm_file} pa/pa-hpux.h"
3364 xm_file=pa/xm-pahpux.h
3365 xmake_file=pa/x-pa-hpux
3366 if test x$gas = xyes
3368 tm_file="${tm_file} pa/pa-gas.h"
3370 install_headers_dir=install-headers-cpio
3374 tm_file="${tm_file} pa/pa-hpux.h"
3375 xm_file=pa/xm-pahpux.h
3376 xmake_file=pa/x-pa-hpux
3377 if test x$gas = xyes
3379 tm_file="${tm_file} pa/pa-gas.h"
3381 install_headers_dir=install-headers-cpio
3384 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3385 target_cpu_default="MASK_PA_11"
3386 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3387 xm_file=pa/xm-pahpux.h
3388 xmake_file=pa/x-pa-hpux
3390 if test x$gas = xyes
3392 tm_file="${tm_file} pa/pa-gas.h"
3394 if test x$enable_threads = x; then
3395 enable_threads=$have_pthread_h
3397 if test x$enable_threads = xyes; then
3399 tmake_file="${tmake_file} pa/t-dce-thr"
3401 install_headers_dir=install-headers-cpio
3405 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3406 xm_file=pa/xm-pahpux.h
3407 xmake_file=pa/x-pa-hpux
3409 if test x$gas = xyes
3411 tm_file="${tm_file} pa/pa-gas.h"
3413 if test x$enable_threads = x; then
3414 enable_threads=$have_pthread_h
3416 if test x$enable_threads = xyes; then
3418 tmake_file="${tmake_file} pa/t-dce-thr"
3420 install_headers_dir=install-headers-cpio
3423 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3424 target_cpu_default="MASK_PA_11"
3425 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3426 xm_file=pa/xm-pahpux.h
3427 xmake_file=pa/x-pa-hpux
3428 if test x$gas = xyes
3430 tm_file="${tm_file} pa/pa-gas.h"
3432 install_headers_dir=install-headers-cpio
3436 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3437 xm_file=pa/xm-pahpux.h
3438 xmake_file=pa/x-pa-hpux
3439 if test x$gas = xyes
3441 tm_file="${tm_file} pa/pa-gas.h"
3443 install_headers_dir=install-headers-cpio
3446 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3447 target_cpu_default="MASK_PA_11"
3448 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3449 xm_file=pa/xm-pahpux.h
3450 xmake_file=pa/x-pa-hpux
3451 if test x$gas = xyes
3453 tm_file="${tm_file} pa/pa-gas.h"
3455 install_headers_dir=install-headers-cpio
3459 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3460 xm_file=pa/xm-pahpux.h
3461 xmake_file=pa/x-pa-hpux
3462 if test x$gas = xyes
3464 tm_file="${tm_file} pa/pa-gas.h"
3466 install_headers_dir=install-headers-cpio
3470 target_cpu_default="MASK_PA_11"
3475 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3476 if test x$gas = xyes
3478 tm_file=i386/aix386.h
3479 extra_parts="crtbegin.o crtend.o"
3480 tmake_file=i386/t-crtstuff
3482 tm_file=i386/aix386ng.h
3485 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3487 xmake_file=i386/x-aix
3489 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3490 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3491 xm_defines="USG POSIX SMALL_ARG_MAX"
3492 xmake_file=i386/x-ncr3000
3493 if test x$stabs = xyes -a x$gas = xyes
3495 tm_file=i386/sysv4gdb.h
3497 tm_file=i386/sysv4.h
3499 extra_parts="crtbegin.o crtend.o"
3500 tmake_file=i386/t-crtpic
3504 xm_file=i386/xm-next.h
3505 tmake_file=i386/t-next
3506 xmake_file=i386/x-next
3507 extra_objs=nextstep.o
3508 extra_parts="crtbegin.o crtend.o"
3509 if test x$enable_threads = xyes; then
3513 i[34567]86-sequent-bsd*) # 80386 from Sequent
3515 if test x$gas = xyes
3517 tm_file=i386/seq-gas.h
3519 tm_file=i386/sequent.h
3522 i[34567]86-sequent-ptx1*)
3523 xm_defines="USG SVR3"
3524 xmake_file=i386/x-sysv3
3525 tm_file=i386/seq-sysv3.h
3526 tmake_file=i386/t-crtstuff
3527 extra_parts="crtbegin.o crtend.o"
3528 install_headers_dir=install-headers-cpio
3530 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3531 xm_defines="USG SVR3"
3532 xmake_file=i386/x-sysv3
3533 tm_file=i386/seq2-sysv3.h
3534 tmake_file=i386/t-crtstuff
3535 extra_parts="crtbegin.o crtend.o"
3536 install_headers_dir=install-headers-cpio
3538 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3539 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3540 xm_defines="USG POSIX SMALL_ARG_MAX"
3542 tm_file=i386/ptx4-i.h
3544 extra_parts="crtbegin.o crtend.o"
3545 install_headers_dir=install-headers-cpio
3547 i386-sun-sunos*) # Sun i386 roadrunner
3552 i[34567]86-wrs-vxworks*)
3553 tm_file=i386/vxi386.h
3554 tmake_file=i386/t-i386bare
3555 thread_file='vxworks'
3558 tm_file=i386/i386-aout.h
3559 tmake_file=i386/t-i386bare
3561 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3562 tm_file=i386/bsd386.h
3563 # tmake_file=t-libc-ok
3566 tm_file=i386/386bsd.h
3567 # tmake_file=t-libc-ok
3568 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3571 i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsdaout*)
3572 tm_file=i386/freebsd-aout.h
3573 # On FreeBSD, the headers are already ok, except for math.h.
3574 fixincludes=fixinc.wrap
3575 tmake_file=t-freebsd
3577 i[34567]86-*-freebsd* | i[34567]86-*-freebsd[3-9].* | i[34567]86-*-freebsd[3-9] | i[34567]86-*-freebsdelf*)
3578 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd.h i386/perform.h"
3579 # On FreeBSD, the headers are already ok, except for math.h.
3580 fixincludes=fixinc.wrap
3581 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3582 tmake_file=t-freebsd
3588 tm_file="i386/i386.h i386/att.h svr4.h i386/dragonfly.h i386/perform.h"
3589 # On FreeBSD, the headers are already ok, except for math.h.
3590 fixincludes=fixinc.wrap
3591 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3592 tmake_file=t-dragonfly
3597 i[34567]86-*-netbsd*)
3598 tm_file=i386/netbsd.h
3602 i[34567]86-*-openbsd*)
3603 # we need collect2 until our bug is fixed...
3607 tm_file=i386/i386-coff.h
3608 tmake_file=i386/t-i386bare
3610 i[34567]86-*-isc*) # 80386 running ISC system
3611 xm_file="${xm_file} i386/xm-isc.h"
3612 xm_defines="USG SVR3"
3614 i[34567]86-*-isc[34]*)
3615 xmake_file=i386/x-isc3
3618 xmake_file=i386/x-isc
3621 if test x$gas = xyes -a x$stabs = xyes
3623 tm_file=i386/iscdbx.h
3624 tmake_file=i386/t-svr3dbx
3625 extra_parts="svr3.ifile svr3z.ifile"
3627 tm_file=i386/isccoff.h
3628 tmake_file=i386/t-crtstuff
3629 extra_parts="crtbegin.o crtend.o"
3631 install_headers_dir=install-headers-cpio
3633 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3635 xmake_file=x-linux-aout
3636 tmake_file="t-linux-aout i386/t-crtstuff"
3637 tm_file=i386/linux-oldld.h
3641 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3642 xmake_file=x-linux-aout
3643 tmake_file="t-linux-aout i386/t-crtstuff"
3644 tm_file=i386/linux-aout.h
3648 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3649 # GNU/Linux C library 5
3651 tm_file=i386/linux.h
3652 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3653 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3656 if test x$enable_threads = xyes; then
3657 thread_file='single'
3660 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3661 # aka GNU/Linux C library 6
3663 tm_file=i386/linux.h
3664 tmake_file="t-linux i386/t-crtstuff"
3665 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3668 if test x$enable_threads = xyes; then
3675 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3676 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3679 i[34567]86-pc-msdosdjgpp*)
3680 xm_file=i386/xm-djgpp.h
3681 tm_file=i386/djgpp.h
3682 tmake_file=i386/t-djgpp
3683 xmake_file=i386/x-djgpp
3687 case $host in *pc-msdosdjgpp*)
3692 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3694 tmake_file=t-libc-ok
3698 i[34567]86-*-lynxos*)
3699 if test x$gas = xyes
3703 tm_file=i386/lynx-ng.h
3705 xm_file=i386/xm-lynx.h
3706 tmake_file=i386/t-i386bare
3711 # tmake_file=t-libc-ok
3714 i[34567]86-*-osfrose*) # 386 using OSF/rose
3715 if test x$elf = xyes
3717 tm_file=i386/osfelf.h
3720 tm_file=i386/osfrose.h
3723 xm_file="i386/xm-osf.h ${xm_file}"
3724 xmake_file=i386/x-osfrose
3725 tmake_file=i386/t-osf
3726 extra_objs=halfpic.o
3728 i[34567]86-go32-rtems*)
3730 xm_file=i386/xm-go32.h
3731 tm_file=i386/go32-rtems.h
3732 tmake_file="i386/t-go32 t-rtems"
3734 i[34567]86-*-rtemself*)
3736 tm_file=i386/rtemself.h
3737 tmake_file="i386/t-i386bare t-rtems"
3739 i[34567]86-*-rtems*)
3741 tm_file=i386/rtems.h
3742 tmake_file="i386/t-i386bare t-rtems"
3744 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3745 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3746 xm_defines="USG SVR3"
3747 xmake_file=i386/x-sco5
3748 install_headers_dir=install-headers-cpio
3750 if test x$gas = xyes
3752 tm_file="i386/sco5gas.h ${tm_file}"
3753 tmake_file=i386/t-sco5gas
3755 tmake_file=i386/t-sco5
3757 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3759 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3760 xm_file="${xm_file} i386/xm-sco.h"
3761 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3762 xmake_file=i386/x-sco4
3763 install_headers_dir=install-headers-cpio
3764 if test x$stabs = xyes
3766 tm_file=i386/sco4dbx.h
3767 tmake_file=i386/t-svr3dbx
3768 extra_parts="svr3.ifile svr3z.rfile"
3771 tmake_file=i386/t-crtstuff
3772 extra_parts="crtbegin.o crtend.o"
3776 i[34567]86-*-sco*) # 80386 running SCO system
3777 xm_file=i386/xm-sco.h
3778 xmake_file=i386/x-sco
3779 install_headers_dir=install-headers-cpio
3780 if test x$stabs = xyes
3782 tm_file=i386/scodbx.h
3783 tmake_file=i386/t-svr3dbx
3784 extra_parts="svr3.ifile svr3z.rfile"
3787 extra_parts="crtbegin.o crtend.o"
3788 tmake_file=i386/t-crtstuff
3792 i[34567]86-*-solaris2*)
3793 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3794 xm_defines="USG POSIX SMALL_ARG_MAX"
3796 if test x$gas = xyes; then
3797 # Only needed if gas does not support -s
3798 tm_file="i386/sol2gas.h ${tm_file}"
3800 tmake_file=i386/t-sol2
3801 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3803 if test x$enable_threads = xyes; then
3804 thread_file='solaris'
3807 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3808 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3809 xm_defines="USG POSIX"
3810 tm_file=i386/sysv5.h
3811 if test x$stabs = xyes
3813 tm_file="${tm_file} dbx.h"
3815 tmake_file=i386/t-crtpic
3817 extra_parts="crtbegin.o crtend.o"
3818 if test x$enable_threads = xyes; then
3822 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3823 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3824 xm_defines="USG POSIX SMALL_ARG_MAX"
3825 tm_file=i386/sysv4.h
3826 if test x$stabs = xyes
3828 tm_file="${tm_file} dbx.h"
3830 tmake_file=i386/t-crtpic
3832 extra_parts="crtbegin.o crtend.o"
3834 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3835 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3836 xm_defines="USG POSIX"
3838 tmake_file="i386/t-crtpic i386/t-udk"
3840 extra_parts="crtbegin.o crtend.o"
3841 install_headers_dir=install-headers-cpio
3843 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3845 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3846 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3847 if test x$stabs = xyes
3849 tm_file=i386/osf1elfgdb.h
3851 tm_file=i386/osf1elf.h
3853 tmake_file=i386/t-osf1elf
3854 xmake_file=i386/x-osf1elf
3855 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3857 i[34567]86-*-sysv*) # Intel 80386's running system V
3858 xm_defines="USG SVR3"
3859 xmake_file=i386/x-sysv3
3860 if test x$gas = xyes
3862 if test x$stabs = xyes
3864 tm_file=i386/svr3dbx.h
3865 tmake_file=i386/t-svr3dbx
3866 extra_parts="svr3.ifile svr3z.rfile"
3868 tm_file=i386/svr3gas.h
3869 extra_parts="crtbegin.o crtend.o"
3870 tmake_file=i386/t-crtstuff
3873 tm_file=i386/sysv3.h
3874 extra_parts="crtbegin.o crtend.o"
3875 tmake_file=i386/t-crtstuff
3878 i386-*-vsta) # Intel 80386's running VSTa kernel
3879 xm_file="${xm_file} i386/xm-vsta.h"
3881 tmake_file=i386/t-vsta
3882 xmake_file=i386/x-vsta
3885 xm_file="${xm_file} i386/xm-cygwin.h"
3886 tmake_file=i386/t-cygwin
3887 tm_file=i386/win32.h
3888 xmake_file=i386/x-cygwin
3890 if test x$enable_threads = xyes; then
3895 i[34567]86-*-pe | i[34567]86-*-cygwin*)
3896 xm_file="${xm_file} i386/xm-cygwin.h"
3897 tmake_file=i386/t-cygwin
3898 tm_file=i386/cygwin.h
3899 xmake_file=i386/x-cygwin
3901 if test x$enable_threads = xyes; then
3906 i[34567]86-*-mingw32*)
3907 tm_file=i386/mingw32.h
3908 xm_file="${xm_file} i386/xm-mingw32.h"
3909 tmake_file="i386/t-cygwin i386/t-mingw32"
3911 xmake_file=i386/x-cygwin
3912 if test x$enable_threads = xyes; then
3919 *minwg32crt* | *mingw32*)
3920 tm_file="${tm_file} i386/crtdll.h"
3926 tmake_file="i386/t-cygwin i386/t-uwin"
3928 xmake_file=i386/x-cygwin
3929 if test x$enable_threads = xyes; then
3934 i[34567]86-*-interix*)
3935 tm_file="i386/i386-interix.h interix.h"
3936 xm_file="i386/xm-i386-interix.h xm-interix.h"
3937 xm_defines="USG NO_SYS_SIGLIST"
3938 tmake_file="i386/t-interix"
3939 extra_objs=interix.o
3940 xmake_file=x-interix
3941 if test x$enable_threads = xyes ; then
3944 if test x$stabs = xyes ; then
3945 tm_file="${tm_file} dbxcoff.h"
3948 i[34567]86-*-winnt3*)
3949 tm_file=i386/win-nt.h
3950 out_file=i386/i386.c
3951 xm_file="xm-winnt.h ${xm_file}"
3952 xmake_file=winnt/x-winnt
3953 tmake_file=i386/t-winnt
3954 extra_host_objs="winnt.o oldnames.o"
3955 extra_gcc_objs="spawnv.o oldnames.o"
3956 if test x$gnu_ld != xyes
3958 extra_programs=ld.exe
3960 if test x$enable_threads = xyes; then
3964 i[34567]86-dg-dgux*)
3965 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3966 xm_defines="USG POSIX"
3967 out_file=i386/dgux.c
3969 tmake_file=i386/t-dgux
3970 xmake_file=i386/x-dgux
3971 install_headers_dir=install-headers-cpio
3973 i860-alliant-*) # Alliant FX/2800
3974 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3975 xm_file="${xm_file}"
3976 xmake_file=i860/x-fx2800
3977 tmake_file=i860/t-fx2800
3978 extra_parts="crtbegin.o crtend.o"
3981 tm_file="${tm_file} i860/bsd.h"
3982 if test x$gas = xyes
3984 tm_file="${tm_file} i860/bsd-gas.h"
3989 tm_file="${tm_file} i860/mach.h"
3990 tmake_file=t-libc-ok
3992 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
3993 tm_file="${tm_file} svr3.h i860/paragon.h"
3994 xm_defines="USG SVR3"
3998 tm_file="${tm_file} svr3.h i860/sysv3.h"
3999 xm_defines="USG SVR3"
4000 xmake_file=i860/x-sysv3
4001 extra_parts="crtbegin.o crtend.o"
4004 tm_file="${tm_file} svr4.h i860/sysv4.h"
4005 xm_defines="USG SVR3"
4006 xmake_file=i860/x-sysv4
4008 extra_parts="crtbegin.o crtend.o"
4010 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4011 tm_file="${tm_file} i960/vx960.h"
4012 tmake_file=i960/t-vxworks960
4014 thread_file='vxworks'
4016 i960-wrs-vxworks5* | i960-wrs-vxworks)
4017 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4018 tmake_file=i960/t-vxworks960
4020 thread_file='vxworks'
4023 tm_file="${tm_file} i960/vx960.h"
4024 tmake_file=i960/t-vxworks960
4026 thread_file='vxworks'
4029 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4030 tmake_file=i960/t-960bare
4034 tmake_file="i960/t-960bare t-rtems"
4035 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4038 i960-*-*) # Default i960 environment.
4042 extra_parts="crtinit.o crtfini.o"
4044 m68000-convergent-sysv*)
4046 xm_file="m68k/xm-3b1.h ${xm_file}"
4049 extra_headers=math-68881.h
4051 m68000-hp-bsd*) # HP 9000/200 running BSD
4052 tm_file=m68k/hp2bsd.h
4053 xmake_file=m68k/x-hp2bsd
4055 extra_headers=math-68881.h
4057 m68000-hp-hpux*) # HP 9000 series 300
4058 xm_file="xm-alloca.h ${xm_file}"
4059 xm_defines="USG NO_SYS_SIGLIST"
4060 if test x$gas = xyes
4062 xmake_file=m68k/x-hp320g
4063 tm_file=m68k/hp310g.h
4065 xmake_file=m68k/x-hp320
4066 tm_file=m68k/hp310.h
4068 install_headers_dir=install-headers-cpio
4070 extra_headers=math-68881.h
4075 extra_headers=math-68881.h
4078 tm_file=m68k/sun2o4.h
4080 extra_headers=math-68881.h
4083 xm_file="m68k/xm-3b1.h ${xm_file}"
4085 if test x$gas = xyes
4092 extra_headers=math-68881.h
4094 m68k-apple-aux*) # Apple Macintosh running A/UX
4095 xm_defines="USG AUX"
4096 tmake_file=m68k/t-aux
4097 install_headers_dir=install-headers-cpio
4098 extra_headers=math-68881.h
4099 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4101 if test "$gnu_ld" = yes
4103 tm_file="${tm_file} m68k/auxgld.h"
4105 tm_file="${tm_file} m68k/auxld.h"
4107 if test "$gas" = yes
4109 tm_file="${tm_file} m68k/auxgas.h"
4111 tm_file="${tm_file} m68k/auxas.h"
4113 tm_file="${tm_file} m68k/a-ux.h"
4117 tm_file=m68k/apollo68.h
4118 xmake_file=m68k/x-apollo68
4120 extra_headers=math-68881.h
4123 m68k-altos-sysv*) # Altos 3068
4124 if test x$gas = xyes
4126 tm_file=m68k/altos3068.h
4129 echo "The Altos is supported only with the GNU assembler" 1>&2
4132 extra_headers=math-68881.h
4134 m68k-bull-sysv*) # Bull DPX/2
4135 if test x$gas = xyes
4137 if test x$stabs = xyes
4139 tm_file=m68k/dpx2cdbx.h
4141 tm_file=m68k/dpx2g.h
4146 xm_file="xm-alloca.h ${xm_file}"
4148 xmake_file=m68k/x-dpx2
4150 extra_headers=math-68881.h
4152 m68k-atari-sysv4*) # Atari variant of V.4.
4153 tm_file=m68k/atari.h
4154 xm_file="xm-alloca.h ${xm_file}"
4155 xm_defines="USG FULL_PROTOTYPES"
4157 extra_parts="crtbegin.o crtend.o"
4158 extra_headers=math-68881.h
4161 m68k-motorola-sysv*)
4162 tm_file=m68k/mot3300.h
4163 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4164 xm_defines=NO_SYS_SIGLIST
4165 if test x$gas = xyes
4167 xmake_file=m68k/x-mot3300-gas
4168 if test x$gnu_ld = xyes
4170 tmake_file=m68k/t-mot3300-gald
4172 tmake_file=m68k/t-mot3300-gas
4176 xmake_file=m68k/x-mot3300
4177 if test x$gnu_ld = xyes
4179 tmake_file=m68k/t-mot3300-gld
4181 tmake_file=m68k/t-mot3300
4185 gdb_needs_out_file_path=yes
4186 extra_parts="crt0.o mcrt0.o"
4187 extra_headers=math-68881.h
4190 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4191 tm_file=m68k/tower-as.h
4192 xm_defines="USG SVR3"
4193 xmake_file=m68k/x-tower
4194 extra_parts="crtbegin.o crtend.o"
4195 extra_headers=math-68881.h
4198 tm_file=m68k/plexus.h
4199 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4202 extra_headers=math-68881.h
4206 xm_file="xm-alloca.h ${xm_file}"
4208 extra_headers=math-68881.h
4211 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4212 xm_defines="USG unos"
4213 xmake_file=m68k/x-crds
4216 extra_headers=math-68881.h
4218 m68k-cbm-sysv4*) # Commodore variant of V.4.
4220 xm_file="xm-alloca.h ${xm_file}"
4221 xm_defines="USG FULL_PROTOTYPES"
4222 xmake_file=m68k/x-amix
4224 extra_parts="crtbegin.o crtend.o"
4225 extra_headers=math-68881.h
4229 tm_file=m68k/ccur-GAS.h
4230 xmake_file=m68k/x-ccur
4231 extra_headers=math-68881.h
4235 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4236 tm_file=m68k/hp3bsd44.h
4238 extra_headers=math-68881.h
4241 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4242 tm_file=m68k/hp3bsd.h
4244 extra_headers=math-68881.h
4248 if test x$with_fp = xno
4250 tm_file=m68k/isi-nfp.h
4256 extra_headers=math-68881.h
4258 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4259 xm_file="xm-alloca.h ${xm_file}"
4260 xm_defines="USG NO_SYS_SIGLIST"
4261 if test x$gas = xyes
4263 xmake_file=m68k/x-hp320g
4264 tm_file=m68k/hp320g.h
4266 xmake_file=m68k/x-hp320
4267 tm_file=m68k/hpux7.h
4269 install_headers_dir=install-headers-cpio
4271 extra_headers=math-68881.h
4274 m68k-hp-hpux*) # HP 9000 series 300
4275 xm_file="xm-alloca.h ${xm_file}"
4276 xm_defines="USG NO_SYS_SIGLIST"
4277 if test x$gas = xyes
4279 xmake_file=m68k/x-hp320g
4280 tm_file=m68k/hp320g.h
4282 xmake_file=m68k/x-hp320
4283 tm_file=m68k/hp320.h
4285 install_headers_dir=install-headers-cpio
4287 extra_headers=math-68881.h
4291 tm_file=m68k/sun3mach.h
4293 extra_headers=math-68881.h
4297 if test x$gas = xyes
4299 tm_file=m68k/news3gas.h
4301 tm_file=m68k/news3.h
4304 extra_headers=math-68881.h
4307 m68k-sony-bsd* | m68k-sony-newsos*)
4308 if test x$gas = xyes
4310 tm_file=m68k/newsgas.h
4315 extra_headers=math-68881.h
4318 m68k-next-nextstep2*)
4319 tm_file=m68k/next21.h
4320 xm_file="m68k/xm-next.h ${xm_file}"
4321 tmake_file=m68k/t-next
4322 xmake_file=m68k/x-next
4323 extra_objs=nextstep.o
4324 extra_headers=math-68881.h
4328 m68k-next-nextstep3*)
4330 xm_file="m68k/xm-next.h ${xm_file}"
4331 tmake_file=m68k/t-next
4332 xmake_file=m68k/x-next
4333 extra_objs=nextstep.o
4334 extra_parts="crtbegin.o crtend.o"
4335 extra_headers=math-68881.h
4337 if test x$enable_threads = xyes; then
4342 if test x$with_fp = xno
4344 tm_file=m68k/sun3n3.h
4346 tm_file=m68k/sun3o3.h
4350 extra_headers=math-68881.h
4352 m68k-sun-sunos*) # For SunOS 4 (the default).
4353 if test x$with_fp = xno
4355 tm_file=m68k/sun3n.h
4361 extra_headers=math-68881.h
4364 tm_file=m68k/vxm68k.h
4365 tmake_file=m68k/t-vxworks68
4366 extra_headers=math-68881.h
4367 thread_file='vxworks'
4371 tmake_file=m68k/t-m68kbare
4372 tm_file="m68k/m68k-aout.h libgloss.h"
4373 extra_headers=math-68881.h
4377 tmake_file=m68k/t-m68kbare
4378 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4379 extra_headers=math-68881.h
4382 m68020-*-elf* | m68k-*-elf*)
4383 tm_file="m68k/m68020-elf.h libgloss.h"
4384 xm_file=m68k/xm-m68kv.h
4385 tmake_file=m68k/t-m68kelf
4386 header_files=math-68881.h
4389 if test x$gas = xyes
4393 tm_file=m68k/lynx-ng.h
4395 xm_file=m68k/xm-lynx.h
4397 tmake_file=m68k/t-lynx
4398 extra_headers=math-68881.h
4402 tm_file=m68k/netbsd.h
4409 # we need collect2 until our bug is fixed...
4412 m68k-*-sysv3*) # Motorola m68k's running system V.3
4413 xm_file="xm-alloca.h ${xm_file}"
4415 xmake_file=m68k/x-m68kv
4416 extra_parts="crtbegin.o crtend.o"
4417 extra_headers=math-68881.h
4420 m68k-*-sysv4*) # Motorola m68k's running system V.4
4421 tm_file=m68k/m68kv4.h
4422 xm_file="xm-alloca.h ${xm_file}"
4425 extra_parts="crtbegin.o crtend.o"
4426 extra_headers=math-68881.h
4429 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4432 tm_file=m68k/linux-aout.h
4433 tmake_file="t-linux-aout m68k/t-linux-aout"
4434 extra_headers=math-68881.h
4438 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4439 # with ELF format using the
4440 # GNU/Linux C library 5
4442 tm_file=m68k/linux.h
4443 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4444 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4445 extra_headers=math-68881.h
4449 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4450 # with ELF format using glibc 2
4451 # aka the GNU/Linux C library 6.
4453 tm_file=m68k/linux.h
4454 tmake_file="t-linux m68k/t-linux"
4455 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4456 extra_headers=math-68881.h
4459 if test x$enable_threads = xyes; then
4464 tmake_file=m68k/t-m68kbare
4465 tm_file=m68k/m68k-psos.h
4466 extra_headers=math-68881.h
4470 tmake_file="m68k/t-m68kbare t-rtems"
4471 tm_file=m68k/rtems.h
4472 extra_headers=math-68881.h
4479 tm_file=m88k/dguxbcs.h
4480 tmake_file=m88k/t-dguxbcs
4484 tmake_file=m88k/t-dgux
4487 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4488 xmake_file=m88k/x-dgux
4489 if test x$gas = xyes
4491 tmake_file=m88k/t-dgux-gas
4494 m88k-dolphin-sysv3*)
4495 tm_file=m88k/dolph.h
4496 extra_parts="crtbegin.o crtend.o"
4497 xm_file="m88k/xm-sysv3.h ${xm_file}"
4498 xmake_file=m88k/x-dolph
4499 if test x$gas = xyes
4501 tmake_file=m88k/t-m88k-gas
4504 m88k-tektronix-sysv3)
4505 tm_file=m88k/tekXD88.h
4506 extra_parts="crtbegin.o crtend.o"
4507 xm_file="m88k/xm-sysv3.h ${xm_file}"
4508 xmake_file=m88k/x-tekXD88
4509 if test x$gas = xyes
4511 tmake_file=m88k/t-m88k-gas
4515 tm_file=m88k/m88k-aout.h
4518 tm_file=m88k/m88k-coff.h
4519 tmake_file=m88k/t-bug
4523 extra_parts="crtbegin.o crtend.o"
4524 if test x$gas = xyes
4526 tmake_file=m88k/t-luna-gas
4528 tmake_file=m88k/t-luna
4532 tmake_file="${tmake_file} m88k/t-luna-gas"
4535 tm_file=m88k/sysv3.h
4536 extra_parts="crtbegin.o crtend.o"
4537 xm_file="m88k/xm-sysv3.h ${xm_file}"
4538 xmake_file=m88k/x-sysv3
4539 if test x$gas = xyes
4541 tmake_file=m88k/t-m88k-gas
4545 tm_file=m88k/sysv4.h
4546 extra_parts="crtbegin.o crtend.o"
4547 xmake_file=m88k/x-sysv4
4548 tmake_file=m88k/t-sysv4
4550 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4551 tm_file=mips/iris6.h
4552 xm_file=mips/xm-iris6.h
4553 xmake_file=mips/x-iris6
4554 tmake_file=mips/t-iris6
4555 # if test x$enable_threads = xyes; then
4556 # thread_file='irix'
4560 tm_file="mips/elf.h libgloss.h mips/vxworks.h"
4561 tmake_file=mips/t-ecoff
4564 extra_parts="crtbegin.o crtend.o"
4565 thread_file='vxworks'
4567 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4568 tm_file="mips/iris6.h mips/cross64.h"
4570 xm_file="mips/xm-iris5.h"
4571 xmake_file=mips/x-iris
4572 tmake_file=mips/t-cross64
4573 # See comment in mips/iris[56].h files.
4575 # if test x$enable_threads = xyes; then
4576 # thread_file='irix'
4580 if test x$gas = xyes
4582 if test x$stabs = xyes
4584 tm_file=mips/iris5gdb.h
4586 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4589 tm_file=mips/sni-svr4.h
4592 xmake_file=mips/x-sni-svr4
4593 tmake_file=mips/t-mips-gas
4594 if test x$gnu_ld != xyes
4599 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4600 if test x$gas = xyes
4602 tm_file="mips/iris5.h mips/iris5gas.h"
4603 if test x$stabs = xyes
4605 tm_file="${tm_file} dbx.h"
4608 tm_file=mips/iris5.h
4611 xm_file="mips/xm-iris5.h"
4612 xmake_file=mips/x-iris
4613 # mips-tfile doesn't work yet
4614 tmake_file=mips/t-mips-gas
4615 # See comment in mips/iris5.h file.
4617 # if test x$enable_threads = xyes; then
4618 # thread_file='irix'
4621 mips-sgi-irix4loser*) # Mostly like a MIPS.
4622 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4623 if test x$stabs = xyes; then
4624 tm_file="${tm_file} dbx.h"
4627 xmake_file=mips/x-iris
4628 if test x$gas = xyes
4630 tmake_file=mips/t-mips-gas
4632 extra_passes="mips-tfile mips-tdump"
4634 if test x$gnu_ld != xyes
4638 # if test x$enable_threads = xyes; then
4639 # thread_file='irix'
4642 mips-sgi-irix4*) # Mostly like a MIPS.
4643 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4644 if test x$stabs = xyes; then
4645 tm_file="${tm_file} dbx.h"
4648 xmake_file=mips/x-iris
4649 if test x$gas = xyes
4651 tmake_file=mips/t-mips-gas
4653 extra_passes="mips-tfile mips-tdump"
4655 if test x$gnu_ld != xyes
4659 # if test x$enable_threads = xyes; then
4660 # thread_file='irix'
4663 mips-sgi-*) # Mostly like a MIPS.
4664 tm_file="mips/iris3.h ${tm_file}"
4665 if test x$stabs = xyes; then
4666 tm_file="${tm_file} dbx.h"
4669 xmake_file=mips/x-iris3
4670 if test x$gas = xyes
4672 tmake_file=mips/t-mips-gas
4674 extra_passes="mips-tfile mips-tdump"
4676 if test x$gnu_ld != xyes
4681 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4682 tm_file="mips/osfrose.h ${tm_file}"
4683 xmake_file=mips/x-osfrose
4684 tmake_file=mips/t-osfrose
4685 extra_objs=halfpic.o
4688 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4689 tm_file=mips/dec-osf1.h
4690 if test x$stabs = xyes; then
4691 tm_file="${tm_file} dbx.h"
4693 xmake_file=mips/x-dec-osf1
4694 if test x$gas = xyes
4696 tmake_file=mips/t-mips-gas
4698 tmake_file=mips/t-ultrix
4699 extra_passes="mips-tfile mips-tdump"
4701 if test x$gnu_ld != xyes
4706 mips-dec-bsd*) # Decstation running 4.4 BSD
4707 tm_file=mips/dec-bsd.h
4708 if test x$gas = xyes
4710 tmake_file=mips/t-mips-gas
4712 tmake_file=mips/t-ultrix
4713 extra_passes="mips-tfile mips-tdump"
4715 if test x$gnu_ld != xyes
4720 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4721 tm_file=mips/netbsd.h
4722 # On NetBSD, the headers are already okay, except for math.h.
4725 mips*-*-linux*) # Linux MIPS, either endian.
4727 xm_file="xm-siglist.h ${xm_file}"
4729 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4730 *) tm_file="mips/elf.h mips/linux.h" ;;
4732 extra_parts="crtbegin.o crtend.o"
4736 mips*el-*-openbsd*) # mips little endian
4737 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4738 tm_file=mips/openbsd.h
4740 mips*-*-openbsd*) # mips big endian
4741 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4742 tm_file=mips/openbsd-be.h
4744 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4745 tm_file="mips/news4.h ${tm_file}"
4746 if test x$stabs = xyes; then
4747 tm_file="${tm_file} dbx.h"
4749 if test x$gas = xyes
4751 tmake_file=mips/t-mips-gas
4753 extra_passes="mips-tfile mips-tdump"
4755 if test x$gnu_ld != xyes
4759 xmake_file=mips/x-sony
4761 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4762 # That is based on svr4.
4763 # t-svr4 is not right because this system doesn't use ELF.
4764 tm_file="mips/news5.h ${tm_file}"
4765 if test x$stabs = xyes; then
4766 tm_file="${tm_file} dbx.h"
4768 xm_file="xm-siglist.h ${xm_file}"
4770 if test x$gas = xyes
4772 tmake_file=mips/t-mips-gas
4774 extra_passes="mips-tfile mips-tdump"
4776 if test x$gnu_ld != xyes
4781 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4782 tm_file="mips/svr4-5.h mips/svr4-t.h"
4783 if test x$stabs = xyes; then
4784 tm_file="${tm_file} dbx.h"
4786 xm_file="xm-siglist.h ${xm_file}"
4788 xmake_file=mips/x-sysv
4789 if test x$gas = xyes
4791 tmake_file=mips/t-mips-gas
4792 extra_parts="crtbegin.o crtend.o"
4794 tmake_file=mips/t-mips
4795 extra_passes="mips-tfile mips-tdump"
4797 if test x$gnu_ld != xyes
4802 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4803 tm_file="mips/ultrix.h ${tm_file}"
4804 if test x$stabs = xyes; then
4805 tm_file="${tm_file} dbx.h"
4807 xmake_file=mips/x-ultrix
4808 if test x$gas = xyes
4810 tmake_file=mips/t-mips-gas
4812 tmake_file=mips/t-ultrix
4813 extra_passes="mips-tfile mips-tdump"
4815 if test x$gnu_ld != xyes
4820 mips-*-riscos[56789]bsd*)
4821 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4822 if test x$stabs = xyes; then
4823 tm_file="${tm_file} dbx.h"
4825 if test x$gas = xyes
4827 tmake_file=mips/t-bsd-gas
4829 tmake_file=mips/t-bsd
4830 extra_passes="mips-tfile mips-tdump"
4832 if test x$gnu_ld != xyes
4837 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4838 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4839 if test x$stabs = xyes; then
4840 tm_file="${tm_file} dbx.h"
4842 if test x$gas = xyes
4844 tmake_file=mips/t-bsd-gas
4846 tmake_file=mips/t-bsd
4847 extra_passes="mips-tfile mips-tdump"
4849 if test x$gnu_ld != xyes
4854 mips-*-riscos[56789]sysv4*)
4855 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4856 if test x$stabs = xyes; then
4857 tm_file="${tm_file} dbx.h"
4859 xm_file="xm-siglist.h ${xm_file}"
4860 xmake_file=mips/x-sysv
4861 if test x$gas = xyes
4863 tmake_file=mips/t-svr4-gas
4865 tmake_file=mips/t-svr4
4866 extra_passes="mips-tfile mips-tdump"
4868 if test x$gnu_ld != xyes
4873 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4874 tm_file="mips/svr4-4.h ${tm_file}"
4875 if test x$stabs = xyes; then
4876 tm_file="${tm_file} dbx.h"
4879 xmake_file=mips/x-sysv
4880 if test x$gas = xyes
4882 tmake_file=mips/t-svr4-gas
4884 tmake_file=mips/t-svr4
4885 extra_passes="mips-tfile mips-tdump"
4887 if test x$gnu_ld != xyes
4892 mips-*-riscos[56789]sysv*)
4893 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4894 if test x$stabs = xyes; then
4895 tm_file="${tm_file} dbx.h"
4898 xmake_file=mips/x-sysv
4899 if test x$gas = xyes
4901 tmake_file=mips/t-svr3-gas
4903 tmake_file=mips/t-svr3
4904 extra_passes="mips-tfile mips-tdump"
4906 if test x$gnu_ld != xyes
4911 mips-*-sysv* | mips-*-riscos*sysv*)
4912 tm_file="mips/svr3-4.h ${tm_file}"
4913 if test x$stabs = xyes; then
4914 tm_file="${tm_file} dbx.h"
4917 xmake_file=mips/x-sysv
4918 if test x$gas = xyes
4920 tmake_file=mips/t-svr3-gas
4922 tmake_file=mips/t-svr3
4923 extra_passes="mips-tfile mips-tdump"
4925 if test x$gnu_ld != xyes
4930 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4931 tm_file=mips/mips-5.h
4932 if test x$stabs = xyes; then
4933 tm_file="${tm_file} dbx.h"
4935 if test x$gas = xyes
4937 tmake_file=mips/t-mips-gas
4939 extra_passes="mips-tfile mips-tdump"
4941 if test x$gnu_ld != xyes
4949 tm_file=mips/ecoffl.h
4950 if test x$stabs = xyes; then
4951 tm_file="${tm_file} dbx.h"
4953 tmake_file=mips/t-ecoff
4956 tm_file="gofast.h mips/ecoff.h"
4957 if test x$stabs = xyes; then
4958 tm_file="${tm_file} dbx.h"
4960 tmake_file=mips/t-ecoff
4963 tm_file="mips/elfl.h libgloss.h"
4964 tmake_file=mips/t-elf
4967 tm_file="mips/elf.h"
4968 tmake_file=mips/t-elf
4971 tm_file="mips/elfl64.h"
4972 tmake_file=mips/t-elf
4974 mips64orionel-*-elf*)
4975 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4976 tmake_file=mips/t-elf
4979 tm_file="mips/elf64.h"
4980 tmake_file=mips/t-elf
4983 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
4984 tmake_file=mips/t-elf
4986 mips64orion-*-rtems*)
4987 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
4988 tmake_file="mips/t-ecoff t-rtems"
4991 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
4992 tmake_file=mips/t-r3900
4995 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
4996 tmake_file=mips/t-r3900
4998 mips-*-*) # Default MIPS RISC-OS 4.0.
4999 if test x$stabs = xyes; then
5000 tm_file="${tm_file} dbx.h"
5002 if test x$gas = xyes
5004 tmake_file=mips/t-mips-gas
5006 extra_passes="mips-tfile mips-tdump"
5008 if test x$gnu_ld != xyes
5015 tm_file="mn10200/mn10200.h"
5016 if test x$stabs = xyes
5018 tm_file="${tm_file} dbx.h"
5024 tm_file="mn10300/mn10300.h"
5025 if test x$stabs = xyes
5027 tm_file="${tm_file} dbx.h"
5032 tm_file=ns32k/encore.h
5036 tm_file=ns32k/sequent.h
5040 tm_file=ns32k/tek6100.h
5044 tm_file=ns32k/tek6200.h
5047 # This has not been updated to GCC 2.
5050 # xmake_file=ns32k/x-genix
5051 # tm_file=ns32k/genix.h
5055 tm_file=ns32k/merlin.h
5059 tm_file=ns32k/pc532-mach.h
5063 tm_file=ns32k/pc532-min.h
5064 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5069 tm_file=ns32k/netbsd.h
5070 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5071 # On NetBSD, the headers are already okay, except for math.h.
5076 tm_file="${tm_file} pdp11/2bsd.h"
5085 xmake_file=pyr/x-pyr
5092 xmake_file=romp/x-mach
5099 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5103 tm_file=rs6000/beos.h
5104 xm_file=rs6000/xm-beos.h
5105 tmake_file=rs6000/t-beos
5106 xmake_file=rs6000/x-beos
5108 powerpc-*-sysv* | powerpc-*-elf*)
5109 tm_file=rs6000/sysv4.h
5110 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5111 xm_defines="USG POSIX"
5112 extra_headers=ppc-asm.h
5113 if test x$gas = xyes
5115 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5117 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5119 xmake_file=rs6000/x-sysv4
5122 tm_file=rs6000/eabiaix.h
5123 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5124 extra_headers=ppc-asm.h
5127 tm_file=rs6000/eabisim.h
5128 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5129 extra_headers=ppc-asm.h
5132 tm_file=rs6000/eabi.h
5133 if test x$gas = xyes
5135 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5137 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5139 extra_headers=ppc-asm.h
5142 tm_file=rs6000/rtems.h
5143 if test x$gas = xyes
5145 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5147 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5149 extra_headers=ppc-asm.h
5151 powerpc-*-linux-gnulibc1)
5152 tm_file=rs6000/linux.h
5153 xm_file=rs6000/xm-sysv4.h
5154 out_file=rs6000/rs6000.c
5155 if test x$gas = xyes
5157 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5159 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5162 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5163 extra_headers=ppc-asm.h
5164 if test x$enable_threads = xyes; then
5168 powerpc-*-linux-gnu*)
5169 tm_file=rs6000/linux.h
5170 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5171 xm_defines="USG ${xm_defines}"
5172 out_file=rs6000/rs6000.c
5173 if test x$gas = xyes
5175 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5177 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5180 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5181 extra_headers=ppc-asm.h
5182 if test x$enable_threads = xyes; then
5186 powerpc-wrs-vxworks*)
5188 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5189 xm_defines="USG POSIX"
5190 tm_file=rs6000/vxppc.h
5191 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5192 extra_headers=ppc-asm.h
5193 thread_file='vxworks'
5195 powerpcle-*-sysv* | powerpcle-*-elf*)
5196 tm_file=rs6000/sysv4le.h
5197 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5198 xm_defines="USG POSIX"
5199 if test x$gas = xyes
5201 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5203 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5205 xmake_file=rs6000/x-sysv4
5206 extra_headers=ppc-asm.h
5208 powerpcle-*-eabisim*)
5209 tm_file=rs6000/eabilesim.h
5210 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5211 extra_headers=ppc-asm.h
5214 tm_file=rs6000/eabile.h
5215 if test x$gas = xyes
5217 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5219 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5221 extra_headers=ppc-asm.h
5223 powerpcle-*-winnt* )
5224 tm_file=rs6000/win-nt.h
5225 tmake_file=rs6000/t-winnt
5227 if test x$enable_threads = xyes; then
5230 extra_headers=ppc-asm.h
5232 powerpcle-*-pe | powerpcle-*-cygwin*)
5233 tm_file=rs6000/cygwin.h
5234 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5235 tmake_file=rs6000/t-winnt
5236 xmake_file=rs6000/x-cygwin
5238 if test x$enable_threads = xyes; then
5242 extra_headers=ppc-asm.h
5244 powerpcle-*-solaris2*)
5245 tm_file=rs6000/sol2.h
5246 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5247 xm_defines="USG POSIX"
5248 if test x$gas = xyes
5250 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5252 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5254 xmake_file=rs6000/x-sysv4
5255 extra_headers=ppc-asm.h
5257 rs6000-ibm-aix3.[01]*)
5258 tm_file=rs6000/aix31.h
5259 xmake_file=rs6000/x-aix31
5263 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5264 tm_file=rs6000/aix3newas.h
5265 if test x$host != x$target
5267 tmake_file=rs6000/t-xnewas
5269 tmake_file=rs6000/t-newas
5274 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5275 tm_file=rs6000/aix41.h
5276 if test x$host != x$target
5278 tmake_file=rs6000/t-xnewas
5280 tmake_file=rs6000/t-newas
5282 if test "$gnu_ld" = yes
5284 xmake_file=rs6000/x-aix41-gld
5286 xmake_file=rs6000/x-aix41
5291 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5292 tm_file=rs6000/aix43.h
5293 if test x$host != x$target
5295 tmake_file=rs6000/t-xaix43
5297 tmake_file=rs6000/t-aix43
5299 xmake_file=rs6000/x-aix43
5303 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5304 tm_file=rs6000/aix43.h
5305 if test x$host != x$target
5307 tmake_file=rs6000/t-xaix43
5309 tmake_file=rs6000/t-aix43
5311 xmake_file=rs6000/x-aix43
5324 tm_file=rs6000/mach.h
5325 xm_file="${xm_file} rs6000/xm-mach.h"
5326 xmake_file=rs6000/x-mach
5330 tm_file=rs6000/lynx.h
5331 xm_file=rs6000/xm-lynx.h
5332 tmake_file=rs6000/t-rs6000
5333 xmake_file=rs6000/x-lynx
5341 tmake_file="sh/t-sh t-rtems"
5342 tm_file=sh/rtemself.h
5346 tmake_file="sh/t-sh t-rtems"
5355 xm_file="xm-alloca.h ${xm_file}"
5358 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5359 tm_file=sparc/vxsparc.h
5360 tmake_file=sparc/t-vxsparc
5362 thread_file='vxworks'
5365 tmake_file=sparc/t-sparcbare
5366 tm_file="sparc/aout.h libgloss.h"
5369 tm_file=sparc/netbsd.h
5374 # we need collect2 until our bug is fixed...
5382 tmake_file=sparc/t-elf
5383 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5387 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5388 xm_file="${xm_file} sparc/xm-linux.h"
5389 tm_file=sparc/linux-aout.h
5393 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5394 xm_file="${xm_file} sparc/xm-linux.h"
5396 tm_file=sparc/linux.h
5397 tmake_file="t-linux t-linux-gnulibc1"
5398 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5401 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5402 xm_file="${xm_file} sparc/xm-linux.h"
5404 tm_file=sparc/linux.h
5405 tmake_file="t-linux"
5406 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5408 if test x$enable_threads = xyes; then
5413 if test x$gas = xyes
5415 tm_file=sparc/lynx.h
5417 tm_file=sparc/lynx-ng.h
5419 xm_file=sparc/xm-lynx.h
5420 tmake_file=sparc/t-sunos41
5424 tmake_file="sparc/t-sparcbare t-rtems"
5425 tm_file=sparc/rtems.h
5427 sparcv9-*-solaris2*)
5428 tm_file=sparc/sol2-sld-64.h
5429 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5430 xm_defines="USG POSIX"
5431 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5432 xmake_file=sparc/x-sysv4
5433 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5435 if test x${enable_threads} = x ; then
5436 enable_threads=$have_pthread_h
5437 if test x${enable_threads} = x ; then
5438 enable_threads=$have_thread_h
5441 if test x${enable_threads} = xyes ; then
5442 if test x${have_pthread_h} = xyes ; then
5445 thread_file='solaris'
5449 sparc-hal-solaris2*)
5450 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5451 xm_defines="USG POSIX"
5452 tm_file="sparc/sol2.h sparc/hal.h"
5453 tmake_file="sparc/t-halos sparc/t-sol2"
5454 xmake_file=sparc/x-sysv4
5455 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5464 thread_file='solaris'
5467 if test x$gnu_ld = xyes
5469 tm_file=sparc/sol2.h
5471 tm_file=sparc/sol2-sld.h
5473 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5474 xm_defines="USG POSIX"
5475 tmake_file=sparc/t-sol2
5476 xmake_file=sparc/x-sysv4
5477 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5486 if test x${enable_threads} = x; then
5487 enable_threads=$have_pthread_h
5488 if test x${enable_threads} = x; then
5489 enable_threads=$have_thread_h
5492 if test x${enable_threads} = xyes; then
5493 if test x${have_pthread_h} = xyes; then
5496 thread_file='solaris'
5501 tm_file=sparc/sunos4.h
5502 tmake_file=sparc/t-sunos40
5506 tm_file=sparc/sunos4.h
5507 tmake_file=sparc/t-sunos41
5509 if test x$gas = xyes; then
5510 tm_file="${tm_file} sparc/sun4gas.h"
5514 tm_file=sparc/sun4o3.h
5518 tm_file=sparc/sysv4.h
5519 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5520 xm_defines="USG POSIX"
5522 xmake_file=sparc/x-sysv4
5523 extra_parts="crtbegin.o crtend.o"
5526 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5527 xm_defines="USG POSIX"
5528 tm_file=sparc/vxsim.h
5529 tmake_file=sparc/t-vxsparc
5530 xmake_file=sparc/x-sysv4
5533 tm_file="sparc/splet.h libgloss.h"
5534 tmake_file=sparc/t-splet
5537 tm_file="sparc/litecoff.h libgloss.h"
5538 tmake_file=sparc/t-sparclite
5541 tm_file="sparc/lite.h aoutos.h libgloss.h"
5542 tmake_file=sparc/t-sparclite
5545 tmake_file=sparc/t-sp64
5546 tm_file=sparc/sp64-aout.h
5549 tmake_file=sparc/t-sp64
5550 tm_file=sparc/sp64-elf.h
5551 extra_parts="crtbegin.o crtend.o"
5553 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5554 tmake_file="t-linux sparc/t-linux64"
5555 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5556 tm_file=sparc/linux64.h
5558 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5562 tmake_file=sparc/t-sp64
5563 tm_file=sparc/sp64-elf.h
5564 xm_file="sparc/xm-sp64.h sparc/xm-freebsd.h"
5565 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5569 # This hasn't been upgraded to GCC 2.
5570 # tahoe-harris-*) # Harris tahoe, using COFF.
5571 # tm_file=tahoe/harris.h
5573 # tahoe-*-bsd*) # tahoe running BSD
5575 thumb-*-coff* | thumbel-*-coff*)
5577 out_file=arm/thumb.c
5578 xm_file=arm/xm-thumb.h
5579 md_file=arm/thumb.md
5580 tmake_file=arm/t-thumb
5584 out_file=arm/thumb.c
5585 xm_file=arm/xm-thumb.h
5586 md_file=arm/thumb.md
5587 tmake_file=arm/t-thumb
5588 thread_file='vxworks'
5590 # This hasn't been upgraded to GCC 2.
5597 tm_file="v850/v850.h"
5598 xm_file="v850/xm-v850.h"
5599 tmake_file=v850/t-v850
5600 if test x$stabs = xyes
5602 tm_file="${tm_file} dbx.h"
5606 vax-*-bsd*) # vaxen running BSD
5610 vax-*-sysv*) # vaxen running system V
5611 tm_file="${tm_file} vax/vaxv.h"
5616 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5622 tmake_file="${tmake_file} vax/t-openbsd"
5624 vax-*-ultrix*) # vaxen running ultrix
5625 tm_file="${tm_file} vax/ultrix.h"
5629 vax-*-vms*) # vaxen running VMS
5630 xm_file=vax/xm-vms.h
5634 vax-*-*) # vax default entry
5638 xm_file="${xm_file} xm-svr3"
5642 echo "Configuration $machine not supported" 1>&2
5649 ;; # Existing GNU/Linux systems do not use the GNU setup.
5651 # On the GNU system, the setup is just about the same on
5652 # each different CPU. The specific machines that GNU
5653 # supports are matched above and just set $cpu_type.
5654 xm_file="xm-gnu.h ${xm_file}"
5655 tm_file=${cpu_type}/gnu.h
5656 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5657 # GNU always uses ELF.
5659 # GNU tools are the only tools.
5662 xmake_file=x-linux # These details are the same as Linux.
5663 tmake_file=t-gnu # These are not.
5666 xmake_try_sysv=x-sysv
5667 install_headers_dir=install-headers-cpio
5670 install_headers_dir=install-headers-cpio
5674 # Distinguish i[34567]86
5675 # Also, do not run mips-tfile on MIPS if using gas.
5676 # Process --with-cpu= for PowerPC/rs6000
5677 target_cpu_default2=
5680 target_cpu_default2=1
5683 case $target_alias in
5685 target_cpu_default2=4
5688 target_cpu_default2=2
5692 i686-*-* | i786-*-*)
5693 target_cpu_default2=3
5698 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5701 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5704 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5707 target_cpu_default2="MASK_CPU_EV5"
5711 if test x$gas = xyes
5713 if test "$target_cpu_default2" = ""
5715 target_cpu_default2="MASK_GAS"
5717 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5722 case "x$with_cpu" in
5725 target_cpu_default2="TARGET_CPU_generic"
5728 # Distinguish cores, and major variants
5729 # arm7m doesn't exist, but D & I don't affect code
5730 xarm23678 | xarm250 | xarm67010 \
5731 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5732 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5733 | xstrongarm | xstrongarm110 | xstrongarm1100)
5734 target_cpu_default2="TARGET_CPU_$with_cpu"
5738 echo "--with-cpu must be passed a value" 1>&2
5743 if test x$pass2done = xyes
5745 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5752 mips*-*-ecoff* | mips*-*-elf*)
5753 if test x$gas = xyes
5755 if test x$gnu_ld = xyes
5757 target_cpu_default2=20
5759 target_cpu_default2=16
5764 if test x$gas = xyes
5766 target_cpu_default2=16
5769 powerpc*-*-* | rs6000-*-*)
5770 case "x$with_cpu" in
5774 xcommon | xpower | xpower2 | xpowerpc | xrios \
5775 | xrios1 | xrios2 | xrsc | xrsc1 \
5776 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5777 | xec603e | x740 | x750 | x401 \
5778 | x403 | x505 | x801 | x821 | x823 | x860)
5779 target_cpu_default2="\"$with_cpu\""
5783 echo "--with-cpu must be passed a value" 1>&2
5788 if test x$pass2done = xyes
5790 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5797 case ".$with_cpu" in
5799 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5801 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5802 target_cpu_default2="TARGET_CPU_$with_cpu"
5805 if test x$pass2done = xyes
5807 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5815 if test "$target_cpu_default2" != ""
5817 if test "$target_cpu_default" != ""
5819 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5821 target_cpu_default=$target_cpu_default2
5825 # No need for collect2 if we have the GNU linker.
5826 # Actually, there is now; GNU ld doesn't handle the EH info or
5827 # collecting for shared libraries.
5834 # Save data on machine being used to compile GCC in build_xm_file.
5835 # Save data on host machine in vars host_xm_file and host_xmake_file.
5836 if test x$pass1done = x
5838 if test x"$xm_file" = x
5839 then build_xm_file=$cpu_type/xm-$cpu_type.h
5840 else build_xm_file=$xm_file
5842 build_xm_defines=$xm_defines
5843 build_install_headers_dir=$install_headers_dir
5844 build_exeext=$exeext
5847 if test x$pass2done = x
5849 if test x"$xm_file" = x
5850 then host_xm_file=$cpu_type/xm-$cpu_type.h
5851 else host_xm_file=$xm_file
5853 host_xm_defines=$xm_defines
5854 if test x"$xmake_file" = x
5855 then xmake_file=$cpu_type/x-$cpu_type
5857 host_xmake_file="$xmake_file"
5858 host_truncate_target=$truncate_target
5859 host_extra_gcc_objs=$extra_gcc_objs
5860 host_extra_objs=$extra_host_objs
5867 extra_objs="${host_extra_objs} ${extra_objs}"
5869 # Default the target-machine variables that were not explicitly set.
5870 if test x"$tm_file" = x
5871 then tm_file=$cpu_type/$cpu_type.h; fi
5873 if test x$extra_headers = x
5874 then extra_headers=; fi
5876 if test x"$xm_file" = x
5877 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5879 if test x$md_file = x
5880 then md_file=$cpu_type/$cpu_type.md; fi
5882 if test x$out_file = x
5883 then out_file=$cpu_type/$cpu_type.c; fi
5885 if test x"$tmake_file" = x
5886 then tmake_file=$cpu_type/t-$cpu_type
5889 if test x"$dwarf2" = xyes
5890 then tm_file="tm-dwarf2.h $tm_file"
5893 if test x$float_format = x
5894 then float_format=i64
5897 if test $float_format = none
5898 then float_h_file=Makefile.in
5899 else float_h_file=float-$float_format.h
5902 if test x$enable_haifa = x
5905 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5910 # Handle cpp installation.
5911 if test x$enable_cpp != xno
5913 tmake_file="$tmake_file t-install-cpp"
5916 # Say what files are being used for the output code and MD file.
5917 echo "Using \`$srcdir/config/$out_file' to output insns."
5918 echo "Using \`$srcdir/config/$md_file' as machine description file."
5921 for f in $tm_file; do
5924 if test $count = ax; then
5925 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5927 echo "Using the following target machine macro files:"
5928 for f in $tm_file; do
5929 echo " $srcdir/config/$f"
5934 for f in $host_xm_file; do
5937 if test $count = ax; then
5938 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5940 echo "Using the following host machine macro files:"
5941 for f in $host_xm_file; do
5942 echo " $srcdir/config/$f"
5946 if test "$host_xm_file" != "$build_xm_file"; then
5948 for f in $build_xm_file; do
5951 if test $count = ax; then
5952 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5954 echo "Using the following build machine macro files:"
5955 for f in $build_xm_file; do
5956 echo " $srcdir/config/$f"
5961 if test x$thread_file = x; then
5962 if test x$target_thread_file != x; then
5963 thread_file=$target_thread_file
5965 thread_file='single'
5969 # Set up the header files.
5970 # $links is the list of header files to create.
5971 # $vars is the list of shell variables with file names to include.
5972 # auto-host.h is the file containing items generated by autoconf and is
5973 # the first file included by config.h.
5975 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
5977 # If host=build, it is correct to have hconfig include auto-host.h
5978 # as well. If host!=build, we are in error and need to do more
5979 # work to find out the build config parameters.
5980 if test x$host = x$build
5982 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
5984 # We create a subdir, then run autoconf in the subdir.
5985 # To prevent recursion we set host and build for the new
5986 # invocation of configure to the build for this invocation
5993 /*) realsrcdir=${srcdir};;
5994 *) realsrcdir=../${srcdir};;
5996 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
5997 --target=$target --host=$build --build=$build
5999 # We just finished tests for the build machine, so rename
6000 # the file auto-build.h in the gcc directory.
6001 mv auto-host.h ../auto-build.h
6004 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6007 xm_file="gansidecl.h ${xm_file}"
6008 tm_file="gansidecl.h ${tm_file}"
6010 vars="host_xm_file tm_file xm_file build_xm_file"
6011 links="config.h tm.h tconfig.h hconfig.h"
6012 defines="host_xm_defines null_defines xm_defines build_xm_defines"
6015 if test -f config.status; then mv -f config.status config.bak; fi
6018 while test -n "$vars"
6020 set $vars; var=$1; shift; vars=$*
6021 set $links; link=$1; shift; links=$*
6022 set $defines; define=$1; shift; defines=$*
6026 # Define TARGET_CPU_DEFAULT if the system wants one.
6027 # This substitutes for lots of *.h files.
6028 if test "$target_cpu_default" != "" -a $link = tm.h
6030 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6033 for file in `eval echo '$'$var`; do
6038 echo '#ifdef IN_GCC' >>$link
6041 echo "#include \"$file\"" >>$link
6046 echo '#endif' >>$link
6051 for def in `eval echo '$'$define`; do
6052 echo "#ifndef $def" >>$link
6053 echo "#define $def" >>$link
6054 echo "#endif" >>$link
6058 # Truncate the target if necessary
6059 if test x$host_truncate_target != x; then
6060 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6063 # Get the version trigger filename from the toplevel
6064 if test "${with_gcc_version_trigger+set}" = set; then
6065 gcc_version_trigger=$with_gcc_version_trigger
6067 gcc_version_trigger=${srcdir}/version.c
6069 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6071 # Internationalization
6073 VERSION="$gcc_version"
6074 cat >> confdefs.h <<EOF
6075 #define PACKAGE "$PACKAGE"
6078 cat >> confdefs.h <<EOF
6079 #define VERSION "$VERSION"
6087 # NLS support is still experimental, so disable it by default for now.
6088 # Check whether --enable-nls or --disable-nls was given.
6089 if test "${enable_nls+set}" = set; then
6090 enableval="$enable_nls"
6098 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6099 echo "configure:6066: checking for strerror in -lcposix" >&5
6100 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6102 echo $ac_n "(cached) $ac_c" 1>&6
6104 ac_save_LIBS="$LIBS"
6105 LIBS="-lcposix $LIBS"
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6074 "configure"
6108 #include "confdefs.h"
6109 /* Override any gcc2 internal prototype to avoid an error. */
6110 /* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6118 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6120 eval "ac_cv_lib_$ac_lib_var=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 eval "ac_cv_lib_$ac_lib_var=no"
6128 LIBS="$ac_save_LIBS"
6131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6132 echo "$ac_t""yes" 1>&6
6133 LIBS="$LIBS -lcposix"
6135 echo "$ac_t""no" 1>&6
6140 echo $ac_n "checking for working const""... $ac_c" 1>&6
6141 echo "configure:6108: checking for working const" >&5
6142 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6113 "configure"
6147 #include "confdefs.h"
6151 /* Ultrix mips cc rejects this. */
6152 typedef int charset[2]; const charset x;
6153 /* SunOS 4.1.1 cc rejects this. */
6154 char const *const *ccp;
6156 /* NEC SVR4.0.2 mips cc rejects this. */
6157 struct point {int x, y;};
6158 static struct point const zero = {0,0};
6159 /* AIX XL C 1.02.0.0 rejects this.
6160 It does not let you subtract one const X* pointer from another in an arm
6161 of an if-expression whose if-part is not a constant expression */
6162 const char *g = "string";
6163 ccp = &g + (g ? g-g : 0);
6164 /* HPUX 7.0 cc rejects these. */
6167 ccp = (char const *const *) p;
6168 { /* SCO 3.2v4 cc rejects this. */
6170 char const *s = 0 ? (char *) 0 : (char const *) 0;
6174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6176 const int *foo = &x[0];
6179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6180 typedef const int *iptr;
6184 { /* AIX XL C 1.02.0.0 rejects this saying
6185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6186 struct s { int j; const int *ap[3]; };
6187 struct s *b; b->j = 5;
6189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6195 if { (eval echo configure:6162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6199 echo "configure: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6207 echo "$ac_t""$ac_cv_c_const" 1>&6
6208 if test $ac_cv_c_const = no; then
6209 cat >> confdefs.h <<\EOF
6215 echo $ac_n "checking for inline""... $ac_c" 1>&6
6216 echo "configure:6183: checking for inline" >&5
6217 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6221 for ac_kw in inline __inline__ __inline; do
6222 cat > conftest.$ac_ext <<EOF
6223 #line 6190 "configure"
6224 #include "confdefs.h"
6230 if { (eval echo configure:6197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6232 ac_cv_c_inline=$ac_kw; break
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6242 echo "$ac_t""$ac_cv_c_inline" 1>&6
6243 case "$ac_cv_c_inline" in
6245 no) cat >> confdefs.h <<\EOF
6249 *) cat >> confdefs.h <<EOF
6250 #define inline $ac_cv_c_inline
6255 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6256 echo "configure:6223: checking for off_t" >&5
6257 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6258 echo $ac_n "(cached) $ac_c" 1>&6
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6228 "configure"
6262 #include "confdefs.h"
6263 #include <sys/types.h>
6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6272 ac_cv_type_off_t=yes
6280 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6281 if test $ac_cv_type_off_t = no; then
6282 cat >> confdefs.h <<\EOF
6288 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6289 echo "configure:6256: checking for size_t" >&5
6290 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6293 cat > conftest.$ac_ext <<EOF
6294 #line 6261 "configure"
6295 #include "confdefs.h"
6296 #include <sys/types.h>
6302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6303 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6305 ac_cv_type_size_t=yes
6308 ac_cv_type_size_t=no
6313 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6314 if test $ac_cv_type_size_t = no; then
6315 cat >> confdefs.h <<\EOF
6316 #define size_t unsigned
6321 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6322 # for constant arguments. Useless!
6323 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6324 echo "configure:6291: checking for working alloca.h" >&5
6325 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6296 "configure"
6330 #include "confdefs.h"
6333 char *p = alloca(2 * sizeof(int));
6336 if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338 ac_cv_header_alloca_h=yes
6340 echo "configure: failed program was:" >&5
6341 cat conftest.$ac_ext >&5
6343 ac_cv_header_alloca_h=no
6348 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6349 if test $ac_cv_header_alloca_h = yes; then
6350 cat >> confdefs.h <<\EOF
6351 #define HAVE_ALLOCA_H 1
6356 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6357 echo "configure:6324: checking for alloca" >&5
6358 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6359 echo $ac_n "(cached) $ac_c" 1>&6
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6329 "configure"
6363 #include "confdefs.h"
6366 # define alloca __builtin_alloca
6369 # include <malloc.h>
6370 # define alloca _alloca
6373 # include <alloca.h>
6378 # ifndef alloca /* predefined by HP cc +Olibcalls */
6387 char *p = (char *) alloca(1);
6390 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6392 ac_cv_func_alloca_works=yes
6394 echo "configure: failed program was:" >&5
6395 cat conftest.$ac_ext >&5
6397 ac_cv_func_alloca_works=no
6402 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6403 if test $ac_cv_func_alloca_works = yes; then
6404 cat >> confdefs.h <<\EOF
6405 #define HAVE_ALLOCA 1
6410 if test $ac_cv_func_alloca_works = no; then
6411 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6412 # that cause trouble. Some versions do not even contain alloca or
6413 # contain a buggy version. If you still want to use their alloca,
6414 # use ar to extract alloca.o from them instead of compiling alloca.c.
6415 ALLOCA=alloca.${ac_objext}
6416 cat >> confdefs.h <<\EOF
6421 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6422 echo "configure:6389: checking whether alloca needs Cray hooks" >&5
6423 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6424 echo $ac_n "(cached) $ac_c" 1>&6
6426 cat > conftest.$ac_ext <<EOF
6427 #line 6394 "configure"
6428 #include "confdefs.h"
6429 #if defined(CRAY) && ! defined(CRAY2)
6436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6437 egrep "webecray" >/dev/null 2>&1; then
6448 echo "$ac_t""$ac_cv_os_cray" 1>&6
6449 if test $ac_cv_os_cray = yes; then
6450 for ac_func in _getb67 GETB67 getb67; do
6451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6452 echo "configure:6419: checking for $ac_func" >&5
6453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6454 echo $ac_n "(cached) $ac_c" 1>&6
6456 cat > conftest.$ac_ext <<EOF
6457 #line 6424 "configure"
6458 #include "confdefs.h"
6459 /* System header to define __stub macros and hopefully few prototypes,
6460 which can conflict with char $ac_func(); below. */
6462 /* Override any gcc2 internal prototype to avoid an error. */
6463 /* We use char because int might match the return type of a gcc2
6464 builtin and then its argument prototype would still apply. */
6469 /* The GNU C library defines this for functions which it implements
6470 to always fail with ENOSYS. Some functions are actually named
6471 something starting with __ and the normal name is an alias. */
6472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6480 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6482 eval "ac_cv_func_$ac_func=yes"
6484 echo "configure: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6487 eval "ac_cv_func_$ac_func=no"
6492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6493 echo "$ac_t""yes" 1>&6
6494 cat >> confdefs.h <<EOF
6495 #define CRAY_STACKSEG_END $ac_func
6500 echo "$ac_t""no" 1>&6
6506 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6507 echo "configure:6474: checking stack direction for C alloca" >&5
6508 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6511 if test "$cross_compiling" = yes; then
6512 ac_cv_c_stack_direction=0
6514 cat > conftest.$ac_ext <<EOF
6515 #line 6482 "configure"
6516 #include "confdefs.h"
6517 find_stack_direction ()
6519 static char *addr = 0;
6524 return find_stack_direction ();
6527 return (&dummy > addr) ? 1 : -1;
6531 exit (find_stack_direction() < 0);
6534 if { (eval echo configure:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6536 ac_cv_c_stack_direction=1
6538 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6541 ac_cv_c_stack_direction=-1
6548 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6549 cat >> confdefs.h <<EOF
6550 #define STACK_DIRECTION $ac_cv_c_stack_direction
6555 for ac_hdr in unistd.h
6557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6559 echo "configure:6526: checking for $ac_hdr" >&5
6560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6561 echo $ac_n "(cached) $ac_c" 1>&6
6563 cat > conftest.$ac_ext <<EOF
6564 #line 6531 "configure"
6565 #include "confdefs.h"
6568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6569 { (eval echo configure:6536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6571 if test -z "$ac_err"; then
6573 eval "ac_cv_header_$ac_safe=yes"
6576 echo "configure: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6579 eval "ac_cv_header_$ac_safe=no"
6583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6584 echo "$ac_t""yes" 1>&6
6585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6586 cat >> confdefs.h <<EOF
6587 #define $ac_tr_hdr 1
6591 echo "$ac_t""no" 1>&6
6595 for ac_func in getpagesize
6597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6598 echo "configure:6565: checking for $ac_func" >&5
6599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6602 cat > conftest.$ac_ext <<EOF
6603 #line 6570 "configure"
6604 #include "confdefs.h"
6605 /* System header to define __stub macros and hopefully few prototypes,
6606 which can conflict with char $ac_func(); below. */
6608 /* Override any gcc2 internal prototype to avoid an error. */
6609 /* We use char because int might match the return type of a gcc2
6610 builtin and then its argument prototype would still apply. */
6615 /* The GNU C library defines this for functions which it implements
6616 to always fail with ENOSYS. Some functions are actually named
6617 something starting with __ and the normal name is an alias. */
6618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6626 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6628 eval "ac_cv_func_$ac_func=yes"
6630 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6633 eval "ac_cv_func_$ac_func=no"
6638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6639 echo "$ac_t""yes" 1>&6
6640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6641 cat >> confdefs.h <<EOF
6642 #define $ac_tr_func 1
6646 echo "$ac_t""no" 1>&6
6650 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6651 echo "configure:6618: checking for working mmap" >&5
6652 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 if test "$cross_compiling" = yes; then
6656 ac_cv_func_mmap_fixed_mapped=no
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6626 "configure"
6660 #include "confdefs.h"
6662 /* Thanks to Mike Haertel and Jim Avera for this test.
6663 Here is a matrix of mmap possibilities:
6664 mmap private not fixed
6665 mmap private fixed at somewhere currently unmapped
6666 mmap private fixed at somewhere already mapped
6667 mmap shared not fixed
6668 mmap shared fixed at somewhere currently unmapped
6669 mmap shared fixed at somewhere already mapped
6670 For private mappings, we should verify that changes cannot be read()
6671 back from the file, nor mmap's back from the file at a different
6672 address. (There have been systems where private was not correctly
6673 implemented like the infamous i386 svr4.0, and systems where the
6674 VM page cache was not coherent with the filesystem buffer cache
6675 like early versions of FreeBSD and possibly contemporary NetBSD.)
6676 For shared mappings, we should conversely verify that changes get
6677 propogated back to all the places they're supposed to be.
6679 Grep wants private fixed already mapped.
6680 The main things grep needs to know about mmap are:
6681 * does it exist and is it safe to write into the mmap'd area
6682 * how to use it (BSD variants) */
6683 #include <sys/types.h>
6685 #include <sys/mman.h>
6687 /* This mess was copied from the GNU getpagesize.h. */
6688 #ifndef HAVE_GETPAGESIZE
6689 # ifdef HAVE_UNISTD_H
6690 # include <unistd.h>
6693 /* Assume that all systems that can run configure have sys/param.h. */
6694 # ifndef HAVE_SYS_PARAM_H
6695 # define HAVE_SYS_PARAM_H 1
6698 # ifdef _SC_PAGESIZE
6699 # define getpagesize() sysconf(_SC_PAGESIZE)
6700 # else /* no _SC_PAGESIZE */
6701 # ifdef HAVE_SYS_PARAM_H
6702 # include <sys/param.h>
6703 # ifdef EXEC_PAGESIZE
6704 # define getpagesize() EXEC_PAGESIZE
6705 # else /* no EXEC_PAGESIZE */
6707 # define getpagesize() NBPG * CLSIZE
6710 # endif /* no CLSIZE */
6711 # else /* no NBPG */
6713 # define getpagesize() NBPC
6714 # else /* no NBPC */
6716 # define getpagesize() PAGESIZE
6717 # endif /* PAGESIZE */
6718 # endif /* no NBPC */
6719 # endif /* no NBPG */
6720 # endif /* no EXEC_PAGESIZE */
6721 # else /* no HAVE_SYS_PARAM_H */
6722 # define getpagesize() 8192 /* punt totally */
6723 # endif /* no HAVE_SYS_PARAM_H */
6724 # endif /* no _SC_PAGESIZE */
6726 #endif /* no HAVE_GETPAGESIZE */
6729 extern "C" { void *malloc(unsigned); }
6737 char *data, *data2, *data3;
6741 pagesize = getpagesize();
6744 * First, make a file with some known garbage in it.
6746 data = malloc(pagesize);
6749 for (i = 0; i < pagesize; ++i)
6750 *(data + i) = rand();
6752 fd = creat("conftestmmap", 0600);
6755 if (write(fd, data, pagesize) != pagesize)
6760 * Next, try to mmap the file at a fixed address which
6761 * already has something else allocated at it. If we can,
6762 * also make sure that we see the same garbage.
6764 fd = open("conftestmmap", O_RDWR);
6767 data2 = malloc(2 * pagesize);
6770 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6771 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6772 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6774 for (i = 0; i < pagesize; ++i)
6775 if (*(data + i) != *(data2 + i))
6779 * Finally, make sure that changes to the mapped area
6780 * do not percolate back to the file as seen by read().
6781 * (This is a bug on some variants of i386 svr4.0.)
6783 for (i = 0; i < pagesize; ++i)
6784 *(data2 + i) = *(data2 + i) + 1;
6785 data3 = malloc(pagesize);
6788 if (read(fd, data3, pagesize) != pagesize)
6790 for (i = 0; i < pagesize; ++i)
6791 if (*(data + i) != *(data3 + i))
6794 unlink("conftestmmap");
6799 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6801 ac_cv_func_mmap_fixed_mapped=yes
6803 echo "configure: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6806 ac_cv_func_mmap_fixed_mapped=no
6813 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6814 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6815 cat >> confdefs.h <<\EOF
6822 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6823 unistd.h sys/param.h
6825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6827 echo "configure:6794: checking for $ac_hdr" >&5
6828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6831 cat > conftest.$ac_ext <<EOF
6832 #line 6799 "configure"
6833 #include "confdefs.h"
6836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6837 { (eval echo configure:6804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6839 if test -z "$ac_err"; then
6841 eval "ac_cv_header_$ac_safe=yes"
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6847 eval "ac_cv_header_$ac_safe=no"
6851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6854 cat >> confdefs.h <<EOF
6855 #define $ac_tr_hdr 1
6859 echo "$ac_t""no" 1>&6
6863 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6864 strdup __argz_count __argz_stringify __argz_next
6866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6867 echo "configure:6834: checking for $ac_func" >&5
6868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6839 "configure"
6873 #include "confdefs.h"
6874 /* System header to define __stub macros and hopefully few prototypes,
6875 which can conflict with char $ac_func(); below. */
6877 /* Override any gcc2 internal prototype to avoid an error. */
6878 /* We use char because int might match the return type of a gcc2
6879 builtin and then its argument prototype would still apply. */
6884 /* The GNU C library defines this for functions which it implements
6885 to always fail with ENOSYS. Some functions are actually named
6886 something starting with __ and the normal name is an alias. */
6887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6895 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6897 eval "ac_cv_func_$ac_func=yes"
6899 echo "configure: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6902 eval "ac_cv_func_$ac_func=no"
6907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6908 echo "$ac_t""yes" 1>&6
6909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6910 cat >> confdefs.h <<EOF
6911 #define $ac_tr_func 1
6915 echo "$ac_t""no" 1>&6
6920 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6921 for ac_func in stpcpy
6923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6924 echo "configure:6891: checking for $ac_func" >&5
6925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6926 echo $ac_n "(cached) $ac_c" 1>&6
6928 cat > conftest.$ac_ext <<EOF
6929 #line 6896 "configure"
6930 #include "confdefs.h"
6931 /* System header to define __stub macros and hopefully few prototypes,
6932 which can conflict with char $ac_func(); below. */
6934 /* Override any gcc2 internal prototype to avoid an error. */
6935 /* We use char because int might match the return type of a gcc2
6936 builtin and then its argument prototype would still apply. */
6941 /* The GNU C library defines this for functions which it implements
6942 to always fail with ENOSYS. Some functions are actually named
6943 something starting with __ and the normal name is an alias. */
6944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6952 if { (eval echo configure:6919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6954 eval "ac_cv_func_$ac_func=yes"
6956 echo "configure: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6959 eval "ac_cv_func_$ac_func=no"
6964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6965 echo "$ac_t""yes" 1>&6
6966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6967 cat >> confdefs.h <<EOF
6968 #define $ac_tr_func 1
6972 echo "$ac_t""no" 1>&6
6977 if test "${ac_cv_func_stpcpy}" = "yes"; then
6978 cat >> confdefs.h <<\EOF
6979 #define HAVE_STPCPY 1
6984 if test $ac_cv_header_locale_h = yes; then
6985 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6986 echo "configure:6953: checking for LC_MESSAGES" >&5
6987 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6988 echo $ac_n "(cached) $ac_c" 1>&6
6990 cat > conftest.$ac_ext <<EOF
6991 #line 6958 "configure"
6992 #include "confdefs.h"
6998 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7000 am_cv_val_LC_MESSAGES=yes
7002 echo "configure: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7005 am_cv_val_LC_MESSAGES=no
7010 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7011 if test $am_cv_val_LC_MESSAGES = yes; then
7012 cat >> confdefs.h <<\EOF
7013 #define HAVE_LC_MESSAGES 1
7018 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7019 echo "configure:6986: checking whether NLS is requested" >&5
7020 # Check whether --enable-nls or --disable-nls was given.
7021 if test "${enable_nls+set}" = set; then
7022 enableval="$enable_nls"
7028 echo "$ac_t""$USE_NLS" 1>&6
7031 USE_INCLUDED_LIBINTL=no
7033 if test "$USE_NLS" = "yes"; then
7034 cat >> confdefs.h <<\EOF
7035 #define ENABLE_NLS 1
7038 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7039 echo "configure:7006: checking whether included gettext is requested" >&5
7040 # Check whether --with-included-gettext or --without-included-gettext was given.
7041 if test "${with_included_gettext+set}" = set; then
7042 withval="$with_included_gettext"
7043 nls_cv_force_use_gnu_gettext=$withval
7045 nls_cv_force_use_gnu_gettext=no
7048 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7050 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7051 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7053 nls_cv_header_libgt=
7056 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7057 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7058 echo "configure:7025: checking for libintl.h" >&5
7059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7060 echo $ac_n "(cached) $ac_c" 1>&6
7062 cat > conftest.$ac_ext <<EOF
7063 #line 7030 "configure"
7064 #include "confdefs.h"
7065 #include <libintl.h>
7067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7068 { (eval echo configure:7035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7070 if test -z "$ac_err"; then
7072 eval "ac_cv_header_$ac_safe=yes"
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 eval "ac_cv_header_$ac_safe=no"
7082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7083 echo "$ac_t""yes" 1>&6
7084 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7085 echo "configure:7052: checking for gettext in libc" >&5
7086 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 cat > conftest.$ac_ext <<EOF
7090 #line 7057 "configure"
7091 #include "confdefs.h"
7092 #include <libintl.h>
7094 return (int) gettext ("")
7097 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7099 gt_cv_func_gettext_libc=yes
7101 echo "configure: failed program was:" >&5
7102 cat conftest.$ac_ext >&5
7104 gt_cv_func_gettext_libc=no
7109 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7111 if test "$gt_cv_func_gettext_libc" != "yes"; then
7112 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7113 echo "configure:7080: checking for bindtextdomain in -lintl" >&5
7114 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7118 ac_save_LIBS="$LIBS"
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7088 "configure"
7122 #include "confdefs.h"
7123 /* Override any gcc2 internal prototype to avoid an error. */
7124 /* We use char because int might match the return type of a gcc2
7125 builtin and then its argument prototype would still apply. */
7126 char bindtextdomain();
7132 if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7134 eval "ac_cv_lib_$ac_lib_var=yes"
7136 echo "configure: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7139 eval "ac_cv_lib_$ac_lib_var=no"
7142 LIBS="$ac_save_LIBS"
7145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7146 echo "$ac_t""yes" 1>&6
7147 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7148 echo "configure:7115: checking for gettext in libintl" >&5
7149 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7150 echo $ac_n "(cached) $ac_c" 1>&6
7152 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7153 echo "configure:7120: checking for gettext in -lintl" >&5
7154 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7158 ac_save_LIBS="$LIBS"
7160 cat > conftest.$ac_ext <<EOF
7161 #line 7128 "configure"
7162 #include "confdefs.h"
7163 /* Override any gcc2 internal prototype to avoid an error. */
7164 /* We use char because int might match the return type of a gcc2
7165 builtin and then its argument prototype would still apply. */
7172 if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7174 eval "ac_cv_lib_$ac_lib_var=yes"
7176 echo "configure: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7179 eval "ac_cv_lib_$ac_lib_var=no"
7182 LIBS="$ac_save_LIBS"
7185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7186 echo "$ac_t""yes" 1>&6
7187 gt_cv_func_gettext_libintl=yes
7189 echo "$ac_t""no" 1>&6
7190 gt_cv_func_gettext_libintl=no
7195 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7197 echo "$ac_t""no" 1>&6
7202 if test "$gt_cv_func_gettext_libc" = "yes" \
7203 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7204 cat >> confdefs.h <<\EOF
7205 #define HAVE_GETTEXT 1
7208 # Extract the first word of "msgfmt", so it can be a program name with args.
7209 set dummy msgfmt; ac_word=$2
7210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7211 echo "configure:7178: checking for $ac_word" >&5
7212 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7217 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7221 for ac_dir in $PATH; do
7222 test -z "$ac_dir" && ac_dir=.
7223 if test -f $ac_dir/$ac_word; then
7224 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7225 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7231 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7235 MSGFMT="$ac_cv_path_MSGFMT"
7236 if test -n "$MSGFMT"; then
7237 echo "$ac_t""$MSGFMT" 1>&6
7239 echo "$ac_t""no" 1>&6
7241 if test "$MSGFMT" != "no"; then
7242 for ac_func in dcgettext
7244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7245 echo "configure:7212: checking for $ac_func" >&5
7246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7217 "configure"
7251 #include "confdefs.h"
7252 /* System header to define __stub macros and hopefully few prototypes,
7253 which can conflict with char $ac_func(); below. */
7255 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7273 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7275 eval "ac_cv_func_$ac_func=yes"
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7280 eval "ac_cv_func_$ac_func=no"
7285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7288 cat >> confdefs.h <<EOF
7289 #define $ac_tr_func 1
7293 echo "$ac_t""no" 1>&6
7297 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7298 set dummy gmsgfmt; ac_word=$2
7299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7300 echo "configure:7267: checking for $ac_word" >&5
7301 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7306 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7309 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7314 for ac_dir in $ac_dummy; do
7315 test -z "$ac_dir" && ac_dir=.
7316 if test -f $ac_dir/$ac_word; then
7317 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7322 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7326 GMSGFMT="$ac_cv_path_GMSGFMT"
7327 if test -n "$GMSGFMT"; then
7328 echo "$ac_t""$GMSGFMT" 1>&6
7330 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:7303: 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 cat > conftest.$ac_ext <<EOF
7368 #line 7335 "configure"
7369 #include "confdefs.h"
7372 extern int _nl_msg_cat_cntr;
7373 return _nl_msg_cat_cntr
7376 if { (eval echo configure:7343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7381 echo "configure: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7393 echo "$ac_t""no" 1>&6
7397 if test "$CATOBJEXT" = "NONE"; then
7398 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7399 echo "configure:7366: checking whether catgets can be used" >&5
7400 # Check whether --with-catgets or --without-catgets was given.
7401 if test "${with_catgets+set}" = set; then
7402 withval="$with_catgets"
7403 nls_cv_use_catgets=$withval
7405 nls_cv_use_catgets=no
7408 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7410 if test "$nls_cv_use_catgets" = "yes"; then
7411 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7412 echo "configure:7379: checking for main in -li" >&5
7413 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
7417 ac_save_LIBS="$LIBS"
7419 cat > conftest.$ac_ext <<EOF
7420 #line 7387 "configure"
7421 #include "confdefs.h"
7427 if { (eval echo configure:7394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7429 eval "ac_cv_lib_$ac_lib_var=yes"
7431 echo "configure: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7434 eval "ac_cv_lib_$ac_lib_var=no"
7437 LIBS="$ac_save_LIBS"
7440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7442 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7443 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7444 cat >> confdefs.h <<EOF
7445 #define $ac_tr_lib 1
7451 echo "$ac_t""no" 1>&6
7454 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7455 echo "configure:7422: checking for catgets" >&5
7456 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7427 "configure"
7461 #include "confdefs.h"
7462 /* System header to define __stub macros and hopefully few prototypes,
7463 which can conflict with char catgets(); below. */
7465 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7472 /* The GNU C library defines this for functions which it implements
7473 to always fail with ENOSYS. Some functions are actually named
7474 something starting with __ and the normal name is an alias. */
7475 #if defined (__stub_catgets) || defined (__stub___catgets)
7483 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7485 eval "ac_cv_func_catgets=yes"
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7490 eval "ac_cv_func_catgets=no"
7495 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 cat >> confdefs.h <<\EOF
7498 #define HAVE_CATGETS 1
7501 INTLOBJS="\$(CATOBJS)"
7502 # Extract the first word of "gencat", so it can be a program name with args.
7503 set dummy gencat; ac_word=$2
7504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7505 echo "configure:7472: checking for $ac_word" >&5
7506 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7507 echo $ac_n "(cached) $ac_c" 1>&6
7511 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7514 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7519 for ac_dir in $ac_dummy; do
7520 test -z "$ac_dir" && ac_dir=.
7521 if test -f $ac_dir/$ac_word; then
7522 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7527 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7531 GENCAT="$ac_cv_path_GENCAT"
7532 if test -n "$GENCAT"; then
7533 echo "$ac_t""$GENCAT" 1>&6
7535 echo "$ac_t""no" 1>&6
7537 if test "$GENCAT" != "no"; then
7538 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7539 set dummy gmsgfmt; ac_word=$2
7540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7541 echo "configure:7508: checking for $ac_word" >&5
7542 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7543 echo $ac_n "(cached) $ac_c" 1>&6
7547 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7550 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7555 for ac_dir in $ac_dummy; do
7556 test -z "$ac_dir" && ac_dir=.
7557 if test -f $ac_dir/$ac_word; then
7558 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7563 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7567 GMSGFMT="$ac_cv_path_GMSGFMT"
7568 if test -n "$GMSGFMT"; then
7569 echo "$ac_t""$GMSGFMT" 1>&6
7571 echo "$ac_t""no" 1>&6
7574 if test "$GMSGFMT" = "no"; then
7575 # Extract the first word of "msgfmt", so it can be a program name with args.
7576 set dummy msgfmt; ac_word=$2
7577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7578 echo "configure:7545: checking for $ac_word" >&5
7579 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7580 echo $ac_n "(cached) $ac_c" 1>&6
7584 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7588 for ac_dir in $PATH; do
7589 test -z "$ac_dir" && ac_dir=.
7590 if test -f $ac_dir/$ac_word; then
7591 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7592 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7598 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7602 GMSGFMT="$ac_cv_path_GMSGFMT"
7603 if test -n "$GMSGFMT"; then
7604 echo "$ac_t""$GMSGFMT" 1>&6
7606 echo "$ac_t""no" 1>&6
7610 # Extract the first word of "xgettext", so it can be a program name with args.
7611 set dummy xgettext; ac_word=$2
7612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7613 echo "configure:7580: checking for $ac_word" >&5
7614 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7615 echo $ac_n "(cached) $ac_c" 1>&6
7619 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7623 for ac_dir in $PATH; do
7624 test -z "$ac_dir" && ac_dir=.
7625 if test -f $ac_dir/$ac_word; then
7626 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7627 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7633 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7637 XGETTEXT="$ac_cv_path_XGETTEXT"
7638 if test -n "$XGETTEXT"; then
7639 echo "$ac_t""$XGETTEXT" 1>&6
7641 echo "$ac_t""no" 1>&6
7644 USE_INCLUDED_LIBINTL=yes
7648 INTLDEPS='$(top_builddir)/intl/libintl.a'
7650 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7651 nls_cv_header_intl=intl/libintl.h
7652 nls_cv_header_libgt=intl/libgettext.h
7655 echo "$ac_t""no" 1>&6
7661 if test "$CATOBJEXT" = "NONE"; then
7662 nls_cv_use_gnu_gettext=yes
7666 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7667 INTLOBJS="\$(GETTOBJS)"
7668 # Extract the first word of "msgfmt", so it can be a program name with args.
7669 set dummy msgfmt; ac_word=$2
7670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7671 echo "configure:7638: checking for $ac_word" >&5
7672 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7677 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7681 for ac_dir in $PATH; do
7682 test -z "$ac_dir" && ac_dir=.
7683 if test -f $ac_dir/$ac_word; then
7684 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7685 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7691 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7695 MSGFMT="$ac_cv_path_MSGFMT"
7696 if test -n "$MSGFMT"; then
7697 echo "$ac_t""$MSGFMT" 1>&6
7699 echo "$ac_t""no" 1>&6
7702 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7703 set dummy gmsgfmt; ac_word=$2
7704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7705 echo "configure:7672: checking for $ac_word" >&5
7706 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7707 echo $ac_n "(cached) $ac_c" 1>&6
7711 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7714 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7719 for ac_dir in $ac_dummy; do
7720 test -z "$ac_dir" && ac_dir=.
7721 if test -f $ac_dir/$ac_word; then
7722 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7727 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7731 GMSGFMT="$ac_cv_path_GMSGFMT"
7732 if test -n "$GMSGFMT"; then
7733 echo "$ac_t""$GMSGFMT" 1>&6
7735 echo "$ac_t""no" 1>&6
7738 # Extract the first word of "xgettext", so it can be a program name with args.
7739 set dummy xgettext; ac_word=$2
7740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7741 echo "configure:7708: checking for $ac_word" >&5
7742 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7747 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7751 for ac_dir in $PATH; do
7752 test -z "$ac_dir" && ac_dir=.
7753 if test -f $ac_dir/$ac_word; then
7754 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7755 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7761 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7765 XGETTEXT="$ac_cv_path_XGETTEXT"
7766 if test -n "$XGETTEXT"; then
7767 echo "$ac_t""$XGETTEXT" 1>&6
7769 echo "$ac_t""no" 1>&6
7773 USE_INCLUDED_LIBINTL=yes
7777 INTLDEPS='$(top_builddir)/intl/libintl.a'
7779 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7780 nls_cv_header_intl=intl/libintl.h
7781 nls_cv_header_libgt=intl/libgettext.h
7784 if test "$XGETTEXT" != ":"; then
7785 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7788 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7793 # We need to process the po/ directory.
7797 nls_cv_header_intl=intl/libintl.h
7798 nls_cv_header_libgt=intl/libgettext.h
7804 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7805 # because some of the sources are only built for this goal.
7806 if test "$PACKAGE" = gettext; then
7808 USE_INCLUDED_LIBINTL=yes
7811 for lang in $ALL_LINGUAS; do
7812 GMOFILES="$GMOFILES $lang.gmo"
7813 POFILES="$POFILES $lang.po"
7829 if test "x$CATOBJEXT" != "x"; then
7830 if test "x$ALL_LINGUAS" = "x"; then
7833 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7834 echo "configure:7801: checking for catalogs to be installed" >&5
7836 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7837 case "$ALL_LINGUAS" in
7838 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7841 LINGUAS=$NEW_LINGUAS
7842 echo "$ac_t""$LINGUAS" 1>&6
7845 if test -n "$LINGUAS"; then
7846 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7850 if test $ac_cv_header_locale_h = yes; then
7851 INCLUDE_LOCALE_H="#include <locale.h>"
7854 /* The system does not provide the header <locale.h>. Take care yourself. */"
7858 test -d intl || mkdir intl
7859 if test "$CATOBJEXT" = ".cat"; then
7860 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7861 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7862 echo "configure:7829: checking for linux/version.h" >&5
7863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7864 echo $ac_n "(cached) $ac_c" 1>&6
7866 cat > conftest.$ac_ext <<EOF
7867 #line 7834 "configure"
7868 #include "confdefs.h"
7869 #include <linux/version.h>
7871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7872 { (eval echo configure:7839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7874 if test -z "$ac_err"; then
7876 eval "ac_cv_header_$ac_safe=yes"
7879 echo "configure: failed program was:" >&5
7880 cat conftest.$ac_ext >&5
7882 eval "ac_cv_header_$ac_safe=no"
7886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7887 echo "$ac_t""yes" 1>&6
7890 echo "$ac_t""no" 1>&6
7895 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
7897 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7898 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
7900 if test "$PACKAGE" = "gettext"; then
7911 if test -n "$ac_aux_dir"; then
7912 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7914 if test -z "$MKINSTALLDIRS"; then
7915 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7922 test -d po || mkdir po
7923 if test "x$srcdir" != "x."; then
7924 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7925 posrcprefix="$srcdir/"
7927 posrcprefix="../$srcdir/"
7933 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7934 < $srcdir/po/POTFILES.in > po/POTFILES
7936 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7938 # Get an absolute path to the GCC top-level source directory
7944 # Conditionalize the makefile for this host machine.
7945 # Make-host contains the concatenation of all host makefile fragments
7946 # [there can be more than one]. This file is built by configure.frag.
7947 host_overrides=Make-host
7948 dep_host_xmake_file=
7949 for f in .. ${host_xmake_file}
7951 if test -f ${srcdir}/config/$f
7953 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
7957 # Conditionalize the makefile for this target machine.
7958 # Make-target contains the concatenation of all host makefile fragments
7959 # [there can be more than one]. This file is built by configure.frag.
7960 target_overrides=Make-target
7962 for f in .. ${tmake_file}
7964 if test -f ${srcdir}/config/$f
7966 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
7970 # If the host doesn't support symlinks, modify CC in
7971 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7972 # Otherwise, we can use "CC=$(CC)".
7974 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
7976 cc_set_by_configure="\$(CC)"
7977 quoted_cc_set_by_configure="\$(CC)"
7978 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
7981 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
7983 symbolic_link="cp -p"
7987 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7988 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
7989 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7993 out_object_file=`basename $out_file .c`.o
7996 for f in $tm_file; do
7999 tm_file_list="${tm_file_list} $f" ;;
8000 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8005 for f in $host_xm_file; do
8007 auto-host.h | gansidecl.h | hwint.h )
8008 host_xm_file_list="${host_xm_file_list} $f" ;;
8009 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8014 for f in $build_xm_file; do
8016 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8017 build_xm_file_list="${build_xm_file_list} $f" ;;
8018 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8022 # Define macro CROSS_COMPILE in compilation
8023 # if this is a cross-compiler.
8024 # Also use all.cross instead of all.internal
8025 # and add cross-make to Makefile.
8026 cross_overrides="/dev/null"
8027 if test x$host != x$target
8029 cross_defines="CROSS=-DCROSS_COMPILE"
8030 cross_overrides="${topdir}/cross-make"
8033 # When building gcc with a cross-compiler, we need to fix a few things.
8034 # This must come after cross-make as we want all.build to override
8036 build_overrides="/dev/null"
8037 if test x$build != x$host
8039 build_overrides="${topdir}/build-make"
8042 # Expand extra_headers to include complete path.
8043 # This substitutes for lots of t-* files.
8045 if test "x$extra_headers" = x
8048 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8049 for file in $extra_headers;
8051 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8055 if test x$use_collect2 = xno; then
8059 # Add a definition of USE_COLLECT2 if system wants one.
8060 # Also tell toplev.c what to do.
8061 # This substitutes for lots of t-* files.
8062 if test x$use_collect2 = x
8067 will_use_collect2="collect2"
8068 maybe_use_collect2="-DUSE_COLLECT2"
8072 # Set MD_DEPS if the real md file is in md.pre-cpp.
8073 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8074 # for line oriented comments, so we must always use a GNU cpp. If
8075 # building gcc with a cross compiler, use the cross compiler just
8076 # built. Otherwise, we can use the cpp just built.
8078 if test "x$md_cppflags" = x
8080 md_file_sub=$srcdir/config/$md_file
8085 # If we have gas in the build tree, make a link to it.
8086 if test -f ../gas/Makefile; then
8087 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8090 # If we have nm in the build tree, make a link to it.
8091 if test -f ../binutils/Makefile; then
8092 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8095 # If we have ld in the build tree, make a link to it.
8096 if test -f ../ld/Makefile; then
8097 # if test x$use_collect2 = x; then
8098 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8100 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8104 # Figure out what assembler alignment features are present.
8105 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8106 echo "configure:8073: checking assembler alignment features" >&5
8108 gcc_cv_as_alignment_features=
8109 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8110 if test -x "$DEFAULT_ASSEMBLER"; then
8111 gcc_cv_as="$DEFAULT_ASSEMBLER"
8112 elif test -x "$AS"; then
8114 elif test -x as$host_exeext; then
8115 # Build using assembler in the current directory.
8116 gcc_cv_as=./as$host_exeext
8117 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8118 # Single tree build which includes gas.
8119 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8121 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8122 if test x$gcc_cv_gas_version != x; then
8126 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8127 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8128 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8129 # Gas version 2.6 and later support for .balign and .p2align.
8130 # bytes to skip when using .p2align.
8131 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
8132 gcc_cv_as_alignment_features=".balign and .p2align"
8133 cat >> confdefs.h <<\EOF
8134 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8138 # Gas version 2.8 and later support specifying the maximum
8139 # bytes to skip when using .p2align.
8140 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
8141 gcc_cv_as_alignment_features=".p2align including maximum skip"
8142 cat >> confdefs.h <<\EOF
8143 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8148 elif test x$host = x$target; then
8150 # Search the same directories that the installed compiler will
8151 # search. Else we may find the wrong assembler and lose. If we
8152 # do not find a suitable assembler binary, then try the user's
8155 # Also note we have to check MD_EXEC_PREFIX before checking the
8156 # user's path. Unfortunately, there is no good way to get at the
8157 # value of MD_EXEC_PREFIX here. So we do a brute force search
8158 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8159 # to be fixed as part of the make/configure rewrite too.
8161 if test "x$exec_prefix" = xNONE; then
8162 if test "x$prefix" = xNONE; then
8163 test_prefix=/usr/local
8168 test_prefix=$exec_prefix
8171 # If the loop below does not find an assembler, then use whatever
8172 # one we can find in the users's path.
8176 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8177 $test_prefix/lib/gcc-lib/$target \
8178 /usr/lib/gcc/$target/$gcc_version \
8179 /usr/lib/gcc/$target \
8180 $test_prefix/$target/bin/$target/$gcc_version \
8181 $test_prefix/$target/bin \
8186 /bsd43/usr/lib/cmplrs/cc \
8187 /usr/cross64/usr/bin \
8188 /usr/lib/cmplrs/cc \
8189 /sysv/usr/lib/cmplrs/cc \
8190 /svr4/usr/lib/cmplrs/cc \
8193 for dir in $test_dirs; do
8194 if test -f $dir/as$host_exeext; then
8195 gcc_cv_as=$dir/as$host_exeext
8200 if test x$gcc_cv_as != x; then
8201 # Check if we have .balign and .p2align
8202 echo ".balign 4" > conftest.s
8203 echo ".p2align 2" >> conftest.s
8204 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8205 gcc_cv_as_alignment_features=".balign and .p2align"
8206 cat >> confdefs.h <<\EOF
8207 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8211 rm -f conftest.s conftest.o
8212 # Check if specifying the maximum bytes to skip when
8213 # using .p2align is supported.
8214 echo ".p2align 4,,7" > conftest.s
8215 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8216 gcc_cv_as_alignment_features=".p2align including maximum skip"
8217 cat >> confdefs.h <<\EOF
8218 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8222 rm -f conftest.s conftest.o
8224 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8226 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8227 echo "configure:8194: checking assembler subsection support" >&5
8228 gcc_cv_as_subsections=
8229 if test x$gcc_cv_as != x; then
8230 # Check if we have .subsection
8231 echo ".subsection 1" > conftest.s
8232 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8233 gcc_cv_as_subsections=".subsection"
8234 if test -x nm$host_exeext; then
8235 gcc_cv_nm=./nm$host_exeext
8236 elif test x$host = x$target; then
8238 gcc_cv_nm=nm$host_exeext
8240 if test x$gcc_cv_nm != x; then
8241 cat > conftest.s <<EOF
8242 conftest_label1: .word 0
8244 conftest_label2: .word 0
8247 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8248 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8249 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8250 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8253 gcc_cv_as_subsections="working .subsection -1"
8254 cat >> confdefs.h <<\EOF
8255 #define HAVE_GAS_SUBSECTION_ORDERING 1
8262 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8264 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8266 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8267 echo "configure:8234: checking assembler instructions" >&5
8268 gcc_cv_as_instructions=
8269 if test x$gcc_cv_as != x; then
8270 set "filds fists" "filds mem; fists mem"
8273 echo "$2" > conftest.s
8274 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8275 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8276 cat >> confdefs.h <<EOF
8277 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8283 rm -f conftest.s conftest.o
8285 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8287 # Figure out what language subdirectories are present.
8288 # Look if the user specified --enable-languages="..."; if not, use
8289 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8291 if test x"${enable_languages+set}" != xset; then
8292 if test x"${LANGUAGES+set}" = xset; then
8293 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8295 enable_languages=all
8299 for lang in ${srcdir}/*/config-lang.in ..
8303 # The odd quoting in the next line works around
8304 # an apparent bug in bash 1.12 on linux.
8305 ${srcdir}/[*]/config-lang.in) ;;
8307 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8308 if test "x$lang_alias" = x
8310 echo "$lang doesn't set \$language." 1>&2
8313 if test x"${enable_languages}" = xall; then
8316 case "${enable_languages}" in
8317 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8325 if test x"${add_this_lang}" = xyes; then
8327 ${srcdir}/ada/config-lang.in)
8328 if test x$gnat = xyes ; then
8329 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8333 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8341 # Make gthr-default.h if we have a thread file.
8343 if test $thread_file != single; then
8344 rm -f gthr-default.h
8345 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8346 gthread_flags=-DHAVE_GTHR_DEFAULT
8350 # Make empty files to contain the specs and options for each language.
8351 # Then add #include lines to for a compiler that has specs and/or options.
8356 rm -f specs.h options.h gencheck.h
8357 touch specs.h options.h gencheck.h
8358 for subdir in . $subdirs
8360 if test -f $srcdir/$subdir/lang-specs.h; then
8361 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8362 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8364 if test -f $srcdir/$subdir/lang-options.h; then
8365 echo "#include \"$subdir/lang-options.h\"" >>options.h
8366 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8368 if test -f $srcdir/$subdir/$subdir-tree.def; then
8369 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8370 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8374 # These (without "all_") are set in each config-lang.in.
8375 # `language' must be a single word so is spelled singularly.
8381 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8382 # List of language makefile fragments.
8387 # Add the language fragments.
8388 # Languages are added via two mechanisms. Some information must be
8389 # recorded in makefile variables, these are defined in config-lang.in.
8390 # We accumulate them and plug them into the main Makefile.
8391 # The other mechanism is a set of hooks for each of the main targets
8392 # like `clean', `install', etc.
8394 language_fragments="Make-lang"
8395 language_hooks="Make-hooks"
8398 for s in .. $subdirs
8410 . ${srcdir}/$s/config-lang.in
8411 if test "x$language" = x
8413 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8416 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8417 all_languages="$all_languages $language"
8418 if test "x$boot_language" = xyes
8420 all_boot_languages="$all_boot_languages $language"
8422 all_compilers="$all_compilers $compilers"
8423 all_stagestuff="$all_stagestuff $stagestuff"
8424 all_diff_excludes="$all_diff_excludes $diff_excludes"
8425 all_headers="$all_headers $headers"
8426 all_outputs="$all_outputs $outputs"
8427 if test x$outputs = x
8429 oldstyle_subdirs="$oldstyle_subdirs $s"
8431 all_lib2funcs="$all_lib2funcs $lib2funcs"
8435 # Since we can't use `::' targets, we link each language in
8436 # with a set of hooks, reached indirectly via lang.${target}.
8440 target_list="all.build all.cross start.encap rest.encap \
8442 install-normal install-common install-info install-man \
8444 mostlyclean clean distclean extraclean maintainer-clean \
8445 stage1 stage2 stage3 stage4"
8446 for t in $target_list
8449 for lang in .. $all_languages
8451 if test $lang != ".."; then
8455 echo "lang.$t: $x" >> Make-hooks
8458 # If we're not building in srcdir, create .gdbinit.
8460 if test ! -f Makefile.in; then
8461 echo "dir ." > .gdbinit
8462 echo "dir ${srcdir}" >> .gdbinit
8463 if test x$gdb_needs_out_file_path = xyes
8465 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8467 if test "x$subdirs" != x; then
8470 echo "dir ${srcdir}/$s" >> .gdbinit
8473 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8476 # Define variables host_canonical and build_canonical
8477 # because some Cygnus local changes in the Makefile depend on them.
8478 build_canonical=${build}
8479 host_canonical=${host}
8481 if test "${host}" != "${target}" ; then
8482 target_subdir=${target}/
8488 # If this is using newlib, then define inhibit_libc in
8489 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8490 # libgcc.a, but that's OK because newib should have its own version of
8493 if test x$with_newlib = xyes; then
8494 inhibit_libc=-Dinhibit_libc
8498 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8501 if test x$enable_haifa = xyes; then
8502 echo "Using the Haifa scheduler."
8504 sched_cflags=-DHAIFA
8508 if test x$enable_haifa != x; then
8509 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8510 for x in genattrtab.o toplev.o *sched.o; do
8518 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8519 # absolute path for gcc_tooldir based on inserting the number of up-directory
8520 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8521 # $(libsubdir)/@(unlibsubdir) based path.
8522 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8523 # make and thus we'd get different behavior depending on where we built the
8525 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8526 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8528 # An explanation of the sed strings:
8529 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8530 # -e 's|/$||' match a trailing forward slash and eliminates it
8531 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8532 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8534 # (*) Note this pattern overwrites the first character of the string
8535 # with a forward slash if one is not already present. This is not a
8536 # problem because the exact names of the sub-directories concerned is
8537 # unimportant, just the number of them matters.
8539 # The practical upshot of these patterns is like this:
8541 # prefix exec_prefix result
8542 # ------ ----------- ------
8544 # /foo/ /foo/bar ../
8545 # /foo /foo/bar/ ../
8546 # /foo/ /foo/bar/ ../
8547 # /foo /foo/bar/ugg ../../
8550 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8555 # Nothing to do for FLOAT_H, float_format already handled.
8559 # Process the language and host/target makefile fragments.
8560 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8562 # Substitute configuration variables
8624 # Echo that links are built
8625 if test x$host = x$target
8633 if test x$host != x$build
8635 str3=" on a $build system"
8638 if test "x$str2" != x || test "x$str3" != x
8643 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8645 if test "x$str2" != x || test "x$str3" != x
8647 echo " ${str2}${str3}." 1>&2
8650 # Truncate the target if necessary
8651 if test x$host_truncate_target != x; then
8652 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8655 # Configure the subdirectories
8656 # AC_CONFIG_SUBDIRS($subdirs)
8658 # Create the Makefile
8659 # and configure language subdirectories
8661 cat > confcache <<\EOF
8662 # This file is a shell script that caches the results of configure
8663 # tests run on this system so they can be shared between configure
8664 # scripts and configure runs. It is not useful on other systems.
8665 # If it contains results you don't want to keep, you may remove or edit it.
8667 # By default, configure uses ./config.cache as the cache file,
8668 # creating it if it does not exist already. You can give configure
8669 # the --cache-file=FILE option to use a different cache file; that is
8670 # what configure does when it calls configure scripts in
8671 # subdirectories, so they share the cache.
8672 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8673 # config.status only pays attention to the cache file if you give it the
8674 # --recheck option to rerun configure.
8677 # The following way of writing the cache mishandles newlines in values,
8678 # but we know of no workaround that is simple, portable, and efficient.
8679 # So, don't put newlines in cache variables' values.
8680 # Ultrix sh set writes to stderr and can't be redirected directly,
8681 # and sets the high bit in the cache file unless we assign to the vars.
8683 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8685 # `set' does not quote correctly, so add quotes (double-quote substitution
8686 # turns \\\\ into \\, and sed turns \\ into \).
8688 -e "s/'/'\\\\''/g" \
8689 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8692 # `set' quotes correctly as required by POSIX, so do not add quotes.
8693 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8696 if cmp -s $cache_file confcache; then
8699 if test -w $cache_file; then
8700 echo "updating cache $cache_file"
8701 cat confcache > $cache_file
8703 echo "not updating unwritable cache $cache_file"
8708 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8711 # Let make expand exec_prefix.
8712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8714 # Any assignment to VPATH causes Sun make to only execute
8715 # the first set of double-colon rules, so remove it if not needed.
8716 # If there is a colon in the path, we need to keep it.
8717 if test "x$srcdir" = x.; then
8718 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8721 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8723 DEFS=-DHAVE_CONFIG_H
8725 # Without the "./", some shells look in PATH for config.status.
8726 : ${CONFIG_STATUS=./config.status}
8728 echo creating $CONFIG_STATUS
8729 rm -f $CONFIG_STATUS
8730 cat > $CONFIG_STATUS <<EOF
8732 # Generated automatically by configure.
8733 # Run this file to recreate the current configuration.
8734 # This directory was configured as follows,
8735 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8737 # $0 $ac_configure_args
8739 # Compiler output produced by configure, useful for debugging
8740 # configure, is in ./config.log if it exists.
8742 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8745 case "\$ac_option" in
8746 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8747 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8748 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8749 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8750 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8752 -help | --help | --hel | --he | --h)
8753 echo "\$ac_cs_usage"; exit 0 ;;
8754 *) echo "\$ac_cs_usage"; exit 1 ;;
8758 ac_given_srcdir=$srcdir
8760 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8762 cat >> $CONFIG_STATUS <<EOF
8764 # Protect against being on the right side of a sed subst in config.status.
8765 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8766 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8770 s%@CFLAGS@%$CFLAGS%g
8771 s%@CPPFLAGS@%$CPPFLAGS%g
8772 s%@CXXFLAGS@%$CXXFLAGS%g
8773 s%@FFLAGS@%$FFLAGS%g
8775 s%@LDFLAGS@%$LDFLAGS%g
8777 s%@exec_prefix@%$exec_prefix%g
8778 s%@prefix@%$prefix%g
8779 s%@program_transform_name@%$program_transform_name%g
8780 s%@bindir@%$bindir%g
8781 s%@sbindir@%$sbindir%g
8782 s%@libexecdir@%$libexecdir%g
8783 s%@datadir@%$datadir%g
8784 s%@sysconfdir@%$sysconfdir%g
8785 s%@sharedstatedir@%$sharedstatedir%g
8786 s%@localstatedir@%$localstatedir%g
8787 s%@libdir@%$libdir%g
8788 s%@includedir@%$includedir%g
8789 s%@oldincludedir@%$oldincludedir%g
8790 s%@infodir@%$infodir%g
8791 s%@mandir@%$mandir%g
8793 s%@host_alias@%$host_alias%g
8794 s%@host_cpu@%$host_cpu%g
8795 s%@host_vendor@%$host_vendor%g
8796 s%@host_os@%$host_os%g
8797 s%@target@%$target%g
8798 s%@target_alias@%$target_alias%g
8799 s%@target_cpu@%$target_cpu%g
8800 s%@target_vendor@%$target_vendor%g
8801 s%@target_os@%$target_os%g
8803 s%@build_alias@%$build_alias%g
8804 s%@build_cpu@%$build_cpu%g
8805 s%@build_vendor@%$build_vendor%g
8806 s%@build_os@%$build_os%g
8808 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8809 s%@SET_MAKE@%$SET_MAKE%g
8812 s%@LEXLIB@%$LEXLIB%g
8815 s%@RANLIB@%$RANLIB%g
8817 s%@INSTALL@%$INSTALL%g
8818 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8819 s%@INSTALL_DATA@%$INSTALL_DATA%g
8822 s%@vfprintf@%$vfprintf%g
8823 s%@doprint@%$doprint%g
8824 s%@manext@%$manext%g
8825 s%@objext@%$objext%g
8826 s%@PACKAGE@%$PACKAGE%g
8827 s%@VERSION@%$VERSION%g
8828 s%@ALLOCA@%$ALLOCA%g
8829 s%@USE_NLS@%$USE_NLS%g
8830 s%@MSGFMT@%$MSGFMT%g
8831 s%@GMSGFMT@%$GMSGFMT%g
8832 s%@XGETTEXT@%$XGETTEXT%g
8833 s%@GENCAT@%$GENCAT%g
8834 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8835 s%@CATALOGS@%$CATALOGS%g
8836 s%@CATOBJEXT@%$CATOBJEXT%g
8837 s%@DATADIRNAME@%$DATADIRNAME%g
8838 s%@GMOFILES@%$GMOFILES%g
8839 s%@INSTOBJEXT@%$INSTOBJEXT%g
8840 s%@INTLDEPS@%$INTLDEPS%g
8841 s%@INTLLIBS@%$INTLLIBS%g
8842 s%@INTLOBJS@%$INTLOBJS%g
8843 s%@POFILES@%$POFILES%g
8845 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8847 s%@GT_YES@%$GT_YES%g
8848 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8850 s%@gthread_flags@%$gthread_flags%g
8851 s%@build_canonical@%$build_canonical%g
8852 s%@host_canonical@%$host_canonical%g
8853 s%@target_subdir@%$target_subdir%g
8854 s%@inhibit_libc@%$inhibit_libc%g
8855 s%@sched_prefix@%$sched_prefix%g
8856 s%@sched_cflags@%$sched_cflags%g
8857 s%@gcc_tooldir@%$gcc_tooldir%g
8858 s%@dollar@%$dollar%g
8859 s%@objdir@%$objdir%g
8860 s%@subdirs@%$subdirs%g
8861 s%@all_boot_languages@%$all_boot_languages%g
8862 s%@all_compilers@%$all_compilers%g
8863 s%@all_diff_excludes@%$all_diff_excludes%g
8864 s%@all_headers@%$all_headers%g
8865 s%@all_lang_makefiles@%$all_lang_makefiles%g
8866 s%@all_languages@%$all_languages%g
8867 s%@all_lib2funcs@%$all_lib2funcs%g
8868 s%@all_stagestuff@%$all_stagestuff%g
8869 s%@build_exeext@%$build_exeext%g
8870 s%@build_install_headers_dir@%$build_install_headers_dir%g
8871 s%@build_xm_file_list@%$build_xm_file_list%g
8872 s%@cc_set_by_configure@%$cc_set_by_configure%g
8873 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8874 s%@cpp_install_dir@%$cpp_install_dir%g
8875 s%@cpp_main@%$cpp_main%g
8876 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8877 s%@dep_tmake_file@%$dep_tmake_file%g
8878 s%@extra_c_flags@%$extra_c_flags%g
8879 s%@extra_c_objs@%$extra_c_objs%g
8880 s%@extra_cpp_objs@%$extra_cpp_objs%g
8881 s%@extra_cxx_objs@%$extra_cxx_objs%g
8882 s%@extra_headers_list@%$extra_headers_list%g
8883 s%@extra_objs@%$extra_objs%g
8884 s%@extra_parts@%$extra_parts%g
8885 s%@extra_passes@%$extra_passes%g
8886 s%@extra_programs@%$extra_programs%g
8887 s%@fixinc_defs@%$fixinc_defs%g
8888 s%@float_h_file@%$float_h_file%g
8889 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8890 s%@gcc_version@%$gcc_version%g
8891 s%@gcc_version_trigger@%$gcc_version_trigger%g
8892 s%@host_exeext@%$host_exeext%g
8893 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8894 s%@host_xm_file_list@%$host_xm_file_list%g
8895 s%@install@%$install%g
8896 s%@JAVAGC@%$JAVAGC%g
8897 s%@lang_options_files@%$lang_options_files%g
8898 s%@lang_specs_files@%$lang_specs_files%g
8899 s%@lang_tree_files@%$lang_tree_files%g
8900 s%@local_prefix@%$local_prefix%g
8901 s%@maybe_use_collect2@%$maybe_use_collect2%g
8902 s%@md_file@%$md_file%g
8903 s%@objc_boehm_gc@%$objc_boehm_gc%g
8904 s%@out_file@%$out_file%g
8905 s%@out_object_file@%$out_object_file%g
8906 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8907 s%@symbolic_link@%$symbolic_link%g
8908 s%@thread_file@%$thread_file%g
8909 s%@tm_file_list@%$tm_file_list%g
8910 s%@will_use_collect2@%$will_use_collect2%g
8911 /@target_overrides@/r $target_overrides
8912 s%@target_overrides@%%g
8913 /@host_overrides@/r $host_overrides
8914 s%@host_overrides@%%g
8915 s%@cross_defines@%$cross_defines%g
8916 /@cross_overrides@/r $cross_overrides
8917 s%@cross_overrides@%%g
8918 /@build_overrides@/r $build_overrides
8919 s%@build_overrides@%%g
8920 /@language_fragments@/r $language_fragments
8921 s%@language_fragments@%%g
8922 /@language_hooks@/r $language_hooks
8923 s%@language_hooks@%%g
8928 cat >> $CONFIG_STATUS <<\EOF
8930 # Split the substitutions into bite-sized pieces for seds with
8931 # small command number limits, like on Digital OSF/1 and HP-UX.
8932 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8933 ac_file=1 # Number of current file.
8934 ac_beg=1 # First line for current file.
8935 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8938 while $ac_more_lines; do
8939 if test $ac_beg -gt 1; then
8940 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8942 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8944 if test ! -s conftest.s$ac_file; then
8946 rm -f conftest.s$ac_file
8948 if test -z "$ac_sed_cmds"; then
8949 ac_sed_cmds="sed -f conftest.s$ac_file"
8951 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8953 ac_file=`expr $ac_file + 1`
8955 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8958 if test -z "$ac_sed_cmds"; then
8963 cat >> $CONFIG_STATUS <<EOF
8965 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8967 cat >> $CONFIG_STATUS <<\EOF
8968 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8971 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8972 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8973 *) ac_file_in="${ac_file}.in" ;;
8976 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8978 # Remove last slash and all that follows it. Not all systems have dirname.
8979 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8980 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8981 # The file is in a subdirectory.
8982 test ! -d "$ac_dir" && mkdir "$ac_dir"
8983 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8984 # A "../" for each directory in $ac_dir_suffix.
8985 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8987 ac_dir_suffix= ac_dots=
8990 case "$ac_given_srcdir" in
8992 if test -z "$ac_dots"; then top_srcdir=.
8993 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8994 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8996 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8997 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9001 echo creating "$ac_file"
9003 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9005 *Makefile*) ac_comsub="1i\\
9006 # $configure_input" ;;
9010 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9012 s%@configure_input@%$configure_input%g
9013 s%@srcdir@%$srcdir%g
9014 s%@top_srcdir@%$top_srcdir%g
9015 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9019 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9020 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9022 # ac_d sets the value in "#define NAME VALUE" lines.
9023 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9024 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9027 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9028 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9029 ac_uB='\([ ]\)%\1#\2define\3'
9032 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9033 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9034 ac_eB='$%\1#\2define\3'
9038 if test "${CONFIG_HEADERS+set}" != set; then
9040 cat >> $CONFIG_STATUS <<EOF
9041 CONFIG_HEADERS="auto-host.h:config.in"
9043 cat >> $CONFIG_STATUS <<\EOF
9045 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9046 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9048 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9049 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9050 *) ac_file_in="${ac_file}.in" ;;
9053 echo creating $ac_file
9055 rm -f conftest.frag conftest.in conftest.out
9056 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9057 cat $ac_file_inputs > conftest.in
9061 # Transform confdefs.h into a sed script conftest.vals that substitutes
9062 # the proper values into config.h.in to produce config.h. And first:
9063 # Protect against being on the right side of a sed subst in config.status.
9064 # Protect against being in an unquoted here document in config.status.
9066 cat > conftest.hdr <<\EOF
9069 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9073 sed -n -f conftest.hdr confdefs.h > conftest.vals
9076 # This sed command replaces #undef with comments. This is necessary, for
9077 # example, in the case of _POSIX_SOURCE, which is predefined and required
9078 # on some systems where configure will not decide to define it.
9079 cat >> conftest.vals <<\EOF
9080 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9083 # Break up conftest.vals because some shells have a limit on
9084 # the size of here documents, and old seds have small limits too.
9089 ac_lines=`grep -c . conftest.vals`
9090 # grep -c gives empty output for an empty file on some AIX systems.
9091 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9092 # Write a limited-size here document to conftest.frag.
9093 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9094 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9096 sed -f conftest.frag conftest.in > conftest.out
9098 mv conftest.out conftest.in
9100 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9102 mv conftest.tail conftest.vals
9106 cat >> $CONFIG_STATUS <<\EOF
9107 rm -f conftest.frag conftest.h
9108 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9109 cat conftest.in >> conftest.h
9111 if cmp -s $ac_file conftest.h 2>/dev/null; then
9112 echo "$ac_file is unchanged"
9115 # Remove last slash and all that follows it. Not all systems have dirname.
9116 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9117 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9118 # The file is in a subdirectory.
9119 test ! -d "$ac_dir" && mkdir "$ac_dir"
9122 mv conftest.h $ac_file
9128 cat >> $CONFIG_STATUS <<EOF
9129 ac_sources="$nls_cv_header_libgt"
9130 ac_dests="$nls_cv_header_intl"
9133 cat >> $CONFIG_STATUS <<\EOF
9134 srcdir=$ac_given_srcdir
9135 while test -n "$ac_sources"; do
9136 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9137 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9139 echo "linking $srcdir/$ac_source to $ac_dest"
9141 if test ! -r $srcdir/$ac_source; then
9142 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9146 # Make relative symlinks.
9147 # Remove last slash and all that follows it. Not all systems have dirname.
9148 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9149 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9150 # The dest file is in a subdirectory.
9151 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9152 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9153 # A "../" for each directory in $ac_dest_dir_suffix.
9154 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9156 ac_dest_dir_suffix= ac_dots=
9160 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9161 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9164 # Make a symlink if possible; otherwise try a hard link.
9165 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9166 ln $srcdir/$ac_source $ac_dest; then :
9168 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9172 cat >> $CONFIG_STATUS <<EOF
9178 target_alias='${target_alias}'
9180 subdirs='${subdirs}'
9181 oldstyle_subdirs='${oldstyle_subdirs}'
9182 symbolic_link='${symbolic_link}'
9183 program_transform_set='${program_transform_set}'
9184 program_transform_name='${program_transform_name}'
9185 dep_host_xmake_file='${dep_host_xmake_file}'
9186 host_xmake_file='${host_xmake_file}'
9187 dep_tmake_file='${dep_tmake_file}'
9188 tmake_file='${tmake_file}'
9189 thread_file='${thread_file}'
9190 gcc_version='${gcc_version}'
9191 gcc_version_trigger='${gcc_version_trigger}'
9192 local_prefix='${local_prefix}'
9193 build_install_headers_dir='${build_install_headers_dir}'
9194 build_exeext='${build_exeext}'
9195 host_exeext='${host_exeext}'
9196 out_file='${out_file}'
9197 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9198 SET_MAKE='${SET_MAKE}'
9199 target_list='${target_list}'
9200 target_overrides='${target_overrides}'
9201 host_overrides='${host_overrides}'
9202 cross_defines='${cross_defines}'
9203 cross_overrides='${cross_overrides}'
9204 build_overrides='${build_overrides}'
9205 cpp_install_dir='${cpp_install_dir}'
9208 cat >> $CONFIG_STATUS <<\EOF
9209 case "$CONFIG_FILES" in *po/Makefile.in*)
9210 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9213 . $srcdir/configure.lang
9214 case x$CONFIG_HEADERS in
9215 xauto-host.h:config.in)
9218 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9219 # bootstrapping and the installation procedure can still use
9220 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9221 # FLAGS_TO_PASS has been modified to solve the problem there.
9222 # This is virtually a duplicate of what happens in configure.lang; we do
9223 # an extra check to make sure this only happens if ln -s can be used.
9224 if test "$symbolic_link" = "ln -s"; then
9225 for d in .. ${subdirs} ; do
9226 if test $d != ..; then
9229 for t in stage1 stage2 stage3 stage4 include
9232 $symbolic_link ../$t $t 2>/dev/null
9238 # Avoid having to add intl to our include paths.
9239 if test -f intl/libintl.h; then
9240 echo creating libintl.h
9241 echo '#include "intl/libintl.h"' >libintl.h
9246 chmod +x $CONFIG_STATUS
9247 rm -fr confdefs* $ac_clean_files
9248 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1