3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking enable expensive run-time checks."
34 --disable-cpp don't provide a user-visible C preprocessor."
36 --with-cpp-install-dir=DIR
37 install the user visible C preprocessor in DIR
38 (relative to PREFIX) as well as PREFIX/bin."
40 --enable-cpplib use cpplib for the C preprocessor."
42 --enable-c-cpplib link cpplib directly into C and C++ compilers
43 (EXPERIMENTAL) (implies --enable-cpplib)."
45 --enable-c-mbchar enable multibyte characters for C and C++."
47 --disable-fast-fixincludes
48 Disable the new fast fixincludes.
49 Run the old fixincludes script unconditionally"
51 --enable-haifa use the experimental scheduler.
52 --disable-haifa don't use the experimental scheduler for the
53 targets which normally enable it."
55 --enable-threads enable thread usage for target GCC.
56 --enable-threads=LIB use LIB thread package for target GCC."
58 --enable-objc-gc enable the use of Boehm's garbage collector with
59 the GNU Objective-C runtime."
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
63 --enable-dwarf2 enable DWARF2 debugging as default."
65 --enable-nls use Native Language Support (disabled by default)"
67 --disable-nls do not use Native Language Support"
69 --with-included-gettext use the GNU gettext library included here"
71 --with-catgets use catgets functions if available"
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
77 cache_file=./config.cache
86 program_transform_name=s,x,x,
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
107 # Initialize some other variables.
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
126 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
130 # Accept the important Cygnus configure options, so we can diagnose typos.
134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137 bindir="$ac_optarg" ;;
139 -build | --build | --buil | --bui | --bu)
141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142 build="$ac_optarg" ;;
144 -cache-file | --cache-file | --cache-fil | --cache-fi \
145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146 ac_prev=cache_file ;;
147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149 cache_file="$ac_optarg" ;;
151 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
153 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
155 datadir="$ac_optarg" ;;
157 -disable-* | --disable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* | --enable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181 | --exec | --exe | --ex)
182 ac_prev=exec_prefix ;;
183 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185 | --exec=* | --exe=* | --ex=*)
186 exec_prefix="$ac_optarg" ;;
188 -gas | --gas | --ga | --g)
189 # Obsolete; use --with-gas.
192 -help | --help | --hel | --he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --version print the version of autoconf that created configure
204 Directory and file names:
205 --prefix=PREFIX install architecture-independent files in PREFIX
207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
209 --bindir=DIR user executables in DIR [EPREFIX/bin]
210 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
211 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
212 --datadir=DIR read-only architecture-independent data in DIR
214 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
215 --sharedstatedir=DIR modifiable architecture-independent data in DIR
217 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
218 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
219 --includedir=DIR C header files in DIR [PREFIX/include]
220 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
221 --infodir=DIR info documentation in DIR [PREFIX/info]
222 --mandir=DIR man documentation in DIR [PREFIX/man]
223 --srcdir=DIR find the sources in DIR [configure dir or ..]
224 --program-prefix=PREFIX prepend PREFIX to installed program names
225 --program-suffix=SUFFIX append SUFFIX to installed program names
226 --program-transform-name=PROGRAM
227 run sed PROGRAM on installed program names
231 --build=BUILD configure for building on BUILD [BUILD=HOST]
232 --host=HOST configure for HOST [guessed]
233 --target=TARGET configure for TARGET [TARGET=HOST]
234 Features and packages:
235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
239 --x-includes=DIR X include files are in DIR
240 --x-libraries=DIR X library files are in DIR
242 if test -n "$ac_help"; then
243 echo "--enable and --with options recognized:$ac_help"
247 -host | --host | --hos | --ho)
249 -host=* | --host=* | --hos=* | --ho=*)
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir="$ac_optarg" ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir="$ac_optarg" ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
267 libdir="$ac_optarg" ;;
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir="$ac_optarg" ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir="$ac_optarg" ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
288 mandir="$ac_optarg" ;;
291 # Obsolete; use --without-fp.
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir="$ac_optarg" ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
314 prefix="$ac_optarg" ;;
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix="$ac_optarg" ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix="$ac_optarg" ;;
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name="$ac_optarg" ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355 sbindir="$ac_optarg" ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366 sharedstatedir="$ac_optarg" ;;
368 -site | --site | --sit)
370 -site=* | --site=* | --sit=*)
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
420 # Obsolete; use --with-x.
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=tree.c
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
522 if test ! -r $srcdir/$ac_unique_file; then
526 ac_srcdir_defaulted=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE; then
540 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 for ac_site_file in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
556 echo "creating cache $cache_file"
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp='$CPP $CPPFLAGS'
563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling=$ac_cv_prog_cc_cross
569 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
578 ac_n= ac_c='\c' ac_t=
586 symbolic_link='ln -s'
589 # Check for bogus environment variables.
590 # Test if LIBRARY_PATH contains the notation for the current directory
591 # since this would lead to problems installing/building glibc.
592 # LIBRARY_PATH contains the current directory if one of the following
594 # - one of the terminals (":" and ";") is the first or last sign
595 # - two terminals occur directly after each other
596 # - the path contains an element with a dot in it
597 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
598 echo "configure:599: checking LIBRARY_PATH variable" >&5
599 case ${LIBRARY_PATH} in
600 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
601 library_path_setting="contains current directory"
604 library_path_setting="ok"
607 echo "$ac_t""$library_path_setting" 1>&6
608 if test "$library_path_setting" != "ok"; then
609 { echo "configure: error:
610 *** LIBRARY_PATH shouldn't contain the current directory when
611 *** building gcc. Please change the environment variable
612 *** and run configure again." 1>&2; exit 1; }
615 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
616 # since this would lead to problems installing/building glibc.
617 # GCC_EXEC_PREFIX contains the current directory if one of the following
619 # - one of the terminals (":" and ";") is the first or last sign
620 # - two terminals occur directly after each other
621 # - the path contains an element with a dot in it
622 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
623 echo "configure:624: checking GCC_EXEC_PREFIX variable" >&5
624 case ${GCC_EXEC_PREFIX} in
625 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
626 gcc_exec_prefix_setting="contains current directory"
629 gcc_exec_prefix_setting="ok"
632 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
633 if test "$gcc_exec_prefix_setting" != "ok"; then
634 { echo "configure: error:
635 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
636 *** building gcc. Please change the environment variable
637 *** and run configure again." 1>&2; exit 1; }
640 # Check for additional parameters
643 # Check whether --with-gnu-ld or --without-gnu-ld was given.
644 if test "${with_gnu_ld+set}" = set; then
645 withval="$with_gnu_ld"
646 gnu_ld_flag="$with_gnu_ld"
652 # With pre-defined ld
653 # Check whether --with-ld or --without-ld was given.
654 if test "${with_ld+set}" = set; then
656 DEFAULT_LINKER="$with_ld"
659 if test x"${DEFAULT_LINKER+set}" = x"set"; then
660 if test ! -x "$DEFAULT_LINKER"; then
661 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
662 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
665 cat >> confdefs.h <<EOF
666 #define DEFAULT_LINKER "$DEFAULT_LINKER"
672 # Check whether --with-gnu-as or --without-gnu-as was given.
673 if test "${with_gnu_as+set}" = set; then
674 withval="$with_gnu_as"
675 gas_flag="$with_gnu_as"
681 # Check whether --with-as or --without-as was given.
682 if test "${with_as+set}" = set; then
684 DEFAULT_ASSEMBLER="$with_as"
687 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
688 if test ! -x "$DEFAULT_ASSEMBLER"; then
689 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
690 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
693 cat >> confdefs.h <<EOF
694 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
700 # Check whether --with-stabs or --without-stabs was given.
701 if test "${with_stabs+set}" = set; then
702 withval="$with_stabs"
710 # Check whether --with-elf or --without-elf was given.
711 if test "${with_elf+set}" = set; then
719 # Specify the local prefix
721 # Check whether --with-local-prefix or --without-local-prefix was given.
722 if test "${with_local_prefix+set}" = set; then
723 withval="$with_local_prefix"
725 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
727 *) local_prefix=$with_local_prefix ;;
732 # Default local prefix if it is empty
733 if test x$local_prefix = x; then
734 local_prefix=/usr/local
737 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
738 # passed in by the toplevel make and thus we'd get different behavior
739 # depending on where we built the sources.
741 # Specify the g++ header file directory
742 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
743 if test "${with_gxx_include_dir+set}" = set; then
744 withval="$with_gxx_include_dir"
746 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
748 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
753 if test x${gcc_gxx_include_dir} = x; then
754 if test x${enable_version_specific_runtime_libs} = xyes; then
755 gcc_gxx_include_dir='${libsubdir}/include/g++'
757 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
758 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
762 # Enable expensive internal checks
763 # Check whether --enable-checking or --disable-checking was given.
764 if test "${enable_checking+set}" = set; then
765 enableval="$enable_checking"
766 case "${enableval}" in
767 yes) cat >> confdefs.h <<\EOF
768 #define ENABLE_CHECKING 1
772 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
777 # Check whether --enable-cpp or --disable-cpp was given.
778 if test "${enable_cpp+set}" = set; then
779 enableval="$enable_cpp"
786 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
787 if test "${with_cpp_install_dir+set}" = set; then
788 withval="$with_cpp_install_dir"
789 if test x$withval = xyes; then
790 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
791 elif test x$withval != xno; then
792 cpp_install_dir=$withval
797 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
799 # Check whether --enable-cpplib or --disable-cpplib was given.
800 if test "${enable_cpplib+set}" = set; then
801 enableval="$enable_cpplib"
802 if test x$enable_cpplib != xno; then
808 # Link cpplib into the compiler proper, for C/C++/ObjC.
809 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
810 if test "${enable_c_cpplib+set}" = set; then
811 enableval="$enable_c_cpplib"
812 if test x$enable_c_cpplib != xno; then
813 extra_c_objs="${extra_c_objs} libcpp.a"
814 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
815 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
821 # Enable Multibyte Characters for C/C++
822 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
823 if test "${enable_c_mbchar+set}" = set; then
824 enableval="$enable_c_mbchar"
825 if test x$enable_c_mbchar != xno; then
826 extra_c_flags=-DMULTIBYTE_CHARS=1
831 # Disable fast fixincludes
832 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
833 if test "${enable_fast_fixincludes+set}" = set; then
834 enableval="$enable_fast_fixincludes"
835 if test x$enable_fast_fixincludes = xno ; then
836 cp $srcdir/fixincludes ./fixinc.sh
841 # Enable Haifa scheduler.
842 # Check whether --enable-haifa or --disable-haifa was given.
843 if test "${enable_haifa+set}" = set; then
844 enableval="$enable_haifa"
850 # Pass with no value to take the default
851 # Pass with a value to specify a thread package
852 # Check whether --enable-threads or --disable-threads was given.
853 if test "${enable_threads+set}" = set; then
854 enableval="$enable_threads"
855 if test x$enable_threads = xno; then
863 enable_threads_flag=$enable_threads
864 # Check if a valid thread package
865 case x${enable_threads_flag} in
868 target_thread_file='single'
872 target_thread_file=''
874 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
875 xsolaris | xwin32 | xdce | xvxworks)
876 target_thread_file=$enable_threads_flag
879 echo "$enable_threads is an unknown thread package" 1>&2
884 # Check whether --enable-objc-gc or --disable-objc-gc was given.
885 if test "${enable_objc_gc+set}" = set; then
886 enableval="$enable_objc_gc"
887 if [ x$enable_objc_gc = xno ]; then
897 # Check whether --enable-java-gc or --disable-java-gc was given.
898 if test "${enable_java_gc+set}" = set; then
899 enableval="$enable_java_gc"
907 # Check whether --with-dwarf2 or --without-dwarf2 was given.
908 if test "${with_dwarf2+set}" = set; then
909 withval="$with_dwarf2"
910 dwarf2="$with_dwarf2"
916 # Determine the host, build, and target systems
918 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
919 if test -f $ac_dir/install-sh; then
921 ac_install_sh="$ac_aux_dir/install-sh -c"
923 elif test -f $ac_dir/install.sh; then
925 ac_install_sh="$ac_aux_dir/install.sh -c"
929 if test -z "$ac_aux_dir"; then
930 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
932 ac_config_guess=$ac_aux_dir/config.guess
933 ac_config_sub=$ac_aux_dir/config.sub
934 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
937 # Do some error checking and defaulting for the host and target type.
939 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
942 # 1. You are not allowed to specify --host, --target, and nonopt at the
944 # 2. Host defaults to nonopt.
945 # 3. If nonopt is not specified, then host defaults to the current host,
946 # as determined by config.guess.
947 # 4. Target and build default to nonopt.
948 # 5. If nonopt is not specified, then target and build default to host.
950 # The aliases save the names the user supplied, while $host etc.
951 # will get canonicalized.
952 case $host---$target---$nonopt in
953 NONE---*---* | *---NONE---* | *---*---NONE) ;;
954 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
958 # Make sure we can run config.sub.
959 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
960 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
963 echo $ac_n "checking host system type""... $ac_c" 1>&6
964 echo "configure:965: checking host system type" >&5
967 case "$host_alias" in
971 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
972 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
974 *) host_alias=$nonopt ;;
978 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
979 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
982 echo "$ac_t""$host" 1>&6
984 echo $ac_n "checking target system type""... $ac_c" 1>&6
985 echo "configure:986: checking target system type" >&5
988 case "$target_alias" in
991 NONE) target_alias=$host_alias ;;
992 *) target_alias=$nonopt ;;
996 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
997 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
998 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
999 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1000 echo "$ac_t""$target" 1>&6
1002 echo $ac_n "checking build system type""... $ac_c" 1>&6
1003 echo "configure:1004: checking build system type" >&5
1006 case "$build_alias" in
1009 NONE) build_alias=$host_alias ;;
1010 *) build_alias=$nonopt ;;
1014 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1015 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1016 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1017 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1018 echo "$ac_t""$build" 1>&6
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1023 program_prefix=${target_alias}-
1026 # Find the native compiler
1027 # Extract the first word of "gcc", so it can be a program name with args.
1028 set dummy gcc; ac_word=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 if test -n "$CC"; then
1035 ac_cv_prog_CC="$CC" # Let the user override the test.
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1039 for ac_dir in $ac_dummy; do
1040 test -z "$ac_dir" && ac_dir=.
1041 if test -f $ac_dir/$ac_word; then
1050 if test -n "$CC"; then
1051 echo "$ac_t""$CC" 1>&6
1053 echo "$ac_t""no" 1>&6
1056 if test -z "$CC"; then
1057 # Extract the first word of "cc", so it can be a program name with args.
1058 set dummy cc; ac_word=$2
1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1060 echo "configure:1061: checking for $ac_word" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 if test -n "$CC"; then
1065 ac_cv_prog_CC="$CC" # Let the user override the test.
1067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1070 for ac_dir in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir=.
1072 if test -f $ac_dir/$ac_word; then
1073 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1074 ac_prog_rejected=yes
1082 if test $ac_prog_rejected = yes; then
1083 # We found a bogon in the path, so make sure we never use it.
1084 set dummy $ac_cv_prog_CC
1086 if test $# -gt 0; then
1087 # We chose a different compiler from the bogus one.
1088 # However, it has the same basename, so the bogon will be chosen
1089 # first if we set CC to just the basename; use the full file name.
1091 set dummy "$ac_dir/$ac_word" "$@"
1099 if test -n "$CC"; then
1100 echo "$ac_t""$CC" 1>&6
1102 echo "$ac_t""no" 1>&6
1105 if test -z "$CC"; then
1106 case "`uname -s`" in
1108 # Extract the first word of "cl", so it can be a program name with args.
1109 set dummy cl; ac_word=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1115 if test -n "$CC"; then
1116 ac_cv_prog_CC="$CC" # Let the user override the test.
1118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1120 for ac_dir in $ac_dummy; do
1121 test -z "$ac_dir" && ac_dir=.
1122 if test -f $ac_dir/$ac_word; then
1131 if test -n "$CC"; then
1132 echo "$ac_t""$CC" 1>&6
1134 echo "$ac_t""no" 1>&6
1139 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1142 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1143 echo "configure:1144: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1150 cross_compiling=$ac_cv_prog_cc_cross
1152 cat > conftest.$ac_ext << EOF
1154 #line 1155 "configure"
1155 #include "confdefs.h"
1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1160 ac_cv_prog_cc_works=yes
1161 # If we can't run a trivial program, we are probably using a cross compiler.
1162 if (./conftest; exit) 2>/dev/null; then
1163 ac_cv_prog_cc_cross=no
1165 ac_cv_prog_cc_cross=yes
1168 echo "configure: failed program was:" >&5
1169 cat conftest.$ac_ext >&5
1170 ac_cv_prog_cc_works=no
1174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1175 ac_cpp='$CPP $CPPFLAGS'
1176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1178 cross_compiling=$ac_cv_prog_cc_cross
1180 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1181 if test $ac_cv_prog_cc_works = no; then
1182 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1184 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1186 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1187 cross_compiling=$ac_cv_prog_cc_cross
1189 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether we are using GNU C" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.c <<EOF
1199 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1206 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1208 if test $ac_cv_prog_gcc = yes; then
1214 ac_test_CFLAGS="${CFLAGS+set}"
1215 ac_save_CFLAGS="$CFLAGS"
1217 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether ${CC-cc} accepts -g" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 echo 'void f(){}' > conftest.c
1223 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1232 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1233 if test "$ac_test_CFLAGS" = set; then
1234 CFLAGS="$ac_save_CFLAGS"
1235 elif test $ac_cv_prog_cc_g = yes; then
1236 if test "$GCC" = yes; then
1242 if test "$GCC" = yes; then
1250 # If the native compiler is GCC, we can enable warnings even in stage1.
1251 # That's useful for people building cross-compilers, or just running a
1253 if test "x$GCC" = "xyes"; then
1254 stage1_warn_cflags='$(WARN_CFLAGS)'
1256 stage1_warn_cflags=""
1260 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1261 echo "configure:1262: checking whether ${MAKE-make} sets \${MAKE}" >&5
1262 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1263 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 cat > conftestmake <<\EOF
1268 @echo 'ac_maketemp="${MAKE}"'
1270 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1271 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1272 if test -n "$ac_maketemp"; then
1273 eval ac_cv_prog_make_${ac_make}_set=yes
1275 eval ac_cv_prog_make_${ac_make}_set=no
1279 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1280 echo "$ac_t""yes" 1>&6
1283 echo "$ac_t""no" 1>&6
1284 SET_MAKE="MAKE=${MAKE-make}"
1288 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1289 echo "configure:1290: checking whether a default assembler was specified" >&5
1290 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1291 if test x"$gas_flag" = x"no"; then
1292 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1294 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1297 echo "$ac_t""no" 1>&6
1300 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1301 echo "configure:1302: checking whether a default linker was specified" >&5
1302 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1303 if test x"$gnu_ld_flag" = x"no"; then
1304 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1306 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1309 echo "$ac_t""no" 1>&6
1312 # Find some useful tools
1313 for ac_prog in mawk gawk nawk awk
1315 # Extract the first word of "$ac_prog", so it can be a program name with args.
1316 set dummy $ac_prog; ac_word=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test -n "$AWK"; then
1323 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1327 for ac_dir in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_AWK="$ac_prog"
1337 AWK="$ac_cv_prog_AWK"
1338 if test -n "$AWK"; then
1339 echo "$ac_t""$AWK" 1>&6
1341 echo "$ac_t""no" 1>&6
1344 test -n "$AWK" && break
1347 # Extract the first word of "flex", so it can be a program name with args.
1348 set dummy flex; ac_word=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 if test -n "$LEX"; then
1355 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1359 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_LEX="flex"
1367 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1370 LEX="$ac_cv_prog_LEX"
1371 if test -n "$LEX"; then
1372 echo "$ac_t""$LEX" 1>&6
1374 echo "$ac_t""no" 1>&6
1377 if test -z "$LEXLIB"
1383 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1384 echo "configure:1385: checking for yywrap in -l$ac_lib" >&5
1385 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 ac_save_LIBS="$LIBS"
1390 LIBS="-l$ac_lib $LIBS"
1391 cat > conftest.$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1394 /* Override any gcc2 internal prototype to avoid an error. */
1395 /* We use char because int might match the return type of a gcc2
1396 builtin and then its argument prototype would still apply. */
1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1405 eval "ac_cv_lib_$ac_lib_var=yes"
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1410 eval "ac_cv_lib_$ac_lib_var=no"
1413 LIBS="$ac_save_LIBS"
1416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1417 echo "$ac_t""yes" 1>&6
1420 echo "$ac_t""no" 1>&6
1425 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1426 echo "configure:1427: checking whether ln works" >&5
1427 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 rm -f conftestdata_t
1431 echo >conftestdata_f
1432 if ln conftestdata_f conftestdata_t 2>/dev/null
1436 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1438 gcc_cv_prog_LN="ln -s"
1443 rm -f conftestdata_f conftestdata_t
1446 LN="$gcc_cv_prog_LN"
1447 if test "$gcc_cv_prog_LN" = "ln"; then
1448 echo "$ac_t""yes" 1>&6
1450 if test "$gcc_cv_prog_LN" = "ln -s"; then
1451 echo "$ac_t""no, using ln -s" 1>&6
1453 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1457 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1458 echo "configure:1459: checking whether ln -s works" >&5
1459 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 rm -f conftestdata_t
1463 echo >conftestdata_f
1464 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1466 gcc_cv_prog_LN_S="ln -s"
1468 if ln conftestdata_f conftestdata_t 2>/dev/null
1475 rm -f conftestdata_f conftestdata_t
1478 LN_S="$gcc_cv_prog_LN_S"
1479 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1480 echo "$ac_t""yes" 1>&6
1482 if test "$gcc_cv_prog_LN_S" = "ln"; then
1483 echo "$ac_t""no, using ln" 1>&6
1485 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1489 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1490 echo "configure:1491: checking for volatile" >&5
1491 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 cat > conftest.$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1502 if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1504 gcc_cv_c_volatile=yes
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1509 gcc_cv_c_volatile=no
1514 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1515 if test $gcc_cv_c_volatile = yes ; then
1516 cat >> confdefs.h <<\EOF
1517 #define HAVE_VOLATILE 1
1522 # Extract the first word of "ranlib", so it can be a program name with args.
1523 set dummy ranlib; ac_word=$2
1524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1525 echo "configure:1526: checking for $ac_word" >&5
1526 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 if test -n "$RANLIB"; then
1530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1534 for ac_dir in $ac_dummy; do
1535 test -z "$ac_dir" && ac_dir=.
1536 if test -f $ac_dir/$ac_word; then
1537 ac_cv_prog_RANLIB="ranlib"
1542 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1545 RANLIB="$ac_cv_prog_RANLIB"
1546 if test -n "$RANLIB"; then
1547 echo "$ac_t""$RANLIB" 1>&6
1549 echo "$ac_t""no" 1>&6
1552 for ac_prog in 'bison -y' byacc
1554 # Extract the first word of "$ac_prog", so it can be a program name with args.
1555 set dummy $ac_prog; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5
1558 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 if test -n "$YACC"; then
1562 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1566 for ac_dir in $ac_dummy; do
1567 test -z "$ac_dir" && ac_dir=.
1568 if test -f $ac_dir/$ac_word; then
1569 ac_cv_prog_YACC="$ac_prog"
1576 YACC="$ac_cv_prog_YACC"
1577 if test -n "$YACC"; then
1578 echo "$ac_t""$YACC" 1>&6
1580 echo "$ac_t""no" 1>&6
1583 test -n "$YACC" && break
1585 test -n "$YACC" || YACC="yacc"
1587 # Find a good install program. We prefer a C program (faster),
1588 # so one script is as good as another. But avoid the broken or
1589 # incompatible versions:
1590 # SysV /etc/install, /usr/sbin/install
1591 # SunOS /usr/etc/install
1592 # IRIX /sbin/install
1594 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1595 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1596 # ./install, which can be erroneously created by make from ./install.sh.
1597 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1598 echo "configure:1599: checking for a BSD compatible install" >&5
1599 if test -z "$INSTALL"; then
1600 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1604 for ac_dir in $PATH; do
1605 # Account for people who put trailing slashes in PATH elements.
1607 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1609 # OSF1 and SCO ODT 3.0 have their own names for install.
1610 for ac_prog in ginstall scoinst install; do
1611 if test -f $ac_dir/$ac_prog; then
1612 if test $ac_prog = install &&
1613 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1614 # AIX install. It has an incompatible calling convention.
1615 # OSF/1 installbsd also uses dspmsg, but is usable.
1618 ac_cv_path_install="$ac_dir/$ac_prog -c"
1629 if test "${ac_cv_path_install+set}" = set; then
1630 INSTALL="$ac_cv_path_install"
1632 # As a last resort, use the slow shell script. We don't cache a
1633 # path for INSTALL within a source directory, because that will
1634 # break other packages using the cache if that directory is
1635 # removed, or if the path is relative.
1636 INSTALL="$ac_install_sh"
1639 echo "$ac_t""$INSTALL" 1>&6
1641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1642 # It thinks the first close brace ends the variable substitution.
1643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1645 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1648 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1649 echo "configure:1650: checking how to run the C preprocessor" >&5
1650 # On Suns, sometimes $CPP names a directory.
1651 if test -n "$CPP" && test -d "$CPP"; then
1654 if test -z "$CPP"; then
1655 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 # This must be in double quotes, not single quotes, because CPP may get
1659 # substituted into the Makefile and "${CC-cc}" will confuse make.
1661 # On the NeXT, cc -E runs the code through the compiler's parser,
1662 # not just through cpp.
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670 { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1672 if test -z "$ac_err"; then
1676 echo "configure: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1679 CPP="${CC-cc} -E -traditional-cpp"
1680 cat > conftest.$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1687 { (eval echo configure:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1689 if test -z "$ac_err"; then
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1696 CPP="${CC-cc} -nologo -E"
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704 { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1706 if test -z "$ac_err"; then
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1720 ac_cv_prog_CPP="$CPP"
1722 CPP="$ac_cv_prog_CPP"
1724 ac_cv_prog_CPP="$CPP"
1726 echo "$ac_t""$CPP" 1>&6
1728 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1729 echo "configure:1730: checking for ANSI C header files" >&5
1730 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 cat > conftest.$ac_ext <<EOF
1734 #line 1735 "configure"
1735 #include "confdefs.h"
1741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1742 { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1744 if test -z "$ac_err"; then
1746 ac_cv_header_stdc=yes
1749 echo "configure: failed program was:" >&5
1750 cat conftest.$ac_ext >&5
1752 ac_cv_header_stdc=no
1756 if test $ac_cv_header_stdc = yes; then
1757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1758 cat > conftest.$ac_ext <<EOF
1759 #line 1760 "configure"
1760 #include "confdefs.h"
1763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1764 egrep "memchr" >/dev/null 2>&1; then
1768 ac_cv_header_stdc=no
1774 if test $ac_cv_header_stdc = yes; then
1775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1782 egrep "free" >/dev/null 2>&1; then
1786 ac_cv_header_stdc=no
1792 if test $ac_cv_header_stdc = yes; then
1793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1794 if test "$cross_compiling" = yes; then
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1801 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1802 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1804 int main () { int i; for (i = 0; i < 256; i++)
1805 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1809 if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1813 echo "configure: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1816 ac_cv_header_stdc=no
1824 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1825 if test $ac_cv_header_stdc = yes; then
1826 cat >> confdefs.h <<\EOF
1827 #define STDC_HEADERS 1
1832 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1833 echo "configure:1834: checking whether time.h and sys/time.h may both be included" >&5
1834 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1840 #include <sys/types.h>
1841 #include <sys/time.h>
1847 if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1849 ac_cv_header_time=yes
1851 echo "configure: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1854 ac_cv_header_time=no
1859 echo "$ac_t""$ac_cv_header_time" 1>&6
1860 if test $ac_cv_header_time = yes; then
1861 cat >> confdefs.h <<\EOF
1862 #define TIME_WITH_SYS_TIME 1
1867 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1868 echo "configure:1869: checking whether string.h and strings.h may both be included" >&5
1869 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1876 #include <strings.h>
1881 if { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1883 gcc_cv_header_string=yes
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 gcc_cv_header_string=no
1893 echo "$ac_t""$gcc_cv_header_string" 1>&6
1894 if test $gcc_cv_header_string = yes; then
1895 cat >> confdefs.h <<\EOF
1896 #define STRING_WITH_STRINGS 1
1901 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1902 echo "configure:1903: checking for sys/wait.h that is POSIX.1 compatible" >&5
1903 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 #include <sys/types.h>
1910 #include <sys/wait.h>
1912 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1915 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1920 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1923 if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1925 ac_cv_header_sys_wait_h=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1930 ac_cv_header_sys_wait_h=no
1935 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1936 if test $ac_cv_header_sys_wait_h = yes; then
1937 cat >> confdefs.h <<\EOF
1938 #define HAVE_SYS_WAIT_H 1
1943 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
1945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_hdr" >&5
1948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1961 eval "ac_cv_header_$ac_safe=yes"
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1967 eval "ac_cv_header_$ac_safe=no"
1971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1974 cat >> confdefs.h <<EOF
1975 #define $ac_tr_hdr 1
1979 echo "$ac_t""no" 1>&6
1984 # Check for thread headers.
1985 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1987 echo "configure:1988: checking for thread.h" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1997 { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1999 if test -z "$ac_err"; then
2001 eval "ac_cv_header_$ac_safe=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2007 eval "ac_cv_header_$ac_safe=no"
2011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2015 echo "$ac_t""no" 1>&6
2019 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2020 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2021 echo "configure:2022: checking for pthread.h" >&5
2022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 #include <pthread.h>
2030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2031 { (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2033 if test -z "$ac_err"; then
2035 eval "ac_cv_header_$ac_safe=yes"
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2041 eval "ac_cv_header_$ac_safe=no"
2045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2046 echo "$ac_t""yes" 1>&6
2049 echo "$ac_t""no" 1>&6
2054 # See if GNAT has been installed
2055 # Extract the first word of "gnatbind", so it can be a program name with args.
2056 set dummy gnatbind; ac_word=$2
2057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2058 echo "configure:2059: checking for $ac_word" >&5
2059 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2062 if test -n "$gnat"; then
2063 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2067 for ac_dir in $ac_dummy; do
2068 test -z "$ac_dir" && ac_dir=.
2069 if test -f $ac_dir/$ac_word; then
2070 ac_cv_prog_gnat="yes"
2075 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2078 gnat="$ac_cv_prog_gnat"
2079 if test -n "$gnat"; then
2080 echo "$ac_t""$gnat" 1>&6
2082 echo "$ac_t""no" 1>&6
2086 # See if the system preprocessor understands the ANSI C preprocessor
2087 # stringification operator.
2088 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2089 echo "configure:2090: checking whether cpp understands the stringify operator" >&5
2090 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2099 char *test = S(foo);
2102 if { (eval echo configure:2103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2104 gcc_cv_c_have_stringify=yes
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2109 gcc_cv_c_have_stringify=no
2114 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2115 if test $gcc_cv_c_have_stringify = yes; then
2116 cat >> confdefs.h <<\EOF
2117 #define HAVE_CPP_STRINGIFY 1
2122 # Use <inttypes.h> only if it exists,
2123 # doesn't clash with <sys/types.h>, and declares intmax_t.
2124 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2125 echo "configure:2126: checking for inttypes.h" >&5
2126 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/types.h>
2133 #include <inttypes.h>
2138 if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2140 gcc_cv_header_inttypes_h=yes
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2145 gcc_cv_header_inttypes_h=no
2150 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2151 if test $gcc_cv_header_inttypes_h = yes; then
2152 cat >> confdefs.h <<\EOF
2153 #define HAVE_INTTYPES_H 1
2158 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2159 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2160 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2164 echo "configure:2165: checking for $ac_func" >&5
2165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 /* System header to define __stub macros and hopefully few prototypes,
2172 which can conflict with char $ac_func(); below. */
2174 /* Override any gcc2 internal prototype to avoid an error. */
2175 /* We use char because int might match the return type of a gcc2
2176 builtin and then its argument prototype would still apply. */
2181 /* The GNU C library defines this for functions which it implements
2182 to always fail with ENOSYS. Some functions are actually named
2183 something starting with __ and the normal name is an alias. */
2184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2192 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2194 eval "ac_cv_func_$ac_func=yes"
2196 echo "configure: failed program was:" >&5
2197 cat conftest.$ac_ext >&5
2199 eval "ac_cv_func_$ac_func=no"
2204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2205 echo "$ac_t""yes" 1>&6
2206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2207 cat >> confdefs.h <<EOF
2208 #define $ac_tr_func 1
2212 echo "$ac_t""no" 1>&6
2217 # Make sure wchar_t is available
2218 #AC_CHECK_TYPE(wchar_t, unsigned int)
2220 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2221 echo "configure:2222: checking for vprintf" >&5
2222 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 cat > conftest.$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2228 /* System header to define __stub macros and hopefully few prototypes,
2229 which can conflict with char vprintf(); below. */
2231 /* Override any gcc2 internal prototype to avoid an error. */
2232 /* We use char because int might match the return type of a gcc2
2233 builtin and then its argument prototype would still apply. */
2238 /* The GNU C library defines this for functions which it implements
2239 to always fail with ENOSYS. Some functions are actually named
2240 something starting with __ and the normal name is an alias. */
2241 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2249 if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2251 eval "ac_cv_func_vprintf=yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2256 eval "ac_cv_func_vprintf=no"
2261 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2262 echo "$ac_t""yes" 1>&6
2263 cat >> confdefs.h <<\EOF
2264 #define HAVE_VPRINTF 1
2268 echo "$ac_t""no" 1>&6
2271 if test "$ac_cv_func_vprintf" != yes; then
2272 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2273 echo "configure:2274: checking for _doprnt" >&5
2274 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 /* System header to define __stub macros and hopefully few prototypes,
2281 which can conflict with char _doprnt(); below. */
2283 /* Override any gcc2 internal prototype to avoid an error. */
2284 /* We use char because int might match the return type of a gcc2
2285 builtin and then its argument prototype would still apply. */
2290 /* The GNU C library defines this for functions which it implements
2291 to always fail with ENOSYS. Some functions are actually named
2292 something starting with __ and the normal name is an alias. */
2293 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2301 if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303 eval "ac_cv_func__doprnt=yes"
2305 echo "configure: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2308 eval "ac_cv_func__doprnt=no"
2313 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2314 echo "$ac_t""yes" 1>&6
2315 cat >> confdefs.h <<\EOF
2316 #define HAVE_DOPRNT 1
2320 echo "$ac_t""no" 1>&6
2327 if test $ac_cv_func_vprintf != yes ; then
2329 if test $ac_cv_func__doprnt != yes ; then
2336 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether the printf functions support %p" >&5
2338 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 if test "$cross_compiling" = yes; then
2342 gcc_cv_func_printf_ptr=no
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2352 char *p = buf, *q = NULL;
2353 sprintf(buf, "%p", p);
2354 sscanf(buf, "%p", &q);
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2360 gcc_cv_func_printf_ptr=yes
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2365 gcc_cv_func_printf_ptr=no
2370 rm -f core core.* *.core
2373 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2374 if test $gcc_cv_func_printf_ptr = yes ; then
2375 cat >> confdefs.h <<\EOF
2376 #define HAVE_PRINTF_PTR 1
2384 # Under some versions of uwin, vfork is notoriously buggy and the test
2385 # can hang configure; on other versions, vfork exists just as a stub.
2386 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2387 ac_cv_func_vfork_works=no
2390 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2391 echo "configure:2392: checking for pid_t" >&5
2392 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 #include <sys/types.h>
2404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2405 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2407 ac_cv_type_pid_t=yes
2415 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2416 if test $ac_cv_type_pid_t = no; then
2417 cat >> confdefs.h <<\EOF
2423 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2424 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2425 echo "configure:2426: checking for vfork.h" >&5
2426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2435 { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2437 if test -z "$ac_err"; then
2439 eval "ac_cv_header_$ac_safe=yes"
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2445 eval "ac_cv_header_$ac_safe=no"
2449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2450 echo "$ac_t""yes" 1>&6
2451 cat >> confdefs.h <<\EOF
2452 #define HAVE_VFORK_H 1
2456 echo "$ac_t""no" 1>&6
2459 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2460 echo "configure:2461: checking for working vfork" >&5
2461 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 if test "$cross_compiling" = yes; then
2465 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2466 echo "configure:2467: checking for vfork" >&5
2467 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 /* System header to define __stub macros and hopefully few prototypes,
2474 which can conflict with char vfork(); below. */
2476 /* Override any gcc2 internal prototype to avoid an error. */
2477 /* We use char because int might match the return type of a gcc2
2478 builtin and then its argument prototype would still apply. */
2483 /* The GNU C library defines this for functions which it implements
2484 to always fail with ENOSYS. Some functions are actually named
2485 something starting with __ and the normal name is an alias. */
2486 #if defined (__stub_vfork) || defined (__stub___vfork)
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496 eval "ac_cv_func_vfork=yes"
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 eval "ac_cv_func_vfork=no"
2506 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2507 echo "$ac_t""yes" 1>&6
2510 echo "$ac_t""no" 1>&6
2513 ac_cv_func_vfork_works=$ac_cv_func_vfork
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Thanks to Paul Eggert for this test. */
2520 #include <sys/types.h>
2521 #include <sys/stat.h>
2522 #ifdef HAVE_UNISTD_H
2528 /* On some sparc systems, changes by the child to local and incoming
2529 argument registers are propagated back to the parent.
2530 The compiler is told about this with #include <vfork.h>,
2531 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2532 Test for this by using a static variable whose address
2533 is put into a register that is clobbered by the vfork. */
2536 sparc_address_test (int arg)
2538 sparc_address_test (arg) int arg;
2556 pid_t parent = getpid ();
2559 sparc_address_test ();
2564 /* Here is another test for sparc vfork register problems.
2565 This test uses lots of local variables, at least
2566 as many local variables as main has allocated so far
2567 including compiler temporaries. 4 locals are enough for
2568 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2569 A buggy compiler should reuse the register of parent
2570 for one of the local variables, since it will think that
2571 parent can't possibly be used any more in this routine.
2572 Assigning to the local variable will thus munge parent
2573 in the parent process. */
2575 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2576 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2577 /* Convince the compiler that p..p7 are live; otherwise, it might
2578 use the same hardware register for all 8 local variables. */
2579 if (p != p1 || p != p2 || p != p3 || p != p4
2580 || p != p5 || p != p6 || p != p7)
2583 /* On some systems (e.g. IRIX 3.3),
2584 vfork doesn't separate parent from child file descriptors.
2585 If the child closes a descriptor before it execs or exits,
2586 this munges the parent's descriptor as well.
2587 Test for this by closing stdout in the child. */
2588 _exit(close(fileno(stdout)) != 0);
2593 while (wait(&status) != child)
2596 /* Was there some problem with vforking? */
2599 /* Did the child fail? (This shouldn't happen.) */
2602 /* Did the vfork/compiler bug occur? */
2603 || parent != getpid()
2605 /* Did the file descriptor bug occur? */
2606 || fstat(fileno(stdout), &st) != 0
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2613 ac_cv_func_vfork_works=yes
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 ac_cv_func_vfork_works=no
2625 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2626 if test $ac_cv_func_vfork_works = no; then
2627 cat >> confdefs.h <<\EOF
2634 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2635 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2636 strsignal putc_unlocked fputs_unlocked strstr
2638 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2639 echo "configure:2640: checking whether $ac_func must be declared" >&5
2640 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2648 #ifdef STRING_WITH_STRINGS
2649 # include <string.h>
2650 # include <strings.h>
2652 # ifdef HAVE_STRING_H
2653 # include <string.h>
2655 # ifdef HAVE_STRINGS_H
2656 # include <strings.h>
2660 #ifdef HAVE_STDLIB_H
2663 #ifdef HAVE_UNISTD_H
2667 #define rindex strrchr
2670 #define index strchr
2674 char *(*pfn) = (char *(*)) $ac_func
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 eval "gcc_cv_decl_needed_$ac_func=no"
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2684 eval "gcc_cv_decl_needed_$ac_func=yes"
2689 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2690 echo "$ac_t""yes" 1>&6
2691 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2692 cat >> confdefs.h <<EOF
2693 #define $gcc_tr_decl 1
2697 echo "$ac_t""no" 1>&6
2703 for ac_func in getrlimit setrlimit
2705 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2706 echo "configure:2707: checking whether $ac_func must be declared" >&5
2707 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2715 #ifdef STRING_WITH_STRINGS
2716 # include <string.h>
2717 # include <strings.h>
2719 # ifdef HAVE_STRING_H
2720 # include <string.h>
2722 # ifdef HAVE_STRINGS_H
2723 # include <strings.h>
2727 #ifdef HAVE_STDLIB_H
2730 #ifdef HAVE_UNISTD_H
2734 #define rindex strrchr
2737 #define index strchr
2739 #include <sys/types.h>
2740 #ifdef HAVE_SYS_RESOURCE_H
2741 #include <sys/resource.h>
2745 char *(*pfn) = (char *(*)) $ac_func
2748 if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2750 eval "gcc_cv_decl_needed_$ac_func=no"
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2755 eval "gcc_cv_decl_needed_$ac_func=yes"
2760 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2763 cat >> confdefs.h <<EOF
2764 #define $gcc_tr_decl 1
2768 echo "$ac_t""no" 1>&6
2774 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2775 echo "configure:2776: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2776 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 #include <sys/types.h>
2784 /* NetBSD declares sys_siglist in unistd.h. */
2785 #ifdef HAVE_UNISTD_H
2789 char *msg = *(sys_siglist + 1);
2792 if { (eval echo configure:2793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2794 ac_cv_decl_sys_siglist=yes
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2799 ac_cv_decl_sys_siglist=no
2804 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2805 if test $ac_cv_decl_sys_siglist = yes; then
2806 cat >> confdefs.h <<\EOF
2807 #define SYS_SIGLIST_DECLARED 1
2813 # mkdir takes a single argument on some systems.
2814 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2815 echo "configure:2816: checking if mkdir takes one argument" >&5
2816 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2823 #include <sys/types.h>
2824 #ifdef HAVE_SYS_STAT_H
2825 # include <sys/stat.h>
2827 #ifdef HAVE_UNISTD_H
2828 # include <unistd.h>
2830 #ifdef HAVE_DIRECT_H
2831 # include <direct.h>
2837 if { (eval echo configure:2838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2839 gcc_cv_mkdir_takes_one_arg=no
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2844 gcc_cv_mkdir_takes_one_arg=yes
2849 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2850 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2851 cat >> confdefs.h <<\EOF
2852 #define MKDIR_TAKES_ONE_ARG 1
2866 build_install_headers_dir=install-headers-tar
2871 host_truncate_target=
2874 # Decode the host machine, then the target machine.
2875 # For the host machine, we save the xm_file variable as host_xm_file;
2876 # then we decode the target machine and forget everything else
2877 # that came from the host machine.
2878 for machine in $build $host $target; do
2892 # Set this to force installation and use of collect2.
2894 # Set this to override the default target model.
2896 # Set this to control how the header file directory is installed.
2897 install_headers_dir=install-headers-tar
2898 # Set this to a non-empty list of args to pass to cpp if the target
2899 # wants its .md file passed through cpp.
2901 # Set this if directory names should be truncated to 14 characters.
2903 # Set this if gdb needs a dir command with `dirname $out_file`
2904 gdb_needs_out_file_path=
2905 # Set this if the build machine requires executables to have a
2908 # Set this to control which thread package will be used.
2910 # Reinitialize these from the flag values every loop pass, since some
2911 # configure entries modify them.
2913 gnu_ld="$gnu_ld_flag"
2914 enable_threads=$enable_threads_flag
2916 # Set default cpu_type, tm_file and xm_file so it can be updated in
2917 # each machine entry.
2918 cpu_type=`echo $machine | sed 's/-.*$//'`
2952 tm_file=${cpu_type}/${cpu_type}.h
2953 xm_file=${cpu_type}/xm-${cpu_type}.h
2955 # Common parts for linux-gnu and openbsd systems
2958 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2961 tm_file=${cpu_type}/openbsd.h
2962 tmake_file="t-libc-ok t-openbsd"
2963 # avoid surprises, always provide an xm-openbsd file
2964 xm_file=${cpu_type}/xm-openbsd.h
2965 # don't depend on processor x-fragments as well
2967 if test x$enable_threads = xyes; then
2969 tmake_file="${tmake_file} t-openbsd-thread"
2975 # Support site-specific machine types.
2977 cpu_type=`echo $machine | sed -e 's/-.*//'`
2978 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2979 xm_file=${cpu_type}/xm-$rest.h
2980 tm_file=${cpu_type}/$rest.h
2981 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2982 then xmake_file=${cpu_type}/x-$rest; \
2985 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2986 then tmake_file=${cpu_type}/t-$rest; \
2992 a29k-*-bsd* | a29k-*-sym1*)
2993 tm_file="${tm_file} a29k/unix.h"
2995 xmake_file=a29k/x-unix
2998 a29k-*-udi | a29k-*-coff)
2999 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3000 tmake_file=a29k/t-a29kbare
3003 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3004 tmake_file=a29k/t-vx29k
3005 extra_parts="crtbegin.o crtend.o"
3006 thread_file='vxworks'
3008 a29k-*-*) # Default a29k environment.
3012 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3014 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3015 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3017 # GAS + IEEE_CONFORMANT
3018 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3020 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3021 xmake_file="x-interix alpha/t-pe"
3022 tmake_file="alpha/t-interix"
3023 if test x$enable_threads = xyes ; then
3026 if test x$stabs = xyes ; then
3027 tm_file="${tm_file} dbxcoff.h"
3029 #prefix='$$INTERIX_ROOT'/usr/contrib
3030 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3032 alpha*-*-linux-gnuecoff*)
3033 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3034 target_cpu_default="MASK_GAS"
3039 alpha*-*-linux-gnulibc1*)
3040 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3041 target_cpu_default="MASK_GAS"
3042 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
3043 extra_parts="crtbegin.o crtend.o"
3046 if test x$enable_threads = xyes; then
3050 alpha*-*-linux-gnu*)
3051 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3052 target_cpu_default="MASK_GAS"
3053 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
3054 extra_parts="crtbegin.o crtend.o"
3057 if test x$enable_threads = xyes; then
3062 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3063 target_cpu_default="MASK_GAS"
3064 tmake_file="alpha/t-crtbe"
3065 extra_parts="crtbegin.o crtend.o"
3071 # default x-alpha is only appropriate for dec-osf.
3072 target_cpu_default="MASK_GAS"
3076 if test x$stabs = xyes
3078 tm_file="${tm_file} dbx.h"
3080 if test x$gas != xyes
3082 extra_passes="mips-tfile mips-tdump"
3087 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3090 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3093 tm_file="${tm_file} alpha/osf.h"
3094 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3095 # a broken tar, so we use cpio instead.
3096 install_headers_dir=install-headers-cpio
3100 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3101 target_cpu_default=MASK_SUPPORT_ARCH
3106 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3109 extra_passes="mips-tfile mips-tdump"
3112 thread_file='vxworks'
3115 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3116 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3117 tmake_file=t-libc-ok
3118 xmake_file=winnt/x-winnt
3119 extra_host_objs=oldnames.o
3120 extra_gcc_objs="spawnv.o oldnames.o"
3121 if test x$gnu_ld != xyes
3123 extra_programs=ld.exe
3125 if test x$enable_threads = xyes; then
3131 xm_file="${xm_file} alpha/xm-vms.h"
3132 tmake_file=alpha/t-vms
3135 extra_parts="crtinit.o crtfini.o"
3137 arm-*-coff* | armel-*-coff*)
3139 tmake_file=arm/t-bare
3143 tmake_file=arm/t-bare
3144 thread_file='vxworks'
3146 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3147 tm_file=arm/riscix1-1.h
3150 arm-*-riscix*) # Acorn RISC machine
3151 if test x$gas = xyes
3153 tm_file=arm/rix-gas.h
3155 tm_file=arm/riscix.h
3157 xmake_file=arm/x-riscix
3158 tmake_file=arm/t-riscix
3161 arm-semi-aout | armel-semi-aout)
3163 tmake_file=arm/t-semi
3165 arm-semi-aof | armel-semi-aof)
3166 tm_file=arm/semiaof.h
3167 tmake_file=arm/t-semiaof
3170 tm_file=arm/netbsd.h
3171 xm_file="arm/xm-netbsd.h ${xm_file}"
3172 tmake_file="t-netbsd arm/t-netbsd"
3175 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3178 tm_file=arm/linux-aout.h
3179 tmake_file=arm/t-linux
3182 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3183 xm_file=arm/xm-linux.h
3187 tm_file=arm/linux-elf26.h
3190 tm_file=arm/linux-elf.h
3193 tmake_file="t-linux arm/t-linux"
3194 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3196 case x${enable_threads} in
3197 x | xyes | xpthreads | xposix)
3204 tmake_file=arm/t-bare
3207 tm_file=arm/ecos-elf.h
3208 tmake_file=arm/t-elf
3211 tm_file=arm/unknown-elf.h
3212 tmake_file=arm/t-arm-elf
3215 tm_file=arm/unknown-elf-oabi.h
3216 tmake_file=arm/t-arm-elf
3218 c1-convex-*) # Convex C1
3219 target_cpu_default=1
3222 c2-convex-*) # Convex C2
3223 target_cpu_default=2
3227 target_cpu_default=4
3231 target_cpu_default=8
3235 target_cpu_default=16
3240 tmake_file=c4x/t-c4x
3242 clipper-intergraph-clix*)
3243 tm_file="${tm_file} svr3.h clipper/clix.h"
3244 xm_file=clipper/xm-clix.h
3245 xmake_file=clipper/x-clix
3246 extra_headers=va-clipper.h
3247 extra_parts="crtbegin.o crtend.o"
3248 install_headers_dir=install-headers-cpio
3255 # This hasn't been upgraded to GCC 2.
3256 # fx80-alliant-*) # Alliant FX/80
3262 target_cpu_default="MASK_PA_11"
3263 tmake_file=pa/t-openbsd
3266 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3267 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3268 xm_file=pa/xm-papro.h
3272 target_cpu_default="MASK_PA_11"
3273 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3277 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3278 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3279 xm_file=pa/xm-papro.h
3283 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3287 tm_file="${tm_file} pa/som.h"
3288 target_cpu_default="MASK_PA_11"
3292 tm_file="${tm_file} pa/som.h"
3296 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3297 xm_file=pa/xm-pahpux.h
3298 xmake_file=pa/x-pa-hpux
3299 if test x$gas = xyes
3301 tm_file="${tm_file} pa/gas.h"
3303 install_headers_dir=install-headers-cpio
3306 hppa1.0-*-hpux8.0[0-2]*)
3307 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3308 xm_file=pa/xm-pahpux.h
3309 xmake_file=pa/x-pa-hpux
3310 if test x$gas = xyes
3312 tm_file="${tm_file} pa/pa-gas.h"
3314 tm_file="pa/pa-oldas.h ${tm_file}"
3316 install_headers_dir=install-headers-cpio
3319 hppa1.1-*-hpux8.0[0-2]*)
3320 target_cpu_default="MASK_PA_11"
3321 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3322 xm_file=pa/xm-pahpux.h
3323 xmake_file=pa/x-pa-hpux
3324 if test x$gas = xyes
3326 tm_file="${tm_file} pa/pa-gas.h"
3328 tm_file="pa/pa-oldas.h ${tm_file}"
3330 install_headers_dir=install-headers-cpio
3334 target_cpu_default="MASK_PA_11"
3335 tm_file="${tm_file} pa/som.h 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 install_headers_dir=install-headers-cpio
3346 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3347 xm_file=pa/xm-pahpux.h
3348 xmake_file=pa/x-pa-hpux
3349 if test x$gas = xyes
3351 tm_file="${tm_file} pa/pa-gas.h"
3353 install_headers_dir=install-headers-cpio
3356 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3357 target_cpu_default="MASK_PA_11"
3358 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3359 xm_file=pa/xm-pahpux.h
3360 xmake_file=pa/x-pa-hpux
3362 if test x$gas = xyes
3364 tm_file="${tm_file} pa/pa-gas.h"
3366 if test x$enable_threads = x; then
3367 enable_threads=$have_pthread_h
3369 if test x$enable_threads = xyes; then
3371 tmake_file="${tmake_file} pa/t-dce-thr"
3373 install_headers_dir=install-headers-cpio
3377 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3378 xm_file=pa/xm-pahpux.h
3379 xmake_file=pa/x-pa-hpux
3381 if test x$gas = xyes
3383 tm_file="${tm_file} pa/pa-gas.h"
3385 if test x$enable_threads = x; then
3386 enable_threads=$have_pthread_h
3388 if test x$enable_threads = xyes; then
3390 tmake_file="${tmake_file} pa/t-dce-thr"
3392 install_headers_dir=install-headers-cpio
3395 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3396 target_cpu_default=1
3397 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3398 xm_file=pa/xm-pahpux.h
3399 xmake_file=pa/x-pa-hpux
3403 tm_file="${tm_file} pa/pa-gas.h"
3405 # if [[ x$enable_threads = x ]]; then
3406 # enable_threads=$have_pthread_h
3408 # if [[ x$enable_threads = xyes ]]; then
3410 # tmake_file="${tmake_file} pa/t-dce-thr"
3412 install_headers_dir=install-headers-cpio
3416 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3417 xm_file=pa/xm-pahpux.h
3418 xmake_file=pa/x-pa-hpux
3421 tm_file="${tm_file} pa/pa-gas.h"
3423 # if [[ x$enable_threads = x ]]; then
3424 # enable_threads=$have_pthread_h
3426 # if [[ x$enable_threads = xyes ]]; then
3428 # tmake_file="${tmake_file} pa/t-dce-thr"
3430 install_headers_dir=install-headers-cpio
3433 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3434 target_cpu_default="MASK_PA_11"
3435 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3436 xm_file=pa/xm-pahpux.h
3437 xmake_file=pa/x-pa-hpux
3438 if test x$gas = xyes
3440 tm_file="${tm_file} pa/pa-gas.h"
3442 install_headers_dir=install-headers-cpio
3446 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3447 xm_file=pa/xm-pahpux.h
3448 xmake_file=pa/x-pa-hpux
3449 if test x$gas = xyes
3451 tm_file="${tm_file} pa/pa-gas.h"
3453 install_headers_dir=install-headers-cpio
3456 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3457 target_cpu_default="MASK_PA_11"
3458 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3459 xm_file=pa/xm-pahpux.h
3460 xmake_file=pa/x-pa-hpux
3461 if test x$gas = xyes
3463 tm_file="${tm_file} pa/pa-gas.h"
3465 install_headers_dir=install-headers-cpio
3469 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3470 xm_file=pa/xm-pahpux.h
3471 xmake_file=pa/x-pa-hpux
3472 if test x$gas = xyes
3474 tm_file="${tm_file} pa/pa-gas.h"
3476 install_headers_dir=install-headers-cpio
3480 tm_file="${tm_file} elfos.h pa/elf.h"
3481 target_cpu_default="MASK_PA_11"
3486 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3487 if test x$gas = xyes
3489 tm_file=i386/aix386.h
3490 extra_parts="crtbegin.o crtend.o"
3491 tmake_file=i386/t-crtstuff
3493 tm_file=i386/aix386ng.h
3496 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3498 xmake_file=i386/x-aix
3500 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3501 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3502 xm_defines="USG POSIX SMALL_ARG_MAX"
3503 xmake_file=i386/x-ncr3000
3504 if test x$stabs = xyes -a x$gas = xyes
3506 tm_file=i386/sysv4gdb.h
3508 tm_file=i386/sysv4.h
3510 extra_parts="crtbegin.o crtend.o"
3511 tmake_file=i386/t-crtpic
3515 xm_file=i386/xm-next.h
3516 tmake_file=i386/t-next
3517 xmake_file=i386/x-next
3518 extra_objs=nextstep.o
3519 extra_parts="crtbegin.o crtend.o"
3520 if test x$enable_threads = xyes; then
3524 i[34567]86-sequent-bsd*) # 80386 from Sequent
3526 if test x$gas = xyes
3528 tm_file=i386/seq-gas.h
3530 tm_file=i386/sequent.h
3533 i[34567]86-sequent-ptx1*)
3534 xm_defines="USG SVR3"
3535 xmake_file=i386/x-sysv3
3536 tm_file=i386/seq-sysv3.h
3537 tmake_file=i386/t-crtstuff
3538 extra_parts="crtbegin.o crtend.o"
3539 install_headers_dir=install-headers-cpio
3541 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3542 xm_defines="USG SVR3"
3543 xmake_file=i386/x-sysv3
3544 tm_file=i386/seq2-sysv3.h
3545 tmake_file=i386/t-crtstuff
3546 extra_parts="crtbegin.o crtend.o"
3547 install_headers_dir=install-headers-cpio
3549 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3550 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3551 xm_defines="USG POSIX SMALL_ARG_MAX"
3553 tm_file=i386/ptx4-i.h
3555 extra_parts="crtbegin.o crtend.o"
3556 install_headers_dir=install-headers-cpio
3558 i386-sun-sunos*) # Sun i386 roadrunner
3563 i[34567]86-wrs-vxworks*)
3564 tm_file=i386/vxi386.h
3565 tmake_file=i386/t-i386bare
3566 thread_file='vxworks'
3569 tm_file=i386/i386-aout.h
3570 tmake_file=i386/t-i386bare
3572 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3573 tm_file=i386/bsd386.h
3574 # tmake_file=t-libc-ok
3577 tm_file=i386/386bsd.h
3578 # tmake_file=t-libc-ok
3579 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3582 i[34567]86-*-freebsdelf*)
3583 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h"
3584 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3585 tmake_file=t-freebsd
3590 i[34567]86-*-freebsd*)
3591 tm_file=i386/freebsd.h
3592 tmake_file=t-freebsd
3594 i[34567]86-*-netbsd*)
3595 tm_file=i386/netbsd.h
3599 i[34567]86-*-openbsd*)
3600 # we need collect2 until our bug is fixed...
3604 tm_file=i386/i386-coff.h
3605 tmake_file=i386/t-i386bare
3607 i[34567]86-*-isc*) # 80386 running ISC system
3608 xm_file="${xm_file} i386/xm-isc.h"
3609 xm_defines="USG SVR3"
3611 i[34567]86-*-isc[34]*)
3612 xmake_file=i386/x-isc3
3615 xmake_file=i386/x-isc
3618 if test x$gas = xyes -a x$stabs = xyes
3620 tm_file=i386/iscdbx.h
3621 tmake_file=i386/t-svr3dbx
3622 extra_parts="svr3.ifile svr3z.ifile"
3624 tm_file=i386/isccoff.h
3625 tmake_file=i386/t-crtstuff
3626 extra_parts="crtbegin.o crtend.o"
3628 install_headers_dir=install-headers-cpio
3630 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3632 xmake_file=x-linux-aout
3633 tmake_file="t-linux-aout i386/t-crtstuff"
3634 tm_file=i386/linux-oldld.h
3638 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3639 xmake_file=x-linux-aout
3640 tmake_file="t-linux-aout i386/t-crtstuff"
3641 tm_file=i386/linux-aout.h
3645 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3646 # GNU/Linux C library 5
3648 tm_file=i386/linux.h
3649 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3650 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3653 if test x$enable_threads = xyes; then
3654 thread_file='single'
3657 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3658 # aka GNU/Linux C library 6
3660 tm_file=i386/linux.h
3661 tmake_file="t-linux i386/t-crtstuff"
3662 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3665 if test x$enable_threads = xyes; then
3672 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3673 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3676 i[34567]86-pc-msdosdjgpp*)
3677 xm_file=i386/xm-djgpp.h
3678 tm_file=i386/djgpp.h
3679 tmake_file=i386/t-djgpp
3680 xmake_file=i386/x-djgpp
3684 case $host in *pc-msdosdjgpp*)
3689 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3691 tmake_file=t-libc-ok
3695 i[34567]86-*-lynxos*)
3696 if test x$gas = xyes
3700 tm_file=i386/lynx-ng.h
3702 xm_file=i386/xm-lynx.h
3703 tmake_file=i386/t-i386bare
3708 # tmake_file=t-libc-ok
3711 i[34567]86-*-osfrose*) # 386 using OSF/rose
3712 if test x$elf = xyes
3714 tm_file=i386/osfelf.h
3717 tm_file=i386/osfrose.h
3720 xm_file="i386/xm-osf.h ${xm_file}"
3721 xmake_file=i386/x-osfrose
3722 tmake_file=i386/t-osf
3723 extra_objs=halfpic.o
3725 i[34567]86-go32-rtems*)
3727 xm_file=i386/xm-go32.h
3728 tm_file=i386/go32-rtems.h
3729 tmake_file="i386/t-go32 t-rtems"
3731 i[34567]86-*-rtemself*)
3733 tm_file=i386/rtemself.h
3734 tmake_file="i386/t-i386bare t-rtems"
3736 i[34567]86-*-rtems*)
3738 tm_file=i386/rtems.h
3739 tmake_file="i386/t-i386bare t-rtems"
3741 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3742 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3743 xm_defines="USG SVR3"
3744 xmake_file=i386/x-sco5
3745 install_headers_dir=install-headers-cpio
3747 if test x$gas = xyes
3749 tm_file="i386/sco5gas.h ${tm_file}"
3750 tmake_file=i386/t-sco5gas
3752 tmake_file=i386/t-sco5
3754 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3756 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3757 xm_file="${xm_file} i386/xm-sco.h"
3758 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3759 xmake_file=i386/x-sco4
3760 install_headers_dir=install-headers-cpio
3761 if test x$stabs = xyes
3763 tm_file=i386/sco4dbx.h
3764 tmake_file=i386/t-svr3dbx
3765 extra_parts="svr3.ifile svr3z.rfile"
3768 tmake_file=i386/t-crtstuff
3769 extra_parts="crtbegin.o crtend.o"
3773 i[34567]86-*-sco*) # 80386 running SCO system
3774 xm_file=i386/xm-sco.h
3775 xmake_file=i386/x-sco
3776 install_headers_dir=install-headers-cpio
3777 if test x$stabs = xyes
3779 tm_file=i386/scodbx.h
3780 tmake_file=i386/t-svr3dbx
3781 extra_parts="svr3.ifile svr3z.rfile"
3784 extra_parts="crtbegin.o crtend.o"
3785 tmake_file=i386/t-crtstuff
3789 i[34567]86-*-solaris2*)
3790 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3791 xm_defines="USG POSIX SMALL_ARG_MAX"
3792 if test x$stabs = xyes
3794 tm_file=i386/sol2dbg.h
3798 tmake_file=i386/t-sol2
3799 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3801 if test x$enable_threads = xyes; then
3802 thread_file='solaris'
3805 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3806 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3807 xm_defines="USG POSIX"
3808 tm_file=i386/sysv5.h
3809 if test x$stabs = xyes
3811 tm_file="${tm_file} dbx.h"
3813 tmake_file=i386/t-crtpic
3815 extra_parts="crtbegin.o crtend.o"
3816 if test x$enable_threads = xyes; then
3820 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3821 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3822 xm_defines="USG POSIX SMALL_ARG_MAX"
3823 tm_file=i386/sysv4.h
3824 if test x$stabs = xyes
3826 tm_file="${tm_file} dbx.h"
3828 tmake_file=i386/t-crtpic
3830 extra_parts="crtbegin.o crtend.o"
3832 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3833 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3834 xm_defines="USG POSIX"
3836 tmake_file="i386/t-crtpic i386/t-udk"
3838 extra_parts="crtbegin.o crtend.o"
3839 install_headers_dir=install-headers-cpio
3841 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3843 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3844 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3845 if test x$stabs = xyes
3847 tm_file=i386/osf1elfgdb.h
3849 tm_file=i386/osf1elf.h
3851 tmake_file=i386/t-osf1elf
3852 xmake_file=i386/x-osf1elf
3853 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3855 i[34567]86-*-sysv*) # Intel 80386's running system V
3856 xm_defines="USG SVR3"
3857 xmake_file=i386/x-sysv3
3858 if test x$gas = xyes
3860 if test x$stabs = xyes
3862 tm_file=i386/svr3dbx.h
3863 tmake_file=i386/t-svr3dbx
3864 extra_parts="svr3.ifile svr3z.rfile"
3866 tm_file=i386/svr3gas.h
3867 extra_parts="crtbegin.o crtend.o"
3868 tmake_file=i386/t-crtstuff
3871 tm_file=i386/sysv3.h
3872 extra_parts="crtbegin.o crtend.o"
3873 tmake_file=i386/t-crtstuff
3876 i386-*-vsta) # Intel 80386's running VSTa kernel
3877 xm_file="${xm_file} i386/xm-vsta.h"
3879 tmake_file=i386/t-vsta
3880 xmake_file=i386/x-vsta
3883 xm_file="${xm_file} i386/xm-cygwin.h"
3884 tmake_file=i386/t-cygwin
3885 tm_file=i386/win32.h
3886 xmake_file=i386/x-cygwin
3888 if test x$enable_threads = xyes; then
3893 i[34567]86-*-pe | i[34567]86-*-cygwin*)
3894 xm_file="${xm_file} i386/xm-cygwin.h"
3895 tmake_file=i386/t-cygwin
3896 tm_file=i386/cygwin.h
3897 xmake_file=i386/x-cygwin
3899 if test x$enable_threads = xyes; then
3904 i[34567]86-*-mingw32*)
3905 tm_file=i386/mingw32.h
3906 xm_file="${xm_file} i386/xm-mingw32.h"
3907 tmake_file="i386/t-cygwin i386/t-mingw32"
3909 xmake_file=i386/x-cygwin
3910 if test x$enable_threads = xyes; then
3917 *minwg32crt* | *mingw32*)
3918 tm_file="${tm_file} i386/crtdll.h"
3924 xm_file="${xm_file} i386/xm-uwin.h"
3925 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
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
4237 xmake_file=m68k/x-hp3bsd44
4239 extra_headers=math-68881.h
4242 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4243 tm_file=m68k/hp3bsd.h
4245 extra_headers=math-68881.h
4249 if test x$with_fp = xno
4251 tm_file=m68k/isi-nfp.h
4257 extra_headers=math-68881.h
4259 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4260 xm_file="xm_alloca.h ${xm_file}"
4261 xm_defines="USG NO_SYS_SIGLIST"
4262 if test x$gas = xyes
4264 xmake_file=m68k/x-hp320g
4265 tm_file=m68k/hp320g.h
4267 xmake_file=m68k/x-hp320
4268 tm_file=m68k/hpux7.h
4270 install_headers_dir=install-headers-cpio
4272 extra_headers=math-68881.h
4275 m68k-hp-hpux*) # HP 9000 series 300
4276 xm_file="xm_alloca.h ${xm_file}"
4277 xm_defines="USG NO_SYS_SIGLIST"
4278 if test x$gas = xyes
4280 xmake_file=m68k/x-hp320g
4281 tm_file=m68k/hp320g.h
4283 xmake_file=m68k/x-hp320
4284 tm_file=m68k/hp320.h
4286 install_headers_dir=install-headers-cpio
4288 extra_headers=math-68881.h
4292 tm_file=m68k/sun3mach.h
4294 extra_headers=math-68881.h
4298 if test x$gas = xyes
4300 tm_file=m68k/news3gas.h
4302 tm_file=m68k/news3.h
4305 extra_headers=math-68881.h
4308 m68k-sony-bsd* | m68k-sony-newsos*)
4309 if test x$gas = xyes
4311 tm_file=m68k/newsgas.h
4316 extra_headers=math-68881.h
4319 m68k-next-nextstep2*)
4320 tm_file=m68k/next21.h
4321 xm_file="m68k/xm-next.h ${xm_file}"
4322 tmake_file=m68k/t-next
4323 xmake_file=m68k/x-next
4324 extra_objs=nextstep.o
4325 extra_headers=math-68881.h
4329 m68k-next-nextstep3*)
4331 xm_file="m68k/xm-next.h ${xm_file}"
4332 tmake_file=m68k/t-next
4333 xmake_file=m68k/x-next
4334 extra_objs=nextstep.o
4335 extra_parts="crtbegin.o crtend.o"
4336 extra_headers=math-68881.h
4338 if test x$enable_threads = xyes; then
4343 if test x$with_fp = xno
4345 tm_file=m68k/sun3n3.h
4347 tm_file=m68k/sun3o3.h
4351 extra_headers=math-68881.h
4353 m68k-sun-sunos*) # For SunOS 4 (the default).
4354 if test x$with_fp = xno
4356 tm_file=m68k/sun3n.h
4362 extra_headers=math-68881.h
4365 tm_file=m68k/vxm68k.h
4366 tmake_file=m68k/t-vxworks68
4367 extra_headers=math-68881.h
4368 thread_file='vxworks'
4372 tmake_file=m68k/t-m68kbare
4373 tm_file="m68k/m68k-aout.h libgloss.h"
4374 extra_headers=math-68881.h
4378 tmake_file=m68k/t-m68kbare
4379 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4380 extra_headers=math-68881.h
4383 m68020-*-elf* | m68k-*-elf*)
4384 tm_file="m68k/m68020-elf.h libgloss.h"
4385 xm_file=m68k/xm-m68kv.h
4386 tmake_file=m68k/t-m68kelf
4387 header_files=math-68881.h
4390 if test x$gas = xyes
4394 tm_file=m68k/lynx-ng.h
4396 xm_file=m68k/xm-lynx.h
4398 tmake_file=m68k/t-lynx
4399 extra_headers=math-68881.h
4403 tm_file=m68k/netbsd.h
4410 # we need collect2 until our bug is fixed...
4413 m68k-*-sysv3*) # Motorola m68k's running system V.3
4414 xm_file="xm-alloca.h ${xm_file}"
4416 xmake_file=m68k/x-m68kv
4417 extra_parts="crtbegin.o crtend.o"
4418 extra_headers=math-68881.h
4421 m68k-*-sysv4*) # Motorola m68k's running system V.4
4422 tm_file=m68k/m68kv4.h
4423 xm_file="xm-alloca.h ${xm_file}"
4426 extra_parts="crtbegin.o crtend.o"
4427 extra_headers=math-68881.h
4430 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4433 tm_file=m68k/linux-aout.h
4434 tmake_file="t-linux-aout m68k/t-linux-aout"
4435 extra_headers=math-68881.h
4439 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4440 # with ELF format using the
4441 # GNU/Linux C library 5
4443 tm_file=m68k/linux.h
4444 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4445 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4446 extra_headers=math-68881.h
4450 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4451 # with ELF format using glibc 2
4452 # aka the GNU/Linux C library 6.
4454 tm_file=m68k/linux.h
4455 tmake_file="t-linux m68k/t-linux"
4456 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4457 extra_headers=math-68881.h
4460 if test x$enable_threads = xyes; then
4465 tmake_file=m68k/t-m68kbare
4466 tm_file=m68k/m68k-psos.h
4467 extra_headers=math-68881.h
4471 tmake_file="m68k/t-m68kbare t-rtems"
4472 tm_file=m68k/rtems.h
4473 extra_headers=math-68881.h
4480 tm_file=m88k/dguxbcs.h
4481 tmake_file=m88k/t-dguxbcs
4485 tmake_file=m88k/t-dgux
4488 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4489 xmake_file=m88k/x-dgux
4490 if test x$gas = xyes
4492 tmake_file=m88k/t-dgux-gas
4495 m88k-dolphin-sysv3*)
4496 tm_file=m88k/dolph.h
4497 extra_parts="crtbegin.o crtend.o"
4498 xm_file="m88k/xm-sysv3.h ${xm_file}"
4499 xmake_file=m88k/x-dolph
4500 if test x$gas = xyes
4502 tmake_file=m88k/t-m88k-gas
4505 m88k-tektronix-sysv3)
4506 tm_file=m88k/tekXD88.h
4507 extra_parts="crtbegin.o crtend.o"
4508 xm_file="m88k/xm-sysv3.h ${xm_file}"
4509 xmake_file=m88k/x-tekXD88
4510 if test x$gas = xyes
4512 tmake_file=m88k/t-m88k-gas
4516 tm_file=m88k/m88k-aout.h
4519 tm_file=m88k/m88k-coff.h
4520 tmake_file=m88k/t-bug
4524 extra_parts="crtbegin.o crtend.o"
4525 if test x$gas = xyes
4527 tmake_file=m88k/t-luna-gas
4529 tmake_file=m88k/t-luna
4533 tmake_file="${tmake_file} m88k/t-luna-gas"
4536 tm_file=m88k/sysv3.h
4537 extra_parts="crtbegin.o crtend.o"
4538 xm_file="m88k/xm-sysv3.h ${xm_file}"
4539 xmake_file=m88k/x-sysv3
4540 if test x$gas = xyes
4542 tmake_file=m88k/t-m88k-gas
4546 tm_file=m88k/sysv4.h
4547 extra_parts="crtbegin.o crtend.o"
4548 xmake_file=m88k/x-sysv4
4549 tmake_file=m88k/t-sysv4
4551 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4552 tm_file=mips/iris6.h
4553 xm_file=mips/xm-iris6.h
4554 xmake_file=mips/x-iris6
4555 tmake_file=mips/t-iris6
4556 # if test x$enable_threads = xyes; then
4557 # thread_file='irix'
4561 tm_file="mips/elf.h libgloss.h mips/vxworks.h"
4562 tmake_file=mips/t-ecoff
4565 extra_parts="crtbegin.o crtend.o"
4566 thread_file='vxworks'
4568 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4569 tm_file="mips/iris6.h mips/cross64.h"
4571 xm_file="mips/xm-iris5.h"
4572 xmake_file=mips/x-iris
4573 tmake_file=mips/t-cross64
4574 # See comment in mips/iris[56].h files.
4576 # if test x$enable_threads = xyes; then
4577 # thread_file='irix'
4581 if test x$gas = xyes
4583 if test x$stabs = xyes
4585 tm_file=mips/iris5gdb.h
4587 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4590 tm_file=mips/sni-svr4.h
4593 xmake_file=mips/x-sni-svr4
4594 tmake_file=mips/t-mips-gas
4595 if test x$gnu_ld != xyes
4600 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4601 if test x$gas = xyes
4603 tm_file="mips/iris5.h mips/iris5gas.h"
4604 if test x$stabs = xyes
4606 tm_file="${tm_file} dbx.h"
4609 tm_file=mips/iris5.h
4612 xm_file="mips/xm-iris5.h"
4613 xmake_file=mips/x-iris
4614 # mips-tfile doesn't work yet
4615 tmake_file=mips/t-mips-gas
4616 # See comment in mips/iris5.h file.
4618 # if test x$enable_threads = xyes; then
4619 # thread_file='irix'
4622 mips-sgi-irix4loser*) # Mostly like a MIPS.
4623 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4624 if test x$stabs = xyes; then
4625 tm_file="${tm_file} dbx.h"
4628 xmake_file=mips/x-iris
4629 if test x$gas = xyes
4631 tmake_file=mips/t-mips-gas
4633 extra_passes="mips-tfile mips-tdump"
4635 if test x$gnu_ld != xyes
4639 # if test x$enable_threads = xyes; then
4640 # thread_file='irix'
4643 mips-sgi-irix4*) # Mostly like a MIPS.
4644 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4645 if test x$stabs = xyes; then
4646 tm_file="${tm_file} dbx.h"
4649 xmake_file=mips/x-iris
4650 if test x$gas = xyes
4652 tmake_file=mips/t-mips-gas
4654 extra_passes="mips-tfile mips-tdump"
4656 if test x$gnu_ld != xyes
4660 # if test x$enable_threads = xyes; then
4661 # thread_file='irix'
4664 mips-sgi-*) # Mostly like a MIPS.
4665 tm_file="mips/iris3.h ${tm_file}"
4666 if test x$stabs = xyes; then
4667 tm_file="${tm_file} dbx.h"
4670 xmake_file=mips/x-iris3
4671 if test x$gas = xyes
4673 tmake_file=mips/t-mips-gas
4675 extra_passes="mips-tfile mips-tdump"
4677 if test x$gnu_ld != xyes
4682 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4683 tm_file="mips/osfrose.h ${tm_file}"
4684 xmake_file=mips/x-osfrose
4685 tmake_file=mips/t-osfrose
4686 extra_objs=halfpic.o
4689 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4690 tm_file=mips/dec-osf1.h
4691 if test x$stabs = xyes; then
4692 tm_file="${tm_file} dbx.h"
4694 xmake_file=mips/x-dec-osf1
4695 if test x$gas = xyes
4697 tmake_file=mips/t-mips-gas
4699 tmake_file=mips/t-ultrix
4700 extra_passes="mips-tfile mips-tdump"
4702 if test x$gnu_ld != xyes
4707 mips-dec-bsd*) # Decstation running 4.4 BSD
4708 tm_file=mips/dec-bsd.h
4709 if test x$gas = xyes
4711 tmake_file=mips/t-mips-gas
4713 tmake_file=mips/t-ultrix
4714 extra_passes="mips-tfile mips-tdump"
4716 if test x$gnu_ld != xyes
4721 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4722 tm_file=mips/netbsd.h
4723 # On NetBSD, the headers are already okay, except for math.h.
4726 mips*-*-linux*) # Linux MIPS, either endian.
4728 xm_file="xm-siglist.h ${xm_file}"
4730 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4731 *) tm_file="mips/elf.h mips/linux.h" ;;
4733 extra_parts="crtbegin.o crtend.o"
4737 mips*el-*-openbsd*) # mips little endian
4738 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4739 tm_file=mips/openbsd.h
4741 mips*-*-openbsd*) # mips big endian
4742 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4743 tm_file=mips/openbsd-be.h
4745 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4746 tm_file="mips/news4.h ${tm_file}"
4747 if test x$stabs = xyes; then
4748 tm_file="${tm_file} dbx.h"
4750 if test x$gas = xyes
4752 tmake_file=mips/t-mips-gas
4754 extra_passes="mips-tfile mips-tdump"
4756 if test x$gnu_ld != xyes
4760 xmake_file=mips/x-sony
4762 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4763 # That is based on svr4.
4764 # t-svr4 is not right because this system doesn't use ELF.
4765 tm_file="mips/news5.h ${tm_file}"
4766 if test x$stabs = xyes; then
4767 tm_file="${tm_file} dbx.h"
4769 xm_file="xm-siglist.h ${xm_file}"
4771 if test x$gas = xyes
4773 tmake_file=mips/t-mips-gas
4775 extra_passes="mips-tfile mips-tdump"
4777 if test x$gnu_ld != xyes
4782 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4783 tm_file="mips/svr4-5.h mips/svr4-t.h"
4784 if test x$stabs = xyes; then
4785 tm_file="${tm_file} dbx.h"
4787 xm_file="xm-siglist.h ${xm_file}"
4789 xmake_file=mips/x-sysv
4790 if test x$gas = xyes
4792 tmake_file=mips/t-mips-gas
4793 extra_parts="crtbegin.o crtend.o"
4795 tmake_file=mips/t-mips
4796 extra_passes="mips-tfile mips-tdump"
4798 if test x$gnu_ld != xyes
4803 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4804 tm_file="mips/ultrix.h ${tm_file}"
4805 if test x$stabs = xyes; then
4806 tm_file="${tm_file} dbx.h"
4808 xmake_file=mips/x-ultrix
4809 if test x$gas = xyes
4811 tmake_file=mips/t-mips-gas
4813 tmake_file=mips/t-ultrix
4814 extra_passes="mips-tfile mips-tdump"
4816 if test x$gnu_ld != xyes
4821 mips-*-riscos[56789]bsd*)
4822 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4823 if test x$stabs = xyes; then
4824 tm_file="${tm_file} dbx.h"
4826 if test x$gas = xyes
4828 tmake_file=mips/t-bsd-gas
4830 tmake_file=mips/t-bsd
4831 extra_passes="mips-tfile mips-tdump"
4833 if test x$gnu_ld != xyes
4838 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4839 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4840 if test x$stabs = xyes; then
4841 tm_file="${tm_file} dbx.h"
4843 if test x$gas = xyes
4845 tmake_file=mips/t-bsd-gas
4847 tmake_file=mips/t-bsd
4848 extra_passes="mips-tfile mips-tdump"
4850 if test x$gnu_ld != xyes
4855 mips-*-riscos[56789]sysv4*)
4856 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4857 if test x$stabs = xyes; then
4858 tm_file="${tm_file} dbx.h"
4860 xm_file="xm-siglist.h ${xm_file}"
4861 xmake_file=mips/x-sysv
4862 if test x$gas = xyes
4864 tmake_file=mips/t-svr4-gas
4866 tmake_file=mips/t-svr4
4867 extra_passes="mips-tfile mips-tdump"
4869 if test x$gnu_ld != xyes
4874 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4875 tm_file="mips/svr4-4.h ${tm_file}"
4876 if test x$stabs = xyes; then
4877 tm_file="${tm_file} dbx.h"
4880 xmake_file=mips/x-sysv
4881 if test x$gas = xyes
4883 tmake_file=mips/t-svr4-gas
4885 tmake_file=mips/t-svr4
4886 extra_passes="mips-tfile mips-tdump"
4888 if test x$gnu_ld != xyes
4893 mips-*-riscos[56789]sysv*)
4894 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4895 if test x$stabs = xyes; then
4896 tm_file="${tm_file} dbx.h"
4899 xmake_file=mips/x-sysv
4900 if test x$gas = xyes
4902 tmake_file=mips/t-svr3-gas
4904 tmake_file=mips/t-svr3
4905 extra_passes="mips-tfile mips-tdump"
4907 if test x$gnu_ld != xyes
4912 mips-*-sysv* | mips-*-riscos*sysv*)
4913 tm_file="mips/svr3-4.h ${tm_file}"
4914 if test x$stabs = xyes; then
4915 tm_file="${tm_file} dbx.h"
4918 xmake_file=mips/x-sysv
4919 if test x$gas = xyes
4921 tmake_file=mips/t-svr3-gas
4923 tmake_file=mips/t-svr3
4924 extra_passes="mips-tfile mips-tdump"
4926 if test x$gnu_ld != xyes
4931 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4932 tm_file=mips/mips-5.h
4933 if test x$stabs = xyes; then
4934 tm_file="${tm_file} dbx.h"
4936 if test x$gas = xyes
4938 tmake_file=mips/t-mips-gas
4940 extra_passes="mips-tfile mips-tdump"
4942 if test x$gnu_ld != xyes
4950 tm_file=mips/ecoffl.h
4951 if test x$stabs = xyes; then
4952 tm_file="${tm_file} dbx.h"
4954 tmake_file=mips/t-ecoff
4957 tm_file="gofast.h mips/ecoff.h"
4958 if test x$stabs = xyes; then
4959 tm_file="${tm_file} dbx.h"
4961 tmake_file=mips/t-ecoff
4964 tm_file="mips/elfl.h libgloss.h"
4965 tmake_file=mips/t-elf
4968 tm_file="mips/elf.h"
4969 tmake_file=mips/t-elf
4972 tm_file="mips/elfl64.h"
4973 tmake_file=mips/t-elf
4975 mips64orionel-*-elf*)
4976 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
4977 tmake_file=mips/t-elf
4980 tm_file="mips/elf64.h"
4981 tmake_file=mips/t-elf
4984 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
4985 tmake_file=mips/t-elf
4987 mips64orion-*-rtems*)
4988 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
4989 tmake_file="mips/t-ecoff t-rtems"
4992 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
4993 tmake_file=mips/t-r3900
4996 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
4997 tmake_file=mips/t-r3900
4999 mips-*-*) # Default MIPS RISC-OS 4.0.
5000 if test x$stabs = xyes; then
5001 tm_file="${tm_file} dbx.h"
5003 if test x$gas = xyes
5005 tmake_file=mips/t-mips-gas
5007 extra_passes="mips-tfile mips-tdump"
5009 if test x$gnu_ld != xyes
5016 tm_file="mn10200/mn10200.h"
5017 if test x$stabs = xyes
5019 tm_file="${tm_file} dbx.h"
5025 tm_file="mn10300/mn10300.h"
5026 if test x$stabs = xyes
5028 tm_file="${tm_file} dbx.h"
5033 tm_file=ns32k/encore.h
5037 tm_file=ns32k/sequent.h
5041 tm_file=ns32k/tek6100.h
5045 tm_file=ns32k/tek6200.h
5048 # This has not been updated to GCC 2.
5051 # xmake_file=ns32k/x-genix
5052 # tm_file=ns32k/genix.h
5056 tm_file=ns32k/merlin.h
5060 tm_file=ns32k/pc532-mach.h
5064 tm_file=ns32k/pc532-min.h
5065 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5070 tm_file=ns32k/netbsd.h
5071 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5072 # On NetBSD, the headers are already okay, except for math.h.
5077 tm_file="${tm_file} pdp11/2bsd.h"
5086 xmake_file=pyr/x-pyr
5093 xmake_file=romp/x-mach
5100 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5104 tm_file=rs6000/beos.h
5105 xm_file=rs6000/xm-beos.h
5106 tmake_file=rs6000/t-beos
5107 xmake_file=rs6000/x-beos
5109 powerpc-*-sysv* | powerpc-*-elf*)
5110 tm_file=rs6000/sysv4.h
5111 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5112 xm_defines="USG POSIX"
5113 extra_headers=ppc-asm.h
5114 if test x$gas = xyes
5116 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5118 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5120 xmake_file=rs6000/x-sysv4
5123 tm_file=rs6000/eabiaix.h
5124 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5125 extra_headers=ppc-asm.h
5128 tm_file=rs6000/eabisim.h
5129 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5130 extra_headers=ppc-asm.h
5133 tm_file=rs6000/eabi.h
5134 if test x$gas = xyes
5136 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5138 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5140 extra_headers=ppc-asm.h
5143 tm_file=rs6000/rtems.h
5144 if test x$gas = xyes
5146 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5148 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5150 extra_headers=ppc-asm.h
5152 powerpc-*-linux-gnulibc1)
5153 tm_file=rs6000/linux.h
5154 xm_file=rs6000/xm-sysv4.h
5155 out_file=rs6000/rs6000.c
5156 if test x$gas = xyes
5158 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5160 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5163 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5164 extra_headers=ppc-asm.h
5165 if test x$enable_threads = xyes; then
5169 powerpc-*-linux-gnu*)
5170 tm_file=rs6000/linux.h
5171 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5172 xm_defines="USG ${xm_defines}"
5173 out_file=rs6000/rs6000.c
5174 if test x$gas = xyes
5176 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5178 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5181 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5182 extra_headers=ppc-asm.h
5183 if test x$enable_threads = xyes; then
5187 powerpc-wrs-vxworks*)
5189 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5190 xm_defines="USG POSIX"
5191 tm_file=rs6000/vxppc.h
5192 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5193 extra_headers=ppc-asm.h
5194 thread_file='vxworks'
5196 powerpcle-*-sysv* | powerpcle-*-elf*)
5197 tm_file=rs6000/sysv4le.h
5198 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5199 xm_defines="USG POSIX"
5200 if test x$gas = xyes
5202 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5204 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5206 xmake_file=rs6000/x-sysv4
5207 extra_headers=ppc-asm.h
5209 powerpcle-*-eabisim*)
5210 tm_file=rs6000/eabilesim.h
5211 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5212 extra_headers=ppc-asm.h
5215 tm_file=rs6000/eabile.h
5216 if test x$gas = xyes
5218 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5220 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5222 extra_headers=ppc-asm.h
5224 powerpcle-*-winnt* )
5225 tm_file=rs6000/win-nt.h
5226 tmake_file=rs6000/t-winnt
5228 if test x$enable_threads = xyes; then
5231 extra_headers=ppc-asm.h
5233 powerpcle-*-pe | powerpcle-*-cygwin*)
5234 tm_file=rs6000/cygwin.h
5235 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5236 tmake_file=rs6000/t-winnt
5237 xmake_file=rs6000/x-cygwin
5239 if test x$enable_threads = xyes; then
5243 extra_headers=ppc-asm.h
5245 powerpcle-*-solaris2*)
5246 tm_file=rs6000/sol2.h
5247 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5248 xm_defines="USG POSIX"
5249 if test x$gas = xyes
5251 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5253 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5255 xmake_file=rs6000/x-sysv4
5256 extra_headers=ppc-asm.h
5258 rs6000-ibm-aix3.[01]*)
5259 tm_file=rs6000/aix31.h
5260 xmake_file=rs6000/x-aix31
5264 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5265 tm_file=rs6000/aix3newas.h
5266 if test x$host != x$target
5268 tmake_file=rs6000/t-xnewas
5270 tmake_file=rs6000/t-newas
5275 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5276 tm_file=rs6000/aix41.h
5277 if test x$host != x$target
5279 tmake_file=rs6000/t-xnewas
5281 tmake_file=rs6000/t-newas
5283 if test "$gnu_ld" = yes
5285 xmake_file=rs6000/x-aix41-gld
5287 xmake_file=rs6000/x-aix41
5292 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5293 tm_file=rs6000/aix43.h
5294 if test x$host != x$target
5296 tmake_file=rs6000/t-xaix43
5298 tmake_file=rs6000/t-aix43
5300 xmake_file=rs6000/x-aix43
5304 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5305 tm_file=rs6000/aix43.h
5306 if test x$host != x$target
5308 tmake_file=rs6000/t-xaix43
5310 tmake_file=rs6000/t-aix43
5312 xmake_file=rs6000/x-aix43
5325 tm_file=rs6000/mach.h
5326 xm_file="${xm_file} rs6000/xm-mach.h"
5327 xmake_file=rs6000/x-mach
5331 tm_file=rs6000/lynx.h
5332 xm_file=rs6000/xm-lynx.h
5333 tmake_file=rs6000/t-rs6000
5334 xmake_file=rs6000/x-lynx
5342 tmake_file="sh/t-sh t-rtems"
5343 tm_file=sh/rtemself.h
5347 tmake_file="sh/t-sh t-rtems"
5356 xm_file="xm-alloca.h ${xm_file}"
5359 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5360 tm_file=sparc/vxsparc.h
5361 tmake_file=sparc/t-vxsparc
5363 thread_file='vxworks'
5366 tmake_file=sparc/t-sparcbare
5367 tm_file="sparc/aout.h libgloss.h"
5370 tm_file=sparc/netbsd.h
5375 # we need collect2 until our bug is fixed...
5383 tmake_file=sparc/t-elf
5384 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5388 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5389 xm_file="${xm_file} sparc/xm-linux.h"
5390 tm_file=sparc/linux-aout.h
5394 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5395 xm_file="${xm_file} sparc/xm-linux.h"
5397 tm_file=sparc/linux.h
5398 tmake_file="t-linux t-linux-gnulibc1"
5399 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5402 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5403 xm_file="${xm_file} sparc/xm-linux.h"
5405 tm_file=sparc/linux.h
5406 tmake_file="t-linux"
5407 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5409 if test x$enable_threads = xyes; then
5414 if test x$gas = xyes
5416 tm_file=sparc/lynx.h
5418 tm_file=sparc/lynx-ng.h
5420 xm_file=sparc/xm-lynx.h
5421 tmake_file=sparc/t-sunos41
5425 tmake_file="sparc/t-sparcbare t-rtems"
5426 tm_file=sparc/rtems.h
5428 sparcv9-*-solaris2*)
5429 tm_file=sparc/sol2-sld-64.h
5430 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5431 xm_defines="USG POSIX"
5432 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5433 xmake_file=sparc/x-sysv4
5434 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5436 if test x${enable_threads} = x ; then
5437 enable_threads=$have_pthread_h
5438 if test x${enable_threads} = x ; then
5439 enable_threads=$have_thread_h
5442 if test x${enable_threads} = xyes ; then
5443 if test x${have_pthread_h} = xyes ; then
5446 thread_file='solaris'
5450 sparc-hal-solaris2*)
5451 xm_file=sparc/xm-sol2.h
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"
5459 if test x$gnu_ld = xyes
5461 tm_file=sparc/sol2.h
5463 tm_file=sparc/sol2-sld.h
5465 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5466 xm_defines="USG POSIX"
5467 tmake_file=sparc/t-sol2
5468 xmake_file=sparc/x-sysv4
5469 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5478 if test x${enable_threads} = x; then
5479 enable_threads=$have_pthread_h
5480 if test x${enable_threads} = x; then
5481 enable_threads=$have_thread_h
5484 if test x${enable_threads} = xyes; then
5485 if test x${have_pthread_h} = xyes; then
5488 thread_file='solaris'
5493 tm_file=sparc/sunos4.h
5494 tmake_file=sparc/t-sunos40
5498 tm_file=sparc/sunos4.h
5499 tmake_file=sparc/t-sunos41
5501 if test x$gas = xyes; then
5502 tm_file="${tm_file} sparc/sun4gas.h"
5506 tm_file=sparc/sun4o3.h
5510 tm_file=sparc/sysv4.h
5511 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5512 xm_defines="USG POSIX"
5514 xmake_file=sparc/x-sysv4
5515 extra_parts="crtbegin.o crtend.o"
5518 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5519 xm_defines="USG POSIX"
5520 tm_file=sparc/vxsim.h
5521 tmake_file=sparc/t-vxsparc
5522 xmake_file=sparc/x-sysv4
5525 tm_file="sparc/splet.h libgloss.h"
5526 tmake_file=sparc/t-splet
5529 tm_file="sparc/litecoff.h libgloss.h"
5530 tmake_file=sparc/t-sparclite
5533 tm_file="sparc/lite.h aoutos.h libgloss.h"
5534 tmake_file=sparc/t-sparclite
5537 tmake_file=sparc/t-sp64
5538 tm_file=sparc/sp64-aout.h
5541 tmake_file=sparc/t-sp64
5542 tm_file=sparc/sp64-elf.h
5543 extra_parts="crtbegin.o crtend.o"
5545 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5546 tmake_file="t-linux sparc/t-linux64"
5547 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5548 tm_file=sparc/linux64.h
5550 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5553 # This hasn't been upgraded to GCC 2.
5554 # tahoe-harris-*) # Harris tahoe, using COFF.
5555 # tm_file=tahoe/harris.h
5557 # tahoe-*-bsd*) # tahoe running BSD
5559 thumb-*-coff* | thumbel-*-coff*)
5561 out_file=arm/thumb.c
5562 xm_file=arm/xm-thumb.h
5563 md_file=arm/thumb.md
5564 tmake_file=arm/t-thumb
5566 thumb-*-elf* | thumbel-*-elf*)
5568 out_file=arm/thumb.c
5569 xm_file=arm/xm-thumb.h
5570 md_file=arm/thumb.md
5571 tmake_file=arm/t-thumb-elf
5575 out_file=arm/thumb.c
5576 xm_file=arm/xm-thumb.h
5577 md_file=arm/thumb.md
5578 tmake_file=arm/t-thumb
5579 thread_file='vxworks'
5581 # This hasn't been upgraded to GCC 2.
5588 tm_file="v850/v850.h"
5589 xm_file="v850/xm-v850.h"
5590 tmake_file=v850/t-v850
5591 if test x$stabs = xyes
5593 tm_file="${tm_file} dbx.h"
5597 vax-*-bsd*) # vaxen running BSD
5601 vax-*-sysv*) # vaxen running system V
5602 tm_file="${tm_file} vax/vaxv.h"
5607 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5613 tmake_file="${tmake_file} vax/t-openbsd"
5615 vax-*-ultrix*) # vaxen running ultrix
5616 tm_file="${tm_file} vax/ultrix.h"
5620 vax-*-vms*) # vaxen running VMS
5621 xm_file=vax/xm-vms.h
5625 vax-*-*) # vax default entry
5629 xm_file="${xm_file} xm-svr3"
5633 echo "Configuration $machine not supported" 1>&2
5640 ;; # Existing GNU/Linux systems do not use the GNU setup.
5642 # On the GNU system, the setup is just about the same on
5643 # each different CPU. The specific machines that GNU
5644 # supports are matched above and just set $cpu_type.
5645 xm_file="xm-gnu.h ${xm_file}"
5646 tm_file=${cpu_type}/gnu.h
5647 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5648 # GNU always uses ELF.
5650 # GNU tools are the only tools.
5653 xmake_file=x-linux # These details are the same as Linux.
5654 tmake_file=t-gnu # These are not.
5657 xmake_try_sysv=x-sysv
5658 install_headers_dir=install-headers-cpio
5661 install_headers_dir=install-headers-cpio
5665 # Distinguish i[34567]86
5666 # Also, do not run mips-tfile on MIPS if using gas.
5667 # Process --with-cpu= for PowerPC/rs6000
5668 target_cpu_default2=
5671 target_cpu_default2=1
5674 case $target_alias in
5676 target_cpu_default2=4
5679 target_cpu_default2=2
5683 i686-*-* | i786-*-*)
5684 target_cpu_default2=3
5689 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5692 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5695 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5698 target_cpu_default2="MASK_CPU_EV5"
5702 if test x$gas = xyes
5704 if test "$target_cpu_default2" = ""
5706 target_cpu_default2="MASK_GAS"
5708 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5713 case "x$with_cpu" in
5716 target_cpu_default2="TARGET_CPU_generic"
5719 # Distinguish cores, and major variants
5720 # arm7m doesn't exist, but D & I don't affect code
5721 xarm23678 | xarm250 | xarm67010 \
5722 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5723 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5724 | xstrongarm | xstrongarm110 | xstrongarm1100)
5725 target_cpu_default2="TARGET_CPU_$with_cpu"
5729 echo "--with-cpu must be passed a value" 1>&2
5734 if test x$pass2done = xyes
5736 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5743 mips*-*-ecoff* | mips*-*-elf*)
5744 if test x$gas = xyes
5746 if test x$gnu_ld = xyes
5748 target_cpu_default2=20
5750 target_cpu_default2=16
5755 if test x$gas = xyes
5757 target_cpu_default2=16
5760 powerpc*-*-* | rs6000-*-*)
5761 case "x$with_cpu" in
5765 xcommon | xpower | xpower2 | xpowerpc | xrios \
5766 | xrios1 | xrios2 | xrsc | xrsc1 \
5767 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5768 | xec603e | x740 | x750 | x401 \
5769 | x403 | x505 | x801 | x821 | x823 | x860)
5770 target_cpu_default2="\"$with_cpu\""
5774 echo "--with-cpu must be passed a value" 1>&2
5779 if test x$pass2done = xyes
5781 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5788 case ".$with_cpu" in
5790 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5792 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5793 target_cpu_default2="TARGET_CPU_$with_cpu"
5796 if test x$pass2done = xyes
5798 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5806 if test "$target_cpu_default2" != ""
5808 if test "$target_cpu_default" != ""
5810 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5812 target_cpu_default=$target_cpu_default2
5816 # No need for collect2 if we have the GNU linker.
5817 # Actually, there is now; GNU ld doesn't handle the EH info or
5818 # collecting for shared libraries.
5825 # Save data on machine being used to compile GCC in build_xm_file.
5826 # Save data on host machine in vars host_xm_file and host_xmake_file.
5827 if test x$pass1done = x
5829 if test x"$xm_file" = x
5830 then build_xm_file=$cpu_type/xm-$cpu_type.h
5831 else build_xm_file=$xm_file
5833 build_xm_defines=$xm_defines
5834 build_install_headers_dir=$install_headers_dir
5835 build_exeext=$exeext
5838 if test x$pass2done = x
5840 if test x"$xm_file" = x
5841 then host_xm_file=$cpu_type/xm-$cpu_type.h
5842 else host_xm_file=$xm_file
5844 host_xm_defines=$xm_defines
5845 if test x"$xmake_file" = x
5846 then xmake_file=$cpu_type/x-$cpu_type
5848 host_xmake_file="$xmake_file"
5849 host_truncate_target=$truncate_target
5850 host_extra_gcc_objs=$extra_gcc_objs
5851 host_extra_objs=$extra_host_objs
5858 extra_objs="${host_extra_objs} ${extra_objs}"
5860 # Default the target-machine variables that were not explicitly set.
5861 if test x"$tm_file" = x
5862 then tm_file=$cpu_type/$cpu_type.h; fi
5864 if test x$extra_headers = x
5865 then extra_headers=; fi
5867 if test x"$xm_file" = x
5868 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5870 if test x$md_file = x
5871 then md_file=$cpu_type/$cpu_type.md; fi
5873 if test x$out_file = x
5874 then out_file=$cpu_type/$cpu_type.c; fi
5876 if test x"$tmake_file" = x
5877 then tmake_file=$cpu_type/t-$cpu_type
5880 if test x"$dwarf2" = xyes
5881 then tm_file="tm-dwarf2.h $tm_file"
5884 if test x$float_format = x
5885 then float_format=i64
5888 if test $float_format = none
5889 then float_h_file=Makefile.in
5890 else float_h_file=float-$float_format.h
5893 if test x$enable_haifa = x
5896 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5901 # Handle cpp installation.
5902 if test x$enable_cpp != xno
5904 tmake_file="$tmake_file t-install-cpp"
5907 # Say what files are being used for the output code and MD file.
5908 echo "Using \`$srcdir/config/$out_file' to output insns."
5909 echo "Using \`$srcdir/config/$md_file' as machine description file."
5912 for f in $tm_file; do
5915 if test $count = ax; then
5916 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5918 echo "Using the following target machine macro files:"
5919 for f in $tm_file; do
5920 echo " $srcdir/config/$f"
5925 for f in $host_xm_file; do
5928 if test $count = ax; then
5929 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5931 echo "Using the following host machine macro files:"
5932 for f in $host_xm_file; do
5933 echo " $srcdir/config/$f"
5937 if test "$host_xm_file" != "$build_xm_file"; then
5939 for f in $build_xm_file; do
5942 if test $count = ax; then
5943 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5945 echo "Using the following build machine macro files:"
5946 for f in $build_xm_file; do
5947 echo " $srcdir/config/$f"
5952 if test x$thread_file = x; then
5953 if test x$target_thread_file != x; then
5954 thread_file=$target_thread_file
5956 thread_file='single'
5960 # Set up the header files.
5961 # $links is the list of header files to create.
5962 # $vars is the list of shell variables with file names to include.
5963 # auto-host.h is the file containing items generated by autoconf and is
5964 # the first file included by config.h.
5966 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
5968 # If host=build, it is correct to have hconfig include auto-host.h
5969 # as well. If host!=build, we are in error and need to do more
5970 # work to find out the build config parameters.
5971 if test x$host = x$build
5973 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
5975 # We create a subdir, then run autoconf in the subdir.
5976 # To prevent recursion we set host and build for the new
5977 # invocation of configure to the build for this invocation
5984 /*) realsrcdir=${srcdir};;
5985 *) realsrcdir=../${srcdir};;
5987 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
5988 --target=$target --host=$build --build=$build
5990 # We just finished tests for the build machine, so rename
5991 # the file auto-build.h in the gcc directory.
5992 mv auto-host.h ../auto-build.h
5995 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
5998 xm_file="gansidecl.h ${xm_file}"
5999 tm_file="gansidecl.h ${tm_file}"
6001 vars="host_xm_file tm_file xm_file build_xm_file"
6002 links="config.h tm.h tconfig.h hconfig.h"
6003 defines="host_xm_defines null_defines xm_defines build_xm_defines"
6006 if test -f config.status; then mv -f config.status config.bak; fi
6009 while test -n "$vars"
6011 set $vars; var=$1; shift; vars=$*
6012 set $links; link=$1; shift; links=$*
6013 set $defines; define=$1; shift; defines=$*
6017 # Define TARGET_CPU_DEFAULT if the system wants one.
6018 # This substitutes for lots of *.h files.
6019 if test "$target_cpu_default" != "" -a $link = tm.h
6021 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6024 for file in `eval echo '$'$var`; do
6029 echo '#ifdef IN_GCC' >>$link
6032 echo "#include \"$file\"" >>$link
6037 echo '#endif' >>$link
6042 for def in `eval echo '$'$define`; do
6043 echo "#ifndef $def" >>$link
6044 echo "#define $def" >>$link
6045 echo "#endif" >>$link
6049 # Truncate the target if necessary
6050 if test x$host_truncate_target != x; then
6051 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6054 # Get the version trigger filename from the toplevel
6055 if test "${with_gcc_version_trigger+set}" = set; then
6056 gcc_version_trigger=$with_gcc_version_trigger
6058 gcc_version_trigger=${srcdir}/version.c
6060 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6062 # Internationalization
6064 VERSION="$gcc_version"
6065 cat >> confdefs.h <<EOF
6066 #define PACKAGE "$PACKAGE"
6069 cat >> confdefs.h <<EOF
6070 #define VERSION "$VERSION"
6078 # NLS support is still experimental, so disable it by default for now.
6079 # Check whether --enable-nls or --disable-nls was given.
6080 if test "${enable_nls+set}" = set; then
6081 enableval="$enable_nls"
6089 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6090 echo "configure:6091: checking for strerror in -lcposix" >&5
6091 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6095 ac_save_LIBS="$LIBS"
6096 LIBS="-lcposix $LIBS"
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* Override any gcc2 internal prototype to avoid an error. */
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 eval "ac_cv_lib_$ac_lib_var=yes"
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6116 eval "ac_cv_lib_$ac_lib_var=no"
6119 LIBS="$ac_save_LIBS"
6122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6123 echo "$ac_t""yes" 1>&6
6124 LIBS="$LIBS -lcposix"
6126 echo "$ac_t""no" 1>&6
6131 echo $ac_n "checking for working const""... $ac_c" 1>&6
6132 echo "configure:6133: checking for working const" >&5
6133 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6134 echo $ac_n "(cached) $ac_c" 1>&6
6136 cat > conftest.$ac_ext <<EOF
6137 #line 6138 "configure"
6138 #include "confdefs.h"
6142 /* Ultrix mips cc rejects this. */
6143 typedef int charset[2]; const charset x;
6144 /* SunOS 4.1.1 cc rejects this. */
6145 char const *const *ccp;
6147 /* NEC SVR4.0.2 mips cc rejects this. */
6148 struct point {int x, y;};
6149 static struct point const zero = {0,0};
6150 /* AIX XL C 1.02.0.0 rejects this.
6151 It does not let you subtract one const X* pointer from another in an arm
6152 of an if-expression whose if-part is not a constant expression */
6153 const char *g = "string";
6154 ccp = &g + (g ? g-g : 0);
6155 /* HPUX 7.0 cc rejects these. */
6158 ccp = (char const *const *) p;
6159 { /* SCO 3.2v4 cc rejects this. */
6161 char const *s = 0 ? (char *) 0 : (char const *) 0;
6165 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6167 const int *foo = &x[0];
6170 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6171 typedef const int *iptr;
6175 { /* AIX XL C 1.02.0.0 rejects this saying
6176 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6177 struct s { int j; const int *ap[3]; };
6178 struct s *b; b->j = 5;
6180 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6186 if { (eval echo configure:6187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6198 echo "$ac_t""$ac_cv_c_const" 1>&6
6199 if test $ac_cv_c_const = no; then
6200 cat >> confdefs.h <<\EOF
6206 echo $ac_n "checking for inline""... $ac_c" 1>&6
6207 echo "configure:6208: checking for inline" >&5
6208 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6209 echo $ac_n "(cached) $ac_c" 1>&6
6212 for ac_kw in inline __inline__ __inline; do
6213 cat > conftest.$ac_ext <<EOF
6214 #line 6215 "configure"
6215 #include "confdefs.h"
6221 if { (eval echo configure:6222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6223 ac_cv_c_inline=$ac_kw; break
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6233 echo "$ac_t""$ac_cv_c_inline" 1>&6
6234 case "$ac_cv_c_inline" in
6236 no) cat >> confdefs.h <<\EOF
6240 *) cat >> confdefs.h <<EOF
6241 #define inline $ac_cv_c_inline
6246 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6247 echo "configure:6248: checking for off_t" >&5
6248 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 #include <sys/types.h>
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6263 ac_cv_type_off_t=yes
6271 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6272 if test $ac_cv_type_off_t = no; then
6273 cat >> confdefs.h <<\EOF
6279 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6280 echo "configure:6281: checking for size_t" >&5
6281 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6284 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6287 #include <sys/types.h>
6293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6294 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6296 ac_cv_type_size_t=yes
6299 ac_cv_type_size_t=no
6304 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6305 if test $ac_cv_type_size_t = no; then
6306 cat >> confdefs.h <<\EOF
6307 #define size_t unsigned
6312 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6313 # for constant arguments. Useless!
6314 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6315 echo "configure:6316: checking for working alloca.h" >&5
6316 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6317 echo $ac_n "(cached) $ac_c" 1>&6
6319 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure"
6321 #include "confdefs.h"
6324 char *p = alloca(2 * sizeof(int));
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6329 ac_cv_header_alloca_h=yes
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 ac_cv_header_alloca_h=no
6339 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6340 if test $ac_cv_header_alloca_h = yes; then
6341 cat >> confdefs.h <<\EOF
6342 #define HAVE_ALLOCA_H 1
6347 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6348 echo "configure:6349: checking for alloca" >&5
6349 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6350 echo $ac_n "(cached) $ac_c" 1>&6
6352 cat > conftest.$ac_ext <<EOF
6353 #line 6354 "configure"
6354 #include "confdefs.h"
6357 # define alloca __builtin_alloca
6360 # include <malloc.h>
6361 # define alloca _alloca
6364 # include <alloca.h>
6369 # ifndef alloca /* predefined by HP cc +Olibcalls */
6378 char *p = (char *) alloca(1);
6381 if { (eval echo configure:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6383 ac_cv_func_alloca_works=yes
6385 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 ac_cv_func_alloca_works=no
6393 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6394 if test $ac_cv_func_alloca_works = yes; then
6395 cat >> confdefs.h <<\EOF
6396 #define HAVE_ALLOCA 1
6401 if test $ac_cv_func_alloca_works = no; then
6402 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6403 # that cause trouble. Some versions do not even contain alloca or
6404 # contain a buggy version. If you still want to use their alloca,
6405 # use ar to extract alloca.o from them instead of compiling alloca.c.
6406 ALLOCA=alloca.${ac_objext}
6407 cat >> confdefs.h <<\EOF
6412 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6413 echo "configure:6414: checking whether alloca needs Cray hooks" >&5
6414 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6417 cat > conftest.$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6420 #if defined(CRAY) && ! defined(CRAY2)
6427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6428 egrep "webecray" >/dev/null 2>&1; then
6439 echo "$ac_t""$ac_cv_os_cray" 1>&6
6440 if test $ac_cv_os_cray = yes; then
6441 for ac_func in _getb67 GETB67 getb67; do
6442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6443 echo "configure:6444: checking for $ac_func" >&5
6444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 /* System header to define __stub macros and hopefully few prototypes,
6451 which can conflict with char $ac_func(); below. */
6453 /* Override any gcc2 internal prototype to avoid an error. */
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6460 /* The GNU C library defines this for functions which it implements
6461 to always fail with ENOSYS. Some functions are actually named
6462 something starting with __ and the normal name is an alias. */
6463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473 eval "ac_cv_func_$ac_func=yes"
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6478 eval "ac_cv_func_$ac_func=no"
6483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6484 echo "$ac_t""yes" 1>&6
6485 cat >> confdefs.h <<EOF
6486 #define CRAY_STACKSEG_END $ac_func
6491 echo "$ac_t""no" 1>&6
6497 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6498 echo "configure:6499: checking stack direction for C alloca" >&5
6499 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6502 if test "$cross_compiling" = yes; then
6503 ac_cv_c_stack_direction=0
6505 cat > conftest.$ac_ext <<EOF
6506 #line 6507 "configure"
6507 #include "confdefs.h"
6508 find_stack_direction ()
6510 static char *addr = 0;
6515 return find_stack_direction ();
6518 return (&dummy > addr) ? 1 : -1;
6522 exit (find_stack_direction() < 0);
6525 if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6527 ac_cv_c_stack_direction=1
6529 echo "configure: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6532 ac_cv_c_stack_direction=-1
6539 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6540 cat >> confdefs.h <<EOF
6541 #define STACK_DIRECTION $ac_cv_c_stack_direction
6546 for ac_hdr in unistd.h
6548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6550 echo "configure:6551: checking for $ac_hdr" >&5
6551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6560 { (eval echo configure:6561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6562 if test -z "$ac_err"; then
6564 eval "ac_cv_header_$ac_safe=yes"
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6570 eval "ac_cv_header_$ac_safe=no"
6574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6575 echo "$ac_t""yes" 1>&6
6576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6577 cat >> confdefs.h <<EOF
6578 #define $ac_tr_hdr 1
6582 echo "$ac_t""no" 1>&6
6586 for ac_func in getpagesize
6588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6589 echo "configure:6590: checking for $ac_func" >&5
6590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 /* System header to define __stub macros and hopefully few prototypes,
6597 which can conflict with char $ac_func(); below. */
6599 /* Override any gcc2 internal prototype to avoid an error. */
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6606 /* The GNU C library defines this for functions which it implements
6607 to always fail with ENOSYS. Some functions are actually named
6608 something starting with __ and the normal name is an alias. */
6609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6617 if { (eval echo configure:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6619 eval "ac_cv_func_$ac_func=yes"
6621 echo "configure: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6624 eval "ac_cv_func_$ac_func=no"
6629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6630 echo "$ac_t""yes" 1>&6
6631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6632 cat >> confdefs.h <<EOF
6633 #define $ac_tr_func 1
6637 echo "$ac_t""no" 1>&6
6641 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6642 echo "configure:6643: checking for working mmap" >&5
6643 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6646 if test "$cross_compiling" = yes; then
6647 ac_cv_func_mmap_fixed_mapped=no
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6653 /* Thanks to Mike Haertel and Jim Avera for this test.
6654 Here is a matrix of mmap possibilities:
6655 mmap private not fixed
6656 mmap private fixed at somewhere currently unmapped
6657 mmap private fixed at somewhere already mapped
6658 mmap shared not fixed
6659 mmap shared fixed at somewhere currently unmapped
6660 mmap shared fixed at somewhere already mapped
6661 For private mappings, we should verify that changes cannot be read()
6662 back from the file, nor mmap's back from the file at a different
6663 address. (There have been systems where private was not correctly
6664 implemented like the infamous i386 svr4.0, and systems where the
6665 VM page cache was not coherent with the filesystem buffer cache
6666 like early versions of FreeBSD and possibly contemporary NetBSD.)
6667 For shared mappings, we should conversely verify that changes get
6668 propogated back to all the places they're supposed to be.
6670 Grep wants private fixed already mapped.
6671 The main things grep needs to know about mmap are:
6672 * does it exist and is it safe to write into the mmap'd area
6673 * how to use it (BSD variants) */
6674 #include <sys/types.h>
6676 #include <sys/mman.h>
6678 /* This mess was copied from the GNU getpagesize.h. */
6679 #ifndef HAVE_GETPAGESIZE
6680 # ifdef HAVE_UNISTD_H
6681 # include <unistd.h>
6684 /* Assume that all systems that can run configure have sys/param.h. */
6685 # ifndef HAVE_SYS_PARAM_H
6686 # define HAVE_SYS_PARAM_H 1
6689 # ifdef _SC_PAGESIZE
6690 # define getpagesize() sysconf(_SC_PAGESIZE)
6691 # else /* no _SC_PAGESIZE */
6692 # ifdef HAVE_SYS_PARAM_H
6693 # include <sys/param.h>
6694 # ifdef EXEC_PAGESIZE
6695 # define getpagesize() EXEC_PAGESIZE
6696 # else /* no EXEC_PAGESIZE */
6698 # define getpagesize() NBPG * CLSIZE
6701 # endif /* no CLSIZE */
6702 # else /* no NBPG */
6704 # define getpagesize() NBPC
6705 # else /* no NBPC */
6707 # define getpagesize() PAGESIZE
6708 # endif /* PAGESIZE */
6709 # endif /* no NBPC */
6710 # endif /* no NBPG */
6711 # endif /* no EXEC_PAGESIZE */
6712 # else /* no HAVE_SYS_PARAM_H */
6713 # define getpagesize() 8192 /* punt totally */
6714 # endif /* no HAVE_SYS_PARAM_H */
6715 # endif /* no _SC_PAGESIZE */
6717 #endif /* no HAVE_GETPAGESIZE */
6720 extern "C" { void *malloc(unsigned); }
6728 char *data, *data2, *data3;
6732 pagesize = getpagesize();
6735 * First, make a file with some known garbage in it.
6737 data = malloc(pagesize);
6740 for (i = 0; i < pagesize; ++i)
6741 *(data + i) = rand();
6743 fd = creat("conftestmmap", 0600);
6746 if (write(fd, data, pagesize) != pagesize)
6751 * Next, try to mmap the file at a fixed address which
6752 * already has something else allocated at it. If we can,
6753 * also make sure that we see the same garbage.
6755 fd = open("conftestmmap", O_RDWR);
6758 data2 = malloc(2 * pagesize);
6761 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6762 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6763 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6765 for (i = 0; i < pagesize; ++i)
6766 if (*(data + i) != *(data2 + i))
6770 * Finally, make sure that changes to the mapped area
6771 * do not percolate back to the file as seen by read().
6772 * (This is a bug on some variants of i386 svr4.0.)
6774 for (i = 0; i < pagesize; ++i)
6775 *(data2 + i) = *(data2 + i) + 1;
6776 data3 = malloc(pagesize);
6779 if (read(fd, data3, pagesize) != pagesize)
6781 for (i = 0; i < pagesize; ++i)
6782 if (*(data + i) != *(data3 + i))
6785 unlink("conftestmmap");
6790 if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6792 ac_cv_func_mmap_fixed_mapped=yes
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6797 ac_cv_func_mmap_fixed_mapped=no
6804 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6805 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6806 cat >> confdefs.h <<\EOF
6813 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6814 unistd.h sys/param.h
6816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6818 echo "configure:6819: checking for $ac_hdr" >&5
6819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6828 { (eval echo configure:6829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6830 if test -z "$ac_err"; then
6832 eval "ac_cv_header_$ac_safe=yes"
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6838 eval "ac_cv_header_$ac_safe=no"
6842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6845 cat >> confdefs.h <<EOF
6846 #define $ac_tr_hdr 1
6850 echo "$ac_t""no" 1>&6
6854 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6855 strdup __argz_count __argz_stringify __argz_next
6857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6858 echo "configure:6859: checking for $ac_func" >&5
6859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6860 echo $ac_n "(cached) $ac_c" 1>&6
6862 cat > conftest.$ac_ext <<EOF
6863 #line 6864 "configure"
6864 #include "confdefs.h"
6865 /* System header to define __stub macros and hopefully few prototypes,
6866 which can conflict with char $ac_func(); below. */
6868 /* Override any gcc2 internal prototype to avoid an error. */
6869 /* We use char because int might match the return type of a gcc2
6870 builtin and then its argument prototype would still apply. */
6875 /* The GNU C library defines this for functions which it implements
6876 to always fail with ENOSYS. Some functions are actually named
6877 something starting with __ and the normal name is an alias. */
6878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6886 if { (eval echo configure:6887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6888 eval "ac_cv_func_$ac_func=yes"
6890 echo "configure: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6893 eval "ac_cv_func_$ac_func=no"
6898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6899 echo "$ac_t""yes" 1>&6
6900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6901 cat >> confdefs.h <<EOF
6902 #define $ac_tr_func 1
6906 echo "$ac_t""no" 1>&6
6911 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6912 for ac_func in stpcpy
6914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6915 echo "configure:6916: checking for $ac_func" >&5
6916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6917 echo $ac_n "(cached) $ac_c" 1>&6
6919 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6922 /* System header to define __stub macros and hopefully few prototypes,
6923 which can conflict with char $ac_func(); below. */
6925 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6932 /* The GNU C library defines this for functions which it implements
6933 to always fail with ENOSYS. Some functions are actually named
6934 something starting with __ and the normal name is an alias. */
6935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6943 if { (eval echo configure:6944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6945 eval "ac_cv_func_$ac_func=yes"
6947 echo "configure: failed program was:" >&5
6948 cat conftest.$ac_ext >&5
6950 eval "ac_cv_func_$ac_func=no"
6955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6956 echo "$ac_t""yes" 1>&6
6957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6958 cat >> confdefs.h <<EOF
6959 #define $ac_tr_func 1
6963 echo "$ac_t""no" 1>&6
6968 if test "${ac_cv_func_stpcpy}" = "yes"; then
6969 cat >> confdefs.h <<\EOF
6970 #define HAVE_STPCPY 1
6975 if test $ac_cv_header_locale_h = yes; then
6976 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6977 echo "configure:6978: checking for LC_MESSAGES" >&5
6978 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6979 echo $ac_n "(cached) $ac_c" 1>&6
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6989 if { (eval echo configure:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6991 am_cv_val_LC_MESSAGES=yes
6993 echo "configure: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6996 am_cv_val_LC_MESSAGES=no
7001 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7002 if test $am_cv_val_LC_MESSAGES = yes; then
7003 cat >> confdefs.h <<\EOF
7004 #define HAVE_LC_MESSAGES 1
7009 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7010 echo "configure:7011: checking whether NLS is requested" >&5
7011 # Check whether --enable-nls or --disable-nls was given.
7012 if test "${enable_nls+set}" = set; then
7013 enableval="$enable_nls"
7019 echo "$ac_t""$USE_NLS" 1>&6
7022 USE_INCLUDED_LIBINTL=no
7024 if test "$USE_NLS" = "yes"; then
7025 cat >> confdefs.h <<\EOF
7026 #define ENABLE_NLS 1
7029 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7030 echo "configure:7031: checking whether included gettext is requested" >&5
7031 # Check whether --with-included-gettext or --without-included-gettext was given.
7032 if test "${with_included_gettext+set}" = set; then
7033 withval="$with_included_gettext"
7034 nls_cv_force_use_gnu_gettext=$withval
7036 nls_cv_force_use_gnu_gettext=no
7039 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7041 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7042 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7044 nls_cv_header_libgt=
7047 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7048 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7049 echo "configure:7050: checking for libintl.h" >&5
7050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7053 cat > conftest.$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7056 #include <libintl.h>
7058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7059 { (eval echo configure:7060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7061 if test -z "$ac_err"; then
7063 eval "ac_cv_header_$ac_safe=yes"
7066 echo "configure: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7069 eval "ac_cv_header_$ac_safe=no"
7073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7074 echo "$ac_t""yes" 1>&6
7075 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7076 echo "configure:7077: checking for gettext in libc" >&5
7077 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7080 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7083 #include <libintl.h>
7085 return (int) gettext ("")
7088 if { (eval echo configure:7089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7090 gt_cv_func_gettext_libc=yes
7092 echo "configure: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7095 gt_cv_func_gettext_libc=no
7100 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7102 if test "$gt_cv_func_gettext_libc" != "yes"; then
7103 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7104 echo "configure:7105: checking for bindtextdomain in -lintl" >&5
7105 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7107 echo $ac_n "(cached) $ac_c" 1>&6
7109 ac_save_LIBS="$LIBS"
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114 /* Override any gcc2 internal prototype to avoid an error. */
7115 /* We use char because int might match the return type of a gcc2
7116 builtin and then its argument prototype would still apply. */
7117 char bindtextdomain();
7123 if { (eval echo configure:7124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7125 eval "ac_cv_lib_$ac_lib_var=yes"
7127 echo "configure: failed program was:" >&5
7128 cat conftest.$ac_ext >&5
7130 eval "ac_cv_lib_$ac_lib_var=no"
7133 LIBS="$ac_save_LIBS"
7136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7137 echo "$ac_t""yes" 1>&6
7138 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7139 echo "configure:7140: checking for gettext in libintl" >&5
7140 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7144 echo "configure:7145: checking for gettext in -lintl" >&5
7145 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7147 echo $ac_n "(cached) $ac_c" 1>&6
7149 ac_save_LIBS="$LIBS"
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7154 /* Override any gcc2 internal prototype to avoid an error. */
7155 /* We use char because int might match the return type of a gcc2
7156 builtin and then its argument prototype would still apply. */
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7165 eval "ac_cv_lib_$ac_lib_var=yes"
7167 echo "configure: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7170 eval "ac_cv_lib_$ac_lib_var=no"
7173 LIBS="$ac_save_LIBS"
7176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7177 echo "$ac_t""yes" 1>&6
7178 gt_cv_func_gettext_libintl=yes
7180 echo "$ac_t""no" 1>&6
7181 gt_cv_func_gettext_libintl=no
7186 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7188 echo "$ac_t""no" 1>&6
7193 if test "$gt_cv_func_gettext_libc" = "yes" \
7194 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7195 cat >> confdefs.h <<\EOF
7196 #define HAVE_GETTEXT 1
7199 # Extract the first word of "msgfmt", so it can be a program name with args.
7200 set dummy msgfmt; ac_word=$2
7201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7202 echo "configure:7203: checking for $ac_word" >&5
7203 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7204 echo $ac_n "(cached) $ac_c" 1>&6
7208 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7212 for ac_dir in $PATH; do
7213 test -z "$ac_dir" && ac_dir=.
7214 if test -f $ac_dir/$ac_word; then
7215 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7216 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7222 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7226 MSGFMT="$ac_cv_path_MSGFMT"
7227 if test -n "$MSGFMT"; then
7228 echo "$ac_t""$MSGFMT" 1>&6
7230 echo "$ac_t""no" 1>&6
7232 if test "$MSGFMT" != "no"; then
7233 for ac_func in dcgettext
7235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7236 echo "configure:7237: checking for $ac_func" >&5
7237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7240 cat > conftest.$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char $ac_func(); below. */
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7266 eval "ac_cv_func_$ac_func=yes"
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7271 eval "ac_cv_func_$ac_func=no"
7276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7279 cat >> confdefs.h <<EOF
7280 #define $ac_tr_func 1
7284 echo "$ac_t""no" 1>&6
7288 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7289 set dummy gmsgfmt; ac_word=$2
7290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7291 echo "configure:7292: checking for $ac_word" >&5
7292 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7297 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7300 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7305 for ac_dir in $ac_dummy; do
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f $ac_dir/$ac_word; then
7308 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7313 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7317 GMSGFMT="$ac_cv_path_GMSGFMT"
7318 if test -n "$GMSGFMT"; then
7319 echo "$ac_t""$GMSGFMT" 1>&6
7321 echo "$ac_t""no" 1>&6
7324 # Extract the first word of "xgettext", so it can be a program name with args.
7325 set dummy xgettext; ac_word=$2
7326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7327 echo "configure:7328: checking for $ac_word" >&5
7328 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7333 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7337 for ac_dir in $PATH; do
7338 test -z "$ac_dir" && ac_dir=.
7339 if test -f $ac_dir/$ac_word; then
7340 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7341 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7347 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7351 XGETTEXT="$ac_cv_path_XGETTEXT"
7352 if test -n "$XGETTEXT"; then
7353 echo "$ac_t""$XGETTEXT" 1>&6
7355 echo "$ac_t""no" 1>&6
7358 cat > conftest.$ac_ext <<EOF
7359 #line 7360 "configure"
7360 #include "confdefs.h"
7363 extern int _nl_msg_cat_cntr;
7364 return _nl_msg_cat_cntr
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7384 echo "$ac_t""no" 1>&6
7388 if test "$CATOBJEXT" = "NONE"; then
7389 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7390 echo "configure:7391: checking whether catgets can be used" >&5
7391 # Check whether --with-catgets or --without-catgets was given.
7392 if test "${with_catgets+set}" = set; then
7393 withval="$with_catgets"
7394 nls_cv_use_catgets=$withval
7396 nls_cv_use_catgets=no
7399 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7401 if test "$nls_cv_use_catgets" = "yes"; then
7402 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7403 echo "configure:7404: checking for main in -li" >&5
7404 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 ac_save_LIBS="$LIBS"
7410 cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure"
7412 #include "confdefs.h"
7418 if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7420 eval "ac_cv_lib_$ac_lib_var=yes"
7422 echo "configure: failed program was:" >&5
7423 cat conftest.$ac_ext >&5
7425 eval "ac_cv_lib_$ac_lib_var=no"
7428 LIBS="$ac_save_LIBS"
7431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7432 echo "$ac_t""yes" 1>&6
7433 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7435 cat >> confdefs.h <<EOF
7436 #define $ac_tr_lib 1
7442 echo "$ac_t""no" 1>&6
7445 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7446 echo "configure:7447: checking for catgets" >&5
7447 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7448 echo $ac_n "(cached) $ac_c" 1>&6
7450 cat > conftest.$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7453 /* System header to define __stub macros and hopefully few prototypes,
7454 which can conflict with char catgets(); below. */
7456 /* Override any gcc2 internal prototype to avoid an error. */
7457 /* We use char because int might match the return type of a gcc2
7458 builtin and then its argument prototype would still apply. */
7463 /* The GNU C library defines this for functions which it implements
7464 to always fail with ENOSYS. Some functions are actually named
7465 something starting with __ and the normal name is an alias. */
7466 #if defined (__stub_catgets) || defined (__stub___catgets)
7474 if { (eval echo configure:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7476 eval "ac_cv_func_catgets=yes"
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7481 eval "ac_cv_func_catgets=no"
7486 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7487 echo "$ac_t""yes" 1>&6
7488 cat >> confdefs.h <<\EOF
7489 #define HAVE_CATGETS 1
7492 INTLOBJS="\$(CATOBJS)"
7493 # Extract the first word of "gencat", so it can be a program name with args.
7494 set dummy gencat; ac_word=$2
7495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7496 echo "configure:7497: checking for $ac_word" >&5
7497 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7502 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7505 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7510 for ac_dir in $ac_dummy; do
7511 test -z "$ac_dir" && ac_dir=.
7512 if test -f $ac_dir/$ac_word; then
7513 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7518 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7522 GENCAT="$ac_cv_path_GENCAT"
7523 if test -n "$GENCAT"; then
7524 echo "$ac_t""$GENCAT" 1>&6
7526 echo "$ac_t""no" 1>&6
7528 if test "$GENCAT" != "no"; then
7529 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7530 set dummy gmsgfmt; ac_word=$2
7531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7532 echo "configure:7533: checking for $ac_word" >&5
7533 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6
7538 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7541 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7546 for ac_dir in $ac_dummy; do
7547 test -z "$ac_dir" && ac_dir=.
7548 if test -f $ac_dir/$ac_word; then
7549 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7554 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7558 GMSGFMT="$ac_cv_path_GMSGFMT"
7559 if test -n "$GMSGFMT"; then
7560 echo "$ac_t""$GMSGFMT" 1>&6
7562 echo "$ac_t""no" 1>&6
7565 if test "$GMSGFMT" = "no"; then
7566 # Extract the first word of "msgfmt", so it can be a program name with args.
7567 set dummy msgfmt; ac_word=$2
7568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_word" >&5
7570 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7575 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7579 for ac_dir in $PATH; do
7580 test -z "$ac_dir" && ac_dir=.
7581 if test -f $ac_dir/$ac_word; then
7582 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7583 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7589 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7593 GMSGFMT="$ac_cv_path_GMSGFMT"
7594 if test -n "$GMSGFMT"; then
7595 echo "$ac_t""$GMSGFMT" 1>&6
7597 echo "$ac_t""no" 1>&6
7601 # Extract the first word of "xgettext", so it can be a program name with args.
7602 set dummy xgettext; ac_word=$2
7603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7604 echo "configure:7605: checking for $ac_word" >&5
7605 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6
7610 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7614 for ac_dir in $PATH; do
7615 test -z "$ac_dir" && ac_dir=.
7616 if test -f $ac_dir/$ac_word; then
7617 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7618 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7624 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7628 XGETTEXT="$ac_cv_path_XGETTEXT"
7629 if test -n "$XGETTEXT"; then
7630 echo "$ac_t""$XGETTEXT" 1>&6
7632 echo "$ac_t""no" 1>&6
7635 USE_INCLUDED_LIBINTL=yes
7639 INTLDEPS='$(top_builddir)/intl/libintl.a'
7641 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7642 nls_cv_header_intl=intl/libintl.h
7643 nls_cv_header_libgt=intl/libgettext.h
7646 echo "$ac_t""no" 1>&6
7652 if test "$CATOBJEXT" = "NONE"; then
7653 nls_cv_use_gnu_gettext=yes
7657 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7658 INTLOBJS="\$(GETTOBJS)"
7659 # Extract the first word of "msgfmt", so it can be a program name with args.
7660 set dummy msgfmt; ac_word=$2
7661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7662 echo "configure:7663: checking for $ac_word" >&5
7663 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7668 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7672 for ac_dir in $PATH; do
7673 test -z "$ac_dir" && ac_dir=.
7674 if test -f $ac_dir/$ac_word; then
7675 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7676 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7682 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7686 MSGFMT="$ac_cv_path_MSGFMT"
7687 if test -n "$MSGFMT"; then
7688 echo "$ac_t""$MSGFMT" 1>&6
7690 echo "$ac_t""no" 1>&6
7693 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7694 set dummy gmsgfmt; ac_word=$2
7695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7696 echo "configure:7697: checking for $ac_word" >&5
7697 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7702 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7705 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7710 for ac_dir in $ac_dummy; do
7711 test -z "$ac_dir" && ac_dir=.
7712 if test -f $ac_dir/$ac_word; then
7713 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7718 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7722 GMSGFMT="$ac_cv_path_GMSGFMT"
7723 if test -n "$GMSGFMT"; then
7724 echo "$ac_t""$GMSGFMT" 1>&6
7726 echo "$ac_t""no" 1>&6
7729 # Extract the first word of "xgettext", so it can be a program name with args.
7730 set dummy xgettext; ac_word=$2
7731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7732 echo "configure:7733: checking for $ac_word" >&5
7733 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
7738 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7742 for ac_dir in $PATH; do
7743 test -z "$ac_dir" && ac_dir=.
7744 if test -f $ac_dir/$ac_word; then
7745 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7746 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7752 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7756 XGETTEXT="$ac_cv_path_XGETTEXT"
7757 if test -n "$XGETTEXT"; then
7758 echo "$ac_t""$XGETTEXT" 1>&6
7760 echo "$ac_t""no" 1>&6
7764 USE_INCLUDED_LIBINTL=yes
7768 INTLDEPS='$(top_builddir)/intl/libintl.a'
7770 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7771 nls_cv_header_intl=intl/libintl.h
7772 nls_cv_header_libgt=intl/libgettext.h
7775 if test "$XGETTEXT" != ":"; then
7776 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7779 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7784 # We need to process the po/ directory.
7788 nls_cv_header_intl=intl/libintl.h
7789 nls_cv_header_libgt=intl/libgettext.h
7795 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7796 # because some of the sources are only built for this goal.
7797 if test "$PACKAGE" = gettext; then
7799 USE_INCLUDED_LIBINTL=yes
7802 for lang in $ALL_LINGUAS; do
7803 GMOFILES="$GMOFILES $lang.gmo"
7804 POFILES="$POFILES $lang.po"
7820 if test "x$CATOBJEXT" != "x"; then
7821 if test "x$ALL_LINGUAS" = "x"; then
7824 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7825 echo "configure:7826: checking for catalogs to be installed" >&5
7827 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7828 case "$ALL_LINGUAS" in
7829 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7832 LINGUAS=$NEW_LINGUAS
7833 echo "$ac_t""$LINGUAS" 1>&6
7836 if test -n "$LINGUAS"; then
7837 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7841 if test $ac_cv_header_locale_h = yes; then
7842 INCLUDE_LOCALE_H="#include <locale.h>"
7845 /* The system does not provide the header <locale.h>. Take care yourself. */"
7849 test -d intl || mkdir intl
7850 if test "$CATOBJEXT" = ".cat"; then
7851 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7852 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7853 echo "configure:7854: checking for linux/version.h" >&5
7854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7855 echo $ac_n "(cached) $ac_c" 1>&6
7857 cat > conftest.$ac_ext <<EOF
7858 #line 7859 "configure"
7859 #include "confdefs.h"
7860 #include <linux/version.h>
7862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7863 { (eval echo configure:7864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7865 if test -z "$ac_err"; then
7867 eval "ac_cv_header_$ac_safe=yes"
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 eval "ac_cv_header_$ac_safe=no"
7877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7878 echo "$ac_t""yes" 1>&6
7881 echo "$ac_t""no" 1>&6
7886 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
7888 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7889 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
7891 if test "$PACKAGE" = "gettext"; then
7902 if test -n "$ac_aux_dir"; then
7903 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7905 if test -z "$MKINSTALLDIRS"; then
7906 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7913 test -d po || mkdir po
7914 if test "x$srcdir" != "x."; then
7915 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7916 posrcprefix="$srcdir/"
7918 posrcprefix="../$srcdir/"
7924 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7925 < $srcdir/po/POTFILES.in > po/POTFILES
7927 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7929 # Get an absolute path to the GCC top-level source directory
7935 # Conditionalize the makefile for this host machine.
7936 # Make-host contains the concatenation of all host makefile fragments
7937 # [there can be more than one]. This file is built by configure.frag.
7938 host_overrides=Make-host
7939 dep_host_xmake_file=
7940 for f in .. ${host_xmake_file}
7942 if test -f ${srcdir}/config/$f
7944 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
7948 # Conditionalize the makefile for this target machine.
7949 # Make-target contains the concatenation of all host makefile fragments
7950 # [there can be more than one]. This file is built by configure.frag.
7951 target_overrides=Make-target
7953 for f in .. ${tmake_file}
7955 if test -f ${srcdir}/config/$f
7957 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
7961 # If the host doesn't support symlinks, modify CC in
7962 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7963 # Otherwise, we can use "CC=$(CC)".
7965 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
7967 cc_set_by_configure="\$(CC)"
7968 quoted_cc_set_by_configure="\$(CC)"
7969 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
7972 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
7974 symbolic_link="cp -p"
7978 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7979 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
7980 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7984 out_object_file=`basename $out_file .c`.o
7987 for f in $tm_file; do
7990 tm_file_list="${tm_file_list} $f" ;;
7991 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
7996 for f in $host_xm_file; do
7998 auto-host.h | gansidecl.h | hwint.h )
7999 host_xm_file_list="${host_xm_file_list} $f" ;;
8000 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8005 for f in $build_xm_file; do
8007 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8008 build_xm_file_list="${build_xm_file_list} $f" ;;
8009 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8013 # Define macro CROSS_COMPILE in compilation
8014 # if this is a cross-compiler.
8015 # Also use all.cross instead of all.internal
8016 # and add cross-make to Makefile.
8017 cross_overrides="/dev/null"
8018 if test x$host != x$target
8020 cross_defines="CROSS=-DCROSS_COMPILE"
8021 cross_overrides="${topdir}/cross-make"
8024 # When building gcc with a cross-compiler, we need to fix a few things.
8025 # This must come after cross-make as we want all.build to override
8027 build_overrides="/dev/null"
8028 if test x$build != x$host
8030 build_overrides="${topdir}/build-make"
8033 # Expand extra_headers to include complete path.
8034 # This substitutes for lots of t-* files.
8036 if test "x$extra_headers" = x
8039 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8040 for file in $extra_headers;
8042 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8046 if test x$use_collect2 = xno; then
8050 # Add a definition of USE_COLLECT2 if system wants one.
8051 # Also tell toplev.c what to do.
8052 # This substitutes for lots of t-* files.
8053 if test x$use_collect2 = x
8058 will_use_collect2="collect2"
8059 maybe_use_collect2="-DUSE_COLLECT2"
8063 # Set MD_DEPS if the real md file is in md.pre-cpp.
8064 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8065 # for line oriented comments, so we must always use a GNU cpp. If
8066 # building gcc with a cross compiler, use the cross compiler just
8067 # built. Otherwise, we can use the cpp just built.
8069 if test "x$md_cppflags" = x
8071 md_file_sub=$srcdir/config/$md_file
8076 # If we have gas in the build tree, make a link to it.
8077 if test -f ../gas/Makefile; then
8078 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8081 # If we have nm in the build tree, make a link to it.
8082 if test -f ../binutils/Makefile; then
8083 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8086 # If we have ld in the build tree, make a link to it.
8087 if test -f ../ld/Makefile; then
8088 # if test x$use_collect2 = x; then
8089 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8091 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8095 # Figure out what assembler alignment features are present.
8096 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8097 echo "configure:8098: checking assembler alignment features" >&5
8099 gcc_cv_as_alignment_features=
8100 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8101 if test -x "$DEFAULT_ASSEMBLER"; then
8102 gcc_cv_as="$DEFAULT_ASSEMBLER"
8103 elif test -x "$AS"; then
8105 elif test -x as$host_exeext; then
8106 # Build using assembler in the current directory.
8107 gcc_cv_as=./as$host_exeext
8108 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8109 # Single tree build which includes gas.
8110 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8112 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8113 if test x$gcc_cv_gas_version != x; then
8117 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8118 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8119 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8120 # Gas version 2.6 and later support for .balign and .p2align.
8121 # bytes to skip when using .p2align.
8122 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
8123 gcc_cv_as_alignment_features=".balign and .p2align"
8124 cat >> confdefs.h <<\EOF
8125 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8129 # Gas version 2.8 and later support specifying the maximum
8130 # bytes to skip when using .p2align.
8131 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
8132 gcc_cv_as_alignment_features=".p2align including maximum skip"
8133 cat >> confdefs.h <<\EOF
8134 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8139 elif test x$host = x$target; then
8141 # Search the same directories that the installed compiler will
8142 # search. Else we may find the wrong assembler and lose. If we
8143 # do not find a suitable assembler binary, then try the user's
8146 # Also note we have to check MD_EXEC_PREFIX before checking the
8147 # user's path. Unfortunately, there is no good way to get at the
8148 # value of MD_EXEC_PREFIX here. So we do a brute force search
8149 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8150 # to be fixed as part of the make/configure rewrite too.
8152 if test "x$exec_prefix" = xNONE; then
8153 if test "x$prefix" = xNONE; then
8154 test_prefix=/usr/local
8159 test_prefix=$exec_prefix
8162 # If the loop below does not find an assembler, then use whatever
8163 # one we can find in the users's path.
8167 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8168 $test_prefix/lib/gcc-lib/$target \
8169 /usr/lib/gcc/$target/$gcc_version \
8170 /usr/lib/gcc/$target \
8171 $test_prefix/$target/bin/$target/$gcc_version \
8172 $test_prefix/$target/bin \
8177 /bsd43/usr/lib/cmplrs/cc \
8178 /usr/cross64/usr/bin \
8179 /usr/lib/cmplrs/cc \
8180 /sysv/usr/lib/cmplrs/cc \
8181 /svr4/usr/lib/cmplrs/cc \
8184 for dir in $test_dirs; do
8185 if test -f $dir/as$host_exeext; then
8186 gcc_cv_as=$dir/as$host_exeext
8191 if test x$gcc_cv_as != x; then
8192 # Check if we have .balign and .p2align
8193 echo ".balign 4" > conftest.s
8194 echo ".p2align 2" >> conftest.s
8195 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8196 gcc_cv_as_alignment_features=".balign and .p2align"
8197 cat >> confdefs.h <<\EOF
8198 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8202 rm -f conftest.s conftest.o
8203 # Check if specifying the maximum bytes to skip when
8204 # using .p2align is supported.
8205 echo ".p2align 4,,7" > conftest.s
8206 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8207 gcc_cv_as_alignment_features=".p2align including maximum skip"
8208 cat >> confdefs.h <<\EOF
8209 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8213 rm -f conftest.s conftest.o
8215 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8217 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8218 echo "configure:8219: checking assembler subsection support" >&5
8219 gcc_cv_as_subsections=
8220 if test x$gcc_cv_as != x; then
8221 # Check if we have .subsection
8222 echo ".subsection 1" > conftest.s
8223 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8224 gcc_cv_as_subsections=".subsection"
8225 if test -x nm$host_exeext; then
8226 gcc_cv_nm=./nm$host_exeext
8227 elif test x$host = x$target; then
8229 gcc_cv_nm=nm$host_exeext
8231 if test x$gcc_cv_nm != x; then
8232 cat > conftest.s <<EOF
8233 conftest_label1: .word 0
8235 conftest_label2: .word 0
8238 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8239 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8240 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8241 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8244 gcc_cv_as_subsections="working .subsection -1"
8245 cat >> confdefs.h <<\EOF
8246 #define HAVE_GAS_SUBSECTION_ORDERING 1
8253 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8255 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8257 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8258 echo "configure:8259: checking assembler instructions" >&5
8259 gcc_cv_as_instructions=
8260 if test x$gcc_cv_as != x; then
8261 set "filds fists" "filds mem; fists mem"
8264 echo "$2" > conftest.s
8265 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8266 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8267 cat >> confdefs.h <<EOF
8268 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8274 rm -f conftest.s conftest.o
8276 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8278 # Figure out what language subdirectories are present.
8279 # Look if the user specified --enable-languages="..."; if not, use
8280 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8282 if test x"${enable_languages+set}" != xset; then
8283 if test x"${LANGUAGES+set}" = xset; then
8284 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8286 enable_languages=all
8290 for lang in ${srcdir}/*/config-lang.in ..
8294 # The odd quoting in the next line works around
8295 # an apparent bug in bash 1.12 on linux.
8296 ${srcdir}/[*]/config-lang.in) ;;
8298 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8299 if test "x$lang_alias" = x
8301 echo "$lang doesn't set \$language." 1>&2
8304 if test x"${enable_languages}" = xall; then
8307 case "${enable_languages}" in
8308 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8316 if test x"${add_this_lang}" = xyes; then
8318 ${srcdir}/ada/config-lang.in)
8319 if test x$gnat = xyes ; then
8320 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8324 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8332 # Make gthr-default.h if we have a thread file.
8334 if test $thread_file != single; then
8335 rm -f gthr-default.h
8336 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8337 gthread_flags=-DHAVE_GTHR_DEFAULT
8341 # Make empty files to contain the specs and options for each language.
8342 # Then add #include lines to for a compiler that has specs and/or options.
8347 rm -f specs.h options.h gencheck.h
8348 touch specs.h options.h gencheck.h
8349 for subdir in . $subdirs
8351 if test -f $srcdir/$subdir/lang-specs.h; then
8352 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8353 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8355 if test -f $srcdir/$subdir/lang-options.h; then
8356 echo "#include \"$subdir/lang-options.h\"" >>options.h
8357 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8359 if test -f $srcdir/$subdir/$subdir-tree.def; then
8360 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8361 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8365 # These (without "all_") are set in each config-lang.in.
8366 # `language' must be a single word so is spelled singularly.
8372 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8373 # List of language makefile fragments.
8378 # Add the language fragments.
8379 # Languages are added via two mechanisms. Some information must be
8380 # recorded in makefile variables, these are defined in config-lang.in.
8381 # We accumulate them and plug them into the main Makefile.
8382 # The other mechanism is a set of hooks for each of the main targets
8383 # like `clean', `install', etc.
8385 language_fragments="Make-lang"
8386 language_hooks="Make-hooks"
8389 for s in .. $subdirs
8401 . ${srcdir}/$s/config-lang.in
8402 if test "x$language" = x
8404 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8407 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8408 all_languages="$all_languages $language"
8409 if test "x$boot_language" = xyes
8411 all_boot_languages="$all_boot_languages $language"
8413 all_compilers="$all_compilers $compilers"
8414 all_stagestuff="$all_stagestuff $stagestuff"
8415 all_diff_excludes="$all_diff_excludes $diff_excludes"
8416 all_headers="$all_headers $headers"
8417 all_outputs="$all_outputs $outputs"
8418 if test x$outputs = x
8420 oldstyle_subdirs="$oldstyle_subdirs $s"
8422 all_lib2funcs="$all_lib2funcs $lib2funcs"
8426 # Since we can't use `::' targets, we link each language in
8427 # with a set of hooks, reached indirectly via lang.${target}.
8431 target_list="all.build all.cross start.encap rest.encap \
8433 install-normal install-common install-info install-man \
8435 mostlyclean clean distclean extraclean maintainer-clean \
8436 stage1 stage2 stage3 stage4"
8437 for t in $target_list
8440 for lang in .. $all_languages
8442 if test $lang != ".."; then
8446 echo "lang.$t: $x" >> Make-hooks
8449 # If we're not building in srcdir, create .gdbinit.
8451 if test ! -f Makefile.in; then
8452 echo "dir ." > .gdbinit
8453 echo "dir ${srcdir}" >> .gdbinit
8454 if test x$gdb_needs_out_file_path = xyes
8456 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8458 if test "x$subdirs" != x; then
8461 echo "dir ${srcdir}/$s" >> .gdbinit
8464 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8467 # Define variables host_canonical and build_canonical
8468 # because some Cygnus local changes in the Makefile depend on them.
8469 build_canonical=${build}
8470 host_canonical=${host}
8472 if test "${host}" != "${target}" ; then
8473 target_subdir=${target}/
8479 # If this is using newlib, then define inhibit_libc in
8480 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8481 # libgcc.a, but that's OK because newib should have its own version of
8484 if test x$with_newlib = xyes; then
8485 inhibit_libc=-Dinhibit_libc
8489 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8492 if test x$enable_haifa = xyes; then
8493 echo "Using the Haifa scheduler."
8495 sched_cflags=-DHAIFA
8499 if test x$enable_haifa != x; then
8500 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8501 for x in genattrtab.o toplev.o *sched.o; do
8509 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8510 # absolute path for gcc_tooldir based on inserting the number of up-directory
8511 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8512 # $(libsubdir)/@(unlibsubdir) based path.
8513 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8514 # make and thus we'd get different behavior depending on where we built the
8516 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8517 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8519 # An explanation of the sed strings:
8520 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8521 # -e 's|/$||' match a trailing forward slash and eliminates it
8522 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8523 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8525 # (*) Note this pattern overwrites the first character of the string
8526 # with a forward slash if one is not already present. This is not a
8527 # problem because the exact names of the sub-directories concerned is
8528 # unimportant, just the number of them matters.
8530 # The practical upshot of these patterns is like this:
8532 # prefix exec_prefix result
8533 # ------ ----------- ------
8535 # /foo/ /foo/bar ../
8536 # /foo /foo/bar/ ../
8537 # /foo/ /foo/bar/ ../
8538 # /foo /foo/bar/ugg ../../
8541 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8546 # Nothing to do for FLOAT_H, float_format already handled.
8550 # Process the language and host/target makefile fragments.
8551 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8553 # Substitute configuration variables
8615 # Echo that links are built
8616 if test x$host = x$target
8624 if test x$host != x$build
8626 str3=" on a $build system"
8629 if test "x$str2" != x || test "x$str3" != x
8634 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8636 if test "x$str2" != x || test "x$str3" != x
8638 echo " ${str2}${str3}." 1>&2
8641 # Truncate the target if necessary
8642 if test x$host_truncate_target != x; then
8643 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8646 # Configure the subdirectories
8647 # AC_CONFIG_SUBDIRS($subdirs)
8649 # Create the Makefile
8650 # and configure language subdirectories
8652 cat > confcache <<\EOF
8653 # This file is a shell script that caches the results of configure
8654 # tests run on this system so they can be shared between configure
8655 # scripts and configure runs. It is not useful on other systems.
8656 # If it contains results you don't want to keep, you may remove or edit it.
8658 # By default, configure uses ./config.cache as the cache file,
8659 # creating it if it does not exist already. You can give configure
8660 # the --cache-file=FILE option to use a different cache file; that is
8661 # what configure does when it calls configure scripts in
8662 # subdirectories, so they share the cache.
8663 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8664 # config.status only pays attention to the cache file if you give it the
8665 # --recheck option to rerun configure.
8668 # The following way of writing the cache mishandles newlines in values,
8669 # but we know of no workaround that is simple, portable, and efficient.
8670 # So, don't put newlines in cache variables' values.
8671 # Ultrix sh set writes to stderr and can't be redirected directly,
8672 # and sets the high bit in the cache file unless we assign to the vars.
8674 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8676 # `set' does not quote correctly, so add quotes (double-quote substitution
8677 # turns \\\\ into \\, and sed turns \\ into \).
8679 -e "s/'/'\\\\''/g" \
8680 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8683 # `set' quotes correctly as required by POSIX, so do not add quotes.
8684 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8687 if cmp -s $cache_file confcache; then
8690 if test -w $cache_file; then
8691 echo "updating cache $cache_file"
8692 cat confcache > $cache_file
8694 echo "not updating unwritable cache $cache_file"
8699 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8702 # Let make expand exec_prefix.
8703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8705 # Any assignment to VPATH causes Sun make to only execute
8706 # the first set of double-colon rules, so remove it if not needed.
8707 # If there is a colon in the path, we need to keep it.
8708 if test "x$srcdir" = x.; then
8709 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8712 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8714 DEFS=-DHAVE_CONFIG_H
8716 # Without the "./", some shells look in PATH for config.status.
8717 : ${CONFIG_STATUS=./config.status}
8719 echo creating $CONFIG_STATUS
8720 rm -f $CONFIG_STATUS
8721 cat > $CONFIG_STATUS <<EOF
8723 # Generated automatically by configure.
8724 # Run this file to recreate the current configuration.
8725 # This directory was configured as follows,
8726 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8728 # $0 $ac_configure_args
8730 # Compiler output produced by configure, useful for debugging
8731 # configure, is in ./config.log if it exists.
8733 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8736 case "\$ac_option" in
8737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8738 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8739 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8740 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8741 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8743 -help | --help | --hel | --he | --h)
8744 echo "\$ac_cs_usage"; exit 0 ;;
8745 *) echo "\$ac_cs_usage"; exit 1 ;;
8749 ac_given_srcdir=$srcdir
8751 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8753 cat >> $CONFIG_STATUS <<EOF
8755 # Protect against being on the right side of a sed subst in config.status.
8756 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8757 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8761 s%@CFLAGS@%$CFLAGS%g
8762 s%@CPPFLAGS@%$CPPFLAGS%g
8763 s%@CXXFLAGS@%$CXXFLAGS%g
8764 s%@FFLAGS@%$FFLAGS%g
8766 s%@LDFLAGS@%$LDFLAGS%g
8768 s%@exec_prefix@%$exec_prefix%g
8769 s%@prefix@%$prefix%g
8770 s%@program_transform_name@%$program_transform_name%g
8771 s%@bindir@%$bindir%g
8772 s%@sbindir@%$sbindir%g
8773 s%@libexecdir@%$libexecdir%g
8774 s%@datadir@%$datadir%g
8775 s%@sysconfdir@%$sysconfdir%g
8776 s%@sharedstatedir@%$sharedstatedir%g
8777 s%@localstatedir@%$localstatedir%g
8778 s%@libdir@%$libdir%g
8779 s%@includedir@%$includedir%g
8780 s%@oldincludedir@%$oldincludedir%g
8781 s%@infodir@%$infodir%g
8782 s%@mandir@%$mandir%g
8784 s%@host_alias@%$host_alias%g
8785 s%@host_cpu@%$host_cpu%g
8786 s%@host_vendor@%$host_vendor%g
8787 s%@host_os@%$host_os%g
8788 s%@target@%$target%g
8789 s%@target_alias@%$target_alias%g
8790 s%@target_cpu@%$target_cpu%g
8791 s%@target_vendor@%$target_vendor%g
8792 s%@target_os@%$target_os%g
8794 s%@build_alias@%$build_alias%g
8795 s%@build_cpu@%$build_cpu%g
8796 s%@build_vendor@%$build_vendor%g
8797 s%@build_os@%$build_os%g
8799 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8800 s%@SET_MAKE@%$SET_MAKE%g
8803 s%@LEXLIB@%$LEXLIB%g
8806 s%@RANLIB@%$RANLIB%g
8808 s%@INSTALL@%$INSTALL%g
8809 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8810 s%@INSTALL_DATA@%$INSTALL_DATA%g
8813 s%@vfprintf@%$vfprintf%g
8814 s%@doprint@%$doprint%g
8815 s%@manext@%$manext%g
8816 s%@objext@%$objext%g
8817 s%@PACKAGE@%$PACKAGE%g
8818 s%@VERSION@%$VERSION%g
8819 s%@ALLOCA@%$ALLOCA%g
8820 s%@USE_NLS@%$USE_NLS%g
8821 s%@MSGFMT@%$MSGFMT%g
8822 s%@GMSGFMT@%$GMSGFMT%g
8823 s%@XGETTEXT@%$XGETTEXT%g
8824 s%@GENCAT@%$GENCAT%g
8825 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8826 s%@CATALOGS@%$CATALOGS%g
8827 s%@CATOBJEXT@%$CATOBJEXT%g
8828 s%@DATADIRNAME@%$DATADIRNAME%g
8829 s%@GMOFILES@%$GMOFILES%g
8830 s%@INSTOBJEXT@%$INSTOBJEXT%g
8831 s%@INTLDEPS@%$INTLDEPS%g
8832 s%@INTLLIBS@%$INTLLIBS%g
8833 s%@INTLOBJS@%$INTLOBJS%g
8834 s%@POFILES@%$POFILES%g
8836 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8838 s%@GT_YES@%$GT_YES%g
8839 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8841 s%@gthread_flags@%$gthread_flags%g
8842 s%@build_canonical@%$build_canonical%g
8843 s%@host_canonical@%$host_canonical%g
8844 s%@target_subdir@%$target_subdir%g
8845 s%@inhibit_libc@%$inhibit_libc%g
8846 s%@sched_prefix@%$sched_prefix%g
8847 s%@sched_cflags@%$sched_cflags%g
8848 s%@gcc_tooldir@%$gcc_tooldir%g
8849 s%@dollar@%$dollar%g
8850 s%@objdir@%$objdir%g
8851 s%@subdirs@%$subdirs%g
8852 s%@all_boot_languages@%$all_boot_languages%g
8853 s%@all_compilers@%$all_compilers%g
8854 s%@all_diff_excludes@%$all_diff_excludes%g
8855 s%@all_headers@%$all_headers%g
8856 s%@all_lang_makefiles@%$all_lang_makefiles%g
8857 s%@all_languages@%$all_languages%g
8858 s%@all_lib2funcs@%$all_lib2funcs%g
8859 s%@all_stagestuff@%$all_stagestuff%g
8860 s%@build_exeext@%$build_exeext%g
8861 s%@build_install_headers_dir@%$build_install_headers_dir%g
8862 s%@build_xm_file_list@%$build_xm_file_list%g
8863 s%@cc_set_by_configure@%$cc_set_by_configure%g
8864 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8865 s%@cpp_install_dir@%$cpp_install_dir%g
8866 s%@cpp_main@%$cpp_main%g
8867 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8868 s%@dep_tmake_file@%$dep_tmake_file%g
8869 s%@extra_c_flags@%$extra_c_flags%g
8870 s%@extra_c_objs@%$extra_c_objs%g
8871 s%@extra_cpp_objs@%$extra_cpp_objs%g
8872 s%@extra_cxx_objs@%$extra_cxx_objs%g
8873 s%@extra_headers_list@%$extra_headers_list%g
8874 s%@extra_objs@%$extra_objs%g
8875 s%@extra_parts@%$extra_parts%g
8876 s%@extra_passes@%$extra_passes%g
8877 s%@extra_programs@%$extra_programs%g
8878 s%@fixinc_defs@%$fixinc_defs%g
8879 s%@float_h_file@%$float_h_file%g
8880 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8881 s%@gcc_version@%$gcc_version%g
8882 s%@gcc_version_trigger@%$gcc_version_trigger%g
8883 s%@host_exeext@%$host_exeext%g
8884 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8885 s%@host_xm_file_list@%$host_xm_file_list%g
8886 s%@install@%$install%g
8887 s%@JAVAGC@%$JAVAGC%g
8888 s%@lang_options_files@%$lang_options_files%g
8889 s%@lang_specs_files@%$lang_specs_files%g
8890 s%@lang_tree_files@%$lang_tree_files%g
8891 s%@local_prefix@%$local_prefix%g
8892 s%@maybe_use_collect2@%$maybe_use_collect2%g
8893 s%@md_file@%$md_file%g
8894 s%@objc_boehm_gc@%$objc_boehm_gc%g
8895 s%@out_file@%$out_file%g
8896 s%@out_object_file@%$out_object_file%g
8897 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8898 s%@symbolic_link@%$symbolic_link%g
8899 s%@thread_file@%$thread_file%g
8900 s%@tm_file_list@%$tm_file_list%g
8901 s%@will_use_collect2@%$will_use_collect2%g
8902 /@target_overrides@/r $target_overrides
8903 s%@target_overrides@%%g
8904 /@host_overrides@/r $host_overrides
8905 s%@host_overrides@%%g
8906 s%@cross_defines@%$cross_defines%g
8907 /@cross_overrides@/r $cross_overrides
8908 s%@cross_overrides@%%g
8909 /@build_overrides@/r $build_overrides
8910 s%@build_overrides@%%g
8911 /@language_fragments@/r $language_fragments
8912 s%@language_fragments@%%g
8913 /@language_hooks@/r $language_hooks
8914 s%@language_hooks@%%g
8919 cat >> $CONFIG_STATUS <<\EOF
8921 # Split the substitutions into bite-sized pieces for seds with
8922 # small command number limits, like on Digital OSF/1 and HP-UX.
8923 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8924 ac_file=1 # Number of current file.
8925 ac_beg=1 # First line for current file.
8926 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8929 while $ac_more_lines; do
8930 if test $ac_beg -gt 1; then
8931 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8933 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8935 if test ! -s conftest.s$ac_file; then
8937 rm -f conftest.s$ac_file
8939 if test -z "$ac_sed_cmds"; then
8940 ac_sed_cmds="sed -f conftest.s$ac_file"
8942 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8944 ac_file=`expr $ac_file + 1`
8946 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8949 if test -z "$ac_sed_cmds"; then
8954 cat >> $CONFIG_STATUS <<EOF
8956 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8958 cat >> $CONFIG_STATUS <<\EOF
8959 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8962 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8963 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8964 *) ac_file_in="${ac_file}.in" ;;
8967 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8969 # Remove last slash and all that follows it. Not all systems have dirname.
8970 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8971 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8972 # The file is in a subdirectory.
8973 test ! -d "$ac_dir" && mkdir "$ac_dir"
8974 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8975 # A "../" for each directory in $ac_dir_suffix.
8976 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8978 ac_dir_suffix= ac_dots=
8981 case "$ac_given_srcdir" in
8983 if test -z "$ac_dots"; then top_srcdir=.
8984 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8985 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8987 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8988 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8992 echo creating "$ac_file"
8994 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8996 *Makefile*) ac_comsub="1i\\
8997 # $configure_input" ;;
9001 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9003 s%@configure_input@%$configure_input%g
9004 s%@srcdir@%$srcdir%g
9005 s%@top_srcdir@%$top_srcdir%g
9006 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9010 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9011 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9013 # ac_d sets the value in "#define NAME VALUE" lines.
9014 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9015 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9018 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9019 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9020 ac_uB='\([ ]\)%\1#\2define\3'
9023 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9024 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9025 ac_eB='$%\1#\2define\3'
9029 if test "${CONFIG_HEADERS+set}" != set; then
9031 cat >> $CONFIG_STATUS <<EOF
9032 CONFIG_HEADERS="auto-host.h:config.in"
9034 cat >> $CONFIG_STATUS <<\EOF
9036 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9037 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9039 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9040 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9041 *) ac_file_in="${ac_file}.in" ;;
9044 echo creating $ac_file
9046 rm -f conftest.frag conftest.in conftest.out
9047 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9048 cat $ac_file_inputs > conftest.in
9052 # Transform confdefs.h into a sed script conftest.vals that substitutes
9053 # the proper values into config.h.in to produce config.h. And first:
9054 # Protect against being on the right side of a sed subst in config.status.
9055 # Protect against being in an unquoted here document in config.status.
9057 cat > conftest.hdr <<\EOF
9060 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9064 sed -n -f conftest.hdr confdefs.h > conftest.vals
9067 # This sed command replaces #undef with comments. This is necessary, for
9068 # example, in the case of _POSIX_SOURCE, which is predefined and required
9069 # on some systems where configure will not decide to define it.
9070 cat >> conftest.vals <<\EOF
9071 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9074 # Break up conftest.vals because some shells have a limit on
9075 # the size of here documents, and old seds have small limits too.
9080 ac_lines=`grep -c . conftest.vals`
9081 # grep -c gives empty output for an empty file on some AIX systems.
9082 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9083 # Write a limited-size here document to conftest.frag.
9084 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9085 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9087 sed -f conftest.frag conftest.in > conftest.out
9089 mv conftest.out conftest.in
9091 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9093 mv conftest.tail conftest.vals
9097 cat >> $CONFIG_STATUS <<\EOF
9098 rm -f conftest.frag conftest.h
9099 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9100 cat conftest.in >> conftest.h
9102 if cmp -s $ac_file conftest.h 2>/dev/null; then
9103 echo "$ac_file is unchanged"
9106 # Remove last slash and all that follows it. Not all systems have dirname.
9107 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9108 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9109 # The file is in a subdirectory.
9110 test ! -d "$ac_dir" && mkdir "$ac_dir"
9113 mv conftest.h $ac_file
9119 cat >> $CONFIG_STATUS <<EOF
9120 ac_sources="$nls_cv_header_libgt"
9121 ac_dests="$nls_cv_header_intl"
9124 cat >> $CONFIG_STATUS <<\EOF
9125 srcdir=$ac_given_srcdir
9126 while test -n "$ac_sources"; do
9127 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9128 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9130 echo "linking $srcdir/$ac_source to $ac_dest"
9132 if test ! -r $srcdir/$ac_source; then
9133 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9137 # Make relative symlinks.
9138 # Remove last slash and all that follows it. Not all systems have dirname.
9139 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9140 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9141 # The dest file is in a subdirectory.
9142 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9143 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9144 # A "../" for each directory in $ac_dest_dir_suffix.
9145 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9147 ac_dest_dir_suffix= ac_dots=
9151 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9152 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9155 # Make a symlink if possible; otherwise try a hard link.
9156 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9157 ln $srcdir/$ac_source $ac_dest; then :
9159 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9163 cat >> $CONFIG_STATUS <<EOF
9169 target_alias='${target_alias}'
9171 subdirs='${subdirs}'
9172 oldstyle_subdirs='${oldstyle_subdirs}'
9173 symbolic_link='${symbolic_link}'
9174 program_transform_set='${program_transform_set}'
9175 program_transform_name='${program_transform_name}'
9176 dep_host_xmake_file='${dep_host_xmake_file}'
9177 host_xmake_file='${host_xmake_file}'
9178 dep_tmake_file='${dep_tmake_file}'
9179 tmake_file='${tmake_file}'
9180 thread_file='${thread_file}'
9181 gcc_version='${gcc_version}'
9182 gcc_version_trigger='${gcc_version_trigger}'
9183 local_prefix='${local_prefix}'
9184 build_install_headers_dir='${build_install_headers_dir}'
9185 build_exeext='${build_exeext}'
9186 host_exeext='${host_exeext}'
9187 out_file='${out_file}'
9188 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9189 SET_MAKE='${SET_MAKE}'
9190 target_list='${target_list}'
9191 target_overrides='${target_overrides}'
9192 host_overrides='${host_overrides}'
9193 cross_defines='${cross_defines}'
9194 cross_overrides='${cross_overrides}'
9195 build_overrides='${build_overrides}'
9196 cpp_install_dir='${cpp_install_dir}'
9199 cat >> $CONFIG_STATUS <<\EOF
9200 case "$CONFIG_FILES" in *po/Makefile.in*)
9201 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9204 . $srcdir/configure.lang
9205 case x$CONFIG_HEADERS in
9206 xauto-host.h:config.in)
9209 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9210 # bootstrapping and the installation procedure can still use
9211 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9212 # FLAGS_TO_PASS has been modified to solve the problem there.
9213 # This is virtually a duplicate of what happens in configure.lang; we do
9214 # an extra check to make sure this only happens if ln -s can be used.
9215 if test "$symbolic_link" = "ln -s"; then
9216 for d in .. ${subdirs} ; do
9217 if test $d != ..; then
9220 for t in stage1 stage2 stage3 stage4 include
9223 $symbolic_link ../$t $t 2>/dev/null
9229 # Avoid having to add intl to our include paths.
9230 if test -f intl/libintl.h; then
9231 echo creating libintl.h
9232 echo '#include "intl/libintl.h"' >libintl.h
9237 chmod +x $CONFIG_STATUS
9238 rm -fr confdefs* $ac_clean_files
9239 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1