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[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-cpplib use cpplib for the C preprocessor."
46 --enable-c-cpplib link cpplib directly into C and C++ compilers
47 (EXPERIMENTAL) (implies --enable-cpplib)."
49 --disable-fast-fixincludes
50 Disable the new fast fixincludes.
51 Run the old fixincludes script unconditionally"
53 --enable-c-mbchar Enable multibyte characters for C and C++."
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-dwarf2 enable DWARF2 debugging as default."
63 --enable-nls use Native Language Support (disabled by default)"
65 --disable-nls do not use Native Language Support"
67 --with-included-gettext use the GNU gettext library included here"
69 --with-catgets use catgets functions if available"
71 --disable-win32-registry
72 Disable lookup of installation paths in the
73 Registry on Windows hosts.
74 --enable-win32-registry Enable registry lookup (default).
75 --enable-win32-registry=KEY
76 Use KEY instead of GCC version as the last portion
79 --with-gc={simple,page} Choose the garbage collection mechanism to use
82 # Initialize some variables set by options.
83 # The variables have the same names as the options, with
84 # dashes changed to underlines.
86 cache_file=./config.cache
95 program_transform_name=s,x,x,
104 bindir='${exec_prefix}/bin'
105 sbindir='${exec_prefix}/sbin'
106 libexecdir='${exec_prefix}/libexec'
107 datadir='${prefix}/share'
108 sysconfdir='${prefix}/etc'
109 sharedstatedir='${prefix}/com'
110 localstatedir='${prefix}/var'
111 libdir='${exec_prefix}/lib'
112 includedir='${prefix}/include'
113 oldincludedir='/usr/include'
114 infodir='${prefix}/info'
115 mandir='${prefix}/man'
117 # Initialize some other variables.
120 SHELL=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147 bindir="$ac_optarg" ;;
149 -build | --build | --buil | --bui | --bu)
151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
152 build="$ac_optarg" ;;
154 -cache-file | --cache-file | --cache-fil | --cache-fi \
155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156 ac_prev=cache_file ;;
157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159 cache_file="$ac_optarg" ;;
161 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
163 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
165 datadir="$ac_optarg" ;;
167 -disable-* | --disable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* | --enable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191 | --exec | --exe | --ex)
192 ac_prev=exec_prefix ;;
193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195 | --exec=* | --exe=* | --ex=*)
196 exec_prefix="$ac_optarg" ;;
198 -gas | --gas | --ga | --g)
199 # Obsolete; use --with-gas.
202 -help | --help | --hel | --he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --site-file=FILE use FILE as the site file
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --infodir=DIR info documentation in DIR [PREFIX/info]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
258 -host | --host | --hos | --ho)
260 -host=* | --host=* | --hos=* | --ho=*)
263 -includedir | --includedir | --includedi | --included | --include \
264 | --includ | --inclu | --incl | --inc)
265 ac_prev=includedir ;;
266 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
267 | --includ=* | --inclu=* | --incl=* | --inc=*)
268 includedir="$ac_optarg" ;;
270 -infodir | --infodir | --infodi | --infod | --info | --inf)
272 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
273 infodir="$ac_optarg" ;;
275 -libdir | --libdir | --libdi | --libd)
277 -libdir=* | --libdir=* | --libdi=* | --libd=*)
278 libdir="$ac_optarg" ;;
280 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
281 | --libexe | --libex | --libe)
282 ac_prev=libexecdir ;;
283 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
284 | --libexe=* | --libex=* | --libe=*)
285 libexecdir="$ac_optarg" ;;
287 -localstatedir | --localstatedir | --localstatedi | --localstated \
288 | --localstate | --localstat | --localsta | --localst \
289 | --locals | --local | --loca | --loc | --lo)
290 ac_prev=localstatedir ;;
291 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
292 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
293 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
294 localstatedir="$ac_optarg" ;;
296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
299 mandir="$ac_optarg" ;;
302 # Obsolete; use --without-fp.
305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
309 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
310 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
313 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
314 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
315 | --oldin | --oldi | --old | --ol | --o)
316 ac_prev=oldincludedir ;;
317 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
318 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
319 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
320 oldincludedir="$ac_optarg" ;;
322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 prefix="$ac_optarg" ;;
327 -program-prefix | --program-prefix | --program-prefi | --program-pref \
328 | --program-pre | --program-pr | --program-p)
329 ac_prev=program_prefix ;;
330 -program-prefix=* | --program-prefix=* | --program-prefi=* \
331 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
332 program_prefix="$ac_optarg" ;;
334 -program-suffix | --program-suffix | --program-suffi | --program-suff \
335 | --program-suf | --program-su | --program-s)
336 ac_prev=program_suffix ;;
337 -program-suffix=* | --program-suffix=* | --program-suffi=* \
338 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
339 program_suffix="$ac_optarg" ;;
341 -program-transform-name | --program-transform-name \
342 | --program-transform-nam | --program-transform-na \
343 | --program-transform-n | --program-transform- \
344 | --program-transform | --program-transfor \
345 | --program-transfo | --program-transf \
346 | --program-trans | --program-tran \
347 | --progr-tra | --program-tr | --program-t)
348 ac_prev=program_transform_name ;;
349 -program-transform-name=* | --program-transform-name=* \
350 | --program-transform-nam=* | --program-transform-na=* \
351 | --program-transform-n=* | --program-transform-=* \
352 | --program-transform=* | --program-transfor=* \
353 | --program-transfo=* | --program-transf=* \
354 | --program-trans=* | --program-tran=* \
355 | --progr-tra=* | --program-tr=* | --program-t=*)
356 program_transform_name="$ac_optarg" ;;
358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
359 | -silent | --silent | --silen | --sile | --sil)
362 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
364 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
366 sbindir="$ac_optarg" ;;
368 -sharedstatedir | --sharedstatedir | --sharedstatedi \
369 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
370 | --sharedst | --shareds | --shared | --share | --shar \
372 ac_prev=sharedstatedir ;;
373 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
374 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
375 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
377 sharedstatedir="$ac_optarg" ;;
379 -site | --site | --sit)
381 -site=* | --site=* | --sit=*)
384 -site-file | --site-file | --site-fil | --site-fi | --site-f)
386 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
387 sitefile="$ac_optarg" ;;
389 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
392 srcdir="$ac_optarg" ;;
394 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
395 | --syscon | --sysco | --sysc | --sys | --sy)
396 ac_prev=sysconfdir ;;
397 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
398 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
399 sysconfdir="$ac_optarg" ;;
401 -target | --target | --targe | --targ | --tar | --ta | --t)
403 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
404 target="$ac_optarg" ;;
406 -v | -verbose | --verbose | --verbos | --verbo | --verb)
409 -version | --version | --versio | --versi | --vers)
410 echo "configure generated by autoconf version 2.13"
414 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}='$ac_optarg'" ;;
426 -without-* | --without-*)
427 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}=no" ;;
436 # Obsolete; use --with-x.
439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440 | --x-incl | --x-inc | --x-in | --x-i)
441 ac_prev=x_includes ;;
442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444 x_includes="$ac_optarg" ;;
446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448 ac_prev=x_libraries ;;
449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451 x_libraries="$ac_optarg" ;;
453 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
458 echo "configure: warning: $ac_option: invalid host type" 1>&2
460 if test "x$nonopt" != xNONE; then
461 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
469 if test -n "$ac_prev"; then
470 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
475 # File descriptor usage:
478 # 2 errors and warnings
479 # 3 some systems may open it to /dev/tty
480 # 4 used on the Kubota Titan
481 # 6 checking for... messages and results
482 # 5 compiler messages saved in config.log
483 if test "$silent" = yes; then
491 This file contains any messages produced by compilers while
492 running configure, to aid debugging if configure makes a mistake.
495 # Strip out --no-create and --no-recursion so they do not pile up.
496 # Also quote any args containing shell metacharacters.
501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
502 | --no-cr | --no-c) ;;
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
505 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
506 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
507 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
512 # Only set these to C if already set. These must not be set unconditionally
513 # because not all systems understand e.g. LANG=C (notably SCO).
514 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
515 # Non-C LC_CTYPE values break the ctype check.
516 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
517 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
518 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
519 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
522 rm -rf conftest* confdefs.h
523 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
526 # A filename unique to this package, relative to the directory that
527 # configure is in, which we can look for to find out if srcdir is correct.
528 ac_unique_file=tree.c
530 # Find the source files, if location was not specified.
531 if test -z "$srcdir"; then
532 ac_srcdir_defaulted=yes
533 # Try the directory containing this script, then its parent.
535 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
536 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538 if test ! -r $srcdir/$ac_unique_file; then
542 ac_srcdir_defaulted=no
544 if test ! -r $srcdir/$ac_unique_file; then
545 if test "$ac_srcdir_defaulted" = yes; then
546 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
551 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
553 # Prefer explicitly selected file to automatically selected ones.
554 if test -z "$sitefile"; then
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE; then
557 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
559 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
563 CONFIG_SITE="$sitefile"
565 for ac_site_file in $CONFIG_SITE; do
566 if test -r "$ac_site_file"; then
567 echo "loading site script $ac_site_file"
572 if test -r "$cache_file"; then
573 echo "loading cache $cache_file"
576 echo "creating cache $cache_file"
581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
582 ac_cpp='$CPP $CPPFLAGS'
583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
585 cross_compiling=$ac_cv_prog_cc_cross
589 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
590 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
591 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
598 ac_n= ac_c='\c' ac_t=
606 symbolic_link='ln -s'
609 # Check for bogus environment variables.
610 # Test if LIBRARY_PATH contains the notation for the current directory
611 # since this would lead to problems installing/building glibc.
612 # LIBRARY_PATH contains the current directory if one of the following
614 # - one of the terminals (":" and ";") is the first or last sign
615 # - two terminals occur directly after each other
616 # - the path contains an element with a dot in it
617 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
618 echo "configure:619: checking LIBRARY_PATH variable" >&5
619 case ${LIBRARY_PATH} in
620 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
621 library_path_setting="contains current directory"
624 library_path_setting="ok"
627 echo "$ac_t""$library_path_setting" 1>&6
628 if test "$library_path_setting" != "ok"; then
629 { echo "configure: error:
630 *** LIBRARY_PATH shouldn't contain the current directory when
631 *** building gcc. Please change the environment variable
632 *** and run configure again." 1>&2; exit 1; }
635 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
636 # since this would lead to problems installing/building glibc.
637 # GCC_EXEC_PREFIX contains the current directory if one of the following
639 # - one of the terminals (":" and ";") is the first or last sign
640 # - two terminals occur directly after each other
641 # - the path contains an element with a dot in it
642 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
643 echo "configure:644: checking GCC_EXEC_PREFIX variable" >&5
644 case ${GCC_EXEC_PREFIX} in
645 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
646 gcc_exec_prefix_setting="contains current directory"
649 gcc_exec_prefix_setting="ok"
652 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
653 if test "$gcc_exec_prefix_setting" != "ok"; then
654 { echo "configure: error:
655 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
656 *** building gcc. Please change the environment variable
657 *** and run configure again." 1>&2; exit 1; }
660 # Check for additional parameters
663 # Check whether --with-gnu-ld or --without-gnu-ld was given.
664 if test "${with_gnu_ld+set}" = set; then
665 withval="$with_gnu_ld"
666 gnu_ld_flag="$with_gnu_ld"
672 # With pre-defined ld
673 # Check whether --with-ld or --without-ld was given.
674 if test "${with_ld+set}" = set; then
676 DEFAULT_LINKER="$with_ld"
679 if test x"${DEFAULT_LINKER+set}" = x"set"; then
680 if test ! -x "$DEFAULT_LINKER"; then
681 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
682 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
685 cat >> confdefs.h <<EOF
686 #define DEFAULT_LINKER "$DEFAULT_LINKER"
692 # Check whether --with-gnu-as or --without-gnu-as was given.
693 if test "${with_gnu_as+set}" = set; then
694 withval="$with_gnu_as"
695 gas_flag="$with_gnu_as"
701 # Check whether --with-as or --without-as was given.
702 if test "${with_as+set}" = set; then
704 DEFAULT_ASSEMBLER="$with_as"
707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
708 if test ! -x "$DEFAULT_ASSEMBLER"; then
709 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
710 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
713 cat >> confdefs.h <<EOF
714 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
720 # Check whether --with-stabs or --without-stabs was given.
721 if test "${with_stabs+set}" = set; then
722 withval="$with_stabs"
730 # Check whether --with-elf or --without-elf was given.
731 if test "${with_elf+set}" = set; then
739 # Specify the local prefix
741 # Check whether --with-local-prefix or --without-local-prefix was given.
742 if test "${with_local_prefix+set}" = set; then
743 withval="$with_local_prefix"
745 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
747 *) local_prefix=$with_local_prefix ;;
752 # Default local prefix if it is empty
753 if test x$local_prefix = x; then
754 local_prefix=/usr/local
757 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
758 # passed in by the toplevel make and thus we'd get different behavior
759 # depending on where we built the sources.
761 # Specify the g++ header file directory
762 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
763 if test "${with_gxx_include_dir+set}" = set; then
764 withval="$with_gxx_include_dir"
766 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
768 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
773 if test x${gcc_gxx_include_dir} = x; then
774 if test x${enable_version_specific_runtime_libs} = xyes; then
775 gcc_gxx_include_dir='${libsubdir}/include/g++'
777 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
778 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
782 # Enable expensive internal checks
783 # Check whether --enable-checking or --disable-checking was given.
784 if test "${enable_checking+set}" = set; then
785 enableval="$enable_checking"
786 case "${enableval}" in
787 yes) cat >> confdefs.h <<\EOF
788 #define ENABLE_CHECKING 1
791 cat >> confdefs.h <<\EOF
792 #define ENABLE_TREE_CHECKING 1
795 cat >> confdefs.h <<\EOF
796 #define ENABLE_RTL_CHECKING 1
800 *) ac_save_IFS="$IFS" IFS="$IFS,"
801 set fnord $enableval; shift
806 misc) cat >> confdefs.h <<\EOF
807 #define ENABLE_CHECKING 1
810 tree) cat >> confdefs.h <<\EOF
811 #define ENABLE_TREE_CHECKING 1
814 rtl) cat >> confdefs.h <<\EOF
815 #define ENABLE_RTL_CHECKING 1
818 gc) cat >> confdefs.h <<\EOF
819 #define ENABLE_GC_CHECKING 1
822 gcac) cat >> confdefs.h <<\EOF
823 #define ENABLE_GC_ALWAYS_COLLECT 1
826 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
834 # Check whether --enable-cpp or --disable-cpp was given.
835 if test "${enable_cpp+set}" = set; then
836 enableval="$enable_cpp"
843 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
844 if test "${with_cpp_install_dir+set}" = set; then
845 withval="$with_cpp_install_dir"
846 if test x$withval = xyes; then
847 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
848 elif test x$withval != xno; then
849 cpp_install_dir=$withval
854 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
856 # Check whether --enable-cpplib or --disable-cpplib was given.
857 if test "${enable_cpplib+set}" = set; then
858 enableval="$enable_cpplib"
859 if test x$enable_cpplib != xno; then
865 # Link cpplib into the compiler proper, for C/C++/ObjC.
866 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
867 if test "${enable_c_cpplib+set}" = set; then
868 enableval="$enable_c_cpplib"
869 if test x$enable_c_cpplib != xno; then
870 extra_c_objs="${extra_c_objs} libcpp.a"
871 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
872 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
878 # Disable fast fixincludes
879 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
880 if test "${enable_fast_fixincludes+set}" = set; then
881 enableval="$enable_fast_fixincludes"
882 if test x$enable_fast_fixincludes = xno ; then
883 cp $srcdir/fixincludes ./fixinc.sh
888 # Enable Multibyte Characters for C/C++
889 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
890 if test "${enable_c_mbchar+set}" = set; then
891 enableval="$enable_c_mbchar"
892 if test x$enable_c_mbchar != xno; then
893 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
899 # Pass with no value to take the default
900 # Pass with a value to specify a thread package
901 # Check whether --enable-threads or --disable-threads was given.
902 if test "${enable_threads+set}" = set; then
903 enableval="$enable_threads"
904 if test x$enable_threads = xno; then
912 enable_threads_flag=$enable_threads
913 # Check if a valid thread package
914 case x${enable_threads_flag} in
917 target_thread_file='single'
921 target_thread_file=''
923 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
924 xsolaris | xwin32 | xdce | xvxworks)
925 target_thread_file=$enable_threads_flag
928 echo "$enable_threads is an unknown thread package" 1>&2
933 # Check whether --enable-objc-gc or --disable-objc-gc was given.
934 if test "${enable_objc_gc+set}" = set; then
935 enableval="$enable_objc_gc"
936 if test x$enable_objc_gc = xno; then
946 # Check whether --with-dwarf2 or --without-dwarf2 was given.
947 if test "${with_dwarf2+set}" = set; then
948 withval="$with_dwarf2"
949 dwarf2="$with_dwarf2"
955 # Determine the host, build, and target systems
957 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
958 if test -f $ac_dir/install-sh; then
960 ac_install_sh="$ac_aux_dir/install-sh -c"
962 elif test -f $ac_dir/install.sh; then
964 ac_install_sh="$ac_aux_dir/install.sh -c"
968 if test -z "$ac_aux_dir"; then
969 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
971 ac_config_guess=$ac_aux_dir/config.guess
972 ac_config_sub=$ac_aux_dir/config.sub
973 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
976 # Do some error checking and defaulting for the host and target type.
978 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
981 # 1. You are not allowed to specify --host, --target, and nonopt at the
983 # 2. Host defaults to nonopt.
984 # 3. If nonopt is not specified, then host defaults to the current host,
985 # as determined by config.guess.
986 # 4. Target and build default to nonopt.
987 # 5. If nonopt is not specified, then target and build default to host.
989 # The aliases save the names the user supplied, while $host etc.
990 # will get canonicalized.
991 case $host---$target---$nonopt in
992 NONE---*---* | *---NONE---* | *---*---NONE) ;;
993 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
997 # Make sure we can run config.sub.
998 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
999 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1002 echo $ac_n "checking host system type""... $ac_c" 1>&6
1003 echo "configure:1004: checking host system type" >&5
1006 case "$host_alias" in
1010 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1011 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1013 *) host_alias=$nonopt ;;
1017 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1018 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1019 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1020 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1021 echo "$ac_t""$host" 1>&6
1023 echo $ac_n "checking target system type""... $ac_c" 1>&6
1024 echo "configure:1025: checking target system type" >&5
1026 target_alias=$target
1027 case "$target_alias" in
1030 NONE) target_alias=$host_alias ;;
1031 *) target_alias=$nonopt ;;
1035 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1036 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039 echo "$ac_t""$target" 1>&6
1041 echo $ac_n "checking build system type""... $ac_c" 1>&6
1042 echo "configure:1043: checking build system type" >&5
1045 case "$build_alias" in
1048 NONE) build_alias=$host_alias ;;
1049 *) build_alias=$nonopt ;;
1053 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1054 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057 echo "$ac_t""$build" 1>&6
1059 test "$host_alias" != "$target_alias" &&
1060 test "$program_prefix$program_suffix$program_transform_name" = \
1062 program_prefix=${target_alias}-
1065 # Find the native compiler
1066 # Extract the first word of "gcc", so it can be a program name with args.
1067 set dummy gcc; ac_word=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1069 echo "configure:1070: checking for $ac_word" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 if test -n "$CC"; then
1074 ac_cv_prog_CC="$CC" # Let the user override the test.
1076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1078 for ac_dir in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir=.
1080 if test -f $ac_dir/$ac_word; then
1089 if test -n "$CC"; then
1090 echo "$ac_t""$CC" 1>&6
1092 echo "$ac_t""no" 1>&6
1095 if test -z "$CC"; then
1096 # Extract the first word of "cc", so it can be a program name with args.
1097 set dummy cc; ac_word=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_word" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 if test -n "$CC"; then
1104 ac_cv_prog_CC="$CC" # Let the user override the test.
1106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1109 for ac_dir in $ac_dummy; do
1110 test -z "$ac_dir" && ac_dir=.
1111 if test -f $ac_dir/$ac_word; then
1112 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1113 ac_prog_rejected=yes
1121 if test $ac_prog_rejected = yes; then
1122 # We found a bogon in the path, so make sure we never use it.
1123 set dummy $ac_cv_prog_CC
1125 if test $# -gt 0; then
1126 # We chose a different compiler from the bogus one.
1127 # However, it has the same basename, so the bogon will be chosen
1128 # first if we set CC to just the basename; use the full file name.
1130 set dummy "$ac_dir/$ac_word" "$@"
1138 if test -n "$CC"; then
1139 echo "$ac_t""$CC" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 if test -z "$CC"; then
1145 case "`uname -s`" in
1147 # Extract the first word of "cl", so it can be a program name with args.
1148 set dummy cl; ac_word=$2
1149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150 echo "configure:1151: checking for $ac_word" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 if test -n "$CC"; then
1155 ac_cv_prog_CC="$CC" # Let the user override the test.
1157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1159 for ac_dir in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir=.
1161 if test -f $ac_dir/$ac_word; then
1170 if test -n "$CC"; then
1171 echo "$ac_t""$CC" 1>&6
1173 echo "$ac_t""no" 1>&6
1178 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1181 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
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 cat > conftest.$ac_ext << EOF
1193 #line 1194 "configure"
1194 #include "confdefs.h"
1198 if { (eval echo configure:1199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1199 ac_cv_prog_cc_works=yes
1200 # If we can't run a trivial program, we are probably using a cross compiler.
1201 if (./conftest; exit) 2>/dev/null; then
1202 ac_cv_prog_cc_cross=no
1204 ac_cv_prog_cc_cross=yes
1207 echo "configure: failed program was:" >&5
1208 cat conftest.$ac_ext >&5
1209 ac_cv_prog_cc_works=no
1213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1214 ac_cpp='$CPP $CPPFLAGS'
1215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1217 cross_compiling=$ac_cv_prog_cc_cross
1219 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1220 if test $ac_cv_prog_cc_works = no; then
1221 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1223 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1224 echo "configure:1225: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1225 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1226 cross_compiling=$ac_cv_prog_cc_cross
1228 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether we are using GNU C" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 cat > conftest.c <<EOF
1238 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1245 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1247 if test $ac_cv_prog_gcc = yes; then
1253 ac_test_CFLAGS="${CFLAGS+set}"
1254 ac_save_CFLAGS="$CFLAGS"
1256 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1257 echo "configure:1258: checking whether ${CC-cc} accepts -g" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 echo 'void f(){}' > conftest.c
1262 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1271 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1272 if test "$ac_test_CFLAGS" = set; then
1273 CFLAGS="$ac_save_CFLAGS"
1274 elif test $ac_cv_prog_cc_g = yes; then
1275 if test "$GCC" = yes; then
1281 if test "$GCC" = yes; then
1288 echo $ac_n "checking for long double""... $ac_c" 1>&6
1289 echo "configure:1290: checking for long double" >&5
1290 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 if test "$GCC" = yes; then
1294 gcc_cv_c_long_double=yes
1296 cat > conftest.$ac_ext <<EOF
1297 #line 1298 "configure"
1298 #include "confdefs.h"
1301 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1302 long double foo = 0.0;
1303 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1304 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1307 if { (eval echo configure:1308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1309 gcc_cv_c_long_double=yes
1311 echo "configure: failed program was:" >&5
1312 cat conftest.$ac_ext >&5
1314 gcc_cv_c_long_double=no
1320 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1321 if test $gcc_cv_c_long_double = yes; then
1322 cat >> confdefs.h <<\EOF
1323 #define HAVE_LONG_DOUBLE 1
1329 # If the native compiler is GCC, we can enable warnings even in stage1.
1330 # That's useful for people building cross-compilers, or just running a
1332 if test "x$GCC" = "xyes"; then
1333 stage1_warn_cflags='$(WARN_CFLAGS)'
1335 stage1_warn_cflags=""
1339 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1340 echo "configure:1341: checking whether ${MAKE-make} sets \${MAKE}" >&5
1341 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1342 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 cat > conftestmake <<\EOF
1347 @echo 'ac_maketemp="${MAKE}"'
1349 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1350 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1351 if test -n "$ac_maketemp"; then
1352 eval ac_cv_prog_make_${ac_make}_set=yes
1354 eval ac_cv_prog_make_${ac_make}_set=no
1358 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1359 echo "$ac_t""yes" 1>&6
1362 echo "$ac_t""no" 1>&6
1363 SET_MAKE="MAKE=${MAKE-make}"
1367 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1368 echo "configure:1369: checking whether a default assembler was specified" >&5
1369 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1370 if test x"$gas_flag" = x"no"; then
1371 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1373 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1376 echo "$ac_t""no" 1>&6
1379 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1380 echo "configure:1381: checking whether a default linker was specified" >&5
1381 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1382 if test x"$gnu_ld_flag" = x"no"; then
1383 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1385 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1388 echo "$ac_t""no" 1>&6
1391 # Find some useful tools
1392 for ac_prog in mawk gawk nawk awk
1394 # Extract the first word of "$ac_prog", so it can be a program name with args.
1395 set dummy $ac_prog; ac_word=$2
1396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $ac_word" >&5
1398 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 if test -n "$AWK"; then
1402 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1406 for ac_dir in $ac_dummy; do
1407 test -z "$ac_dir" && ac_dir=.
1408 if test -f $ac_dir/$ac_word; then
1409 ac_cv_prog_AWK="$ac_prog"
1416 AWK="$ac_cv_prog_AWK"
1417 if test -n "$AWK"; then
1418 echo "$ac_t""$AWK" 1>&6
1420 echo "$ac_t""no" 1>&6
1423 test -n "$AWK" && break
1426 # Extract the first word of "flex", so it can be a program name with args.
1427 set dummy flex; ac_word=$2
1428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1429 echo "configure:1430: checking for $ac_word" >&5
1430 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 if test -n "$LEX"; then
1434 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1438 for ac_dir in $ac_dummy; do
1439 test -z "$ac_dir" && ac_dir=.
1440 if test -f $ac_dir/$ac_word; then
1441 ac_cv_prog_LEX="flex"
1446 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1449 LEX="$ac_cv_prog_LEX"
1450 if test -n "$LEX"; then
1451 echo "$ac_t""$LEX" 1>&6
1453 echo "$ac_t""no" 1>&6
1456 if test -z "$LEXLIB"
1462 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1463 echo "configure:1464: checking for yywrap in -l$ac_lib" >&5
1464 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1468 ac_save_LIBS="$LIBS"
1469 LIBS="-l$ac_lib $LIBS"
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 /* Override any gcc2 internal prototype to avoid an error. */
1474 /* We use char because int might match the return type of a gcc2
1475 builtin and then its argument prototype would still apply. */
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1484 eval "ac_cv_lib_$ac_lib_var=yes"
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1489 eval "ac_cv_lib_$ac_lib_var=no"
1492 LIBS="$ac_save_LIBS"
1495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1499 echo "$ac_t""no" 1>&6
1504 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether ln works" >&5
1506 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 rm -f conftestdata_t
1510 echo >conftestdata_f
1511 if ln conftestdata_f conftestdata_t 2>/dev/null
1515 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1517 gcc_cv_prog_LN="ln -s"
1522 rm -f conftestdata_f conftestdata_t
1525 LN="$gcc_cv_prog_LN"
1526 if test "$gcc_cv_prog_LN" = "ln"; then
1527 echo "$ac_t""yes" 1>&6
1529 if test "$gcc_cv_prog_LN" = "ln -s"; then
1530 echo "$ac_t""no, using ln -s" 1>&6
1532 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1536 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1537 echo "configure:1538: checking whether ln -s works" >&5
1538 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 rm -f conftestdata_t
1542 echo >conftestdata_f
1543 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1545 gcc_cv_prog_LN_S="ln -s"
1547 if ln conftestdata_f conftestdata_t 2>/dev/null
1554 rm -f conftestdata_f conftestdata_t
1557 LN_S="$gcc_cv_prog_LN_S"
1558 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1559 echo "$ac_t""yes" 1>&6
1561 if test "$gcc_cv_prog_LN_S" = "ln"; then
1562 echo "$ac_t""no, using ln" 1>&6
1564 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1568 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1569 echo "configure:1570: checking for volatile" >&5
1570 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1581 if { (eval echo configure:1582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1583 gcc_cv_c_volatile=yes
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1588 gcc_cv_c_volatile=no
1593 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1594 if test $gcc_cv_c_volatile = yes ; then
1595 cat >> confdefs.h <<\EOF
1596 #define HAVE_VOLATILE 1
1601 # Extract the first word of "ranlib", so it can be a program name with args.
1602 set dummy ranlib; ac_word=$2
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_word" >&5
1605 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 if test -n "$RANLIB"; then
1609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1613 for ac_dir in $ac_dummy; do
1614 test -z "$ac_dir" && ac_dir=.
1615 if test -f $ac_dir/$ac_word; then
1616 ac_cv_prog_RANLIB="ranlib"
1621 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1624 RANLIB="$ac_cv_prog_RANLIB"
1625 if test -n "$RANLIB"; then
1626 echo "$ac_t""$RANLIB" 1>&6
1628 echo "$ac_t""no" 1>&6
1631 for ac_prog in 'bison -y' byacc
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy $ac_prog; ac_word=$2
1635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1636 echo "configure:1637: checking for $ac_word" >&5
1637 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1640 if test -n "$YACC"; then
1641 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1645 for ac_dir in $ac_dummy; do
1646 test -z "$ac_dir" && ac_dir=.
1647 if test -f $ac_dir/$ac_word; then
1648 ac_cv_prog_YACC="$ac_prog"
1655 YACC="$ac_cv_prog_YACC"
1656 if test -n "$YACC"; then
1657 echo "$ac_t""$YACC" 1>&6
1659 echo "$ac_t""no" 1>&6
1662 test -n "$YACC" && break
1664 test -n "$YACC" || YACC="yacc"
1666 # Find a good install program. We prefer a C program (faster),
1667 # so one script is as good as another. But avoid the broken or
1668 # incompatible versions:
1669 # SysV /etc/install, /usr/sbin/install
1670 # SunOS /usr/etc/install
1671 # IRIX /sbin/install
1673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1675 # ./install, which can be erroneously created by make from ./install.sh.
1676 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1677 echo "configure:1678: checking for a BSD compatible install" >&5
1678 if test -z "$INSTALL"; then
1679 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1683 for ac_dir in $PATH; do
1684 # Account for people who put trailing slashes in PATH elements.
1686 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1688 # OSF1 and SCO ODT 3.0 have their own names for install.
1689 for ac_prog in ginstall scoinst install; do
1690 if test -f $ac_dir/$ac_prog; then
1691 if test $ac_prog = install &&
1692 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1693 # AIX install. It has an incompatible calling convention.
1694 # OSF/1 installbsd also uses dspmsg, but is usable.
1697 ac_cv_path_install="$ac_dir/$ac_prog -c"
1708 if test "${ac_cv_path_install+set}" = set; then
1709 INSTALL="$ac_cv_path_install"
1711 # As a last resort, use the slow shell script. We don't cache a
1712 # path for INSTALL within a source directory, because that will
1713 # break other packages using the cache if that directory is
1714 # removed, or if the path is relative.
1715 INSTALL="$ac_install_sh"
1718 echo "$ac_t""$INSTALL" 1>&6
1720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721 # It thinks the first close brace ends the variable substitution.
1722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1727 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1728 echo "configure:1729: checking how to run the C preprocessor" >&5
1729 # On Suns, sometimes $CPP names a directory.
1730 if test -n "$CPP" && test -d "$CPP"; then
1733 if test -z "$CPP"; then
1734 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 # This must be in double quotes, not single quotes, because CPP may get
1738 # substituted into the Makefile and "${CC-cc}" will confuse make.
1740 # On the NeXT, cc -E runs the code through the compiler's parser,
1741 # not just through cpp.
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1749 { (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1751 if test -z "$ac_err"; then
1755 echo "configure: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1758 CPP="${CC-cc} -E -traditional-cpp"
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1766 { (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1768 if test -z "$ac_err"; then
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 CPP="${CC-cc} -nologo -E"
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1783 { (eval echo configure:1784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1785 if test -z "$ac_err"; then
1789 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1799 ac_cv_prog_CPP="$CPP"
1801 CPP="$ac_cv_prog_CPP"
1803 ac_cv_prog_CPP="$CPP"
1805 echo "$ac_t""$CPP" 1>&6
1807 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1808 echo "configure:1809: checking for ANSI C header files" >&5
1809 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 cat > conftest.$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1825 ac_cv_header_stdc=yes
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 ac_cv_header_stdc=no
1835 if test $ac_cv_header_stdc = yes; then
1836 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1843 egrep "memchr" >/dev/null 2>&1; then
1847 ac_cv_header_stdc=no
1853 if test $ac_cv_header_stdc = yes; then
1854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1861 egrep "free" >/dev/null 2>&1; then
1865 ac_cv_header_stdc=no
1871 if test $ac_cv_header_stdc = yes; then
1872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1873 if test "$cross_compiling" = yes; then
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1880 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1881 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1882 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1883 int main () { int i; for (i = 0; i < 256; i++)
1884 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1888 if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1895 ac_cv_header_stdc=no
1903 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1904 if test $ac_cv_header_stdc = yes; then
1905 cat >> confdefs.h <<\EOF
1906 #define STDC_HEADERS 1
1911 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether time.h and sys/time.h may both be included" >&5
1913 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919 #include <sys/types.h>
1920 #include <sys/time.h>
1926 if { (eval echo configure:1927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1928 ac_cv_header_time=yes
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 ac_cv_header_time=no
1938 echo "$ac_t""$ac_cv_header_time" 1>&6
1939 if test $ac_cv_header_time = yes; then
1940 cat >> confdefs.h <<\EOF
1941 #define TIME_WITH_SYS_TIME 1
1946 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether string.h and strings.h may both be included" >&5
1948 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1955 #include <strings.h>
1960 if { (eval echo configure:1961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1962 gcc_cv_header_string=yes
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1967 gcc_cv_header_string=no
1972 echo "$ac_t""$gcc_cv_header_string" 1>&6
1973 if test $gcc_cv_header_string = yes; then
1974 cat >> confdefs.h <<\EOF
1975 #define STRING_WITH_STRINGS 1
1980 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1981 echo "configure:1982: checking for sys/wait.h that is POSIX.1 compatible" >&5
1982 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 cat > conftest.$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 #include <sys/types.h>
1989 #include <sys/wait.h>
1991 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1994 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1999 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2002 if { (eval echo configure:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 ac_cv_header_sys_wait_h=yes
2006 echo "configure: failed program was:" >&5
2007 cat conftest.$ac_ext >&5
2009 ac_cv_header_sys_wait_h=no
2014 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2015 if test $ac_cv_header_sys_wait_h = yes; then
2016 cat >> confdefs.h <<\EOF
2017 #define HAVE_SYS_WAIT_H 1
2022 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2023 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2024 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_hdr" >&5
2030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2039 { (eval echo configure:2040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2041 if test -z "$ac_err"; then
2043 eval "ac_cv_header_$ac_safe=yes"
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2049 eval "ac_cv_header_$ac_safe=no"
2053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2056 cat >> confdefs.h <<EOF
2057 #define $ac_tr_hdr 1
2061 echo "$ac_t""no" 1>&6
2066 # Check for thread headers.
2067 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2068 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2069 echo "configure:2070: checking for thread.h" >&5
2070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2079 { (eval echo configure:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2081 if test -z "$ac_err"; then
2083 eval "ac_cv_header_$ac_safe=yes"
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 eval "ac_cv_header_$ac_safe=no"
2093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2097 echo "$ac_t""no" 1>&6
2101 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2102 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2103 echo "configure:2104: checking for pthread.h" >&5
2104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <pthread.h>
2112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2113 { (eval echo configure:2114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2115 if test -z "$ac_err"; then
2117 eval "ac_cv_header_$ac_safe=yes"
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2123 eval "ac_cv_header_$ac_safe=no"
2127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2131 echo "$ac_t""no" 1>&6
2136 # See if GNAT has been installed
2137 # Extract the first word of "gnatbind", so it can be a program name with args.
2138 set dummy gnatbind; ac_word=$2
2139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_word" >&5
2141 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 if test -n "$gnat"; then
2145 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2149 for ac_dir in $ac_dummy; do
2150 test -z "$ac_dir" && ac_dir=.
2151 if test -f $ac_dir/$ac_word; then
2152 ac_cv_prog_gnat="yes"
2157 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2160 gnat="$ac_cv_prog_gnat"
2161 if test -n "$gnat"; then
2162 echo "$ac_t""$gnat" 1>&6
2164 echo "$ac_t""no" 1>&6
2168 # See if the stage1 system preprocessor understands the ANSI C
2169 # preprocessor stringification operator.
2172 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2173 echo "configure:2174: checking for preprocessor stringizing operator" >&5
2174 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2183 char *s = x(teststring);
2186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2187 egrep "#teststring" >/dev/null 2>&1; then
2189 ac_cv_c_stringize=no
2192 ac_cv_c_stringize=yes
2198 if test "${ac_cv_c_stringize}" = yes
2200 cat >> confdefs.h <<\EOF
2201 #define HAVE_STRINGIZE 1
2205 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2208 # Use <inttypes.h> only if it exists,
2209 # doesn't clash with <sys/types.h>, and declares intmax_t.
2210 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2211 echo "configure:2212: checking for inttypes.h" >&5
2212 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 #include <sys/types.h>
2219 #include <inttypes.h>
2224 if { (eval echo configure:2225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2226 gcc_cv_header_inttypes_h=yes
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2231 gcc_cv_header_inttypes_h=no
2236 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2237 if test $gcc_cv_header_inttypes_h = yes; then
2238 cat >> confdefs.h <<\EOF
2239 #define HAVE_INTTYPES_H 1
2244 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2245 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2246 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2247 fputs_unlocked getrusage valloc
2249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2250 echo "configure:2251: checking for $ac_func" >&5
2251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 /* System header to define __stub macros and hopefully few prototypes,
2258 which can conflict with char $ac_func(); below. */
2260 /* Override any gcc2 internal prototype to avoid an error. */
2261 /* We use char because int might match the return type of a gcc2
2262 builtin and then its argument prototype would still apply. */
2267 /* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2278 if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2280 eval "ac_cv_func_$ac_func=yes"
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2285 eval "ac_cv_func_$ac_func=no"
2290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2291 echo "$ac_t""yes" 1>&6
2292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2293 cat >> confdefs.h <<EOF
2294 #define $ac_tr_func 1
2298 echo "$ac_t""no" 1>&6
2303 # Make sure wchar_t is available
2304 #AC_CHECK_TYPE(wchar_t, unsigned int)
2306 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2307 echo "configure:2308: checking for vprintf" >&5
2308 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 /* System header to define __stub macros and hopefully few prototypes,
2315 which can conflict with char vprintf(); below. */
2317 /* Override any gcc2 internal prototype to avoid an error. */
2318 /* We use char because int might match the return type of a gcc2
2319 builtin and then its argument prototype would still apply. */
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2335 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2337 eval "ac_cv_func_vprintf=yes"
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2342 eval "ac_cv_func_vprintf=no"
2347 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2349 cat >> confdefs.h <<\EOF
2350 #define HAVE_VPRINTF 1
2354 echo "$ac_t""no" 1>&6
2357 if test "$ac_cv_func_vprintf" != yes; then
2358 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2359 echo "configure:2360: checking for _doprnt" >&5
2360 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 /* System header to define __stub macros and hopefully few prototypes,
2367 which can conflict with char _doprnt(); below. */
2369 /* Override any gcc2 internal prototype to avoid an error. */
2370 /* We use char because int might match the return type of a gcc2
2371 builtin and then its argument prototype would still apply. */
2376 /* The GNU C library defines this for functions which it implements
2377 to always fail with ENOSYS. Some functions are actually named
2378 something starting with __ and the normal name is an alias. */
2379 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2387 if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2389 eval "ac_cv_func__doprnt=yes"
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2394 eval "ac_cv_func__doprnt=no"
2399 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2400 echo "$ac_t""yes" 1>&6
2401 cat >> confdefs.h <<\EOF
2402 #define HAVE_DOPRNT 1
2406 echo "$ac_t""no" 1>&6
2413 if test $ac_cv_func_vprintf != yes ; then
2415 if test $ac_cv_func__doprnt != yes ; then
2422 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2423 echo "configure:2424: checking whether the printf functions support %p" >&5
2424 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 if test "$cross_compiling" = yes; then
2428 gcc_cv_func_printf_ptr=no
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2438 char *p = buf, *q = NULL;
2439 sprintf(buf, "%p", p);
2440 sscanf(buf, "%p", &q);
2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2446 gcc_cv_func_printf_ptr=yes
2448 echo "configure: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2451 gcc_cv_func_printf_ptr=no
2456 rm -f core core.* *.core
2459 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2460 if test $gcc_cv_func_printf_ptr = yes ; then
2461 cat >> confdefs.h <<\EOF
2462 #define HAVE_PRINTF_PTR 1
2470 # Under some versions of uwin, vfork is notoriously buggy and the test
2471 # can hang configure; on other versions, vfork exists just as a stub.
2472 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2473 ac_cv_func_vfork_works=no
2476 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2477 echo "configure:2478: checking for pid_t" >&5
2478 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+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 #include <sys/types.h>
2490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2491 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2493 ac_cv_type_pid_t=yes
2501 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2502 if test $ac_cv_type_pid_t = no; then
2503 cat >> confdefs.h <<\EOF
2509 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2510 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2511 echo "configure:2512: checking for vfork.h" >&5
2512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2521 { (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2523 if test -z "$ac_err"; then
2525 eval "ac_cv_header_$ac_safe=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 eval "ac_cv_header_$ac_safe=no"
2535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 cat >> confdefs.h <<\EOF
2538 #define HAVE_VFORK_H 1
2542 echo "$ac_t""no" 1>&6
2545 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2546 echo "configure:2547: checking for working vfork" >&5
2547 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 if test "$cross_compiling" = yes; then
2551 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2552 echo "configure:2553: checking for vfork" >&5
2553 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2559 /* System header to define __stub macros and hopefully few prototypes,
2560 which can conflict with char vfork(); below. */
2562 /* Override any gcc2 internal prototype to avoid an error. */
2563 /* We use char because int might match the return type of a gcc2
2564 builtin and then its argument prototype would still apply. */
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined (__stub_vfork) || defined (__stub___vfork)
2580 if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2582 eval "ac_cv_func_vfork=yes"
2584 echo "configure: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2587 eval "ac_cv_func_vfork=no"
2592 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2596 echo "$ac_t""no" 1>&6
2599 ac_cv_func_vfork_works=$ac_cv_func_vfork
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604 /* Thanks to Paul Eggert for this test. */
2606 #include <sys/types.h>
2607 #include <sys/stat.h>
2608 #ifdef HAVE_UNISTD_H
2614 /* On some sparc systems, changes by the child to local and incoming
2615 argument registers are propagated back to the parent.
2616 The compiler is told about this with #include <vfork.h>,
2617 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2618 Test for this by using a static variable whose address
2619 is put into a register that is clobbered by the vfork. */
2622 sparc_address_test (int arg)
2624 sparc_address_test (arg) int arg;
2642 pid_t parent = getpid ();
2645 sparc_address_test ();
2650 /* Here is another test for sparc vfork register problems.
2651 This test uses lots of local variables, at least
2652 as many local variables as main has allocated so far
2653 including compiler temporaries. 4 locals are enough for
2654 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2655 A buggy compiler should reuse the register of parent
2656 for one of the local variables, since it will think that
2657 parent can't possibly be used any more in this routine.
2658 Assigning to the local variable will thus munge parent
2659 in the parent process. */
2661 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2662 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2663 /* Convince the compiler that p..p7 are live; otherwise, it might
2664 use the same hardware register for all 8 local variables. */
2665 if (p != p1 || p != p2 || p != p3 || p != p4
2666 || p != p5 || p != p6 || p != p7)
2669 /* On some systems (e.g. IRIX 3.3),
2670 vfork doesn't separate parent from child file descriptors.
2671 If the child closes a descriptor before it execs or exits,
2672 this munges the parent's descriptor as well.
2673 Test for this by closing stdout in the child. */
2674 _exit(close(fileno(stdout)) != 0);
2679 while (wait(&status) != child)
2682 /* Was there some problem with vforking? */
2685 /* Did the child fail? (This shouldn't happen.) */
2688 /* Did the vfork/compiler bug occur? */
2689 || parent != getpid()
2691 /* Did the file descriptor bug occur? */
2692 || fstat(fileno(stdout), &st) != 0
2697 if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2699 ac_cv_func_vfork_works=yes
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2704 ac_cv_func_vfork_works=no
2711 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2712 if test $ac_cv_func_vfork_works = no; then
2713 cat >> confdefs.h <<\EOF
2719 for ac_hdr in unistd.h
2721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_hdr" >&5
2724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 cat > conftest.$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2733 { (eval echo configure:2734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2735 if test -z "$ac_err"; then
2737 eval "ac_cv_header_$ac_safe=yes"
2740 echo "configure: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2743 eval "ac_cv_header_$ac_safe=no"
2747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2748 echo "$ac_t""yes" 1>&6
2749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2750 cat >> confdefs.h <<EOF
2751 #define $ac_tr_hdr 1
2755 echo "$ac_t""no" 1>&6
2759 for ac_func in getpagesize
2761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2762 echo "configure:2763: checking for $ac_func" >&5
2763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2769 /* System header to define __stub macros and hopefully few prototypes,
2770 which can conflict with char $ac_func(); below. */
2772 /* Override any gcc2 internal prototype to avoid an error. */
2773 /* We use char because int might match the return type of a gcc2
2774 builtin and then its argument prototype would still apply. */
2779 /* The GNU C library defines this for functions which it implements
2780 to always fail with ENOSYS. Some functions are actually named
2781 something starting with __ and the normal name is an alias. */
2782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2790 if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2792 eval "ac_cv_func_$ac_func=yes"
2794 echo "configure: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2797 eval "ac_cv_func_$ac_func=no"
2802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2803 echo "$ac_t""yes" 1>&6
2804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2805 cat >> confdefs.h <<EOF
2806 #define $ac_tr_func 1
2810 echo "$ac_t""no" 1>&6
2814 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2815 echo "configure:2816: checking for working mmap" >&5
2816 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 if test "$cross_compiling" = yes; then
2820 ac_cv_func_mmap_fixed_mapped=no
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2826 /* Thanks to Mike Haertel and Jim Avera for this test.
2827 Here is a matrix of mmap possibilities:
2828 mmap private not fixed
2829 mmap private fixed at somewhere currently unmapped
2830 mmap private fixed at somewhere already mapped
2831 mmap shared not fixed
2832 mmap shared fixed at somewhere currently unmapped
2833 mmap shared fixed at somewhere already mapped
2834 For private mappings, we should verify that changes cannot be read()
2835 back from the file, nor mmap's back from the file at a different
2836 address. (There have been systems where private was not correctly
2837 implemented like the infamous i386 svr4.0, and systems where the
2838 VM page cache was not coherent with the filesystem buffer cache
2839 like early versions of FreeBSD and possibly contemporary NetBSD.)
2840 For shared mappings, we should conversely verify that changes get
2841 propogated back to all the places they're supposed to be.
2843 Grep wants private fixed already mapped.
2844 The main things grep needs to know about mmap are:
2845 * does it exist and is it safe to write into the mmap'd area
2846 * how to use it (BSD variants) */
2847 #include <sys/types.h>
2849 #include <sys/mman.h>
2851 /* This mess was copied from the GNU getpagesize.h. */
2852 #ifndef HAVE_GETPAGESIZE
2853 # ifdef HAVE_UNISTD_H
2854 # include <unistd.h>
2857 /* Assume that all systems that can run configure have sys/param.h. */
2858 # ifndef HAVE_SYS_PARAM_H
2859 # define HAVE_SYS_PARAM_H 1
2862 # ifdef _SC_PAGESIZE
2863 # define getpagesize() sysconf(_SC_PAGESIZE)
2864 # else /* no _SC_PAGESIZE */
2865 # ifdef HAVE_SYS_PARAM_H
2866 # include <sys/param.h>
2867 # ifdef EXEC_PAGESIZE
2868 # define getpagesize() EXEC_PAGESIZE
2869 # else /* no EXEC_PAGESIZE */
2871 # define getpagesize() NBPG * CLSIZE
2874 # endif /* no CLSIZE */
2875 # else /* no NBPG */
2877 # define getpagesize() NBPC
2878 # else /* no NBPC */
2880 # define getpagesize() PAGESIZE
2881 # endif /* PAGESIZE */
2882 # endif /* no NBPC */
2883 # endif /* no NBPG */
2884 # endif /* no EXEC_PAGESIZE */
2885 # else /* no HAVE_SYS_PARAM_H */
2886 # define getpagesize() 8192 /* punt totally */
2887 # endif /* no HAVE_SYS_PARAM_H */
2888 # endif /* no _SC_PAGESIZE */
2890 #endif /* no HAVE_GETPAGESIZE */
2893 extern "C" { void *malloc(unsigned); }
2901 char *data, *data2, *data3;
2905 pagesize = getpagesize();
2908 * First, make a file with some known garbage in it.
2910 data = malloc(pagesize);
2913 for (i = 0; i < pagesize; ++i)
2914 *(data + i) = rand();
2916 fd = creat("conftestmmap", 0600);
2919 if (write(fd, data, pagesize) != pagesize)
2924 * Next, try to mmap the file at a fixed address which
2925 * already has something else allocated at it. If we can,
2926 * also make sure that we see the same garbage.
2928 fd = open("conftestmmap", O_RDWR);
2931 data2 = malloc(2 * pagesize);
2934 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2935 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2936 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2938 for (i = 0; i < pagesize; ++i)
2939 if (*(data + i) != *(data2 + i))
2943 * Finally, make sure that changes to the mapped area
2944 * do not percolate back to the file as seen by read().
2945 * (This is a bug on some variants of i386 svr4.0.)
2947 for (i = 0; i < pagesize; ++i)
2948 *(data2 + i) = *(data2 + i) + 1;
2949 data3 = malloc(pagesize);
2952 if (read(fd, data3, pagesize) != pagesize)
2954 for (i = 0; i < pagesize; ++i)
2955 if (*(data + i) != *(data3 + i))
2958 unlink("conftestmmap");
2963 if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2965 ac_cv_func_mmap_fixed_mapped=yes
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2970 ac_cv_func_mmap_fixed_mapped=no
2977 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2978 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2979 cat >> confdefs.h <<\EOF
2986 for ac_func in bcopy bzero bcmp \
2987 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2988 strsignal putc_unlocked fputs_unlocked strstr environ
2990 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2991 echo "configure:2992: checking whether $ac_func must be declared" >&5
2992 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
3000 #ifdef STRING_WITH_STRINGS
3001 # include <string.h>
3002 # include <strings.h>
3004 # ifdef HAVE_STRING_H
3005 # include <string.h>
3007 # ifdef HAVE_STRINGS_H
3008 # include <strings.h>
3012 #ifdef HAVE_STDLIB_H
3015 #ifdef HAVE_UNISTD_H
3020 #define rindex strrchr
3025 #define index strchr
3030 char *(*pfn) = (char *(*)) $ac_func
3033 if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035 eval "gcc_cv_decl_needed_$ac_func=no"
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3040 eval "gcc_cv_decl_needed_$ac_func=yes"
3045 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3048 cat >> confdefs.h <<EOF
3049 #define $gcc_tr_decl 1
3053 echo "$ac_t""no" 1>&6
3059 for ac_func in malloc realloc calloc free
3061 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3062 echo "configure:3063: checking whether $ac_func must be declared" >&5
3063 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3071 #ifdef STRING_WITH_STRINGS
3072 # include <string.h>
3073 # include <strings.h>
3075 # ifdef HAVE_STRING_H
3076 # include <string.h>
3078 # ifdef HAVE_STRINGS_H
3079 # include <strings.h>
3083 #ifdef HAVE_STDLIB_H
3086 #ifdef HAVE_UNISTD_H
3091 #define rindex strrchr
3096 #define index strchr
3099 #ifdef HAVE_MALLOC_H
3104 char *(*pfn) = (char *(*)) $ac_func
3107 if { (eval echo configure:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3109 eval "gcc_cv_decl_needed_$ac_func=no"
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3114 eval "gcc_cv_decl_needed_$ac_func=yes"
3119 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3120 echo "$ac_t""yes" 1>&6
3121 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3122 cat >> confdefs.h <<EOF
3123 #define $gcc_tr_decl 1
3127 echo "$ac_t""no" 1>&6
3133 for ac_func in getrlimit setrlimit getrusage
3135 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3136 echo "configure:3137: checking whether $ac_func must be declared" >&5
3137 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3145 #ifdef STRING_WITH_STRINGS
3146 # include <string.h>
3147 # include <strings.h>
3149 # ifdef HAVE_STRING_H
3150 # include <string.h>
3152 # ifdef HAVE_STRINGS_H
3153 # include <strings.h>
3157 #ifdef HAVE_STDLIB_H
3160 #ifdef HAVE_UNISTD_H
3165 #define rindex strrchr
3170 #define index strchr
3173 #include <sys/types.h>
3174 #ifdef HAVE_SYS_RESOURCE_H
3175 #include <sys/resource.h>
3179 char *(*pfn) = (char *(*)) $ac_func
3182 if { (eval echo configure:3183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3184 eval "gcc_cv_decl_needed_$ac_func=no"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 eval "gcc_cv_decl_needed_$ac_func=yes"
3194 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3196 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3197 cat >> confdefs.h <<EOF
3198 #define $gcc_tr_decl 1
3202 echo "$ac_t""no" 1>&6
3208 # mkdir takes a single argument on some systems.
3209 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3210 echo "configure:3211: checking if mkdir takes one argument" >&5
3211 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3218 #include <sys/types.h>
3219 #ifdef HAVE_SYS_STAT_H
3220 # include <sys/stat.h>
3222 #ifdef HAVE_UNISTD_H
3223 # include <unistd.h>
3225 #ifdef HAVE_DIRECT_H
3226 # include <direct.h>
3232 if { (eval echo configure:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234 gcc_cv_mkdir_takes_one_arg=no
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3239 gcc_cv_mkdir_takes_one_arg=yes
3244 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3245 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3246 cat >> confdefs.h <<\EOF
3247 #define MKDIR_TAKES_ONE_ARG 1
3261 build_install_headers_dir=install-headers-tar
3266 host_truncate_target=
3269 # Decode the host machine, then the target machine.
3270 # For the host machine, we save the xm_file variable as host_xm_file;
3271 # then we decode the target machine and forget everything else
3272 # that came from the host machine.
3273 for machine in $build $host $target; do
3287 # Set this to force installation and use of collect2.
3289 # Set this to override the default target model.
3291 # Set this to control how the header file directory is installed.
3292 install_headers_dir=install-headers-tar
3293 # Set this to a non-empty list of args to pass to cpp if the target
3294 # wants its .md file passed through cpp.
3296 # Set this if directory names should be truncated to 14 characters.
3298 # Set this if gdb needs a dir command with `dirname $out_file`
3299 gdb_needs_out_file_path=
3300 # Set this if the build machine requires executables to have a
3303 # Set this to control which thread package will be used.
3305 # Reinitialize these from the flag values every loop pass, since some
3306 # configure entries modify them.
3308 gnu_ld="$gnu_ld_flag"
3309 enable_threads=$enable_threads_flag
3311 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3312 # updated in each machine entry.
3314 cpu_type=`echo $machine | sed 's/-.*$//'`
3351 tm_file=${cpu_type}/${cpu_type}.h
3352 xm_file=${cpu_type}/xm-${cpu_type}.h
3353 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3355 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3357 # On a.out targets, we need to use collect2.
3364 # Common parts for linux-gnu and openbsd systems
3367 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3370 tm_file=${cpu_type}/openbsd.h
3371 tmake_file="t-libc-ok t-openbsd"
3372 # avoid surprises, always provide an xm-openbsd file
3373 xm_file=${cpu_type}/xm-openbsd.h
3374 # don't depend on processor x-fragments as well
3376 if test x$enable_threads = xyes; then
3378 tmake_file="${tmake_file} t-openbsd-thread"
3384 # Support site-specific machine types.
3386 cpu_type=`echo $machine | sed -e 's/-.*//'`
3387 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3388 xm_file=${cpu_type}/xm-$rest.h
3389 tm_file=${cpu_type}/$rest.h
3390 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3391 then xmake_file=${cpu_type}/x-$rest; \
3394 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3395 then tmake_file=${cpu_type}/t-$rest; \
3401 a29k-*-bsd* | a29k-*-sym1*)
3402 tm_file="${tm_file} a29k/unix.h"
3404 xmake_file=a29k/x-unix
3407 a29k-*-udi | a29k-*-coff)
3408 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3409 tmake_file=a29k/t-a29kbare
3412 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3413 tmake_file=a29k/t-vx29k
3414 extra_parts="crtbegin.o crtend.o"
3415 thread_file='vxworks'
3417 a29k-*-*) # Default a29k environment.
3421 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3423 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3424 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3426 # GAS + IEEE_CONFORMANT
3427 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3429 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3430 xmake_file="x-interix alpha/t-pe"
3431 tmake_file="alpha/t-interix alpha/t-ieee"
3432 if test x$enable_threads = xyes ; then
3435 if test x$stabs = xyes ; then
3436 tm_file="${tm_file} dbxcoff.h"
3438 #prefix='$$INTERIX_ROOT'/usr/contrib
3439 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3441 alpha*-*-linux-gnuecoff*)
3442 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3443 target_cpu_default="MASK_GAS"
3444 tmake_file="alpha/t-ieee"
3449 alpha*-*-linux-gnulibc1*)
3450 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3451 target_cpu_default="MASK_GAS"
3452 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3453 extra_parts="crtbegin.o crtend.o"
3456 if test x$enable_threads = xyes; then
3460 alpha*-*-linux-gnu*)
3461 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3462 target_cpu_default="MASK_GAS"
3463 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3464 extra_parts="crtbegin.o crtend.o"
3467 if test x$enable_threads = xyes; then
3472 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3473 target_cpu_default="MASK_GAS"
3474 tmake_file="alpha/t-crtbe alpha/t-ieee"
3475 extra_parts="crtbegin.o crtend.o"
3481 # default x-alpha is only appropriate for dec-osf.
3482 target_cpu_default="MASK_GAS"
3483 tmake_file="alpha/t-ieee"
3487 if test x$stabs = xyes
3489 tm_file="${tm_file} dbx.h"
3491 if test x$gas != xyes
3493 extra_passes="mips-tfile mips-tdump"
3496 tmake_file="alpha/t-ieee"
3499 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3502 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3505 tm_file="${tm_file} alpha/osf.h"
3506 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3507 # a broken tar, so we use cpio instead.
3508 install_headers_dir=install-headers-cpio
3511 tm_file="${tm_file} alpha/osf.h"
3515 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3516 target_cpu_default=MASK_SUPPORT_ARCH
3521 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3522 tmake_file="alpha/t-ieee"
3525 extra_passes="mips-tfile mips-tdump"
3528 thread_file='vxworks'
3531 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3532 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3533 tmake_file="t-libc-ok alpha/t-ieee"
3534 xmake_file=winnt/x-winnt
3535 extra_host_objs=oldnames.o
3536 extra_gcc_objs="spawnv.o oldnames.o"
3537 if test x$gnu_ld != xyes
3539 extra_programs=ld.exe
3541 if test x$enable_threads = xyes; then
3547 xm_file="${xm_file} alpha/xm-vms.h"
3548 tmake_file="alpha/t-vms alpha/t-ieee"
3551 extra_parts="crtinit.o crtfini.o"
3553 arm-*-coff* | armel-*-coff*)
3555 tmake_file=arm/t-bare
3559 tmake_file=arm/t-bare
3560 thread_file='vxworks'
3562 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3563 tm_file=arm/riscix1-1.h
3566 arm-*-riscix*) # Acorn RISC machine
3567 if test x$gas = xyes
3569 tm_file=arm/rix-gas.h
3571 tm_file=arm/riscix.h
3573 xmake_file=arm/x-riscix
3574 tmake_file=arm/t-riscix
3577 arm-semi-aout | armel-semi-aout)
3579 tmake_file=arm/t-semi
3581 arm-semi-aof | armel-semi-aof)
3582 tm_file=arm/semiaof.h
3583 tmake_file=arm/t-semiaof
3586 tm_file=arm/netbsd.h
3587 tmake_file="t-netbsd arm/t-netbsd"
3590 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3593 tm_file=arm/linux-aout.h
3594 tmake_file=arm/t-linux
3597 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3598 xm_file=arm/xm-linux.h
3600 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3603 tm_file="arm/linux-elf26.h $tm_file"
3606 tmake_file="t-linux arm/t-linux"
3607 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3609 case x${enable_threads} in
3610 x | xyes | xpthreads | xposix)
3615 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3616 xm_file=arm/xm-linux.h
3618 tm_file="arm/linux-elf.h"
3621 tm_file="arm/linux-elf26.h $tm_file"
3624 tmake_file="t-linux arm/t-linux"
3625 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3627 case x${enable_threads} in
3628 x | xyes | xpthreads | xposix)
3633 arm*-*-uclinux*) # ARM ucLinux
3634 tm_file=arm/uclinux-elf.h
3635 tmake_file=arm/t-arm-elf
3639 tmake_file=arm/t-bare
3642 tm_file=arm/ecos-elf.h
3643 tmake_file=arm/t-elf
3646 tm_file=arm/unknown-elf.h
3647 tmake_file=arm/t-arm-elf
3650 tm_file=arm/unknown-elf-oabi.h
3651 tmake_file=arm/t-arm-elf
3658 c1-convex-*) # Convex C1
3659 target_cpu_default=1
3662 c2-convex-*) # Convex C2
3663 target_cpu_default=2
3667 target_cpu_default=4
3671 target_cpu_default=8
3675 target_cpu_default=16
3680 tmake_file=c4x/t-c4x
3682 clipper-intergraph-clix*)
3683 tm_file="${tm_file} svr3.h clipper/clix.h"
3684 xm_file=clipper/xm-clix.h
3685 xmake_file=clipper/x-clix
3686 extra_headers=va-clipper.h
3687 extra_parts="crtbegin.o crtend.o"
3688 install_headers_dir=install-headers-cpio
3696 tm_file="fr30/fr30.h"
3697 tmake_file=fr30/t-fr30
3698 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3700 # This hasn't been upgraded to GCC 2.
3701 # fx80-alliant-*) # Alliant FX/80
3707 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3708 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3709 tmake_file="t-linux pa/t-linux"
3710 extra_parts="crtbegin.o crtend.o"
3713 if test x$enable_threads = xyes; then
3718 target_cpu_default="MASK_PA_11"
3719 tmake_file=pa/t-openbsd
3722 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3723 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3724 xm_file=pa/xm-papro.h
3728 target_cpu_default="MASK_PA_11"
3729 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3733 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3734 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3735 xm_file=pa/xm-papro.h
3739 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3743 tm_file="${tm_file} pa/som.h"
3744 target_cpu_default="MASK_PA_11"
3748 tm_file="${tm_file} pa/som.h"
3752 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3753 xm_file=pa/xm-pahpux.h
3754 xmake_file=pa/x-pa-hpux
3755 if test x$gas = xyes
3757 tm_file="${tm_file} pa/gas.h"
3759 install_headers_dir=install-headers-cpio
3762 hppa1.0-*-hpux8.0[0-2]*)
3763 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3764 xm_file=pa/xm-pahpux.h
3765 xmake_file=pa/x-pa-hpux
3766 if test x$gas = xyes
3768 tm_file="${tm_file} pa/pa-gas.h"
3770 tm_file="pa/pa-oldas.h ${tm_file}"
3772 install_headers_dir=install-headers-cpio
3775 hppa1.1-*-hpux8.0[0-2]*)
3776 target_cpu_default="MASK_PA_11"
3777 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3778 xm_file=pa/xm-pahpux.h
3779 xmake_file=pa/x-pa-hpux
3780 if test x$gas = xyes
3782 tm_file="${tm_file} pa/pa-gas.h"
3784 tm_file="pa/pa-oldas.h ${tm_file}"
3786 install_headers_dir=install-headers-cpio
3790 target_cpu_default="MASK_PA_11"
3791 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3792 xm_file=pa/xm-pahpux.h
3793 xmake_file=pa/x-pa-hpux
3794 if test x$gas = xyes
3796 tm_file="${tm_file} pa/pa-gas.h"
3798 install_headers_dir=install-headers-cpio
3802 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3803 xm_file=pa/xm-pahpux.h
3804 xmake_file=pa/x-pa-hpux
3805 if test x$gas = xyes
3807 tm_file="${tm_file} pa/pa-gas.h"
3809 install_headers_dir=install-headers-cpio
3812 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3813 target_cpu_default="MASK_PA_11"
3814 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3815 xm_file=pa/xm-pahpux.h
3816 xmake_file=pa/x-pa-hpux
3818 if test x$gas = xyes
3820 tm_file="${tm_file} pa/pa-gas.h"
3822 if test x$enable_threads = x; then
3823 enable_threads=$have_pthread_h
3825 if test x$enable_threads = xyes; then
3827 tmake_file="${tmake_file} pa/t-dce-thr"
3829 install_headers_dir=install-headers-cpio
3833 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3834 xm_file=pa/xm-pahpux.h
3835 xmake_file=pa/x-pa-hpux
3837 if test x$gas = xyes
3839 tm_file="${tm_file} pa/pa-gas.h"
3841 if test x$enable_threads = x; then
3842 enable_threads=$have_pthread_h
3844 if test x$enable_threads = xyes; then
3846 tmake_file="${tmake_file} pa/t-dce-thr"
3848 install_headers_dir=install-headers-cpio
3851 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3852 target_cpu_default="MASK_PA_11"
3853 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3854 xm_file=pa/xm-pahpux.h
3855 xmake_file=pa/x-pa-hpux
3857 if test x$gas = xyes
3859 tm_file="${tm_file} pa/pa-gas.h"
3861 # if test x$enable_threads = x; then
3862 # enable_threads=$have_pthread_h
3864 # if test x$enable_threads = xyes; then
3866 # tmake_file="${tmake_file} pa/t-dce-thr"
3868 install_headers_dir=install-headers-cpio
3872 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3873 xm_file=pa/xm-pahpux.h
3874 xmake_file=pa/x-pa-hpux
3875 if test x$gas = xyes
3877 tm_file="${tm_file} pa/pa-gas.h"
3879 # if test x$enable_threads = x; then
3880 # enable_threads=$have_pthread_h
3882 # if test x$enable_threads = xyes; then
3884 # tmake_file="${tmake_file} pa/t-dce-thr"
3886 install_headers_dir=install-headers-cpio
3889 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3890 target_cpu_default="MASK_PA_11"
3891 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3892 xm_file=pa/xm-pahpux.h
3893 xmake_file=pa/x-pa-hpux
3894 if test x$gas = xyes
3896 tm_file="${tm_file} pa/pa-gas.h"
3898 install_headers_dir=install-headers-cpio
3902 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3903 xm_file=pa/xm-pahpux.h
3904 xmake_file=pa/x-pa-hpux
3905 if test x$gas = xyes
3907 tm_file="${tm_file} pa/pa-gas.h"
3909 install_headers_dir=install-headers-cpio
3912 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3913 target_cpu_default="MASK_PA_11"
3914 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3915 xm_file=pa/xm-pahpux.h
3916 xmake_file=pa/x-pa-hpux
3917 if test x$gas = xyes
3919 tm_file="${tm_file} pa/pa-gas.h"
3921 install_headers_dir=install-headers-cpio
3925 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3926 xm_file=pa/xm-pahpux.h
3927 xmake_file=pa/x-pa-hpux
3928 if test x$gas = xyes
3930 tm_file="${tm_file} pa/pa-gas.h"
3932 install_headers_dir=install-headers-cpio
3936 tm_file="${tm_file} elfos.h pa/elf.h"
3937 target_cpu_default="MASK_PA_11"
3941 tm_file="${tm_file} pa/pa-mpeix.h"
3942 xm_file=pa/xm-pampeix.h
3943 xmake_file=pa/x-pa-mpeix
3944 echo "You must use gas. Assuming it is already installed."
3945 install_headers_dir=install-headers-tar
3946 fixincludes=Makefile.in
3949 i370-*-opened*) # IBM 360/370/390 Architecture
3950 xm_file=i370/xm-oe.h
3952 xmake_file=i370/x-oe
3953 tmake_file=i370/t-oe
3954 fixincludes=Makefile.in # Headers are wierd, don't mess with
3957 xm_file=i370/xm-mvs.h
3959 tmake_file=i370/t-mvs
3960 fixincludes=Makefile.in # Headers are wierd, don't mess with
3963 xm_file="xm-linux.h i370/xm-linux.h"
3965 tm_file="i370/linux.h ${tm_file}"
3966 tmake_file="t-linux i370/t-linux"
3967 fixincludes=Makefile.in # The headers are ok already.
3968 # broken_install=yes
3969 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3970 # extra_parts="crtbegin.o crtend.o"
3974 if test x$enable_threads = xyes; then
3979 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3980 tm_file=i386/i386elf.h
3981 tmake_file=i386/t-i386elf
3984 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3985 if test x$gas = xyes
3987 tm_file=i386/aix386.h
3988 extra_parts="crtbegin.o crtend.o"
3989 tmake_file=i386/t-crtstuff
3991 tm_file=i386/aix386ng.h
3994 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3996 xmake_file=i386/x-aix
3998 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3999 xm_file="xm-alloca.h ${xm_file}"
4000 xm_defines="USG POSIX SMALL_ARG_MAX"
4001 xmake_file=i386/x-ncr3000
4002 if test x$stabs = xyes -a x$gas = xyes
4004 tm_file=i386/sysv4gdb.h
4006 tm_file=i386/sysv4.h
4008 extra_parts="crtbegin.o crtend.o"
4009 tmake_file=i386/t-crtpic
4013 xm_file=i386/xm-next.h
4014 tmake_file=i386/t-next
4015 xmake_file=i386/x-next
4016 extra_objs=nextstep.o
4017 extra_parts="crtbegin.o crtend.o"
4018 if test x$enable_threads = xyes; then
4022 i[34567]86-sequent-bsd*) # 80386 from Sequent
4024 if test x$gas = xyes
4026 tm_file=i386/seq-gas.h
4028 tm_file=i386/sequent.h
4031 i[34567]86-sequent-ptx1*)
4032 xm_defines="USG SVR3"
4033 xmake_file=i386/x-sysv3
4034 tm_file=i386/seq-sysv3.h
4035 tmake_file=i386/t-crtstuff
4036 extra_parts="crtbegin.o crtend.o"
4037 install_headers_dir=install-headers-cpio
4039 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4040 xm_defines="USG SVR3"
4041 xmake_file=i386/x-sysv3
4042 tm_file=i386/seq2-sysv3.h
4043 tmake_file=i386/t-crtstuff
4044 extra_parts="crtbegin.o crtend.o"
4045 install_headers_dir=install-headers-cpio
4047 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4048 xm_file="xm-alloca.h ${xm_file}"
4049 xm_defines="USG POSIX SMALL_ARG_MAX"
4051 tm_file=i386/ptx4-i.h
4053 extra_parts="crtbegin.o crtend.o"
4054 install_headers_dir=install-headers-cpio
4056 i386-sun-sunos*) # Sun i386 roadrunner
4061 i[34567]86-wrs-vxworks*)
4062 tm_file=i386/vxi386.h
4063 tmake_file=i386/t-i386bare
4064 thread_file='vxworks'
4067 tm_file=i386/i386-aout.h
4068 tmake_file=i386/t-i386bare
4070 i[34567]86-*-beospe*)
4071 xm_file=i386/xm-beos.h
4072 xm_defines="USE_C_ALLOCA"
4073 tmake_file=i386/t-beos
4074 tm_file=i386/beos-pe.h
4075 xmake_file=i386/x-beos
4078 i[34567]86-*-beoself* | i[34567]86-*-beos*)
4079 xm_file=i386/xm-beos.h
4080 tmake_file='i386/t-beos i386/t-crtpic'
4081 tm_file=i386/beos-elf.h
4082 xmake_file=i386/x-beos
4084 extra_parts='crtbegin.o crtend.o'
4085 fixincludes=Makefile.in
4087 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4088 tm_file=i386/bsd386.h
4089 # tmake_file=t-libc-ok
4092 tm_file=i386/386bsd.h
4093 # tmake_file=t-libc-ok
4094 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4097 i[34567]86-*-freebsdelf*)
4098 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4099 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4100 tmake_file=t-freebsd
4104 case x${enable_threads} in
4105 xyes | xpthreads | xposix)
4107 tmake_file="${tmake_file} t-freebsd-thread"
4111 i[34567]86-*-freebsd*)
4112 tm_file="i386/freebsd.h i386/perform.h"
4113 tmake_file=t-freebsd
4115 i[34567]86-*-netbsd*)
4116 tm_file=i386/netbsd.h
4120 i[34567]86-*-openbsd*)
4121 # we need collect2 until our bug is fixed...
4125 tm_file=i386/i386-coff.h
4126 tmake_file=i386/t-i386bare
4128 i[34567]86-*-isc*) # 80386 running ISC system
4129 xm_file="${xm_file} i386/xm-isc.h"
4130 xm_defines="USG SVR3"
4132 i[34567]86-*-isc[34]*)
4133 xmake_file=i386/x-isc3
4136 xmake_file=i386/x-isc
4139 if test x$gas = xyes -a x$stabs = xyes
4141 tm_file=i386/iscdbx.h
4142 tmake_file=i386/t-svr3dbx
4143 extra_parts="svr3.ifile svr3z.ifile"
4145 tm_file=i386/isccoff.h
4146 tmake_file=i386/t-crtstuff
4147 extra_parts="crtbegin.o crtend.o"
4149 install_headers_dir=install-headers-cpio
4151 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4153 xmake_file=x-linux-aout
4154 tmake_file="t-linux-aout i386/t-crtstuff"
4155 tm_file=i386/linux-oldld.h
4159 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4160 xmake_file=x-linux-aout
4161 tmake_file="t-linux-aout i386/t-crtstuff"
4162 tm_file=i386/linux-aout.h
4166 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4167 # GNU/Linux C library 5
4169 tm_file=i386/linux.h
4170 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4171 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4174 if test x$enable_threads = xyes; then
4175 thread_file='single'
4178 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4179 # aka GNU/Linux C library 6
4181 tm_file=i386/linux.h
4182 tmake_file="t-linux i386/t-crtstuff"
4183 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4186 if test x$enable_threads = xyes; then
4193 i[34567]86-go32-msdos | i[34567]86-*-go32*)
4194 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4197 i[34567]86-pc-msdosdjgpp*)
4198 xm_file=i386/xm-djgpp.h
4199 tm_file=i386/djgpp.h
4200 tmake_file=i386/t-djgpp
4201 xmake_file=i386/x-djgpp
4205 case $host in *pc-msdosdjgpp*)
4210 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4212 tmake_file=t-libc-ok
4216 i[34567]86-*-lynxos*)
4217 if test x$gas = xyes
4221 tm_file=i386/lynx-ng.h
4223 xm_file=i386/xm-lynx.h
4224 tmake_file=i386/t-i386bare
4229 # tmake_file=t-libc-ok
4232 i[34567]86-*-osfrose*) # 386 using OSF/rose
4233 if test x$elf = xyes
4235 tm_file=i386/osfelf.h
4238 tm_file=i386/osfrose.h
4241 xm_file="i386/xm-osf.h ${xm_file}"
4242 xmake_file=i386/x-osfrose
4243 tmake_file=i386/t-osf
4244 extra_objs=halfpic.o
4246 i[34567]86-go32-rtems*)
4248 xm_file=i386/xm-go32.h
4249 tm_file=i386/go32-rtems.h
4250 tmake_file="i386/t-go32 t-rtems"
4252 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4254 tm_file=i386/rtemself.h
4255 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4256 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4258 i[34567]86-*-rtemscoff*)
4260 tm_file=i386/rtems.h
4261 tmake_file="i386/t-i386bare t-rtems"
4263 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4264 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4265 xm_defines="USG SVR3"
4266 xmake_file=i386/x-sco5
4267 install_headers_dir=install-headers-cpio
4269 if test x$gas = xyes
4271 tm_file="i386/sco5gas.h ${tm_file}"
4272 tmake_file=i386/t-sco5gas
4274 tmake_file=i386/t-sco5
4276 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4278 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
4279 xm_file="${xm_file} i386/xm-sco.h"
4280 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4281 xmake_file=i386/x-sco4
4282 install_headers_dir=install-headers-cpio
4283 if test x$stabs = xyes
4285 tm_file=i386/sco4dbx.h
4286 tmake_file=i386/t-svr3dbx
4287 extra_parts="svr3.ifile svr3z.rfile"
4290 tmake_file=i386/t-crtstuff
4291 extra_parts="crtbegin.o crtend.o"
4293 # The default EAFS filesystem supports long file names.
4294 # Truncating the target makes $host != $target which
4295 # makes gcc think it is doing a cross-compile.
4296 # truncate_target=yes
4298 i[34567]86-*-sco*) # 80386 running SCO system
4299 xm_file=i386/xm-sco.h
4300 xmake_file=i386/x-sco
4301 install_headers_dir=install-headers-cpio
4302 if test x$stabs = xyes
4304 tm_file=i386/scodbx.h
4305 tmake_file=i386/t-svr3dbx
4306 extra_parts="svr3.ifile svr3z.rfile"
4309 extra_parts="crtbegin.o crtend.o"
4310 tmake_file=i386/t-crtstuff
4314 i[34567]86-*-solaris2*)
4315 xm_file="xm-alloca.h ${xm_file}"
4316 xm_defines="USG POSIX SMALL_ARG_MAX"
4318 if test x$gas = xyes; then
4319 # Only needed if gas does not support -s
4320 tm_file="i386/sol2gas.h ${tm_file}"
4322 tmake_file=i386/t-sol2
4323 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4325 if test x${enable_threads} = x; then
4326 enable_threads=$have_pthread_h
4327 if test x${enable_threads} = x; then
4328 enable_threads=$have_thread_h
4331 if test x${enable_threads} = xyes; then
4332 if test x${have_pthread_h} = xyes; then
4335 thread_file='solaris'
4339 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4340 xm_file="xm-alloca.h ${xm_file}"
4341 xm_defines="USG POSIX"
4342 tm_file=i386/sysv5.h
4343 if test x$stabs = xyes
4345 tm_file="${tm_file} dbx.h"
4347 tmake_file=i386/t-crtpic
4349 extra_parts="crtbegin.o crtend.o"
4350 if test x$enable_threads = xyes; then
4354 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4355 xm_file="xm-alloca.h ${xm_file}"
4356 xm_defines="USG POSIX SMALL_ARG_MAX"
4357 tm_file=i386/sysv4.h
4358 if test x$stabs = xyes
4360 tm_file="${tm_file} dbx.h"
4362 tmake_file=i386/t-crtpic
4364 extra_parts="crtbegin.o crtend.o"
4366 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4367 xm_file="xm-alloca.h ${xm_file}"
4368 xm_defines="USG POSIX"
4370 tmake_file="i386/t-crtpic i386/t-udk"
4372 extra_parts="crtbegin.o crtend.o"
4373 install_headers_dir=install-headers-cpio
4375 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4377 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4378 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4379 if test x$stabs = xyes
4381 tm_file=i386/osf1elfgdb.h
4383 tm_file=i386/osf1elf.h
4385 tmake_file=i386/t-osf1elf
4386 xmake_file=i386/x-osf1elf
4387 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4389 i[34567]86-*-sysv*) # Intel 80386's running system V
4390 xm_defines="USG SVR3"
4391 xmake_file=i386/x-sysv3
4392 if test x$gas = xyes
4394 if test x$stabs = xyes
4396 tm_file=i386/svr3dbx.h
4397 tmake_file=i386/t-svr3dbx
4398 extra_parts="svr3.ifile svr3z.rfile"
4400 tm_file=i386/svr3gas.h
4401 extra_parts="crtbegin.o crtend.o"
4402 tmake_file=i386/t-crtstuff
4405 tm_file=i386/sysv3.h
4406 extra_parts="crtbegin.o crtend.o"
4407 tmake_file=i386/t-crtstuff
4410 i386-*-vsta) # Intel 80386's running VSTa kernel
4411 xm_file="${xm_file} i386/xm-vsta.h"
4413 tmake_file=i386/t-vsta
4414 xmake_file=i386/x-vsta
4417 xm_file="${xm_file} i386/xm-cygwin.h"
4418 tmake_file=i386/t-cygwin
4419 tm_file=i386/win32.h
4420 xmake_file=i386/x-cygwin
4422 if test x$enable_threads = xyes; then
4427 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4428 xm_file="${xm_file} i386/xm-cygwin.h"
4429 tmake_file=i386/t-cygwin
4430 tm_file=i386/cygwin.h
4431 xmake_file=i386/x-cygwin
4433 if test x$enable_threads = xyes; then
4438 i[34567]86-*-mingw32*)
4439 tm_file=i386/mingw32.h
4440 xm_file="${xm_file} i386/xm-mingw32.h"
4441 tmake_file="i386/t-cygwin i386/t-mingw32"
4443 xmake_file=i386/x-cygwin
4444 if test x$enable_threads = xyes; then
4451 *minwg32crt* | *mingw32*)
4452 tm_file="${tm_file} i386/crtdll.h"
4458 xm_file="${xm_file} i386/xm-uwin.h"
4459 xm_defines="USG NO_STAB_H"
4460 tmake_file="i386/t-cygwin i386/t-uwin"
4462 xmake_file=i386/x-cygwin
4463 if test x$enable_threads = xyes; then
4468 i[34567]86-*-interix*)
4469 tm_file="i386/i386-interix.h interix.h"
4470 xm_file="i386/xm-i386-interix.h xm-interix.h"
4472 tmake_file="i386/t-interix"
4473 extra_objs=interix.o
4474 xmake_file=x-interix
4475 if test x$enable_threads = xyes ; then
4478 if test x$stabs = xyes ; then
4479 tm_file="${tm_file} dbxcoff.h"
4482 i[34567]86-*-winnt3*)
4483 tm_file=i386/win-nt.h
4484 out_file=i386/i386.c
4485 xm_file="xm-winnt.h ${xm_file}"
4486 xmake_file=winnt/x-winnt
4487 tmake_file=i386/t-winnt
4488 extra_host_objs="winnt.o oldnames.o"
4489 extra_gcc_objs="spawnv.o oldnames.o"
4490 if test x$gnu_ld != xyes
4492 extra_programs=ld.exe
4494 if test x$enable_threads = xyes; then
4498 i[34567]86-dg-dgux*)
4499 xm_file="xm-alloca.h ${xm_file}"
4500 xm_defines="USG POSIX"
4501 out_file=i386/dgux.c
4503 tmake_file=i386/t-dgux
4504 xmake_file=i386/x-dgux
4505 install_headers_dir=install-headers-cpio
4507 i860-alliant-*) # Alliant FX/2800
4508 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4509 xm_file="${xm_file}"
4510 xmake_file=i860/x-fx2800
4511 tmake_file=i860/t-fx2800
4512 extra_parts="crtbegin.o crtend.o"
4515 tm_file="${tm_file} i860/bsd.h"
4516 if test x$gas = xyes
4518 tm_file="${tm_file} i860/bsd-gas.h"
4523 tm_file="${tm_file} i860/mach.h"
4524 tmake_file=t-libc-ok
4526 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4527 tm_file="${tm_file} svr3.h i860/paragon.h"
4528 xm_defines="USG SVR3"
4532 tm_file="${tm_file} svr3.h i860/sysv3.h"
4533 xm_defines="USG SVR3"
4534 xmake_file=i860/x-sysv3
4535 extra_parts="crtbegin.o crtend.o"
4538 tm_file="${tm_file} svr4.h i860/sysv4.h"
4539 xm_defines="USG SVR3"
4540 xmake_file=i860/x-sysv4
4542 extra_parts="crtbegin.o crtend.o"
4544 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4545 tm_file="${tm_file} i960/vx960.h"
4546 tmake_file=i960/t-vxworks960
4548 thread_file='vxworks'
4550 i960-wrs-vxworks5* | i960-wrs-vxworks)
4551 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4552 tmake_file=i960/t-vxworks960
4554 thread_file='vxworks'
4557 tm_file="${tm_file} i960/vx960.h"
4558 tmake_file=i960/t-vxworks960
4560 thread_file='vxworks'
4563 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4564 tmake_file=i960/t-960bare
4568 tmake_file="i960/t-960bare t-rtems"
4569 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4572 i960-*-*) # Default i960 environment.
4576 extra_parts="crtinit.o crtfini.o"
4578 m68000-convergent-sysv*)
4580 xm_file="m68k/xm-3b1.h ${xm_file}"
4583 extra_headers=math-68881.h
4585 m68000-hp-bsd*) # HP 9000/200 running BSD
4586 tm_file=m68k/hp2bsd.h
4587 xmake_file=m68k/x-hp2bsd
4589 extra_headers=math-68881.h
4591 m68000-hp-hpux*) # HP 9000 series 300
4592 xm_file="xm-alloca.h ${xm_file}"
4594 if test x$gas = xyes
4596 xmake_file=m68k/x-hp320g
4597 tm_file=m68k/hp310g.h
4599 xmake_file=m68k/x-hp320
4600 tm_file=m68k/hp310.h
4602 install_headers_dir=install-headers-cpio
4604 extra_headers=math-68881.h
4609 extra_headers=math-68881.h
4612 tm_file=m68k/sun2o4.h
4614 extra_headers=math-68881.h
4617 xm_file="m68k/xm-3b1.h ${xm_file}"
4619 if test x$gas = xyes
4626 extra_headers=math-68881.h
4628 m68k-apple-aux*) # Apple Macintosh running A/UX
4629 xm_defines="USG AUX"
4630 tmake_file=m68k/t-aux
4631 install_headers_dir=install-headers-cpio
4632 extra_headers=math-68881.h
4633 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4635 if test "$gnu_ld" = yes
4637 tm_file="${tm_file} m68k/auxgld.h"
4639 tm_file="${tm_file} m68k/auxld.h"
4641 if test "$gas" = yes
4643 tm_file="${tm_file} m68k/auxgas.h"
4645 tm_file="${tm_file} m68k/auxas.h"
4647 tm_file="${tm_file} m68k/a-ux.h"
4651 tm_file=m68k/apollo68.h
4652 xmake_file=m68k/x-apollo68
4654 extra_headers=math-68881.h
4657 m68k-altos-sysv*) # Altos 3068
4658 if test x$gas = xyes
4660 tm_file=m68k/altos3068.h
4663 echo "The Altos is supported only with the GNU assembler" 1>&2
4666 extra_headers=math-68881.h
4668 m68k-bull-sysv*) # Bull DPX/2
4669 if test x$gas = xyes
4671 if test x$stabs = xyes
4673 tm_file=m68k/dpx2cdbx.h
4675 tm_file=m68k/dpx2g.h
4680 xm_file="xm-alloca.h ${xm_file}"
4682 xmake_file=m68k/x-dpx2
4684 extra_headers=math-68881.h
4686 m68k-atari-sysv4*) # Atari variant of V.4.
4687 tm_file=m68k/atari.h
4688 xm_file="xm-alloca.h ${xm_file}"
4689 xm_defines="USG FULL_PROTOTYPES"
4691 extra_parts="crtbegin.o crtend.o"
4692 extra_headers=math-68881.h
4695 m68k-motorola-sysv*)
4696 tm_file=m68k/mot3300.h
4697 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4698 if test x$gas = xyes
4700 xmake_file=m68k/x-mot3300-gas
4701 if test x$gnu_ld = xyes
4703 tmake_file=m68k/t-mot3300-gald
4705 tmake_file=m68k/t-mot3300-gas
4709 xmake_file=m68k/x-mot3300
4710 if test x$gnu_ld = xyes
4712 tmake_file=m68k/t-mot3300-gld
4714 tmake_file=m68k/t-mot3300
4718 gdb_needs_out_file_path=yes
4719 extra_parts="crt0.o mcrt0.o"
4720 extra_headers=math-68881.h
4723 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4724 tm_file=m68k/tower-as.h
4725 xm_defines="USG SVR3"
4726 xmake_file=m68k/x-tower
4727 extra_parts="crtbegin.o crtend.o"
4728 extra_headers=math-68881.h
4731 tm_file=m68k/plexus.h
4732 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4735 extra_headers=math-68881.h
4739 xm_file="xm-alloca.h ${xm_file}"
4741 extra_headers=math-68881.h
4744 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4745 xm_defines="USG unos"
4746 xmake_file=m68k/x-crds
4749 extra_headers=math-68881.h
4751 m68k-cbm-sysv4*) # Commodore variant of V.4.
4753 xm_file="xm-alloca.h ${xm_file}"
4754 xm_defines="USG FULL_PROTOTYPES"
4755 xmake_file=m68k/x-amix
4757 extra_parts="crtbegin.o crtend.o"
4758 extra_headers=math-68881.h
4762 tm_file=m68k/ccur-GAS.h
4763 xmake_file=m68k/x-ccur
4764 extra_headers=math-68881.h
4768 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4769 tm_file=m68k/hp3bsd44.h
4770 xmake_file=m68k/x-hp3bsd44
4772 extra_headers=math-68881.h
4775 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4776 tm_file=m68k/hp3bsd.h
4778 extra_headers=math-68881.h
4782 if test x$with_fp = xno
4784 tm_file=m68k/isi-nfp.h
4790 extra_headers=math-68881.h
4792 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4793 xm_file="xm-alloca.h ${xm_file}"
4795 if test x$gas = xyes
4797 xmake_file=m68k/x-hp320g
4798 tm_file=m68k/hp320g.h
4800 xmake_file=m68k/x-hp320
4801 tm_file=m68k/hpux7.h
4803 install_headers_dir=install-headers-cpio
4805 extra_headers=math-68881.h
4808 m68k-hp-hpux*) # HP 9000 series 300
4809 xm_file="xm-alloca.h ${xm_file}"
4811 if test x$gas = xyes
4813 xmake_file=m68k/x-hp320g
4814 tm_file=m68k/hp320g.h
4816 xmake_file=m68k/x-hp320
4817 tm_file=m68k/hp320.h
4819 install_headers_dir=install-headers-cpio
4821 extra_headers=math-68881.h
4825 tm_file=m68k/sun3mach.h
4827 extra_headers=math-68881.h
4831 if test x$gas = xyes
4833 tm_file=m68k/news3gas.h
4835 tm_file=m68k/news3.h
4838 extra_headers=math-68881.h
4841 m68k-sony-bsd* | m68k-sony-newsos*)
4842 if test x$gas = xyes
4844 tm_file=m68k/newsgas.h
4849 extra_headers=math-68881.h
4852 m68k-next-nextstep2*)
4853 tm_file=m68k/next21.h
4854 xm_file="m68k/xm-next.h ${xm_file}"
4855 tmake_file=m68k/t-next
4856 xmake_file=m68k/x-next
4857 extra_objs=nextstep.o
4858 extra_headers=math-68881.h
4862 m68k-next-nextstep[34]*)
4864 xm_file="m68k/xm-next.h ${xm_file}"
4865 tmake_file=m68k/t-next
4866 xmake_file=m68k/x-next
4867 extra_objs=nextstep.o
4868 extra_parts="crtbegin.o crtend.o"
4869 extra_headers=math-68881.h
4871 if test x$enable_threads = xyes; then
4876 if test x$with_fp = xno
4878 tm_file=m68k/sun3n3.h
4880 tm_file=m68k/sun3o3.h
4884 extra_headers=math-68881.h
4886 m68k-sun-sunos*) # For SunOS 4 (the default).
4887 if test x$with_fp = xno
4889 tm_file=m68k/sun3n.h
4895 extra_headers=math-68881.h
4898 tm_file=m68k/vxm68k.h
4899 tmake_file=m68k/t-vxworks68
4900 extra_headers=math-68881.h
4901 thread_file='vxworks'
4905 tmake_file=m68k/t-m68kbare
4906 tm_file="m68k/m68k-aout.h libgloss.h"
4907 extra_headers=math-68881.h
4911 tmake_file=m68k/t-m68kbare
4912 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4913 extra_headers=math-68881.h
4916 m68020-*-elf* | m68k-*-elf*)
4917 tm_file="m68k/m68020-elf.h"
4918 xm_file=m68k/xm-m68kv.h
4919 tmake_file=m68k/t-m68kelf
4920 header_files=math-68881.h
4923 if test x$gas = xyes
4927 tm_file=m68k/lynx-ng.h
4929 xm_file=m68k/xm-lynx.h
4931 tmake_file=m68k/t-lynx
4932 extra_headers=math-68881.h
4936 tm_file=m68k/netbsd.h
4943 # we need collect2 until our bug is fixed...
4946 m68k-*-sysv3*) # Motorola m68k's running system V.3
4947 xm_file="xm-alloca.h ${xm_file}"
4949 xmake_file=m68k/x-m68kv
4950 extra_parts="crtbegin.o crtend.o"
4951 extra_headers=math-68881.h
4954 m68k-*-sysv4*) # Motorola m68k's running system V.4
4955 tm_file=m68k/m68kv4.h
4956 xm_file="xm-alloca.h ${xm_file}"
4959 extra_parts="crtbegin.o crtend.o"
4960 extra_headers=math-68881.h
4963 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4966 tm_file=m68k/linux-aout.h
4967 tmake_file="t-linux-aout m68k/t-linux-aout"
4968 extra_headers=math-68881.h
4972 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4973 # with ELF format using the
4974 # GNU/Linux C library 5
4976 tm_file=m68k/linux.h
4977 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4978 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4979 extra_headers=math-68881.h
4983 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4984 # with ELF format using glibc 2
4985 # aka the GNU/Linux C library 6.
4987 tm_file=m68k/linux.h
4988 tmake_file="t-linux m68k/t-linux"
4989 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4990 extra_headers=math-68881.h
4993 if test x$enable_threads = xyes; then
4998 tmake_file=m68k/t-m68kbare
4999 tm_file=m68k/m68k-psos.h
5000 extra_headers=math-68881.h
5004 tmake_file="m68k/t-m68kbare t-rtems"
5005 tm_file=m68k/rtems.h
5006 extra_headers=math-68881.h
5009 m68k-*-rtemself*|m68k-*-rtems*)
5010 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5011 tm_file=m68k/rtemself.h
5012 extra_headers=math-68881.h
5018 tm_file=m88k/dguxbcs.h
5019 tmake_file=m88k/t-dguxbcs
5023 tmake_file=m88k/t-dgux
5026 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5027 xmake_file=m88k/x-dgux
5028 if test x$gas = xyes
5030 tmake_file=m88k/t-dgux-gas
5033 m88k-dolphin-sysv3*)
5034 tm_file=m88k/dolph.h
5035 extra_parts="crtbegin.o crtend.o"
5036 xm_file="m88k/xm-sysv3.h ${xm_file}"
5037 xmake_file=m88k/x-dolph
5038 if test x$gas = xyes
5040 tmake_file=m88k/t-m88k-gas
5043 m88k-tektronix-sysv3)
5044 tm_file=m88k/tekXD88.h
5045 extra_parts="crtbegin.o crtend.o"
5046 xm_file="m88k/xm-sysv3.h ${xm_file}"
5047 xmake_file=m88k/x-tekXD88
5048 if test x$gas = xyes
5050 tmake_file=m88k/t-m88k-gas
5054 tm_file=m88k/m88k-aout.h
5057 tm_file=m88k/m88k-coff.h
5058 tmake_file=m88k/t-bug
5062 extra_parts="crtbegin.o crtend.o"
5063 if test x$gas = xyes
5065 tmake_file=m88k/t-luna-gas
5067 tmake_file=m88k/t-luna
5071 tmake_file="${tmake_file} m88k/t-luna-gas"
5074 tm_file=m88k/sysv3.h
5075 extra_parts="crtbegin.o crtend.o"
5076 xm_file="m88k/xm-sysv3.h ${xm_file}"
5077 xmake_file=m88k/x-sysv3
5078 if test x$gas = xyes
5080 tmake_file=m88k/t-m88k-gas
5084 tm_file=m88k/sysv4.h
5085 extra_parts="crtbegin.o crtend.o"
5086 xmake_file=m88k/x-sysv4
5087 tmake_file=m88k/t-sysv4
5089 mips-sgi-irix6*) # SGI System V.4., IRIX 6
5090 if test "x$gnu_ld" = xyes
5092 tm_file="mips/iris6.h mips/iris6gld.h"
5094 tm_file=mips/iris6.h
5096 tmake_file=mips/t-iris6
5097 xm_file=mips/xm-iris6.h
5098 xmake_file=mips/x-iris6
5099 # if test x$enable_threads = xyes; then
5100 # thread_file='irix'
5104 tm_file="mips/elf.h mips/vxworks.h"
5105 tmake_file=mips/t-ecoff
5108 extra_parts="crtbegin.o crtend.o"
5109 thread_file='vxworks'
5111 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
5112 tm_file="mips/iris6.h mips/cross64.h"
5114 xm_file="mips/xm-iris5.h"
5115 xmake_file=mips/x-iris
5116 tmake_file=mips/t-cross64
5117 # See comment in mips/iris[56].h files.
5119 # if test x$enable_threads = xyes; then
5120 # thread_file='irix'
5124 if test x$gas = xyes
5126 if test x$stabs = xyes
5128 tm_file=mips/iris5gdb.h
5130 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5133 tm_file=mips/sni-svr4.h
5136 xmake_file=mips/x-sni-svr4
5137 tmake_file=mips/t-mips-gas
5138 if test x$gnu_ld != xyes
5143 mips-sgi-irix5*) # SGI System V.4., IRIX 5
5144 if test x$gas = xyes
5146 tm_file="mips/iris5.h mips/iris5gas.h"
5147 if test x$stabs = xyes
5149 tm_file="${tm_file} dbx.h"
5152 tm_file=mips/iris5.h
5155 xm_file="mips/xm-iris5.h"
5156 xmake_file=mips/x-iris
5157 # mips-tfile doesn't work yet
5158 tmake_file=mips/t-mips-gas
5159 # See comment in mips/iris5.h file.
5161 # if test x$enable_threads = xyes; then
5162 # thread_file='irix'
5165 mips-sgi-irix4loser*) # Mostly like a MIPS.
5166 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5167 if test x$stabs = xyes; then
5168 tm_file="${tm_file} dbx.h"
5171 xmake_file=mips/x-iris
5172 if test x$gas = xyes
5174 tmake_file=mips/t-mips-gas
5176 extra_passes="mips-tfile mips-tdump"
5178 if test x$gnu_ld != xyes
5182 # if test x$enable_threads = xyes; then
5183 # thread_file='irix'
5186 mips-sgi-irix4*) # Mostly like a MIPS.
5187 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5188 if test x$stabs = xyes; then
5189 tm_file="${tm_file} dbx.h"
5192 xmake_file=mips/x-iris
5193 if test x$gas = xyes
5195 tmake_file=mips/t-mips-gas
5197 extra_passes="mips-tfile mips-tdump"
5199 if test x$gnu_ld != xyes
5203 # if test x$enable_threads = xyes; then
5204 # thread_file='irix'
5207 mips-sgi-*) # Mostly like a MIPS.
5208 tm_file="mips/iris3.h ${tm_file}"
5209 if test x$stabs = xyes; then
5210 tm_file="${tm_file} dbx.h"
5213 xmake_file=mips/x-iris3
5214 if test x$gas = xyes
5216 tmake_file=mips/t-mips-gas
5218 extra_passes="mips-tfile mips-tdump"
5220 if test x$gnu_ld != xyes
5225 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
5226 tm_file="mips/osfrose.h ${tm_file}"
5227 xmake_file=mips/x-osfrose
5228 tmake_file=mips/t-osfrose
5229 extra_objs=halfpic.o
5232 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
5233 tm_file=mips/dec-osf1.h
5234 if test x$stabs = xyes; then
5235 tm_file="${tm_file} dbx.h"
5237 xmake_file=mips/x-dec-osf1
5238 if test x$gas = xyes
5240 tmake_file=mips/t-mips-gas
5242 tmake_file=mips/t-ultrix
5243 extra_passes="mips-tfile mips-tdump"
5245 if test x$gnu_ld != xyes
5250 mips-dec-bsd*) # Decstation running 4.4 BSD
5251 tm_file=mips/dec-bsd.h
5252 if test x$gas = xyes
5254 tmake_file=mips/t-mips-gas
5256 tmake_file=mips/t-ultrix
5257 extra_passes="mips-tfile mips-tdump"
5259 if test x$gnu_ld != xyes
5264 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
5265 tm_file=mips/netbsd.h
5266 # On NetBSD, the headers are already okay, except for math.h.
5269 mips*-*-linux*) # Linux MIPS, either endian.
5272 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
5273 *) tm_file="mips/elf.h mips/linux.h" ;;
5275 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5278 if test x$enable_threads = xyes; then
5282 mips*el-*-openbsd*) # mips little endian
5283 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5285 mips*-*-openbsd*) # mips big endian
5286 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5287 tm_file="mips/openbsd-be.h ${tm_file}"
5289 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
5290 tm_file="mips/news4.h ${tm_file}"
5291 if test x$stabs = xyes; then
5292 tm_file="${tm_file} dbx.h"
5294 if test x$gas = xyes
5296 tmake_file=mips/t-mips-gas
5298 extra_passes="mips-tfile mips-tdump"
5300 if test x$gnu_ld != xyes
5304 xmake_file=mips/x-sony
5306 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
5307 # That is based on svr4.
5308 # t-svr4 is not right because this system doesn't use ELF.
5309 tm_file="mips/news5.h ${tm_file}"
5310 if test x$stabs = xyes; then
5311 tm_file="${tm_file} dbx.h"
5314 if test x$gas = xyes
5316 tmake_file=mips/t-mips-gas
5318 extra_passes="mips-tfile mips-tdump"
5320 if test x$gnu_ld != xyes
5325 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5326 tm_file="mips/svr4-5.h mips/svr4-t.h"
5327 if test x$stabs = xyes; then
5328 tm_file="${tm_file} dbx.h"
5331 xmake_file=mips/x-sysv
5332 if test x$gas = xyes
5334 tmake_file=mips/t-mips-gas
5335 extra_parts="crtbegin.o crtend.o"
5337 tmake_file=mips/t-mips
5338 extra_passes="mips-tfile mips-tdump"
5340 if test x$gnu_ld != xyes
5345 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5346 tm_file="mips/ultrix.h ${tm_file}"
5347 if test x$stabs = xyes; then
5348 tm_file="${tm_file} dbx.h"
5350 xmake_file=mips/x-ultrix
5351 if test x$gas = xyes
5353 tmake_file=mips/t-mips-gas
5355 tmake_file=mips/t-ultrix
5356 extra_passes="mips-tfile mips-tdump"
5358 if test x$gnu_ld != xyes
5363 mips-*-riscos[56789]bsd*)
5364 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5365 if test x$stabs = xyes; then
5366 tm_file="${tm_file} dbx.h"
5368 if test x$gas = xyes
5370 tmake_file=mips/t-bsd-gas
5372 tmake_file=mips/t-bsd
5373 extra_passes="mips-tfile mips-tdump"
5375 if test x$gnu_ld != xyes
5380 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5381 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5382 if test x$stabs = xyes; then
5383 tm_file="${tm_file} dbx.h"
5385 if test x$gas = xyes
5387 tmake_file=mips/t-bsd-gas
5389 tmake_file=mips/t-bsd
5390 extra_passes="mips-tfile mips-tdump"
5392 if test x$gnu_ld != xyes
5397 mips-*-riscos[56789]sysv4*)
5398 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5399 if test x$stabs = xyes; then
5400 tm_file="${tm_file} dbx.h"
5402 xmake_file=mips/x-sysv
5403 if test x$gas = xyes
5405 tmake_file=mips/t-svr4-gas
5407 tmake_file=mips/t-svr4
5408 extra_passes="mips-tfile mips-tdump"
5410 if test x$gnu_ld != xyes
5415 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5416 tm_file="mips/svr4-4.h ${tm_file}"
5417 if test x$stabs = xyes; then
5418 tm_file="${tm_file} dbx.h"
5421 xmake_file=mips/x-sysv
5422 if test x$gas = xyes
5424 tmake_file=mips/t-svr4-gas
5426 tmake_file=mips/t-svr4
5427 extra_passes="mips-tfile mips-tdump"
5429 if test x$gnu_ld != xyes
5434 mips-*-riscos[56789]sysv*)
5435 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5436 if test x$stabs = xyes; then
5437 tm_file="${tm_file} dbx.h"
5440 xmake_file=mips/x-sysv
5441 if test x$gas = xyes
5443 tmake_file=mips/t-svr3-gas
5445 tmake_file=mips/t-svr3
5446 extra_passes="mips-tfile mips-tdump"
5448 if test x$gnu_ld != xyes
5453 mips-*-sysv* | mips-*-riscos*sysv*)
5454 tm_file="mips/svr3-4.h ${tm_file}"
5455 if test x$stabs = xyes; then
5456 tm_file="${tm_file} dbx.h"
5459 xmake_file=mips/x-sysv
5460 if test x$gas = xyes
5462 tmake_file=mips/t-svr3-gas
5464 tmake_file=mips/t-svr3
5465 extra_passes="mips-tfile mips-tdump"
5467 if test x$gnu_ld != xyes
5472 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5473 tm_file=mips/mips-5.h
5474 if test x$stabs = xyes; then
5475 tm_file="${tm_file} dbx.h"
5477 if test x$gas = xyes
5479 tmake_file=mips/t-mips-gas
5481 extra_passes="mips-tfile mips-tdump"
5483 if test x$gnu_ld != xyes
5491 tm_file=mips/ecoffl.h
5492 if test x$stabs = xyes; then
5493 tm_file="${tm_file} dbx.h"
5495 tmake_file=mips/t-ecoff
5498 tm_file="gofast.h mips/ecoff.h"
5499 if test x$stabs = xyes; then
5500 tm_file="${tm_file} dbx.h"
5502 tmake_file=mips/t-ecoff
5505 tm_file="mips/elfl.h"
5506 tmake_file=mips/t-elf
5509 tm_file="mips/elf.h"
5510 tmake_file=mips/t-elf
5513 tm_file="mips/elfl64.h"
5514 tmake_file=mips/t-elf
5516 mips64orionel-*-elf*)
5517 tm_file="mips/elforion.h mips/elfl64.h"
5518 tmake_file=mips/t-elf
5521 tm_file="mips/elf64.h"
5522 tmake_file=mips/t-elf
5525 tm_file="mips/elforion.h mips/elf64.h"
5526 tmake_file=mips/t-elf
5528 mips64orion-*-rtems*)
5529 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5530 tmake_file="mips/t-elf t-rtems"
5533 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5534 tmake_file=mips/t-r3900
5537 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5538 tmake_file=mips/t-r3900
5540 mips-*-*) # Default MIPS RISC-OS 4.0.
5541 if test x$stabs = xyes; then
5542 tm_file="${tm_file} dbx.h"
5544 if test x$gas = xyes
5546 tmake_file=mips/t-mips-gas
5548 extra_passes="mips-tfile mips-tdump"
5550 if test x$gnu_ld != xyes
5558 tm_file="mn10200/mn10200.h"
5559 if test x$stabs = xyes
5561 tm_file="${tm_file} dbx.h"
5567 tm_file="mn10300/mn10300.h"
5568 if test x$stabs = xyes
5570 tm_file="${tm_file} dbx.h"
5575 tm_file=ns32k/encore.h
5579 tm_file=ns32k/sequent.h
5583 tm_file=ns32k/tek6100.h
5587 tm_file=ns32k/tek6200.h
5590 # This has not been updated to GCC 2.
5593 # xmake_file=ns32k/x-genix
5594 # tm_file=ns32k/genix.h
5598 tm_file=ns32k/merlin.h
5602 tm_file=ns32k/pc532-mach.h
5606 tm_file=ns32k/pc532-min.h
5607 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5612 tm_file=ns32k/netbsd.h
5613 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5614 # On NetBSD, the headers are already okay, except for math.h.
5619 tm_file="${tm_file} pdp11/2bsd.h"
5626 # This has not been updated to GCC 2.
5629 # xmake_file=pyr/x-pyr
5634 tm_file="svr4.h pj/linux.h ${tm_file}"
5639 tm_file="svr4.h pj/pjl.h ${tm_file}"
5646 xmake_file=romp/x-mach
5653 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5657 tm_file=rs6000/beos.h
5658 xm_file=rs6000/xm-beos.h
5659 tmake_file=rs6000/t-beos
5660 xmake_file=rs6000/x-beos
5662 powerpc-*-sysv* | powerpc-*-elf*)
5663 tm_file=rs6000/sysv4.h
5664 xm_file="rs6000/xm-sysv4.h"
5665 xm_defines="USG POSIX"
5666 extra_headers=ppc-asm.h
5667 if test x$gas = xyes
5669 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5671 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5673 xmake_file=rs6000/x-sysv4
5676 tm_file=rs6000/eabiaix.h
5677 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5678 extra_headers=ppc-asm.h
5681 tm_file=rs6000/eabisim.h
5682 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5683 extra_headers=ppc-asm.h
5686 tm_file=rs6000/eabi.h
5687 if test x$gas = xyes
5689 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5691 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5693 extra_headers=ppc-asm.h
5696 tm_file=rs6000/rtems.h
5697 if test x$gas = xyes
5699 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5701 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5703 extra_headers=ppc-asm.h
5705 powerpc-*-linux-gnulibc1)
5706 tm_file=rs6000/linux.h
5707 xm_file=rs6000/xm-sysv4.h
5708 out_file=rs6000/rs6000.c
5709 if test x$gas = xyes
5711 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5713 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5716 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5717 extra_headers=ppc-asm.h
5718 if test x$enable_threads = xyes; then
5722 powerpc-*-linux-gnu*)
5723 tm_file=rs6000/linux.h
5724 xm_file="rs6000/xm-sysv4.h"
5725 xm_defines="USG ${xm_defines}"
5726 out_file=rs6000/rs6000.c
5727 if test x$gas = xyes
5729 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5731 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5734 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5735 extra_headers=ppc-asm.h
5736 if test x$enable_threads = xyes; then
5740 powerpc-wrs-vxworks*)
5742 xm_file="rs6000/xm-sysv4.h"
5743 xm_defines="USG POSIX"
5744 tm_file=rs6000/vxppc.h
5745 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5746 extra_headers=ppc-asm.h
5747 thread_file='vxworks'
5749 powerpcle-*-sysv* | powerpcle-*-elf*)
5750 tm_file=rs6000/sysv4le.h
5751 xm_file="rs6000/xm-sysv4.h"
5752 xm_defines="USG POSIX"
5753 if test x$gas = xyes
5755 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5757 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5759 xmake_file=rs6000/x-sysv4
5760 extra_headers=ppc-asm.h
5762 powerpcle-*-eabisim*)
5763 tm_file=rs6000/eabilesim.h
5764 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5765 extra_headers=ppc-asm.h
5768 tm_file=rs6000/eabile.h
5769 if test x$gas = xyes
5771 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5773 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5775 extra_headers=ppc-asm.h
5777 powerpcle-*-winnt* )
5778 tm_file=rs6000/win-nt.h
5779 tmake_file=rs6000/t-winnt
5781 if test x$enable_threads = xyes; then
5784 extra_headers=ppc-asm.h
5786 powerpcle-*-pe | powerpcle-*-cygwin*)
5787 tm_file=rs6000/cygwin.h
5788 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5789 tmake_file=rs6000/t-winnt
5790 xmake_file=rs6000/x-cygwin
5792 if test x$enable_threads = xyes; then
5796 extra_headers=ppc-asm.h
5798 powerpcle-*-solaris2*)
5799 tm_file=rs6000/sol2.h
5800 xm_file="rs6000/xm-sysv4.h"
5801 xm_defines="USG POSIX"
5802 if test x$gas = xyes
5804 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5806 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5808 xmake_file=rs6000/x-sysv4
5809 extra_headers=ppc-asm.h
5811 rs6000-ibm-aix3.[01]*)
5812 tm_file=rs6000/aix31.h
5813 xmake_file=rs6000/x-aix31
5817 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5818 tm_file=rs6000/aix3newas.h
5819 if test x$host != x$target
5821 tmake_file=rs6000/t-xnewas
5823 tmake_file=rs6000/t-newas
5828 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5829 tm_file=rs6000/aix41.h
5830 if test x$host != x$target
5832 tmake_file=rs6000/t-xnewas
5834 tmake_file=rs6000/t-newas
5836 if test "$gnu_ld" = yes
5838 xmake_file=rs6000/x-aix41-gld
5840 xmake_file=rs6000/x-aix41
5845 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5846 tm_file=rs6000/aix43.h
5847 if test x$host != x$target
5849 tmake_file=rs6000/t-xaix43
5851 tmake_file=rs6000/t-aix43
5853 xmake_file=rs6000/x-aix43
5857 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5858 tm_file=rs6000/aix43.h
5859 if test x$host != x$target
5861 tmake_file=rs6000/t-xaix43
5863 tmake_file=rs6000/t-aix43
5865 xmake_file=rs6000/x-aix43
5878 tm_file=rs6000/mach.h
5879 xm_file="${xm_file} rs6000/xm-mach.h"
5880 xmake_file=rs6000/x-mach
5884 tm_file=rs6000/lynx.h
5885 xm_file=rs6000/xm-lynx.h
5886 tmake_file=rs6000/t-rs6000
5887 xmake_file=rs6000/x-lynx
5895 tmake_file="sh/t-sh t-rtems"
5896 tm_file=sh/rtemself.h
5900 tmake_file="sh/t-sh t-rtems"
5909 xm_file="xm-alloca.h ${xm_file}"
5912 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5913 tm_file=sparc/vxsparc.h
5914 tmake_file=sparc/t-vxsparc
5916 thread_file='vxworks'
5919 tmake_file=sparc/t-sparcbare
5920 tm_file="sparc/aout.h libgloss.h"
5923 tm_file=sparc/netbsd.h
5928 # we need collect2 until our bug is fixed...
5936 tmake_file=sparc/t-elf
5937 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5941 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5942 xm_file="${xm_file} sparc/xm-linux.h"
5943 tm_file=sparc/linux-aout.h
5947 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5948 xm_file="${xm_file} sparc/xm-linux.h"
5950 tm_file=sparc/linux.h
5951 tmake_file="t-linux t-linux-gnulibc1"
5952 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5956 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5957 xm_file="${xm_file} sparc/xm-linux.h"
5959 tm_file=sparc/linux.h
5960 tmake_file="t-linux"
5961 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5963 if test x$enable_threads = xyes; then
5969 if test x$gas = xyes
5971 tm_file=sparc/lynx.h
5973 tm_file=sparc/lynx-ng.h
5975 xm_file=sparc/xm-lynx.h
5976 tmake_file=sparc/t-sunos41
5980 tmake_file="sparc/t-sparcbare t-rtems"
5981 tm_file=sparc/rtems.h
5983 sparc-*-rtems*|sparc-*-rtemself*)
5984 tm_file="sparc/rtemself.h"
5985 tmake_file="sparc/t-elf t-rtems"
5986 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5990 sparcv9-*-solaris2*)
5991 if test x$gnu_ld = xyes
5993 tm_file=sparc/sol2-64.h
5995 tm_file=sparc/sol2-sld-64.h
5997 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5998 xm_defines="USG POSIX"
5999 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
6000 xmake_file=sparc/x-sysv4
6001 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6003 if test x${enable_threads} = x ; then
6004 enable_threads=$have_pthread_h
6005 if test x${enable_threads} = x ; then
6006 enable_threads=$have_thread_h
6009 if test x${enable_threads} = xyes ; then
6010 if test x${have_pthread_h} = xyes ; then
6013 thread_file='solaris'
6017 sparc-hal-solaris2*)
6018 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6019 xm_defines="USG POSIX"
6020 tm_file="sparc/sol2.h sparc/hal.h"
6021 tmake_file="sparc/t-halos sparc/t-sol2"
6022 xmake_file=sparc/x-sysv4
6023 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6032 thread_file='solaris'
6035 if test x$gnu_ld = xyes
6037 tm_file=sparc/sol2.h
6039 tm_file=sparc/sol2-sld.h
6041 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6042 xm_defines="USG POSIX"
6043 tmake_file=sparc/t-sol2
6044 xmake_file=sparc/x-sysv4
6045 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6047 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6049 if test x$gnu_ld = xyes
6051 tm_file=sparc/sol2-64.h
6053 tm_file=sparc/sol2-sld-64.h
6055 tmake_file="$tmake_file sparc/t-sol2-64"
6066 if test x${enable_threads} = x; then
6067 enable_threads=$have_pthread_h
6068 if test x${enable_threads} = x; then
6069 enable_threads=$have_thread_h
6072 if test x${enable_threads} = xyes; then
6073 if test x${have_pthread_h} = xyes; then
6076 thread_file='solaris'
6081 tm_file=sparc/sunos4.h
6082 tmake_file=sparc/t-sunos40
6086 tm_file=sparc/sunos4.h
6087 tmake_file=sparc/t-sunos41
6089 if test x$gas = xyes; then
6090 tm_file="${tm_file} sparc/sun4gas.h"
6094 tm_file=sparc/sun4o3.h
6098 tm_file=sparc/sysv4.h
6099 xm_file="sparc/xm-sysv4.h"
6100 xm_defines="USG POSIX"
6102 xmake_file=sparc/x-sysv4
6103 extra_parts="crtbegin.o crtend.o"
6106 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6107 xm_defines="USG POSIX"
6108 tm_file=sparc/vxsim.h
6109 tmake_file=sparc/t-vxsparc
6110 xmake_file=sparc/x-sysv4
6113 tm_file="sparc/splet.h libgloss.h"
6114 tmake_file=sparc/t-splet
6117 tm_file="sparc/litecoff.h libgloss.h"
6118 tmake_file=sparc/t-sparclite
6121 tm_file="sparc/lite.h aoutos.h libgloss.h"
6122 tmake_file=sparc/t-sparclite
6125 tm_file="sparc/liteelf.h"
6126 tmake_file=sparc/t-sparclite
6127 extra_parts="crtbegin.o crtend.o"
6130 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6131 tmake_file=sparc/t-sp86x
6134 tm_file="sparc/sp86x-elf.h"
6135 tmake_file=sparc/t-sp86x
6136 extra_parts="crtbegin.o crtend.o"
6139 tmake_file=sparc/t-sp64
6140 tm_file=sparc/sp64-aout.h
6143 tmake_file=sparc/t-sp64
6144 tm_file=sparc/sp64-elf.h
6145 extra_parts="crtbegin.o crtend.o"
6147 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
6148 tmake_file="t-linux sparc/t-linux64"
6149 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6150 tm_file=sparc/linux64.h
6152 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6154 if test x$enable_threads = xyes; then
6159 # This hasn't been upgraded to GCC 2.
6160 # tahoe-harris-*) # Harris tahoe, using COFF.
6161 # tm_file=tahoe/harris.h
6163 # tahoe-*-bsd*) # tahoe running BSD
6165 thumb-*-coff* | thumbel-*-coff*)
6167 out_file=arm/thumb.c
6168 xm_file=arm/xm-thumb.h
6169 md_file=arm/thumb.md
6170 tmake_file=arm/t-thumb
6172 thumb-*-elf* | thumbel-*-elf*)
6174 out_file=arm/thumb.c
6175 xm_file=arm/xm-thumb.h
6176 md_file=arm/thumb.md
6177 tmake_file=arm/t-thumb-elf
6180 tm_file=arm/linux-telf.h
6181 out_file=arm/thumb.c
6182 xm_file=arm/xm-thumb.h
6183 md_file=arm/thumb.md
6184 tmake_file=arm/t-thumb-linux
6187 tm_file=arm/uclinux-telf.h
6188 out_file=arm/thumb.c
6189 md_file=arm/thumb.md
6190 tmake_file=arm/t-thumb-linux
6191 xm_file=arm/xm-thumb.h
6195 out_file=arm/thumb.c
6196 xm_file=arm/xm-thumb.h
6197 md_file=arm/thumb.md
6198 tmake_file=arm/t-thumb
6199 thread_file='vxworks'
6203 out_file=arm/thumb.c
6204 xm_file=arm/xm-thumb.h
6205 md_file=arm/thumb.md
6206 tmake_file=arm/t-pe-thumb
6209 # This hasn't been upgraded to GCC 2.
6216 tm_file="v850/rtems.h"
6217 xm_file="v850/xm-v850.h"
6218 tmake_file="v850/t-v850 t-rtems"
6219 if test x$stabs = xyes
6221 tm_file="${tm_file} dbx.h"
6226 target_cpu_default="TARGET_CPU_generic"
6228 tm_file="v850/v850.h"
6229 xm_file="v850/xm-v850.h"
6230 tmake_file=v850/t-v850
6231 if test x$stabs = xyes
6233 tm_file="${tm_file} dbx.h"
6237 vax-*-bsd*) # vaxen running BSD
6241 vax-*-sysv*) # vaxen running system V
6242 tm_file="${tm_file} vax/vaxv.h"
6247 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6253 tmake_file="${tmake_file} vax/t-openbsd"
6255 vax-*-ultrix*) # vaxen running ultrix
6256 tm_file="${tm_file} vax/ultrix.h"
6260 vax-*-vms*) # vaxen running VMS
6261 xm_file=vax/xm-vms.h
6265 vax-*-*) # vax default entry
6269 xm_file="${xm_file} xm-svr3"
6273 echo "Configuration $machine not supported" 1>&2
6280 ;; # Existing GNU/Linux systems do not use the GNU setup.
6282 # On the GNU system, the setup is just about the same on
6283 # each different CPU. The specific machines that GNU
6284 # supports are matched above and just set $cpu_type.
6285 xm_file="xm-gnu.h ${xm_file}"
6286 tm_file=${cpu_type}/gnu.h
6287 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6288 # GNU always uses ELF.
6290 # GNU tools are the only tools.
6293 xmake_file=x-linux # These details are the same as Linux.
6294 tmake_file=t-gnu # These are not.
6297 xmake_try_sysv=x-sysv
6298 install_headers_dir=install-headers-cpio
6301 install_headers_dir=install-headers-cpio
6305 # Distinguish i[34567]86
6306 # Also, do not run mips-tfile on MIPS if using gas.
6307 # Process --with-cpu= for PowerPC/rs6000
6308 target_cpu_default2=
6311 target_cpu_default2=1
6314 case $target_alias in
6316 target_cpu_default2=4
6319 target_cpu_default2=2
6323 i686-*-* | i786-*-*)
6324 target_cpu_default2=3
6329 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6332 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6335 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6338 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6341 target_cpu_default2="MASK_CPU_EV5"
6345 if test x$gas = xyes
6347 if test "$target_cpu_default2" = ""
6349 target_cpu_default2="MASK_GAS"
6351 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6356 case "x$with_cpu" in
6359 target_cpu_default2="TARGET_CPU_generic"
6362 # Distinguish cores, and major variants
6363 # arm7m doesn't exist, but D & I don't affect code
6364 xarm[23678] | xarm250 | xarm[67][01]0 \
6365 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6366 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6367 | xstrongarm | xstrongarm110 | xstrongarm1100)
6368 target_cpu_default2="TARGET_CPU_$with_cpu"
6372 echo "--with-cpu must be passed a value" 1>&2
6377 if test x$pass2done = xyes
6379 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6386 mips*-*-ecoff* | mips*-*-elf*)
6387 if test x$gas = xyes
6389 if test x$gnu_ld = xyes
6391 target_cpu_default2=20
6393 target_cpu_default2=16
6398 if test x$gas = xyes
6400 target_cpu_default2=16
6403 powerpc*-*-* | rs6000-*-*)
6404 case "x$with_cpu" in
6408 xcommon | xpower | xpower2 | xpowerpc | xrios \
6409 | xrios1 | xrios2 | xrsc | xrsc1 \
6410 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6411 | xec603e | x740 | x750 | x401 \
6412 | x403 | x505 | x801 | x821 | x823 | x860)
6413 target_cpu_default2="\"$with_cpu\""
6417 echo "--with-cpu must be passed a value" 1>&2
6422 if test x$pass2done = xyes
6424 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6431 case ".$with_cpu" in
6433 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6435 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6436 target_cpu_default2="TARGET_CPU_$with_cpu"
6439 if test x$pass2done = xyes
6441 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6449 if test "$target_cpu_default2" != ""
6451 if test "$target_cpu_default" != ""
6453 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6455 target_cpu_default=$target_cpu_default2
6459 # No need for collect2 if we have the GNU linker.
6460 # Actually, there is now; GNU ld doesn't handle the EH info or
6461 # collecting for shared libraries.
6468 # Save data on machine being used to compile GCC in build_xm_file.
6469 # Save data on host machine in vars host_xm_file and host_xmake_file.
6470 if test x$pass1done = x
6472 if test x"$xm_file" = x
6473 then build_xm_file=$cpu_type/xm-$cpu_type.h
6474 else build_xm_file=$xm_file
6476 build_xm_defines=$xm_defines
6477 build_install_headers_dir=$install_headers_dir
6478 build_exeext=$exeext
6481 if test x$pass2done = x
6483 if test x"$xm_file" = x
6484 then host_xm_file=$cpu_type/xm-$cpu_type.h
6485 else host_xm_file=$xm_file
6487 host_xm_defines=$xm_defines
6488 if test x"$xmake_file" = x
6489 then xmake_file=$cpu_type/x-$cpu_type
6491 host_xmake_file="$xmake_file"
6492 host_truncate_target=$truncate_target
6493 host_extra_gcc_objs=$extra_gcc_objs
6494 host_extra_objs=$extra_host_objs
6501 extra_objs="${host_extra_objs} ${extra_objs}"
6503 # Default the target-machine variables that were not explicitly set.
6504 if test x"$tm_file" = x
6505 then tm_file=$cpu_type/$cpu_type.h; fi
6507 if test x$extra_headers = x
6508 then extra_headers=; fi
6510 if test x"$xm_file" = x
6511 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6513 if test x$md_file = x
6514 then md_file=$cpu_type/$cpu_type.md; fi
6516 if test x$out_file = x
6517 then out_file=$cpu_type/$cpu_type.c; fi
6519 if test x"$tmake_file" = x
6520 then tmake_file=$cpu_type/t-$cpu_type
6523 if test x"$dwarf2" = xyes
6524 then tm_file="tm-dwarf2.h $tm_file"
6527 if test x$float_format = x
6528 then float_format=i64
6531 if test $float_format = none
6532 then float_h_file=Makefile.in
6533 else float_h_file=float-$float_format.h
6536 # Handle cpp installation.
6537 if test x$enable_cpp != xno
6539 tmake_file="$tmake_file t-install-cpp"
6542 # Say what files are being used for the output code and MD file.
6543 echo "Using \`$srcdir/config/$out_file' to output insns."
6544 echo "Using \`$srcdir/config/$md_file' as machine description file."
6547 for f in $tm_file; do
6550 if test $count = ax; then
6551 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6553 echo "Using the following target machine macro files:"
6554 for f in $tm_file; do
6555 echo " $srcdir/config/$f"
6560 for f in $host_xm_file; do
6563 if test $count = ax; then
6564 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6566 echo "Using the following host machine macro files:"
6567 for f in $host_xm_file; do
6568 echo " $srcdir/config/$f"
6572 if test "$host_xm_file" != "$build_xm_file"; then
6574 for f in $build_xm_file; do
6577 if test $count = ax; then
6578 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6580 echo "Using the following build machine macro files:"
6581 for f in $build_xm_file; do
6582 echo " $srcdir/config/$f"
6587 if test x$thread_file = x; then
6588 if test x$target_thread_file != x; then
6589 thread_file=$target_thread_file
6591 thread_file='single'
6595 # Set up the header files.
6596 # $links is the list of header files to create.
6597 # $vars is the list of shell variables with file names to include.
6598 # auto-host.h is the file containing items generated by autoconf and is
6599 # the first file included by config.h.
6601 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6603 # If host=build, it is correct to have hconfig include auto-host.h
6604 # as well. If host!=build, we are in error and need to do more
6605 # work to find out the build config parameters.
6606 if test x$host = x$build
6608 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6610 # We create a subdir, then run autoconf in the subdir.
6611 # To prevent recursion we set host and build for the new
6612 # invocation of configure to the build for this invocation
6619 /*) realsrcdir=${srcdir};;
6620 *) realsrcdir=../${srcdir};;
6622 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6623 --target=$target --host=$build --build=$build
6625 # We just finished tests for the build machine, so rename
6626 # the file auto-build.h in the gcc directory.
6627 mv auto-host.h ../auto-build.h
6630 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6633 xm_file="gansidecl.h ${xm_file}"
6634 tm_file="gansidecl.h ${tm_file}"
6636 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6637 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6638 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6641 if test -f config.status; then mv -f config.status config.bak; fi
6644 while test -n "$vars"
6646 set $vars; var=$1; shift; vars=$*
6647 set $links; link=$1; shift; links=$*
6648 set $defines; define=$1; shift; defines=$*
6651 # Make sure the file is created, even if it is empty.
6654 # Define TARGET_CPU_DEFAULT if the system wants one.
6655 # This substitutes for lots of *.h files.
6656 if test "$target_cpu_default" != "" -a $link = tm.h
6658 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6661 for file in `eval echo '$'$var`; do
6666 echo '#ifdef IN_GCC' >>$link
6669 echo "#include \"$file\"" >>$link
6674 echo '#endif' >>$link
6679 for def in `eval echo '$'$define`; do
6680 echo "#ifndef $def" >>$link
6681 echo "#define $def" >>$link
6682 echo "#endif" >>$link
6686 # Truncate the target if necessary
6687 if test x$host_truncate_target != x; then
6688 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6691 # Get the version trigger filename from the toplevel
6692 if test "${with_gcc_version_trigger+set}" = set; then
6693 gcc_version_trigger=$with_gcc_version_trigger
6695 gcc_version_trigger=${srcdir}/version.c
6697 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6699 # Internationalization
6701 VERSION="$gcc_version"
6702 cat >> confdefs.h <<EOF
6703 #define PACKAGE "$PACKAGE"
6706 cat >> confdefs.h <<EOF
6707 #define VERSION "$VERSION"
6715 # NLS support is still experimental, so disable it by default for now.
6716 # Check whether --enable-nls or --disable-nls was given.
6717 if test "${enable_nls+set}" = set; then
6718 enableval="$enable_nls"
6726 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6727 echo "configure:6728: checking for strerror in -lcposix" >&5
6728 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6732 ac_save_LIBS="$LIBS"
6733 LIBS="-lcposix $LIBS"
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6748 eval "ac_cv_lib_$ac_lib_var=yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 eval "ac_cv_lib_$ac_lib_var=no"
6756 LIBS="$ac_save_LIBS"
6759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6761 LIBS="$LIBS -lcposix"
6763 echo "$ac_t""no" 1>&6
6768 echo $ac_n "checking for working const""... $ac_c" 1>&6
6769 echo "configure:6770: checking for working const" >&5
6770 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6773 cat > conftest.$ac_ext <<EOF
6774 #line 6775 "configure"
6775 #include "confdefs.h"
6779 /* Ultrix mips cc rejects this. */
6780 typedef int charset[2]; const charset x;
6781 /* SunOS 4.1.1 cc rejects this. */
6782 char const *const *ccp;
6784 /* NEC SVR4.0.2 mips cc rejects this. */
6785 struct point {int x, y;};
6786 static struct point const zero = {0,0};
6787 /* AIX XL C 1.02.0.0 rejects this.
6788 It does not let you subtract one const X* pointer from another in an arm
6789 of an if-expression whose if-part is not a constant expression */
6790 const char *g = "string";
6791 ccp = &g + (g ? g-g : 0);
6792 /* HPUX 7.0 cc rejects these. */
6795 ccp = (char const *const *) p;
6796 { /* SCO 3.2v4 cc rejects this. */
6798 char const *s = 0 ? (char *) 0 : (char const *) 0;
6802 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6804 const int *foo = &x[0];
6807 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6808 typedef const int *iptr;
6812 { /* AIX XL C 1.02.0.0 rejects this saying
6813 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6814 struct s { int j; const int *ap[3]; };
6815 struct s *b; b->j = 5;
6817 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6823 if { (eval echo configure:6824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6827 echo "configure: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6835 echo "$ac_t""$ac_cv_c_const" 1>&6
6836 if test $ac_cv_c_const = no; then
6837 cat >> confdefs.h <<\EOF
6843 echo $ac_n "checking for inline""... $ac_c" 1>&6
6844 echo "configure:6845: checking for inline" >&5
6845 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6846 echo $ac_n "(cached) $ac_c" 1>&6
6849 for ac_kw in inline __inline__ __inline; do
6850 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6858 if { (eval echo configure:6859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6860 ac_cv_c_inline=$ac_kw; break
6862 echo "configure: failed program was:" >&5
6863 cat conftest.$ac_ext >&5
6870 echo "$ac_t""$ac_cv_c_inline" 1>&6
6871 case "$ac_cv_c_inline" in
6873 no) cat >> confdefs.h <<\EOF
6877 *) cat >> confdefs.h <<EOF
6878 #define inline $ac_cv_c_inline
6883 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6884 echo "configure:6885: checking for off_t" >&5
6885 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6886 echo $ac_n "(cached) $ac_c" 1>&6
6888 cat > conftest.$ac_ext <<EOF
6889 #line 6890 "configure"
6890 #include "confdefs.h"
6891 #include <sys/types.h>
6897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6898 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6900 ac_cv_type_off_t=yes
6908 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6909 if test $ac_cv_type_off_t = no; then
6910 cat >> confdefs.h <<\EOF
6916 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6917 echo "configure:6918: checking for size_t" >&5
6918 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6919 echo $ac_n "(cached) $ac_c" 1>&6
6921 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure"
6923 #include "confdefs.h"
6924 #include <sys/types.h>
6930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6931 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6933 ac_cv_type_size_t=yes
6936 ac_cv_type_size_t=no
6941 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6942 if test $ac_cv_type_size_t = no; then
6943 cat >> confdefs.h <<\EOF
6944 #define size_t unsigned
6949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6950 # for constant arguments. Useless!
6951 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6952 echo "configure:6953: checking for working alloca.h" >&5
6953 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6961 char *p = alloca(2 * sizeof(int));
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6966 ac_cv_header_alloca_h=yes
6968 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6971 ac_cv_header_alloca_h=no
6976 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6977 if test $ac_cv_header_alloca_h = yes; then
6978 cat >> confdefs.h <<\EOF
6979 #define HAVE_ALLOCA_H 1
6984 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6985 echo "configure:6986: checking for alloca" >&5
6986 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6987 echo $ac_n "(cached) $ac_c" 1>&6
6989 cat > conftest.$ac_ext <<EOF
6990 #line 6991 "configure"
6991 #include "confdefs.h"
6994 # define alloca __builtin_alloca
6997 # include <malloc.h>
6998 # define alloca _alloca
7001 # include <alloca.h>
7006 # ifndef alloca /* predefined by HP cc +Olibcalls */
7015 char *p = (char *) alloca(1);
7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7020 ac_cv_func_alloca_works=yes
7022 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7025 ac_cv_func_alloca_works=no
7030 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7031 if test $ac_cv_func_alloca_works = yes; then
7032 cat >> confdefs.h <<\EOF
7033 #define HAVE_ALLOCA 1
7038 if test $ac_cv_func_alloca_works = no; then
7039 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7040 # that cause trouble. Some versions do not even contain alloca or
7041 # contain a buggy version. If you still want to use their alloca,
7042 # use ar to extract alloca.o from them instead of compiling alloca.c.
7043 ALLOCA=alloca.${ac_objext}
7044 cat >> confdefs.h <<\EOF
7049 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7050 echo "configure:7051: checking whether alloca needs Cray hooks" >&5
7051 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7057 #if defined(CRAY) && ! defined(CRAY2)
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 egrep "webecray" >/dev/null 2>&1; then
7076 echo "$ac_t""$ac_cv_os_cray" 1>&6
7077 if test $ac_cv_os_cray = yes; then
7078 for ac_func in _getb67 GETB67 getb67; do
7079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7080 echo "configure:7081: checking for $ac_func" >&5
7081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7082 echo $ac_n "(cached) $ac_c" 1>&6
7084 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7087 /* System header to define __stub macros and hopefully few prototypes,
7088 which can conflict with char $ac_func(); below. */
7090 /* Override any gcc2 internal prototype to avoid an error. */
7091 /* We use char because int might match the return type of a gcc2
7092 builtin and then its argument prototype would still apply. */
7097 /* The GNU C library defines this for functions which it implements
7098 to always fail with ENOSYS. Some functions are actually named
7099 something starting with __ and the normal name is an alias. */
7100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7108 if { (eval echo configure:7109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7110 eval "ac_cv_func_$ac_func=yes"
7112 echo "configure: failed program was:" >&5
7113 cat conftest.$ac_ext >&5
7115 eval "ac_cv_func_$ac_func=no"
7120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7121 echo "$ac_t""yes" 1>&6
7122 cat >> confdefs.h <<EOF
7123 #define CRAY_STACKSEG_END $ac_func
7128 echo "$ac_t""no" 1>&6
7134 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7135 echo "configure:7136: checking stack direction for C alloca" >&5
7136 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 if test "$cross_compiling" = yes; then
7140 ac_cv_c_stack_direction=0
7142 cat > conftest.$ac_ext <<EOF
7143 #line 7144 "configure"
7144 #include "confdefs.h"
7145 find_stack_direction ()
7147 static char *addr = 0;
7152 return find_stack_direction ();
7155 return (&dummy > addr) ? 1 : -1;
7159 exit (find_stack_direction() < 0);
7162 if { (eval echo configure:7163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7164 ac_cv_c_stack_direction=1
7166 echo "configure: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7169 ac_cv_c_stack_direction=-1
7176 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7177 cat >> confdefs.h <<EOF
7178 #define STACK_DIRECTION $ac_cv_c_stack_direction
7184 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7185 unistd.h sys/param.h
7187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7189 echo "configure:7190: checking for $ac_hdr" >&5
7190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7193 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7199 { (eval echo configure:7200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7201 if test -z "$ac_err"; then
7203 eval "ac_cv_header_$ac_safe=yes"
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 eval "ac_cv_header_$ac_safe=no"
7213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7214 echo "$ac_t""yes" 1>&6
7215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7216 cat >> confdefs.h <<EOF
7217 #define $ac_tr_hdr 1
7221 echo "$ac_t""no" 1>&6
7225 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7226 strdup __argz_count __argz_stringify __argz_next
7228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7229 echo "configure:7230: checking for $ac_func" >&5
7230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7231 echo $ac_n "(cached) $ac_c" 1>&6
7233 cat > conftest.$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7236 /* System header to define __stub macros and hopefully few prototypes,
7237 which can conflict with char $ac_func(); below. */
7239 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7246 /* The GNU C library defines this for functions which it implements
7247 to always fail with ENOSYS. Some functions are actually named
7248 something starting with __ and the normal name is an alias. */
7249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7259 eval "ac_cv_func_$ac_func=yes"
7261 echo "configure: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7264 eval "ac_cv_func_$ac_func=no"
7269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7270 echo "$ac_t""yes" 1>&6
7271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7272 cat >> confdefs.h <<EOF
7273 #define $ac_tr_func 1
7277 echo "$ac_t""no" 1>&6
7282 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7283 for ac_func in stpcpy
7285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7286 echo "configure:7287: checking for $ac_func" >&5
7287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7290 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure"
7292 #include "confdefs.h"
7293 /* System header to define __stub macros and hopefully few prototypes,
7294 which can conflict with char $ac_func(); below. */
7296 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7303 /* The GNU C library defines this for functions which it implements
7304 to always fail with ENOSYS. Some functions are actually named
7305 something starting with __ and the normal name is an alias. */
7306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7314 if { (eval echo configure:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7316 eval "ac_cv_func_$ac_func=yes"
7318 echo "configure: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7321 eval "ac_cv_func_$ac_func=no"
7326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7327 echo "$ac_t""yes" 1>&6
7328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7329 cat >> confdefs.h <<EOF
7330 #define $ac_tr_func 1
7334 echo "$ac_t""no" 1>&6
7339 if test "${ac_cv_func_stpcpy}" = "yes"; then
7340 cat >> confdefs.h <<\EOF
7341 #define HAVE_STPCPY 1
7346 if test $ac_cv_header_locale_h = yes; then
7347 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7348 echo "configure:7349: checking for LC_MESSAGES" >&5
7349 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7360 if { (eval echo configure:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7362 am_cv_val_LC_MESSAGES=yes
7364 echo "configure: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7367 am_cv_val_LC_MESSAGES=no
7372 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7373 if test $am_cv_val_LC_MESSAGES = yes; then
7374 cat >> confdefs.h <<\EOF
7375 #define HAVE_LC_MESSAGES 1
7380 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7381 echo "configure:7382: checking whether NLS is requested" >&5
7382 # Check whether --enable-nls or --disable-nls was given.
7383 if test "${enable_nls+set}" = set; then
7384 enableval="$enable_nls"
7390 echo "$ac_t""$USE_NLS" 1>&6
7393 USE_INCLUDED_LIBINTL=no
7395 if test "$USE_NLS" = "yes"; then
7396 cat >> confdefs.h <<\EOF
7397 #define ENABLE_NLS 1
7400 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7401 echo "configure:7402: checking whether included gettext is requested" >&5
7402 # Check whether --with-included-gettext or --without-included-gettext was given.
7403 if test "${with_included_gettext+set}" = set; then
7404 withval="$with_included_gettext"
7405 nls_cv_force_use_gnu_gettext=$withval
7407 nls_cv_force_use_gnu_gettext=no
7410 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7412 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7413 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7415 nls_cv_header_libgt=
7418 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7419 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7420 echo "configure:7421: checking for libintl.h" >&5
7421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7422 echo $ac_n "(cached) $ac_c" 1>&6
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 #include <libintl.h>
7429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7430 { (eval echo configure:7431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7432 if test -z "$ac_err"; then
7434 eval "ac_cv_header_$ac_safe=yes"
7437 echo "configure: failed program was:" >&5
7438 cat conftest.$ac_ext >&5
7440 eval "ac_cv_header_$ac_safe=no"
7444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6
7446 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7447 echo "configure:7448: checking for gettext in libc" >&5
7448 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7451 cat > conftest.$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 #include <libintl.h>
7456 return (int) gettext ("")
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7461 gt_cv_func_gettext_libc=yes
7463 echo "configure: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7466 gt_cv_func_gettext_libc=no
7471 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7473 if test "$gt_cv_func_gettext_libc" != "yes"; then
7474 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7475 echo "configure:7476: checking for bindtextdomain in -lintl" >&5
7476 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7478 echo $ac_n "(cached) $ac_c" 1>&6
7480 ac_save_LIBS="$LIBS"
7482 cat > conftest.$ac_ext <<EOF
7483 #line 7484 "configure"
7484 #include "confdefs.h"
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 /* We use char because int might match the return type of a gcc2
7487 builtin and then its argument prototype would still apply. */
7488 char bindtextdomain();
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7496 eval "ac_cv_lib_$ac_lib_var=yes"
7498 echo "configure: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7501 eval "ac_cv_lib_$ac_lib_var=no"
7504 LIBS="$ac_save_LIBS"
7507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7508 echo "$ac_t""yes" 1>&6
7509 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7510 echo "configure:7511: checking for gettext in libintl" >&5
7511 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7514 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7515 echo "configure:7516: checking for gettext in -lintl" >&5
7516 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7518 echo $ac_n "(cached) $ac_c" 1>&6
7520 ac_save_LIBS="$LIBS"
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 /* Override any gcc2 internal prototype to avoid an error. */
7526 /* We use char because int might match the return type of a gcc2
7527 builtin and then its argument prototype would still apply. */
7534 if { (eval echo configure:7535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7536 eval "ac_cv_lib_$ac_lib_var=yes"
7538 echo "configure: failed program was:" >&5
7539 cat conftest.$ac_ext >&5
7541 eval "ac_cv_lib_$ac_lib_var=no"
7544 LIBS="$ac_save_LIBS"
7547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7548 echo "$ac_t""yes" 1>&6
7549 gt_cv_func_gettext_libintl=yes
7551 echo "$ac_t""no" 1>&6
7552 gt_cv_func_gettext_libintl=no
7557 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7559 echo "$ac_t""no" 1>&6
7564 if test "$gt_cv_func_gettext_libc" = "yes" \
7565 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7566 cat >> confdefs.h <<\EOF
7567 #define HAVE_GETTEXT 1
7570 # Extract the first word of "msgfmt", so it can be a program name with args.
7571 set dummy msgfmt; ac_word=$2
7572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7573 echo "configure:7574: checking for $ac_word" >&5
7574 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7579 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7583 for ac_dir in $PATH; do
7584 test -z "$ac_dir" && ac_dir=.
7585 if test -f $ac_dir/$ac_word; then
7586 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7587 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7593 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7597 MSGFMT="$ac_cv_path_MSGFMT"
7598 if test -n "$MSGFMT"; then
7599 echo "$ac_t""$MSGFMT" 1>&6
7601 echo "$ac_t""no" 1>&6
7603 if test "$MSGFMT" != "no"; then
7604 for ac_func in dcgettext
7606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7607 echo "configure:7608: checking for $ac_func" >&5
7608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7611 cat > conftest.$ac_ext <<EOF
7612 #line 7613 "configure"
7613 #include "confdefs.h"
7614 /* System header to define __stub macros and hopefully few prototypes,
7615 which can conflict with char $ac_func(); below. */
7617 /* Override any gcc2 internal prototype to avoid an error. */
7618 /* We use char because int might match the return type of a gcc2
7619 builtin and then its argument prototype would still apply. */
7624 /* The GNU C library defines this for functions which it implements
7625 to always fail with ENOSYS. Some functions are actually named
7626 something starting with __ and the normal name is an alias. */
7627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7635 if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7637 eval "ac_cv_func_$ac_func=yes"
7639 echo "configure: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7642 eval "ac_cv_func_$ac_func=no"
7647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7648 echo "$ac_t""yes" 1>&6
7649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7650 cat >> confdefs.h <<EOF
7651 #define $ac_tr_func 1
7655 echo "$ac_t""no" 1>&6
7659 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7660 set dummy gmsgfmt; ac_word=$2
7661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7662 echo "configure:7663: checking for $ac_word" >&5
7663 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7668 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7671 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7676 for ac_dir in $ac_dummy; do
7677 test -z "$ac_dir" && ac_dir=.
7678 if test -f $ac_dir/$ac_word; then
7679 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7684 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7688 GMSGFMT="$ac_cv_path_GMSGFMT"
7689 if test -n "$GMSGFMT"; then
7690 echo "$ac_t""$GMSGFMT" 1>&6
7692 echo "$ac_t""no" 1>&6
7695 # Extract the first word of "xgettext", so it can be a program name with args.
7696 set dummy xgettext; ac_word=$2
7697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7698 echo "configure:7699: checking for $ac_word" >&5
7699 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7700 echo $ac_n "(cached) $ac_c" 1>&6
7704 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7708 for ac_dir in $PATH; do
7709 test -z "$ac_dir" && ac_dir=.
7710 if test -f $ac_dir/$ac_word; then
7711 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7712 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7718 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7722 XGETTEXT="$ac_cv_path_XGETTEXT"
7723 if test -n "$XGETTEXT"; then
7724 echo "$ac_t""$XGETTEXT" 1>&6
7726 echo "$ac_t""no" 1>&6
7729 cat > conftest.$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7734 extern int _nl_msg_cat_cntr;
7735 return _nl_msg_cat_cntr
7738 if { (eval echo configure:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7755 echo "$ac_t""no" 1>&6
7759 if test "$CATOBJEXT" = "NONE"; then
7760 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7761 echo "configure:7762: checking whether catgets can be used" >&5
7762 # Check whether --with-catgets or --without-catgets was given.
7763 if test "${with_catgets+set}" = set; then
7764 withval="$with_catgets"
7765 nls_cv_use_catgets=$withval
7767 nls_cv_use_catgets=no
7770 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7772 if test "$nls_cv_use_catgets" = "yes"; then
7773 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7774 echo "configure:7775: checking for main in -li" >&5
7775 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7779 ac_save_LIBS="$LIBS"
7781 cat > conftest.$ac_ext <<EOF
7782 #line 7783 "configure"
7783 #include "confdefs.h"
7789 if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7791 eval "ac_cv_lib_$ac_lib_var=yes"
7793 echo "configure: failed program was:" >&5
7794 cat conftest.$ac_ext >&5
7796 eval "ac_cv_lib_$ac_lib_var=no"
7799 LIBS="$ac_save_LIBS"
7802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7803 echo "$ac_t""yes" 1>&6
7804 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7805 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7806 cat >> confdefs.h <<EOF
7807 #define $ac_tr_lib 1
7813 echo "$ac_t""no" 1>&6
7816 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7817 echo "configure:7818: checking for catgets" >&5
7818 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7824 /* System header to define __stub macros and hopefully few prototypes,
7825 which can conflict with char catgets(); below. */
7827 /* Override any gcc2 internal prototype to avoid an error. */
7828 /* We use char because int might match the return type of a gcc2
7829 builtin and then its argument prototype would still apply. */
7834 /* The GNU C library defines this for functions which it implements
7835 to always fail with ENOSYS. Some functions are actually named
7836 something starting with __ and the normal name is an alias. */
7837 #if defined (__stub_catgets) || defined (__stub___catgets)
7845 if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7847 eval "ac_cv_func_catgets=yes"
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7852 eval "ac_cv_func_catgets=no"
7857 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7858 echo "$ac_t""yes" 1>&6
7859 cat >> confdefs.h <<\EOF
7860 #define HAVE_CATGETS 1
7863 INTLOBJS="\$(CATOBJS)"
7864 # Extract the first word of "gencat", so it can be a program name with args.
7865 set dummy gencat; ac_word=$2
7866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7867 echo "configure:7868: checking for $ac_word" >&5
7868 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7873 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7876 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7881 for ac_dir in $ac_dummy; do
7882 test -z "$ac_dir" && ac_dir=.
7883 if test -f $ac_dir/$ac_word; then
7884 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7889 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7893 GENCAT="$ac_cv_path_GENCAT"
7894 if test -n "$GENCAT"; then
7895 echo "$ac_t""$GENCAT" 1>&6
7897 echo "$ac_t""no" 1>&6
7899 if test "$GENCAT" != "no"; then
7900 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7901 set dummy gmsgfmt; ac_word=$2
7902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7903 echo "configure:7904: checking for $ac_word" >&5
7904 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7905 echo $ac_n "(cached) $ac_c" 1>&6
7909 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7912 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7917 for ac_dir in $ac_dummy; do
7918 test -z "$ac_dir" && ac_dir=.
7919 if test -f $ac_dir/$ac_word; then
7920 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7925 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7929 GMSGFMT="$ac_cv_path_GMSGFMT"
7930 if test -n "$GMSGFMT"; then
7931 echo "$ac_t""$GMSGFMT" 1>&6
7933 echo "$ac_t""no" 1>&6
7936 if test "$GMSGFMT" = "no"; then
7937 # Extract the first word of "msgfmt", so it can be a program name with args.
7938 set dummy msgfmt; ac_word=$2
7939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7940 echo "configure:7941: checking for $ac_word" >&5
7941 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7942 echo $ac_n "(cached) $ac_c" 1>&6
7946 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7950 for ac_dir in $PATH; do
7951 test -z "$ac_dir" && ac_dir=.
7952 if test -f $ac_dir/$ac_word; then
7953 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7954 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7960 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7964 GMSGFMT="$ac_cv_path_GMSGFMT"
7965 if test -n "$GMSGFMT"; then
7966 echo "$ac_t""$GMSGFMT" 1>&6
7968 echo "$ac_t""no" 1>&6
7972 # Extract the first word of "xgettext", so it can be a program name with args.
7973 set dummy xgettext; ac_word=$2
7974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7975 echo "configure:7976: checking for $ac_word" >&5
7976 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7977 echo $ac_n "(cached) $ac_c" 1>&6
7981 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7985 for ac_dir in $PATH; do
7986 test -z "$ac_dir" && ac_dir=.
7987 if test -f $ac_dir/$ac_word; then
7988 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7989 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7995 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7999 XGETTEXT="$ac_cv_path_XGETTEXT"
8000 if test -n "$XGETTEXT"; then
8001 echo "$ac_t""$XGETTEXT" 1>&6
8003 echo "$ac_t""no" 1>&6
8006 USE_INCLUDED_LIBINTL=yes
8010 INTLDEPS='$(top_builddir)/intl/libintl.a'
8012 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8013 nls_cv_header_intl=intl/libintl.h
8014 nls_cv_header_libgt=intl/libgettext.h
8017 echo "$ac_t""no" 1>&6
8023 if test "$CATOBJEXT" = "NONE"; then
8024 nls_cv_use_gnu_gettext=yes
8028 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8029 INTLOBJS="\$(GETTOBJS)"
8030 # Extract the first word of "msgfmt", so it can be a program name with args.
8031 set dummy msgfmt; ac_word=$2
8032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8033 echo "configure:8034: checking for $ac_word" >&5
8034 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8035 echo $ac_n "(cached) $ac_c" 1>&6
8039 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8043 for ac_dir in $PATH; do
8044 test -z "$ac_dir" && ac_dir=.
8045 if test -f $ac_dir/$ac_word; then
8046 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8047 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8053 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8057 MSGFMT="$ac_cv_path_MSGFMT"
8058 if test -n "$MSGFMT"; then
8059 echo "$ac_t""$MSGFMT" 1>&6
8061 echo "$ac_t""no" 1>&6
8064 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8065 set dummy gmsgfmt; ac_word=$2
8066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8067 echo "configure:8068: checking for $ac_word" >&5
8068 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8069 echo $ac_n "(cached) $ac_c" 1>&6
8073 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8076 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8081 for ac_dir in $ac_dummy; do
8082 test -z "$ac_dir" && ac_dir=.
8083 if test -f $ac_dir/$ac_word; then
8084 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8089 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8093 GMSGFMT="$ac_cv_path_GMSGFMT"
8094 if test -n "$GMSGFMT"; then
8095 echo "$ac_t""$GMSGFMT" 1>&6
8097 echo "$ac_t""no" 1>&6
8100 # Extract the first word of "xgettext", so it can be a program name with args.
8101 set dummy xgettext; ac_word=$2
8102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8103 echo "configure:8104: checking for $ac_word" >&5
8104 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8109 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8113 for ac_dir in $PATH; do
8114 test -z "$ac_dir" && ac_dir=.
8115 if test -f $ac_dir/$ac_word; then
8116 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8117 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8123 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8127 XGETTEXT="$ac_cv_path_XGETTEXT"
8128 if test -n "$XGETTEXT"; then
8129 echo "$ac_t""$XGETTEXT" 1>&6
8131 echo "$ac_t""no" 1>&6
8135 USE_INCLUDED_LIBINTL=yes
8139 INTLDEPS='$(top_builddir)/intl/libintl.a'
8141 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8142 nls_cv_header_intl=intl/libintl.h
8143 nls_cv_header_libgt=intl/libgettext.h
8146 if test "$XGETTEXT" != ":"; then
8147 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8150 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8155 # We need to process the po/ directory.
8159 nls_cv_header_intl=intl/libintl.h
8160 nls_cv_header_libgt=intl/libgettext.h
8166 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8167 # because some of the sources are only built for this goal.
8168 if test "$PACKAGE" = gettext; then
8170 USE_INCLUDED_LIBINTL=yes
8173 for lang in $ALL_LINGUAS; do
8174 GMOFILES="$GMOFILES $lang.gmo"
8175 POFILES="$POFILES $lang.po"
8191 if test "x$CATOBJEXT" != "x"; then
8192 if test "x$ALL_LINGUAS" = "x"; then
8195 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8196 echo "configure:8197: checking for catalogs to be installed" >&5
8198 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8199 case "$ALL_LINGUAS" in
8200 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8203 LINGUAS=$NEW_LINGUAS
8204 echo "$ac_t""$LINGUAS" 1>&6
8207 if test -n "$LINGUAS"; then
8208 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8212 if test $ac_cv_header_locale_h = yes; then
8213 INCLUDE_LOCALE_H="#include <locale.h>"
8216 /* The system does not provide the header <locale.h>. Take care yourself. */"
8220 test -d intl || mkdir intl
8221 if test "$CATOBJEXT" = ".cat"; then
8222 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8223 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8224 echo "configure:8225: checking for linux/version.h" >&5
8225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 #include <linux/version.h>
8233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8234 { (eval echo configure:8235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8236 if test -z "$ac_err"; then
8238 eval "ac_cv_header_$ac_safe=yes"
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8244 eval "ac_cv_header_$ac_safe=no"
8248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8249 echo "$ac_t""yes" 1>&6
8252 echo "$ac_t""no" 1>&6
8257 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8259 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8260 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8262 if test "$PACKAGE" = "gettext"; then
8273 if test -n "$ac_aux_dir"; then
8274 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8276 if test -z "$MKINSTALLDIRS"; then
8277 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8284 test -d po || mkdir po
8285 if test "x$srcdir" != "x."; then
8286 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8287 posrcprefix="$srcdir/"
8289 posrcprefix="../$srcdir/"
8295 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8296 < $srcdir/po/POTFILES.in > po/POTFILES
8298 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8300 # Windows32 Registry support for specifying GCC installation paths.
8301 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8302 if test "${enable_win32_registry+set}" = set; then
8303 enableval="$enable_win32_registry"
8308 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8309 echo "configure:8310: checking whether windows registry support is requested" >&5
8310 if test x$enable_win32_registry != xno; then
8311 cat >> confdefs.h <<\EOF
8312 #define ENABLE_WIN32_REGISTRY 1
8315 echo "$ac_t""yes" 1>&6
8317 echo "$ac_t""no" 1>&6
8320 # Check if user specified a different registry key.
8321 case x${enable_win32_registry} in
8324 gcc_cv_win32_registry_key="$VERSION"
8327 # no registry lookup.
8328 gcc_cv_win32_registry_key=''
8331 # user-specified key.
8332 gcc_cv_win32_registry_key="$enable_win32_registry"
8336 if test x$enable_win32_registry != xno; then
8337 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8338 echo "configure:8339: checking registry key on windows hosts" >&5
8339 cat >> confdefs.h <<EOF
8340 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8343 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8346 # Get an absolute path to the GCC top-level source directory
8352 # Conditionalize the makefile for this host machine.
8353 # Make-host contains the concatenation of all host makefile fragments
8354 # [there can be more than one]. This file is built by configure.frag.
8355 host_overrides=Make-host
8356 dep_host_xmake_file=
8357 for f in .. ${host_xmake_file}
8359 if test -f ${srcdir}/config/$f
8361 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8365 # Conditionalize the makefile for this target machine.
8366 # Make-target contains the concatenation of all host makefile fragments
8367 # [there can be more than one]. This file is built by configure.frag.
8368 target_overrides=Make-target
8370 for f in .. ${tmake_file}
8372 if test -f ${srcdir}/config/$f
8374 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8378 # If the host doesn't support symlinks, modify CC in
8379 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8380 # Otherwise, we can use "CC=$(CC)".
8382 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8384 cc_set_by_configure="\$(CC)"
8385 quoted_cc_set_by_configure="\$(CC)"
8386 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8389 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8391 symbolic_link="cp -p"
8395 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8396 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8397 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8401 out_object_file=`basename $out_file .c`.o
8404 for f in $tm_file; do
8407 tm_file_list="${tm_file_list} $f" ;;
8408 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8413 for f in $host_xm_file; do
8415 auto-host.h | gansidecl.h | hwint.h )
8416 host_xm_file_list="${host_xm_file_list} $f" ;;
8417 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8422 for f in $build_xm_file; do
8424 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8425 build_xm_file_list="${build_xm_file_list} $f" ;;
8426 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8430 # Define macro CROSS_COMPILE in compilation
8431 # if this is a cross-compiler.
8432 # Also use all.cross instead of all.internal
8433 # and add cross-make to Makefile.
8434 cross_overrides="/dev/null"
8435 if test x$host != x$target
8437 cross_defines="CROSS=-DCROSS_COMPILE"
8438 cross_overrides="${topdir}/cross-make"
8441 # When building gcc with a cross-compiler, we need to fix a few things.
8442 # This must come after cross-make as we want all.build to override
8444 build_overrides="/dev/null"
8445 if test x$build != x$host
8447 build_overrides="${topdir}/build-make"
8450 # Expand extra_headers to include complete path.
8451 # This substitutes for lots of t-* files.
8453 if test "x$extra_headers" = x
8456 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8457 for file in $extra_headers;
8459 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8463 if test x$use_collect2 = xno; then
8467 # Add a definition of USE_COLLECT2 if system wants one.
8468 # Also tell toplev.c what to do.
8469 # This substitutes for lots of t-* files.
8470 if test x$use_collect2 = x
8475 will_use_collect2="collect2"
8476 maybe_use_collect2="-DUSE_COLLECT2"
8480 # Set MD_DEPS if the real md file is in md.pre-cpp.
8481 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8482 # for line oriented comments, so we must always use a GNU cpp. If
8483 # building gcc with a cross compiler, use the cross compiler just
8484 # built. Otherwise, we can use the cpp just built.
8486 if test "x$md_cppflags" = x
8488 md_file_sub=$srcdir/config/$md_file
8493 # If we have gas in the build tree, make a link to it.
8494 if test -f ../gas/Makefile; then
8495 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8498 # If we have nm in the build tree, make a link to it.
8499 if test -f ../binutils/Makefile; then
8500 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8503 # If we have ld in the build tree, make a link to it.
8504 if test -f ../ld/Makefile; then
8505 # if test x$use_collect2 = x; then
8506 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8508 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8512 # Figure out what assembler alignment features are present.
8513 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8514 echo "configure:8515: checking assembler alignment features" >&5
8516 gcc_cv_as_alignment_features=
8517 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8518 if test -x "$DEFAULT_ASSEMBLER"; then
8519 gcc_cv_as="$DEFAULT_ASSEMBLER"
8520 elif test -x "$AS"; then
8522 elif test -x as$host_exeext; then
8523 # Build using assembler in the current directory.
8524 gcc_cv_as=./as$host_exeext
8525 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8526 # Single tree build which includes gas.
8527 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8529 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8530 if test x$gcc_cv_gas_version != x; then
8534 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8535 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8536 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8537 # Gas version 2.6 and later support for .balign and .p2align.
8538 # bytes to skip when using .p2align.
8539 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
8540 gcc_cv_as_alignment_features=".balign and .p2align"
8541 cat >> confdefs.h <<\EOF
8542 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8546 # Gas version 2.8 and later support specifying the maximum
8547 # bytes to skip when using .p2align.
8548 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
8549 gcc_cv_as_alignment_features=".p2align including maximum skip"
8550 cat >> confdefs.h <<\EOF
8551 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8556 elif test x$host = x$target; then
8558 # Search the same directories that the installed compiler will
8559 # search. Else we may find the wrong assembler and lose. If we
8560 # do not find a suitable assembler binary, then try the user's
8563 # Also note we have to check MD_EXEC_PREFIX before checking the
8564 # user's path. Unfortunately, there is no good way to get at the
8565 # value of MD_EXEC_PREFIX here. So we do a brute force search
8566 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8567 # to be fixed as part of the make/configure rewrite too.
8569 if test "x$exec_prefix" = xNONE; then
8570 if test "x$prefix" = xNONE; then
8571 test_prefix=/usr/local
8576 test_prefix=$exec_prefix
8579 # If the loop below does not find an assembler, then use whatever
8580 # one we can find in the users's path.
8584 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8585 $test_prefix/lib/gcc-lib/$target \
8586 /usr/lib/gcc/$target/$gcc_version \
8587 /usr/lib/gcc/$target \
8588 $test_prefix/$target/bin/$target/$gcc_version \
8589 $test_prefix/$target/bin \
8594 /bsd43/usr/lib/cmplrs/cc \
8595 /usr/cross64/usr/bin \
8596 /usr/lib/cmplrs/cc \
8597 /sysv/usr/lib/cmplrs/cc \
8598 /svr4/usr/lib/cmplrs/cc \
8601 for dir in $test_dirs; do
8602 if test -f $dir/as$host_exeext; then
8603 gcc_cv_as=$dir/as$host_exeext
8608 if test x$gcc_cv_as != x; then
8609 # Check if we have .balign and .p2align
8610 echo ".balign 4" > conftest.s
8611 echo ".p2align 2" >> conftest.s
8612 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8613 gcc_cv_as_alignment_features=".balign and .p2align"
8614 cat >> confdefs.h <<\EOF
8615 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8619 rm -f conftest.s conftest.o
8620 # Check if specifying the maximum bytes to skip when
8621 # using .p2align is supported.
8622 echo ".p2align 4,,7" > conftest.s
8623 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8624 gcc_cv_as_alignment_features=".p2align including maximum skip"
8625 cat >> confdefs.h <<\EOF
8626 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8630 rm -f conftest.s conftest.o
8632 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8634 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8635 echo "configure:8636: checking assembler subsection support" >&5
8636 gcc_cv_as_subsections=
8637 if test x$gcc_cv_as != x; then
8638 # Check if we have .subsection
8639 echo ".subsection 1" > conftest.s
8640 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8641 gcc_cv_as_subsections=".subsection"
8642 if test -x nm$host_exeext; then
8643 gcc_cv_nm=./nm$host_exeext
8644 elif test x$host = x$target; then
8646 gcc_cv_nm=nm$host_exeext
8648 if test x$gcc_cv_nm != x; then
8649 cat > conftest.s <<EOF
8650 conftest_label1: .word 0
8652 conftest_label2: .word 0
8655 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8656 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8657 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8658 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8661 gcc_cv_as_subsections="working .subsection -1"
8662 cat >> confdefs.h <<\EOF
8663 #define HAVE_GAS_SUBSECTION_ORDERING 1
8670 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8672 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8676 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8677 echo "configure:8678: checking assembler .register pseudo-op support" >&5
8678 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8679 echo $ac_n "(cached) $ac_c" 1>&6
8682 gcc_cv_as_register_pseudo_op=unknown
8683 if test x$gcc_cv_as != x; then
8684 # Check if we have .register
8685 echo ".register %g2, #scratch" > conftest.s
8686 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8687 gcc_cv_as_register_pseudo_op=yes
8689 gcc_cv_as_register_pseudo_op=no
8691 rm -f conftest.s conftest.o
8696 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8697 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
8698 cat >> confdefs.h <<\EOF
8699 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8706 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8707 echo "configure:8708: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8708 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8709 echo $ac_n "(cached) $ac_c" 1>&6
8712 if test -n "$gcc_cv_as"; then
8713 echo ".xword foo" > conftest.s
8714 gcc_cv_as_flags64=no
8715 for flag in "-xarch=v9" "-64 -Av9"; do
8716 if $gcc_cv_as $flag -o conftest.o conftest.s \
8717 > /dev/null 2>&1; then
8718 gcc_cv_as_flags64=$flag
8722 rm -f conftest.s conftest.o
8724 if test "$gas" = yes; then
8725 gcc_cv_as_flags64="-64 -Av9"
8727 gcc_cv_as_flags64="-xarch=v9"
8733 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8734 if test "x$gcc_cv_as_flags64" = xno; then
8736 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8737 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8740 cat >> confdefs.h <<EOF
8741 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8746 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
8750 if test "x$gcc_cv_as_flags64" != xno; then
8751 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8752 echo "configure:8753: checking for assembler offsetable %lo() support" >&5
8753 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8754 echo $ac_n "(cached) $ac_c" 1>&6
8757 gcc_cv_as_offsetable_lo10=unknown
8758 if test "x$gcc_cv_as" != x; then
8759 # Check if assembler has offsetable %lo()
8760 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8761 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8762 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8764 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8765 > /dev/null 2>&1; then
8766 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8767 gcc_cv_as_offsetable_lo10=no
8769 gcc_cv_as_offsetable_lo10=yes
8772 gcc_cv_as_offsetable_lo10=no
8774 rm -f conftest.s conftest.o conftest1.s conftest1.o
8779 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8780 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
8781 cat >> confdefs.h <<\EOF
8782 #define HAVE_AS_OFFSETABLE_LO10 1
8790 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8791 echo "configure:8792: checking assembler instructions" >&5
8792 gcc_cv_as_instructions=
8793 if test x$gcc_cv_as != x; then
8794 set "filds fists" "filds mem; fists mem"
8797 echo "$2" > conftest.s
8798 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8799 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8800 cat >> confdefs.h <<EOF
8801 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8807 rm -f conftest.s conftest.o
8809 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8813 # Figure out what language subdirectories are present.
8814 # Look if the user specified --enable-languages="..."; if not, use
8815 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8817 if test x"${enable_languages+set}" != xset; then
8818 if test x"${LANGUAGES+set}" = xset; then
8819 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8821 enable_languages=all
8825 for lang in ${srcdir}/*/config-lang.in ..
8829 # The odd quoting in the next line works around
8830 # an apparent bug in bash 1.12 on linux.
8831 ${srcdir}/[*]/config-lang.in) ;;
8833 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8834 if test "x$lang_alias" = x
8836 echo "$lang doesn't set \$language." 1>&2
8839 if test x"${enable_languages}" = xall; then
8842 case "${enable_languages}" in
8843 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8851 if test x"${add_this_lang}" = xyes; then
8853 ${srcdir}/ada/config-lang.in)
8854 if test x$gnat = xyes ; then
8855 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8859 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8867 # Make gthr-default.h if we have a thread file.
8869 if test $thread_file != single; then
8870 rm -f gthr-default.h
8871 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8872 gthread_flags=-DHAVE_GTHR_DEFAULT
8876 # Find out what GC implementation we want, or may, use.
8877 # Check whether --with-gc or --without-gc was given.
8878 if test "${with_gc+set}" = set; then
8885 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8889 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8891 elif test $ac_cv_func_valloc = yes; then
8899 echo "Using $GGC for garbage collection."
8901 # Make empty files to contain the specs and options for each language.
8902 # Then add #include lines to for a compiler that has specs and/or options.
8907 rm -f specs.h options.h gencheck.h
8908 touch specs.h options.h gencheck.h
8909 for subdir in . $subdirs
8911 if test -f $srcdir/$subdir/lang-specs.h; then
8912 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8913 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8915 if test -f $srcdir/$subdir/lang-options.h; then
8916 echo "#include \"$subdir/lang-options.h\"" >>options.h
8917 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8919 if test -f $srcdir/$subdir/$subdir-tree.def; then
8920 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8921 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8925 # These (without "all_") are set in each config-lang.in.
8926 # `language' must be a single word so is spelled singularly.
8932 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8933 # List of language makefile fragments.
8938 # Add the language fragments.
8939 # Languages are added via two mechanisms. Some information must be
8940 # recorded in makefile variables, these are defined in config-lang.in.
8941 # We accumulate them and plug them into the main Makefile.
8942 # The other mechanism is a set of hooks for each of the main targets
8943 # like `clean', `install', etc.
8945 language_fragments="Make-lang"
8946 language_hooks="Make-hooks"
8949 for s in .. $subdirs
8961 . ${srcdir}/$s/config-lang.in
8962 if test "x$language" = x
8964 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8967 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8968 all_languages="$all_languages $language"
8969 if test "x$boot_language" = xyes
8971 all_boot_languages="$all_boot_languages $language"
8973 all_compilers="$all_compilers $compilers"
8974 all_stagestuff="$all_stagestuff $stagestuff"
8975 all_diff_excludes="$all_diff_excludes $diff_excludes"
8976 all_headers="$all_headers $headers"
8977 all_outputs="$all_outputs $outputs"
8978 if test x$outputs = x
8980 oldstyle_subdirs="$oldstyle_subdirs $s"
8982 all_lib2funcs="$all_lib2funcs $lib2funcs"
8986 # Since we can't use `::' targets, we link each language in
8987 # with a set of hooks, reached indirectly via lang.${target}.
8991 target_list="all.build all.cross start.encap rest.encap \
8993 install-normal install-common install-info install-man \
8995 mostlyclean clean distclean extraclean maintainer-clean \
8996 stage1 stage2 stage3 stage4"
8997 for t in $target_list
9000 for lang in .. $all_languages
9002 if test $lang != ".."; then
9006 echo "lang.$t: $x" >> Make-hooks
9009 # If we're not building in srcdir, create .gdbinit.
9011 if test ! -f Makefile.in; then
9012 echo "dir ." > .gdbinit
9013 echo "dir ${srcdir}" >> .gdbinit
9014 if test x$gdb_needs_out_file_path = xyes
9016 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9018 if test "x$subdirs" != x; then
9021 echo "dir ${srcdir}/$s" >> .gdbinit
9024 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9027 # Define variables host_canonical and build_canonical
9028 # because some Cygnus local changes in the Makefile depend on them.
9029 build_canonical=${build}
9030 host_canonical=${host}
9032 if test "${host}" != "${target}" ; then
9033 target_subdir=${target}/
9039 # If this is using newlib, then define inhibit_libc in
9040 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9041 # libgcc.a, but that's OK because newib should have its own version of
9044 if test x$with_newlib = xyes; then
9045 inhibit_libc=-Dinhibit_libc
9049 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9050 # absolute path for gcc_tooldir based on inserting the number of up-directory
9051 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9052 # $(libsubdir)/@(unlibsubdir) based path.
9053 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9054 # make and thus we'd get different behavior depending on where we built the
9056 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9057 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9059 # An explanation of the sed strings:
9060 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9061 # -e 's|/$||' match a trailing forward slash and eliminates it
9062 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9063 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9065 # (*) Note this pattern overwrites the first character of the string
9066 # with a forward slash if one is not already present. This is not a
9067 # problem because the exact names of the sub-directories concerned is
9068 # unimportant, just the number of them matters.
9070 # The practical upshot of these patterns is like this:
9072 # prefix exec_prefix result
9073 # ------ ----------- ------
9075 # /foo/ /foo/bar ../
9076 # /foo /foo/bar/ ../
9077 # /foo/ /foo/bar/ ../
9078 # /foo /foo/bar/ugg ../../
9081 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9086 # Nothing to do for FLOAT_H, float_format already handled.
9090 # Process the language and host/target makefile fragments.
9091 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9093 # Substitute configuration variables
9154 # Echo that links are built
9155 if test x$host = x$target
9163 if test x$host != x$build
9165 str3=" on a $build system"
9168 if test "x$str2" != x || test "x$str3" != x
9173 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9175 if test "x$str2" != x || test "x$str3" != x
9177 echo " ${str2}${str3}." 1>&2
9180 # Truncate the target if necessary
9181 if test x$host_truncate_target != x; then
9182 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9185 # Configure the subdirectories
9186 # AC_CONFIG_SUBDIRS($subdirs)
9188 # Create the Makefile
9189 # and configure language subdirectories
9191 cat > confcache <<\EOF
9192 # This file is a shell script that caches the results of configure
9193 # tests run on this system so they can be shared between configure
9194 # scripts and configure runs. It is not useful on other systems.
9195 # If it contains results you don't want to keep, you may remove or edit it.
9197 # By default, configure uses ./config.cache as the cache file,
9198 # creating it if it does not exist already. You can give configure
9199 # the --cache-file=FILE option to use a different cache file; that is
9200 # what configure does when it calls configure scripts in
9201 # subdirectories, so they share the cache.
9202 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9203 # config.status only pays attention to the cache file if you give it the
9204 # --recheck option to rerun configure.
9207 # The following way of writing the cache mishandles newlines in values,
9208 # but we know of no workaround that is simple, portable, and efficient.
9209 # So, don't put newlines in cache variables' values.
9210 # Ultrix sh set writes to stderr and can't be redirected directly,
9211 # and sets the high bit in the cache file unless we assign to the vars.
9213 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9215 # `set' does not quote correctly, so add quotes (double-quote substitution
9216 # turns \\\\ into \\, and sed turns \\ into \).
9218 -e "s/'/'\\\\''/g" \
9219 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9222 # `set' quotes correctly as required by POSIX, so do not add quotes.
9223 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9226 if cmp -s $cache_file confcache; then
9229 if test -w $cache_file; then
9230 echo "updating cache $cache_file"
9231 cat confcache > $cache_file
9233 echo "not updating unwritable cache $cache_file"
9238 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9241 # Let make expand exec_prefix.
9242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9244 # Any assignment to VPATH causes Sun make to only execute
9245 # the first set of double-colon rules, so remove it if not needed.
9246 # If there is a colon in the path, we need to keep it.
9247 if test "x$srcdir" = x.; then
9248 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9251 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9253 DEFS=-DHAVE_CONFIG_H
9255 # Without the "./", some shells look in PATH for config.status.
9256 : ${CONFIG_STATUS=./config.status}
9258 echo creating $CONFIG_STATUS
9259 rm -f $CONFIG_STATUS
9260 cat > $CONFIG_STATUS <<EOF
9262 # Generated automatically by configure.
9263 # Run this file to recreate the current configuration.
9264 # This directory was configured as follows,
9265 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9267 # $0 $ac_configure_args
9269 # Compiler output produced by configure, useful for debugging
9270 # configure, is in ./config.log if it exists.
9272 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9275 case "\$ac_option" in
9276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9277 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9278 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9279 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9280 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9282 -help | --help | --hel | --he | --h)
9283 echo "\$ac_cs_usage"; exit 0 ;;
9284 *) echo "\$ac_cs_usage"; exit 1 ;;
9288 ac_given_srcdir=$srcdir
9290 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9292 cat >> $CONFIG_STATUS <<EOF
9294 # Protect against being on the right side of a sed subst in config.status.
9295 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9296 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9300 s%@CFLAGS@%$CFLAGS%g
9301 s%@CPPFLAGS@%$CPPFLAGS%g
9302 s%@CXXFLAGS@%$CXXFLAGS%g
9303 s%@FFLAGS@%$FFLAGS%g
9305 s%@LDFLAGS@%$LDFLAGS%g
9307 s%@exec_prefix@%$exec_prefix%g
9308 s%@prefix@%$prefix%g
9309 s%@program_transform_name@%$program_transform_name%g
9310 s%@bindir@%$bindir%g
9311 s%@sbindir@%$sbindir%g
9312 s%@libexecdir@%$libexecdir%g
9313 s%@datadir@%$datadir%g
9314 s%@sysconfdir@%$sysconfdir%g
9315 s%@sharedstatedir@%$sharedstatedir%g
9316 s%@localstatedir@%$localstatedir%g
9317 s%@libdir@%$libdir%g
9318 s%@includedir@%$includedir%g
9319 s%@oldincludedir@%$oldincludedir%g
9320 s%@infodir@%$infodir%g
9321 s%@mandir@%$mandir%g
9323 s%@host_alias@%$host_alias%g
9324 s%@host_cpu@%$host_cpu%g
9325 s%@host_vendor@%$host_vendor%g
9326 s%@host_os@%$host_os%g
9327 s%@target@%$target%g
9328 s%@target_alias@%$target_alias%g
9329 s%@target_cpu@%$target_cpu%g
9330 s%@target_vendor@%$target_vendor%g
9331 s%@target_os@%$target_os%g
9333 s%@build_alias@%$build_alias%g
9334 s%@build_cpu@%$build_cpu%g
9335 s%@build_vendor@%$build_vendor%g
9336 s%@build_os@%$build_os%g
9338 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9339 s%@SET_MAKE@%$SET_MAKE%g
9342 s%@LEXLIB@%$LEXLIB%g
9345 s%@RANLIB@%$RANLIB%g
9347 s%@INSTALL@%$INSTALL%g
9348 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9349 s%@INSTALL_DATA@%$INSTALL_DATA%g
9352 s%@vfprintf@%$vfprintf%g
9353 s%@doprint@%$doprint%g
9354 s%@manext@%$manext%g
9355 s%@objext@%$objext%g
9356 s%@PACKAGE@%$PACKAGE%g
9357 s%@VERSION@%$VERSION%g
9358 s%@ALLOCA@%$ALLOCA%g
9359 s%@USE_NLS@%$USE_NLS%g
9360 s%@MSGFMT@%$MSGFMT%g
9361 s%@GMSGFMT@%$GMSGFMT%g
9362 s%@XGETTEXT@%$XGETTEXT%g
9363 s%@GENCAT@%$GENCAT%g
9364 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9365 s%@CATALOGS@%$CATALOGS%g
9366 s%@CATOBJEXT@%$CATOBJEXT%g
9367 s%@DATADIRNAME@%$DATADIRNAME%g
9368 s%@GMOFILES@%$GMOFILES%g
9369 s%@INSTOBJEXT@%$INSTOBJEXT%g
9370 s%@INTLDEPS@%$INTLDEPS%g
9371 s%@INTLLIBS@%$INTLLIBS%g
9372 s%@INTLOBJS@%$INTLOBJS%g
9373 s%@POFILES@%$POFILES%g
9375 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9377 s%@GT_YES@%$GT_YES%g
9378 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9380 s%@gthread_flags@%$gthread_flags%g
9382 s%@build_canonical@%$build_canonical%g
9383 s%@host_canonical@%$host_canonical%g
9384 s%@target_subdir@%$target_subdir%g
9385 s%@inhibit_libc@%$inhibit_libc%g
9386 s%@gcc_tooldir@%$gcc_tooldir%g
9387 s%@dollar@%$dollar%g
9388 s%@objdir@%$objdir%g
9389 s%@subdirs@%$subdirs%g
9390 s%@all_boot_languages@%$all_boot_languages%g
9391 s%@all_compilers@%$all_compilers%g
9392 s%@all_diff_excludes@%$all_diff_excludes%g
9393 s%@all_headers@%$all_headers%g
9394 s%@all_lang_makefiles@%$all_lang_makefiles%g
9395 s%@all_languages@%$all_languages%g
9396 s%@all_lib2funcs@%$all_lib2funcs%g
9397 s%@all_stagestuff@%$all_stagestuff%g
9398 s%@build_exeext@%$build_exeext%g
9399 s%@build_install_headers_dir@%$build_install_headers_dir%g
9400 s%@build_xm_file_list@%$build_xm_file_list%g
9401 s%@cc_set_by_configure@%$cc_set_by_configure%g
9402 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9403 s%@cpp_install_dir@%$cpp_install_dir%g
9404 s%@cpp_main@%$cpp_main%g
9405 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9406 s%@dep_tmake_file@%$dep_tmake_file%g
9407 s%@extra_c_flags@%$extra_c_flags%g
9408 s%@extra_c_objs@%$extra_c_objs%g
9409 s%@extra_cpp_objs@%$extra_cpp_objs%g
9410 s%@extra_cxx_objs@%$extra_cxx_objs%g
9411 s%@extra_headers_list@%$extra_headers_list%g
9412 s%@extra_objs@%$extra_objs%g
9413 s%@extra_parts@%$extra_parts%g
9414 s%@extra_passes@%$extra_passes%g
9415 s%@extra_programs@%$extra_programs%g
9416 s%@fixinc_defs@%$fixinc_defs%g
9417 s%@float_h_file@%$float_h_file%g
9418 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9419 s%@gcc_version@%$gcc_version%g
9420 s%@gcc_version_trigger@%$gcc_version_trigger%g
9421 s%@host_exeext@%$host_exeext%g
9422 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9423 s%@host_xm_file_list@%$host_xm_file_list%g
9424 s%@install@%$install%g
9425 s%@lang_options_files@%$lang_options_files%g
9426 s%@lang_specs_files@%$lang_specs_files%g
9427 s%@lang_tree_files@%$lang_tree_files%g
9428 s%@local_prefix@%$local_prefix%g
9429 s%@maybe_use_collect2@%$maybe_use_collect2%g
9430 s%@md_file@%$md_file%g
9431 s%@objc_boehm_gc@%$objc_boehm_gc%g
9432 s%@out_file@%$out_file%g
9433 s%@out_object_file@%$out_object_file%g
9434 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9435 s%@symbolic_link@%$symbolic_link%g
9436 s%@thread_file@%$thread_file%g
9437 s%@tm_file_list@%$tm_file_list%g
9438 s%@will_use_collect2@%$will_use_collect2%g
9439 /@target_overrides@/r $target_overrides
9440 s%@target_overrides@%%g
9441 /@host_overrides@/r $host_overrides
9442 s%@host_overrides@%%g
9443 s%@cross_defines@%$cross_defines%g
9444 /@cross_overrides@/r $cross_overrides
9445 s%@cross_overrides@%%g
9446 /@build_overrides@/r $build_overrides
9447 s%@build_overrides@%%g
9448 /@language_fragments@/r $language_fragments
9449 s%@language_fragments@%%g
9450 /@language_hooks@/r $language_hooks
9451 s%@language_hooks@%%g
9456 cat >> $CONFIG_STATUS <<\EOF
9458 # Split the substitutions into bite-sized pieces for seds with
9459 # small command number limits, like on Digital OSF/1 and HP-UX.
9460 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9461 ac_file=1 # Number of current file.
9462 ac_beg=1 # First line for current file.
9463 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9466 while $ac_more_lines; do
9467 if test $ac_beg -gt 1; then
9468 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9470 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9472 if test ! -s conftest.s$ac_file; then
9474 rm -f conftest.s$ac_file
9476 if test -z "$ac_sed_cmds"; then
9477 ac_sed_cmds="sed -f conftest.s$ac_file"
9479 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9481 ac_file=`expr $ac_file + 1`
9483 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9486 if test -z "$ac_sed_cmds"; then
9491 cat >> $CONFIG_STATUS <<EOF
9493 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9495 cat >> $CONFIG_STATUS <<\EOF
9496 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9497 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9499 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9500 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9501 *) ac_file_in="${ac_file}.in" ;;
9504 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9506 # Remove last slash and all that follows it. Not all systems have dirname.
9507 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9508 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9509 # The file is in a subdirectory.
9510 test ! -d "$ac_dir" && mkdir "$ac_dir"
9511 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9512 # A "../" for each directory in $ac_dir_suffix.
9513 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9515 ac_dir_suffix= ac_dots=
9518 case "$ac_given_srcdir" in
9520 if test -z "$ac_dots"; then top_srcdir=.
9521 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9522 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9524 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9525 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9529 echo creating "$ac_file"
9531 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9533 *Makefile*) ac_comsub="1i\\
9534 # $configure_input" ;;
9538 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9540 s%@configure_input@%$configure_input%g
9541 s%@srcdir@%$srcdir%g
9542 s%@top_srcdir@%$top_srcdir%g
9543 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9547 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9548 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9550 # ac_d sets the value in "#define NAME VALUE" lines.
9551 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9552 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9555 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9556 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9557 ac_uB='\([ ]\)%\1#\2define\3'
9560 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9561 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9562 ac_eB='$%\1#\2define\3'
9566 if test "${CONFIG_HEADERS+set}" != set; then
9568 cat >> $CONFIG_STATUS <<EOF
9569 CONFIG_HEADERS="auto-host.h:config.in"
9571 cat >> $CONFIG_STATUS <<\EOF
9573 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9574 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9576 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9577 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9578 *) ac_file_in="${ac_file}.in" ;;
9581 echo creating $ac_file
9583 rm -f conftest.frag conftest.in conftest.out
9584 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9585 cat $ac_file_inputs > conftest.in
9589 # Transform confdefs.h into a sed script conftest.vals that substitutes
9590 # the proper values into config.h.in to produce config.h. And first:
9591 # Protect against being on the right side of a sed subst in config.status.
9592 # Protect against being in an unquoted here document in config.status.
9594 cat > conftest.hdr <<\EOF
9597 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9601 sed -n -f conftest.hdr confdefs.h > conftest.vals
9604 # This sed command replaces #undef with comments. This is necessary, for
9605 # example, in the case of _POSIX_SOURCE, which is predefined and required
9606 # on some systems where configure will not decide to define it.
9607 cat >> conftest.vals <<\EOF
9608 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9611 # Break up conftest.vals because some shells have a limit on
9612 # the size of here documents, and old seds have small limits too.
9617 ac_lines=`grep -c . conftest.vals`
9618 # grep -c gives empty output for an empty file on some AIX systems.
9619 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9620 # Write a limited-size here document to conftest.frag.
9621 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9622 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9624 sed -f conftest.frag conftest.in > conftest.out
9626 mv conftest.out conftest.in
9628 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9630 mv conftest.tail conftest.vals
9634 cat >> $CONFIG_STATUS <<\EOF
9635 rm -f conftest.frag conftest.h
9636 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9637 cat conftest.in >> conftest.h
9639 if cmp -s $ac_file conftest.h 2>/dev/null; then
9640 echo "$ac_file is unchanged"
9643 # Remove last slash and all that follows it. Not all systems have dirname.
9644 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9645 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9646 # The file is in a subdirectory.
9647 test ! -d "$ac_dir" && mkdir "$ac_dir"
9650 mv conftest.h $ac_file
9656 cat >> $CONFIG_STATUS <<EOF
9657 ac_sources="$nls_cv_header_libgt"
9658 ac_dests="$nls_cv_header_intl"
9661 cat >> $CONFIG_STATUS <<\EOF
9662 srcdir=$ac_given_srcdir
9663 while test -n "$ac_sources"; do
9664 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9665 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9667 echo "linking $srcdir/$ac_source to $ac_dest"
9669 if test ! -r $srcdir/$ac_source; then
9670 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9674 # Make relative symlinks.
9675 # Remove last slash and all that follows it. Not all systems have dirname.
9676 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9677 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9678 # The dest file is in a subdirectory.
9679 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9680 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9681 # A "../" for each directory in $ac_dest_dir_suffix.
9682 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9684 ac_dest_dir_suffix= ac_dots=
9688 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9689 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9692 # Make a symlink if possible; otherwise try a hard link.
9693 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9694 ln $srcdir/$ac_source $ac_dest; then :
9696 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9700 cat >> $CONFIG_STATUS <<EOF
9706 target_alias='${target_alias}'
9708 subdirs='${subdirs}'
9709 oldstyle_subdirs='${oldstyle_subdirs}'
9710 symbolic_link='${symbolic_link}'
9711 program_transform_set='${program_transform_set}'
9712 program_transform_name='${program_transform_name}'
9713 dep_host_xmake_file='${dep_host_xmake_file}'
9714 host_xmake_file='${host_xmake_file}'
9715 dep_tmake_file='${dep_tmake_file}'
9716 tmake_file='${tmake_file}'
9717 thread_file='${thread_file}'
9718 gcc_version='${gcc_version}'
9719 gcc_version_trigger='${gcc_version_trigger}'
9720 local_prefix='${local_prefix}'
9721 build_install_headers_dir='${build_install_headers_dir}'
9722 build_exeext='${build_exeext}'
9723 host_exeext='${host_exeext}'
9724 out_file='${out_file}'
9725 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9726 SET_MAKE='${SET_MAKE}'
9727 target_list='${target_list}'
9728 target_overrides='${target_overrides}'
9729 host_overrides='${host_overrides}'
9730 cross_defines='${cross_defines}'
9731 cross_overrides='${cross_overrides}'
9732 build_overrides='${build_overrides}'
9733 cpp_install_dir='${cpp_install_dir}'
9736 cat >> $CONFIG_STATUS <<\EOF
9737 case "$CONFIG_FILES" in *po/Makefile.in*)
9738 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9741 . $srcdir/configure.lang
9742 case x$CONFIG_HEADERS in
9743 xauto-host.h:config.in)
9746 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9747 # bootstrapping and the installation procedure can still use
9748 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9749 # FLAGS_TO_PASS has been modified to solve the problem there.
9750 # This is virtually a duplicate of what happens in configure.lang; we do
9751 # an extra check to make sure this only happens if ln -s can be used.
9752 if test "$symbolic_link" = "ln -s"; then
9753 for d in .. ${subdirs} ; do
9754 if test $d != ..; then
9757 for t in stage1 stage2 stage3 stage4 include
9760 $symbolic_link ../$t $t 2>/dev/null
9766 # Avoid having to add intl to our include paths.
9767 if test -f intl/libintl.h; then
9768 echo creating libintl.h
9769 echo '#include "intl/libintl.h"' >libintl.h
9774 chmod +x $CONFIG_STATUS
9775 rm -fr confdefs* $ac_clean_files
9776 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1