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,
95 bindir='${exec_prefix}/bin'
96 sbindir='${exec_prefix}/sbin'
97 libexecdir='${exec_prefix}/libexec'
98 datadir='${prefix}/share'
99 sysconfdir='${prefix}/etc'
100 sharedstatedir='${prefix}/com'
101 localstatedir='${prefix}/var'
102 libdir='${exec_prefix}/lib'
103 includedir='${prefix}/include'
104 oldincludedir='/usr/include'
105 infodir='${prefix}/info'
106 mandir='${prefix}/man'
108 # Initialize some other variables.
111 SHELL=${CONFIG_SHELL-/bin/sh}
112 # Maximum number of lines to put in a shell here document.
119 # If the previous option needs an argument, assign it.
120 if test -n "$ac_prev"; then
121 eval "$ac_prev=\$ac_option"
127 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 # Accept the important Cygnus configure options, so we can diagnose typos.
135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
138 bindir="$ac_optarg" ;;
140 -build | --build | --buil | --bui | --bu)
142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
143 build="$ac_optarg" ;;
145 -cache-file | --cache-file | --cache-fil | --cache-fi \
146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
147 ac_prev=cache_file ;;
148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
150 cache_file="$ac_optarg" ;;
152 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 datadir="$ac_optarg" ;;
158 -disable-* | --disable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}=no" ;;
167 -enable-* | --enable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}='$ac_optarg'" ;;
180 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
181 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
182 | --exec | --exe | --ex)
183 ac_prev=exec_prefix ;;
184 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
185 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
186 | --exec=* | --exe=* | --ex=*)
187 exec_prefix="$ac_optarg" ;;
189 -gas | --gas | --ga | --g)
190 # Obsolete; use --with-gas.
193 -help | --help | --hel | --he)
194 # Omit some internal or obsolete options to make the list less imposing.
195 # This message is too long to be a string in the A/UX 3.1 sh.
197 Usage: configure [options] [host]
198 Options: [defaults in brackets after descriptions]
200 --cache-file=FILE cache test results in FILE
201 --help print this message
202 --no-create do not create output files
203 --quiet, --silent do not print \`checking...' messages
204 --site-file=FILE use FILE as the site file
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host | --host | --hos | --ho)
251 -host=* | --host=* | --hos=* | --ho=*)
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
372 -site=* | --site=* | --sit=*)
375 -site-file | --site-file | --site-fil | --site-fi | --site-f)
377 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
378 sitefile="$ac_optarg" ;;
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
392 -target | --target | --targe | --targ | --tar | --ta | --t)
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=tree.c
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$sitefile"; then
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 CONFIG_SITE="$sitefile"
556 for ac_site_file in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
567 echo "creating cache $cache_file"
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp='$CPP $CPPFLAGS'
574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
589 ac_n= ac_c='\c' ac_t=
597 symbolic_link='ln -s'
600 # Check for bogus environment variables.
601 # Test if LIBRARY_PATH contains the notation for the current directory
602 # since this would lead to problems installing/building glibc.
603 # LIBRARY_PATH contains the current directory if one of the following
605 # - one of the terminals (":" and ";") is the first or last sign
606 # - two terminals occur directly after each other
607 # - the path contains an element with a dot in it
608 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
609 echo "configure:610: checking LIBRARY_PATH variable" >&5
610 case ${LIBRARY_PATH} in
611 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
612 library_path_setting="contains current directory"
615 library_path_setting="ok"
618 echo "$ac_t""$library_path_setting" 1>&6
619 if test "$library_path_setting" != "ok"; then
620 { echo "configure: error:
621 *** LIBRARY_PATH shouldn't contain the current directory when
622 *** building gcc. Please change the environment variable
623 *** and run configure again." 1>&2; exit 1; }
626 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
627 # since this would lead to problems installing/building glibc.
628 # GCC_EXEC_PREFIX contains the current directory if one of the following
630 # - one of the terminals (":" and ";") is the first or last sign
631 # - two terminals occur directly after each other
632 # - the path contains an element with a dot in it
633 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
634 echo "configure:635: checking GCC_EXEC_PREFIX variable" >&5
635 case ${GCC_EXEC_PREFIX} in
636 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
637 gcc_exec_prefix_setting="contains current directory"
640 gcc_exec_prefix_setting="ok"
643 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
644 if test "$gcc_exec_prefix_setting" != "ok"; then
645 { echo "configure: error:
646 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
647 *** building gcc. Please change the environment variable
648 *** and run configure again." 1>&2; exit 1; }
651 # Check for additional parameters
654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
655 if test "${with_gnu_ld+set}" = set; then
656 withval="$with_gnu_ld"
657 gnu_ld_flag="$with_gnu_ld"
663 # With pre-defined ld
664 # Check whether --with-ld or --without-ld was given.
665 if test "${with_ld+set}" = set; then
667 DEFAULT_LINKER="$with_ld"
670 if test x"${DEFAULT_LINKER+set}" = x"set"; then
671 if test ! -x "$DEFAULT_LINKER"; then
672 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
673 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
676 cat >> confdefs.h <<EOF
677 #define DEFAULT_LINKER "$DEFAULT_LINKER"
683 # Check whether --with-gnu-as or --without-gnu-as was given.
684 if test "${with_gnu_as+set}" = set; then
685 withval="$with_gnu_as"
686 gas_flag="$with_gnu_as"
692 # Check whether --with-as or --without-as was given.
693 if test "${with_as+set}" = set; then
695 DEFAULT_ASSEMBLER="$with_as"
698 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
699 if test ! -x "$DEFAULT_ASSEMBLER"; then
700 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
701 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
704 cat >> confdefs.h <<EOF
705 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
711 # Check whether --with-stabs or --without-stabs was given.
712 if test "${with_stabs+set}" = set; then
713 withval="$with_stabs"
721 # Check whether --with-elf or --without-elf was given.
722 if test "${with_elf+set}" = set; then
730 # Specify the local prefix
732 # Check whether --with-local-prefix or --without-local-prefix was given.
733 if test "${with_local_prefix+set}" = set; then
734 withval="$with_local_prefix"
736 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
738 *) local_prefix=$with_local_prefix ;;
743 # Default local prefix if it is empty
744 if test x$local_prefix = x; then
745 local_prefix=/usr/local
748 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
749 # passed in by the toplevel make and thus we'd get different behavior
750 # depending on where we built the sources.
752 # Specify the g++ header file directory
753 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
754 if test "${with_gxx_include_dir+set}" = set; then
755 withval="$with_gxx_include_dir"
757 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
759 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
764 if test x${gcc_gxx_include_dir} = x; then
765 if test x${enable_version_specific_runtime_libs} = xyes; then
766 gcc_gxx_include_dir='${libsubdir}/include/g++'
768 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
769 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
773 # Enable expensive internal checks
774 # Check whether --enable-checking or --disable-checking was given.
775 if test "${enable_checking+set}" = set; then
776 enableval="$enable_checking"
777 case "${enableval}" in
778 yes) cat >> confdefs.h <<\EOF
779 #define ENABLE_CHECKING 1
783 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
788 # Check whether --enable-cpp or --disable-cpp was given.
789 if test "${enable_cpp+set}" = set; then
790 enableval="$enable_cpp"
797 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
798 if test "${with_cpp_install_dir+set}" = set; then
799 withval="$with_cpp_install_dir"
800 if test x$withval = xyes; then
801 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
802 elif test x$withval != xno; then
803 cpp_install_dir=$withval
808 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
810 # Check whether --enable-cpplib or --disable-cpplib was given.
811 if test "${enable_cpplib+set}" = set; then
812 enableval="$enable_cpplib"
813 if test x$enable_cpplib != xno; then
819 # Link cpplib into the compiler proper, for C/C++/ObjC.
820 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
821 if test "${enable_c_cpplib+set}" = set; then
822 enableval="$enable_c_cpplib"
823 if test x$enable_c_cpplib != xno; then
824 extra_c_objs="${extra_c_objs} libcpp.a"
825 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
826 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
832 # Enable Multibyte Characters for C/C++
833 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
834 if test "${enable_c_mbchar+set}" = set; then
835 enableval="$enable_c_mbchar"
836 if test x$enable_c_mbchar != xno; then
837 extra_c_flags=-DMULTIBYTE_CHARS=1
842 # Disable fast fixincludes
843 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
844 if test "${enable_fast_fixincludes+set}" = set; then
845 enableval="$enable_fast_fixincludes"
846 if test x$enable_fast_fixincludes = xno ; then
847 cp $srcdir/fixincludes ./fixinc.sh
852 # Enable Haifa scheduler.
853 # Check whether --enable-haifa or --disable-haifa was given.
854 if test "${enable_haifa+set}" = set; then
855 enableval="$enable_haifa"
861 # Pass with no value to take the default
862 # Pass with a value to specify a thread package
863 # Check whether --enable-threads or --disable-threads was given.
864 if test "${enable_threads+set}" = set; then
865 enableval="$enable_threads"
866 if test x$enable_threads = xno; then
874 enable_threads_flag=$enable_threads
875 # Check if a valid thread package
876 case x${enable_threads_flag} in
879 target_thread_file='single'
883 target_thread_file=''
885 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
886 xsolaris | xwin32 | xdce | xvxworks)
887 target_thread_file=$enable_threads_flag
890 echo "$enable_threads is an unknown thread package" 1>&2
895 # Check whether --enable-objc-gc or --disable-objc-gc was given.
896 if test "${enable_objc_gc+set}" = set; then
897 enableval="$enable_objc_gc"
898 if [ x$enable_objc_gc = xno ]; then
908 # Check whether --enable-java-gc or --disable-java-gc was given.
909 if test "${enable_java_gc+set}" = set; then
910 enableval="$enable_java_gc"
918 # Check whether --with-dwarf2 or --without-dwarf2 was given.
919 if test "${with_dwarf2+set}" = set; then
920 withval="$with_dwarf2"
921 dwarf2="$with_dwarf2"
927 # Determine the host, build, and target systems
929 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
930 if test -f $ac_dir/install-sh; then
932 ac_install_sh="$ac_aux_dir/install-sh -c"
934 elif test -f $ac_dir/install.sh; then
936 ac_install_sh="$ac_aux_dir/install.sh -c"
940 if test -z "$ac_aux_dir"; then
941 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
943 ac_config_guess=$ac_aux_dir/config.guess
944 ac_config_sub=$ac_aux_dir/config.sub
945 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
948 # Do some error checking and defaulting for the host and target type.
950 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
953 # 1. You are not allowed to specify --host, --target, and nonopt at the
955 # 2. Host defaults to nonopt.
956 # 3. If nonopt is not specified, then host defaults to the current host,
957 # as determined by config.guess.
958 # 4. Target and build default to nonopt.
959 # 5. If nonopt is not specified, then target and build default to host.
961 # The aliases save the names the user supplied, while $host etc.
962 # will get canonicalized.
963 case $host---$target---$nonopt in
964 NONE---*---* | *---NONE---* | *---*---NONE) ;;
965 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
969 # Make sure we can run config.sub.
970 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
971 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
974 echo $ac_n "checking host system type""... $ac_c" 1>&6
975 echo "configure:976: checking host system type" >&5
978 case "$host_alias" in
982 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
983 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
985 *) host_alias=$nonopt ;;
989 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
990 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo "$ac_t""$host" 1>&6
995 echo $ac_n "checking target system type""... $ac_c" 1>&6
996 echo "configure:997: checking target system type" >&5
999 case "$target_alias" in
1002 NONE) target_alias=$host_alias ;;
1003 *) target_alias=$nonopt ;;
1007 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1008 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1009 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1010 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1011 echo "$ac_t""$target" 1>&6
1013 echo $ac_n "checking build system type""... $ac_c" 1>&6
1014 echo "configure:1015: checking build system type" >&5
1017 case "$build_alias" in
1020 NONE) build_alias=$host_alias ;;
1021 *) build_alias=$nonopt ;;
1025 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1026 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1027 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1028 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1029 echo "$ac_t""$build" 1>&6
1031 test "$host_alias" != "$target_alias" &&
1032 test "$program_prefix$program_suffix$program_transform_name" = \
1034 program_prefix=${target_alias}-
1037 # Find the native compiler
1038 # Extract the first word of "gcc", so it can be a program name with args.
1039 set dummy gcc; ac_word=$2
1040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1041 echo "configure:1042: checking for $ac_word" >&5
1042 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 if test -n "$CC"; then
1046 ac_cv_prog_CC="$CC" # Let the user override the test.
1048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1050 for ac_dir in $ac_dummy; do
1051 test -z "$ac_dir" && ac_dir=.
1052 if test -f $ac_dir/$ac_word; then
1061 if test -n "$CC"; then
1062 echo "$ac_t""$CC" 1>&6
1064 echo "$ac_t""no" 1>&6
1067 if test -z "$CC"; then
1068 # Extract the first word of "cc", so it can be a program name with args.
1069 set dummy cc; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC="$CC" # Let the user override the test.
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1084 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1085 ac_prog_rejected=yes
1093 if test $ac_prog_rejected = yes; then
1094 # We found a bogon in the path, so make sure we never use it.
1095 set dummy $ac_cv_prog_CC
1097 if test $# -gt 0; then
1098 # We chose a different compiler from the bogus one.
1099 # However, it has the same basename, so the bogon will be chosen
1100 # first if we set CC to just the basename; use the full file name.
1102 set dummy "$ac_dir/$ac_word" "$@"
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1113 echo "$ac_t""no" 1>&6
1116 if test -z "$CC"; then
1117 case "`uname -s`" in
1119 # Extract the first word of "cl", so it can be a program name with args.
1120 set dummy cl; ac_word=$2
1121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1122 echo "configure:1123: checking for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 if test -n "$CC"; then
1127 ac_cv_prog_CC="$CC" # Let the user override the test.
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1131 for ac_dir in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1145 echo "$ac_t""no" 1>&6
1150 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1153 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1158 ac_cpp='$CPP $CPPFLAGS'
1159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1160 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1161 cross_compiling=$ac_cv_prog_cc_cross
1163 cat > conftest.$ac_ext << EOF
1165 #line 1166 "configure"
1166 #include "confdefs.h"
1170 if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1171 ac_cv_prog_cc_works=yes
1172 # If we can't run a trivial program, we are probably using a cross compiler.
1173 if (./conftest; exit) 2>/dev/null; then
1174 ac_cv_prog_cc_cross=no
1176 ac_cv_prog_cc_cross=yes
1179 echo "configure: failed program was:" >&5
1180 cat conftest.$ac_ext >&5
1181 ac_cv_prog_cc_works=no
1185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1186 ac_cpp='$CPP $CPPFLAGS'
1187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1189 cross_compiling=$ac_cv_prog_cc_cross
1191 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1192 if test $ac_cv_prog_cc_works = no; then
1193 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1195 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1197 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1198 cross_compiling=$ac_cv_prog_cc_cross
1200 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether we are using GNU C" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 cat > conftest.c <<EOF
1210 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1217 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1219 if test $ac_cv_prog_gcc = yes; then
1225 ac_test_CFLAGS="${CFLAGS+set}"
1226 ac_save_CFLAGS="$CFLAGS"
1228 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether ${CC-cc} accepts -g" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 echo 'void f(){}' > conftest.c
1234 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1243 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1244 if test "$ac_test_CFLAGS" = set; then
1245 CFLAGS="$ac_save_CFLAGS"
1246 elif test $ac_cv_prog_cc_g = yes; then
1247 if test "$GCC" = yes; then
1253 if test "$GCC" = yes; then
1261 # If the native compiler is GCC, we can enable warnings even in stage1.
1262 # That's useful for people building cross-compilers, or just running a
1264 if test "x$GCC" = "xyes"; then
1265 stage1_warn_cflags='$(WARN_CFLAGS)'
1267 stage1_warn_cflags=""
1271 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether ${MAKE-make} sets \${MAKE}" >&5
1273 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1274 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 cat > conftestmake <<\EOF
1279 @echo 'ac_maketemp="${MAKE}"'
1281 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1282 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1283 if test -n "$ac_maketemp"; then
1284 eval ac_cv_prog_make_${ac_make}_set=yes
1286 eval ac_cv_prog_make_${ac_make}_set=no
1290 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1291 echo "$ac_t""yes" 1>&6
1294 echo "$ac_t""no" 1>&6
1295 SET_MAKE="MAKE=${MAKE-make}"
1299 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether a default assembler was specified" >&5
1301 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1302 if test x"$gas_flag" = x"no"; then
1303 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1305 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1308 echo "$ac_t""no" 1>&6
1311 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1312 echo "configure:1313: checking whether a default linker was specified" >&5
1313 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1314 if test x"$gnu_ld_flag" = x"no"; then
1315 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1317 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1320 echo "$ac_t""no" 1>&6
1323 # Find some useful tools
1324 for ac_prog in mawk gawk nawk awk
1326 # Extract the first word of "$ac_prog", so it can be a program name with args.
1327 set dummy $ac_prog; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 if test -n "$AWK"; then
1334 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1338 for ac_dir in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_prog_AWK="$ac_prog"
1348 AWK="$ac_cv_prog_AWK"
1349 if test -n "$AWK"; then
1350 echo "$ac_t""$AWK" 1>&6
1352 echo "$ac_t""no" 1>&6
1355 test -n "$AWK" && break
1358 # Extract the first word of "flex", so it can be a program name with args.
1359 set dummy flex; ac_word=$2
1360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1361 echo "configure:1362: checking for $ac_word" >&5
1362 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1365 if test -n "$LEX"; then
1366 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1370 for ac_dir in $ac_dummy; do
1371 test -z "$ac_dir" && ac_dir=.
1372 if test -f $ac_dir/$ac_word; then
1373 ac_cv_prog_LEX="flex"
1378 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1381 LEX="$ac_cv_prog_LEX"
1382 if test -n "$LEX"; then
1383 echo "$ac_t""$LEX" 1>&6
1385 echo "$ac_t""no" 1>&6
1388 if test -z "$LEXLIB"
1394 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1395 echo "configure:1396: checking for yywrap in -l$ac_lib" >&5
1396 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 ac_save_LIBS="$LIBS"
1401 LIBS="-l$ac_lib $LIBS"
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 /* Override any gcc2 internal prototype to avoid an error. */
1406 /* We use char because int might match the return type of a gcc2
1407 builtin and then its argument prototype would still apply. */
1414 if { (eval echo configure:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1416 eval "ac_cv_lib_$ac_lib_var=yes"
1418 echo "configure: failed program was:" >&5
1419 cat conftest.$ac_ext >&5
1421 eval "ac_cv_lib_$ac_lib_var=no"
1424 LIBS="$ac_save_LIBS"
1427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1428 echo "$ac_t""yes" 1>&6
1431 echo "$ac_t""no" 1>&6
1436 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1437 echo "configure:1438: checking whether ln works" >&5
1438 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 rm -f conftestdata_t
1442 echo >conftestdata_f
1443 if ln conftestdata_f conftestdata_t 2>/dev/null
1447 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1449 gcc_cv_prog_LN="ln -s"
1454 rm -f conftestdata_f conftestdata_t
1457 LN="$gcc_cv_prog_LN"
1458 if test "$gcc_cv_prog_LN" = "ln"; then
1459 echo "$ac_t""yes" 1>&6
1461 if test "$gcc_cv_prog_LN" = "ln -s"; then
1462 echo "$ac_t""no, using ln -s" 1>&6
1464 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1468 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1469 echo "configure:1470: checking whether ln -s works" >&5
1470 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 rm -f conftestdata_t
1474 echo >conftestdata_f
1475 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1477 gcc_cv_prog_LN_S="ln -s"
1479 if ln conftestdata_f conftestdata_t 2>/dev/null
1486 rm -f conftestdata_f conftestdata_t
1489 LN_S="$gcc_cv_prog_LN_S"
1490 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1491 echo "$ac_t""yes" 1>&6
1493 if test "$gcc_cv_prog_LN_S" = "ln"; then
1494 echo "$ac_t""no, using ln" 1>&6
1496 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1500 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1501 echo "configure:1502: checking for volatile" >&5
1502 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1513 if { (eval echo configure:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1515 gcc_cv_c_volatile=yes
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 gcc_cv_c_volatile=no
1525 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1526 if test $gcc_cv_c_volatile = yes ; then
1527 cat >> confdefs.h <<\EOF
1528 #define HAVE_VOLATILE 1
1533 # Extract the first word of "ranlib", so it can be a program name with args.
1534 set dummy ranlib; ac_word=$2
1535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1536 echo "configure:1537: checking for $ac_word" >&5
1537 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1540 if test -n "$RANLIB"; then
1541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1545 for ac_dir in $ac_dummy; do
1546 test -z "$ac_dir" && ac_dir=.
1547 if test -f $ac_dir/$ac_word; then
1548 ac_cv_prog_RANLIB="ranlib"
1553 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1556 RANLIB="$ac_cv_prog_RANLIB"
1557 if test -n "$RANLIB"; then
1558 echo "$ac_t""$RANLIB" 1>&6
1560 echo "$ac_t""no" 1>&6
1563 for ac_prog in 'bison -y' byacc
1565 # Extract the first word of "$ac_prog", so it can be a program name with args.
1566 set dummy $ac_prog; ac_word=$2
1567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1568 echo "configure:1569: checking for $ac_word" >&5
1569 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 if test -n "$YACC"; then
1573 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1577 for ac_dir in $ac_dummy; do
1578 test -z "$ac_dir" && ac_dir=.
1579 if test -f $ac_dir/$ac_word; then
1580 ac_cv_prog_YACC="$ac_prog"
1587 YACC="$ac_cv_prog_YACC"
1588 if test -n "$YACC"; then
1589 echo "$ac_t""$YACC" 1>&6
1591 echo "$ac_t""no" 1>&6
1594 test -n "$YACC" && break
1596 test -n "$YACC" || YACC="yacc"
1598 # Find a good install program. We prefer a C program (faster),
1599 # so one script is as good as another. But avoid the broken or
1600 # incompatible versions:
1601 # SysV /etc/install, /usr/sbin/install
1602 # SunOS /usr/etc/install
1603 # IRIX /sbin/install
1605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1607 # ./install, which can be erroneously created by make from ./install.sh.
1608 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1609 echo "configure:1610: checking for a BSD compatible install" >&5
1610 if test -z "$INSTALL"; then
1611 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1615 for ac_dir in $PATH; do
1616 # Account for people who put trailing slashes in PATH elements.
1618 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1620 # OSF1 and SCO ODT 3.0 have their own names for install.
1621 for ac_prog in ginstall scoinst install; do
1622 if test -f $ac_dir/$ac_prog; then
1623 if test $ac_prog = install &&
1624 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1625 # AIX install. It has an incompatible calling convention.
1626 # OSF/1 installbsd also uses dspmsg, but is usable.
1629 ac_cv_path_install="$ac_dir/$ac_prog -c"
1640 if test "${ac_cv_path_install+set}" = set; then
1641 INSTALL="$ac_cv_path_install"
1643 # As a last resort, use the slow shell script. We don't cache a
1644 # path for INSTALL within a source directory, because that will
1645 # break other packages using the cache if that directory is
1646 # removed, or if the path is relative.
1647 INSTALL="$ac_install_sh"
1650 echo "$ac_t""$INSTALL" 1>&6
1652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1653 # It thinks the first close brace ends the variable substitution.
1654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1659 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1660 echo "configure:1661: checking how to run the C preprocessor" >&5
1661 # On Suns, sometimes $CPP names a directory.
1662 if test -n "$CPP" && test -d "$CPP"; then
1665 if test -z "$CPP"; then
1666 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 # This must be in double quotes, not single quotes, because CPP may get
1670 # substituted into the Makefile and "${CC-cc}" will confuse make.
1672 # On the NeXT, cc -E runs the code through the compiler's parser,
1673 # not just through cpp.
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1681 { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1683 if test -z "$ac_err"; then
1687 echo "configure: failed program was:" >&5
1688 cat conftest.$ac_ext >&5
1690 CPP="${CC-cc} -E -traditional-cpp"
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1698 { (eval echo configure:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1700 if test -z "$ac_err"; then
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 CPP="${CC-cc} -nologo -E"
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1715 { (eval echo configure:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1717 if test -z "$ac_err"; then
1721 echo "configure: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1731 ac_cv_prog_CPP="$CPP"
1733 CPP="$ac_cv_prog_CPP"
1735 ac_cv_prog_CPP="$CPP"
1737 echo "$ac_t""$CPP" 1>&6
1739 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1740 echo "configure:1741: checking for ANSI C header files" >&5
1741 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 cat > conftest.$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1753 { (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1755 if test -z "$ac_err"; then
1757 ac_cv_header_stdc=yes
1760 echo "configure: failed program was:" >&5
1761 cat conftest.$ac_ext >&5
1763 ac_cv_header_stdc=no
1767 if test $ac_cv_header_stdc = yes; then
1768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1775 egrep "memchr" >/dev/null 2>&1; then
1779 ac_cv_header_stdc=no
1785 if test $ac_cv_header_stdc = yes; then
1786 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1787 cat > conftest.$ac_ext <<EOF
1788 #line 1789 "configure"
1789 #include "confdefs.h"
1792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1793 egrep "free" >/dev/null 2>&1; then
1797 ac_cv_header_stdc=no
1803 if test $ac_cv_header_stdc = yes; then
1804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1805 if test "$cross_compiling" = yes; then
1808 cat > conftest.$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1812 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1813 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1815 int main () { int i; for (i = 0; i < 256; i++)
1816 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1820 if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1824 echo "configure: failed program was:" >&5
1825 cat conftest.$ac_ext >&5
1827 ac_cv_header_stdc=no
1835 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1836 if test $ac_cv_header_stdc = yes; then
1837 cat >> confdefs.h <<\EOF
1838 #define STDC_HEADERS 1
1843 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1844 echo "configure:1845: checking whether time.h and sys/time.h may both be included" >&5
1845 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1851 #include <sys/types.h>
1852 #include <sys/time.h>
1858 if { (eval echo configure:1859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1860 ac_cv_header_time=yes
1862 echo "configure: failed program was:" >&5
1863 cat conftest.$ac_ext >&5
1865 ac_cv_header_time=no
1870 echo "$ac_t""$ac_cv_header_time" 1>&6
1871 if test $ac_cv_header_time = yes; then
1872 cat >> confdefs.h <<\EOF
1873 #define TIME_WITH_SYS_TIME 1
1878 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1879 echo "configure:1880: checking whether string.h and strings.h may both be included" >&5
1880 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1887 #include <strings.h>
1892 if { (eval echo configure:1893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1894 gcc_cv_header_string=yes
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 gcc_cv_header_string=no
1904 echo "$ac_t""$gcc_cv_header_string" 1>&6
1905 if test $gcc_cv_header_string = yes; then
1906 cat >> confdefs.h <<\EOF
1907 #define STRING_WITH_STRINGS 1
1912 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1913 echo "configure:1914: checking for sys/wait.h that is POSIX.1 compatible" >&5
1914 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 #include <sys/types.h>
1921 #include <sys/wait.h>
1923 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1926 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1931 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1934 if { (eval echo configure:1935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1936 ac_cv_header_sys_wait_h=yes
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 ac_cv_header_sys_wait_h=no
1946 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1947 if test $ac_cv_header_sys_wait_h = yes; then
1948 cat >> confdefs.h <<\EOF
1949 #define HAVE_SYS_WAIT_H 1
1954 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
1956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1958 echo "configure:1959: checking for $ac_hdr" >&5
1959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1960 echo $ac_n "(cached) $ac_c" 1>&6
1962 cat > conftest.$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1968 { (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1970 if test -z "$ac_err"; then
1972 eval "ac_cv_header_$ac_safe=yes"
1975 echo "configure: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1978 eval "ac_cv_header_$ac_safe=no"
1982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1983 echo "$ac_t""yes" 1>&6
1984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1985 cat >> confdefs.h <<EOF
1986 #define $ac_tr_hdr 1
1990 echo "$ac_t""no" 1>&6
1995 # Check for thread headers.
1996 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
1997 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1998 echo "configure:1999: checking for thread.h" >&5
1999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 cat > conftest.$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then
2012 eval "ac_cv_header_$ac_safe=yes"
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 eval "ac_cv_header_$ac_safe=no"
2022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2023 echo "$ac_t""yes" 1>&6
2026 echo "$ac_t""no" 1>&6
2030 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2031 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2032 echo "configure:2033: checking for pthread.h" >&5
2033 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <pthread.h>
2041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2042 { (eval echo configure:2043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2044 if test -z "$ac_err"; then
2046 eval "ac_cv_header_$ac_safe=yes"
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2052 eval "ac_cv_header_$ac_safe=no"
2056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2057 echo "$ac_t""yes" 1>&6
2060 echo "$ac_t""no" 1>&6
2065 # See if GNAT has been installed
2066 # Extract the first word of "gnatbind", so it can be a program name with args.
2067 set dummy gnatbind; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 if test -n "$gnat"; then
2074 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2078 for ac_dir in $ac_dummy; do
2079 test -z "$ac_dir" && ac_dir=.
2080 if test -f $ac_dir/$ac_word; then
2081 ac_cv_prog_gnat="yes"
2086 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2089 gnat="$ac_cv_prog_gnat"
2090 if test -n "$gnat"; then
2091 echo "$ac_t""$gnat" 1>&6
2093 echo "$ac_t""no" 1>&6
2097 # See if the system preprocessor understands the ANSI C preprocessor
2098 # stringification operator.
2099 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2100 echo "configure:2101: checking whether cpp understands the stringify operator" >&5
2101 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2110 char *test = S(foo);
2113 if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2115 gcc_cv_c_have_stringify=yes
2117 echo "configure: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2120 gcc_cv_c_have_stringify=no
2125 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2126 if test $gcc_cv_c_have_stringify = yes; then
2127 cat >> confdefs.h <<\EOF
2128 #define HAVE_CPP_STRINGIFY 1
2133 # Use <inttypes.h> only if it exists,
2134 # doesn't clash with <sys/types.h>, and declares intmax_t.
2135 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2136 echo "configure:2137: checking for inttypes.h" >&5
2137 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2143 #include <sys/types.h>
2144 #include <inttypes.h>
2149 if { (eval echo configure:2150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2151 gcc_cv_header_inttypes_h=yes
2153 echo "configure: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2156 gcc_cv_header_inttypes_h=no
2161 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2162 if test $gcc_cv_header_inttypes_h = yes; then
2163 cat >> confdefs.h <<\EOF
2164 #define HAVE_INTTYPES_H 1
2169 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2170 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2171 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_func" >&5
2176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 /* System header to define __stub macros and hopefully few prototypes,
2183 which can conflict with char $ac_func(); below. */
2185 /* Override any gcc2 internal prototype to avoid an error. */
2186 /* We use char because int might match the return type of a gcc2
2187 builtin and then its argument prototype would still apply. */
2192 /* The GNU C library defines this for functions which it implements
2193 to always fail with ENOSYS. Some functions are actually named
2194 something starting with __ and the normal name is an alias. */
2195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2203 if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2205 eval "ac_cv_func_$ac_func=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2210 eval "ac_cv_func_$ac_func=no"
2215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2218 cat >> confdefs.h <<EOF
2219 #define $ac_tr_func 1
2223 echo "$ac_t""no" 1>&6
2228 # Make sure wchar_t is available
2229 #AC_CHECK_TYPE(wchar_t, unsigned int)
2231 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2232 echo "configure:2233: checking for vprintf" >&5
2233 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 /* System header to define __stub macros and hopefully few prototypes,
2240 which can conflict with char vprintf(); below. */
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2249 /* The GNU C library defines this for functions which it implements
2250 to always fail with ENOSYS. Some functions are actually named
2251 something starting with __ and the normal name is an alias. */
2252 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2260 if { (eval echo configure:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 eval "ac_cv_func_vprintf=yes"
2264 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2267 eval "ac_cv_func_vprintf=no"
2272 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 cat >> confdefs.h <<\EOF
2275 #define HAVE_VPRINTF 1
2279 echo "$ac_t""no" 1>&6
2282 if test "$ac_cv_func_vprintf" != yes; then
2283 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2284 echo "configure:2285: checking for _doprnt" >&5
2285 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* System header to define __stub macros and hopefully few prototypes,
2292 which can conflict with char _doprnt(); below. */
2294 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2314 eval "ac_cv_func__doprnt=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 eval "ac_cv_func__doprnt=no"
2324 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 cat >> confdefs.h <<\EOF
2327 #define HAVE_DOPRNT 1
2331 echo "$ac_t""no" 1>&6
2338 if test $ac_cv_func_vprintf != yes ; then
2340 if test $ac_cv_func__doprnt != yes ; then
2347 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2348 echo "configure:2349: checking whether the printf functions support %p" >&5
2349 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 if test "$cross_compiling" = yes; then
2353 gcc_cv_func_printf_ptr=no
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2363 char *p = buf, *q = NULL;
2364 sprintf(buf, "%p", p);
2365 sscanf(buf, "%p", &q);
2369 if { (eval echo configure:2370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2371 gcc_cv_func_printf_ptr=yes
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2376 gcc_cv_func_printf_ptr=no
2381 rm -f core core.* *.core
2384 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2385 if test $gcc_cv_func_printf_ptr = yes ; then
2386 cat >> confdefs.h <<\EOF
2387 #define HAVE_PRINTF_PTR 1
2395 # Under some versions of uwin, vfork is notoriously buggy and the test
2396 # can hang configure; on other versions, vfork exists just as a stub.
2397 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2398 ac_cv_func_vfork_works=no
2401 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2402 echo "configure:2403: checking for pid_t" >&5
2403 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 #include <sys/types.h>
2415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2416 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2418 ac_cv_type_pid_t=yes
2426 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2427 if test $ac_cv_type_pid_t = no; then
2428 cat >> confdefs.h <<\EOF
2434 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2435 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2436 echo "configure:2437: checking for vfork.h" >&5
2437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2446 { (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2448 if test -z "$ac_err"; then
2450 eval "ac_cv_header_$ac_safe=yes"
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2456 eval "ac_cv_header_$ac_safe=no"
2460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 cat >> confdefs.h <<\EOF
2463 #define HAVE_VFORK_H 1
2467 echo "$ac_t""no" 1>&6
2470 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2471 echo "configure:2472: checking for working vfork" >&5
2472 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 if test "$cross_compiling" = yes; then
2476 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2477 echo "configure:2478: checking for vfork" >&5
2478 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2484 /* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char vfork(); below. */
2487 /* Override any gcc2 internal prototype to avoid an error. */
2488 /* We use char because int might match the return type of a gcc2
2489 builtin and then its argument prototype would still apply. */
2494 /* The GNU C library defines this for functions which it implements
2495 to always fail with ENOSYS. Some functions are actually named
2496 something starting with __ and the normal name is an alias. */
2497 #if defined (__stub_vfork) || defined (__stub___vfork)
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 eval "ac_cv_func_vfork=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2512 eval "ac_cv_func_vfork=no"
2517 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2518 echo "$ac_t""yes" 1>&6
2521 echo "$ac_t""no" 1>&6
2524 ac_cv_func_vfork_works=$ac_cv_func_vfork
2526 cat > conftest.$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2529 /* Thanks to Paul Eggert for this test. */
2531 #include <sys/types.h>
2532 #include <sys/stat.h>
2533 #ifdef HAVE_UNISTD_H
2539 /* On some sparc systems, changes by the child to local and incoming
2540 argument registers are propagated back to the parent.
2541 The compiler is told about this with #include <vfork.h>,
2542 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2543 Test for this by using a static variable whose address
2544 is put into a register that is clobbered by the vfork. */
2547 sparc_address_test (int arg)
2549 sparc_address_test (arg) int arg;
2567 pid_t parent = getpid ();
2570 sparc_address_test ();
2575 /* Here is another test for sparc vfork register problems.
2576 This test uses lots of local variables, at least
2577 as many local variables as main has allocated so far
2578 including compiler temporaries. 4 locals are enough for
2579 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2580 A buggy compiler should reuse the register of parent
2581 for one of the local variables, since it will think that
2582 parent can't possibly be used any more in this routine.
2583 Assigning to the local variable will thus munge parent
2584 in the parent process. */
2586 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2587 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2588 /* Convince the compiler that p..p7 are live; otherwise, it might
2589 use the same hardware register for all 8 local variables. */
2590 if (p != p1 || p != p2 || p != p3 || p != p4
2591 || p != p5 || p != p6 || p != p7)
2594 /* On some systems (e.g. IRIX 3.3),
2595 vfork doesn't separate parent from child file descriptors.
2596 If the child closes a descriptor before it execs or exits,
2597 this munges the parent's descriptor as well.
2598 Test for this by closing stdout in the child. */
2599 _exit(close(fileno(stdout)) != 0);
2604 while (wait(&status) != child)
2607 /* Was there some problem with vforking? */
2610 /* Did the child fail? (This shouldn't happen.) */
2613 /* Did the vfork/compiler bug occur? */
2614 || parent != getpid()
2616 /* Did the file descriptor bug occur? */
2617 || fstat(fileno(stdout), &st) != 0
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2624 ac_cv_func_vfork_works=yes
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2629 ac_cv_func_vfork_works=no
2636 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2637 if test $ac_cv_func_vfork_works = no; then
2638 cat >> confdefs.h <<\EOF
2645 for ac_func in malloc realloc calloc free bcopy bzero bcmp \
2646 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2647 strsignal putc_unlocked fputs_unlocked strstr
2649 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2650 echo "configure:2651: checking whether $ac_func must be declared" >&5
2651 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2659 #ifdef STRING_WITH_STRINGS
2660 # include <string.h>
2661 # include <strings.h>
2663 # ifdef HAVE_STRING_H
2664 # include <string.h>
2666 # ifdef HAVE_STRINGS_H
2667 # include <strings.h>
2671 #ifdef HAVE_STDLIB_H
2674 #ifdef HAVE_UNISTD_H
2678 #define rindex strrchr
2681 #define index strchr
2685 char *(*pfn) = (char *(*)) $ac_func
2688 if { (eval echo configure:2689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2690 eval "gcc_cv_decl_needed_$ac_func=no"
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2695 eval "gcc_cv_decl_needed_$ac_func=yes"
2700 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2701 echo "$ac_t""yes" 1>&6
2702 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2703 cat >> confdefs.h <<EOF
2704 #define $gcc_tr_decl 1
2708 echo "$ac_t""no" 1>&6
2714 for ac_func in getrlimit setrlimit
2716 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2717 echo "configure:2718: checking whether $ac_func must be declared" >&5
2718 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2726 #ifdef STRING_WITH_STRINGS
2727 # include <string.h>
2728 # include <strings.h>
2730 # ifdef HAVE_STRING_H
2731 # include <string.h>
2733 # ifdef HAVE_STRINGS_H
2734 # include <strings.h>
2738 #ifdef HAVE_STDLIB_H
2741 #ifdef HAVE_UNISTD_H
2745 #define rindex strrchr
2748 #define index strchr
2750 #include <sys/types.h>
2751 #ifdef HAVE_SYS_RESOURCE_H
2752 #include <sys/resource.h>
2756 char *(*pfn) = (char *(*)) $ac_func
2759 if { (eval echo configure:2760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2761 eval "gcc_cv_decl_needed_$ac_func=no"
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 eval "gcc_cv_decl_needed_$ac_func=yes"
2771 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2774 cat >> confdefs.h <<EOF
2775 #define $gcc_tr_decl 1
2779 echo "$ac_t""no" 1>&6
2785 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2786 echo "configure:2787: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2787 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 #include <sys/types.h>
2795 /* NetBSD declares sys_siglist in unistd.h. */
2796 #ifdef HAVE_UNISTD_H
2800 char *msg = *(sys_siglist + 1);
2803 if { (eval echo configure:2804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2805 ac_cv_decl_sys_siglist=yes
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2810 ac_cv_decl_sys_siglist=no
2815 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2816 if test $ac_cv_decl_sys_siglist = yes; then
2817 cat >> confdefs.h <<\EOF
2818 #define SYS_SIGLIST_DECLARED 1
2824 # mkdir takes a single argument on some systems.
2825 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2826 echo "configure:2827: checking if mkdir takes one argument" >&5
2827 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2834 #include <sys/types.h>
2835 #ifdef HAVE_SYS_STAT_H
2836 # include <sys/stat.h>
2838 #ifdef HAVE_UNISTD_H
2839 # include <unistd.h>
2841 #ifdef HAVE_DIRECT_H
2842 # include <direct.h>
2848 if { (eval echo configure:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2850 gcc_cv_mkdir_takes_one_arg=no
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2855 gcc_cv_mkdir_takes_one_arg=yes
2860 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2861 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2862 cat >> confdefs.h <<\EOF
2863 #define MKDIR_TAKES_ONE_ARG 1
2877 build_install_headers_dir=install-headers-tar
2882 host_truncate_target=
2885 # Decode the host machine, then the target machine.
2886 # For the host machine, we save the xm_file variable as host_xm_file;
2887 # then we decode the target machine and forget everything else
2888 # that came from the host machine.
2889 for machine in $build $host $target; do
2903 # Set this to force installation and use of collect2.
2905 # Set this to override the default target model.
2907 # Set this to control how the header file directory is installed.
2908 install_headers_dir=install-headers-tar
2909 # Set this to a non-empty list of args to pass to cpp if the target
2910 # wants its .md file passed through cpp.
2912 # Set this if directory names should be truncated to 14 characters.
2914 # Set this if gdb needs a dir command with `dirname $out_file`
2915 gdb_needs_out_file_path=
2916 # Set this if the build machine requires executables to have a
2919 # Set this to control which thread package will be used.
2921 # Reinitialize these from the flag values every loop pass, since some
2922 # configure entries modify them.
2924 gnu_ld="$gnu_ld_flag"
2925 enable_threads=$enable_threads_flag
2927 # Set default cpu_type, tm_file and xm_file so it can be updated in
2928 # each machine entry.
2929 cpu_type=`echo $machine | sed 's/-.*$//'`
2963 tm_file=${cpu_type}/${cpu_type}.h
2964 xm_file=${cpu_type}/xm-${cpu_type}.h
2966 # Common parts for linux-gnu and openbsd systems
2969 xm_defines="HAVE_ATEXIT POSIX BSTRING"
2972 tm_file=${cpu_type}/openbsd.h
2973 tmake_file="t-libc-ok t-openbsd"
2974 # avoid surprises, always provide an xm-openbsd file
2975 xm_file=${cpu_type}/xm-openbsd.h
2976 # don't depend on processor x-fragments as well
2978 if test x$enable_threads = xyes; then
2980 tmake_file="${tmake_file} t-openbsd-thread"
2986 # Support site-specific machine types.
2988 cpu_type=`echo $machine | sed -e 's/-.*//'`
2989 rest=`echo $machine | sed -e "s/$cpu_type-//"`
2990 xm_file=${cpu_type}/xm-$rest.h
2991 tm_file=${cpu_type}/$rest.h
2992 if test -f $srcdir/config/${cpu_type}/x-$rest; \
2993 then xmake_file=${cpu_type}/x-$rest; \
2996 if test -f $srcdir/config/${cpu_type}/t-$rest; \
2997 then tmake_file=${cpu_type}/t-$rest; \
3003 a29k-*-bsd* | a29k-*-sym1*)
3004 tm_file="${tm_file} a29k/unix.h"
3006 xmake_file=a29k/x-unix
3009 a29k-*-udi | a29k-*-coff)
3010 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3011 tmake_file=a29k/t-a29kbare
3014 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3015 tmake_file=a29k/t-vx29k
3016 extra_parts="crtbegin.o crtend.o"
3017 thread_file='vxworks'
3019 a29k-*-*) # Default a29k environment.
3023 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3025 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3026 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3028 # GAS + IEEE_CONFORMANT
3029 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3031 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3032 xmake_file="x-interix alpha/t-pe"
3033 tmake_file="alpha/t-interix alpha/t-ieee"
3034 if test x$enable_threads = xyes ; then
3037 if test x$stabs = xyes ; then
3038 tm_file="${tm_file} dbxcoff.h"
3040 #prefix='$$INTERIX_ROOT'/usr/contrib
3041 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3043 alpha*-*-linux-gnuecoff*)
3044 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3045 target_cpu_default="MASK_GAS"
3046 tmake_file="alpha/t-ieee"
3051 alpha*-*-linux-gnulibc1*)
3052 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3053 target_cpu_default="MASK_GAS"
3054 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3055 extra_parts="crtbegin.o crtend.o"
3058 if test x$enable_threads = xyes; then
3062 alpha*-*-linux-gnu*)
3063 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3064 target_cpu_default="MASK_GAS"
3065 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3066 extra_parts="crtbegin.o crtend.o"
3069 if test x$enable_threads = xyes; then
3074 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3075 target_cpu_default="MASK_GAS"
3076 tmake_file="alpha/t-crtbe alpha/t-ieee"
3077 extra_parts="crtbegin.o crtend.o"
3083 # default x-alpha is only appropriate for dec-osf.
3084 target_cpu_default="MASK_GAS"
3085 tmake_file="alpha/t-ieee"
3089 if test x$stabs = xyes
3091 tm_file="${tm_file} dbx.h"
3093 if test x$gas != xyes
3095 extra_passes="mips-tfile mips-tdump"
3098 tmake_file="alpha/t-ieee"
3101 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3104 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3107 tm_file="${tm_file} alpha/osf.h"
3108 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3109 # a broken tar, so we use cpio instead.
3110 install_headers_dir=install-headers-cpio
3114 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3115 target_cpu_default=MASK_SUPPORT_ARCH
3120 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3121 tmake_file="alpha/t-ieee"
3124 extra_passes="mips-tfile mips-tdump"
3127 thread_file='vxworks'
3130 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3131 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3132 tmake_file="t-libc-ok alpha/t-ieee"
3133 xmake_file=winnt/x-winnt
3134 extra_host_objs=oldnames.o
3135 extra_gcc_objs="spawnv.o oldnames.o"
3136 if test x$gnu_ld != xyes
3138 extra_programs=ld.exe
3140 if test x$enable_threads = xyes; then
3146 xm_file="${xm_file} alpha/xm-vms.h"
3147 tmake_file="alpha/t-vms alpha/t-ieee"
3150 extra_parts="crtinit.o crtfini.o"
3152 arm-*-coff* | armel-*-coff*)
3154 tmake_file=arm/t-bare
3158 tmake_file=arm/t-bare
3159 thread_file='vxworks'
3161 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3162 tm_file=arm/riscix1-1.h
3165 arm-*-riscix*) # Acorn RISC machine
3166 if test x$gas = xyes
3168 tm_file=arm/rix-gas.h
3170 tm_file=arm/riscix.h
3172 xmake_file=arm/x-riscix
3173 tmake_file=arm/t-riscix
3176 arm-semi-aout | armel-semi-aout)
3178 tmake_file=arm/t-semi
3180 arm-semi-aof | armel-semi-aof)
3181 tm_file=arm/semiaof.h
3182 tmake_file=arm/t-semiaof
3185 tm_file=arm/netbsd.h
3186 xm_file="arm/xm-netbsd.h ${xm_file}"
3187 tmake_file="t-netbsd arm/t-netbsd"
3190 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3193 tm_file=arm/linux-aout.h
3194 tmake_file=arm/t-linux
3197 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3198 xm_file=arm/xm-linux.h
3202 tm_file=arm/linux-elf26.h
3205 tm_file=arm/linux-elf.h
3208 tmake_file="t-linux arm/t-linux"
3209 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3211 case x${enable_threads} in
3212 x | xyes | xpthreads | xposix)
3217 arm*-*-uclinux*) # ARM ucLinux
3218 tm_file=arm/uclinux-elf.h
3219 tmake_file=arm/t-arm-elf
3223 tmake_file=arm/t-bare
3226 tm_file=arm/ecos-elf.h
3227 tmake_file=arm/t-elf
3230 tm_file=arm/unknown-elf.h
3231 tmake_file=arm/t-arm-elf
3234 tm_file=arm/unknown-elf-oabi.h
3235 tmake_file=arm/t-arm-elf
3242 c1-convex-*) # Convex C1
3243 target_cpu_default=1
3246 c2-convex-*) # Convex C2
3247 target_cpu_default=2
3251 target_cpu_default=4
3255 target_cpu_default=8
3259 target_cpu_default=16
3264 tmake_file=c4x/t-c4x
3266 clipper-intergraph-clix*)
3267 tm_file="${tm_file} svr3.h clipper/clix.h"
3268 xm_file=clipper/xm-clix.h
3269 xmake_file=clipper/x-clix
3270 extra_headers=va-clipper.h
3271 extra_parts="crtbegin.o crtend.o"
3272 install_headers_dir=install-headers-cpio
3279 # This hasn't been upgraded to GCC 2.
3280 # fx80-alliant-*) # Alliant FX/80
3286 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3287 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3288 tmake_file="t-linux pa/t-linux"
3289 extra_parts="crtbegin.o crtend.o"
3292 if test x$enable_threads = xyes; then
3297 target_cpu_default="MASK_PA_11"
3298 tmake_file=pa/t-openbsd
3301 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3302 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3303 xm_file=pa/xm-papro.h
3307 target_cpu_default="MASK_PA_11"
3308 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3312 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3313 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3314 xm_file=pa/xm-papro.h
3318 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3322 tm_file="${tm_file} pa/som.h"
3323 target_cpu_default="MASK_PA_11"
3327 tm_file="${tm_file} pa/som.h"
3331 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3332 xm_file=pa/xm-pahpux.h
3333 xmake_file=pa/x-pa-hpux
3334 if test x$gas = xyes
3336 tm_file="${tm_file} pa/gas.h"
3338 install_headers_dir=install-headers-cpio
3341 hppa1.0-*-hpux8.0[0-2]*)
3342 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3343 xm_file=pa/xm-pahpux.h
3344 xmake_file=pa/x-pa-hpux
3345 if test x$gas = xyes
3347 tm_file="${tm_file} pa/pa-gas.h"
3349 tm_file="pa/pa-oldas.h ${tm_file}"
3351 install_headers_dir=install-headers-cpio
3354 hppa1.1-*-hpux8.0[0-2]*)
3355 target_cpu_default="MASK_PA_11"
3356 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3357 xm_file=pa/xm-pahpux.h
3358 xmake_file=pa/x-pa-hpux
3359 if test x$gas = xyes
3361 tm_file="${tm_file} pa/pa-gas.h"
3363 tm_file="pa/pa-oldas.h ${tm_file}"
3365 install_headers_dir=install-headers-cpio
3369 target_cpu_default="MASK_PA_11"
3370 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3371 xm_file=pa/xm-pahpux.h
3372 xmake_file=pa/x-pa-hpux
3373 if test x$gas = xyes
3375 tm_file="${tm_file} pa/pa-gas.h"
3377 install_headers_dir=install-headers-cpio
3381 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3382 xm_file=pa/xm-pahpux.h
3383 xmake_file=pa/x-pa-hpux
3384 if test x$gas = xyes
3386 tm_file="${tm_file} pa/pa-gas.h"
3388 install_headers_dir=install-headers-cpio
3391 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3392 target_cpu_default="MASK_PA_11"
3393 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3394 xm_file=pa/xm-pahpux.h
3395 xmake_file=pa/x-pa-hpux
3397 if test x$gas = xyes
3399 tm_file="${tm_file} pa/pa-gas.h"
3401 if test x$enable_threads = x; then
3402 enable_threads=$have_pthread_h
3404 if test x$enable_threads = xyes; then
3406 tmake_file="${tmake_file} pa/t-dce-thr"
3408 install_headers_dir=install-headers-cpio
3412 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3413 xm_file=pa/xm-pahpux.h
3414 xmake_file=pa/x-pa-hpux
3416 if test x$gas = xyes
3418 tm_file="${tm_file} pa/pa-gas.h"
3420 if test x$enable_threads = x; then
3421 enable_threads=$have_pthread_h
3423 if test x$enable_threads = xyes; then
3425 tmake_file="${tmake_file} pa/t-dce-thr"
3427 install_headers_dir=install-headers-cpio
3430 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3431 target_cpu_default="MASK_PA_11"
3432 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3433 xm_file=pa/xm-pahpux.h
3434 xmake_file=pa/x-pa-hpux
3438 tm_file="${tm_file} pa/pa-gas.h"
3440 # if [[ x$enable_threads = x ]]; then
3441 # enable_threads=$have_pthread_h
3443 # if [[ x$enable_threads = xyes ]]; then
3445 # tmake_file="${tmake_file} pa/t-dce-thr"
3447 install_headers_dir=install-headers-cpio
3451 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3452 xm_file=pa/xm-pahpux.h
3453 xmake_file=pa/x-pa-hpux
3456 tm_file="${tm_file} pa/pa-gas.h"
3458 # if [[ x$enable_threads = x ]]; then
3459 # enable_threads=$have_pthread_h
3461 # if [[ x$enable_threads = xyes ]]; then
3463 # tmake_file="${tmake_file} pa/t-dce-thr"
3465 install_headers_dir=install-headers-cpio
3468 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3469 target_cpu_default="MASK_PA_11"
3470 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3471 xm_file=pa/xm-pahpux.h
3472 xmake_file=pa/x-pa-hpux
3473 if test x$gas = xyes
3475 tm_file="${tm_file} pa/pa-gas.h"
3477 install_headers_dir=install-headers-cpio
3481 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3482 xm_file=pa/xm-pahpux.h
3483 xmake_file=pa/x-pa-hpux
3484 if test x$gas = xyes
3486 tm_file="${tm_file} pa/pa-gas.h"
3488 install_headers_dir=install-headers-cpio
3491 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3492 target_cpu_default="MASK_PA_11"
3493 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3494 xm_file=pa/xm-pahpux.h
3495 xmake_file=pa/x-pa-hpux
3496 if test x$gas = xyes
3498 tm_file="${tm_file} pa/pa-gas.h"
3500 install_headers_dir=install-headers-cpio
3504 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3505 xm_file=pa/xm-pahpux.h
3506 xmake_file=pa/x-pa-hpux
3507 if test x$gas = xyes
3509 tm_file="${tm_file} pa/pa-gas.h"
3511 install_headers_dir=install-headers-cpio
3515 tm_file="${tm_file} elfos.h pa/elf.h"
3516 target_cpu_default="MASK_PA_11"
3522 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3523 tm_file=i386/i386elf.h
3524 tmake_file=i386/t-i386elf
3527 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3528 if test x$gas = xyes
3530 tm_file=i386/aix386.h
3531 extra_parts="crtbegin.o crtend.o"
3532 tmake_file=i386/t-crtstuff
3534 tm_file=i386/aix386ng.h
3537 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3539 xmake_file=i386/x-aix
3541 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3542 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3543 xm_defines="USG POSIX SMALL_ARG_MAX"
3544 xmake_file=i386/x-ncr3000
3545 if test x$stabs = xyes -a x$gas = xyes
3547 tm_file=i386/sysv4gdb.h
3549 tm_file=i386/sysv4.h
3551 extra_parts="crtbegin.o crtend.o"
3552 tmake_file=i386/t-crtpic
3556 xm_file=i386/xm-next.h
3557 tmake_file=i386/t-next
3558 xmake_file=i386/x-next
3559 extra_objs=nextstep.o
3560 extra_parts="crtbegin.o crtend.o"
3561 if test x$enable_threads = xyes; then
3565 i[34567]86-sequent-bsd*) # 80386 from Sequent
3567 if test x$gas = xyes
3569 tm_file=i386/seq-gas.h
3571 tm_file=i386/sequent.h
3574 i[34567]86-sequent-ptx1*)
3575 xm_defines="USG SVR3"
3576 xmake_file=i386/x-sysv3
3577 tm_file=i386/seq-sysv3.h
3578 tmake_file=i386/t-crtstuff
3579 extra_parts="crtbegin.o crtend.o"
3580 install_headers_dir=install-headers-cpio
3582 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3583 xm_defines="USG SVR3"
3584 xmake_file=i386/x-sysv3
3585 tm_file=i386/seq2-sysv3.h
3586 tmake_file=i386/t-crtstuff
3587 extra_parts="crtbegin.o crtend.o"
3588 install_headers_dir=install-headers-cpio
3590 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3591 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3592 xm_defines="USG POSIX SMALL_ARG_MAX"
3594 tm_file=i386/ptx4-i.h
3596 extra_parts="crtbegin.o crtend.o"
3597 install_headers_dir=install-headers-cpio
3599 i386-sun-sunos*) # Sun i386 roadrunner
3604 i[34567]86-wrs-vxworks*)
3605 tm_file=i386/vxi386.h
3606 tmake_file=i386/t-i386bare
3607 thread_file='vxworks'
3610 tm_file=i386/i386-aout.h
3611 tmake_file=i386/t-i386bare
3613 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3614 tm_file=i386/bsd386.h
3615 # tmake_file=t-libc-ok
3618 tm_file=i386/386bsd.h
3619 # tmake_file=t-libc-ok
3620 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3623 i[34567]86-*-freebsdelf*)
3624 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h"
3625 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3626 tmake_file=t-freebsd
3631 i[34567]86-*-freebsd*)
3632 tm_file=i386/freebsd.h
3633 tmake_file=t-freebsd
3635 i[34567]86-*-netbsd*)
3636 tm_file=i386/netbsd.h
3640 i[34567]86-*-openbsd*)
3641 # we need collect2 until our bug is fixed...
3645 tm_file=i386/i386-coff.h
3646 tmake_file=i386/t-i386bare
3648 i[34567]86-*-isc*) # 80386 running ISC system
3649 xm_file="${xm_file} i386/xm-isc.h"
3650 xm_defines="USG SVR3"
3652 i[34567]86-*-isc[34]*)
3653 xmake_file=i386/x-isc3
3656 xmake_file=i386/x-isc
3659 if test x$gas = xyes -a x$stabs = xyes
3661 tm_file=i386/iscdbx.h
3662 tmake_file=i386/t-svr3dbx
3663 extra_parts="svr3.ifile svr3z.ifile"
3665 tm_file=i386/isccoff.h
3666 tmake_file=i386/t-crtstuff
3667 extra_parts="crtbegin.o crtend.o"
3669 install_headers_dir=install-headers-cpio
3671 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3673 xmake_file=x-linux-aout
3674 tmake_file="t-linux-aout i386/t-crtstuff"
3675 tm_file=i386/linux-oldld.h
3679 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3680 xmake_file=x-linux-aout
3681 tmake_file="t-linux-aout i386/t-crtstuff"
3682 tm_file=i386/linux-aout.h
3686 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3687 # GNU/Linux C library 5
3689 tm_file=i386/linux.h
3690 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3691 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3694 if test x$enable_threads = xyes; then
3695 thread_file='single'
3698 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3699 # aka GNU/Linux C library 6
3701 tm_file=i386/linux.h
3702 tmake_file="t-linux i386/t-crtstuff"
3703 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3706 if test x$enable_threads = xyes; then
3713 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3714 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3717 i[34567]86-pc-msdosdjgpp*)
3718 xm_file=i386/xm-djgpp.h
3719 tm_file=i386/djgpp.h
3720 tmake_file=i386/t-djgpp
3721 xmake_file=i386/x-djgpp
3725 case $host in *pc-msdosdjgpp*)
3730 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3732 tmake_file=t-libc-ok
3736 i[34567]86-*-lynxos*)
3737 if test x$gas = xyes
3741 tm_file=i386/lynx-ng.h
3743 xm_file=i386/xm-lynx.h
3744 tmake_file=i386/t-i386bare
3749 # tmake_file=t-libc-ok
3752 i[34567]86-*-osfrose*) # 386 using OSF/rose
3753 if test x$elf = xyes
3755 tm_file=i386/osfelf.h
3758 tm_file=i386/osfrose.h
3761 xm_file="i386/xm-osf.h ${xm_file}"
3762 xmake_file=i386/x-osfrose
3763 tmake_file=i386/t-osf
3764 extra_objs=halfpic.o
3766 i[34567]86-go32-rtems*)
3768 xm_file=i386/xm-go32.h
3769 tm_file=i386/go32-rtems.h
3770 tmake_file="i386/t-go32 t-rtems"
3772 i[34567]86-*-rtemself*)
3774 tm_file=i386/rtemself.h
3775 tmake_file="i386/t-i386bare t-rtems"
3777 i[34567]86-*-rtems*)
3779 tm_file=i386/rtems.h
3780 tmake_file="i386/t-i386bare t-rtems"
3782 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3783 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3784 xm_defines="USG SVR3"
3785 xmake_file=i386/x-sco5
3786 install_headers_dir=install-headers-cpio
3788 if test x$gas = xyes
3790 tm_file="i386/sco5gas.h ${tm_file}"
3791 tmake_file=i386/t-sco5gas
3793 tmake_file=i386/t-sco5
3795 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3797 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3798 xm_file="${xm_file} i386/xm-sco.h"
3799 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3800 xmake_file=i386/x-sco4
3801 install_headers_dir=install-headers-cpio
3802 if test x$stabs = xyes
3804 tm_file=i386/sco4dbx.h
3805 tmake_file=i386/t-svr3dbx
3806 extra_parts="svr3.ifile svr3z.rfile"
3809 tmake_file=i386/t-crtstuff
3810 extra_parts="crtbegin.o crtend.o"
3814 i[34567]86-*-sco*) # 80386 running SCO system
3815 xm_file=i386/xm-sco.h
3816 xmake_file=i386/x-sco
3817 install_headers_dir=install-headers-cpio
3818 if test x$stabs = xyes
3820 tm_file=i386/scodbx.h
3821 tmake_file=i386/t-svr3dbx
3822 extra_parts="svr3.ifile svr3z.rfile"
3825 extra_parts="crtbegin.o crtend.o"
3826 tmake_file=i386/t-crtstuff
3830 i[34567]86-*-solaris2*)
3831 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3832 xm_defines="USG POSIX SMALL_ARG_MAX"
3833 if test x$stabs = xyes
3835 tm_file=i386/sol2dbg.h
3839 tmake_file=i386/t-sol2
3840 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3842 if test x$enable_threads = xyes; then
3843 thread_file='solaris'
3846 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3847 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3848 xm_defines="USG POSIX"
3849 tm_file=i386/sysv5.h
3850 if test x$stabs = xyes
3852 tm_file="${tm_file} dbx.h"
3854 tmake_file=i386/t-crtpic
3856 extra_parts="crtbegin.o crtend.o"
3857 if test x$enable_threads = xyes; then
3861 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
3862 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3863 xm_defines="USG POSIX SMALL_ARG_MAX"
3864 tm_file=i386/sysv4.h
3865 if test x$stabs = xyes
3867 tm_file="${tm_file} dbx.h"
3869 tmake_file=i386/t-crtpic
3871 extra_parts="crtbegin.o crtend.o"
3873 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3874 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
3875 xm_defines="USG POSIX"
3877 tmake_file="i386/t-crtpic i386/t-udk"
3879 extra_parts="crtbegin.o crtend.o"
3880 install_headers_dir=install-headers-cpio
3882 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3884 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3885 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
3886 if test x$stabs = xyes
3888 tm_file=i386/osf1elfgdb.h
3890 tm_file=i386/osf1elf.h
3892 tmake_file=i386/t-osf1elf
3893 xmake_file=i386/x-osf1elf
3894 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3896 i[34567]86-*-sysv*) # Intel 80386's running system V
3897 xm_defines="USG SVR3"
3898 xmake_file=i386/x-sysv3
3899 if test x$gas = xyes
3901 if test x$stabs = xyes
3903 tm_file=i386/svr3dbx.h
3904 tmake_file=i386/t-svr3dbx
3905 extra_parts="svr3.ifile svr3z.rfile"
3907 tm_file=i386/svr3gas.h
3908 extra_parts="crtbegin.o crtend.o"
3909 tmake_file=i386/t-crtstuff
3912 tm_file=i386/sysv3.h
3913 extra_parts="crtbegin.o crtend.o"
3914 tmake_file=i386/t-crtstuff
3917 i386-*-vsta) # Intel 80386's running VSTa kernel
3918 xm_file="${xm_file} i386/xm-vsta.h"
3920 tmake_file=i386/t-vsta
3921 xmake_file=i386/x-vsta
3924 xm_file="${xm_file} i386/xm-cygwin.h"
3925 tmake_file=i386/t-cygwin
3926 tm_file=i386/win32.h
3927 xmake_file=i386/x-cygwin
3929 if test x$enable_threads = xyes; then
3934 i[34567]86-*-pe | i[34567]86-*-cygwin*)
3935 xm_file="${xm_file} i386/xm-cygwin.h"
3936 tmake_file=i386/t-cygwin
3937 tm_file=i386/cygwin.h
3938 xmake_file=i386/x-cygwin
3940 if test x$enable_threads = xyes; then
3945 i[34567]86-*-mingw32*)
3946 tm_file=i386/mingw32.h
3947 xm_file="${xm_file} i386/xm-mingw32.h"
3948 tmake_file="i386/t-cygwin i386/t-mingw32"
3950 xmake_file=i386/x-cygwin
3951 if test x$enable_threads = xyes; then
3958 *minwg32crt* | *mingw32*)
3959 tm_file="${tm_file} i386/crtdll.h"
3965 xm_file="${xm_file} i386/xm-uwin.h"
3966 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
3967 tmake_file="i386/t-cygwin i386/t-uwin"
3969 xmake_file=i386/x-cygwin
3970 if test x$enable_threads = xyes; then
3975 i[34567]86-*-interix*)
3976 tm_file="i386/i386-interix.h interix.h"
3977 xm_file="i386/xm-i386-interix.h xm-interix.h"
3978 xm_defines="USG NO_SYS_SIGLIST"
3979 tmake_file="i386/t-interix"
3980 extra_objs=interix.o
3981 xmake_file=x-interix
3982 if test x$enable_threads = xyes ; then
3985 if test x$stabs = xyes ; then
3986 tm_file="${tm_file} dbxcoff.h"
3989 i[34567]86-*-winnt3*)
3990 tm_file=i386/win-nt.h
3991 out_file=i386/i386.c
3992 xm_file="xm-winnt.h ${xm_file}"
3993 xmake_file=winnt/x-winnt
3994 tmake_file=i386/t-winnt
3995 extra_host_objs="winnt.o oldnames.o"
3996 extra_gcc_objs="spawnv.o oldnames.o"
3997 if test x$gnu_ld != xyes
3999 extra_programs=ld.exe
4001 if test x$enable_threads = xyes; then
4005 i[34567]86-dg-dgux*)
4006 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
4007 xm_defines="USG POSIX"
4008 out_file=i386/dgux.c
4010 tmake_file=i386/t-dgux
4011 xmake_file=i386/x-dgux
4012 install_headers_dir=install-headers-cpio
4014 i860-alliant-*) # Alliant FX/2800
4015 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4016 xm_file="${xm_file}"
4017 xmake_file=i860/x-fx2800
4018 tmake_file=i860/t-fx2800
4019 extra_parts="crtbegin.o crtend.o"
4022 tm_file="${tm_file} i860/bsd.h"
4023 if test x$gas = xyes
4025 tm_file="${tm_file} i860/bsd-gas.h"
4030 tm_file="${tm_file} i860/mach.h"
4031 tmake_file=t-libc-ok
4033 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4034 tm_file="${tm_file} svr3.h i860/paragon.h"
4035 xm_defines="USG SVR3"
4039 tm_file="${tm_file} svr3.h i860/sysv3.h"
4040 xm_defines="USG SVR3"
4041 xmake_file=i860/x-sysv3
4042 extra_parts="crtbegin.o crtend.o"
4045 tm_file="${tm_file} svr4.h i860/sysv4.h"
4046 xm_defines="USG SVR3"
4047 xmake_file=i860/x-sysv4
4049 extra_parts="crtbegin.o crtend.o"
4051 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4052 tm_file="${tm_file} i960/vx960.h"
4053 tmake_file=i960/t-vxworks960
4055 thread_file='vxworks'
4057 i960-wrs-vxworks5* | i960-wrs-vxworks)
4058 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4059 tmake_file=i960/t-vxworks960
4061 thread_file='vxworks'
4064 tm_file="${tm_file} i960/vx960.h"
4065 tmake_file=i960/t-vxworks960
4067 thread_file='vxworks'
4070 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4071 tmake_file=i960/t-960bare
4075 tmake_file="i960/t-960bare t-rtems"
4076 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4079 i960-*-*) # Default i960 environment.
4083 extra_parts="crtinit.o crtfini.o"
4085 m68000-convergent-sysv*)
4087 xm_file="m68k/xm-3b1.h ${xm_file}"
4090 extra_headers=math-68881.h
4092 m68000-hp-bsd*) # HP 9000/200 running BSD
4093 tm_file=m68k/hp2bsd.h
4094 xmake_file=m68k/x-hp2bsd
4096 extra_headers=math-68881.h
4098 m68000-hp-hpux*) # HP 9000 series 300
4099 xm_file="xm_alloca.h ${xm_file}"
4100 xm_defines="USG NO_SYS_SIGLIST"
4101 if test x$gas = xyes
4103 xmake_file=m68k/x-hp320g
4104 tm_file=m68k/hp310g.h
4106 xmake_file=m68k/x-hp320
4107 tm_file=m68k/hp310.h
4109 install_headers_dir=install-headers-cpio
4111 extra_headers=math-68881.h
4116 extra_headers=math-68881.h
4119 tm_file=m68k/sun2o4.h
4121 extra_headers=math-68881.h
4124 xm_file="m68k/xm-3b1.h ${xm_file}"
4126 if test x$gas = xyes
4133 extra_headers=math-68881.h
4135 m68k-apple-aux*) # Apple Macintosh running A/UX
4136 xm_defines="USG AUX"
4137 tmake_file=m68k/t-aux
4138 install_headers_dir=install-headers-cpio
4139 extra_headers=math-68881.h
4140 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4142 if test "$gnu_ld" = yes
4144 tm_file="${tm_file} m68k/auxgld.h"
4146 tm_file="${tm_file} m68k/auxld.h"
4148 if test "$gas" = yes
4150 tm_file="${tm_file} m68k/auxgas.h"
4152 tm_file="${tm_file} m68k/auxas.h"
4154 tm_file="${tm_file} m68k/a-ux.h"
4158 tm_file=m68k/apollo68.h
4159 xmake_file=m68k/x-apollo68
4161 extra_headers=math-68881.h
4164 m68k-altos-sysv*) # Altos 3068
4165 if test x$gas = xyes
4167 tm_file=m68k/altos3068.h
4170 echo "The Altos is supported only with the GNU assembler" 1>&2
4173 extra_headers=math-68881.h
4175 m68k-bull-sysv*) # Bull DPX/2
4176 if test x$gas = xyes
4178 if test x$stabs = xyes
4180 tm_file=m68k/dpx2cdbx.h
4182 tm_file=m68k/dpx2g.h
4187 xm_file="xm-alloca.h ${xm_file}"
4189 xmake_file=m68k/x-dpx2
4191 extra_headers=math-68881.h
4193 m68k-atari-sysv4*) # Atari variant of V.4.
4194 tm_file=m68k/atari.h
4195 xm_file="xm-alloca.h ${xm_file}"
4196 xm_defines="USG FULL_PROTOTYPES"
4198 extra_parts="crtbegin.o crtend.o"
4199 extra_headers=math-68881.h
4202 m68k-motorola-sysv*)
4203 tm_file=m68k/mot3300.h
4204 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4205 xm_defines=NO_SYS_SIGLIST
4206 if test x$gas = xyes
4208 xmake_file=m68k/x-mot3300-gas
4209 if test x$gnu_ld = xyes
4211 tmake_file=m68k/t-mot3300-gald
4213 tmake_file=m68k/t-mot3300-gas
4217 xmake_file=m68k/x-mot3300
4218 if test x$gnu_ld = xyes
4220 tmake_file=m68k/t-mot3300-gld
4222 tmake_file=m68k/t-mot3300
4226 gdb_needs_out_file_path=yes
4227 extra_parts="crt0.o mcrt0.o"
4228 extra_headers=math-68881.h
4231 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4232 tm_file=m68k/tower-as.h
4233 xm_defines="USG SVR3"
4234 xmake_file=m68k/x-tower
4235 extra_parts="crtbegin.o crtend.o"
4236 extra_headers=math-68881.h
4239 tm_file=m68k/plexus.h
4240 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4243 extra_headers=math-68881.h
4247 xm_file="xm-alloca.h ${xm_file}"
4249 extra_headers=math-68881.h
4252 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4253 xm_defines="USG unos"
4254 xmake_file=m68k/x-crds
4257 extra_headers=math-68881.h
4259 m68k-cbm-sysv4*) # Commodore variant of V.4.
4261 xm_file="xm-alloca.h ${xm_file}"
4262 xm_defines="USG FULL_PROTOTYPES"
4263 xmake_file=m68k/x-amix
4265 extra_parts="crtbegin.o crtend.o"
4266 extra_headers=math-68881.h
4270 tm_file=m68k/ccur-GAS.h
4271 xmake_file=m68k/x-ccur
4272 extra_headers=math-68881.h
4276 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4277 tm_file=m68k/hp3bsd44.h
4278 xmake_file=m68k/x-hp3bsd44
4280 extra_headers=math-68881.h
4283 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4284 tm_file=m68k/hp3bsd.h
4286 extra_headers=math-68881.h
4290 if test x$with_fp = xno
4292 tm_file=m68k/isi-nfp.h
4298 extra_headers=math-68881.h
4300 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4301 xm_file="xm_alloca.h ${xm_file}"
4302 xm_defines="USG NO_SYS_SIGLIST"
4303 if test x$gas = xyes
4305 xmake_file=m68k/x-hp320g
4306 tm_file=m68k/hp320g.h
4308 xmake_file=m68k/x-hp320
4309 tm_file=m68k/hpux7.h
4311 install_headers_dir=install-headers-cpio
4313 extra_headers=math-68881.h
4316 m68k-hp-hpux*) # HP 9000 series 300
4317 xm_file="xm_alloca.h ${xm_file}"
4318 xm_defines="USG NO_SYS_SIGLIST"
4319 if test x$gas = xyes
4321 xmake_file=m68k/x-hp320g
4322 tm_file=m68k/hp320g.h
4324 xmake_file=m68k/x-hp320
4325 tm_file=m68k/hp320.h
4327 install_headers_dir=install-headers-cpio
4329 extra_headers=math-68881.h
4333 tm_file=m68k/sun3mach.h
4335 extra_headers=math-68881.h
4339 if test x$gas = xyes
4341 tm_file=m68k/news3gas.h
4343 tm_file=m68k/news3.h
4346 extra_headers=math-68881.h
4349 m68k-sony-bsd* | m68k-sony-newsos*)
4350 if test x$gas = xyes
4352 tm_file=m68k/newsgas.h
4357 extra_headers=math-68881.h
4360 m68k-next-nextstep2*)
4361 tm_file=m68k/next21.h
4362 xm_file="m68k/xm-next.h ${xm_file}"
4363 tmake_file=m68k/t-next
4364 xmake_file=m68k/x-next
4365 extra_objs=nextstep.o
4366 extra_headers=math-68881.h
4370 m68k-next-nextstep3*)
4372 xm_file="m68k/xm-next.h ${xm_file}"
4373 tmake_file=m68k/t-next
4374 xmake_file=m68k/x-next
4375 extra_objs=nextstep.o
4376 extra_parts="crtbegin.o crtend.o"
4377 extra_headers=math-68881.h
4379 if test x$enable_threads = xyes; then
4384 if test x$with_fp = xno
4386 tm_file=m68k/sun3n3.h
4388 tm_file=m68k/sun3o3.h
4392 extra_headers=math-68881.h
4394 m68k-sun-sunos*) # For SunOS 4 (the default).
4395 if test x$with_fp = xno
4397 tm_file=m68k/sun3n.h
4403 extra_headers=math-68881.h
4406 tm_file=m68k/vxm68k.h
4407 tmake_file=m68k/t-vxworks68
4408 extra_headers=math-68881.h
4409 thread_file='vxworks'
4413 tmake_file=m68k/t-m68kbare
4414 tm_file="m68k/m68k-aout.h libgloss.h"
4415 extra_headers=math-68881.h
4419 tmake_file=m68k/t-m68kbare
4420 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4421 extra_headers=math-68881.h
4424 m68020-*-elf* | m68k-*-elf*)
4425 tm_file="m68k/m68020-elf.h libgloss.h"
4426 xm_file=m68k/xm-m68kv.h
4427 tmake_file=m68k/t-m68kelf
4428 header_files=math-68881.h
4431 if test x$gas = xyes
4435 tm_file=m68k/lynx-ng.h
4437 xm_file=m68k/xm-lynx.h
4439 tmake_file=m68k/t-lynx
4440 extra_headers=math-68881.h
4444 tm_file=m68k/netbsd.h
4451 # we need collect2 until our bug is fixed...
4454 m68k-*-sysv3*) # Motorola m68k's running system V.3
4455 xm_file="xm-alloca.h ${xm_file}"
4457 xmake_file=m68k/x-m68kv
4458 extra_parts="crtbegin.o crtend.o"
4459 extra_headers=math-68881.h
4462 m68k-*-sysv4*) # Motorola m68k's running system V.4
4463 tm_file=m68k/m68kv4.h
4464 xm_file="xm-alloca.h ${xm_file}"
4467 extra_parts="crtbegin.o crtend.o"
4468 extra_headers=math-68881.h
4471 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4474 tm_file=m68k/linux-aout.h
4475 tmake_file="t-linux-aout m68k/t-linux-aout"
4476 extra_headers=math-68881.h
4480 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4481 # with ELF format using the
4482 # GNU/Linux C library 5
4484 tm_file=m68k/linux.h
4485 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4486 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4487 extra_headers=math-68881.h
4491 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4492 # with ELF format using glibc 2
4493 # aka the GNU/Linux C library 6.
4495 tm_file=m68k/linux.h
4496 tmake_file="t-linux m68k/t-linux"
4497 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4498 extra_headers=math-68881.h
4501 if test x$enable_threads = xyes; then
4506 tmake_file=m68k/t-m68kbare
4507 tm_file=m68k/m68k-psos.h
4508 extra_headers=math-68881.h
4512 tmake_file="m68k/t-m68kbare t-rtems"
4513 tm_file=m68k/rtems.h
4514 extra_headers=math-68881.h
4521 tm_file=m88k/dguxbcs.h
4522 tmake_file=m88k/t-dguxbcs
4526 tmake_file=m88k/t-dgux
4529 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4530 xmake_file=m88k/x-dgux
4531 if test x$gas = xyes
4533 tmake_file=m88k/t-dgux-gas
4536 m88k-dolphin-sysv3*)
4537 tm_file=m88k/dolph.h
4538 extra_parts="crtbegin.o crtend.o"
4539 xm_file="m88k/xm-sysv3.h ${xm_file}"
4540 xmake_file=m88k/x-dolph
4541 if test x$gas = xyes
4543 tmake_file=m88k/t-m88k-gas
4546 m88k-tektronix-sysv3)
4547 tm_file=m88k/tekXD88.h
4548 extra_parts="crtbegin.o crtend.o"
4549 xm_file="m88k/xm-sysv3.h ${xm_file}"
4550 xmake_file=m88k/x-tekXD88
4551 if test x$gas = xyes
4553 tmake_file=m88k/t-m88k-gas
4557 tm_file=m88k/m88k-aout.h
4560 tm_file=m88k/m88k-coff.h
4561 tmake_file=m88k/t-bug
4565 extra_parts="crtbegin.o crtend.o"
4566 if test x$gas = xyes
4568 tmake_file=m88k/t-luna-gas
4570 tmake_file=m88k/t-luna
4574 tmake_file="${tmake_file} m88k/t-luna-gas"
4577 tm_file=m88k/sysv3.h
4578 extra_parts="crtbegin.o crtend.o"
4579 xm_file="m88k/xm-sysv3.h ${xm_file}"
4580 xmake_file=m88k/x-sysv3
4581 if test x$gas = xyes
4583 tmake_file=m88k/t-m88k-gas
4587 tm_file=m88k/sysv4.h
4588 extra_parts="crtbegin.o crtend.o"
4589 xmake_file=m88k/x-sysv4
4590 tmake_file=m88k/t-sysv4
4592 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4593 if test "x$gnu_ld" = xyes
4595 tm_file="mips/iris6.h mips/iris6gld.h"
4597 tm_file=mips/iris6.h
4599 tmake_file=mips/t-iris6
4600 xm_file=mips/xm-iris6.h
4601 xmake_file=mips/x-iris6
4602 # if test x$enable_threads = xyes; then
4603 # thread_file='irix'
4607 tm_file="mips/elf.h libgloss.h mips/vxworks.h"
4608 tmake_file=mips/t-ecoff
4611 extra_parts="crtbegin.o crtend.o"
4612 thread_file='vxworks'
4614 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4615 tm_file="mips/iris6.h mips/cross64.h"
4617 xm_file="mips/xm-iris5.h"
4618 xmake_file=mips/x-iris
4619 tmake_file=mips/t-cross64
4620 # See comment in mips/iris[56].h files.
4622 # if test x$enable_threads = xyes; then
4623 # thread_file='irix'
4627 if test x$gas = xyes
4629 if test x$stabs = xyes
4631 tm_file=mips/iris5gdb.h
4633 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4636 tm_file=mips/sni-svr4.h
4639 xmake_file=mips/x-sni-svr4
4640 tmake_file=mips/t-mips-gas
4641 if test x$gnu_ld != xyes
4646 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4647 if test x$gas = xyes
4649 tm_file="mips/iris5.h mips/iris5gas.h"
4650 if test x$stabs = xyes
4652 tm_file="${tm_file} dbx.h"
4655 tm_file=mips/iris5.h
4658 xm_file="mips/xm-iris5.h"
4659 xmake_file=mips/x-iris
4660 # mips-tfile doesn't work yet
4661 tmake_file=mips/t-mips-gas
4662 # See comment in mips/iris5.h file.
4664 # if test x$enable_threads = xyes; then
4665 # thread_file='irix'
4668 mips-sgi-irix4loser*) # Mostly like a MIPS.
4669 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4670 if test x$stabs = xyes; then
4671 tm_file="${tm_file} dbx.h"
4674 xmake_file=mips/x-iris
4675 if test x$gas = xyes
4677 tmake_file=mips/t-mips-gas
4679 extra_passes="mips-tfile mips-tdump"
4681 if test x$gnu_ld != xyes
4685 # if test x$enable_threads = xyes; then
4686 # thread_file='irix'
4689 mips-sgi-irix4*) # Mostly like a MIPS.
4690 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4691 if test x$stabs = xyes; then
4692 tm_file="${tm_file} dbx.h"
4695 xmake_file=mips/x-iris
4696 if test x$gas = xyes
4698 tmake_file=mips/t-mips-gas
4700 extra_passes="mips-tfile mips-tdump"
4702 if test x$gnu_ld != xyes
4706 # if test x$enable_threads = xyes; then
4707 # thread_file='irix'
4710 mips-sgi-*) # Mostly like a MIPS.
4711 tm_file="mips/iris3.h ${tm_file}"
4712 if test x$stabs = xyes; then
4713 tm_file="${tm_file} dbx.h"
4716 xmake_file=mips/x-iris3
4717 if test x$gas = xyes
4719 tmake_file=mips/t-mips-gas
4721 extra_passes="mips-tfile mips-tdump"
4723 if test x$gnu_ld != xyes
4728 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4729 tm_file="mips/osfrose.h ${tm_file}"
4730 xmake_file=mips/x-osfrose
4731 tmake_file=mips/t-osfrose
4732 extra_objs=halfpic.o
4735 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4736 tm_file=mips/dec-osf1.h
4737 if test x$stabs = xyes; then
4738 tm_file="${tm_file} dbx.h"
4740 xmake_file=mips/x-dec-osf1
4741 if test x$gas = xyes
4743 tmake_file=mips/t-mips-gas
4745 tmake_file=mips/t-ultrix
4746 extra_passes="mips-tfile mips-tdump"
4748 if test x$gnu_ld != xyes
4753 mips-dec-bsd*) # Decstation running 4.4 BSD
4754 tm_file=mips/dec-bsd.h
4755 if test x$gas = xyes
4757 tmake_file=mips/t-mips-gas
4759 tmake_file=mips/t-ultrix
4760 extra_passes="mips-tfile mips-tdump"
4762 if test x$gnu_ld != xyes
4767 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4768 tm_file=mips/netbsd.h
4769 # On NetBSD, the headers are already okay, except for math.h.
4772 mips*-*-linux*) # Linux MIPS, either endian.
4774 xm_file="xm-siglist.h ${xm_file}"
4776 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4777 *) tm_file="mips/elf.h mips/linux.h" ;;
4779 extra_parts="crtbegin.o crtend.o"
4783 mips*el-*-openbsd*) # mips little endian
4784 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4785 tm_file=mips/openbsd.h
4787 mips*-*-openbsd*) # mips big endian
4788 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4789 tm_file=mips/openbsd-be.h
4791 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4792 tm_file="mips/news4.h ${tm_file}"
4793 if test x$stabs = xyes; then
4794 tm_file="${tm_file} dbx.h"
4796 if test x$gas = xyes
4798 tmake_file=mips/t-mips-gas
4800 extra_passes="mips-tfile mips-tdump"
4802 if test x$gnu_ld != xyes
4806 xmake_file=mips/x-sony
4808 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
4809 # That is based on svr4.
4810 # t-svr4 is not right because this system doesn't use ELF.
4811 tm_file="mips/news5.h ${tm_file}"
4812 if test x$stabs = xyes; then
4813 tm_file="${tm_file} dbx.h"
4815 xm_file="xm-siglist.h ${xm_file}"
4817 if test x$gas = xyes
4819 tmake_file=mips/t-mips-gas
4821 extra_passes="mips-tfile mips-tdump"
4823 if test x$gnu_ld != xyes
4828 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
4829 tm_file="mips/svr4-5.h mips/svr4-t.h"
4830 if test x$stabs = xyes; then
4831 tm_file="${tm_file} dbx.h"
4833 xm_file="xm-siglist.h ${xm_file}"
4835 xmake_file=mips/x-sysv
4836 if test x$gas = xyes
4838 tmake_file=mips/t-mips-gas
4839 extra_parts="crtbegin.o crtend.o"
4841 tmake_file=mips/t-mips
4842 extra_passes="mips-tfile mips-tdump"
4844 if test x$gnu_ld != xyes
4849 mips-*-ultrix* | mips-dec-mach3) # Decstation.
4850 tm_file="mips/ultrix.h ${tm_file}"
4851 if test x$stabs = xyes; then
4852 tm_file="${tm_file} dbx.h"
4854 xmake_file=mips/x-ultrix
4855 if test x$gas = xyes
4857 tmake_file=mips/t-mips-gas
4859 tmake_file=mips/t-ultrix
4860 extra_passes="mips-tfile mips-tdump"
4862 if test x$gnu_ld != xyes
4867 mips-*-riscos[56789]bsd*)
4868 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
4869 if test x$stabs = xyes; then
4870 tm_file="${tm_file} dbx.h"
4872 if test x$gas = xyes
4874 tmake_file=mips/t-bsd-gas
4876 tmake_file=mips/t-bsd
4877 extra_passes="mips-tfile mips-tdump"
4879 if test x$gnu_ld != xyes
4884 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
4885 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4886 if test x$stabs = xyes; then
4887 tm_file="${tm_file} dbx.h"
4889 if test x$gas = xyes
4891 tmake_file=mips/t-bsd-gas
4893 tmake_file=mips/t-bsd
4894 extra_passes="mips-tfile mips-tdump"
4896 if test x$gnu_ld != xyes
4901 mips-*-riscos[56789]sysv4*)
4902 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
4903 if test x$stabs = xyes; then
4904 tm_file="${tm_file} dbx.h"
4906 xm_file="xm-siglist.h ${xm_file}"
4907 xmake_file=mips/x-sysv
4908 if test x$gas = xyes
4910 tmake_file=mips/t-svr4-gas
4912 tmake_file=mips/t-svr4
4913 extra_passes="mips-tfile mips-tdump"
4915 if test x$gnu_ld != xyes
4920 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
4921 tm_file="mips/svr4-4.h ${tm_file}"
4922 if test x$stabs = xyes; then
4923 tm_file="${tm_file} dbx.h"
4926 xmake_file=mips/x-sysv
4927 if test x$gas = xyes
4929 tmake_file=mips/t-svr4-gas
4931 tmake_file=mips/t-svr4
4932 extra_passes="mips-tfile mips-tdump"
4934 if test x$gnu_ld != xyes
4939 mips-*-riscos[56789]sysv*)
4940 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
4941 if test x$stabs = xyes; then
4942 tm_file="${tm_file} dbx.h"
4945 xmake_file=mips/x-sysv
4946 if test x$gas = xyes
4948 tmake_file=mips/t-svr3-gas
4950 tmake_file=mips/t-svr3
4951 extra_passes="mips-tfile mips-tdump"
4953 if test x$gnu_ld != xyes
4958 mips-*-sysv* | mips-*-riscos*sysv*)
4959 tm_file="mips/svr3-4.h ${tm_file}"
4960 if test x$stabs = xyes; then
4961 tm_file="${tm_file} dbx.h"
4964 xmake_file=mips/x-sysv
4965 if test x$gas = xyes
4967 tmake_file=mips/t-svr3-gas
4969 tmake_file=mips/t-svr3
4970 extra_passes="mips-tfile mips-tdump"
4972 if test x$gnu_ld != xyes
4977 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4978 tm_file=mips/mips-5.h
4979 if test x$stabs = xyes; then
4980 tm_file="${tm_file} dbx.h"
4982 if test x$gas = xyes
4984 tmake_file=mips/t-mips-gas
4986 extra_passes="mips-tfile mips-tdump"
4988 if test x$gnu_ld != xyes
4996 tm_file=mips/ecoffl.h
4997 if test x$stabs = xyes; then
4998 tm_file="${tm_file} dbx.h"
5000 tmake_file=mips/t-ecoff
5003 tm_file="gofast.h mips/ecoff.h"
5004 if test x$stabs = xyes; then
5005 tm_file="${tm_file} dbx.h"
5007 tmake_file=mips/t-ecoff
5010 tm_file="mips/elfl.h libgloss.h"
5011 tmake_file=mips/t-elf
5014 tm_file="mips/elf.h"
5015 tmake_file=mips/t-elf
5018 tm_file="mips/elfl64.h"
5019 tmake_file=mips/t-elf
5021 mips64orionel-*-elf*)
5022 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
5023 tmake_file=mips/t-elf
5026 tm_file="mips/elf64.h"
5027 tmake_file=mips/t-elf
5030 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
5031 tmake_file=mips/t-elf
5033 mips64orion-*-rtems*)
5034 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5035 tmake_file="mips/t-ecoff t-rtems"
5038 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5039 tmake_file=mips/t-r3900
5042 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5043 tmake_file=mips/t-r3900
5045 mips-*-*) # Default MIPS RISC-OS 4.0.
5046 if test x$stabs = xyes; then
5047 tm_file="${tm_file} dbx.h"
5049 if test x$gas = xyes
5051 tmake_file=mips/t-mips-gas
5053 extra_passes="mips-tfile mips-tdump"
5055 if test x$gnu_ld != xyes
5062 tm_file="mn10200/mn10200.h"
5063 if test x$stabs = xyes
5065 tm_file="${tm_file} dbx.h"
5071 tm_file="mn10300/mn10300.h"
5072 if test x$stabs = xyes
5074 tm_file="${tm_file} dbx.h"
5079 tm_file=ns32k/encore.h
5083 tm_file=ns32k/sequent.h
5087 tm_file=ns32k/tek6100.h
5091 tm_file=ns32k/tek6200.h
5094 # This has not been updated to GCC 2.
5097 # xmake_file=ns32k/x-genix
5098 # tm_file=ns32k/genix.h
5102 tm_file=ns32k/merlin.h
5106 tm_file=ns32k/pc532-mach.h
5110 tm_file=ns32k/pc532-min.h
5111 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5116 tm_file=ns32k/netbsd.h
5117 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5118 # On NetBSD, the headers are already okay, except for math.h.
5123 tm_file="${tm_file} pdp11/2bsd.h"
5132 xmake_file=pyr/x-pyr
5139 xmake_file=romp/x-mach
5146 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5150 tm_file=rs6000/beos.h
5151 xm_file=rs6000/xm-beos.h
5152 tmake_file=rs6000/t-beos
5153 xmake_file=rs6000/x-beos
5155 powerpc-*-sysv* | powerpc-*-elf*)
5156 tm_file=rs6000/sysv4.h
5157 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5158 xm_defines="USG POSIX"
5159 extra_headers=ppc-asm.h
5160 if test x$gas = xyes
5162 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5164 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5166 xmake_file=rs6000/x-sysv4
5169 tm_file=rs6000/eabiaix.h
5170 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5171 extra_headers=ppc-asm.h
5174 tm_file=rs6000/eabisim.h
5175 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5176 extra_headers=ppc-asm.h
5179 tm_file=rs6000/eabi.h
5180 if test x$gas = xyes
5182 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5184 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5186 extra_headers=ppc-asm.h
5189 tm_file=rs6000/rtems.h
5190 if test x$gas = xyes
5192 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5194 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5196 extra_headers=ppc-asm.h
5198 powerpc-*-linux-gnulibc1)
5199 tm_file=rs6000/linux.h
5200 xm_file=rs6000/xm-sysv4.h
5201 out_file=rs6000/rs6000.c
5202 if test x$gas = xyes
5204 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5206 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5209 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5210 extra_headers=ppc-asm.h
5211 if test x$enable_threads = xyes; then
5215 powerpc-*-linux-gnu*)
5216 tm_file=rs6000/linux.h
5217 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5218 xm_defines="USG ${xm_defines}"
5219 out_file=rs6000/rs6000.c
5220 if test x$gas = xyes
5222 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5224 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5227 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5228 extra_headers=ppc-asm.h
5229 if test x$enable_threads = xyes; then
5233 powerpc-wrs-vxworks*)
5235 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5236 xm_defines="USG POSIX"
5237 tm_file=rs6000/vxppc.h
5238 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5239 extra_headers=ppc-asm.h
5240 thread_file='vxworks'
5242 powerpcle-*-sysv* | powerpcle-*-elf*)
5243 tm_file=rs6000/sysv4le.h
5244 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5245 xm_defines="USG POSIX"
5246 if test x$gas = xyes
5248 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5250 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5252 xmake_file=rs6000/x-sysv4
5253 extra_headers=ppc-asm.h
5255 powerpcle-*-eabisim*)
5256 tm_file=rs6000/eabilesim.h
5257 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5258 extra_headers=ppc-asm.h
5261 tm_file=rs6000/eabile.h
5262 if test x$gas = xyes
5264 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5266 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5268 extra_headers=ppc-asm.h
5270 powerpcle-*-winnt* )
5271 tm_file=rs6000/win-nt.h
5272 tmake_file=rs6000/t-winnt
5274 if test x$enable_threads = xyes; then
5277 extra_headers=ppc-asm.h
5279 powerpcle-*-pe | powerpcle-*-cygwin*)
5280 tm_file=rs6000/cygwin.h
5281 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5282 tmake_file=rs6000/t-winnt
5283 xmake_file=rs6000/x-cygwin
5285 if test x$enable_threads = xyes; then
5289 extra_headers=ppc-asm.h
5291 powerpcle-*-solaris2*)
5292 tm_file=rs6000/sol2.h
5293 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5294 xm_defines="USG POSIX"
5295 if test x$gas = xyes
5297 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5299 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5301 xmake_file=rs6000/x-sysv4
5302 extra_headers=ppc-asm.h
5304 rs6000-ibm-aix3.[01]*)
5305 tm_file=rs6000/aix31.h
5306 xmake_file=rs6000/x-aix31
5310 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5311 tm_file=rs6000/aix3newas.h
5312 if test x$host != x$target
5314 tmake_file=rs6000/t-xnewas
5316 tmake_file=rs6000/t-newas
5321 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5322 tm_file=rs6000/aix41.h
5323 if test x$host != x$target
5325 tmake_file=rs6000/t-xnewas
5327 tmake_file=rs6000/t-newas
5329 if test "$gnu_ld" = yes
5331 xmake_file=rs6000/x-aix41-gld
5333 xmake_file=rs6000/x-aix41
5338 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5339 tm_file=rs6000/aix43.h
5340 if test x$host != x$target
5342 tmake_file=rs6000/t-xaix43
5344 tmake_file=rs6000/t-aix43
5346 xmake_file=rs6000/x-aix43
5350 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5351 tm_file=rs6000/aix43.h
5352 if test x$host != x$target
5354 tmake_file=rs6000/t-xaix43
5356 tmake_file=rs6000/t-aix43
5358 xmake_file=rs6000/x-aix43
5371 tm_file=rs6000/mach.h
5372 xm_file="${xm_file} rs6000/xm-mach.h"
5373 xmake_file=rs6000/x-mach
5377 tm_file=rs6000/lynx.h
5378 xm_file=rs6000/xm-lynx.h
5379 tmake_file=rs6000/t-rs6000
5380 xmake_file=rs6000/x-lynx
5388 tmake_file="sh/t-sh t-rtems"
5389 tm_file=sh/rtemself.h
5393 tmake_file="sh/t-sh t-rtems"
5402 xm_file="xm-alloca.h ${xm_file}"
5405 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5406 tm_file=sparc/vxsparc.h
5407 tmake_file=sparc/t-vxsparc
5409 thread_file='vxworks'
5412 tmake_file=sparc/t-sparcbare
5413 tm_file="sparc/aout.h libgloss.h"
5416 tm_file=sparc/netbsd.h
5421 # we need collect2 until our bug is fixed...
5429 tmake_file=sparc/t-elf
5430 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5434 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5435 xm_file="${xm_file} sparc/xm-linux.h"
5436 tm_file=sparc/linux-aout.h
5440 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5441 xm_file="${xm_file} sparc/xm-linux.h"
5443 tm_file=sparc/linux.h
5444 tmake_file="t-linux t-linux-gnulibc1"
5445 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5449 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5450 xm_file="${xm_file} sparc/xm-linux.h"
5452 tm_file=sparc/linux.h
5453 tmake_file="t-linux"
5454 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5456 if test x$enable_threads = xyes; then
5462 if test x$gas = xyes
5464 tm_file=sparc/lynx.h
5466 tm_file=sparc/lynx-ng.h
5468 xm_file=sparc/xm-lynx.h
5469 tmake_file=sparc/t-sunos41
5473 tmake_file="sparc/t-sparcbare t-rtems"
5474 tm_file=sparc/rtems.h
5476 sparcv9-*-solaris2*)
5477 tm_file=sparc/sol2-sld-64.h
5478 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5479 xm_defines="USG POSIX"
5480 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5481 xmake_file=sparc/x-sysv4
5482 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5484 if test x${enable_threads} = x ; then
5485 enable_threads=$have_pthread_h
5486 if test x${enable_threads} = x ; then
5487 enable_threads=$have_thread_h
5490 if test x${enable_threads} = xyes ; then
5491 if test x${have_pthread_h} = xyes ; then
5494 thread_file='solaris'
5498 sparc-hal-solaris2*)
5499 xm_file=sparc/xm-sol2.h
5500 tm_file="sparc/sol2.h sparc/hal.h"
5501 tmake_file="sparc/t-halos sparc/t-sol2"
5502 xmake_file=sparc/x-sysv4
5503 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5507 if test x$gnu_ld = xyes
5509 tm_file=sparc/sol2.h
5511 tm_file=sparc/sol2-sld.h
5513 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5514 xm_defines="USG POSIX"
5515 tmake_file=sparc/t-sol2
5516 xmake_file=sparc/x-sysv4
5517 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5526 if test x${enable_threads} = x; then
5527 enable_threads=$have_pthread_h
5528 if test x${enable_threads} = x; then
5529 enable_threads=$have_thread_h
5532 if test x${enable_threads} = xyes; then
5533 if test x${have_pthread_h} = xyes; then
5536 thread_file='solaris'
5541 tm_file=sparc/sunos4.h
5542 tmake_file=sparc/t-sunos40
5546 tm_file=sparc/sunos4.h
5547 tmake_file=sparc/t-sunos41
5549 if test x$gas = xyes; then
5550 tm_file="${tm_file} sparc/sun4gas.h"
5554 tm_file=sparc/sun4o3.h
5558 tm_file=sparc/sysv4.h
5559 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5560 xm_defines="USG POSIX"
5562 xmake_file=sparc/x-sysv4
5563 extra_parts="crtbegin.o crtend.o"
5566 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5567 xm_defines="USG POSIX"
5568 tm_file=sparc/vxsim.h
5569 tmake_file=sparc/t-vxsparc
5570 xmake_file=sparc/x-sysv4
5573 tm_file="sparc/splet.h libgloss.h"
5574 tmake_file=sparc/t-splet
5577 tm_file="sparc/litecoff.h libgloss.h"
5578 tmake_file=sparc/t-sparclite
5581 tm_file="sparc/lite.h aoutos.h libgloss.h"
5582 tmake_file=sparc/t-sparclite
5585 tmake_file=sparc/t-sp64
5586 tm_file=sparc/sp64-aout.h
5589 tmake_file=sparc/t-sp64
5590 tm_file=sparc/sp64-elf.h
5591 extra_parts="crtbegin.o crtend.o"
5593 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5594 tmake_file="t-linux sparc/t-linux64"
5595 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5596 tm_file=sparc/linux64.h
5598 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5602 # This hasn't been upgraded to GCC 2.
5603 # tahoe-harris-*) # Harris tahoe, using COFF.
5604 # tm_file=tahoe/harris.h
5606 # tahoe-*-bsd*) # tahoe running BSD
5608 thumb-*-coff* | thumbel-*-coff*)
5610 out_file=arm/thumb.c
5611 xm_file=arm/xm-thumb.h
5612 md_file=arm/thumb.md
5613 tmake_file=arm/t-thumb
5615 thumb-*-elf* | thumbel-*-elf*)
5617 out_file=arm/thumb.c
5618 xm_file=arm/xm-thumb.h
5619 md_file=arm/thumb.md
5620 tmake_file=arm/t-thumb-elf
5623 tm_file=arm/linux-telf.h
5624 out_file=arm/thumb.c
5625 xm_file=arm/xm-thumb.h
5626 md_file=arm/thumb.md
5627 tmake_file=arm/t-thumb-linux
5630 tm_file=arm/uclinux-telf.h
5631 out_file=arm/thumb.c
5632 md_file=arm/thumb.md
5633 tmake_file=arm/t-thumb-linux
5634 xm_file=arm/xm-thumb.h
5638 out_file=arm/thumb.c
5639 xm_file=arm/xm-thumb.h
5640 md_file=arm/thumb.md
5641 tmake_file=arm/t-thumb
5642 thread_file='vxworks'
5646 out_file=arm/thumb.c
5647 xm_file=arm/xm-thumb.h
5648 md_file=arm/thumb.md
5649 tmake_file=arm/t-pe-thumb
5652 # This hasn't been upgraded to GCC 2.
5659 tm_file="v850/v850.h"
5660 xm_file="v850/xm-v850.h"
5661 tmake_file=v850/t-v850
5662 if test x$stabs = xyes
5664 tm_file="${tm_file} dbx.h"
5668 vax-*-bsd*) # vaxen running BSD
5672 vax-*-sysv*) # vaxen running system V
5673 tm_file="${tm_file} vax/vaxv.h"
5678 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5684 tmake_file="${tmake_file} vax/t-openbsd"
5686 vax-*-ultrix*) # vaxen running ultrix
5687 tm_file="${tm_file} vax/ultrix.h"
5691 vax-*-vms*) # vaxen running VMS
5692 xm_file=vax/xm-vms.h
5696 vax-*-*) # vax default entry
5700 xm_file="${xm_file} xm-svr3"
5704 echo "Configuration $machine not supported" 1>&2
5711 ;; # Existing GNU/Linux systems do not use the GNU setup.
5713 # On the GNU system, the setup is just about the same on
5714 # each different CPU. The specific machines that GNU
5715 # supports are matched above and just set $cpu_type.
5716 xm_file="xm-gnu.h ${xm_file}"
5717 tm_file=${cpu_type}/gnu.h
5718 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5719 # GNU always uses ELF.
5721 # GNU tools are the only tools.
5724 xmake_file=x-linux # These details are the same as Linux.
5725 tmake_file=t-gnu # These are not.
5728 xmake_try_sysv=x-sysv
5729 install_headers_dir=install-headers-cpio
5732 install_headers_dir=install-headers-cpio
5736 # Distinguish i[34567]86
5737 # Also, do not run mips-tfile on MIPS if using gas.
5738 # Process --with-cpu= for PowerPC/rs6000
5739 target_cpu_default2=
5742 target_cpu_default2=1
5745 case $target_alias in
5747 target_cpu_default2=4
5750 target_cpu_default2=2
5754 i686-*-* | i786-*-*)
5755 target_cpu_default2=3
5760 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5763 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5766 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5769 target_cpu_default2="MASK_CPU_EV5"
5773 if test x$gas = xyes
5775 if test "$target_cpu_default2" = ""
5777 target_cpu_default2="MASK_GAS"
5779 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
5784 case "x$with_cpu" in
5787 target_cpu_default2="TARGET_CPU_generic"
5790 # Distinguish cores, and major variants
5791 # arm7m doesn't exist, but D & I don't affect code
5792 xarm23678 | xarm250 | xarm67010 \
5793 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5794 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5795 | xstrongarm | xstrongarm110 | xstrongarm1100)
5796 target_cpu_default2="TARGET_CPU_$with_cpu"
5800 echo "--with-cpu must be passed a value" 1>&2
5805 if test x$pass2done = xyes
5807 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5814 mips*-*-ecoff* | mips*-*-elf*)
5815 if test x$gas = xyes
5817 if test x$gnu_ld = xyes
5819 target_cpu_default2=20
5821 target_cpu_default2=16
5826 if test x$gas = xyes
5828 target_cpu_default2=16
5831 powerpc*-*-* | rs6000-*-*)
5832 case "x$with_cpu" in
5836 xcommon | xpower | xpower2 | xpowerpc | xrios \
5837 | xrios1 | xrios2 | xrsc | xrsc1 \
5838 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5839 | xec603e | x740 | x750 | x401 \
5840 | x403 | x505 | x801 | x821 | x823 | x860)
5841 target_cpu_default2="\"$with_cpu\""
5845 echo "--with-cpu must be passed a value" 1>&2
5850 if test x$pass2done = xyes
5852 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5859 case ".$with_cpu" in
5861 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
5863 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
5864 target_cpu_default2="TARGET_CPU_$with_cpu"
5867 if test x$pass2done = xyes
5869 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5877 if test "$target_cpu_default2" != ""
5879 if test "$target_cpu_default" != ""
5881 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5883 target_cpu_default=$target_cpu_default2
5887 # No need for collect2 if we have the GNU linker.
5888 # Actually, there is now; GNU ld doesn't handle the EH info or
5889 # collecting for shared libraries.
5896 # Save data on machine being used to compile GCC in build_xm_file.
5897 # Save data on host machine in vars host_xm_file and host_xmake_file.
5898 if test x$pass1done = x
5900 if test x"$xm_file" = x
5901 then build_xm_file=$cpu_type/xm-$cpu_type.h
5902 else build_xm_file=$xm_file
5904 build_xm_defines=$xm_defines
5905 build_install_headers_dir=$install_headers_dir
5906 build_exeext=$exeext
5909 if test x$pass2done = x
5911 if test x"$xm_file" = x
5912 then host_xm_file=$cpu_type/xm-$cpu_type.h
5913 else host_xm_file=$xm_file
5915 host_xm_defines=$xm_defines
5916 if test x"$xmake_file" = x
5917 then xmake_file=$cpu_type/x-$cpu_type
5919 host_xmake_file="$xmake_file"
5920 host_truncate_target=$truncate_target
5921 host_extra_gcc_objs=$extra_gcc_objs
5922 host_extra_objs=$extra_host_objs
5929 extra_objs="${host_extra_objs} ${extra_objs}"
5931 # Default the target-machine variables that were not explicitly set.
5932 if test x"$tm_file" = x
5933 then tm_file=$cpu_type/$cpu_type.h; fi
5935 if test x$extra_headers = x
5936 then extra_headers=; fi
5938 if test x"$xm_file" = x
5939 then xm_file=$cpu_type/xm-$cpu_type.h; fi
5941 if test x$md_file = x
5942 then md_file=$cpu_type/$cpu_type.md; fi
5944 if test x$out_file = x
5945 then out_file=$cpu_type/$cpu_type.c; fi
5947 if test x"$tmake_file" = x
5948 then tmake_file=$cpu_type/t-$cpu_type
5951 if test x"$dwarf2" = xyes
5952 then tm_file="tm-dwarf2.h $tm_file"
5955 if test x$float_format = x
5956 then float_format=i64
5959 if test $float_format = none
5960 then float_h_file=Makefile.in
5961 else float_h_file=float-$float_format.h
5964 if test x$enable_haifa = x
5967 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
5972 # Handle cpp installation.
5973 if test x$enable_cpp != xno
5975 tmake_file="$tmake_file t-install-cpp"
5978 # Say what files are being used for the output code and MD file.
5979 echo "Using \`$srcdir/config/$out_file' to output insns."
5980 echo "Using \`$srcdir/config/$md_file' as machine description file."
5983 for f in $tm_file; do
5986 if test $count = ax; then
5987 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5989 echo "Using the following target machine macro files:"
5990 for f in $tm_file; do
5991 echo " $srcdir/config/$f"
5996 for f in $host_xm_file; do
5999 if test $count = ax; then
6000 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6002 echo "Using the following host machine macro files:"
6003 for f in $host_xm_file; do
6004 echo " $srcdir/config/$f"
6008 if test "$host_xm_file" != "$build_xm_file"; then
6010 for f in $build_xm_file; do
6013 if test $count = ax; then
6014 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6016 echo "Using the following build machine macro files:"
6017 for f in $build_xm_file; do
6018 echo " $srcdir/config/$f"
6023 if test x$thread_file = x; then
6024 if test x$target_thread_file != x; then
6025 thread_file=$target_thread_file
6027 thread_file='single'
6031 # Set up the header files.
6032 # $links is the list of header files to create.
6033 # $vars is the list of shell variables with file names to include.
6034 # auto-host.h is the file containing items generated by autoconf and is
6035 # the first file included by config.h.
6037 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6039 # If host=build, it is correct to have hconfig include auto-host.h
6040 # as well. If host!=build, we are in error and need to do more
6041 # work to find out the build config parameters.
6042 if test x$host = x$build
6044 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6046 # We create a subdir, then run autoconf in the subdir.
6047 # To prevent recursion we set host and build for the new
6048 # invocation of configure to the build for this invocation
6055 /*) realsrcdir=${srcdir};;
6056 *) realsrcdir=../${srcdir};;
6058 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6059 --target=$target --host=$build --build=$build
6061 # We just finished tests for the build machine, so rename
6062 # the file auto-build.h in the gcc directory.
6063 mv auto-host.h ../auto-build.h
6066 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6069 xm_file="gansidecl.h ${xm_file}"
6070 tm_file="gansidecl.h ${tm_file}"
6072 vars="host_xm_file tm_file xm_file build_xm_file"
6073 links="config.h tm.h tconfig.h hconfig.h"
6074 defines="host_xm_defines null_defines xm_defines build_xm_defines"
6077 if test -f config.status; then mv -f config.status config.bak; fi
6080 while test -n "$vars"
6082 set $vars; var=$1; shift; vars=$*
6083 set $links; link=$1; shift; links=$*
6084 set $defines; define=$1; shift; defines=$*
6088 # Define TARGET_CPU_DEFAULT if the system wants one.
6089 # This substitutes for lots of *.h files.
6090 if test "$target_cpu_default" != "" -a $link = tm.h
6092 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6095 for file in `eval echo '$'$var`; do
6100 echo '#ifdef IN_GCC' >>$link
6103 echo "#include \"$file\"" >>$link
6108 echo '#endif' >>$link
6113 for def in `eval echo '$'$define`; do
6114 echo "#ifndef $def" >>$link
6115 echo "#define $def" >>$link
6116 echo "#endif" >>$link
6120 # Truncate the target if necessary
6121 if test x$host_truncate_target != x; then
6122 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6125 # Get the version trigger filename from the toplevel
6126 if test "${with_gcc_version_trigger+set}" = set; then
6127 gcc_version_trigger=$with_gcc_version_trigger
6129 gcc_version_trigger=${srcdir}/version.c
6131 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6133 # Internationalization
6135 VERSION="$gcc_version"
6136 cat >> confdefs.h <<EOF
6137 #define PACKAGE "$PACKAGE"
6140 cat >> confdefs.h <<EOF
6141 #define VERSION "$VERSION"
6149 # NLS support is still experimental, so disable it by default for now.
6150 # Check whether --enable-nls or --disable-nls was given.
6151 if test "${enable_nls+set}" = set; then
6152 enableval="$enable_nls"
6160 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6161 echo "configure:6162: checking for strerror in -lcposix" >&5
6162 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6164 echo $ac_n "(cached) $ac_c" 1>&6
6166 ac_save_LIBS="$LIBS"
6167 LIBS="-lcposix $LIBS"
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6182 eval "ac_cv_lib_$ac_lib_var=yes"
6184 echo "configure: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6187 eval "ac_cv_lib_$ac_lib_var=no"
6190 LIBS="$ac_save_LIBS"
6193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6194 echo "$ac_t""yes" 1>&6
6195 LIBS="$LIBS -lcposix"
6197 echo "$ac_t""no" 1>&6
6202 echo $ac_n "checking for working const""... $ac_c" 1>&6
6203 echo "configure:6204: checking for working const" >&5
6204 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6213 /* Ultrix mips cc rejects this. */
6214 typedef int charset[2]; const charset x;
6215 /* SunOS 4.1.1 cc rejects this. */
6216 char const *const *ccp;
6218 /* NEC SVR4.0.2 mips cc rejects this. */
6219 struct point {int x, y;};
6220 static struct point const zero = {0,0};
6221 /* AIX XL C 1.02.0.0 rejects this.
6222 It does not let you subtract one const X* pointer from another in an arm
6223 of an if-expression whose if-part is not a constant expression */
6224 const char *g = "string";
6225 ccp = &g + (g ? g-g : 0);
6226 /* HPUX 7.0 cc rejects these. */
6229 ccp = (char const *const *) p;
6230 { /* SCO 3.2v4 cc rejects this. */
6232 char const *s = 0 ? (char *) 0 : (char const *) 0;
6236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6238 const int *foo = &x[0];
6241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6242 typedef const int *iptr;
6246 { /* AIX XL C 1.02.0.0 rejects this saying
6247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6248 struct s { int j; const int *ap[3]; };
6249 struct s *b; b->j = 5;
6251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6257 if { (eval echo configure:6258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6261 echo "configure: failed program was:" >&5
6262 cat conftest.$ac_ext >&5
6269 echo "$ac_t""$ac_cv_c_const" 1>&6
6270 if test $ac_cv_c_const = no; then
6271 cat >> confdefs.h <<\EOF
6277 echo $ac_n "checking for inline""... $ac_c" 1>&6
6278 echo "configure:6279: checking for inline" >&5
6279 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6280 echo $ac_n "(cached) $ac_c" 1>&6
6283 for ac_kw in inline __inline__ __inline; do
6284 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6292 if { (eval echo configure:6293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6294 ac_cv_c_inline=$ac_kw; break
6296 echo "configure: failed program was:" >&5
6297 cat conftest.$ac_ext >&5
6304 echo "$ac_t""$ac_cv_c_inline" 1>&6
6305 case "$ac_cv_c_inline" in
6307 no) cat >> confdefs.h <<\EOF
6311 *) cat >> confdefs.h <<EOF
6312 #define inline $ac_cv_c_inline
6317 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6318 echo "configure:6319: checking for off_t" >&5
6319 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6320 echo $ac_n "(cached) $ac_c" 1>&6
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6325 #include <sys/types.h>
6331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6332 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6334 ac_cv_type_off_t=yes
6342 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6343 if test $ac_cv_type_off_t = no; then
6344 cat >> confdefs.h <<\EOF
6350 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6351 echo "configure:6352: checking for size_t" >&5
6352 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 #include <sys/types.h>
6364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6365 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6367 ac_cv_type_size_t=yes
6370 ac_cv_type_size_t=no
6375 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6376 if test $ac_cv_type_size_t = no; then
6377 cat >> confdefs.h <<\EOF
6378 #define size_t unsigned
6383 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6384 # for constant arguments. Useless!
6385 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6386 echo "configure:6387: checking for working alloca.h" >&5
6387 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6388 echo $ac_n "(cached) $ac_c" 1>&6
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6395 char *p = alloca(2 * sizeof(int));
6398 if { (eval echo configure:6399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6400 ac_cv_header_alloca_h=yes
6402 echo "configure: failed program was:" >&5
6403 cat conftest.$ac_ext >&5
6405 ac_cv_header_alloca_h=no
6410 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6411 if test $ac_cv_header_alloca_h = yes; then
6412 cat >> confdefs.h <<\EOF
6413 #define HAVE_ALLOCA_H 1
6418 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6419 echo "configure:6420: checking for alloca" >&5
6420 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6428 # define alloca __builtin_alloca
6431 # include <malloc.h>
6432 # define alloca _alloca
6435 # include <alloca.h>
6440 # ifndef alloca /* predefined by HP cc +Olibcalls */
6449 char *p = (char *) alloca(1);
6452 if { (eval echo configure:6453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6454 ac_cv_func_alloca_works=yes
6456 echo "configure: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6459 ac_cv_func_alloca_works=no
6464 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6465 if test $ac_cv_func_alloca_works = yes; then
6466 cat >> confdefs.h <<\EOF
6467 #define HAVE_ALLOCA 1
6472 if test $ac_cv_func_alloca_works = no; then
6473 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6474 # that cause trouble. Some versions do not even contain alloca or
6475 # contain a buggy version. If you still want to use their alloca,
6476 # use ar to extract alloca.o from them instead of compiling alloca.c.
6477 ALLOCA=alloca.${ac_objext}
6478 cat >> confdefs.h <<\EOF
6483 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6484 echo "configure:6485: checking whether alloca needs Cray hooks" >&5
6485 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6491 #if defined(CRAY) && ! defined(CRAY2)
6498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6499 egrep "webecray" >/dev/null 2>&1; then
6510 echo "$ac_t""$ac_cv_os_cray" 1>&6
6511 if test $ac_cv_os_cray = yes; then
6512 for ac_func in _getb67 GETB67 getb67; do
6513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_func" >&5
6515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* System header to define __stub macros and hopefully few prototypes,
6522 which can conflict with char $ac_func(); below. */
6524 /* Override any gcc2 internal prototype to avoid an error. */
6525 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6531 /* The GNU C library defines this for functions which it implements
6532 to always fail with ENOSYS. Some functions are actually named
6533 something starting with __ and the normal name is an alias. */
6534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6542 if { (eval echo configure:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544 eval "ac_cv_func_$ac_func=yes"
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6549 eval "ac_cv_func_$ac_func=no"
6554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6556 cat >> confdefs.h <<EOF
6557 #define CRAY_STACKSEG_END $ac_func
6562 echo "$ac_t""no" 1>&6
6568 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6569 echo "configure:6570: checking stack direction for C alloca" >&5
6570 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6573 if test "$cross_compiling" = yes; then
6574 ac_cv_c_stack_direction=0
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 find_stack_direction ()
6581 static char *addr = 0;
6586 return find_stack_direction ();
6589 return (&dummy > addr) ? 1 : -1;
6593 exit (find_stack_direction() < 0);
6596 if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6598 ac_cv_c_stack_direction=1
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 ac_cv_c_stack_direction=-1
6610 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6611 cat >> confdefs.h <<EOF
6612 #define STACK_DIRECTION $ac_cv_c_stack_direction
6617 for ac_hdr in unistd.h
6619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6621 echo "configure:6622: checking for $ac_hdr" >&5
6622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6631 { (eval echo configure:6632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6633 if test -z "$ac_err"; then
6635 eval "ac_cv_header_$ac_safe=yes"
6638 echo "configure: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6641 eval "ac_cv_header_$ac_safe=no"
6645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6648 cat >> confdefs.h <<EOF
6649 #define $ac_tr_hdr 1
6653 echo "$ac_t""no" 1>&6
6657 for ac_func in getpagesize
6659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6660 echo "configure:6661: checking for $ac_func" >&5
6661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 /* System header to define __stub macros and hopefully few prototypes,
6668 which can conflict with char $ac_func(); below. */
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6677 /* The GNU C library defines this for functions which it implements
6678 to always fail with ENOSYS. Some functions are actually named
6679 something starting with __ and the normal name is an alias. */
6680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6688 if { (eval echo configure:6689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6690 eval "ac_cv_func_$ac_func=yes"
6692 echo "configure: failed program was:" >&5
6693 cat conftest.$ac_ext >&5
6695 eval "ac_cv_func_$ac_func=no"
6700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6701 echo "$ac_t""yes" 1>&6
6702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6703 cat >> confdefs.h <<EOF
6704 #define $ac_tr_func 1
6708 echo "$ac_t""no" 1>&6
6712 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6713 echo "configure:6714: checking for working mmap" >&5
6714 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6717 if test "$cross_compiling" = yes; then
6718 ac_cv_func_mmap_fixed_mapped=no
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6724 /* Thanks to Mike Haertel and Jim Avera for this test.
6725 Here is a matrix of mmap possibilities:
6726 mmap private not fixed
6727 mmap private fixed at somewhere currently unmapped
6728 mmap private fixed at somewhere already mapped
6729 mmap shared not fixed
6730 mmap shared fixed at somewhere currently unmapped
6731 mmap shared fixed at somewhere already mapped
6732 For private mappings, we should verify that changes cannot be read()
6733 back from the file, nor mmap's back from the file at a different
6734 address. (There have been systems where private was not correctly
6735 implemented like the infamous i386 svr4.0, and systems where the
6736 VM page cache was not coherent with the filesystem buffer cache
6737 like early versions of FreeBSD and possibly contemporary NetBSD.)
6738 For shared mappings, we should conversely verify that changes get
6739 propogated back to all the places they're supposed to be.
6741 Grep wants private fixed already mapped.
6742 The main things grep needs to know about mmap are:
6743 * does it exist and is it safe to write into the mmap'd area
6744 * how to use it (BSD variants) */
6745 #include <sys/types.h>
6747 #include <sys/mman.h>
6749 /* This mess was copied from the GNU getpagesize.h. */
6750 #ifndef HAVE_GETPAGESIZE
6751 # ifdef HAVE_UNISTD_H
6752 # include <unistd.h>
6755 /* Assume that all systems that can run configure have sys/param.h. */
6756 # ifndef HAVE_SYS_PARAM_H
6757 # define HAVE_SYS_PARAM_H 1
6760 # ifdef _SC_PAGESIZE
6761 # define getpagesize() sysconf(_SC_PAGESIZE)
6762 # else /* no _SC_PAGESIZE */
6763 # ifdef HAVE_SYS_PARAM_H
6764 # include <sys/param.h>
6765 # ifdef EXEC_PAGESIZE
6766 # define getpagesize() EXEC_PAGESIZE
6767 # else /* no EXEC_PAGESIZE */
6769 # define getpagesize() NBPG * CLSIZE
6772 # endif /* no CLSIZE */
6773 # else /* no NBPG */
6775 # define getpagesize() NBPC
6776 # else /* no NBPC */
6778 # define getpagesize() PAGESIZE
6779 # endif /* PAGESIZE */
6780 # endif /* no NBPC */
6781 # endif /* no NBPG */
6782 # endif /* no EXEC_PAGESIZE */
6783 # else /* no HAVE_SYS_PARAM_H */
6784 # define getpagesize() 8192 /* punt totally */
6785 # endif /* no HAVE_SYS_PARAM_H */
6786 # endif /* no _SC_PAGESIZE */
6788 #endif /* no HAVE_GETPAGESIZE */
6791 extern "C" { void *malloc(unsigned); }
6799 char *data, *data2, *data3;
6803 pagesize = getpagesize();
6806 * First, make a file with some known garbage in it.
6808 data = malloc(pagesize);
6811 for (i = 0; i < pagesize; ++i)
6812 *(data + i) = rand();
6814 fd = creat("conftestmmap", 0600);
6817 if (write(fd, data, pagesize) != pagesize)
6822 * Next, try to mmap the file at a fixed address which
6823 * already has something else allocated at it. If we can,
6824 * also make sure that we see the same garbage.
6826 fd = open("conftestmmap", O_RDWR);
6829 data2 = malloc(2 * pagesize);
6832 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6833 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6834 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6836 for (i = 0; i < pagesize; ++i)
6837 if (*(data + i) != *(data2 + i))
6841 * Finally, make sure that changes to the mapped area
6842 * do not percolate back to the file as seen by read().
6843 * (This is a bug on some variants of i386 svr4.0.)
6845 for (i = 0; i < pagesize; ++i)
6846 *(data2 + i) = *(data2 + i) + 1;
6847 data3 = malloc(pagesize);
6850 if (read(fd, data3, pagesize) != pagesize)
6852 for (i = 0; i < pagesize; ++i)
6853 if (*(data + i) != *(data3 + i))
6856 unlink("conftestmmap");
6861 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6863 ac_cv_func_mmap_fixed_mapped=yes
6865 echo "configure: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6868 ac_cv_func_mmap_fixed_mapped=no
6875 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6876 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6877 cat >> confdefs.h <<\EOF
6884 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6885 unistd.h sys/param.h
6887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6889 echo "configure:6890: checking for $ac_hdr" >&5
6890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6899 { (eval echo configure:6900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6901 if test -z "$ac_err"; then
6903 eval "ac_cv_header_$ac_safe=yes"
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 eval "ac_cv_header_$ac_safe=no"
6913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6914 echo "$ac_t""yes" 1>&6
6915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6916 cat >> confdefs.h <<EOF
6917 #define $ac_tr_hdr 1
6921 echo "$ac_t""no" 1>&6
6925 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6926 strdup __argz_count __argz_stringify __argz_next
6928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6929 echo "configure:6930: checking for $ac_func" >&5
6930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6933 cat > conftest.$ac_ext <<EOF
6934 #line 6935 "configure"
6935 #include "confdefs.h"
6936 /* System header to define __stub macros and hopefully few prototypes,
6937 which can conflict with char $ac_func(); below. */
6939 /* Override any gcc2 internal prototype to avoid an error. */
6940 /* We use char because int might match the return type of a gcc2
6941 builtin and then its argument prototype would still apply. */
6946 /* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6959 eval "ac_cv_func_$ac_func=yes"
6961 echo "configure: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6964 eval "ac_cv_func_$ac_func=no"
6969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6970 echo "$ac_t""yes" 1>&6
6971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6972 cat >> confdefs.h <<EOF
6973 #define $ac_tr_func 1
6977 echo "$ac_t""no" 1>&6
6982 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6983 for ac_func in stpcpy
6985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6986 echo "configure:6987: checking for $ac_func" >&5
6987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6988 echo $ac_n "(cached) $ac_c" 1>&6
6990 cat > conftest.$ac_ext <<EOF
6991 #line 6992 "configure"
6992 #include "confdefs.h"
6993 /* System header to define __stub macros and hopefully few prototypes,
6994 which can conflict with char $ac_func(); below. */
6996 /* Override any gcc2 internal prototype to avoid an error. */
6997 /* We use char because int might match the return type of a gcc2
6998 builtin and then its argument prototype would still apply. */
7003 /* The GNU C library defines this for functions which it implements
7004 to always fail with ENOSYS. Some functions are actually named
7005 something starting with __ and the normal name is an alias. */
7006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7014 if { (eval echo configure:7015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7016 eval "ac_cv_func_$ac_func=yes"
7018 echo "configure: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 eval "ac_cv_func_$ac_func=no"
7026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7027 echo "$ac_t""yes" 1>&6
7028 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7029 cat >> confdefs.h <<EOF
7030 #define $ac_tr_func 1
7034 echo "$ac_t""no" 1>&6
7039 if test "${ac_cv_func_stpcpy}" = "yes"; then
7040 cat >> confdefs.h <<\EOF
7041 #define HAVE_STPCPY 1
7046 if test $ac_cv_header_locale_h = yes; then
7047 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7048 echo "configure:7049: checking for LC_MESSAGES" >&5
7049 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 cat > conftest.$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7060 if { (eval echo configure:7061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7062 am_cv_val_LC_MESSAGES=yes
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7067 am_cv_val_LC_MESSAGES=no
7072 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7073 if test $am_cv_val_LC_MESSAGES = yes; then
7074 cat >> confdefs.h <<\EOF
7075 #define HAVE_LC_MESSAGES 1
7080 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7081 echo "configure:7082: checking whether NLS is requested" >&5
7082 # Check whether --enable-nls or --disable-nls was given.
7083 if test "${enable_nls+set}" = set; then
7084 enableval="$enable_nls"
7090 echo "$ac_t""$USE_NLS" 1>&6
7093 USE_INCLUDED_LIBINTL=no
7095 if test "$USE_NLS" = "yes"; then
7096 cat >> confdefs.h <<\EOF
7097 #define ENABLE_NLS 1
7100 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7101 echo "configure:7102: checking whether included gettext is requested" >&5
7102 # Check whether --with-included-gettext or --without-included-gettext was given.
7103 if test "${with_included_gettext+set}" = set; then
7104 withval="$with_included_gettext"
7105 nls_cv_force_use_gnu_gettext=$withval
7107 nls_cv_force_use_gnu_gettext=no
7110 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7112 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7113 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7115 nls_cv_header_libgt=
7118 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7119 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7120 echo "configure:7121: checking for libintl.h" >&5
7121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7124 cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7127 #include <libintl.h>
7129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7130 { (eval echo configure:7131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7132 if test -z "$ac_err"; then
7134 eval "ac_cv_header_$ac_safe=yes"
7137 echo "configure: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7140 eval "ac_cv_header_$ac_safe=no"
7144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7145 echo "$ac_t""yes" 1>&6
7146 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7147 echo "configure:7148: checking for gettext in libc" >&5
7148 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7151 cat > conftest.$ac_ext <<EOF
7152 #line 7153 "configure"
7153 #include "confdefs.h"
7154 #include <libintl.h>
7156 return (int) gettext ("")
7159 if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7161 gt_cv_func_gettext_libc=yes
7163 echo "configure: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7166 gt_cv_func_gettext_libc=no
7171 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7173 if test "$gt_cv_func_gettext_libc" != "yes"; then
7174 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7175 echo "configure:7176: checking for bindtextdomain in -lintl" >&5
7176 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7180 ac_save_LIBS="$LIBS"
7182 cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7185 /* Override any gcc2 internal prototype to avoid an error. */
7186 /* We use char because int might match the return type of a gcc2
7187 builtin and then its argument prototype would still apply. */
7188 char bindtextdomain();
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196 eval "ac_cv_lib_$ac_lib_var=yes"
7198 echo "configure: failed program was:" >&5
7199 cat conftest.$ac_ext >&5
7201 eval "ac_cv_lib_$ac_lib_var=no"
7204 LIBS="$ac_save_LIBS"
7207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7208 echo "$ac_t""yes" 1>&6
7209 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7210 echo "configure:7211: checking for gettext in libintl" >&5
7211 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7214 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7215 echo "configure:7216: checking for gettext in -lintl" >&5
7216 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7218 echo $ac_n "(cached) $ac_c" 1>&6
7220 ac_save_LIBS="$LIBS"
7222 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7225 /* Override any gcc2 internal prototype to avoid an error. */
7226 /* We use char because int might match the return type of a gcc2
7227 builtin and then its argument prototype would still apply. */
7234 if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7236 eval "ac_cv_lib_$ac_lib_var=yes"
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7241 eval "ac_cv_lib_$ac_lib_var=no"
7244 LIBS="$ac_save_LIBS"
7247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7248 echo "$ac_t""yes" 1>&6
7249 gt_cv_func_gettext_libintl=yes
7251 echo "$ac_t""no" 1>&6
7252 gt_cv_func_gettext_libintl=no
7257 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7259 echo "$ac_t""no" 1>&6
7264 if test "$gt_cv_func_gettext_libc" = "yes" \
7265 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7266 cat >> confdefs.h <<\EOF
7267 #define HAVE_GETTEXT 1
7270 # Extract the first word of "msgfmt", so it can be a program name with args.
7271 set dummy msgfmt; ac_word=$2
7272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7273 echo "configure:7274: checking for $ac_word" >&5
7274 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7275 echo $ac_n "(cached) $ac_c" 1>&6
7279 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7283 for ac_dir in $PATH; do
7284 test -z "$ac_dir" && ac_dir=.
7285 if test -f $ac_dir/$ac_word; then
7286 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7287 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7293 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7297 MSGFMT="$ac_cv_path_MSGFMT"
7298 if test -n "$MSGFMT"; then
7299 echo "$ac_t""$MSGFMT" 1>&6
7301 echo "$ac_t""no" 1>&6
7303 if test "$MSGFMT" != "no"; then
7304 for ac_func in dcgettext
7306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7307 echo "configure:7308: checking for $ac_func" >&5
7308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 /* System header to define __stub macros and hopefully few prototypes,
7315 which can conflict with char $ac_func(); below. */
7317 /* Override any gcc2 internal prototype to avoid an error. */
7318 /* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7324 /* The GNU C library defines this for functions which it implements
7325 to always fail with ENOSYS. Some functions are actually named
7326 something starting with __ and the normal name is an alias. */
7327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7337 eval "ac_cv_func_$ac_func=yes"
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 eval "ac_cv_func_$ac_func=no"
7347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7348 echo "$ac_t""yes" 1>&6
7349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7350 cat >> confdefs.h <<EOF
7351 #define $ac_tr_func 1
7355 echo "$ac_t""no" 1>&6
7359 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7360 set dummy gmsgfmt; ac_word=$2
7361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7362 echo "configure:7363: checking for $ac_word" >&5
7363 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7364 echo $ac_n "(cached) $ac_c" 1>&6
7368 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7371 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7376 for ac_dir in $ac_dummy; do
7377 test -z "$ac_dir" && ac_dir=.
7378 if test -f $ac_dir/$ac_word; then
7379 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7384 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7388 GMSGFMT="$ac_cv_path_GMSGFMT"
7389 if test -n "$GMSGFMT"; then
7390 echo "$ac_t""$GMSGFMT" 1>&6
7392 echo "$ac_t""no" 1>&6
7395 # Extract the first word of "xgettext", so it can be a program name with args.
7396 set dummy xgettext; ac_word=$2
7397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7398 echo "configure:7399: checking for $ac_word" >&5
7399 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7404 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7408 for ac_dir in $PATH; do
7409 test -z "$ac_dir" && ac_dir=.
7410 if test -f $ac_dir/$ac_word; then
7411 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7412 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7418 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7422 XGETTEXT="$ac_cv_path_XGETTEXT"
7423 if test -n "$XGETTEXT"; then
7424 echo "$ac_t""$XGETTEXT" 1>&6
7426 echo "$ac_t""no" 1>&6
7429 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7434 extern int _nl_msg_cat_cntr;
7435 return _nl_msg_cat_cntr
7438 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7443 echo "configure: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7455 echo "$ac_t""no" 1>&6
7459 if test "$CATOBJEXT" = "NONE"; then
7460 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7461 echo "configure:7462: checking whether catgets can be used" >&5
7462 # Check whether --with-catgets or --without-catgets was given.
7463 if test "${with_catgets+set}" = set; then
7464 withval="$with_catgets"
7465 nls_cv_use_catgets=$withval
7467 nls_cv_use_catgets=no
7470 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7472 if test "$nls_cv_use_catgets" = "yes"; then
7473 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7474 echo "configure:7475: checking for main in -li" >&5
7475 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7479 ac_save_LIBS="$LIBS"
7481 cat > conftest.$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7489 if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7491 eval "ac_cv_lib_$ac_lib_var=yes"
7493 echo "configure: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7496 eval "ac_cv_lib_$ac_lib_var=no"
7499 LIBS="$ac_save_LIBS"
7502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7503 echo "$ac_t""yes" 1>&6
7504 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7506 cat >> confdefs.h <<EOF
7507 #define $ac_tr_lib 1
7513 echo "$ac_t""no" 1>&6
7516 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7517 echo "configure:7518: checking for catgets" >&5
7518 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7519 echo $ac_n "(cached) $ac_c" 1>&6
7521 cat > conftest.$ac_ext <<EOF
7522 #line 7523 "configure"
7523 #include "confdefs.h"
7524 /* System header to define __stub macros and hopefully few prototypes,
7525 which can conflict with char catgets(); below. */
7527 /* Override any gcc2 internal prototype to avoid an error. */
7528 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */
7534 /* The GNU C library defines this for functions which it implements
7535 to always fail with ENOSYS. Some functions are actually named
7536 something starting with __ and the normal name is an alias. */
7537 #if defined (__stub_catgets) || defined (__stub___catgets)
7545 if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7547 eval "ac_cv_func_catgets=yes"
7549 echo "configure: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7552 eval "ac_cv_func_catgets=no"
7557 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7558 echo "$ac_t""yes" 1>&6
7559 cat >> confdefs.h <<\EOF
7560 #define HAVE_CATGETS 1
7563 INTLOBJS="\$(CATOBJS)"
7564 # Extract the first word of "gencat", so it can be a program name with args.
7565 set dummy gencat; ac_word=$2
7566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7567 echo "configure:7568: checking for $ac_word" >&5
7568 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7569 echo $ac_n "(cached) $ac_c" 1>&6
7573 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7576 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7581 for ac_dir in $ac_dummy; do
7582 test -z "$ac_dir" && ac_dir=.
7583 if test -f $ac_dir/$ac_word; then
7584 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7589 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7593 GENCAT="$ac_cv_path_GENCAT"
7594 if test -n "$GENCAT"; then
7595 echo "$ac_t""$GENCAT" 1>&6
7597 echo "$ac_t""no" 1>&6
7599 if test "$GENCAT" != "no"; then
7600 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7601 set dummy gmsgfmt; ac_word=$2
7602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7603 echo "configure:7604: checking for $ac_word" >&5
7604 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7609 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7612 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7617 for ac_dir in $ac_dummy; do
7618 test -z "$ac_dir" && ac_dir=.
7619 if test -f $ac_dir/$ac_word; then
7620 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7625 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7629 GMSGFMT="$ac_cv_path_GMSGFMT"
7630 if test -n "$GMSGFMT"; then
7631 echo "$ac_t""$GMSGFMT" 1>&6
7633 echo "$ac_t""no" 1>&6
7636 if test "$GMSGFMT" = "no"; then
7637 # Extract the first word of "msgfmt", so it can be a program name with args.
7638 set dummy msgfmt; ac_word=$2
7639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7640 echo "configure:7641: checking for $ac_word" >&5
7641 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7646 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7650 for ac_dir in $PATH; do
7651 test -z "$ac_dir" && ac_dir=.
7652 if test -f $ac_dir/$ac_word; then
7653 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7654 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7660 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7664 GMSGFMT="$ac_cv_path_GMSGFMT"
7665 if test -n "$GMSGFMT"; then
7666 echo "$ac_t""$GMSGFMT" 1>&6
7668 echo "$ac_t""no" 1>&6
7672 # Extract the first word of "xgettext", so it can be a program name with args.
7673 set dummy xgettext; ac_word=$2
7674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7675 echo "configure:7676: checking for $ac_word" >&5
7676 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7681 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7685 for ac_dir in $PATH; do
7686 test -z "$ac_dir" && ac_dir=.
7687 if test -f $ac_dir/$ac_word; then
7688 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7689 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7695 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7699 XGETTEXT="$ac_cv_path_XGETTEXT"
7700 if test -n "$XGETTEXT"; then
7701 echo "$ac_t""$XGETTEXT" 1>&6
7703 echo "$ac_t""no" 1>&6
7706 USE_INCLUDED_LIBINTL=yes
7710 INTLDEPS='$(top_builddir)/intl/libintl.a'
7712 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7713 nls_cv_header_intl=intl/libintl.h
7714 nls_cv_header_libgt=intl/libgettext.h
7717 echo "$ac_t""no" 1>&6
7723 if test "$CATOBJEXT" = "NONE"; then
7724 nls_cv_use_gnu_gettext=yes
7728 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7729 INTLOBJS="\$(GETTOBJS)"
7730 # Extract the first word of "msgfmt", so it can be a program name with args.
7731 set dummy msgfmt; ac_word=$2
7732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7733 echo "configure:7734: checking for $ac_word" >&5
7734 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7739 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7743 for ac_dir in $PATH; do
7744 test -z "$ac_dir" && ac_dir=.
7745 if test -f $ac_dir/$ac_word; then
7746 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7747 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7753 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7757 MSGFMT="$ac_cv_path_MSGFMT"
7758 if test -n "$MSGFMT"; then
7759 echo "$ac_t""$MSGFMT" 1>&6
7761 echo "$ac_t""no" 1>&6
7764 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7765 set dummy gmsgfmt; ac_word=$2
7766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7767 echo "configure:7768: checking for $ac_word" >&5
7768 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7769 echo $ac_n "(cached) $ac_c" 1>&6
7773 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7776 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7781 for ac_dir in $ac_dummy; do
7782 test -z "$ac_dir" && ac_dir=.
7783 if test -f $ac_dir/$ac_word; then
7784 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7789 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7793 GMSGFMT="$ac_cv_path_GMSGFMT"
7794 if test -n "$GMSGFMT"; then
7795 echo "$ac_t""$GMSGFMT" 1>&6
7797 echo "$ac_t""no" 1>&6
7800 # Extract the first word of "xgettext", so it can be a program name with args.
7801 set dummy xgettext; ac_word=$2
7802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7803 echo "configure:7804: checking for $ac_word" >&5
7804 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7805 echo $ac_n "(cached) $ac_c" 1>&6
7809 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7813 for ac_dir in $PATH; do
7814 test -z "$ac_dir" && ac_dir=.
7815 if test -f $ac_dir/$ac_word; then
7816 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7817 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7823 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7827 XGETTEXT="$ac_cv_path_XGETTEXT"
7828 if test -n "$XGETTEXT"; then
7829 echo "$ac_t""$XGETTEXT" 1>&6
7831 echo "$ac_t""no" 1>&6
7835 USE_INCLUDED_LIBINTL=yes
7839 INTLDEPS='$(top_builddir)/intl/libintl.a'
7841 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7842 nls_cv_header_intl=intl/libintl.h
7843 nls_cv_header_libgt=intl/libgettext.h
7846 if test "$XGETTEXT" != ":"; then
7847 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7850 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7855 # We need to process the po/ directory.
7859 nls_cv_header_intl=intl/libintl.h
7860 nls_cv_header_libgt=intl/libgettext.h
7866 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7867 # because some of the sources are only built for this goal.
7868 if test "$PACKAGE" = gettext; then
7870 USE_INCLUDED_LIBINTL=yes
7873 for lang in $ALL_LINGUAS; do
7874 GMOFILES="$GMOFILES $lang.gmo"
7875 POFILES="$POFILES $lang.po"
7891 if test "x$CATOBJEXT" != "x"; then
7892 if test "x$ALL_LINGUAS" = "x"; then
7895 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7896 echo "configure:7897: checking for catalogs to be installed" >&5
7898 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7899 case "$ALL_LINGUAS" in
7900 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7903 LINGUAS=$NEW_LINGUAS
7904 echo "$ac_t""$LINGUAS" 1>&6
7907 if test -n "$LINGUAS"; then
7908 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7912 if test $ac_cv_header_locale_h = yes; then
7913 INCLUDE_LOCALE_H="#include <locale.h>"
7916 /* The system does not provide the header <locale.h>. Take care yourself. */"
7920 test -d intl || mkdir intl
7921 if test "$CATOBJEXT" = ".cat"; then
7922 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7923 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7924 echo "configure:7925: checking for linux/version.h" >&5
7925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure"
7930 #include "confdefs.h"
7931 #include <linux/version.h>
7933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7934 { (eval echo configure:7935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7936 if test -z "$ac_err"; then
7938 eval "ac_cv_header_$ac_safe=yes"
7941 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5
7944 eval "ac_cv_header_$ac_safe=no"
7948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7952 echo "$ac_t""no" 1>&6
7957 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
7959 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7960 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
7962 if test "$PACKAGE" = "gettext"; then
7973 if test -n "$ac_aux_dir"; then
7974 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7976 if test -z "$MKINSTALLDIRS"; then
7977 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7984 test -d po || mkdir po
7985 if test "x$srcdir" != "x."; then
7986 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7987 posrcprefix="$srcdir/"
7989 posrcprefix="../$srcdir/"
7995 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7996 < $srcdir/po/POTFILES.in > po/POTFILES
7998 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8000 # Get an absolute path to the GCC top-level source directory
8006 # Conditionalize the makefile for this host machine.
8007 # Make-host contains the concatenation of all host makefile fragments
8008 # [there can be more than one]. This file is built by configure.frag.
8009 host_overrides=Make-host
8010 dep_host_xmake_file=
8011 for f in .. ${host_xmake_file}
8013 if test -f ${srcdir}/config/$f
8015 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8019 # Conditionalize the makefile for this target machine.
8020 # Make-target contains the concatenation of all host makefile fragments
8021 # [there can be more than one]. This file is built by configure.frag.
8022 target_overrides=Make-target
8024 for f in .. ${tmake_file}
8026 if test -f ${srcdir}/config/$f
8028 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8032 # If the host doesn't support symlinks, modify CC in
8033 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8034 # Otherwise, we can use "CC=$(CC)".
8036 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8038 cc_set_by_configure="\$(CC)"
8039 quoted_cc_set_by_configure="\$(CC)"
8040 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8043 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8045 symbolic_link="cp -p"
8049 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8050 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8051 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8055 out_object_file=`basename $out_file .c`.o
8058 for f in $tm_file; do
8061 tm_file_list="${tm_file_list} $f" ;;
8062 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8067 for f in $host_xm_file; do
8069 auto-host.h | gansidecl.h | hwint.h )
8070 host_xm_file_list="${host_xm_file_list} $f" ;;
8071 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8076 for f in $build_xm_file; do
8078 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8079 build_xm_file_list="${build_xm_file_list} $f" ;;
8080 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8084 # Define macro CROSS_COMPILE in compilation
8085 # if this is a cross-compiler.
8086 # Also use all.cross instead of all.internal
8087 # and add cross-make to Makefile.
8088 cross_overrides="/dev/null"
8089 if test x$host != x$target
8091 cross_defines="CROSS=-DCROSS_COMPILE"
8092 cross_overrides="${topdir}/cross-make"
8095 # When building gcc with a cross-compiler, we need to fix a few things.
8096 # This must come after cross-make as we want all.build to override
8098 build_overrides="/dev/null"
8099 if test x$build != x$host
8101 build_overrides="${topdir}/build-make"
8104 # Expand extra_headers to include complete path.
8105 # This substitutes for lots of t-* files.
8107 if test "x$extra_headers" = x
8110 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8111 for file in $extra_headers;
8113 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8117 if test x$use_collect2 = xno; then
8121 # Add a definition of USE_COLLECT2 if system wants one.
8122 # Also tell toplev.c what to do.
8123 # This substitutes for lots of t-* files.
8124 if test x$use_collect2 = x
8129 will_use_collect2="collect2"
8130 maybe_use_collect2="-DUSE_COLLECT2"
8134 # Set MD_DEPS if the real md file is in md.pre-cpp.
8135 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8136 # for line oriented comments, so we must always use a GNU cpp. If
8137 # building gcc with a cross compiler, use the cross compiler just
8138 # built. Otherwise, we can use the cpp just built.
8140 if test "x$md_cppflags" = x
8142 md_file_sub=$srcdir/config/$md_file
8147 # If we have gas in the build tree, make a link to it.
8148 if test -f ../gas/Makefile; then
8149 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8152 # If we have nm in the build tree, make a link to it.
8153 if test -f ../binutils/Makefile; then
8154 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8157 # If we have ld in the build tree, make a link to it.
8158 if test -f ../ld/Makefile; then
8159 # if test x$use_collect2 = x; then
8160 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8162 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8166 # Figure out what assembler alignment features are present.
8167 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8168 echo "configure:8169: checking assembler alignment features" >&5
8170 gcc_cv_as_alignment_features=
8171 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8172 if test -x "$DEFAULT_ASSEMBLER"; then
8173 gcc_cv_as="$DEFAULT_ASSEMBLER"
8174 elif test -x "$AS"; then
8176 elif test -x as$host_exeext; then
8177 # Build using assembler in the current directory.
8178 gcc_cv_as=./as$host_exeext
8179 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8180 # Single tree build which includes gas.
8181 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8183 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8184 if test x$gcc_cv_gas_version != x; then
8188 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8189 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8190 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8191 # Gas version 2.6 and later support for .balign and .p2align.
8192 # bytes to skip when using .p2align.
8193 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
8194 gcc_cv_as_alignment_features=".balign and .p2align"
8195 cat >> confdefs.h <<\EOF
8196 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8200 # Gas version 2.8 and later support specifying the maximum
8201 # bytes to skip when using .p2align.
8202 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
8203 gcc_cv_as_alignment_features=".p2align including maximum skip"
8204 cat >> confdefs.h <<\EOF
8205 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8210 elif test x$host = x$target; then
8212 # Search the same directories that the installed compiler will
8213 # search. Else we may find the wrong assembler and lose. If we
8214 # do not find a suitable assembler binary, then try the user's
8217 # Also note we have to check MD_EXEC_PREFIX before checking the
8218 # user's path. Unfortunately, there is no good way to get at the
8219 # value of MD_EXEC_PREFIX here. So we do a brute force search
8220 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8221 # to be fixed as part of the make/configure rewrite too.
8223 if test "x$exec_prefix" = xNONE; then
8224 if test "x$prefix" = xNONE; then
8225 test_prefix=/usr/local
8230 test_prefix=$exec_prefix
8233 # If the loop below does not find an assembler, then use whatever
8234 # one we can find in the users's path.
8238 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8239 $test_prefix/lib/gcc-lib/$target \
8240 /usr/lib/gcc/$target/$gcc_version \
8241 /usr/lib/gcc/$target \
8242 $test_prefix/$target/bin/$target/$gcc_version \
8243 $test_prefix/$target/bin \
8248 /bsd43/usr/lib/cmplrs/cc \
8249 /usr/cross64/usr/bin \
8250 /usr/lib/cmplrs/cc \
8251 /sysv/usr/lib/cmplrs/cc \
8252 /svr4/usr/lib/cmplrs/cc \
8255 for dir in $test_dirs; do
8256 if test -f $dir/as$host_exeext; then
8257 gcc_cv_as=$dir/as$host_exeext
8262 if test x$gcc_cv_as != x; then
8263 # Check if we have .balign and .p2align
8264 echo ".balign 4" > conftest.s
8265 echo ".p2align 2" >> conftest.s
8266 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8267 gcc_cv_as_alignment_features=".balign and .p2align"
8268 cat >> confdefs.h <<\EOF
8269 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8273 rm -f conftest.s conftest.o
8274 # Check if specifying the maximum bytes to skip when
8275 # using .p2align is supported.
8276 echo ".p2align 4,,7" > conftest.s
8277 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8278 gcc_cv_as_alignment_features=".p2align including maximum skip"
8279 cat >> confdefs.h <<\EOF
8280 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8284 rm -f conftest.s conftest.o
8286 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8288 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8289 echo "configure:8290: checking assembler subsection support" >&5
8290 gcc_cv_as_subsections=
8291 if test x$gcc_cv_as != x; then
8292 # Check if we have .subsection
8293 echo ".subsection 1" > conftest.s
8294 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8295 gcc_cv_as_subsections=".subsection"
8296 if test -x nm$host_exeext; then
8297 gcc_cv_nm=./nm$host_exeext
8298 elif test x$host = x$target; then
8300 gcc_cv_nm=nm$host_exeext
8302 if test x$gcc_cv_nm != x; then
8303 cat > conftest.s <<EOF
8304 conftest_label1: .word 0
8306 conftest_label2: .word 0
8309 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8310 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8311 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8312 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8315 gcc_cv_as_subsections="working .subsection -1"
8316 cat >> confdefs.h <<\EOF
8317 #define HAVE_GAS_SUBSECTION_ORDERING 1
8324 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8326 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8328 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8329 echo "configure:8330: checking assembler instructions" >&5
8330 gcc_cv_as_instructions=
8331 if test x$gcc_cv_as != x; then
8332 set "filds fists" "filds mem; fists mem"
8335 echo "$2" > conftest.s
8336 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8337 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8338 cat >> confdefs.h <<EOF
8339 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8345 rm -f conftest.s conftest.o
8347 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8349 # Figure out what language subdirectories are present.
8350 # Look if the user specified --enable-languages="..."; if not, use
8351 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8353 if test x"${enable_languages+set}" != xset; then
8354 if test x"${LANGUAGES+set}" = xset; then
8355 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8357 enable_languages=all
8361 for lang in ${srcdir}/*/config-lang.in ..
8365 # The odd quoting in the next line works around
8366 # an apparent bug in bash 1.12 on linux.
8367 ${srcdir}/[*]/config-lang.in) ;;
8369 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8370 if test "x$lang_alias" = x
8372 echo "$lang doesn't set \$language." 1>&2
8375 if test x"${enable_languages}" = xall; then
8378 case "${enable_languages}" in
8379 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8387 if test x"${add_this_lang}" = xyes; then
8389 ${srcdir}/ada/config-lang.in)
8390 if test x$gnat = xyes ; then
8391 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8395 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8403 # Make gthr-default.h if we have a thread file.
8405 if test $thread_file != single; then
8406 rm -f gthr-default.h
8407 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8408 gthread_flags=-DHAVE_GTHR_DEFAULT
8412 # Make empty files to contain the specs and options for each language.
8413 # Then add #include lines to for a compiler that has specs and/or options.
8418 rm -f specs.h options.h gencheck.h
8419 touch specs.h options.h gencheck.h
8420 for subdir in . $subdirs
8422 if test -f $srcdir/$subdir/lang-specs.h; then
8423 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8424 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8426 if test -f $srcdir/$subdir/lang-options.h; then
8427 echo "#include \"$subdir/lang-options.h\"" >>options.h
8428 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8430 if test -f $srcdir/$subdir/$subdir-tree.def; then
8431 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8432 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8436 # These (without "all_") are set in each config-lang.in.
8437 # `language' must be a single word so is spelled singularly.
8443 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8444 # List of language makefile fragments.
8449 # Add the language fragments.
8450 # Languages are added via two mechanisms. Some information must be
8451 # recorded in makefile variables, these are defined in config-lang.in.
8452 # We accumulate them and plug them into the main Makefile.
8453 # The other mechanism is a set of hooks for each of the main targets
8454 # like `clean', `install', etc.
8456 language_fragments="Make-lang"
8457 language_hooks="Make-hooks"
8460 for s in .. $subdirs
8472 . ${srcdir}/$s/config-lang.in
8473 if test "x$language" = x
8475 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8478 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8479 all_languages="$all_languages $language"
8480 if test "x$boot_language" = xyes
8482 all_boot_languages="$all_boot_languages $language"
8484 all_compilers="$all_compilers $compilers"
8485 all_stagestuff="$all_stagestuff $stagestuff"
8486 all_diff_excludes="$all_diff_excludes $diff_excludes"
8487 all_headers="$all_headers $headers"
8488 all_outputs="$all_outputs $outputs"
8489 if test x$outputs = x
8491 oldstyle_subdirs="$oldstyle_subdirs $s"
8493 all_lib2funcs="$all_lib2funcs $lib2funcs"
8497 # Since we can't use `::' targets, we link each language in
8498 # with a set of hooks, reached indirectly via lang.${target}.
8502 target_list="all.build all.cross start.encap rest.encap \
8504 install-normal install-common install-info install-man \
8506 mostlyclean clean distclean extraclean maintainer-clean \
8507 stage1 stage2 stage3 stage4"
8508 for t in $target_list
8511 for lang in .. $all_languages
8513 if test $lang != ".."; then
8517 echo "lang.$t: $x" >> Make-hooks
8520 # If we're not building in srcdir, create .gdbinit.
8522 if test ! -f Makefile.in; then
8523 echo "dir ." > .gdbinit
8524 echo "dir ${srcdir}" >> .gdbinit
8525 if test x$gdb_needs_out_file_path = xyes
8527 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8529 if test "x$subdirs" != x; then
8532 echo "dir ${srcdir}/$s" >> .gdbinit
8535 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8538 # Define variables host_canonical and build_canonical
8539 # because some Cygnus local changes in the Makefile depend on them.
8540 build_canonical=${build}
8541 host_canonical=${host}
8543 if test "${host}" != "${target}" ; then
8544 target_subdir=${target}/
8550 # If this is using newlib, then define inhibit_libc in
8551 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8552 # libgcc.a, but that's OK because newib should have its own version of
8555 if test x$with_newlib = xyes; then
8556 inhibit_libc=-Dinhibit_libc
8560 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8563 if test x$enable_haifa = xyes; then
8564 echo "Using the Haifa scheduler."
8566 sched_cflags=-DHAIFA
8570 if test x$enable_haifa != x; then
8571 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8572 for x in genattrtab.o toplev.o *sched.o; do
8580 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8581 # absolute path for gcc_tooldir based on inserting the number of up-directory
8582 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8583 # $(libsubdir)/@(unlibsubdir) based path.
8584 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8585 # make and thus we'd get different behavior depending on where we built the
8587 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8588 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8590 # An explanation of the sed strings:
8591 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8592 # -e 's|/$||' match a trailing forward slash and eliminates it
8593 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8594 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8596 # (*) Note this pattern overwrites the first character of the string
8597 # with a forward slash if one is not already present. This is not a
8598 # problem because the exact names of the sub-directories concerned is
8599 # unimportant, just the number of them matters.
8601 # The practical upshot of these patterns is like this:
8603 # prefix exec_prefix result
8604 # ------ ----------- ------
8606 # /foo/ /foo/bar ../
8607 # /foo /foo/bar/ ../
8608 # /foo/ /foo/bar/ ../
8609 # /foo /foo/bar/ugg ../../
8612 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8617 # Nothing to do for FLOAT_H, float_format already handled.
8621 # Process the language and host/target makefile fragments.
8622 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8624 # Substitute configuration variables
8686 # Echo that links are built
8687 if test x$host = x$target
8695 if test x$host != x$build
8697 str3=" on a $build system"
8700 if test "x$str2" != x || test "x$str3" != x
8705 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8707 if test "x$str2" != x || test "x$str3" != x
8709 echo " ${str2}${str3}." 1>&2
8712 # Truncate the target if necessary
8713 if test x$host_truncate_target != x; then
8714 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
8717 # Configure the subdirectories
8718 # AC_CONFIG_SUBDIRS($subdirs)
8720 # Create the Makefile
8721 # and configure language subdirectories
8723 cat > confcache <<\EOF
8724 # This file is a shell script that caches the results of configure
8725 # tests run on this system so they can be shared between configure
8726 # scripts and configure runs. It is not useful on other systems.
8727 # If it contains results you don't want to keep, you may remove or edit it.
8729 # By default, configure uses ./config.cache as the cache file,
8730 # creating it if it does not exist already. You can give configure
8731 # the --cache-file=FILE option to use a different cache file; that is
8732 # what configure does when it calls configure scripts in
8733 # subdirectories, so they share the cache.
8734 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8735 # config.status only pays attention to the cache file if you give it the
8736 # --recheck option to rerun configure.
8739 # The following way of writing the cache mishandles newlines in values,
8740 # but we know of no workaround that is simple, portable, and efficient.
8741 # So, don't put newlines in cache variables' values.
8742 # Ultrix sh set writes to stderr and can't be redirected directly,
8743 # and sets the high bit in the cache file unless we assign to the vars.
8745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8747 # `set' does not quote correctly, so add quotes (double-quote substitution
8748 # turns \\\\ into \\, and sed turns \\ into \).
8750 -e "s/'/'\\\\''/g" \
8751 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8754 # `set' quotes correctly as required by POSIX, so do not add quotes.
8755 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8758 if cmp -s $cache_file confcache; then
8761 if test -w $cache_file; then
8762 echo "updating cache $cache_file"
8763 cat confcache > $cache_file
8765 echo "not updating unwritable cache $cache_file"
8770 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8773 # Let make expand exec_prefix.
8774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8776 # Any assignment to VPATH causes Sun make to only execute
8777 # the first set of double-colon rules, so remove it if not needed.
8778 # If there is a colon in the path, we need to keep it.
8779 if test "x$srcdir" = x.; then
8780 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8783 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8785 DEFS=-DHAVE_CONFIG_H
8787 # Without the "./", some shells look in PATH for config.status.
8788 : ${CONFIG_STATUS=./config.status}
8790 echo creating $CONFIG_STATUS
8791 rm -f $CONFIG_STATUS
8792 cat > $CONFIG_STATUS <<EOF
8794 # Generated automatically by configure.
8795 # Run this file to recreate the current configuration.
8796 # This directory was configured as follows,
8797 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8799 # $0 $ac_configure_args
8801 # Compiler output produced by configure, useful for debugging
8802 # configure, is in ./config.log if it exists.
8804 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8807 case "\$ac_option" in
8808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8809 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8810 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8811 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8812 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8814 -help | --help | --hel | --he | --h)
8815 echo "\$ac_cs_usage"; exit 0 ;;
8816 *) echo "\$ac_cs_usage"; exit 1 ;;
8820 ac_given_srcdir=$srcdir
8822 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8824 cat >> $CONFIG_STATUS <<EOF
8826 # Protect against being on the right side of a sed subst in config.status.
8827 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8828 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8832 s%@CFLAGS@%$CFLAGS%g
8833 s%@CPPFLAGS@%$CPPFLAGS%g
8834 s%@CXXFLAGS@%$CXXFLAGS%g
8835 s%@FFLAGS@%$FFLAGS%g
8837 s%@LDFLAGS@%$LDFLAGS%g
8839 s%@exec_prefix@%$exec_prefix%g
8840 s%@prefix@%$prefix%g
8841 s%@program_transform_name@%$program_transform_name%g
8842 s%@bindir@%$bindir%g
8843 s%@sbindir@%$sbindir%g
8844 s%@libexecdir@%$libexecdir%g
8845 s%@datadir@%$datadir%g
8846 s%@sysconfdir@%$sysconfdir%g
8847 s%@sharedstatedir@%$sharedstatedir%g
8848 s%@localstatedir@%$localstatedir%g
8849 s%@libdir@%$libdir%g
8850 s%@includedir@%$includedir%g
8851 s%@oldincludedir@%$oldincludedir%g
8852 s%@infodir@%$infodir%g
8853 s%@mandir@%$mandir%g
8855 s%@host_alias@%$host_alias%g
8856 s%@host_cpu@%$host_cpu%g
8857 s%@host_vendor@%$host_vendor%g
8858 s%@host_os@%$host_os%g
8859 s%@target@%$target%g
8860 s%@target_alias@%$target_alias%g
8861 s%@target_cpu@%$target_cpu%g
8862 s%@target_vendor@%$target_vendor%g
8863 s%@target_os@%$target_os%g
8865 s%@build_alias@%$build_alias%g
8866 s%@build_cpu@%$build_cpu%g
8867 s%@build_vendor@%$build_vendor%g
8868 s%@build_os@%$build_os%g
8870 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8871 s%@SET_MAKE@%$SET_MAKE%g
8874 s%@LEXLIB@%$LEXLIB%g
8877 s%@RANLIB@%$RANLIB%g
8879 s%@INSTALL@%$INSTALL%g
8880 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8881 s%@INSTALL_DATA@%$INSTALL_DATA%g
8884 s%@vfprintf@%$vfprintf%g
8885 s%@doprint@%$doprint%g
8886 s%@manext@%$manext%g
8887 s%@objext@%$objext%g
8888 s%@PACKAGE@%$PACKAGE%g
8889 s%@VERSION@%$VERSION%g
8890 s%@ALLOCA@%$ALLOCA%g
8891 s%@USE_NLS@%$USE_NLS%g
8892 s%@MSGFMT@%$MSGFMT%g
8893 s%@GMSGFMT@%$GMSGFMT%g
8894 s%@XGETTEXT@%$XGETTEXT%g
8895 s%@GENCAT@%$GENCAT%g
8896 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8897 s%@CATALOGS@%$CATALOGS%g
8898 s%@CATOBJEXT@%$CATOBJEXT%g
8899 s%@DATADIRNAME@%$DATADIRNAME%g
8900 s%@GMOFILES@%$GMOFILES%g
8901 s%@INSTOBJEXT@%$INSTOBJEXT%g
8902 s%@INTLDEPS@%$INTLDEPS%g
8903 s%@INTLLIBS@%$INTLLIBS%g
8904 s%@INTLOBJS@%$INTLOBJS%g
8905 s%@POFILES@%$POFILES%g
8907 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8909 s%@GT_YES@%$GT_YES%g
8910 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8912 s%@gthread_flags@%$gthread_flags%g
8913 s%@build_canonical@%$build_canonical%g
8914 s%@host_canonical@%$host_canonical%g
8915 s%@target_subdir@%$target_subdir%g
8916 s%@inhibit_libc@%$inhibit_libc%g
8917 s%@sched_prefix@%$sched_prefix%g
8918 s%@sched_cflags@%$sched_cflags%g
8919 s%@gcc_tooldir@%$gcc_tooldir%g
8920 s%@dollar@%$dollar%g
8921 s%@objdir@%$objdir%g
8922 s%@subdirs@%$subdirs%g
8923 s%@all_boot_languages@%$all_boot_languages%g
8924 s%@all_compilers@%$all_compilers%g
8925 s%@all_diff_excludes@%$all_diff_excludes%g
8926 s%@all_headers@%$all_headers%g
8927 s%@all_lang_makefiles@%$all_lang_makefiles%g
8928 s%@all_languages@%$all_languages%g
8929 s%@all_lib2funcs@%$all_lib2funcs%g
8930 s%@all_stagestuff@%$all_stagestuff%g
8931 s%@build_exeext@%$build_exeext%g
8932 s%@build_install_headers_dir@%$build_install_headers_dir%g
8933 s%@build_xm_file_list@%$build_xm_file_list%g
8934 s%@cc_set_by_configure@%$cc_set_by_configure%g
8935 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8936 s%@cpp_install_dir@%$cpp_install_dir%g
8937 s%@cpp_main@%$cpp_main%g
8938 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8939 s%@dep_tmake_file@%$dep_tmake_file%g
8940 s%@extra_c_flags@%$extra_c_flags%g
8941 s%@extra_c_objs@%$extra_c_objs%g
8942 s%@extra_cpp_objs@%$extra_cpp_objs%g
8943 s%@extra_cxx_objs@%$extra_cxx_objs%g
8944 s%@extra_headers_list@%$extra_headers_list%g
8945 s%@extra_objs@%$extra_objs%g
8946 s%@extra_parts@%$extra_parts%g
8947 s%@extra_passes@%$extra_passes%g
8948 s%@extra_programs@%$extra_programs%g
8949 s%@fixinc_defs@%$fixinc_defs%g
8950 s%@float_h_file@%$float_h_file%g
8951 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8952 s%@gcc_version@%$gcc_version%g
8953 s%@gcc_version_trigger@%$gcc_version_trigger%g
8954 s%@host_exeext@%$host_exeext%g
8955 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8956 s%@host_xm_file_list@%$host_xm_file_list%g
8957 s%@install@%$install%g
8958 s%@JAVAGC@%$JAVAGC%g
8959 s%@lang_options_files@%$lang_options_files%g
8960 s%@lang_specs_files@%$lang_specs_files%g
8961 s%@lang_tree_files@%$lang_tree_files%g
8962 s%@local_prefix@%$local_prefix%g
8963 s%@maybe_use_collect2@%$maybe_use_collect2%g
8964 s%@md_file@%$md_file%g
8965 s%@objc_boehm_gc@%$objc_boehm_gc%g
8966 s%@out_file@%$out_file%g
8967 s%@out_object_file@%$out_object_file%g
8968 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8969 s%@symbolic_link@%$symbolic_link%g
8970 s%@thread_file@%$thread_file%g
8971 s%@tm_file_list@%$tm_file_list%g
8972 s%@will_use_collect2@%$will_use_collect2%g
8973 /@target_overrides@/r $target_overrides
8974 s%@target_overrides@%%g
8975 /@host_overrides@/r $host_overrides
8976 s%@host_overrides@%%g
8977 s%@cross_defines@%$cross_defines%g
8978 /@cross_overrides@/r $cross_overrides
8979 s%@cross_overrides@%%g
8980 /@build_overrides@/r $build_overrides
8981 s%@build_overrides@%%g
8982 /@language_fragments@/r $language_fragments
8983 s%@language_fragments@%%g
8984 /@language_hooks@/r $language_hooks
8985 s%@language_hooks@%%g
8990 cat >> $CONFIG_STATUS <<\EOF
8992 # Split the substitutions into bite-sized pieces for seds with
8993 # small command number limits, like on Digital OSF/1 and HP-UX.
8994 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8995 ac_file=1 # Number of current file.
8996 ac_beg=1 # First line for current file.
8997 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9000 while $ac_more_lines; do
9001 if test $ac_beg -gt 1; then
9002 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9004 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9006 if test ! -s conftest.s$ac_file; then
9008 rm -f conftest.s$ac_file
9010 if test -z "$ac_sed_cmds"; then
9011 ac_sed_cmds="sed -f conftest.s$ac_file"
9013 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9015 ac_file=`expr $ac_file + 1`
9017 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9020 if test -z "$ac_sed_cmds"; then
9025 cat >> $CONFIG_STATUS <<EOF
9027 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9029 cat >> $CONFIG_STATUS <<\EOF
9030 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9033 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9034 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9035 *) ac_file_in="${ac_file}.in" ;;
9038 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9040 # Remove last slash and all that follows it. Not all systems have dirname.
9041 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9042 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9043 # The file is in a subdirectory.
9044 test ! -d "$ac_dir" && mkdir "$ac_dir"
9045 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9046 # A "../" for each directory in $ac_dir_suffix.
9047 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9049 ac_dir_suffix= ac_dots=
9052 case "$ac_given_srcdir" in
9054 if test -z "$ac_dots"; then top_srcdir=.
9055 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9056 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9058 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9059 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9063 echo creating "$ac_file"
9065 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9067 *Makefile*) ac_comsub="1i\\
9068 # $configure_input" ;;
9072 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9074 s%@configure_input@%$configure_input%g
9075 s%@srcdir@%$srcdir%g
9076 s%@top_srcdir@%$top_srcdir%g
9077 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9081 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9082 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9084 # ac_d sets the value in "#define NAME VALUE" lines.
9085 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9086 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9089 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9090 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9091 ac_uB='\([ ]\)%\1#\2define\3'
9094 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9095 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9096 ac_eB='$%\1#\2define\3'
9100 if test "${CONFIG_HEADERS+set}" != set; then
9102 cat >> $CONFIG_STATUS <<EOF
9103 CONFIG_HEADERS="auto-host.h:config.in"
9105 cat >> $CONFIG_STATUS <<\EOF
9107 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9108 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9110 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9111 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9112 *) ac_file_in="${ac_file}.in" ;;
9115 echo creating $ac_file
9117 rm -f conftest.frag conftest.in conftest.out
9118 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9119 cat $ac_file_inputs > conftest.in
9123 # Transform confdefs.h into a sed script conftest.vals that substitutes
9124 # the proper values into config.h.in to produce config.h. And first:
9125 # Protect against being on the right side of a sed subst in config.status.
9126 # Protect against being in an unquoted here document in config.status.
9128 cat > conftest.hdr <<\EOF
9131 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9135 sed -n -f conftest.hdr confdefs.h > conftest.vals
9138 # This sed command replaces #undef with comments. This is necessary, for
9139 # example, in the case of _POSIX_SOURCE, which is predefined and required
9140 # on some systems where configure will not decide to define it.
9141 cat >> conftest.vals <<\EOF
9142 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9145 # Break up conftest.vals because some shells have a limit on
9146 # the size of here documents, and old seds have small limits too.
9151 ac_lines=`grep -c . conftest.vals`
9152 # grep -c gives empty output for an empty file on some AIX systems.
9153 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9154 # Write a limited-size here document to conftest.frag.
9155 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9156 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9158 sed -f conftest.frag conftest.in > conftest.out
9160 mv conftest.out conftest.in
9162 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9164 mv conftest.tail conftest.vals
9168 cat >> $CONFIG_STATUS <<\EOF
9169 rm -f conftest.frag conftest.h
9170 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9171 cat conftest.in >> conftest.h
9173 if cmp -s $ac_file conftest.h 2>/dev/null; then
9174 echo "$ac_file is unchanged"
9177 # Remove last slash and all that follows it. Not all systems have dirname.
9178 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9179 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9180 # The file is in a subdirectory.
9181 test ! -d "$ac_dir" && mkdir "$ac_dir"
9184 mv conftest.h $ac_file
9190 cat >> $CONFIG_STATUS <<EOF
9191 ac_sources="$nls_cv_header_libgt"
9192 ac_dests="$nls_cv_header_intl"
9195 cat >> $CONFIG_STATUS <<\EOF
9196 srcdir=$ac_given_srcdir
9197 while test -n "$ac_sources"; do
9198 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9199 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9201 echo "linking $srcdir/$ac_source to $ac_dest"
9203 if test ! -r $srcdir/$ac_source; then
9204 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9208 # Make relative symlinks.
9209 # Remove last slash and all that follows it. Not all systems have dirname.
9210 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9211 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9212 # The dest file is in a subdirectory.
9213 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9214 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9215 # A "../" for each directory in $ac_dest_dir_suffix.
9216 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9218 ac_dest_dir_suffix= ac_dots=
9222 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9223 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9226 # Make a symlink if possible; otherwise try a hard link.
9227 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9228 ln $srcdir/$ac_source $ac_dest; then :
9230 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9234 cat >> $CONFIG_STATUS <<EOF
9240 target_alias='${target_alias}'
9242 subdirs='${subdirs}'
9243 oldstyle_subdirs='${oldstyle_subdirs}'
9244 symbolic_link='${symbolic_link}'
9245 program_transform_set='${program_transform_set}'
9246 program_transform_name='${program_transform_name}'
9247 dep_host_xmake_file='${dep_host_xmake_file}'
9248 host_xmake_file='${host_xmake_file}'
9249 dep_tmake_file='${dep_tmake_file}'
9250 tmake_file='${tmake_file}'
9251 thread_file='${thread_file}'
9252 gcc_version='${gcc_version}'
9253 gcc_version_trigger='${gcc_version_trigger}'
9254 local_prefix='${local_prefix}'
9255 build_install_headers_dir='${build_install_headers_dir}'
9256 build_exeext='${build_exeext}'
9257 host_exeext='${host_exeext}'
9258 out_file='${out_file}'
9259 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9260 SET_MAKE='${SET_MAKE}'
9261 target_list='${target_list}'
9262 target_overrides='${target_overrides}'
9263 host_overrides='${host_overrides}'
9264 cross_defines='${cross_defines}'
9265 cross_overrides='${cross_overrides}'
9266 build_overrides='${build_overrides}'
9267 cpp_install_dir='${cpp_install_dir}'
9270 cat >> $CONFIG_STATUS <<\EOF
9271 case "$CONFIG_FILES" in *po/Makefile.in*)
9272 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9275 . $srcdir/configure.lang
9276 case x$CONFIG_HEADERS in
9277 xauto-host.h:config.in)
9280 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9281 # bootstrapping and the installation procedure can still use
9282 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9283 # FLAGS_TO_PASS has been modified to solve the problem there.
9284 # This is virtually a duplicate of what happens in configure.lang; we do
9285 # an extra check to make sure this only happens if ln -s can be used.
9286 if test "$symbolic_link" = "ln -s"; then
9287 for d in .. ${subdirs} ; do
9288 if test $d != ..; then
9291 for t in stage1 stage2 stage3 stage4 include
9294 $symbolic_link ../$t $t 2>/dev/null
9300 # Avoid having to add intl to our include paths.
9301 if test -f intl/libintl.h; then
9302 echo creating libintl.h
9303 echo '#include "intl/libintl.h"' >libintl.h
9308 chmod +x $CONFIG_STATUS
9309 rm -fr confdefs* $ac_clean_files
9310 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1