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,
103 bindir='${exec_prefix}/bin'
104 sbindir='${exec_prefix}/sbin'
105 libexecdir='${exec_prefix}/libexec'
106 datadir='${prefix}/share'
107 sysconfdir='${prefix}/etc'
108 sharedstatedir='${prefix}/com'
109 localstatedir='${prefix}/var'
110 libdir='${exec_prefix}/lib'
111 includedir='${prefix}/include'
112 oldincludedir='/usr/include'
113 infodir='${prefix}/info'
114 mandir='${prefix}/man'
116 # Initialize some other variables.
119 SHELL=${CONFIG_SHELL-/bin/sh}
120 # Maximum number of lines to put in a shell here document.
127 # If the previous option needs an argument, assign it.
128 if test -n "$ac_prev"; then
129 eval "$ac_prev=\$ac_option"
135 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139 # Accept the important Cygnus configure options, so we can diagnose typos.
143 -bindir | --bindir | --bindi | --bind | --bin | --bi)
145 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
146 bindir="$ac_optarg" ;;
148 -build | --build | --buil | --bui | --bu)
150 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
151 build="$ac_optarg" ;;
153 -cache-file | --cache-file | --cache-fil | --cache-fi \
154 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
155 ac_prev=cache_file ;;
156 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
157 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
158 cache_file="$ac_optarg" ;;
160 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164 datadir="$ac_optarg" ;;
166 -disable-* | --disable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}=no" ;;
175 -enable-* | --enable-*)
176 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}='$ac_optarg'" ;;
188 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
189 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
190 | --exec | --exe | --ex)
191 ac_prev=exec_prefix ;;
192 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
193 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
194 | --exec=* | --exe=* | --ex=*)
195 exec_prefix="$ac_optarg" ;;
197 -gas | --gas | --ga | --g)
198 # Obsolete; use --with-gas.
201 -help | --help | --hel | --he)
202 # Omit some internal or obsolete options to make the list less imposing.
203 # This message is too long to be a string in the A/UX 3.1 sh.
205 Usage: configure [options] [host]
206 Options: [defaults in brackets after descriptions]
208 --cache-file=FILE cache test results in FILE
209 --help print this message
210 --no-create do not create output files
211 --quiet, --silent do not print \`checking...' messages
212 --version print the version of autoconf that created configure
213 Directory and file names:
214 --prefix=PREFIX install architecture-independent files in PREFIX
216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 --bindir=DIR user executables in DIR [EPREFIX/bin]
219 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
220 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
221 --datadir=DIR read-only architecture-independent data in DIR
223 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
224 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
227 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
228 --includedir=DIR C header files in DIR [PREFIX/include]
229 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
230 --infodir=DIR info documentation in DIR [PREFIX/info]
231 --mandir=DIR man documentation in DIR [PREFIX/man]
232 --srcdir=DIR find the sources in DIR [configure dir or ..]
233 --program-prefix=PREFIX prepend PREFIX to installed program names
234 --program-suffix=SUFFIX append SUFFIX to installed program names
235 --program-transform-name=PROGRAM
236 run sed PROGRAM on installed program names
240 --build=BUILD configure for building on BUILD [BUILD=HOST]
241 --host=HOST configure for HOST [guessed]
242 --target=TARGET configure for TARGET [TARGET=HOST]
243 Features and packages:
244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
248 --x-includes=DIR X include files are in DIR
249 --x-libraries=DIR X library files are in DIR
251 if test -n "$ac_help"; then
252 echo "--enable and --with options recognized:$ac_help"
256 -host | --host | --hos | --ho)
258 -host=* | --host=* | --hos=* | --ho=*)
261 -includedir | --includedir | --includedi | --included | --include \
262 | --includ | --inclu | --incl | --inc)
263 ac_prev=includedir ;;
264 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
265 | --includ=* | --inclu=* | --incl=* | --inc=*)
266 includedir="$ac_optarg" ;;
268 -infodir | --infodir | --infodi | --infod | --info | --inf)
270 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
271 infodir="$ac_optarg" ;;
273 -libdir | --libdir | --libdi | --libd)
275 -libdir=* | --libdir=* | --libdi=* | --libd=*)
276 libdir="$ac_optarg" ;;
278 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
279 | --libexe | --libex | --libe)
280 ac_prev=libexecdir ;;
281 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
282 | --libexe=* | --libex=* | --libe=*)
283 libexecdir="$ac_optarg" ;;
285 -localstatedir | --localstatedir | --localstatedi | --localstated \
286 | --localstate | --localstat | --localsta | --localst \
287 | --locals | --local | --loca | --loc | --lo)
288 ac_prev=localstatedir ;;
289 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
290 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
291 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
292 localstatedir="$ac_optarg" ;;
294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
297 mandir="$ac_optarg" ;;
300 # Obsolete; use --without-fp.
303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
313 | --oldin | --oldi | --old | --ol | --o)
314 ac_prev=oldincludedir ;;
315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
318 oldincludedir="$ac_optarg" ;;
320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
323 prefix="$ac_optarg" ;;
325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
326 | --program-pre | --program-pr | --program-p)
327 ac_prev=program_prefix ;;
328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
330 program_prefix="$ac_optarg" ;;
332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
333 | --program-suf | --program-su | --program-s)
334 ac_prev=program_suffix ;;
335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
337 program_suffix="$ac_optarg" ;;
339 -program-transform-name | --program-transform-name \
340 | --program-transform-nam | --program-transform-na \
341 | --program-transform-n | --program-transform- \
342 | --program-transform | --program-transfor \
343 | --program-transfo | --program-transf \
344 | --program-trans | --program-tran \
345 | --progr-tra | --program-tr | --program-t)
346 ac_prev=program_transform_name ;;
347 -program-transform-name=* | --program-transform-name=* \
348 | --program-transform-nam=* | --program-transform-na=* \
349 | --program-transform-n=* | --program-transform-=* \
350 | --program-transform=* | --program-transfor=* \
351 | --program-transfo=* | --program-transf=* \
352 | --program-trans=* | --program-tran=* \
353 | --progr-tra=* | --program-tr=* | --program-t=*)
354 program_transform_name="$ac_optarg" ;;
356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
357 | -silent | --silent | --silen | --sile | --sil)
360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 sbindir="$ac_optarg" ;;
366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
368 | --sharedst | --shareds | --shared | --share | --shar \
370 ac_prev=sharedstatedir ;;
371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 sharedstatedir="$ac_optarg" ;;
377 -site | --site | --sit)
379 -site=* | --site=* | --sit=*)
382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
385 srcdir="$ac_optarg" ;;
387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
388 | --syscon | --sysco | --sysc | --sys | --sy)
389 ac_prev=sysconfdir ;;
390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
392 sysconfdir="$ac_optarg" ;;
394 -target | --target | --targe | --targ | --tar | --ta | --t)
396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
397 target="$ac_optarg" ;;
399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 -version | --version | --versio | --versi | --vers)
403 echo "configure generated by autoconf version 2.13"
407 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}='$ac_optarg'" ;;
419 -without-* | --without-*)
420 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}=no" ;;
429 # Obsolete; use --with-x.
432 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
433 | --x-incl | --x-inc | --x-in | --x-i)
434 ac_prev=x_includes ;;
435 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
436 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
437 x_includes="$ac_optarg" ;;
439 -x-libraries | --x-libraries | --x-librarie | --x-librari \
440 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
441 ac_prev=x_libraries ;;
442 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
443 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
444 x_libraries="$ac_optarg" ;;
446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
451 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 if test "x$nonopt" != xNONE; then
454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 if test -n "$ac_prev"; then
463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468 # File descriptor usage:
471 # 2 errors and warnings
472 # 3 some systems may open it to /dev/tty
473 # 4 used on the Kubota Titan
474 # 6 checking for... messages and results
475 # 5 compiler messages saved in config.log
476 if test "$silent" = yes; then
484 This file contains any messages produced by compilers while
485 running configure, to aid debugging if configure makes a mistake.
488 # Strip out --no-create and --no-recursion so they do not pile up.
489 # Also quote any args containing shell metacharacters.
494 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
495 | --no-cr | --no-c) ;;
496 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
497 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
499 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
500 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
505 # Only set these to C if already set. These must not be set unconditionally
506 # because not all systems understand e.g. LANG=C (notably SCO).
507 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
508 # Non-C LC_CTYPE values break the ctype check.
509 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
510 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
511 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
512 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
515 rm -rf conftest* confdefs.h
516 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 # A filename unique to this package, relative to the directory that
520 # configure is in, which we can look for to find out if srcdir is correct.
521 ac_unique_file=tree.c
523 # Find the source files, if location was not specified.
524 if test -z "$srcdir"; then
525 ac_srcdir_defaulted=yes
526 # Try the directory containing this script, then its parent.
528 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531 if test ! -r $srcdir/$ac_unique_file; then
535 ac_srcdir_defaulted=no
537 if test ! -r $srcdir/$ac_unique_file; then
538 if test "$ac_srcdir_defaulted" = yes; then
539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
544 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546 # Prefer explicitly selected file to automatically selected ones.
547 if test -z "$CONFIG_SITE"; then
548 if test "x$prefix" != xNONE; then
549 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 for ac_site_file in $CONFIG_SITE; do
555 if test -r "$ac_site_file"; then
556 echo "loading site script $ac_site_file"
561 if test -r "$cache_file"; then
562 echo "loading cache $cache_file"
565 echo "creating cache $cache_file"
570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
571 ac_cpp='$CPP $CPPFLAGS'
572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
574 cross_compiling=$ac_cv_prog_cc_cross
578 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
579 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
580 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='\c' ac_t=
595 symbolic_link='ln -s'
598 # Check for bogus environment variables.
599 # Test if LIBRARY_PATH contains the notation for the current directory
600 # since this would lead to problems installing/building glibc.
601 # LIBRARY_PATH contains the current directory if one of the following
603 # - one of the terminals (":" and ";") is the first or last sign
604 # - two terminals occur directly after each other
605 # - the path contains an element with a dot in it
606 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
607 echo "configure:608: checking LIBRARY_PATH variable" >&5
608 case ${LIBRARY_PATH} in
609 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
610 library_path_setting="contains current directory"
613 library_path_setting="ok"
616 echo "$ac_t""$library_path_setting" 1>&6
617 if test "$library_path_setting" != "ok"; then
618 { echo "configure: error:
619 *** LIBRARY_PATH shouldn't contain the current directory when
620 *** building gcc. Please change the environment variable
621 *** and run configure again." 1>&2; exit 1; }
624 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
625 # since this would lead to problems installing/building glibc.
626 # GCC_EXEC_PREFIX contains the current directory if one of the following
628 # - one of the terminals (":" and ";") is the first or last sign
629 # - two terminals occur directly after each other
630 # - the path contains an element with a dot in it
631 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
632 echo "configure:633: checking GCC_EXEC_PREFIX variable" >&5
633 case ${GCC_EXEC_PREFIX} in
634 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
635 gcc_exec_prefix_setting="contains current directory"
638 gcc_exec_prefix_setting="ok"
641 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
642 if test "$gcc_exec_prefix_setting" != "ok"; then
643 { echo "configure: error:
644 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
645 *** building gcc. Please change the environment variable
646 *** and run configure again." 1>&2; exit 1; }
649 # Check for additional parameters
652 # Check whether --with-gnu-ld or --without-gnu-ld was given.
653 if test "${with_gnu_ld+set}" = set; then
654 withval="$with_gnu_ld"
655 gnu_ld_flag="$with_gnu_ld"
661 # With pre-defined ld
662 # Check whether --with-ld or --without-ld was given.
663 if test "${with_ld+set}" = set; then
665 DEFAULT_LINKER="$with_ld"
668 if test x"${DEFAULT_LINKER+set}" = x"set"; then
669 if test ! -x "$DEFAULT_LINKER"; then
670 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
671 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
674 cat >> confdefs.h <<EOF
675 #define DEFAULT_LINKER "$DEFAULT_LINKER"
681 # Check whether --with-gnu-as or --without-gnu-as was given.
682 if test "${with_gnu_as+set}" = set; then
683 withval="$with_gnu_as"
684 gas_flag="$with_gnu_as"
690 # Check whether --with-as or --without-as was given.
691 if test "${with_as+set}" = set; then
693 DEFAULT_ASSEMBLER="$with_as"
696 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
697 if test ! -x "$DEFAULT_ASSEMBLER"; then
698 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
699 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
702 cat >> confdefs.h <<EOF
703 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
709 # Check whether --with-stabs or --without-stabs was given.
710 if test "${with_stabs+set}" = set; then
711 withval="$with_stabs"
719 # Check whether --with-elf or --without-elf was given.
720 if test "${with_elf+set}" = set; then
728 # Specify the local prefix
730 # Check whether --with-local-prefix or --without-local-prefix was given.
731 if test "${with_local_prefix+set}" = set; then
732 withval="$with_local_prefix"
734 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
736 *) local_prefix=$with_local_prefix ;;
741 # Default local prefix if it is empty
742 if test x$local_prefix = x; then
743 local_prefix=/usr/local
746 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
747 # passed in by the toplevel make and thus we'd get different behavior
748 # depending on where we built the sources.
750 # Specify the g++ header file directory
751 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
752 if test "${with_gxx_include_dir+set}" = set; then
753 withval="$with_gxx_include_dir"
755 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
757 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
762 if test x${gcc_gxx_include_dir} = x; then
763 if test x${enable_version_specific_runtime_libs} = xyes; then
764 gcc_gxx_include_dir='${libsubdir}/include/g++'
766 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
767 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
771 # Enable expensive internal checks
772 # Check whether --enable-checking or --disable-checking was given.
773 if test "${enable_checking+set}" = set; then
774 enableval="$enable_checking"
775 case "${enableval}" in
776 yes) cat >> confdefs.h <<\EOF
777 #define ENABLE_CHECKING 1
780 cat >> confdefs.h <<\EOF
781 #define ENABLE_TREE_CHECKING 1
784 cat >> confdefs.h <<\EOF
785 #define ENABLE_RTL_CHECKING 1
789 *) ac_save_IFS="$IFS" IFS="$IFS,"
790 set fnord $enableval; shift
795 misc) cat >> confdefs.h <<\EOF
796 #define ENABLE_CHECKING 1
799 tree) cat >> confdefs.h <<\EOF
800 #define ENABLE_TREE_CHECKING 1
803 rtl) cat >> confdefs.h <<\EOF
804 #define ENABLE_RTL_CHECKING 1
807 gc) cat >> confdefs.h <<\EOF
808 #define ENABLE_GC_CHECKING 1
811 gcac) cat >> confdefs.h <<\EOF
812 #define ENABLE_GC_ALWAYS_COLLECT 1
815 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
823 # Check whether --enable-cpp or --disable-cpp was given.
824 if test "${enable_cpp+set}" = set; then
825 enableval="$enable_cpp"
832 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
833 if test "${with_cpp_install_dir+set}" = set; then
834 withval="$with_cpp_install_dir"
835 if test x$withval = xyes; then
836 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
837 elif test x$withval != xno; then
838 cpp_install_dir=$withval
843 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
845 # Check whether --enable-cpplib or --disable-cpplib was given.
846 if test "${enable_cpplib+set}" = set; then
847 enableval="$enable_cpplib"
848 if test x$enable_cpplib != xno; then
854 # Link cpplib into the compiler proper, for C/C++/ObjC.
855 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
856 if test "${enable_c_cpplib+set}" = set; then
857 enableval="$enable_c_cpplib"
858 if test x$enable_c_cpplib != xno; then
859 extra_c_objs="${extra_c_objs} libcpp.a"
860 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
861 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
867 # Disable fast fixincludes
868 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
869 if test "${enable_fast_fixincludes+set}" = set; then
870 enableval="$enable_fast_fixincludes"
871 if test x$enable_fast_fixincludes = xno ; then
872 cp $srcdir/fixincludes ./fixinc.sh
877 # Enable Multibyte Characters for C/C++
878 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
879 if test "${enable_c_mbchar+set}" = set; then
880 enableval="$enable_c_mbchar"
881 if test x$enable_c_mbchar != xno; then
882 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
888 # Pass with no value to take the default
889 # Pass with a value to specify a thread package
890 # Check whether --enable-threads or --disable-threads was given.
891 if test "${enable_threads+set}" = set; then
892 enableval="$enable_threads"
893 if test x$enable_threads = xno; then
901 enable_threads_flag=$enable_threads
902 # Check if a valid thread package
903 case x${enable_threads_flag} in
906 target_thread_file='single'
910 target_thread_file=''
912 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
913 xsolaris | xwin32 | xdce | xvxworks)
914 target_thread_file=$enable_threads_flag
917 echo "$enable_threads is an unknown thread package" 1>&2
922 # Check whether --enable-objc-gc or --disable-objc-gc was given.
923 if test "${enable_objc_gc+set}" = set; then
924 enableval="$enable_objc_gc"
925 if test x$enable_objc_gc = xno; then
935 # Check whether --with-dwarf2 or --without-dwarf2 was given.
936 if test "${with_dwarf2+set}" = set; then
937 withval="$with_dwarf2"
938 dwarf2="$with_dwarf2"
944 # Determine the host, build, and target systems
946 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
947 if test -f $ac_dir/install-sh; then
949 ac_install_sh="$ac_aux_dir/install-sh -c"
951 elif test -f $ac_dir/install.sh; then
953 ac_install_sh="$ac_aux_dir/install.sh -c"
957 if test -z "$ac_aux_dir"; then
958 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
960 ac_config_guess=$ac_aux_dir/config.guess
961 ac_config_sub=$ac_aux_dir/config.sub
962 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
965 # Do some error checking and defaulting for the host and target type.
967 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
970 # 1. You are not allowed to specify --host, --target, and nonopt at the
972 # 2. Host defaults to nonopt.
973 # 3. If nonopt is not specified, then host defaults to the current host,
974 # as determined by config.guess.
975 # 4. Target and build default to nonopt.
976 # 5. If nonopt is not specified, then target and build default to host.
978 # The aliases save the names the user supplied, while $host etc.
979 # will get canonicalized.
980 case $host---$target---$nonopt in
981 NONE---*---* | *---NONE---* | *---*---NONE) ;;
982 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
986 # Make sure we can run config.sub.
987 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
988 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
991 echo $ac_n "checking host system type""... $ac_c" 1>&6
992 echo "configure:993: checking host system type" >&5
995 case "$host_alias" in
999 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1000 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1002 *) host_alias=$nonopt ;;
1006 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1007 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1008 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1009 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1010 echo "$ac_t""$host" 1>&6
1012 echo $ac_n "checking target system type""... $ac_c" 1>&6
1013 echo "configure:1014: checking target system type" >&5
1015 target_alias=$target
1016 case "$target_alias" in
1019 NONE) target_alias=$host_alias ;;
1020 *) target_alias=$nonopt ;;
1024 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1025 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1026 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1027 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1028 echo "$ac_t""$target" 1>&6
1030 echo $ac_n "checking build system type""... $ac_c" 1>&6
1031 echo "configure:1032: checking build system type" >&5
1034 case "$build_alias" in
1037 NONE) build_alias=$host_alias ;;
1038 *) build_alias=$nonopt ;;
1042 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1043 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1046 echo "$ac_t""$build" 1>&6
1048 test "$host_alias" != "$target_alias" &&
1049 test "$program_prefix$program_suffix$program_transform_name" = \
1051 program_prefix=${target_alias}-
1054 # Find the native compiler
1055 # Extract the first word of "gcc", so it can be a program name with args.
1056 set dummy gcc; ac_word=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 if test -n "$CC"; then
1063 ac_cv_prog_CC="$CC" # Let the user override the test.
1065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1067 for ac_dir in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir=.
1069 if test -f $ac_dir/$ac_word; then
1078 if test -n "$CC"; then
1079 echo "$ac_t""$CC" 1>&6
1081 echo "$ac_t""no" 1>&6
1084 if test -z "$CC"; then
1085 # Extract the first word of "cc", so it can be a program name with args.
1086 set dummy cc; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 if test -n "$CC"; then
1093 ac_cv_prog_CC="$CC" # Let the user override the test.
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098 for ac_dir in $ac_dummy; do
1099 test -z "$ac_dir" && ac_dir=.
1100 if test -f $ac_dir/$ac_word; then
1101 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1102 ac_prog_rejected=yes
1110 if test $ac_prog_rejected = yes; then
1111 # We found a bogon in the path, so make sure we never use it.
1112 set dummy $ac_cv_prog_CC
1114 if test $# -gt 0; then
1115 # We chose a different compiler from the bogus one.
1116 # However, it has the same basename, so the bogon will be chosen
1117 # first if we set CC to just the basename; use the full file name.
1119 set dummy "$ac_dir/$ac_word" "$@"
1127 if test -n "$CC"; then
1128 echo "$ac_t""$CC" 1>&6
1130 echo "$ac_t""no" 1>&6
1133 if test -z "$CC"; then
1134 case "`uname -s`" in
1136 # Extract the first word of "cl", so it can be a program name with args.
1137 set dummy cl; ac_word=$2
1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1139 echo "configure:1140: checking for $ac_word" >&5
1140 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1143 if test -n "$CC"; then
1144 ac_cv_prog_CC="$CC" # Let the user override the test.
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1148 for ac_dir in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word; then
1159 if test -n "$CC"; then
1160 echo "$ac_t""$CC" 1>&6
1162 echo "$ac_t""no" 1>&6
1167 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1170 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1171 echo "configure:1172: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1175 ac_cpp='$CPP $CPPFLAGS'
1176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1178 cross_compiling=$ac_cv_prog_cc_cross
1180 cat > conftest.$ac_ext << EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1187 if { (eval echo configure:1188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1188 ac_cv_prog_cc_works=yes
1189 # If we can't run a trivial program, we are probably using a cross compiler.
1190 if (./conftest; exit) 2>/dev/null; then
1191 ac_cv_prog_cc_cross=no
1193 ac_cv_prog_cc_cross=yes
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1198 ac_cv_prog_cc_works=no
1202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203 ac_cpp='$CPP $CPPFLAGS'
1204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1206 cross_compiling=$ac_cv_prog_cc_cross
1208 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1209 if test $ac_cv_prog_cc_works = no; then
1210 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1212 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1214 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1215 cross_compiling=$ac_cv_prog_cc_cross
1217 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether we are using GNU C" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 cat > conftest.c <<EOF
1227 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1234 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1236 if test $ac_cv_prog_gcc = yes; then
1242 ac_test_CFLAGS="${CFLAGS+set}"
1243 ac_save_CFLAGS="$CFLAGS"
1245 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether ${CC-cc} accepts -g" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 echo 'void f(){}' > conftest.c
1251 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1260 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1261 if test "$ac_test_CFLAGS" = set; then
1262 CFLAGS="$ac_save_CFLAGS"
1263 elif test $ac_cv_prog_cc_g = yes; then
1264 if test "$GCC" = yes; then
1270 if test "$GCC" = yes; then
1277 echo $ac_n "checking for long double""... $ac_c" 1>&6
1278 echo "configure:1279: checking for long double" >&5
1279 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test "$GCC" = yes; then
1283 gcc_cv_c_long_double=yes
1285 cat > conftest.$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #include "confdefs.h"
1290 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1291 long double foo = 0.0;
1292 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1293 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1296 if { (eval echo configure:1297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1298 gcc_cv_c_long_double=yes
1300 echo "configure: failed program was:" >&5
1301 cat conftest.$ac_ext >&5
1303 gcc_cv_c_long_double=no
1309 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1310 if test $gcc_cv_c_long_double = yes; then
1311 cat >> confdefs.h <<\EOF
1312 #define HAVE_LONG_DOUBLE 1
1318 # If the native compiler is GCC, we can enable warnings even in stage1.
1319 # That's useful for people building cross-compilers, or just running a
1321 if test "x$GCC" = "xyes"; then
1322 stage1_warn_cflags='$(WARN_CFLAGS)'
1324 stage1_warn_cflags=""
1328 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1329 echo "configure:1330: checking whether ${MAKE-make} sets \${MAKE}" >&5
1330 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1331 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 cat > conftestmake <<\EOF
1336 @echo 'ac_maketemp="${MAKE}"'
1338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1339 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1340 if test -n "$ac_maketemp"; then
1341 eval ac_cv_prog_make_${ac_make}_set=yes
1343 eval ac_cv_prog_make_${ac_make}_set=no
1347 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1348 echo "$ac_t""yes" 1>&6
1351 echo "$ac_t""no" 1>&6
1352 SET_MAKE="MAKE=${MAKE-make}"
1356 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether a default assembler was specified" >&5
1358 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1359 if test x"$gas_flag" = x"no"; then
1360 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1362 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1365 echo "$ac_t""no" 1>&6
1368 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1369 echo "configure:1370: checking whether a default linker was specified" >&5
1370 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1371 if test x"$gnu_ld_flag" = x"no"; then
1372 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1374 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1377 echo "$ac_t""no" 1>&6
1380 # Find some useful tools
1381 for ac_prog in mawk gawk nawk awk
1383 # Extract the first word of "$ac_prog", so it can be a program name with args.
1384 set dummy $ac_prog; ac_word=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test -n "$AWK"; then
1391 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1395 for ac_dir in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir=.
1397 if test -f $ac_dir/$ac_word; then
1398 ac_cv_prog_AWK="$ac_prog"
1405 AWK="$ac_cv_prog_AWK"
1406 if test -n "$AWK"; then
1407 echo "$ac_t""$AWK" 1>&6
1409 echo "$ac_t""no" 1>&6
1412 test -n "$AWK" && break
1415 # Extract the first word of "flex", so it can be a program name with args.
1416 set dummy flex; ac_word=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if test -n "$LEX"; then
1423 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1427 for ac_dir in $ac_dummy; do
1428 test -z "$ac_dir" && ac_dir=.
1429 if test -f $ac_dir/$ac_word; then
1430 ac_cv_prog_LEX="flex"
1435 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1438 LEX="$ac_cv_prog_LEX"
1439 if test -n "$LEX"; then
1440 echo "$ac_t""$LEX" 1>&6
1442 echo "$ac_t""no" 1>&6
1445 if test -z "$LEXLIB"
1451 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1452 echo "configure:1453: checking for yywrap in -l$ac_lib" >&5
1453 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 ac_save_LIBS="$LIBS"
1458 LIBS="-l$ac_lib $LIBS"
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 /* Override any gcc2 internal prototype to avoid an error. */
1463 /* We use char because int might match the return type of a gcc2
1464 builtin and then its argument prototype would still apply. */
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1473 eval "ac_cv_lib_$ac_lib_var=yes"
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1478 eval "ac_cv_lib_$ac_lib_var=no"
1481 LIBS="$ac_save_LIBS"
1484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1488 echo "$ac_t""no" 1>&6
1493 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1494 echo "configure:1495: checking whether ln works" >&5
1495 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 rm -f conftestdata_t
1499 echo >conftestdata_f
1500 if ln conftestdata_f conftestdata_t 2>/dev/null
1504 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1506 gcc_cv_prog_LN="ln -s"
1511 rm -f conftestdata_f conftestdata_t
1514 LN="$gcc_cv_prog_LN"
1515 if test "$gcc_cv_prog_LN" = "ln"; then
1516 echo "$ac_t""yes" 1>&6
1518 if test "$gcc_cv_prog_LN" = "ln -s"; then
1519 echo "$ac_t""no, using ln -s" 1>&6
1521 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1525 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1526 echo "configure:1527: checking whether ln -s works" >&5
1527 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1530 rm -f conftestdata_t
1531 echo >conftestdata_f
1532 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1534 gcc_cv_prog_LN_S="ln -s"
1536 if ln conftestdata_f conftestdata_t 2>/dev/null
1543 rm -f conftestdata_f conftestdata_t
1546 LN_S="$gcc_cv_prog_LN_S"
1547 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1548 echo "$ac_t""yes" 1>&6
1550 if test "$gcc_cv_prog_LN_S" = "ln"; then
1551 echo "$ac_t""no, using ln" 1>&6
1553 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1557 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1558 echo "configure:1559: checking for volatile" >&5
1559 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1570 if { (eval echo configure:1571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1572 gcc_cv_c_volatile=yes
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1577 gcc_cv_c_volatile=no
1582 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1583 if test $gcc_cv_c_volatile = yes ; then
1584 cat >> confdefs.h <<\EOF
1585 #define HAVE_VOLATILE 1
1590 # Extract the first word of "ranlib", so it can be a program name with args.
1591 set dummy ranlib; ac_word=$2
1592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1593 echo "configure:1594: checking for $ac_word" >&5
1594 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 if test -n "$RANLIB"; then
1598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1602 for ac_dir in $ac_dummy; do
1603 test -z "$ac_dir" && ac_dir=.
1604 if test -f $ac_dir/$ac_word; then
1605 ac_cv_prog_RANLIB="ranlib"
1610 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1613 RANLIB="$ac_cv_prog_RANLIB"
1614 if test -n "$RANLIB"; then
1615 echo "$ac_t""$RANLIB" 1>&6
1617 echo "$ac_t""no" 1>&6
1620 for ac_prog in 'bison -y' byacc
1622 # Extract the first word of "$ac_prog", so it can be a program name with args.
1623 set dummy $ac_prog; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1626 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 if test -n "$YACC"; then
1630 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1634 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 if test -f $ac_dir/$ac_word; then
1637 ac_cv_prog_YACC="$ac_prog"
1644 YACC="$ac_cv_prog_YACC"
1645 if test -n "$YACC"; then
1646 echo "$ac_t""$YACC" 1>&6
1648 echo "$ac_t""no" 1>&6
1651 test -n "$YACC" && break
1653 test -n "$YACC" || YACC="yacc"
1655 # Find a good install program. We prefer a C program (faster),
1656 # so one script is as good as another. But avoid the broken or
1657 # incompatible versions:
1658 # SysV /etc/install, /usr/sbin/install
1659 # SunOS /usr/etc/install
1660 # IRIX /sbin/install
1662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1664 # ./install, which can be erroneously created by make from ./install.sh.
1665 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1666 echo "configure:1667: checking for a BSD compatible install" >&5
1667 if test -z "$INSTALL"; then
1668 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1672 for ac_dir in $PATH; do
1673 # Account for people who put trailing slashes in PATH elements.
1675 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1677 # OSF1 and SCO ODT 3.0 have their own names for install.
1678 for ac_prog in ginstall scoinst install; do
1679 if test -f $ac_dir/$ac_prog; then
1680 if test $ac_prog = install &&
1681 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1682 # AIX install. It has an incompatible calling convention.
1683 # OSF/1 installbsd also uses dspmsg, but is usable.
1686 ac_cv_path_install="$ac_dir/$ac_prog -c"
1697 if test "${ac_cv_path_install+set}" = set; then
1698 INSTALL="$ac_cv_path_install"
1700 # As a last resort, use the slow shell script. We don't cache a
1701 # path for INSTALL within a source directory, because that will
1702 # break other packages using the cache if that directory is
1703 # removed, or if the path is relative.
1704 INSTALL="$ac_install_sh"
1707 echo "$ac_t""$INSTALL" 1>&6
1709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1710 # It thinks the first close brace ends the variable substitution.
1711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1716 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1717 echo "configure:1718: checking how to run the C preprocessor" >&5
1718 # On Suns, sometimes $CPP names a directory.
1719 if test -n "$CPP" && test -d "$CPP"; then
1722 if test -z "$CPP"; then
1723 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 # This must be in double quotes, not single quotes, because CPP may get
1727 # substituted into the Makefile and "${CC-cc}" will confuse make.
1729 # On the NeXT, cc -E runs the code through the compiler's parser,
1730 # not just through cpp.
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1738 { (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1740 if test -z "$ac_err"; then
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 CPP="${CC-cc} -E -traditional-cpp"
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1755 { (eval echo configure:1756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1757 if test -z "$ac_err"; then
1761 echo "configure: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1764 CPP="${CC-cc} -nologo -E"
1765 cat > conftest.$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1772 { (eval echo configure:1773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1774 if test -z "$ac_err"; then
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1788 ac_cv_prog_CPP="$CPP"
1790 CPP="$ac_cv_prog_CPP"
1792 ac_cv_prog_CPP="$CPP"
1794 echo "$ac_t""$CPP" 1>&6
1796 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1797 echo "configure:1798: checking for ANSI C header files" >&5
1798 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1810 { (eval echo configure:1811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1812 if test -z "$ac_err"; then
1814 ac_cv_header_stdc=yes
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1820 ac_cv_header_stdc=no
1824 if test $ac_cv_header_stdc = yes; then
1825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1832 egrep "memchr" >/dev/null 2>&1; then
1836 ac_cv_header_stdc=no
1842 if test $ac_cv_header_stdc = yes; then
1843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1850 egrep "free" >/dev/null 2>&1; then
1854 ac_cv_header_stdc=no
1860 if test $ac_cv_header_stdc = yes; then
1861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1862 if test "$cross_compiling" = yes; then
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1869 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1870 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1871 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1872 int main () { int i; for (i = 0; i < 256; i++)
1873 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1877 if { (eval echo configure:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1884 ac_cv_header_stdc=no
1892 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1893 if test $ac_cv_header_stdc = yes; then
1894 cat >> confdefs.h <<\EOF
1895 #define STDC_HEADERS 1
1900 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1901 echo "configure:1902: checking whether time.h and sys/time.h may both be included" >&5
1902 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1908 #include <sys/types.h>
1909 #include <sys/time.h>
1915 if { (eval echo configure:1916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1917 ac_cv_header_time=yes
1919 echo "configure: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1922 ac_cv_header_time=no
1927 echo "$ac_t""$ac_cv_header_time" 1>&6
1928 if test $ac_cv_header_time = yes; then
1929 cat >> confdefs.h <<\EOF
1930 #define TIME_WITH_SYS_TIME 1
1935 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether string.h and strings.h may both be included" >&5
1937 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1944 #include <strings.h>
1949 if { (eval echo configure:1950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1951 gcc_cv_header_string=yes
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 gcc_cv_header_string=no
1961 echo "$ac_t""$gcc_cv_header_string" 1>&6
1962 if test $gcc_cv_header_string = yes; then
1963 cat >> confdefs.h <<\EOF
1964 #define STRING_WITH_STRINGS 1
1969 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1970 echo "configure:1971: checking for sys/wait.h that is POSIX.1 compatible" >&5
1971 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 cat > conftest.$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1977 #include <sys/types.h>
1978 #include <sys/wait.h>
1980 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1983 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1988 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1991 if { (eval echo configure:1992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1993 ac_cv_header_sys_wait_h=yes
1995 echo "configure: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
1998 ac_cv_header_sys_wait_h=no
2003 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2004 if test $ac_cv_header_sys_wait_h = yes; then
2005 cat >> confdefs.h <<\EOF
2006 #define HAVE_SYS_WAIT_H 1
2011 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
2012 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
2013 sys/resource.h sys/param.h sys/times.h sys/stat.h \
2016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2018 echo "configure:2019: checking for $ac_hdr" >&5
2019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2028 { (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2030 if test -z "$ac_err"; then
2032 eval "ac_cv_header_$ac_safe=yes"
2035 echo "configure: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2038 eval "ac_cv_header_$ac_safe=no"
2042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2043 echo "$ac_t""yes" 1>&6
2044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2045 cat >> confdefs.h <<EOF
2046 #define $ac_tr_hdr 1
2050 echo "$ac_t""no" 1>&6
2055 # Check for thread headers.
2056 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2057 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2058 echo "configure:2059: checking for thread.h" >&5
2059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2068 { (eval echo configure:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2070 if test -z "$ac_err"; then
2072 eval "ac_cv_header_$ac_safe=yes"
2075 echo "configure: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2078 eval "ac_cv_header_$ac_safe=no"
2082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2086 echo "$ac_t""no" 1>&6
2090 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2091 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2092 echo "configure:2093: checking for pthread.h" >&5
2093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2099 #include <pthread.h>
2101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2102 { (eval echo configure:2103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2104 if test -z "$ac_err"; then
2106 eval "ac_cv_header_$ac_safe=yes"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 eval "ac_cv_header_$ac_safe=no"
2116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2117 echo "$ac_t""yes" 1>&6
2120 echo "$ac_t""no" 1>&6
2125 # See if GNAT has been installed
2126 # Extract the first word of "gnatbind", so it can be a program name with args.
2127 set dummy gnatbind; ac_word=$2
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_word" >&5
2130 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 if test -n "$gnat"; then
2134 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2138 for ac_dir in $ac_dummy; do
2139 test -z "$ac_dir" && ac_dir=.
2140 if test -f $ac_dir/$ac_word; then
2141 ac_cv_prog_gnat="yes"
2146 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2149 gnat="$ac_cv_prog_gnat"
2150 if test -n "$gnat"; then
2151 echo "$ac_t""$gnat" 1>&6
2153 echo "$ac_t""no" 1>&6
2157 # See if the stage1 system preprocessor understands the ANSI C
2158 # preprocessor stringification operator.
2161 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2162 echo "configure:2163: checking for preprocessor stringizing operator" >&5
2163 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2172 char *s = x(teststring);
2175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2176 egrep "#teststring" >/dev/null 2>&1; then
2178 ac_cv_c_stringize=no
2181 ac_cv_c_stringize=yes
2187 if test "${ac_cv_c_stringize}" = yes
2189 cat >> confdefs.h <<\EOF
2190 #define HAVE_STRINGIZE 1
2194 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2197 # Use <inttypes.h> only if it exists,
2198 # doesn't clash with <sys/types.h>, and declares intmax_t.
2199 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2200 echo "configure:2201: checking for inttypes.h" >&5
2201 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 #include <sys/types.h>
2208 #include <inttypes.h>
2213 if { (eval echo configure:2214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2215 gcc_cv_header_inttypes_h=yes
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 gcc_cv_header_inttypes_h=no
2225 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2226 if test $gcc_cv_header_inttypes_h = yes; then
2227 cat >> confdefs.h <<\EOF
2228 #define HAVE_INTTYPES_H 1
2233 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2234 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2235 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2236 fputs_unlocked getrusage valloc
2238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2239 echo "configure:2240: checking for $ac_func" >&5
2240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 /* System header to define __stub macros and hopefully few prototypes,
2247 which can conflict with char $ac_func(); below. */
2249 /* Override any gcc2 internal prototype to avoid an error. */
2250 /* We use char because int might match the return type of a gcc2
2251 builtin and then its argument prototype would still apply. */
2256 /* The GNU C library defines this for functions which it implements
2257 to always fail with ENOSYS. Some functions are actually named
2258 something starting with __ and the normal name is an alias. */
2259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2267 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2269 eval "ac_cv_func_$ac_func=yes"
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2274 eval "ac_cv_func_$ac_func=no"
2279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2282 cat >> confdefs.h <<EOF
2283 #define $ac_tr_func 1
2287 echo "$ac_t""no" 1>&6
2292 # Make sure wchar_t is available
2293 #AC_CHECK_TYPE(wchar_t, unsigned int)
2295 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2296 echo "configure:2297: checking for vprintf" >&5
2297 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2303 /* System header to define __stub macros and hopefully few prototypes,
2304 which can conflict with char vprintf(); below. */
2306 /* Override any gcc2 internal prototype to avoid an error. */
2307 /* We use char because int might match the return type of a gcc2
2308 builtin and then its argument prototype would still apply. */
2313 /* The GNU C library defines this for functions which it implements
2314 to always fail with ENOSYS. Some functions are actually named
2315 something starting with __ and the normal name is an alias. */
2316 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2326 eval "ac_cv_func_vprintf=yes"
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2331 eval "ac_cv_func_vprintf=no"
2336 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 cat >> confdefs.h <<\EOF
2339 #define HAVE_VPRINTF 1
2343 echo "$ac_t""no" 1>&6
2346 if test "$ac_cv_func_vprintf" != yes; then
2347 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2348 echo "configure:2349: checking for _doprnt" >&5
2349 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 /* System header to define __stub macros and hopefully few prototypes,
2356 which can conflict with char _doprnt(); below. */
2358 /* Override any gcc2 internal prototype to avoid an error. */
2359 /* We use char because int might match the return type of a gcc2
2360 builtin and then its argument prototype would still apply. */
2365 /* The GNU C library defines this for functions which it implements
2366 to always fail with ENOSYS. Some functions are actually named
2367 something starting with __ and the normal name is an alias. */
2368 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2376 if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2378 eval "ac_cv_func__doprnt=yes"
2380 echo "configure: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2383 eval "ac_cv_func__doprnt=no"
2388 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2389 echo "$ac_t""yes" 1>&6
2390 cat >> confdefs.h <<\EOF
2391 #define HAVE_DOPRNT 1
2395 echo "$ac_t""no" 1>&6
2402 if test $ac_cv_func_vprintf != yes ; then
2404 if test $ac_cv_func__doprnt != yes ; then
2411 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2412 echo "configure:2413: checking whether the printf functions support %p" >&5
2413 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 if test "$cross_compiling" = yes; then
2417 gcc_cv_func_printf_ptr=no
2419 cat > conftest.$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2427 char *p = buf, *q = NULL;
2428 sprintf(buf, "%p", p);
2429 sscanf(buf, "%p", &q);
2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2435 gcc_cv_func_printf_ptr=yes
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 gcc_cv_func_printf_ptr=no
2445 rm -f core core.* *.core
2448 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2449 if test $gcc_cv_func_printf_ptr = yes ; then
2450 cat >> confdefs.h <<\EOF
2451 #define HAVE_PRINTF_PTR 1
2459 # Under some versions of uwin, vfork is notoriously buggy and the test
2460 # can hang configure; on other versions, vfork exists just as a stub.
2461 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2462 ac_cv_func_vfork_works=no
2465 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2466 echo "configure:2467: checking for pid_t" >&5
2467 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 #include <sys/types.h>
2479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2480 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2482 ac_cv_type_pid_t=yes
2490 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2491 if test $ac_cv_type_pid_t = no; then
2492 cat >> confdefs.h <<\EOF
2498 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2499 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2500 echo "configure:2501: checking for vfork.h" >&5
2501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2510 { (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2512 if test -z "$ac_err"; then
2514 eval "ac_cv_header_$ac_safe=yes"
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 eval "ac_cv_header_$ac_safe=no"
2524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2526 cat >> confdefs.h <<\EOF
2527 #define HAVE_VFORK_H 1
2531 echo "$ac_t""no" 1>&6
2534 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2535 echo "configure:2536: checking for working vfork" >&5
2536 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 if test "$cross_compiling" = yes; then
2540 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2541 echo "configure:2542: checking for vfork" >&5
2542 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char vfork(); below. */
2551 /* Override any gcc2 internal prototype to avoid an error. */
2552 /* We use char because int might match the return type of a gcc2
2553 builtin and then its argument prototype would still apply. */
2558 /* The GNU C library defines this for functions which it implements
2559 to always fail with ENOSYS. Some functions are actually named
2560 something starting with __ and the normal name is an alias. */
2561 #if defined (__stub_vfork) || defined (__stub___vfork)
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2571 eval "ac_cv_func_vfork=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 eval "ac_cv_func_vfork=no"
2581 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2582 echo "$ac_t""yes" 1>&6
2585 echo "$ac_t""no" 1>&6
2588 ac_cv_func_vfork_works=$ac_cv_func_vfork
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 /* Thanks to Paul Eggert for this test. */
2595 #include <sys/types.h>
2596 #include <sys/stat.h>
2597 #ifdef HAVE_UNISTD_H
2603 /* On some sparc systems, changes by the child to local and incoming
2604 argument registers are propagated back to the parent.
2605 The compiler is told about this with #include <vfork.h>,
2606 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2607 Test for this by using a static variable whose address
2608 is put into a register that is clobbered by the vfork. */
2611 sparc_address_test (int arg)
2613 sparc_address_test (arg) int arg;
2631 pid_t parent = getpid ();
2634 sparc_address_test ();
2639 /* Here is another test for sparc vfork register problems.
2640 This test uses lots of local variables, at least
2641 as many local variables as main has allocated so far
2642 including compiler temporaries. 4 locals are enough for
2643 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2644 A buggy compiler should reuse the register of parent
2645 for one of the local variables, since it will think that
2646 parent can't possibly be used any more in this routine.
2647 Assigning to the local variable will thus munge parent
2648 in the parent process. */
2650 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2651 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2652 /* Convince the compiler that p..p7 are live; otherwise, it might
2653 use the same hardware register for all 8 local variables. */
2654 if (p != p1 || p != p2 || p != p3 || p != p4
2655 || p != p5 || p != p6 || p != p7)
2658 /* On some systems (e.g. IRIX 3.3),
2659 vfork doesn't separate parent from child file descriptors.
2660 If the child closes a descriptor before it execs or exits,
2661 this munges the parent's descriptor as well.
2662 Test for this by closing stdout in the child. */
2663 _exit(close(fileno(stdout)) != 0);
2668 while (wait(&status) != child)
2671 /* Was there some problem with vforking? */
2674 /* Did the child fail? (This shouldn't happen.) */
2677 /* Did the vfork/compiler bug occur? */
2678 || parent != getpid()
2680 /* Did the file descriptor bug occur? */
2681 || fstat(fileno(stdout), &st) != 0
2686 if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2688 ac_cv_func_vfork_works=yes
2690 echo "configure: failed program was:" >&5
2691 cat conftest.$ac_ext >&5
2693 ac_cv_func_vfork_works=no
2700 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2701 if test $ac_cv_func_vfork_works = no; then
2702 cat >> confdefs.h <<\EOF
2708 for ac_hdr in unistd.h
2710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2712 echo "configure:2713: checking for $ac_hdr" >&5
2713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722 { (eval echo configure:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2724 if test -z "$ac_err"; then
2726 eval "ac_cv_header_$ac_safe=yes"
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2732 eval "ac_cv_header_$ac_safe=no"
2736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2739 cat >> confdefs.h <<EOF
2740 #define $ac_tr_hdr 1
2744 echo "$ac_t""no" 1>&6
2748 for ac_func in getpagesize
2750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2751 echo "configure:2752: checking for $ac_func" >&5
2752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 /* System header to define __stub macros and hopefully few prototypes,
2759 which can conflict with char $ac_func(); below. */
2761 /* Override any gcc2 internal prototype to avoid an error. */
2762 /* We use char because int might match the return type of a gcc2
2763 builtin and then its argument prototype would still apply. */
2768 /* The GNU C library defines this for functions which it implements
2769 to always fail with ENOSYS. Some functions are actually named
2770 something starting with __ and the normal name is an alias. */
2771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2779 if { (eval echo configure:2780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2781 eval "ac_cv_func_$ac_func=yes"
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2786 eval "ac_cv_func_$ac_func=no"
2791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2794 cat >> confdefs.h <<EOF
2795 #define $ac_tr_func 1
2799 echo "$ac_t""no" 1>&6
2803 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2804 echo "configure:2805: checking for working mmap" >&5
2805 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2808 if test "$cross_compiling" = yes; then
2809 ac_cv_func_mmap_fixed_mapped=no
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2815 /* Thanks to Mike Haertel and Jim Avera for this test.
2816 Here is a matrix of mmap possibilities:
2817 mmap private not fixed
2818 mmap private fixed at somewhere currently unmapped
2819 mmap private fixed at somewhere already mapped
2820 mmap shared not fixed
2821 mmap shared fixed at somewhere currently unmapped
2822 mmap shared fixed at somewhere already mapped
2823 For private mappings, we should verify that changes cannot be read()
2824 back from the file, nor mmap's back from the file at a different
2825 address. (There have been systems where private was not correctly
2826 implemented like the infamous i386 svr4.0, and systems where the
2827 VM page cache was not coherent with the filesystem buffer cache
2828 like early versions of FreeBSD and possibly contemporary NetBSD.)
2829 For shared mappings, we should conversely verify that changes get
2830 propogated back to all the places they're supposed to be.
2832 Grep wants private fixed already mapped.
2833 The main things grep needs to know about mmap are:
2834 * does it exist and is it safe to write into the mmap'd area
2835 * how to use it (BSD variants) */
2836 #include <sys/types.h>
2838 #include <sys/mman.h>
2840 /* This mess was copied from the GNU getpagesize.h. */
2841 #ifndef HAVE_GETPAGESIZE
2842 # ifdef HAVE_UNISTD_H
2843 # include <unistd.h>
2846 /* Assume that all systems that can run configure have sys/param.h. */
2847 # ifndef HAVE_SYS_PARAM_H
2848 # define HAVE_SYS_PARAM_H 1
2851 # ifdef _SC_PAGESIZE
2852 # define getpagesize() sysconf(_SC_PAGESIZE)
2853 # else /* no _SC_PAGESIZE */
2854 # ifdef HAVE_SYS_PARAM_H
2855 # include <sys/param.h>
2856 # ifdef EXEC_PAGESIZE
2857 # define getpagesize() EXEC_PAGESIZE
2858 # else /* no EXEC_PAGESIZE */
2860 # define getpagesize() NBPG * CLSIZE
2863 # endif /* no CLSIZE */
2864 # else /* no NBPG */
2866 # define getpagesize() NBPC
2867 # else /* no NBPC */
2869 # define getpagesize() PAGESIZE
2870 # endif /* PAGESIZE */
2871 # endif /* no NBPC */
2872 # endif /* no NBPG */
2873 # endif /* no EXEC_PAGESIZE */
2874 # else /* no HAVE_SYS_PARAM_H */
2875 # define getpagesize() 8192 /* punt totally */
2876 # endif /* no HAVE_SYS_PARAM_H */
2877 # endif /* no _SC_PAGESIZE */
2879 #endif /* no HAVE_GETPAGESIZE */
2882 extern "C" { void *malloc(unsigned); }
2890 char *data, *data2, *data3;
2894 pagesize = getpagesize();
2897 * First, make a file with some known garbage in it.
2899 data = malloc(pagesize);
2902 for (i = 0; i < pagesize; ++i)
2903 *(data + i) = rand();
2905 fd = creat("conftestmmap", 0600);
2908 if (write(fd, data, pagesize) != pagesize)
2913 * Next, try to mmap the file at a fixed address which
2914 * already has something else allocated at it. If we can,
2915 * also make sure that we see the same garbage.
2917 fd = open("conftestmmap", O_RDWR);
2920 data2 = malloc(2 * pagesize);
2923 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2924 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2925 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2927 for (i = 0; i < pagesize; ++i)
2928 if (*(data + i) != *(data2 + i))
2932 * Finally, make sure that changes to the mapped area
2933 * do not percolate back to the file as seen by read().
2934 * (This is a bug on some variants of i386 svr4.0.)
2936 for (i = 0; i < pagesize; ++i)
2937 *(data2 + i) = *(data2 + i) + 1;
2938 data3 = malloc(pagesize);
2941 if (read(fd, data3, pagesize) != pagesize)
2943 for (i = 0; i < pagesize; ++i)
2944 if (*(data + i) != *(data3 + i))
2947 unlink("conftestmmap");
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2954 ac_cv_func_mmap_fixed_mapped=yes
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 ac_cv_func_mmap_fixed_mapped=no
2966 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2967 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2968 cat >> confdefs.h <<\EOF
2975 for ac_func in bcopy bzero bcmp \
2976 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2977 strsignal putc_unlocked fputs_unlocked strstr
2979 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2980 echo "configure:2981: checking whether $ac_func must be declared" >&5
2981 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2989 #ifdef STRING_WITH_STRINGS
2990 # include <string.h>
2991 # include <strings.h>
2993 # ifdef HAVE_STRING_H
2994 # include <string.h>
2996 # ifdef HAVE_STRINGS_H
2997 # include <strings.h>
3001 #ifdef HAVE_STDLIB_H
3004 #ifdef HAVE_UNISTD_H
3008 #define rindex strrchr
3011 #define index strchr
3015 char *(*pfn) = (char *(*)) $ac_func
3018 if { (eval echo configure:3019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3020 eval "gcc_cv_decl_needed_$ac_func=no"
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3025 eval "gcc_cv_decl_needed_$ac_func=yes"
3030 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3031 echo "$ac_t""yes" 1>&6
3032 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3033 cat >> confdefs.h <<EOF
3034 #define $gcc_tr_decl 1
3038 echo "$ac_t""no" 1>&6
3044 for ac_func in malloc realloc calloc free
3046 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3047 echo "configure:3048: checking whether $ac_func must be declared" >&5
3048 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3056 #ifdef STRING_WITH_STRINGS
3057 # include <string.h>
3058 # include <strings.h>
3060 # ifdef HAVE_STRING_H
3061 # include <string.h>
3063 # ifdef HAVE_STRINGS_H
3064 # include <strings.h>
3068 #ifdef HAVE_STDLIB_H
3071 #ifdef HAVE_UNISTD_H
3075 #define rindex strrchr
3078 #define index strchr
3080 #ifdef HAVE_MALLOC_H
3085 char *(*pfn) = (char *(*)) $ac_func
3088 if { (eval echo configure:3089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3090 eval "gcc_cv_decl_needed_$ac_func=no"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 eval "gcc_cv_decl_needed_$ac_func=yes"
3100 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3101 echo "$ac_t""yes" 1>&6
3102 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3103 cat >> confdefs.h <<EOF
3104 #define $gcc_tr_decl 1
3108 echo "$ac_t""no" 1>&6
3114 for ac_func in getrlimit setrlimit getrusage
3116 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3117 echo "configure:3118: checking whether $ac_func must be declared" >&5
3118 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3126 #ifdef STRING_WITH_STRINGS
3127 # include <string.h>
3128 # include <strings.h>
3130 # ifdef HAVE_STRING_H
3131 # include <string.h>
3133 # ifdef HAVE_STRINGS_H
3134 # include <strings.h>
3138 #ifdef HAVE_STDLIB_H
3141 #ifdef HAVE_UNISTD_H
3145 #define rindex strrchr
3148 #define index strchr
3150 #include <sys/types.h>
3151 #ifdef HAVE_SYS_RESOURCE_H
3152 #include <sys/resource.h>
3156 char *(*pfn) = (char *(*)) $ac_func
3159 if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 eval "gcc_cv_decl_needed_$ac_func=no"
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3166 eval "gcc_cv_decl_needed_$ac_func=yes"
3171 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3174 cat >> confdefs.h <<EOF
3175 #define $gcc_tr_decl 1
3179 echo "$ac_t""no" 1>&6
3185 # mkdir takes a single argument on some systems.
3186 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3187 echo "configure:3188: checking if mkdir takes one argument" >&5
3188 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3195 #include <sys/types.h>
3196 #ifdef HAVE_SYS_STAT_H
3197 # include <sys/stat.h>
3199 #ifdef HAVE_UNISTD_H
3200 # include <unistd.h>
3202 #ifdef HAVE_DIRECT_H
3203 # include <direct.h>
3209 if { (eval echo configure:3210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3211 gcc_cv_mkdir_takes_one_arg=no
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3216 gcc_cv_mkdir_takes_one_arg=yes
3221 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3222 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3223 cat >> confdefs.h <<\EOF
3224 #define MKDIR_TAKES_ONE_ARG 1
3238 build_install_headers_dir=install-headers-tar
3243 host_truncate_target=
3246 # Decode the host machine, then the target machine.
3247 # For the host machine, we save the xm_file variable as host_xm_file;
3248 # then we decode the target machine and forget everything else
3249 # that came from the host machine.
3250 for machine in $build $host $target; do
3264 # Set this to force installation and use of collect2.
3266 # Set this to override the default target model.
3268 # Set this to control how the header file directory is installed.
3269 install_headers_dir=install-headers-tar
3270 # Set this to a non-empty list of args to pass to cpp if the target
3271 # wants its .md file passed through cpp.
3273 # Set this if directory names should be truncated to 14 characters.
3275 # Set this if gdb needs a dir command with `dirname $out_file`
3276 gdb_needs_out_file_path=
3277 # Set this if the build machine requires executables to have a
3280 # Set this to control which thread package will be used.
3282 # Reinitialize these from the flag values every loop pass, since some
3283 # configure entries modify them.
3285 gnu_ld="$gnu_ld_flag"
3286 enable_threads=$enable_threads_flag
3288 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3289 # updated in each machine entry.
3291 cpu_type=`echo $machine | sed 's/-.*$//'`
3328 tm_file=${cpu_type}/${cpu_type}.h
3329 xm_file=${cpu_type}/xm-${cpu_type}.h
3330 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3332 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3334 # On a.out targets, we need to use collect2.
3341 # Common parts for linux-gnu and openbsd systems
3344 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3347 tm_file=${cpu_type}/openbsd.h
3348 tmake_file="t-libc-ok t-openbsd"
3349 # avoid surprises, always provide an xm-openbsd file
3350 xm_file=${cpu_type}/xm-openbsd.h
3351 # don't depend on processor x-fragments as well
3353 if test x$enable_threads = xyes; then
3355 tmake_file="${tmake_file} t-openbsd-thread"
3361 # Support site-specific machine types.
3363 cpu_type=`echo $machine | sed -e 's/-.*//'`
3364 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3365 xm_file=${cpu_type}/xm-$rest.h
3366 tm_file=${cpu_type}/$rest.h
3367 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3368 then xmake_file=${cpu_type}/x-$rest; \
3371 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3372 then tmake_file=${cpu_type}/t-$rest; \
3378 a29k-*-bsd* | a29k-*-sym1*)
3379 tm_file="${tm_file} a29k/unix.h"
3381 xmake_file=a29k/x-unix
3384 a29k-*-udi | a29k-*-coff)
3385 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3386 tmake_file=a29k/t-a29kbare
3389 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3390 tmake_file=a29k/t-vx29k
3391 extra_parts="crtbegin.o crtend.o"
3392 thread_file='vxworks'
3394 a29k-*-*) # Default a29k environment.
3398 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3400 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3401 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3403 # GAS + IEEE_CONFORMANT
3404 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3406 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3407 xmake_file="x-interix alpha/t-pe"
3408 tmake_file="alpha/t-interix alpha/t-ieee"
3409 if test x$enable_threads = xyes ; then
3412 if test x$stabs = xyes ; then
3413 tm_file="${tm_file} dbxcoff.h"
3415 #prefix='$$INTERIX_ROOT'/usr/contrib
3416 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3418 alpha*-*-linux-gnuecoff*)
3419 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3420 target_cpu_default="MASK_GAS"
3421 tmake_file="alpha/t-ieee"
3426 alpha*-*-linux-gnulibc1*)
3427 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3428 target_cpu_default="MASK_GAS"
3429 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3430 extra_parts="crtbegin.o crtend.o"
3433 if test x$enable_threads = xyes; then
3437 alpha*-*-linux-gnu*)
3438 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3439 target_cpu_default="MASK_GAS"
3440 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3441 extra_parts="crtbegin.o crtend.o"
3444 if test x$enable_threads = xyes; then
3449 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3450 target_cpu_default="MASK_GAS"
3451 tmake_file="alpha/t-crtbe alpha/t-ieee"
3452 extra_parts="crtbegin.o crtend.o"
3458 # default x-alpha is only appropriate for dec-osf.
3459 target_cpu_default="MASK_GAS"
3460 tmake_file="alpha/t-ieee"
3464 if test x$stabs = xyes
3466 tm_file="${tm_file} dbx.h"
3468 if test x$gas != xyes
3470 extra_passes="mips-tfile mips-tdump"
3473 tmake_file="alpha/t-ieee"
3476 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3479 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3482 tm_file="${tm_file} alpha/osf.h"
3483 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3484 # a broken tar, so we use cpio instead.
3485 install_headers_dir=install-headers-cpio
3488 tm_file="${tm_file} alpha/osf.h"
3492 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3493 target_cpu_default=MASK_SUPPORT_ARCH
3498 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3499 tmake_file="alpha/t-ieee"
3502 extra_passes="mips-tfile mips-tdump"
3505 thread_file='vxworks'
3508 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3509 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3510 tmake_file="t-libc-ok alpha/t-ieee"
3511 xmake_file=winnt/x-winnt
3512 extra_host_objs=oldnames.o
3513 extra_gcc_objs="spawnv.o oldnames.o"
3514 if test x$gnu_ld != xyes
3516 extra_programs=ld.exe
3518 if test x$enable_threads = xyes; then
3524 xm_file="${xm_file} alpha/xm-vms.h"
3525 tmake_file="alpha/t-vms alpha/t-ieee"
3528 extra_parts="crtinit.o crtfini.o"
3530 arm-*-coff* | armel-*-coff*)
3532 tmake_file=arm/t-bare
3536 tmake_file=arm/t-bare
3537 thread_file='vxworks'
3539 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3540 tm_file=arm/riscix1-1.h
3543 arm-*-riscix*) # Acorn RISC machine
3544 if test x$gas = xyes
3546 tm_file=arm/rix-gas.h
3548 tm_file=arm/riscix.h
3550 xmake_file=arm/x-riscix
3551 tmake_file=arm/t-riscix
3554 arm-semi-aout | armel-semi-aout)
3556 tmake_file=arm/t-semi
3558 arm-semi-aof | armel-semi-aof)
3559 tm_file=arm/semiaof.h
3560 tmake_file=arm/t-semiaof
3563 tm_file=arm/netbsd.h
3564 tmake_file="t-netbsd arm/t-netbsd"
3567 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3570 tm_file=arm/linux-aout.h
3571 tmake_file=arm/t-linux
3574 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3575 xm_file=arm/xm-linux.h
3577 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3580 tm_file="arm/linux-elf26.h $tm_file"
3583 tmake_file="t-linux arm/t-linux"
3584 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3586 case x${enable_threads} in
3587 x | xyes | xpthreads | xposix)
3592 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3593 xm_file=arm/xm-linux.h
3595 tm_file="arm/linux-elf.h"
3598 tm_file="arm/linux-elf26.h $tm_file"
3601 tmake_file="t-linux arm/t-linux"
3602 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3604 case x${enable_threads} in
3605 x | xyes | xpthreads | xposix)
3610 arm*-*-uclinux*) # ARM ucLinux
3611 tm_file=arm/uclinux-elf.h
3612 tmake_file=arm/t-arm-elf
3616 tmake_file=arm/t-bare
3619 tm_file=arm/ecos-elf.h
3620 tmake_file=arm/t-elf
3623 tm_file=arm/unknown-elf.h
3624 tmake_file=arm/t-arm-elf
3627 tm_file=arm/unknown-elf-oabi.h
3628 tmake_file=arm/t-arm-elf
3635 c1-convex-*) # Convex C1
3636 target_cpu_default=1
3639 c2-convex-*) # Convex C2
3640 target_cpu_default=2
3644 target_cpu_default=4
3648 target_cpu_default=8
3652 target_cpu_default=16
3657 tmake_file=c4x/t-c4x
3659 clipper-intergraph-clix*)
3660 tm_file="${tm_file} svr3.h clipper/clix.h"
3661 xm_file=clipper/xm-clix.h
3662 xmake_file=clipper/x-clix
3663 extra_headers=va-clipper.h
3664 extra_parts="crtbegin.o crtend.o"
3665 install_headers_dir=install-headers-cpio
3673 tm_file="fr30/fr30.h"
3674 tmake_file=fr30/t-fr30
3675 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3677 # This hasn't been upgraded to GCC 2.
3678 # fx80-alliant-*) # Alliant FX/80
3684 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3685 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3686 tmake_file="t-linux pa/t-linux"
3687 extra_parts="crtbegin.o crtend.o"
3690 if test x$enable_threads = xyes; then
3695 target_cpu_default="MASK_PA_11"
3696 tmake_file=pa/t-openbsd
3699 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3700 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3701 xm_file=pa/xm-papro.h
3705 target_cpu_default="MASK_PA_11"
3706 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3710 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3711 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3712 xm_file=pa/xm-papro.h
3716 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3720 tm_file="${tm_file} pa/som.h"
3721 target_cpu_default="MASK_PA_11"
3725 tm_file="${tm_file} pa/som.h"
3729 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3730 xm_file=pa/xm-pahpux.h
3731 xmake_file=pa/x-pa-hpux
3732 if test x$gas = xyes
3734 tm_file="${tm_file} pa/gas.h"
3736 install_headers_dir=install-headers-cpio
3739 hppa1.0-*-hpux8.0[0-2]*)
3740 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3741 xm_file=pa/xm-pahpux.h
3742 xmake_file=pa/x-pa-hpux
3743 if test x$gas = xyes
3745 tm_file="${tm_file} pa/pa-gas.h"
3747 tm_file="pa/pa-oldas.h ${tm_file}"
3749 install_headers_dir=install-headers-cpio
3752 hppa1.1-*-hpux8.0[0-2]*)
3753 target_cpu_default="MASK_PA_11"
3754 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3755 xm_file=pa/xm-pahpux.h
3756 xmake_file=pa/x-pa-hpux
3757 if test x$gas = xyes
3759 tm_file="${tm_file} pa/pa-gas.h"
3761 tm_file="pa/pa-oldas.h ${tm_file}"
3763 install_headers_dir=install-headers-cpio
3767 target_cpu_default="MASK_PA_11"
3768 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3769 xm_file=pa/xm-pahpux.h
3770 xmake_file=pa/x-pa-hpux
3771 if test x$gas = xyes
3773 tm_file="${tm_file} pa/pa-gas.h"
3775 install_headers_dir=install-headers-cpio
3779 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3780 xm_file=pa/xm-pahpux.h
3781 xmake_file=pa/x-pa-hpux
3782 if test x$gas = xyes
3784 tm_file="${tm_file} pa/pa-gas.h"
3786 install_headers_dir=install-headers-cpio
3789 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3790 target_cpu_default="MASK_PA_11"
3791 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3792 xm_file=pa/xm-pahpux.h
3793 xmake_file=pa/x-pa-hpux
3795 if test x$gas = xyes
3797 tm_file="${tm_file} pa/pa-gas.h"
3799 if test x$enable_threads = x; then
3800 enable_threads=$have_pthread_h
3802 if test x$enable_threads = xyes; then
3804 tmake_file="${tmake_file} pa/t-dce-thr"
3806 install_headers_dir=install-headers-cpio
3810 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3811 xm_file=pa/xm-pahpux.h
3812 xmake_file=pa/x-pa-hpux
3814 if test x$gas = xyes
3816 tm_file="${tm_file} pa/pa-gas.h"
3818 if test x$enable_threads = x; then
3819 enable_threads=$have_pthread_h
3821 if test x$enable_threads = xyes; then
3823 tmake_file="${tmake_file} pa/t-dce-thr"
3825 install_headers_dir=install-headers-cpio
3828 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3829 target_cpu_default="MASK_PA_11"
3830 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3831 xm_file=pa/xm-pahpux.h
3832 xmake_file=pa/x-pa-hpux
3834 if test x$gas = xyes
3836 tm_file="${tm_file} pa/pa-gas.h"
3838 # if test x$enable_threads = x; then
3839 # enable_threads=$have_pthread_h
3841 # if test x$enable_threads = xyes; then
3843 # tmake_file="${tmake_file} pa/t-dce-thr"
3845 install_headers_dir=install-headers-cpio
3849 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3850 xm_file=pa/xm-pahpux.h
3851 xmake_file=pa/x-pa-hpux
3852 if test x$gas = xyes
3854 tm_file="${tm_file} pa/pa-gas.h"
3856 # if test x$enable_threads = x; then
3857 # enable_threads=$have_pthread_h
3859 # if test x$enable_threads = xyes; then
3861 # tmake_file="${tmake_file} pa/t-dce-thr"
3863 install_headers_dir=install-headers-cpio
3866 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3867 target_cpu_default="MASK_PA_11"
3868 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3869 xm_file=pa/xm-pahpux.h
3870 xmake_file=pa/x-pa-hpux
3871 if test x$gas = xyes
3873 tm_file="${tm_file} pa/pa-gas.h"
3875 install_headers_dir=install-headers-cpio
3879 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3880 xm_file=pa/xm-pahpux.h
3881 xmake_file=pa/x-pa-hpux
3882 if test x$gas = xyes
3884 tm_file="${tm_file} pa/pa-gas.h"
3886 install_headers_dir=install-headers-cpio
3889 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3890 target_cpu_default="MASK_PA_11"
3891 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.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-hiux.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
3913 tm_file="${tm_file} elfos.h pa/elf.h"
3914 target_cpu_default="MASK_PA_11"
3918 tm_file="${tm_file} pa/pa-mpeix.h"
3919 xm_file=pa/xm-pampeix.h
3920 xmake_file=pa/x-pa-mpeix
3921 echo "You must use gas. Assuming it is already installed."
3922 install_headers_dir=install-headers-tar
3923 fixincludes=Makefile.in
3926 i370-*-opened*) # IBM 360/370/390 Architecture
3927 xm_file=i370/xm-oe.h
3929 xmake_file=i370/x-oe
3930 tmake_file=i370/t-oe
3931 fixincludes=Makefile.in # Headers are wierd, don't mess with
3934 xm_file=i370/xm-mvs.h
3936 tmake_file=i370/t-mvs
3937 fixincludes=Makefile.in # Headers are wierd, don't mess with
3940 xm_file="xm-linux.h i370/xm-linux.h"
3942 tm_file="i370/linux.h ${tm_file}"
3943 tmake_file="t-linux i370/t-linux"
3944 fixincludes=Makefile.in # The headers are ok already.
3945 # broken_install=yes
3946 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3947 # extra_parts="crtbegin.o crtend.o"
3951 if test x$enable_threads = xyes; then
3956 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3957 tm_file=i386/i386elf.h
3958 tmake_file=i386/t-i386elf
3961 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3962 if test x$gas = xyes
3964 tm_file=i386/aix386.h
3965 extra_parts="crtbegin.o crtend.o"
3966 tmake_file=i386/t-crtstuff
3968 tm_file=i386/aix386ng.h
3971 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3973 xmake_file=i386/x-aix
3975 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3976 xm_file="xm-alloca.h ${xm_file}"
3977 xm_defines="USG POSIX SMALL_ARG_MAX"
3978 xmake_file=i386/x-ncr3000
3979 if test x$stabs = xyes -a x$gas = xyes
3981 tm_file=i386/sysv4gdb.h
3983 tm_file=i386/sysv4.h
3985 extra_parts="crtbegin.o crtend.o"
3986 tmake_file=i386/t-crtpic
3990 xm_file=i386/xm-next.h
3991 tmake_file=i386/t-next
3992 xmake_file=i386/x-next
3993 extra_objs=nextstep.o
3994 extra_parts="crtbegin.o crtend.o"
3995 if test x$enable_threads = xyes; then
3999 i[34567]86-sequent-bsd*) # 80386 from Sequent
4001 if test x$gas = xyes
4003 tm_file=i386/seq-gas.h
4005 tm_file=i386/sequent.h
4008 i[34567]86-sequent-ptx1*)
4009 xm_defines="USG SVR3"
4010 xmake_file=i386/x-sysv3
4011 tm_file=i386/seq-sysv3.h
4012 tmake_file=i386/t-crtstuff
4013 extra_parts="crtbegin.o crtend.o"
4014 install_headers_dir=install-headers-cpio
4016 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
4017 xm_defines="USG SVR3"
4018 xmake_file=i386/x-sysv3
4019 tm_file=i386/seq2-sysv3.h
4020 tmake_file=i386/t-crtstuff
4021 extra_parts="crtbegin.o crtend.o"
4022 install_headers_dir=install-headers-cpio
4024 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
4025 xm_file="xm-alloca.h ${xm_file}"
4026 xm_defines="USG POSIX SMALL_ARG_MAX"
4028 tm_file=i386/ptx4-i.h
4030 extra_parts="crtbegin.o crtend.o"
4031 install_headers_dir=install-headers-cpio
4033 i386-sun-sunos*) # Sun i386 roadrunner
4038 i[34567]86-wrs-vxworks*)
4039 tm_file=i386/vxi386.h
4040 tmake_file=i386/t-i386bare
4041 thread_file='vxworks'
4044 tm_file=i386/i386-aout.h
4045 tmake_file=i386/t-i386bare
4047 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
4048 tm_file=i386/bsd386.h
4049 # tmake_file=t-libc-ok
4052 tm_file=i386/386bsd.h
4053 # tmake_file=t-libc-ok
4054 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4057 i[34567]86-*-freebsdelf*)
4058 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4059 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4060 tmake_file=t-freebsd
4064 case x${enable_threads} in
4065 xyes | xpthreads | xposix)
4067 tmake_file="${tmake_file} t-freebsd-thread"
4071 i[34567]86-*-freebsd*)
4072 tm_file="i386/freebsd.h i386/perform.h"
4073 tmake_file=t-freebsd
4075 i[34567]86-*-netbsd*)
4076 tm_file=i386/netbsd.h
4080 i[34567]86-*-openbsd*)
4081 # we need collect2 until our bug is fixed...
4085 tm_file=i386/i386-coff.h
4086 tmake_file=i386/t-i386bare
4088 i[34567]86-*-isc*) # 80386 running ISC system
4089 xm_file="${xm_file} i386/xm-isc.h"
4090 xm_defines="USG SVR3"
4092 i[34567]86-*-isc[34]*)
4093 xmake_file=i386/x-isc3
4096 xmake_file=i386/x-isc
4099 if test x$gas = xyes -a x$stabs = xyes
4101 tm_file=i386/iscdbx.h
4102 tmake_file=i386/t-svr3dbx
4103 extra_parts="svr3.ifile svr3z.ifile"
4105 tm_file=i386/isccoff.h
4106 tmake_file=i386/t-crtstuff
4107 extra_parts="crtbegin.o crtend.o"
4109 install_headers_dir=install-headers-cpio
4111 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4113 xmake_file=x-linux-aout
4114 tmake_file="t-linux-aout i386/t-crtstuff"
4115 tm_file=i386/linux-oldld.h
4119 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4120 xmake_file=x-linux-aout
4121 tmake_file="t-linux-aout i386/t-crtstuff"
4122 tm_file=i386/linux-aout.h
4126 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4127 # GNU/Linux C library 5
4129 tm_file=i386/linux.h
4130 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4131 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4134 if test x$enable_threads = xyes; then
4135 thread_file='single'
4138 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4139 # aka GNU/Linux C library 6
4141 tm_file=i386/linux.h
4142 tmake_file="t-linux i386/t-crtstuff"
4143 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4146 if test x$enable_threads = xyes; then
4153 i[34567]86-go32-msdos | i[34567]86-*-go32*)
4154 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4157 i[34567]86-pc-msdosdjgpp*)
4158 xm_file=i386/xm-djgpp.h
4159 tm_file=i386/djgpp.h
4160 tmake_file=i386/t-djgpp
4161 xmake_file=i386/x-djgpp
4165 case $host in *pc-msdosdjgpp*)
4170 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
4172 tmake_file=t-libc-ok
4176 i[34567]86-*-lynxos*)
4177 if test x$gas = xyes
4181 tm_file=i386/lynx-ng.h
4183 xm_file=i386/xm-lynx.h
4184 tmake_file=i386/t-i386bare
4189 # tmake_file=t-libc-ok
4192 i[34567]86-*-osfrose*) # 386 using OSF/rose
4193 if test x$elf = xyes
4195 tm_file=i386/osfelf.h
4198 tm_file=i386/osfrose.h
4201 xm_file="i386/xm-osf.h ${xm_file}"
4202 xmake_file=i386/x-osfrose
4203 tmake_file=i386/t-osf
4204 extra_objs=halfpic.o
4206 i[34567]86-go32-rtems*)
4208 xm_file=i386/xm-go32.h
4209 tm_file=i386/go32-rtems.h
4210 tmake_file="i386/t-go32 t-rtems"
4212 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
4214 tm_file=i386/rtemself.h
4215 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
4216 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4218 i[34567]86-*-rtemscoff*)
4220 tm_file=i386/rtems.h
4221 tmake_file="i386/t-i386bare t-rtems"
4223 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
4224 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4225 xm_defines="USG SVR3"
4226 xmake_file=i386/x-sco5
4227 install_headers_dir=install-headers-cpio
4229 if test x$gas = xyes
4231 tm_file="i386/sco5gas.h ${tm_file}"
4232 tmake_file=i386/t-sco5gas
4234 tmake_file=i386/t-sco5
4236 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4238 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
4239 xm_file="${xm_file} i386/xm-sco.h"
4240 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4241 xmake_file=i386/x-sco4
4242 install_headers_dir=install-headers-cpio
4243 if test x$stabs = xyes
4245 tm_file=i386/sco4dbx.h
4246 tmake_file=i386/t-svr3dbx
4247 extra_parts="svr3.ifile svr3z.rfile"
4250 tmake_file=i386/t-crtstuff
4251 extra_parts="crtbegin.o crtend.o"
4253 # The default EAFS filesystem supports long file names.
4254 # Truncating the target makes $host != $target which
4255 # makes gcc think it is doing a cross-compile.
4256 # truncate_target=yes
4258 i[34567]86-*-sco*) # 80386 running SCO system
4259 xm_file=i386/xm-sco.h
4260 xmake_file=i386/x-sco
4261 install_headers_dir=install-headers-cpio
4262 if test x$stabs = xyes
4264 tm_file=i386/scodbx.h
4265 tmake_file=i386/t-svr3dbx
4266 extra_parts="svr3.ifile svr3z.rfile"
4269 extra_parts="crtbegin.o crtend.o"
4270 tmake_file=i386/t-crtstuff
4274 i[34567]86-*-solaris2*)
4275 xm_file="xm-alloca.h ${xm_file}"
4276 xm_defines="USG POSIX SMALL_ARG_MAX"
4278 if test x$gas = xyes; then
4279 # Only needed if gas does not support -s
4280 tm_file="i386/sol2gas.h ${tm_file}"
4282 tmake_file=i386/t-sol2
4283 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4285 if test x${enable_threads} = x; then
4286 enable_threads=$have_pthread_h
4287 if test x${enable_threads} = x; then
4288 enable_threads=$have_thread_h
4291 if test x${enable_threads} = xyes; then
4292 if test x${have_pthread_h} = xyes; then
4295 thread_file='solaris'
4299 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4300 xm_file="xm-alloca.h ${xm_file}"
4301 xm_defines="USG POSIX"
4302 tm_file=i386/sysv5.h
4303 if test x$stabs = xyes
4305 tm_file="${tm_file} dbx.h"
4307 tmake_file=i386/t-crtpic
4309 extra_parts="crtbegin.o crtend.o"
4310 if test x$enable_threads = xyes; then
4314 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4315 xm_file="xm-alloca.h ${xm_file}"
4316 xm_defines="USG POSIX SMALL_ARG_MAX"
4317 tm_file=i386/sysv4.h
4318 if test x$stabs = xyes
4320 tm_file="${tm_file} dbx.h"
4322 tmake_file=i386/t-crtpic
4324 extra_parts="crtbegin.o crtend.o"
4326 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4327 xm_file="xm-alloca.h ${xm_file}"
4328 xm_defines="USG POSIX"
4330 tmake_file="i386/t-crtpic i386/t-udk"
4332 extra_parts="crtbegin.o crtend.o"
4333 install_headers_dir=install-headers-cpio
4335 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4337 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4338 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4339 if test x$stabs = xyes
4341 tm_file=i386/osf1elfgdb.h
4343 tm_file=i386/osf1elf.h
4345 tmake_file=i386/t-osf1elf
4346 xmake_file=i386/x-osf1elf
4347 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4349 i[34567]86-*-sysv*) # Intel 80386's running system V
4350 xm_defines="USG SVR3"
4351 xmake_file=i386/x-sysv3
4352 if test x$gas = xyes
4354 if test x$stabs = xyes
4356 tm_file=i386/svr3dbx.h
4357 tmake_file=i386/t-svr3dbx
4358 extra_parts="svr3.ifile svr3z.rfile"
4360 tm_file=i386/svr3gas.h
4361 extra_parts="crtbegin.o crtend.o"
4362 tmake_file=i386/t-crtstuff
4365 tm_file=i386/sysv3.h
4366 extra_parts="crtbegin.o crtend.o"
4367 tmake_file=i386/t-crtstuff
4370 i386-*-vsta) # Intel 80386's running VSTa kernel
4371 xm_file="${xm_file} i386/xm-vsta.h"
4373 tmake_file=i386/t-vsta
4374 xmake_file=i386/x-vsta
4377 xm_file="${xm_file} i386/xm-cygwin.h"
4378 tmake_file=i386/t-cygwin
4379 tm_file=i386/win32.h
4380 xmake_file=i386/x-cygwin
4382 if test x$enable_threads = xyes; then
4387 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4388 xm_file="${xm_file} i386/xm-cygwin.h"
4389 tmake_file=i386/t-cygwin
4390 tm_file=i386/cygwin.h
4391 xmake_file=i386/x-cygwin
4393 if test x$enable_threads = xyes; then
4398 i[34567]86-*-mingw32*)
4399 tm_file=i386/mingw32.h
4400 xm_file="${xm_file} i386/xm-mingw32.h"
4401 tmake_file="i386/t-cygwin i386/t-mingw32"
4403 xmake_file=i386/x-cygwin
4404 if test x$enable_threads = xyes; then
4411 *minwg32crt* | *mingw32*)
4412 tm_file="${tm_file} i386/crtdll.h"
4418 xm_file="${xm_file} i386/xm-uwin.h"
4419 xm_defines="USG NO_STAB_H"
4420 tmake_file="i386/t-cygwin i386/t-uwin"
4422 xmake_file=i386/x-cygwin
4423 if test x$enable_threads = xyes; then
4428 i[34567]86-*-interix*)
4429 tm_file="i386/i386-interix.h interix.h"
4430 xm_file="i386/xm-i386-interix.h xm-interix.h"
4432 tmake_file="i386/t-interix"
4433 extra_objs=interix.o
4434 xmake_file=x-interix
4435 if test x$enable_threads = xyes ; then
4438 if test x$stabs = xyes ; then
4439 tm_file="${tm_file} dbxcoff.h"
4442 i[34567]86-*-winnt3*)
4443 tm_file=i386/win-nt.h
4444 out_file=i386/i386.c
4445 xm_file="xm-winnt.h ${xm_file}"
4446 xmake_file=winnt/x-winnt
4447 tmake_file=i386/t-winnt
4448 extra_host_objs="winnt.o oldnames.o"
4449 extra_gcc_objs="spawnv.o oldnames.o"
4450 if test x$gnu_ld != xyes
4452 extra_programs=ld.exe
4454 if test x$enable_threads = xyes; then
4458 i[34567]86-dg-dgux*)
4459 xm_file="xm-alloca.h ${xm_file}"
4460 xm_defines="USG POSIX"
4461 out_file=i386/dgux.c
4463 tmake_file=i386/t-dgux
4464 xmake_file=i386/x-dgux
4465 install_headers_dir=install-headers-cpio
4467 i860-alliant-*) # Alliant FX/2800
4468 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4469 xm_file="${xm_file}"
4470 xmake_file=i860/x-fx2800
4471 tmake_file=i860/t-fx2800
4472 extra_parts="crtbegin.o crtend.o"
4475 tm_file="${tm_file} i860/bsd.h"
4476 if test x$gas = xyes
4478 tm_file="${tm_file} i860/bsd-gas.h"
4483 tm_file="${tm_file} i860/mach.h"
4484 tmake_file=t-libc-ok
4486 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4487 tm_file="${tm_file} svr3.h i860/paragon.h"
4488 xm_defines="USG SVR3"
4492 tm_file="${tm_file} svr3.h i860/sysv3.h"
4493 xm_defines="USG SVR3"
4494 xmake_file=i860/x-sysv3
4495 extra_parts="crtbegin.o crtend.o"
4498 tm_file="${tm_file} svr4.h i860/sysv4.h"
4499 xm_defines="USG SVR3"
4500 xmake_file=i860/x-sysv4
4502 extra_parts="crtbegin.o crtend.o"
4504 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4505 tm_file="${tm_file} i960/vx960.h"
4506 tmake_file=i960/t-vxworks960
4508 thread_file='vxworks'
4510 i960-wrs-vxworks5* | i960-wrs-vxworks)
4511 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4512 tmake_file=i960/t-vxworks960
4514 thread_file='vxworks'
4517 tm_file="${tm_file} i960/vx960.h"
4518 tmake_file=i960/t-vxworks960
4520 thread_file='vxworks'
4523 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4524 tmake_file=i960/t-960bare
4528 tmake_file="i960/t-960bare t-rtems"
4529 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4532 i960-*-*) # Default i960 environment.
4536 extra_parts="crtinit.o crtfini.o"
4538 m68000-convergent-sysv*)
4540 xm_file="m68k/xm-3b1.h ${xm_file}"
4543 extra_headers=math-68881.h
4545 m68000-hp-bsd*) # HP 9000/200 running BSD
4546 tm_file=m68k/hp2bsd.h
4547 xmake_file=m68k/x-hp2bsd
4549 extra_headers=math-68881.h
4551 m68000-hp-hpux*) # HP 9000 series 300
4552 xm_file="xm-alloca.h ${xm_file}"
4554 if test x$gas = xyes
4556 xmake_file=m68k/x-hp320g
4557 tm_file=m68k/hp310g.h
4559 xmake_file=m68k/x-hp320
4560 tm_file=m68k/hp310.h
4562 install_headers_dir=install-headers-cpio
4564 extra_headers=math-68881.h
4569 extra_headers=math-68881.h
4572 tm_file=m68k/sun2o4.h
4574 extra_headers=math-68881.h
4577 xm_file="m68k/xm-3b1.h ${xm_file}"
4579 if test x$gas = xyes
4586 extra_headers=math-68881.h
4588 m68k-apple-aux*) # Apple Macintosh running A/UX
4589 xm_defines="USG AUX"
4590 tmake_file=m68k/t-aux
4591 install_headers_dir=install-headers-cpio
4592 extra_headers=math-68881.h
4593 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4595 if test "$gnu_ld" = yes
4597 tm_file="${tm_file} m68k/auxgld.h"
4599 tm_file="${tm_file} m68k/auxld.h"
4601 if test "$gas" = yes
4603 tm_file="${tm_file} m68k/auxgas.h"
4605 tm_file="${tm_file} m68k/auxas.h"
4607 tm_file="${tm_file} m68k/a-ux.h"
4611 tm_file=m68k/apollo68.h
4612 xmake_file=m68k/x-apollo68
4614 extra_headers=math-68881.h
4617 m68k-altos-sysv*) # Altos 3068
4618 if test x$gas = xyes
4620 tm_file=m68k/altos3068.h
4623 echo "The Altos is supported only with the GNU assembler" 1>&2
4626 extra_headers=math-68881.h
4628 m68k-bull-sysv*) # Bull DPX/2
4629 if test x$gas = xyes
4631 if test x$stabs = xyes
4633 tm_file=m68k/dpx2cdbx.h
4635 tm_file=m68k/dpx2g.h
4640 xm_file="xm-alloca.h ${xm_file}"
4642 xmake_file=m68k/x-dpx2
4644 extra_headers=math-68881.h
4646 m68k-atari-sysv4*) # Atari variant of V.4.
4647 tm_file=m68k/atari.h
4648 xm_file="xm-alloca.h ${xm_file}"
4649 xm_defines="USG FULL_PROTOTYPES"
4651 extra_parts="crtbegin.o crtend.o"
4652 extra_headers=math-68881.h
4655 m68k-motorola-sysv*)
4656 tm_file=m68k/mot3300.h
4657 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4658 if test x$gas = xyes
4660 xmake_file=m68k/x-mot3300-gas
4661 if test x$gnu_ld = xyes
4663 tmake_file=m68k/t-mot3300-gald
4665 tmake_file=m68k/t-mot3300-gas
4669 xmake_file=m68k/x-mot3300
4670 if test x$gnu_ld = xyes
4672 tmake_file=m68k/t-mot3300-gld
4674 tmake_file=m68k/t-mot3300
4678 gdb_needs_out_file_path=yes
4679 extra_parts="crt0.o mcrt0.o"
4680 extra_headers=math-68881.h
4683 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4684 tm_file=m68k/tower-as.h
4685 xm_defines="USG SVR3"
4686 xmake_file=m68k/x-tower
4687 extra_parts="crtbegin.o crtend.o"
4688 extra_headers=math-68881.h
4691 tm_file=m68k/plexus.h
4692 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4695 extra_headers=math-68881.h
4699 xm_file="xm-alloca.h ${xm_file}"
4701 extra_headers=math-68881.h
4704 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4705 xm_defines="USG unos"
4706 xmake_file=m68k/x-crds
4709 extra_headers=math-68881.h
4711 m68k-cbm-sysv4*) # Commodore variant of V.4.
4713 xm_file="xm-alloca.h ${xm_file}"
4714 xm_defines="USG FULL_PROTOTYPES"
4715 xmake_file=m68k/x-amix
4717 extra_parts="crtbegin.o crtend.o"
4718 extra_headers=math-68881.h
4722 tm_file=m68k/ccur-GAS.h
4723 xmake_file=m68k/x-ccur
4724 extra_headers=math-68881.h
4728 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4729 tm_file=m68k/hp3bsd44.h
4730 xmake_file=m68k/x-hp3bsd44
4732 extra_headers=math-68881.h
4735 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4736 tm_file=m68k/hp3bsd.h
4738 extra_headers=math-68881.h
4742 if test x$with_fp = xno
4744 tm_file=m68k/isi-nfp.h
4750 extra_headers=math-68881.h
4752 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4753 xm_file="xm-alloca.h ${xm_file}"
4755 if test x$gas = xyes
4757 xmake_file=m68k/x-hp320g
4758 tm_file=m68k/hp320g.h
4760 xmake_file=m68k/x-hp320
4761 tm_file=m68k/hpux7.h
4763 install_headers_dir=install-headers-cpio
4765 extra_headers=math-68881.h
4768 m68k-hp-hpux*) # HP 9000 series 300
4769 xm_file="xm-alloca.h ${xm_file}"
4771 if test x$gas = xyes
4773 xmake_file=m68k/x-hp320g
4774 tm_file=m68k/hp320g.h
4776 xmake_file=m68k/x-hp320
4777 tm_file=m68k/hp320.h
4779 install_headers_dir=install-headers-cpio
4781 extra_headers=math-68881.h
4785 tm_file=m68k/sun3mach.h
4787 extra_headers=math-68881.h
4791 if test x$gas = xyes
4793 tm_file=m68k/news3gas.h
4795 tm_file=m68k/news3.h
4798 extra_headers=math-68881.h
4801 m68k-sony-bsd* | m68k-sony-newsos*)
4802 if test x$gas = xyes
4804 tm_file=m68k/newsgas.h
4809 extra_headers=math-68881.h
4812 m68k-next-nextstep2*)
4813 tm_file=m68k/next21.h
4814 xm_file="m68k/xm-next.h ${xm_file}"
4815 tmake_file=m68k/t-next
4816 xmake_file=m68k/x-next
4817 extra_objs=nextstep.o
4818 extra_headers=math-68881.h
4822 m68k-next-nextstep[34]*)
4824 xm_file="m68k/xm-next.h ${xm_file}"
4825 tmake_file=m68k/t-next
4826 xmake_file=m68k/x-next
4827 extra_objs=nextstep.o
4828 extra_parts="crtbegin.o crtend.o"
4829 extra_headers=math-68881.h
4831 if test x$enable_threads = xyes; then
4836 if test x$with_fp = xno
4838 tm_file=m68k/sun3n3.h
4840 tm_file=m68k/sun3o3.h
4844 extra_headers=math-68881.h
4846 m68k-sun-sunos*) # For SunOS 4 (the default).
4847 if test x$with_fp = xno
4849 tm_file=m68k/sun3n.h
4855 extra_headers=math-68881.h
4858 tm_file=m68k/vxm68k.h
4859 tmake_file=m68k/t-vxworks68
4860 extra_headers=math-68881.h
4861 thread_file='vxworks'
4865 tmake_file=m68k/t-m68kbare
4866 tm_file="m68k/m68k-aout.h libgloss.h"
4867 extra_headers=math-68881.h
4871 tmake_file=m68k/t-m68kbare
4872 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4873 extra_headers=math-68881.h
4876 m68020-*-elf* | m68k-*-elf*)
4877 tm_file="m68k/m68020-elf.h"
4878 xm_file=m68k/xm-m68kv.h
4879 tmake_file=m68k/t-m68kelf
4880 header_files=math-68881.h
4883 if test x$gas = xyes
4887 tm_file=m68k/lynx-ng.h
4889 xm_file=m68k/xm-lynx.h
4891 tmake_file=m68k/t-lynx
4892 extra_headers=math-68881.h
4896 tm_file=m68k/netbsd.h
4903 # we need collect2 until our bug is fixed...
4906 m68k-*-sysv3*) # Motorola m68k's running system V.3
4907 xm_file="xm-alloca.h ${xm_file}"
4909 xmake_file=m68k/x-m68kv
4910 extra_parts="crtbegin.o crtend.o"
4911 extra_headers=math-68881.h
4914 m68k-*-sysv4*) # Motorola m68k's running system V.4
4915 tm_file=m68k/m68kv4.h
4916 xm_file="xm-alloca.h ${xm_file}"
4919 extra_parts="crtbegin.o crtend.o"
4920 extra_headers=math-68881.h
4923 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4926 tm_file=m68k/linux-aout.h
4927 tmake_file="t-linux-aout m68k/t-linux-aout"
4928 extra_headers=math-68881.h
4932 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4933 # with ELF format using the
4934 # GNU/Linux C library 5
4936 tm_file=m68k/linux.h
4937 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4938 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4939 extra_headers=math-68881.h
4943 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4944 # with ELF format using glibc 2
4945 # aka the GNU/Linux C library 6.
4947 tm_file=m68k/linux.h
4948 tmake_file="t-linux m68k/t-linux"
4949 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4950 extra_headers=math-68881.h
4953 if test x$enable_threads = xyes; then
4958 tmake_file=m68k/t-m68kbare
4959 tm_file=m68k/m68k-psos.h
4960 extra_headers=math-68881.h
4964 tmake_file="m68k/t-m68kbare t-rtems"
4965 tm_file=m68k/rtems.h
4966 extra_headers=math-68881.h
4969 m68k-*-rtemself*|m68k-*-rtems*)
4970 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4971 tm_file=m68k/rtemself.h
4972 extra_headers=math-68881.h
4978 tm_file=m88k/dguxbcs.h
4979 tmake_file=m88k/t-dguxbcs
4983 tmake_file=m88k/t-dgux
4986 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4987 xmake_file=m88k/x-dgux
4988 if test x$gas = xyes
4990 tmake_file=m88k/t-dgux-gas
4993 m88k-dolphin-sysv3*)
4994 tm_file=m88k/dolph.h
4995 extra_parts="crtbegin.o crtend.o"
4996 xm_file="m88k/xm-sysv3.h ${xm_file}"
4997 xmake_file=m88k/x-dolph
4998 if test x$gas = xyes
5000 tmake_file=m88k/t-m88k-gas
5003 m88k-tektronix-sysv3)
5004 tm_file=m88k/tekXD88.h
5005 extra_parts="crtbegin.o crtend.o"
5006 xm_file="m88k/xm-sysv3.h ${xm_file}"
5007 xmake_file=m88k/x-tekXD88
5008 if test x$gas = xyes
5010 tmake_file=m88k/t-m88k-gas
5014 tm_file=m88k/m88k-aout.h
5017 tm_file=m88k/m88k-coff.h
5018 tmake_file=m88k/t-bug
5022 extra_parts="crtbegin.o crtend.o"
5023 if test x$gas = xyes
5025 tmake_file=m88k/t-luna-gas
5027 tmake_file=m88k/t-luna
5031 tmake_file="${tmake_file} m88k/t-luna-gas"
5034 tm_file=m88k/sysv3.h
5035 extra_parts="crtbegin.o crtend.o"
5036 xm_file="m88k/xm-sysv3.h ${xm_file}"
5037 xmake_file=m88k/x-sysv3
5038 if test x$gas = xyes
5040 tmake_file=m88k/t-m88k-gas
5044 tm_file=m88k/sysv4.h
5045 extra_parts="crtbegin.o crtend.o"
5046 xmake_file=m88k/x-sysv4
5047 tmake_file=m88k/t-sysv4
5049 mips-sgi-irix6*) # SGI System V.4., IRIX 6
5050 if test "x$gnu_ld" = xyes
5052 tm_file="mips/iris6.h mips/iris6gld.h"
5054 tm_file=mips/iris6.h
5056 tmake_file=mips/t-iris6
5057 xm_file=mips/xm-iris6.h
5058 xmake_file=mips/x-iris6
5059 # if test x$enable_threads = xyes; then
5060 # thread_file='irix'
5064 tm_file="mips/elf.h mips/vxworks.h"
5065 tmake_file=mips/t-ecoff
5068 extra_parts="crtbegin.o crtend.o"
5069 thread_file='vxworks'
5071 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
5072 tm_file="mips/iris6.h mips/cross64.h"
5074 xm_file="mips/xm-iris5.h"
5075 xmake_file=mips/x-iris
5076 tmake_file=mips/t-cross64
5077 # See comment in mips/iris[56].h files.
5079 # if test x$enable_threads = xyes; then
5080 # thread_file='irix'
5084 if test x$gas = xyes
5086 if test x$stabs = xyes
5088 tm_file=mips/iris5gdb.h
5090 tm_file="mips/sni-svr4.h mips/sni-gas.h"
5093 tm_file=mips/sni-svr4.h
5096 xmake_file=mips/x-sni-svr4
5097 tmake_file=mips/t-mips-gas
5098 if test x$gnu_ld != xyes
5103 mips-sgi-irix5*) # SGI System V.4., IRIX 5
5104 if test x$gas = xyes
5106 tm_file="mips/iris5.h mips/iris5gas.h"
5107 if test x$stabs = xyes
5109 tm_file="${tm_file} dbx.h"
5112 tm_file=mips/iris5.h
5115 xm_file="mips/xm-iris5.h"
5116 xmake_file=mips/x-iris
5117 # mips-tfile doesn't work yet
5118 tmake_file=mips/t-mips-gas
5119 # See comment in mips/iris5.h file.
5121 # if test x$enable_threads = xyes; then
5122 # thread_file='irix'
5125 mips-sgi-irix4loser*) # Mostly like a MIPS.
5126 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5127 if test x$stabs = xyes; then
5128 tm_file="${tm_file} dbx.h"
5131 xmake_file=mips/x-iris
5132 if test x$gas = xyes
5134 tmake_file=mips/t-mips-gas
5136 extra_passes="mips-tfile mips-tdump"
5138 if test x$gnu_ld != xyes
5142 # if test x$enable_threads = xyes; then
5143 # thread_file='irix'
5146 mips-sgi-irix4*) # Mostly like a MIPS.
5147 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
5148 if test x$stabs = xyes; then
5149 tm_file="${tm_file} dbx.h"
5152 xmake_file=mips/x-iris
5153 if test x$gas = xyes
5155 tmake_file=mips/t-mips-gas
5157 extra_passes="mips-tfile mips-tdump"
5159 if test x$gnu_ld != xyes
5163 # if test x$enable_threads = xyes; then
5164 # thread_file='irix'
5167 mips-sgi-*) # Mostly like a MIPS.
5168 tm_file="mips/iris3.h ${tm_file}"
5169 if test x$stabs = xyes; then
5170 tm_file="${tm_file} dbx.h"
5173 xmake_file=mips/x-iris3
5174 if test x$gas = xyes
5176 tmake_file=mips/t-mips-gas
5178 extra_passes="mips-tfile mips-tdump"
5180 if test x$gnu_ld != xyes
5185 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
5186 tm_file="mips/osfrose.h ${tm_file}"
5187 xmake_file=mips/x-osfrose
5188 tmake_file=mips/t-osfrose
5189 extra_objs=halfpic.o
5192 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
5193 tm_file=mips/dec-osf1.h
5194 if test x$stabs = xyes; then
5195 tm_file="${tm_file} dbx.h"
5197 xmake_file=mips/x-dec-osf1
5198 if test x$gas = xyes
5200 tmake_file=mips/t-mips-gas
5202 tmake_file=mips/t-ultrix
5203 extra_passes="mips-tfile mips-tdump"
5205 if test x$gnu_ld != xyes
5210 mips-dec-bsd*) # Decstation running 4.4 BSD
5211 tm_file=mips/dec-bsd.h
5212 if test x$gas = xyes
5214 tmake_file=mips/t-mips-gas
5216 tmake_file=mips/t-ultrix
5217 extra_passes="mips-tfile mips-tdump"
5219 if test x$gnu_ld != xyes
5224 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
5225 tm_file=mips/netbsd.h
5226 # On NetBSD, the headers are already okay, except for math.h.
5229 mips*-*-linux*) # Linux MIPS, either endian.
5232 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
5233 *) tm_file="mips/elf.h mips/linux.h" ;;
5235 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5238 if test x$enable_threads = xyes; then
5242 mips*el-*-openbsd*) # mips little endian
5243 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5245 mips*-*-openbsd*) # mips big endian
5246 target_cpu_default="MASK_GAS|MASK_ABICALLS"
5247 tm_file="mips/openbsd-be.h ${tm_file}"
5249 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
5250 tm_file="mips/news4.h ${tm_file}"
5251 if test x$stabs = xyes; then
5252 tm_file="${tm_file} dbx.h"
5254 if test x$gas = xyes
5256 tmake_file=mips/t-mips-gas
5258 extra_passes="mips-tfile mips-tdump"
5260 if test x$gnu_ld != xyes
5264 xmake_file=mips/x-sony
5266 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
5267 # That is based on svr4.
5268 # t-svr4 is not right because this system doesn't use ELF.
5269 tm_file="mips/news5.h ${tm_file}"
5270 if test x$stabs = xyes; then
5271 tm_file="${tm_file} dbx.h"
5274 if test x$gas = xyes
5276 tmake_file=mips/t-mips-gas
5278 extra_passes="mips-tfile mips-tdump"
5280 if test x$gnu_ld != xyes
5285 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5286 tm_file="mips/svr4-5.h mips/svr4-t.h"
5287 if test x$stabs = xyes; then
5288 tm_file="${tm_file} dbx.h"
5291 xmake_file=mips/x-sysv
5292 if test x$gas = xyes
5294 tmake_file=mips/t-mips-gas
5295 extra_parts="crtbegin.o crtend.o"
5297 tmake_file=mips/t-mips
5298 extra_passes="mips-tfile mips-tdump"
5300 if test x$gnu_ld != xyes
5305 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5306 tm_file="mips/ultrix.h ${tm_file}"
5307 if test x$stabs = xyes; then
5308 tm_file="${tm_file} dbx.h"
5310 xmake_file=mips/x-ultrix
5311 if test x$gas = xyes
5313 tmake_file=mips/t-mips-gas
5315 tmake_file=mips/t-ultrix
5316 extra_passes="mips-tfile mips-tdump"
5318 if test x$gnu_ld != xyes
5323 mips-*-riscos[56789]bsd*)
5324 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5325 if test x$stabs = xyes; then
5326 tm_file="${tm_file} dbx.h"
5328 if test x$gas = xyes
5330 tmake_file=mips/t-bsd-gas
5332 tmake_file=mips/t-bsd
5333 extra_passes="mips-tfile mips-tdump"
5335 if test x$gnu_ld != xyes
5340 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5341 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5342 if test x$stabs = xyes; then
5343 tm_file="${tm_file} dbx.h"
5345 if test x$gas = xyes
5347 tmake_file=mips/t-bsd-gas
5349 tmake_file=mips/t-bsd
5350 extra_passes="mips-tfile mips-tdump"
5352 if test x$gnu_ld != xyes
5357 mips-*-riscos[56789]sysv4*)
5358 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5359 if test x$stabs = xyes; then
5360 tm_file="${tm_file} dbx.h"
5362 xmake_file=mips/x-sysv
5363 if test x$gas = xyes
5365 tmake_file=mips/t-svr4-gas
5367 tmake_file=mips/t-svr4
5368 extra_passes="mips-tfile mips-tdump"
5370 if test x$gnu_ld != xyes
5375 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5376 tm_file="mips/svr4-4.h ${tm_file}"
5377 if test x$stabs = xyes; then
5378 tm_file="${tm_file} dbx.h"
5381 xmake_file=mips/x-sysv
5382 if test x$gas = xyes
5384 tmake_file=mips/t-svr4-gas
5386 tmake_file=mips/t-svr4
5387 extra_passes="mips-tfile mips-tdump"
5389 if test x$gnu_ld != xyes
5394 mips-*-riscos[56789]sysv*)
5395 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5396 if test x$stabs = xyes; then
5397 tm_file="${tm_file} dbx.h"
5400 xmake_file=mips/x-sysv
5401 if test x$gas = xyes
5403 tmake_file=mips/t-svr3-gas
5405 tmake_file=mips/t-svr3
5406 extra_passes="mips-tfile mips-tdump"
5408 if test x$gnu_ld != xyes
5413 mips-*-sysv* | mips-*-riscos*sysv*)
5414 tm_file="mips/svr3-4.h ${tm_file}"
5415 if test x$stabs = xyes; then
5416 tm_file="${tm_file} dbx.h"
5419 xmake_file=mips/x-sysv
5420 if test x$gas = xyes
5422 tmake_file=mips/t-svr3-gas
5424 tmake_file=mips/t-svr3
5425 extra_passes="mips-tfile mips-tdump"
5427 if test x$gnu_ld != xyes
5432 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5433 tm_file=mips/mips-5.h
5434 if test x$stabs = xyes; then
5435 tm_file="${tm_file} dbx.h"
5437 if test x$gas = xyes
5439 tmake_file=mips/t-mips-gas
5441 extra_passes="mips-tfile mips-tdump"
5443 if test x$gnu_ld != xyes
5451 tm_file=mips/ecoffl.h
5452 if test x$stabs = xyes; then
5453 tm_file="${tm_file} dbx.h"
5455 tmake_file=mips/t-ecoff
5458 tm_file="gofast.h mips/ecoff.h"
5459 if test x$stabs = xyes; then
5460 tm_file="${tm_file} dbx.h"
5462 tmake_file=mips/t-ecoff
5465 tm_file="mips/elfl.h"
5466 tmake_file=mips/t-elf
5469 tm_file="mips/elf.h"
5470 tmake_file=mips/t-elf
5473 tm_file="mips/elfl64.h"
5474 tmake_file=mips/t-elf
5476 mips64orionel-*-elf*)
5477 tm_file="mips/elforion.h mips/elfl64.h"
5478 tmake_file=mips/t-elf
5481 tm_file="mips/elf64.h"
5482 tmake_file=mips/t-elf
5485 tm_file="mips/elforion.h mips/elf64.h"
5486 tmake_file=mips/t-elf
5488 mips64orion-*-rtems*)
5489 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5490 tmake_file="mips/t-elf t-rtems"
5493 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5494 tmake_file=mips/t-r3900
5497 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5498 tmake_file=mips/t-r3900
5500 mips-*-*) # Default MIPS RISC-OS 4.0.
5501 if test x$stabs = xyes; then
5502 tm_file="${tm_file} dbx.h"
5504 if test x$gas = xyes
5506 tmake_file=mips/t-mips-gas
5508 extra_passes="mips-tfile mips-tdump"
5510 if test x$gnu_ld != xyes
5518 tm_file="mn10200/mn10200.h"
5519 if test x$stabs = xyes
5521 tm_file="${tm_file} dbx.h"
5527 tm_file="mn10300/mn10300.h"
5528 if test x$stabs = xyes
5530 tm_file="${tm_file} dbx.h"
5535 tm_file=ns32k/encore.h
5539 tm_file=ns32k/sequent.h
5543 tm_file=ns32k/tek6100.h
5547 tm_file=ns32k/tek6200.h
5550 # This has not been updated to GCC 2.
5553 # xmake_file=ns32k/x-genix
5554 # tm_file=ns32k/genix.h
5558 tm_file=ns32k/merlin.h
5562 tm_file=ns32k/pc532-mach.h
5566 tm_file=ns32k/pc532-min.h
5567 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5572 tm_file=ns32k/netbsd.h
5573 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5574 # On NetBSD, the headers are already okay, except for math.h.
5579 tm_file="${tm_file} pdp11/2bsd.h"
5586 # This has not been updated to GCC 2.
5589 # xmake_file=pyr/x-pyr
5594 tm_file="svr4.h pj/linux.h ${tm_file}"
5599 tm_file="svr4.h pj/pjl.h ${tm_file}"
5606 xmake_file=romp/x-mach
5613 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5617 tm_file=rs6000/beos.h
5618 xm_file=rs6000/xm-beos.h
5619 tmake_file=rs6000/t-beos
5620 xmake_file=rs6000/x-beos
5622 powerpc-*-sysv* | powerpc-*-elf*)
5623 tm_file=rs6000/sysv4.h
5624 xm_file="rs6000/xm-sysv4.h"
5625 xm_defines="USG POSIX"
5626 extra_headers=ppc-asm.h
5627 if test x$gas = xyes
5629 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5631 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5633 xmake_file=rs6000/x-sysv4
5636 tm_file=rs6000/eabiaix.h
5637 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5638 extra_headers=ppc-asm.h
5641 tm_file=rs6000/eabisim.h
5642 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5643 extra_headers=ppc-asm.h
5646 tm_file=rs6000/eabi.h
5647 if test x$gas = xyes
5649 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5651 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5653 extra_headers=ppc-asm.h
5656 tm_file=rs6000/rtems.h
5657 if test x$gas = xyes
5659 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5661 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5663 extra_headers=ppc-asm.h
5665 powerpc-*-linux-gnulibc1)
5666 tm_file=rs6000/linux.h
5667 xm_file=rs6000/xm-sysv4.h
5668 out_file=rs6000/rs6000.c
5669 if test x$gas = xyes
5671 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5673 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5676 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5677 extra_headers=ppc-asm.h
5678 if test x$enable_threads = xyes; then
5682 powerpc-*-linux-gnu*)
5683 tm_file=rs6000/linux.h
5684 xm_file="rs6000/xm-sysv4.h"
5685 xm_defines="USG ${xm_defines}"
5686 out_file=rs6000/rs6000.c
5687 if test x$gas = xyes
5689 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5691 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5694 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5695 extra_headers=ppc-asm.h
5696 if test x$enable_threads = xyes; then
5700 powerpc-wrs-vxworks*)
5702 xm_file="rs6000/xm-sysv4.h"
5703 xm_defines="USG POSIX"
5704 tm_file=rs6000/vxppc.h
5705 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5706 extra_headers=ppc-asm.h
5707 thread_file='vxworks'
5709 powerpcle-*-sysv* | powerpcle-*-elf*)
5710 tm_file=rs6000/sysv4le.h
5711 xm_file="rs6000/xm-sysv4.h"
5712 xm_defines="USG POSIX"
5713 if test x$gas = xyes
5715 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5717 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5719 xmake_file=rs6000/x-sysv4
5720 extra_headers=ppc-asm.h
5722 powerpcle-*-eabisim*)
5723 tm_file=rs6000/eabilesim.h
5724 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5725 extra_headers=ppc-asm.h
5728 tm_file=rs6000/eabile.h
5729 if test x$gas = xyes
5731 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5733 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5735 extra_headers=ppc-asm.h
5737 powerpcle-*-winnt* )
5738 tm_file=rs6000/win-nt.h
5739 tmake_file=rs6000/t-winnt
5741 if test x$enable_threads = xyes; then
5744 extra_headers=ppc-asm.h
5746 powerpcle-*-pe | powerpcle-*-cygwin*)
5747 tm_file=rs6000/cygwin.h
5748 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5749 tmake_file=rs6000/t-winnt
5750 xmake_file=rs6000/x-cygwin
5752 if test x$enable_threads = xyes; then
5756 extra_headers=ppc-asm.h
5758 powerpcle-*-solaris2*)
5759 tm_file=rs6000/sol2.h
5760 xm_file="rs6000/xm-sysv4.h"
5761 xm_defines="USG POSIX"
5762 if test x$gas = xyes
5764 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5766 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5768 xmake_file=rs6000/x-sysv4
5769 extra_headers=ppc-asm.h
5771 rs6000-ibm-aix3.[01]*)
5772 tm_file=rs6000/aix31.h
5773 xmake_file=rs6000/x-aix31
5777 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5778 tm_file=rs6000/aix3newas.h
5779 if test x$host != x$target
5781 tmake_file=rs6000/t-xnewas
5783 tmake_file=rs6000/t-newas
5788 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5789 tm_file=rs6000/aix41.h
5790 if test x$host != x$target
5792 tmake_file=rs6000/t-xnewas
5794 tmake_file=rs6000/t-newas
5796 if test "$gnu_ld" = yes
5798 xmake_file=rs6000/x-aix41-gld
5800 xmake_file=rs6000/x-aix41
5805 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5806 tm_file=rs6000/aix43.h
5807 if test x$host != x$target
5809 tmake_file=rs6000/t-xaix43
5811 tmake_file=rs6000/t-aix43
5813 xmake_file=rs6000/x-aix43
5817 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5818 tm_file=rs6000/aix43.h
5819 if test x$host != x$target
5821 tmake_file=rs6000/t-xaix43
5823 tmake_file=rs6000/t-aix43
5825 xmake_file=rs6000/x-aix43
5838 tm_file=rs6000/mach.h
5839 xm_file="${xm_file} rs6000/xm-mach.h"
5840 xmake_file=rs6000/x-mach
5844 tm_file=rs6000/lynx.h
5845 xm_file=rs6000/xm-lynx.h
5846 tmake_file=rs6000/t-rs6000
5847 xmake_file=rs6000/x-lynx
5855 tmake_file="sh/t-sh t-rtems"
5856 tm_file=sh/rtemself.h
5860 tmake_file="sh/t-sh t-rtems"
5869 xm_file="xm-alloca.h ${xm_file}"
5872 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5873 tm_file=sparc/vxsparc.h
5874 tmake_file=sparc/t-vxsparc
5876 thread_file='vxworks'
5879 tmake_file=sparc/t-sparcbare
5880 tm_file="sparc/aout.h libgloss.h"
5883 tm_file=sparc/netbsd.h
5888 # we need collect2 until our bug is fixed...
5896 tmake_file=sparc/t-elf
5897 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5901 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5902 xm_file="${xm_file} sparc/xm-linux.h"
5903 tm_file=sparc/linux-aout.h
5907 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5908 xm_file="${xm_file} sparc/xm-linux.h"
5910 tm_file=sparc/linux.h
5911 tmake_file="t-linux t-linux-gnulibc1"
5912 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5916 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5917 xm_file="${xm_file} sparc/xm-linux.h"
5919 tm_file=sparc/linux.h
5920 tmake_file="t-linux"
5921 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5923 if test x$enable_threads = xyes; then
5929 if test x$gas = xyes
5931 tm_file=sparc/lynx.h
5933 tm_file=sparc/lynx-ng.h
5935 xm_file=sparc/xm-lynx.h
5936 tmake_file=sparc/t-sunos41
5940 tmake_file="sparc/t-sparcbare t-rtems"
5941 tm_file=sparc/rtems.h
5942 sparc-*-rtems*|sparc-*-rtemself*)
5943 tm_file="sparc/rtemself.h"
5944 tmake_file="sparc/t-elf t-rtems"
5945 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5950 sparcv9-*-solaris2*)
5951 if test x$gnu_ld = xyes
5953 tm_file=sparc/sol2-64.h
5955 tm_file=sparc/sol2-sld-64.h
5957 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5958 xm_defines="USG POSIX"
5959 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5960 xmake_file=sparc/x-sysv4
5961 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5963 if test x${enable_threads} = x ; then
5964 enable_threads=$have_pthread_h
5965 if test x${enable_threads} = x ; then
5966 enable_threads=$have_thread_h
5969 if test x${enable_threads} = xyes ; then
5970 if test x${have_pthread_h} = xyes ; then
5973 thread_file='solaris'
5977 sparc-hal-solaris2*)
5978 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
5979 xm_defines="USG POSIX"
5980 tm_file="sparc/sol2.h sparc/hal.h"
5981 tmake_file="sparc/t-halos sparc/t-sol2"
5982 xmake_file=sparc/x-sysv4
5983 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5992 thread_file='solaris'
5995 if test x$gnu_ld = xyes
5997 tm_file=sparc/sol2.h
5999 tm_file=sparc/sol2-sld.h
6001 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6002 xm_defines="USG POSIX"
6003 tmake_file=sparc/t-sol2
6004 xmake_file=sparc/x-sysv4
6005 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6007 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6009 if test x$gnu_ld = xyes
6011 tm_file=sparc/sol2-64.h
6013 tm_file=sparc/sol2-sld-64.h
6015 tmake_file="$tmake_file sparc/t-sol2-64"
6026 if test x${enable_threads} = x; then
6027 enable_threads=$have_pthread_h
6028 if test x${enable_threads} = x; then
6029 enable_threads=$have_thread_h
6032 if test x${enable_threads} = xyes; then
6033 if test x${have_pthread_h} = xyes; then
6036 thread_file='solaris'
6041 tm_file=sparc/sunos4.h
6042 tmake_file=sparc/t-sunos40
6046 tm_file=sparc/sunos4.h
6047 tmake_file=sparc/t-sunos41
6049 if test x$gas = xyes; then
6050 tm_file="${tm_file} sparc/sun4gas.h"
6054 tm_file=sparc/sun4o3.h
6058 tm_file=sparc/sysv4.h
6059 xm_file="sparc/xm-sysv4.h"
6060 xm_defines="USG POSIX"
6062 xmake_file=sparc/x-sysv4
6063 extra_parts="crtbegin.o crtend.o"
6066 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
6067 xm_defines="USG POSIX"
6068 tm_file=sparc/vxsim.h
6069 tmake_file=sparc/t-vxsparc
6070 xmake_file=sparc/x-sysv4
6073 tm_file="sparc/splet.h libgloss.h"
6074 tmake_file=sparc/t-splet
6077 tm_file="sparc/litecoff.h libgloss.h"
6078 tmake_file=sparc/t-sparclite
6081 tm_file="sparc/lite.h aoutos.h libgloss.h"
6082 tmake_file=sparc/t-sparclite
6085 tm_file="sparc/liteelf.h"
6086 tmake_file=sparc/t-sparclite
6087 extra_parts="crtbegin.o crtend.o"
6090 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
6091 tmake_file=sparc/t-sp86x
6094 tm_file="sparc/sp86x-elf.h"
6095 tmake_file=sparc/t-sp86x
6096 extra_parts="crtbegin.o crtend.o"
6099 tmake_file=sparc/t-sp64
6100 tm_file=sparc/sp64-aout.h
6103 tmake_file=sparc/t-sp64
6104 tm_file=sparc/sp64-elf.h
6105 extra_parts="crtbegin.o crtend.o"
6107 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
6108 tmake_file="t-linux sparc/t-linux64"
6109 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
6110 tm_file=sparc/linux64.h
6112 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6114 if test x$enable_threads = xyes; then
6119 # This hasn't been upgraded to GCC 2.
6120 # tahoe-harris-*) # Harris tahoe, using COFF.
6121 # tm_file=tahoe/harris.h
6123 # tahoe-*-bsd*) # tahoe running BSD
6125 thumb-*-coff* | thumbel-*-coff*)
6127 out_file=arm/thumb.c
6128 xm_file=arm/xm-thumb.h
6129 md_file=arm/thumb.md
6130 tmake_file=arm/t-thumb
6132 thumb-*-elf* | thumbel-*-elf*)
6134 out_file=arm/thumb.c
6135 xm_file=arm/xm-thumb.h
6136 md_file=arm/thumb.md
6137 tmake_file=arm/t-thumb-elf
6140 tm_file=arm/linux-telf.h
6141 out_file=arm/thumb.c
6142 xm_file=arm/xm-thumb.h
6143 md_file=arm/thumb.md
6144 tmake_file=arm/t-thumb-linux
6147 tm_file=arm/uclinux-telf.h
6148 out_file=arm/thumb.c
6149 md_file=arm/thumb.md
6150 tmake_file=arm/t-thumb-linux
6151 xm_file=arm/xm-thumb.h
6155 out_file=arm/thumb.c
6156 xm_file=arm/xm-thumb.h
6157 md_file=arm/thumb.md
6158 tmake_file=arm/t-thumb
6159 thread_file='vxworks'
6163 out_file=arm/thumb.c
6164 xm_file=arm/xm-thumb.h
6165 md_file=arm/thumb.md
6166 tmake_file=arm/t-pe-thumb
6169 # This hasn't been upgraded to GCC 2.
6176 tm_file="v850/rtems.h"
6177 xm_file="v850/xm-v850.h"
6178 tmake_file="v850/t-v850 t-rtems"
6179 if test x$stabs = xyes
6181 tm_file="${tm_file} dbx.h"
6186 target_cpu_default="TARGET_CPU_generic"
6188 tm_file="v850/v850.h"
6189 xm_file="v850/xm-v850.h"
6190 tmake_file=v850/t-v850
6191 if test x$stabs = xyes
6193 tm_file="${tm_file} dbx.h"
6197 vax-*-bsd*) # vaxen running BSD
6201 vax-*-sysv*) # vaxen running system V
6202 tm_file="${tm_file} vax/vaxv.h"
6207 tm_file="${tm_file} netbsd.h vax/netbsd.h"
6213 tmake_file="${tmake_file} vax/t-openbsd"
6215 vax-*-ultrix*) # vaxen running ultrix
6216 tm_file="${tm_file} vax/ultrix.h"
6220 vax-*-vms*) # vaxen running VMS
6221 xm_file=vax/xm-vms.h
6225 vax-*-*) # vax default entry
6229 xm_file="${xm_file} xm-svr3"
6233 echo "Configuration $machine not supported" 1>&2
6240 ;; # Existing GNU/Linux systems do not use the GNU setup.
6242 # On the GNU system, the setup is just about the same on
6243 # each different CPU. The specific machines that GNU
6244 # supports are matched above and just set $cpu_type.
6245 xm_file="xm-gnu.h ${xm_file}"
6246 tm_file=${cpu_type}/gnu.h
6247 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6248 # GNU always uses ELF.
6250 # GNU tools are the only tools.
6253 xmake_file=x-linux # These details are the same as Linux.
6254 tmake_file=t-gnu # These are not.
6257 xmake_try_sysv=x-sysv
6258 install_headers_dir=install-headers-cpio
6261 install_headers_dir=install-headers-cpio
6265 # Distinguish i[34567]86
6266 # Also, do not run mips-tfile on MIPS if using gas.
6267 # Process --with-cpu= for PowerPC/rs6000
6268 target_cpu_default2=
6271 target_cpu_default2=1
6274 case $target_alias in
6276 target_cpu_default2=4
6279 target_cpu_default2=2
6283 i686-*-* | i786-*-*)
6284 target_cpu_default2=3
6289 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6292 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6295 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6298 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
6301 target_cpu_default2="MASK_CPU_EV5"
6305 if test x$gas = xyes
6307 if test "$target_cpu_default2" = ""
6309 target_cpu_default2="MASK_GAS"
6311 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6316 case "x$with_cpu" in
6319 target_cpu_default2="TARGET_CPU_generic"
6322 # Distinguish cores, and major variants
6323 # arm7m doesn't exist, but D & I don't affect code
6324 xarm[23678] | xarm250 | xarm[67][01]0 \
6325 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6326 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6327 | xstrongarm | xstrongarm110 | xstrongarm1100)
6328 target_cpu_default2="TARGET_CPU_$with_cpu"
6332 echo "--with-cpu must be passed a value" 1>&2
6337 if test x$pass2done = xyes
6339 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6346 mips*-*-ecoff* | mips*-*-elf*)
6347 if test x$gas = xyes
6349 if test x$gnu_ld = xyes
6351 target_cpu_default2=20
6353 target_cpu_default2=16
6358 if test x$gas = xyes
6360 target_cpu_default2=16
6363 powerpc*-*-* | rs6000-*-*)
6364 case "x$with_cpu" in
6368 xcommon | xpower | xpower2 | xpowerpc | xrios \
6369 | xrios1 | xrios2 | xrsc | xrsc1 \
6370 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6371 | xec603e | x740 | x750 | x401 \
6372 | x403 | x505 | x801 | x821 | x823 | x860)
6373 target_cpu_default2="\"$with_cpu\""
6377 echo "--with-cpu must be passed a value" 1>&2
6382 if test x$pass2done = xyes
6384 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6391 case ".$with_cpu" in
6393 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6395 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6396 target_cpu_default2="TARGET_CPU_$with_cpu"
6399 if test x$pass2done = xyes
6401 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6409 if test "$target_cpu_default2" != ""
6411 if test "$target_cpu_default" != ""
6413 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6415 target_cpu_default=$target_cpu_default2
6419 # No need for collect2 if we have the GNU linker.
6420 # Actually, there is now; GNU ld doesn't handle the EH info or
6421 # collecting for shared libraries.
6428 # Save data on machine being used to compile GCC in build_xm_file.
6429 # Save data on host machine in vars host_xm_file and host_xmake_file.
6430 if test x$pass1done = x
6432 if test x"$xm_file" = x
6433 then build_xm_file=$cpu_type/xm-$cpu_type.h
6434 else build_xm_file=$xm_file
6436 build_xm_defines=$xm_defines
6437 build_install_headers_dir=$install_headers_dir
6438 build_exeext=$exeext
6441 if test x$pass2done = x
6443 if test x"$xm_file" = x
6444 then host_xm_file=$cpu_type/xm-$cpu_type.h
6445 else host_xm_file=$xm_file
6447 host_xm_defines=$xm_defines
6448 if test x"$xmake_file" = x
6449 then xmake_file=$cpu_type/x-$cpu_type
6451 host_xmake_file="$xmake_file"
6452 host_truncate_target=$truncate_target
6453 host_extra_gcc_objs=$extra_gcc_objs
6454 host_extra_objs=$extra_host_objs
6461 extra_objs="${host_extra_objs} ${extra_objs}"
6463 # Default the target-machine variables that were not explicitly set.
6464 if test x"$tm_file" = x
6465 then tm_file=$cpu_type/$cpu_type.h; fi
6467 if test x$extra_headers = x
6468 then extra_headers=; fi
6470 if test x"$xm_file" = x
6471 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6473 if test x$md_file = x
6474 then md_file=$cpu_type/$cpu_type.md; fi
6476 if test x$out_file = x
6477 then out_file=$cpu_type/$cpu_type.c; fi
6479 if test x"$tmake_file" = x
6480 then tmake_file=$cpu_type/t-$cpu_type
6483 if test x"$dwarf2" = xyes
6484 then tm_file="tm-dwarf2.h $tm_file"
6487 if test x$float_format = x
6488 then float_format=i64
6491 if test $float_format = none
6492 then float_h_file=Makefile.in
6493 else float_h_file=float-$float_format.h
6496 # Handle cpp installation.
6497 if test x$enable_cpp != xno
6499 tmake_file="$tmake_file t-install-cpp"
6502 # Say what files are being used for the output code and MD file.
6503 echo "Using \`$srcdir/config/$out_file' to output insns."
6504 echo "Using \`$srcdir/config/$md_file' as machine description file."
6507 for f in $tm_file; do
6510 if test $count = ax; then
6511 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6513 echo "Using the following target machine macro files:"
6514 for f in $tm_file; do
6515 echo " $srcdir/config/$f"
6520 for f in $host_xm_file; do
6523 if test $count = ax; then
6524 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6526 echo "Using the following host machine macro files:"
6527 for f in $host_xm_file; do
6528 echo " $srcdir/config/$f"
6532 if test "$host_xm_file" != "$build_xm_file"; then
6534 for f in $build_xm_file; do
6537 if test $count = ax; then
6538 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6540 echo "Using the following build machine macro files:"
6541 for f in $build_xm_file; do
6542 echo " $srcdir/config/$f"
6547 if test x$thread_file = x; then
6548 if test x$target_thread_file != x; then
6549 thread_file=$target_thread_file
6551 thread_file='single'
6555 # Set up the header files.
6556 # $links is the list of header files to create.
6557 # $vars is the list of shell variables with file names to include.
6558 # auto-host.h is the file containing items generated by autoconf and is
6559 # the first file included by config.h.
6561 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6563 # If host=build, it is correct to have hconfig include auto-host.h
6564 # as well. If host!=build, we are in error and need to do more
6565 # work to find out the build config parameters.
6566 if test x$host = x$build
6568 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6570 # We create a subdir, then run autoconf in the subdir.
6571 # To prevent recursion we set host and build for the new
6572 # invocation of configure to the build for this invocation
6579 /*) realsrcdir=${srcdir};;
6580 *) realsrcdir=../${srcdir};;
6582 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6583 --target=$target --host=$build --build=$build
6585 # We just finished tests for the build machine, so rename
6586 # the file auto-build.h in the gcc directory.
6587 mv auto-host.h ../auto-build.h
6590 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6593 xm_file="gansidecl.h ${xm_file}"
6594 tm_file="gansidecl.h ${tm_file}"
6596 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6597 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6598 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6601 if test -f config.status; then mv -f config.status config.bak; fi
6604 while test -n "$vars"
6606 set $vars; var=$1; shift; vars=$*
6607 set $links; link=$1; shift; links=$*
6608 set $defines; define=$1; shift; defines=$*
6611 # Make sure the file is created, even if it is empty.
6614 # Define TARGET_CPU_DEFAULT if the system wants one.
6615 # This substitutes for lots of *.h files.
6616 if test "$target_cpu_default" != "" -a $link = tm.h
6618 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6621 for file in `eval echo '$'$var`; do
6626 echo '#ifdef IN_GCC' >>$link
6629 echo "#include \"$file\"" >>$link
6634 echo '#endif' >>$link
6639 for def in `eval echo '$'$define`; do
6640 echo "#ifndef $def" >>$link
6641 echo "#define $def" >>$link
6642 echo "#endif" >>$link
6646 # Truncate the target if necessary
6647 if test x$host_truncate_target != x; then
6648 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6651 # Get the version trigger filename from the toplevel
6652 if test "${with_gcc_version_trigger+set}" = set; then
6653 gcc_version_trigger=$with_gcc_version_trigger
6655 gcc_version_trigger=${srcdir}/version.c
6657 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6659 # Internationalization
6661 VERSION="$gcc_version"
6662 cat >> confdefs.h <<EOF
6663 #define PACKAGE "$PACKAGE"
6666 cat >> confdefs.h <<EOF
6667 #define VERSION "$VERSION"
6675 # NLS support is still experimental, so disable it by default for now.
6676 # Check whether --enable-nls or --disable-nls was given.
6677 if test "${enable_nls+set}" = set; then
6678 enableval="$enable_nls"
6686 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6687 echo "configure:6688: checking for strerror in -lcposix" >&5
6688 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6690 echo $ac_n "(cached) $ac_c" 1>&6
6692 ac_save_LIBS="$LIBS"
6693 LIBS="-lcposix $LIBS"
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* Override any gcc2 internal prototype to avoid an error. */
6698 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6706 if { (eval echo configure:6707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6708 eval "ac_cv_lib_$ac_lib_var=yes"
6710 echo "configure: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6713 eval "ac_cv_lib_$ac_lib_var=no"
6716 LIBS="$ac_save_LIBS"
6719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6720 echo "$ac_t""yes" 1>&6
6721 LIBS="$LIBS -lcposix"
6723 echo "$ac_t""no" 1>&6
6728 echo $ac_n "checking for working const""... $ac_c" 1>&6
6729 echo "configure:6730: checking for working const" >&5
6730 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6739 /* Ultrix mips cc rejects this. */
6740 typedef int charset[2]; const charset x;
6741 /* SunOS 4.1.1 cc rejects this. */
6742 char const *const *ccp;
6744 /* NEC SVR4.0.2 mips cc rejects this. */
6745 struct point {int x, y;};
6746 static struct point const zero = {0,0};
6747 /* AIX XL C 1.02.0.0 rejects this.
6748 It does not let you subtract one const X* pointer from another in an arm
6749 of an if-expression whose if-part is not a constant expression */
6750 const char *g = "string";
6751 ccp = &g + (g ? g-g : 0);
6752 /* HPUX 7.0 cc rejects these. */
6755 ccp = (char const *const *) p;
6756 { /* SCO 3.2v4 cc rejects this. */
6758 char const *s = 0 ? (char *) 0 : (char const *) 0;
6762 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6764 const int *foo = &x[0];
6767 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6768 typedef const int *iptr;
6772 { /* AIX XL C 1.02.0.0 rejects this saying
6773 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6774 struct s { int j; const int *ap[3]; };
6775 struct s *b; b->j = 5;
6777 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6783 if { (eval echo configure:6784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6795 echo "$ac_t""$ac_cv_c_const" 1>&6
6796 if test $ac_cv_c_const = no; then
6797 cat >> confdefs.h <<\EOF
6803 echo $ac_n "checking for inline""... $ac_c" 1>&6
6804 echo "configure:6805: checking for inline" >&5
6805 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6809 for ac_kw in inline __inline__ __inline; do
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6818 if { (eval echo configure:6819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6820 ac_cv_c_inline=$ac_kw; break
6822 echo "configure: failed program was:" >&5
6823 cat conftest.$ac_ext >&5
6830 echo "$ac_t""$ac_cv_c_inline" 1>&6
6831 case "$ac_cv_c_inline" in
6833 no) cat >> confdefs.h <<\EOF
6837 *) cat >> confdefs.h <<EOF
6838 #define inline $ac_cv_c_inline
6843 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6844 echo "configure:6845: checking for off_t" >&5
6845 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6846 echo $ac_n "(cached) $ac_c" 1>&6
6848 cat > conftest.$ac_ext <<EOF
6849 #line 6850 "configure"
6850 #include "confdefs.h"
6851 #include <sys/types.h>
6857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6858 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6860 ac_cv_type_off_t=yes
6868 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6869 if test $ac_cv_type_off_t = no; then
6870 cat >> confdefs.h <<\EOF
6876 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6877 echo "configure:6878: checking for size_t" >&5
6878 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 #include <sys/types.h>
6890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6891 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6893 ac_cv_type_size_t=yes
6896 ac_cv_type_size_t=no
6901 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6902 if test $ac_cv_type_size_t = no; then
6903 cat >> confdefs.h <<\EOF
6904 #define size_t unsigned
6909 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6910 # for constant arguments. Useless!
6911 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6912 echo "configure:6913: checking for working alloca.h" >&5
6913 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6914 echo $ac_n "(cached) $ac_c" 1>&6
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6921 char *p = alloca(2 * sizeof(int));
6924 if { (eval echo configure:6925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6926 ac_cv_header_alloca_h=yes
6928 echo "configure: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6931 ac_cv_header_alloca_h=no
6936 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6937 if test $ac_cv_header_alloca_h = yes; then
6938 cat >> confdefs.h <<\EOF
6939 #define HAVE_ALLOCA_H 1
6944 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6945 echo "configure:6946: checking for alloca" >&5
6946 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6947 echo $ac_n "(cached) $ac_c" 1>&6
6949 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6954 # define alloca __builtin_alloca
6957 # include <malloc.h>
6958 # define alloca _alloca
6961 # include <alloca.h>
6966 # ifndef alloca /* predefined by HP cc +Olibcalls */
6975 char *p = (char *) alloca(1);
6978 if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980 ac_cv_func_alloca_works=yes
6982 echo "configure: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6985 ac_cv_func_alloca_works=no
6990 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6991 if test $ac_cv_func_alloca_works = yes; then
6992 cat >> confdefs.h <<\EOF
6993 #define HAVE_ALLOCA 1
6998 if test $ac_cv_func_alloca_works = no; then
6999 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7000 # that cause trouble. Some versions do not even contain alloca or
7001 # contain a buggy version. If you still want to use their alloca,
7002 # use ar to extract alloca.o from them instead of compiling alloca.c.
7003 ALLOCA=alloca.${ac_objext}
7004 cat >> confdefs.h <<\EOF
7009 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7010 echo "configure:7011: checking whether alloca needs Cray hooks" >&5
7011 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7012 echo $ac_n "(cached) $ac_c" 1>&6
7014 cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7017 #if defined(CRAY) && ! defined(CRAY2)
7024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7025 egrep "webecray" >/dev/null 2>&1; then
7036 echo "$ac_t""$ac_cv_os_cray" 1>&6
7037 if test $ac_cv_os_cray = yes; then
7038 for ac_func in _getb67 GETB67 getb67; do
7039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7040 echo "configure:7041: checking for $ac_func" >&5
7041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7042 echo $ac_n "(cached) $ac_c" 1>&6
7044 cat > conftest.$ac_ext <<EOF
7045 #line 7046 "configure"
7046 #include "confdefs.h"
7047 /* System header to define __stub macros and hopefully few prototypes,
7048 which can conflict with char $ac_func(); below. */
7050 /* Override any gcc2 internal prototype to avoid an error. */
7051 /* We use char because int might match the return type of a gcc2
7052 builtin and then its argument prototype would still apply. */
7057 /* The GNU C library defines this for functions which it implements
7058 to always fail with ENOSYS. Some functions are actually named
7059 something starting with __ and the normal name is an alias. */
7060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7070 eval "ac_cv_func_$ac_func=yes"
7072 echo "configure: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7075 eval "ac_cv_func_$ac_func=no"
7080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7081 echo "$ac_t""yes" 1>&6
7082 cat >> confdefs.h <<EOF
7083 #define CRAY_STACKSEG_END $ac_func
7088 echo "$ac_t""no" 1>&6
7094 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7095 echo "configure:7096: checking stack direction for C alloca" >&5
7096 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7099 if test "$cross_compiling" = yes; then
7100 ac_cv_c_stack_direction=0
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 find_stack_direction ()
7107 static char *addr = 0;
7112 return find_stack_direction ();
7115 return (&dummy > addr) ? 1 : -1;
7119 exit (find_stack_direction() < 0);
7122 if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7124 ac_cv_c_stack_direction=1
7126 echo "configure: failed program was:" >&5
7127 cat conftest.$ac_ext >&5
7129 ac_cv_c_stack_direction=-1
7136 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7137 cat >> confdefs.h <<EOF
7138 #define STACK_DIRECTION $ac_cv_c_stack_direction
7144 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7145 unistd.h sys/param.h
7147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7149 echo "configure:7150: checking for $ac_hdr" >&5
7150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7153 cat > conftest.$ac_ext <<EOF
7154 #line 7155 "configure"
7155 #include "confdefs.h"
7158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7159 { (eval echo configure:7160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7161 if test -z "$ac_err"; then
7163 eval "ac_cv_header_$ac_safe=yes"
7166 echo "configure: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7169 eval "ac_cv_header_$ac_safe=no"
7173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7174 echo "$ac_t""yes" 1>&6
7175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7176 cat >> confdefs.h <<EOF
7177 #define $ac_tr_hdr 1
7181 echo "$ac_t""no" 1>&6
7185 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7186 strdup __argz_count __argz_stringify __argz_next
7188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7189 echo "configure:7190: checking for $ac_func" >&5
7190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
7196 /* System header to define __stub macros and hopefully few prototypes,
7197 which can conflict with char $ac_func(); below. */
7199 /* Override any gcc2 internal prototype to avoid an error. */
7200 /* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */
7206 /* The GNU C library defines this for functions which it implements
7207 to always fail with ENOSYS. Some functions are actually named
7208 something starting with __ and the normal name is an alias. */
7209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7217 if { (eval echo configure:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7219 eval "ac_cv_func_$ac_func=yes"
7221 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7224 eval "ac_cv_func_$ac_func=no"
7229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7230 echo "$ac_t""yes" 1>&6
7231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7232 cat >> confdefs.h <<EOF
7233 #define $ac_tr_func 1
7237 echo "$ac_t""no" 1>&6
7242 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7243 for ac_func in stpcpy
7245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7246 echo "configure:7247: checking for $ac_func" >&5
7247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7250 cat > conftest.$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7253 /* System header to define __stub macros and hopefully few prototypes,
7254 which can conflict with char $ac_func(); below. */
7256 /* Override any gcc2 internal prototype to avoid an error. */
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7274 if { (eval echo configure:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7276 eval "ac_cv_func_$ac_func=yes"
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7281 eval "ac_cv_func_$ac_func=no"
7286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7289 cat >> confdefs.h <<EOF
7290 #define $ac_tr_func 1
7294 echo "$ac_t""no" 1>&6
7299 if test "${ac_cv_func_stpcpy}" = "yes"; then
7300 cat >> confdefs.h <<\EOF
7301 #define HAVE_STPCPY 1
7306 if test $ac_cv_header_locale_h = yes; then
7307 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7308 echo "configure:7309: checking for LC_MESSAGES" >&5
7309 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7312 cat > conftest.$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7320 if { (eval echo configure:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7322 am_cv_val_LC_MESSAGES=yes
7324 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7327 am_cv_val_LC_MESSAGES=no
7332 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7333 if test $am_cv_val_LC_MESSAGES = yes; then
7334 cat >> confdefs.h <<\EOF
7335 #define HAVE_LC_MESSAGES 1
7340 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7341 echo "configure:7342: checking whether NLS is requested" >&5
7342 # Check whether --enable-nls or --disable-nls was given.
7343 if test "${enable_nls+set}" = set; then
7344 enableval="$enable_nls"
7350 echo "$ac_t""$USE_NLS" 1>&6
7353 USE_INCLUDED_LIBINTL=no
7355 if test "$USE_NLS" = "yes"; then
7356 cat >> confdefs.h <<\EOF
7357 #define ENABLE_NLS 1
7360 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7361 echo "configure:7362: checking whether included gettext is requested" >&5
7362 # Check whether --with-included-gettext or --without-included-gettext was given.
7363 if test "${with_included_gettext+set}" = set; then
7364 withval="$with_included_gettext"
7365 nls_cv_force_use_gnu_gettext=$withval
7367 nls_cv_force_use_gnu_gettext=no
7370 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7372 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7373 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7375 nls_cv_header_libgt=
7378 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7379 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7380 echo "configure:7381: checking for libintl.h" >&5
7381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7384 cat > conftest.$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7387 #include <libintl.h>
7389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7390 { (eval echo configure:7391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7392 if test -z "$ac_err"; then
7394 eval "ac_cv_header_$ac_safe=yes"
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7400 eval "ac_cv_header_$ac_safe=no"
7404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7405 echo "$ac_t""yes" 1>&6
7406 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7407 echo "configure:7408: checking for gettext in libc" >&5
7408 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7411 cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7414 #include <libintl.h>
7416 return (int) gettext ("")
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7421 gt_cv_func_gettext_libc=yes
7423 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7426 gt_cv_func_gettext_libc=no
7431 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7433 if test "$gt_cv_func_gettext_libc" != "yes"; then
7434 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7435 echo "configure:7436: checking for bindtextdomain in -lintl" >&5
7436 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7440 ac_save_LIBS="$LIBS"
7442 cat > conftest.$ac_ext <<EOF
7443 #line 7444 "configure"
7444 #include "confdefs.h"
7445 /* Override any gcc2 internal prototype to avoid an error. */
7446 /* We use char because int might match the return type of a gcc2
7447 builtin and then its argument prototype would still apply. */
7448 char bindtextdomain();
7454 if { (eval echo configure:7455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7456 eval "ac_cv_lib_$ac_lib_var=yes"
7458 echo "configure: failed program was:" >&5
7459 cat conftest.$ac_ext >&5
7461 eval "ac_cv_lib_$ac_lib_var=no"
7464 LIBS="$ac_save_LIBS"
7467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7468 echo "$ac_t""yes" 1>&6
7469 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7470 echo "configure:7471: checking for gettext in libintl" >&5
7471 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7472 echo $ac_n "(cached) $ac_c" 1>&6
7474 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7475 echo "configure:7476: checking for gettext in -lintl" >&5
7476 ac_lib_var=`echo intl'_'gettext | 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. */
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 gt_cv_func_gettext_libintl=yes
7511 echo "$ac_t""no" 1>&6
7512 gt_cv_func_gettext_libintl=no
7517 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7519 echo "$ac_t""no" 1>&6
7524 if test "$gt_cv_func_gettext_libc" = "yes" \
7525 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7526 cat >> confdefs.h <<\EOF
7527 #define HAVE_GETTEXT 1
7530 # Extract the first word of "msgfmt", so it can be a program name with args.
7531 set dummy msgfmt; ac_word=$2
7532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7533 echo "configure:7534: checking for $ac_word" >&5
7534 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7535 echo $ac_n "(cached) $ac_c" 1>&6
7539 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7543 for ac_dir in $PATH; do
7544 test -z "$ac_dir" && ac_dir=.
7545 if test -f $ac_dir/$ac_word; then
7546 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7547 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7553 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7557 MSGFMT="$ac_cv_path_MSGFMT"
7558 if test -n "$MSGFMT"; then
7559 echo "$ac_t""$MSGFMT" 1>&6
7561 echo "$ac_t""no" 1>&6
7563 if test "$MSGFMT" != "no"; then
7564 for ac_func in dcgettext
7566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7567 echo "configure:7568: checking for $ac_func" >&5
7568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7569 echo $ac_n "(cached) $ac_c" 1>&6
7571 cat > conftest.$ac_ext <<EOF
7572 #line 7573 "configure"
7573 #include "confdefs.h"
7574 /* System header to define __stub macros and hopefully few prototypes,
7575 which can conflict with char $ac_func(); below. */
7577 /* Override any gcc2 internal prototype to avoid an error. */
7578 /* We use char because int might match the return type of a gcc2
7579 builtin and then its argument prototype would still apply. */
7584 /* The GNU C library defines this for functions which it implements
7585 to always fail with ENOSYS. Some functions are actually named
7586 something starting with __ and the normal name is an alias. */
7587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7595 if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7597 eval "ac_cv_func_$ac_func=yes"
7599 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7602 eval "ac_cv_func_$ac_func=no"
7607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7608 echo "$ac_t""yes" 1>&6
7609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7610 cat >> confdefs.h <<EOF
7611 #define $ac_tr_func 1
7615 echo "$ac_t""no" 1>&6
7619 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7620 set dummy gmsgfmt; ac_word=$2
7621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7622 echo "configure:7623: checking for $ac_word" >&5
7623 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7628 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7631 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7636 for ac_dir in $ac_dummy; do
7637 test -z "$ac_dir" && ac_dir=.
7638 if test -f $ac_dir/$ac_word; then
7639 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7644 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7648 GMSGFMT="$ac_cv_path_GMSGFMT"
7649 if test -n "$GMSGFMT"; then
7650 echo "$ac_t""$GMSGFMT" 1>&6
7652 echo "$ac_t""no" 1>&6
7655 # Extract the first word of "xgettext", so it can be a program name with args.
7656 set dummy xgettext; ac_word=$2
7657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7658 echo "configure:7659: checking for $ac_word" >&5
7659 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7660 echo $ac_n "(cached) $ac_c" 1>&6
7664 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7668 for ac_dir in $PATH; do
7669 test -z "$ac_dir" && ac_dir=.
7670 if test -f $ac_dir/$ac_word; then
7671 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7672 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7678 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7682 XGETTEXT="$ac_cv_path_XGETTEXT"
7683 if test -n "$XGETTEXT"; then
7684 echo "$ac_t""$XGETTEXT" 1>&6
7686 echo "$ac_t""no" 1>&6
7689 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7694 extern int _nl_msg_cat_cntr;
7695 return _nl_msg_cat_cntr
7698 if { (eval echo configure:7699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7715 echo "$ac_t""no" 1>&6
7719 if test "$CATOBJEXT" = "NONE"; then
7720 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7721 echo "configure:7722: checking whether catgets can be used" >&5
7722 # Check whether --with-catgets or --without-catgets was given.
7723 if test "${with_catgets+set}" = set; then
7724 withval="$with_catgets"
7725 nls_cv_use_catgets=$withval
7727 nls_cv_use_catgets=no
7730 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7732 if test "$nls_cv_use_catgets" = "yes"; then
7733 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7734 echo "configure:7735: checking for main in -li" >&5
7735 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7737 echo $ac_n "(cached) $ac_c" 1>&6
7739 ac_save_LIBS="$LIBS"
7741 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7749 if { (eval echo configure:7750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7751 eval "ac_cv_lib_$ac_lib_var=yes"
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7756 eval "ac_cv_lib_$ac_lib_var=no"
7759 LIBS="$ac_save_LIBS"
7762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7765 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7766 cat >> confdefs.h <<EOF
7767 #define $ac_tr_lib 1
7773 echo "$ac_t""no" 1>&6
7776 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7777 echo "configure:7778: checking for catgets" >&5
7778 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7779 echo $ac_n "(cached) $ac_c" 1>&6
7781 cat > conftest.$ac_ext <<EOF
7782 #line 7783 "configure"
7783 #include "confdefs.h"
7784 /* System header to define __stub macros and hopefully few prototypes,
7785 which can conflict with char catgets(); below. */
7787 /* Override any gcc2 internal prototype to avoid an error. */
7788 /* We use char because int might match the return type of a gcc2
7789 builtin and then its argument prototype would still apply. */
7794 /* The GNU C library defines this for functions which it implements
7795 to always fail with ENOSYS. Some functions are actually named
7796 something starting with __ and the normal name is an alias. */
7797 #if defined (__stub_catgets) || defined (__stub___catgets)
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7807 eval "ac_cv_func_catgets=yes"
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7812 eval "ac_cv_func_catgets=no"
7817 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7818 echo "$ac_t""yes" 1>&6
7819 cat >> confdefs.h <<\EOF
7820 #define HAVE_CATGETS 1
7823 INTLOBJS="\$(CATOBJS)"
7824 # Extract the first word of "gencat", so it can be a program name with args.
7825 set dummy gencat; ac_word=$2
7826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_word" >&5
7828 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7833 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7836 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7841 for ac_dir in $ac_dummy; do
7842 test -z "$ac_dir" && ac_dir=.
7843 if test -f $ac_dir/$ac_word; then
7844 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7849 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7853 GENCAT="$ac_cv_path_GENCAT"
7854 if test -n "$GENCAT"; then
7855 echo "$ac_t""$GENCAT" 1>&6
7857 echo "$ac_t""no" 1>&6
7859 if test "$GENCAT" != "no"; then
7860 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7861 set dummy gmsgfmt; ac_word=$2
7862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7863 echo "configure:7864: checking for $ac_word" >&5
7864 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6
7869 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7872 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7877 for ac_dir in $ac_dummy; do
7878 test -z "$ac_dir" && ac_dir=.
7879 if test -f $ac_dir/$ac_word; then
7880 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7885 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7889 GMSGFMT="$ac_cv_path_GMSGFMT"
7890 if test -n "$GMSGFMT"; then
7891 echo "$ac_t""$GMSGFMT" 1>&6
7893 echo "$ac_t""no" 1>&6
7896 if test "$GMSGFMT" = "no"; then
7897 # Extract the first word of "msgfmt", so it can be a program name with args.
7898 set dummy msgfmt; ac_word=$2
7899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7900 echo "configure:7901: checking for $ac_word" >&5
7901 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7906 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7910 for ac_dir in $PATH; do
7911 test -z "$ac_dir" && ac_dir=.
7912 if test -f $ac_dir/$ac_word; then
7913 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7914 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7920 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7924 GMSGFMT="$ac_cv_path_GMSGFMT"
7925 if test -n "$GMSGFMT"; then
7926 echo "$ac_t""$GMSGFMT" 1>&6
7928 echo "$ac_t""no" 1>&6
7932 # Extract the first word of "xgettext", so it can be a program name with args.
7933 set dummy xgettext; ac_word=$2
7934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7935 echo "configure:7936: checking for $ac_word" >&5
7936 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7941 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7945 for ac_dir in $PATH; do
7946 test -z "$ac_dir" && ac_dir=.
7947 if test -f $ac_dir/$ac_word; then
7948 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7949 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7955 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7959 XGETTEXT="$ac_cv_path_XGETTEXT"
7960 if test -n "$XGETTEXT"; then
7961 echo "$ac_t""$XGETTEXT" 1>&6
7963 echo "$ac_t""no" 1>&6
7966 USE_INCLUDED_LIBINTL=yes
7970 INTLDEPS='$(top_builddir)/intl/libintl.a'
7972 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7973 nls_cv_header_intl=intl/libintl.h
7974 nls_cv_header_libgt=intl/libgettext.h
7977 echo "$ac_t""no" 1>&6
7983 if test "$CATOBJEXT" = "NONE"; then
7984 nls_cv_use_gnu_gettext=yes
7988 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7989 INTLOBJS="\$(GETTOBJS)"
7990 # Extract the first word of "msgfmt", so it can be a program name with args.
7991 set dummy msgfmt; ac_word=$2
7992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7993 echo "configure:7994: checking for $ac_word" >&5
7994 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7995 echo $ac_n "(cached) $ac_c" 1>&6
7999 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8003 for ac_dir in $PATH; do
8004 test -z "$ac_dir" && ac_dir=.
8005 if test -f $ac_dir/$ac_word; then
8006 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8007 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8013 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8017 MSGFMT="$ac_cv_path_MSGFMT"
8018 if test -n "$MSGFMT"; then
8019 echo "$ac_t""$MSGFMT" 1>&6
8021 echo "$ac_t""no" 1>&6
8024 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8025 set dummy gmsgfmt; ac_word=$2
8026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_word" >&5
8028 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8033 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8036 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8041 for ac_dir in $ac_dummy; do
8042 test -z "$ac_dir" && ac_dir=.
8043 if test -f $ac_dir/$ac_word; then
8044 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8049 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8053 GMSGFMT="$ac_cv_path_GMSGFMT"
8054 if test -n "$GMSGFMT"; then
8055 echo "$ac_t""$GMSGFMT" 1>&6
8057 echo "$ac_t""no" 1>&6
8060 # Extract the first word of "xgettext", so it can be a program name with args.
8061 set dummy xgettext; ac_word=$2
8062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8063 echo "configure:8064: checking for $ac_word" >&5
8064 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8065 echo $ac_n "(cached) $ac_c" 1>&6
8069 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8073 for ac_dir in $PATH; do
8074 test -z "$ac_dir" && ac_dir=.
8075 if test -f $ac_dir/$ac_word; then
8076 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8077 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8083 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8087 XGETTEXT="$ac_cv_path_XGETTEXT"
8088 if test -n "$XGETTEXT"; then
8089 echo "$ac_t""$XGETTEXT" 1>&6
8091 echo "$ac_t""no" 1>&6
8095 USE_INCLUDED_LIBINTL=yes
8099 INTLDEPS='$(top_builddir)/intl/libintl.a'
8101 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8102 nls_cv_header_intl=intl/libintl.h
8103 nls_cv_header_libgt=intl/libgettext.h
8106 if test "$XGETTEXT" != ":"; then
8107 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8110 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8115 # We need to process the po/ directory.
8119 nls_cv_header_intl=intl/libintl.h
8120 nls_cv_header_libgt=intl/libgettext.h
8126 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8127 # because some of the sources are only built for this goal.
8128 if test "$PACKAGE" = gettext; then
8130 USE_INCLUDED_LIBINTL=yes
8133 for lang in $ALL_LINGUAS; do
8134 GMOFILES="$GMOFILES $lang.gmo"
8135 POFILES="$POFILES $lang.po"
8151 if test "x$CATOBJEXT" != "x"; then
8152 if test "x$ALL_LINGUAS" = "x"; then
8155 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8156 echo "configure:8157: checking for catalogs to be installed" >&5
8158 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8159 case "$ALL_LINGUAS" in
8160 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8163 LINGUAS=$NEW_LINGUAS
8164 echo "$ac_t""$LINGUAS" 1>&6
8167 if test -n "$LINGUAS"; then
8168 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8172 if test $ac_cv_header_locale_h = yes; then
8173 INCLUDE_LOCALE_H="#include <locale.h>"
8176 /* The system does not provide the header <locale.h>. Take care yourself. */"
8180 test -d intl || mkdir intl
8181 if test "$CATOBJEXT" = ".cat"; then
8182 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8183 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8184 echo "configure:8185: checking for linux/version.h" >&5
8185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8186 echo $ac_n "(cached) $ac_c" 1>&6
8188 cat > conftest.$ac_ext <<EOF
8189 #line 8190 "configure"
8190 #include "confdefs.h"
8191 #include <linux/version.h>
8193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8194 { (eval echo configure:8195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8196 if test -z "$ac_err"; then
8198 eval "ac_cv_header_$ac_safe=yes"
8201 echo "configure: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8204 eval "ac_cv_header_$ac_safe=no"
8208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8209 echo "$ac_t""yes" 1>&6
8212 echo "$ac_t""no" 1>&6
8217 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8219 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8220 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8222 if test "$PACKAGE" = "gettext"; then
8233 if test -n "$ac_aux_dir"; then
8234 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8236 if test -z "$MKINSTALLDIRS"; then
8237 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8244 test -d po || mkdir po
8245 if test "x$srcdir" != "x."; then
8246 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8247 posrcprefix="$srcdir/"
8249 posrcprefix="../$srcdir/"
8255 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8256 < $srcdir/po/POTFILES.in > po/POTFILES
8258 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8260 # Windows32 Registry support for specifying GCC installation paths.
8261 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8262 if test "${enable_win32_registry+set}" = set; then
8263 enableval="$enable_win32_registry"
8268 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8269 echo "configure:8270: checking whether windows registry support is requested" >&5
8270 if test x$enable_win32_registry != xno; then
8271 cat >> confdefs.h <<\EOF
8272 #define ENABLE_WIN32_REGISTRY 1
8275 echo "$ac_t""yes" 1>&6
8277 echo "$ac_t""no" 1>&6
8280 # Check if user specified a different registry key.
8281 case x${enable_win32_registry} in
8284 gcc_cv_win32_registry_key="$VERSION"
8287 # no registry lookup.
8288 gcc_cv_win32_registry_key=''
8291 # user-specified key.
8292 gcc_cv_win32_registry_key="$enable_win32_registry"
8296 if test x$enable_win32_registry != xno; then
8297 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8298 echo "configure:8299: checking registry key on windows hosts" >&5
8299 cat >> confdefs.h <<EOF
8300 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8303 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8306 # Get an absolute path to the GCC top-level source directory
8312 # Conditionalize the makefile for this host machine.
8313 # Make-host contains the concatenation of all host makefile fragments
8314 # [there can be more than one]. This file is built by configure.frag.
8315 host_overrides=Make-host
8316 dep_host_xmake_file=
8317 for f in .. ${host_xmake_file}
8319 if test -f ${srcdir}/config/$f
8321 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8325 # Conditionalize the makefile for this target machine.
8326 # Make-target contains the concatenation of all host makefile fragments
8327 # [there can be more than one]. This file is built by configure.frag.
8328 target_overrides=Make-target
8330 for f in .. ${tmake_file}
8332 if test -f ${srcdir}/config/$f
8334 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8338 # If the host doesn't support symlinks, modify CC in
8339 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8340 # Otherwise, we can use "CC=$(CC)".
8342 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8344 cc_set_by_configure="\$(CC)"
8345 quoted_cc_set_by_configure="\$(CC)"
8346 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8349 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8351 symbolic_link="cp -p"
8355 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8356 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8357 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8361 out_object_file=`basename $out_file .c`.o
8364 for f in $tm_file; do
8367 tm_file_list="${tm_file_list} $f" ;;
8368 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8373 for f in $host_xm_file; do
8375 auto-host.h | gansidecl.h | hwint.h )
8376 host_xm_file_list="${host_xm_file_list} $f" ;;
8377 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8382 for f in $build_xm_file; do
8384 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8385 build_xm_file_list="${build_xm_file_list} $f" ;;
8386 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8390 # Define macro CROSS_COMPILE in compilation
8391 # if this is a cross-compiler.
8392 # Also use all.cross instead of all.internal
8393 # and add cross-make to Makefile.
8394 cross_overrides="/dev/null"
8395 if test x$host != x$target
8397 cross_defines="CROSS=-DCROSS_COMPILE"
8398 cross_overrides="${topdir}/cross-make"
8401 # When building gcc with a cross-compiler, we need to fix a few things.
8402 # This must come after cross-make as we want all.build to override
8404 build_overrides="/dev/null"
8405 if test x$build != x$host
8407 build_overrides="${topdir}/build-make"
8410 # Expand extra_headers to include complete path.
8411 # This substitutes for lots of t-* files.
8413 if test "x$extra_headers" = x
8416 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8417 for file in $extra_headers;
8419 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8423 if test x$use_collect2 = xno; then
8427 # Add a definition of USE_COLLECT2 if system wants one.
8428 # Also tell toplev.c what to do.
8429 # This substitutes for lots of t-* files.
8430 if test x$use_collect2 = x
8435 will_use_collect2="collect2"
8436 maybe_use_collect2="-DUSE_COLLECT2"
8440 # Set MD_DEPS if the real md file is in md.pre-cpp.
8441 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8442 # for line oriented comments, so we must always use a GNU cpp. If
8443 # building gcc with a cross compiler, use the cross compiler just
8444 # built. Otherwise, we can use the cpp just built.
8446 if test "x$md_cppflags" = x
8448 md_file_sub=$srcdir/config/$md_file
8453 # If we have gas in the build tree, make a link to it.
8454 if test -f ../gas/Makefile; then
8455 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8458 # If we have nm in the build tree, make a link to it.
8459 if test -f ../binutils/Makefile; then
8460 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8463 # If we have ld in the build tree, make a link to it.
8464 if test -f ../ld/Makefile; then
8465 # if test x$use_collect2 = x; then
8466 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8468 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8472 # Figure out what assembler alignment features are present.
8473 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8474 echo "configure:8475: checking assembler alignment features" >&5
8476 gcc_cv_as_alignment_features=
8477 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8478 if test -x "$DEFAULT_ASSEMBLER"; then
8479 gcc_cv_as="$DEFAULT_ASSEMBLER"
8480 elif test -x "$AS"; then
8482 elif test -x as$host_exeext; then
8483 # Build using assembler in the current directory.
8484 gcc_cv_as=./as$host_exeext
8485 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8486 # Single tree build which includes gas.
8487 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8489 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8490 if test x$gcc_cv_gas_version != x; then
8494 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8495 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8496 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8497 # Gas version 2.6 and later support for .balign and .p2align.
8498 # bytes to skip when using .p2align.
8499 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
8500 gcc_cv_as_alignment_features=".balign and .p2align"
8501 cat >> confdefs.h <<\EOF
8502 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8506 # Gas version 2.8 and later support specifying the maximum
8507 # bytes to skip when using .p2align.
8508 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
8509 gcc_cv_as_alignment_features=".p2align including maximum skip"
8510 cat >> confdefs.h <<\EOF
8511 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8516 elif test x$host = x$target; then
8518 # Search the same directories that the installed compiler will
8519 # search. Else we may find the wrong assembler and lose. If we
8520 # do not find a suitable assembler binary, then try the user's
8523 # Also note we have to check MD_EXEC_PREFIX before checking the
8524 # user's path. Unfortunately, there is no good way to get at the
8525 # value of MD_EXEC_PREFIX here. So we do a brute force search
8526 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8527 # to be fixed as part of the make/configure rewrite too.
8529 if test "x$exec_prefix" = xNONE; then
8530 if test "x$prefix" = xNONE; then
8531 test_prefix=/usr/local
8536 test_prefix=$exec_prefix
8539 # If the loop below does not find an assembler, then use whatever
8540 # one we can find in the users's path.
8544 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8545 $test_prefix/lib/gcc-lib/$target \
8546 /usr/lib/gcc/$target/$gcc_version \
8547 /usr/lib/gcc/$target \
8548 $test_prefix/$target/bin/$target/$gcc_version \
8549 $test_prefix/$target/bin \
8554 /bsd43/usr/lib/cmplrs/cc \
8555 /usr/cross64/usr/bin \
8556 /usr/lib/cmplrs/cc \
8557 /sysv/usr/lib/cmplrs/cc \
8558 /svr4/usr/lib/cmplrs/cc \
8561 for dir in $test_dirs; do
8562 if test -f $dir/as$host_exeext; then
8563 gcc_cv_as=$dir/as$host_exeext
8568 if test x$gcc_cv_as != x; then
8569 # Check if we have .balign and .p2align
8570 echo ".balign 4" > conftest.s
8571 echo ".p2align 2" >> conftest.s
8572 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8573 gcc_cv_as_alignment_features=".balign and .p2align"
8574 cat >> confdefs.h <<\EOF
8575 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8579 rm -f conftest.s conftest.o
8580 # Check if specifying the maximum bytes to skip when
8581 # using .p2align is supported.
8582 echo ".p2align 4,,7" > conftest.s
8583 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8584 gcc_cv_as_alignment_features=".p2align including maximum skip"
8585 cat >> confdefs.h <<\EOF
8586 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8590 rm -f conftest.s conftest.o
8592 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8594 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8595 echo "configure:8596: checking assembler subsection support" >&5
8596 gcc_cv_as_subsections=
8597 if test x$gcc_cv_as != x; then
8598 # Check if we have .subsection
8599 echo ".subsection 1" > conftest.s
8600 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8601 gcc_cv_as_subsections=".subsection"
8602 if test -x nm$host_exeext; then
8603 gcc_cv_nm=./nm$host_exeext
8604 elif test x$host = x$target; then
8606 gcc_cv_nm=nm$host_exeext
8608 if test x$gcc_cv_nm != x; then
8609 cat > conftest.s <<EOF
8610 conftest_label1: .word 0
8612 conftest_label2: .word 0
8615 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8616 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8617 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8618 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8621 gcc_cv_as_subsections="working .subsection -1"
8622 cat >> confdefs.h <<\EOF
8623 #define HAVE_GAS_SUBSECTION_ORDERING 1
8630 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8632 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8636 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8637 echo "configure:8638: checking assembler .register pseudo-op support" >&5
8638 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
8642 gcc_cv_as_register_pseudo_op=unknown
8643 if test x$gcc_cv_as != x; then
8644 # Check if we have .register
8645 echo ".register %g2, #scratch" > conftest.s
8646 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8647 gcc_cv_as_register_pseudo_op=yes
8649 gcc_cv_as_register_pseudo_op=no
8651 rm -f conftest.s conftest.o
8656 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8657 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
8658 cat >> confdefs.h <<\EOF
8659 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8666 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8667 echo "configure:8668: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8668 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8672 if test -n "$gcc_cv_as"; then
8673 echo ".xword foo" > conftest.s
8674 gcc_cv_as_flags64=no
8675 for flag in "-xarch=v9" "-64 -Av9"; do
8676 if $gcc_cv_as $flag -o conftest.o conftest.s \
8677 > /dev/null 2>&1; then
8678 gcc_cv_as_flags64=$flag
8682 rm -f conftest.s conftest.o
8684 if test "$gas" = yes; then
8685 gcc_cv_as_flags64="-64 -Av9"
8687 gcc_cv_as_flags64="-xarch=v9"
8693 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8694 if test "x$gcc_cv_as_flags64" = xno; then
8696 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8697 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8700 cat >> confdefs.h <<EOF
8701 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8706 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
8710 if test "x$gcc_cv_as_flags64" != xno; then
8711 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8712 echo "configure:8713: checking for assembler offsetable %lo() support" >&5
8713 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8714 echo $ac_n "(cached) $ac_c" 1>&6
8717 gcc_cv_as_offsetable_lo10=unknown
8718 if test "x$gcc_cv_as" != x; then
8719 # Check if assembler has offsetable %lo()
8720 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8721 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8722 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8724 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8725 > /dev/null 2>&1; then
8726 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8727 gcc_cv_as_offsetable_lo10=no
8729 gcc_cv_as_offsetable_lo10=yes
8732 gcc_cv_as_offsetable_lo10=no
8734 rm -f conftest.s conftest.o conftest1.s conftest1.o
8739 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8740 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
8741 cat >> confdefs.h <<\EOF
8742 #define HAVE_AS_OFFSETABLE_LO10 1
8750 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8751 echo "configure:8752: checking assembler instructions" >&5
8752 gcc_cv_as_instructions=
8753 if test x$gcc_cv_as != x; then
8754 set "filds fists" "filds mem; fists mem"
8757 echo "$2" > conftest.s
8758 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8759 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8760 cat >> confdefs.h <<EOF
8761 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8767 rm -f conftest.s conftest.o
8769 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8773 # Figure out what language subdirectories are present.
8774 # Look if the user specified --enable-languages="..."; if not, use
8775 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8777 if test x"${enable_languages+set}" != xset; then
8778 if test x"${LANGUAGES+set}" = xset; then
8779 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8781 enable_languages=all
8785 for lang in ${srcdir}/*/config-lang.in ..
8789 # The odd quoting in the next line works around
8790 # an apparent bug in bash 1.12 on linux.
8791 ${srcdir}/[*]/config-lang.in) ;;
8793 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8794 if test "x$lang_alias" = x
8796 echo "$lang doesn't set \$language." 1>&2
8799 if test x"${enable_languages}" = xall; then
8802 case "${enable_languages}" in
8803 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8811 if test x"${add_this_lang}" = xyes; then
8813 ${srcdir}/ada/config-lang.in)
8814 if test x$gnat = xyes ; then
8815 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8819 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8827 # Make gthr-default.h if we have a thread file.
8829 if test $thread_file != single; then
8830 rm -f gthr-default.h
8831 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8832 gthread_flags=-DHAVE_GTHR_DEFAULT
8836 # Find out what GC implementation we want, or may, use.
8837 # Check whether --with-gc or --without-gc was given.
8838 if test "${with_gc+set}" = set; then
8845 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8849 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8851 elif test $ac_cv_func_valloc = yes; then
8859 echo "Using $GGC for garbage collection."
8861 # Make empty files to contain the specs and options for each language.
8862 # Then add #include lines to for a compiler that has specs and/or options.
8867 rm -f specs.h options.h gencheck.h
8868 touch specs.h options.h gencheck.h
8869 for subdir in . $subdirs
8871 if test -f $srcdir/$subdir/lang-specs.h; then
8872 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8873 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8875 if test -f $srcdir/$subdir/lang-options.h; then
8876 echo "#include \"$subdir/lang-options.h\"" >>options.h
8877 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8879 if test -f $srcdir/$subdir/$subdir-tree.def; then
8880 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8881 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8885 # These (without "all_") are set in each config-lang.in.
8886 # `language' must be a single word so is spelled singularly.
8892 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8893 # List of language makefile fragments.
8898 # Add the language fragments.
8899 # Languages are added via two mechanisms. Some information must be
8900 # recorded in makefile variables, these are defined in config-lang.in.
8901 # We accumulate them and plug them into the main Makefile.
8902 # The other mechanism is a set of hooks for each of the main targets
8903 # like `clean', `install', etc.
8905 language_fragments="Make-lang"
8906 language_hooks="Make-hooks"
8909 for s in .. $subdirs
8921 . ${srcdir}/$s/config-lang.in
8922 if test "x$language" = x
8924 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8927 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8928 all_languages="$all_languages $language"
8929 if test "x$boot_language" = xyes
8931 all_boot_languages="$all_boot_languages $language"
8933 all_compilers="$all_compilers $compilers"
8934 all_stagestuff="$all_stagestuff $stagestuff"
8935 all_diff_excludes="$all_diff_excludes $diff_excludes"
8936 all_headers="$all_headers $headers"
8937 all_outputs="$all_outputs $outputs"
8938 if test x$outputs = x
8940 oldstyle_subdirs="$oldstyle_subdirs $s"
8942 all_lib2funcs="$all_lib2funcs $lib2funcs"
8946 # Since we can't use `::' targets, we link each language in
8947 # with a set of hooks, reached indirectly via lang.${target}.
8951 target_list="all.build all.cross start.encap rest.encap \
8953 install-normal install-common install-info install-man \
8955 mostlyclean clean distclean extraclean maintainer-clean \
8956 stage1 stage2 stage3 stage4"
8957 for t in $target_list
8960 for lang in .. $all_languages
8962 if test $lang != ".."; then
8966 echo "lang.$t: $x" >> Make-hooks
8969 # If we're not building in srcdir, create .gdbinit.
8971 if test ! -f Makefile.in; then
8972 echo "dir ." > .gdbinit
8973 echo "dir ${srcdir}" >> .gdbinit
8974 if test x$gdb_needs_out_file_path = xyes
8976 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8978 if test "x$subdirs" != x; then
8981 echo "dir ${srcdir}/$s" >> .gdbinit
8984 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8987 # Define variables host_canonical and build_canonical
8988 # because some Cygnus local changes in the Makefile depend on them.
8989 build_canonical=${build}
8990 host_canonical=${host}
8992 if test "${host}" != "${target}" ; then
8993 target_subdir=${target}/
8999 # If this is using newlib, then define inhibit_libc in
9000 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
9001 # libgcc.a, but that's OK because newib should have its own version of
9004 if test x$with_newlib = xyes; then
9005 inhibit_libc=-Dinhibit_libc
9009 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9010 # absolute path for gcc_tooldir based on inserting the number of up-directory
9011 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9012 # $(libsubdir)/@(unlibsubdir) based path.
9013 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9014 # make and thus we'd get different behavior depending on where we built the
9016 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
9017 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9019 # An explanation of the sed strings:
9020 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9021 # -e 's|/$||' match a trailing forward slash and eliminates it
9022 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9023 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9025 # (*) Note this pattern overwrites the first character of the string
9026 # with a forward slash if one is not already present. This is not a
9027 # problem because the exact names of the sub-directories concerned is
9028 # unimportant, just the number of them matters.
9030 # The practical upshot of these patterns is like this:
9032 # prefix exec_prefix result
9033 # ------ ----------- ------
9035 # /foo/ /foo/bar ../
9036 # /foo /foo/bar/ ../
9037 # /foo/ /foo/bar/ ../
9038 # /foo /foo/bar/ugg ../../
9041 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9046 # Nothing to do for FLOAT_H, float_format already handled.
9050 # Process the language and host/target makefile fragments.
9051 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9053 # Substitute configuration variables
9114 # Echo that links are built
9115 if test x$host = x$target
9123 if test x$host != x$build
9125 str3=" on a $build system"
9128 if test "x$str2" != x || test "x$str3" != x
9133 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9135 if test "x$str2" != x || test "x$str3" != x
9137 echo " ${str2}${str3}." 1>&2
9140 # Truncate the target if necessary
9141 if test x$host_truncate_target != x; then
9142 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9145 # Configure the subdirectories
9146 # AC_CONFIG_SUBDIRS($subdirs)
9148 # Create the Makefile
9149 # and configure language subdirectories
9151 cat > confcache <<\EOF
9152 # This file is a shell script that caches the results of configure
9153 # tests run on this system so they can be shared between configure
9154 # scripts and configure runs. It is not useful on other systems.
9155 # If it contains results you don't want to keep, you may remove or edit it.
9157 # By default, configure uses ./config.cache as the cache file,
9158 # creating it if it does not exist already. You can give configure
9159 # the --cache-file=FILE option to use a different cache file; that is
9160 # what configure does when it calls configure scripts in
9161 # subdirectories, so they share the cache.
9162 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9163 # config.status only pays attention to the cache file if you give it the
9164 # --recheck option to rerun configure.
9167 # The following way of writing the cache mishandles newlines in values,
9168 # but we know of no workaround that is simple, portable, and efficient.
9169 # So, don't put newlines in cache variables' values.
9170 # Ultrix sh set writes to stderr and can't be redirected directly,
9171 # and sets the high bit in the cache file unless we assign to the vars.
9173 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9175 # `set' does not quote correctly, so add quotes (double-quote substitution
9176 # turns \\\\ into \\, and sed turns \\ into \).
9178 -e "s/'/'\\\\''/g" \
9179 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9182 # `set' quotes correctly as required by POSIX, so do not add quotes.
9183 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9186 if cmp -s $cache_file confcache; then
9189 if test -w $cache_file; then
9190 echo "updating cache $cache_file"
9191 cat confcache > $cache_file
9193 echo "not updating unwritable cache $cache_file"
9198 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9201 # Let make expand exec_prefix.
9202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9204 # Any assignment to VPATH causes Sun make to only execute
9205 # the first set of double-colon rules, so remove it if not needed.
9206 # If there is a colon in the path, we need to keep it.
9207 if test "x$srcdir" = x.; then
9208 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9211 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9213 DEFS=-DHAVE_CONFIG_H
9215 # Without the "./", some shells look in PATH for config.status.
9216 : ${CONFIG_STATUS=./config.status}
9218 echo creating $CONFIG_STATUS
9219 rm -f $CONFIG_STATUS
9220 cat > $CONFIG_STATUS <<EOF
9222 # Generated automatically by configure.
9223 # Run this file to recreate the current configuration.
9224 # This directory was configured as follows,
9225 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9227 # $0 $ac_configure_args
9229 # Compiler output produced by configure, useful for debugging
9230 # configure, is in ./config.log if it exists.
9232 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9235 case "\$ac_option" in
9236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9237 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9238 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9239 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9240 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9242 -help | --help | --hel | --he | --h)
9243 echo "\$ac_cs_usage"; exit 0 ;;
9244 *) echo "\$ac_cs_usage"; exit 1 ;;
9248 ac_given_srcdir=$srcdir
9250 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9252 cat >> $CONFIG_STATUS <<EOF
9254 # Protect against being on the right side of a sed subst in config.status.
9255 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9256 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9260 s%@CFLAGS@%$CFLAGS%g
9261 s%@CPPFLAGS@%$CPPFLAGS%g
9262 s%@CXXFLAGS@%$CXXFLAGS%g
9263 s%@FFLAGS@%$FFLAGS%g
9265 s%@LDFLAGS@%$LDFLAGS%g
9267 s%@exec_prefix@%$exec_prefix%g
9268 s%@prefix@%$prefix%g
9269 s%@program_transform_name@%$program_transform_name%g
9270 s%@bindir@%$bindir%g
9271 s%@sbindir@%$sbindir%g
9272 s%@libexecdir@%$libexecdir%g
9273 s%@datadir@%$datadir%g
9274 s%@sysconfdir@%$sysconfdir%g
9275 s%@sharedstatedir@%$sharedstatedir%g
9276 s%@localstatedir@%$localstatedir%g
9277 s%@libdir@%$libdir%g
9278 s%@includedir@%$includedir%g
9279 s%@oldincludedir@%$oldincludedir%g
9280 s%@infodir@%$infodir%g
9281 s%@mandir@%$mandir%g
9283 s%@host_alias@%$host_alias%g
9284 s%@host_cpu@%$host_cpu%g
9285 s%@host_vendor@%$host_vendor%g
9286 s%@host_os@%$host_os%g
9287 s%@target@%$target%g
9288 s%@target_alias@%$target_alias%g
9289 s%@target_cpu@%$target_cpu%g
9290 s%@target_vendor@%$target_vendor%g
9291 s%@target_os@%$target_os%g
9293 s%@build_alias@%$build_alias%g
9294 s%@build_cpu@%$build_cpu%g
9295 s%@build_vendor@%$build_vendor%g
9296 s%@build_os@%$build_os%g
9298 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9299 s%@SET_MAKE@%$SET_MAKE%g
9302 s%@LEXLIB@%$LEXLIB%g
9305 s%@RANLIB@%$RANLIB%g
9307 s%@INSTALL@%$INSTALL%g
9308 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9309 s%@INSTALL_DATA@%$INSTALL_DATA%g
9312 s%@vfprintf@%$vfprintf%g
9313 s%@doprint@%$doprint%g
9314 s%@manext@%$manext%g
9315 s%@objext@%$objext%g
9316 s%@PACKAGE@%$PACKAGE%g
9317 s%@VERSION@%$VERSION%g
9318 s%@ALLOCA@%$ALLOCA%g
9319 s%@USE_NLS@%$USE_NLS%g
9320 s%@MSGFMT@%$MSGFMT%g
9321 s%@GMSGFMT@%$GMSGFMT%g
9322 s%@XGETTEXT@%$XGETTEXT%g
9323 s%@GENCAT@%$GENCAT%g
9324 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9325 s%@CATALOGS@%$CATALOGS%g
9326 s%@CATOBJEXT@%$CATOBJEXT%g
9327 s%@DATADIRNAME@%$DATADIRNAME%g
9328 s%@GMOFILES@%$GMOFILES%g
9329 s%@INSTOBJEXT@%$INSTOBJEXT%g
9330 s%@INTLDEPS@%$INTLDEPS%g
9331 s%@INTLLIBS@%$INTLLIBS%g
9332 s%@INTLOBJS@%$INTLOBJS%g
9333 s%@POFILES@%$POFILES%g
9335 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9337 s%@GT_YES@%$GT_YES%g
9338 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9340 s%@gthread_flags@%$gthread_flags%g
9342 s%@build_canonical@%$build_canonical%g
9343 s%@host_canonical@%$host_canonical%g
9344 s%@target_subdir@%$target_subdir%g
9345 s%@inhibit_libc@%$inhibit_libc%g
9346 s%@gcc_tooldir@%$gcc_tooldir%g
9347 s%@dollar@%$dollar%g
9348 s%@objdir@%$objdir%g
9349 s%@subdirs@%$subdirs%g
9350 s%@all_boot_languages@%$all_boot_languages%g
9351 s%@all_compilers@%$all_compilers%g
9352 s%@all_diff_excludes@%$all_diff_excludes%g
9353 s%@all_headers@%$all_headers%g
9354 s%@all_lang_makefiles@%$all_lang_makefiles%g
9355 s%@all_languages@%$all_languages%g
9356 s%@all_lib2funcs@%$all_lib2funcs%g
9357 s%@all_stagestuff@%$all_stagestuff%g
9358 s%@build_exeext@%$build_exeext%g
9359 s%@build_install_headers_dir@%$build_install_headers_dir%g
9360 s%@build_xm_file_list@%$build_xm_file_list%g
9361 s%@cc_set_by_configure@%$cc_set_by_configure%g
9362 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9363 s%@cpp_install_dir@%$cpp_install_dir%g
9364 s%@cpp_main@%$cpp_main%g
9365 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9366 s%@dep_tmake_file@%$dep_tmake_file%g
9367 s%@extra_c_flags@%$extra_c_flags%g
9368 s%@extra_c_objs@%$extra_c_objs%g
9369 s%@extra_cpp_objs@%$extra_cpp_objs%g
9370 s%@extra_cxx_objs@%$extra_cxx_objs%g
9371 s%@extra_headers_list@%$extra_headers_list%g
9372 s%@extra_objs@%$extra_objs%g
9373 s%@extra_parts@%$extra_parts%g
9374 s%@extra_passes@%$extra_passes%g
9375 s%@extra_programs@%$extra_programs%g
9376 s%@fixinc_defs@%$fixinc_defs%g
9377 s%@float_h_file@%$float_h_file%g
9378 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9379 s%@gcc_version@%$gcc_version%g
9380 s%@gcc_version_trigger@%$gcc_version_trigger%g
9381 s%@host_exeext@%$host_exeext%g
9382 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9383 s%@host_xm_file_list@%$host_xm_file_list%g
9384 s%@install@%$install%g
9385 s%@lang_options_files@%$lang_options_files%g
9386 s%@lang_specs_files@%$lang_specs_files%g
9387 s%@lang_tree_files@%$lang_tree_files%g
9388 s%@local_prefix@%$local_prefix%g
9389 s%@maybe_use_collect2@%$maybe_use_collect2%g
9390 s%@md_file@%$md_file%g
9391 s%@objc_boehm_gc@%$objc_boehm_gc%g
9392 s%@out_file@%$out_file%g
9393 s%@out_object_file@%$out_object_file%g
9394 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9395 s%@symbolic_link@%$symbolic_link%g
9396 s%@thread_file@%$thread_file%g
9397 s%@tm_file_list@%$tm_file_list%g
9398 s%@will_use_collect2@%$will_use_collect2%g
9399 /@target_overrides@/r $target_overrides
9400 s%@target_overrides@%%g
9401 /@host_overrides@/r $host_overrides
9402 s%@host_overrides@%%g
9403 s%@cross_defines@%$cross_defines%g
9404 /@cross_overrides@/r $cross_overrides
9405 s%@cross_overrides@%%g
9406 /@build_overrides@/r $build_overrides
9407 s%@build_overrides@%%g
9408 /@language_fragments@/r $language_fragments
9409 s%@language_fragments@%%g
9410 /@language_hooks@/r $language_hooks
9411 s%@language_hooks@%%g
9416 cat >> $CONFIG_STATUS <<\EOF
9418 # Split the substitutions into bite-sized pieces for seds with
9419 # small command number limits, like on Digital OSF/1 and HP-UX.
9420 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9421 ac_file=1 # Number of current file.
9422 ac_beg=1 # First line for current file.
9423 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9426 while $ac_more_lines; do
9427 if test $ac_beg -gt 1; then
9428 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9430 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9432 if test ! -s conftest.s$ac_file; then
9434 rm -f conftest.s$ac_file
9436 if test -z "$ac_sed_cmds"; then
9437 ac_sed_cmds="sed -f conftest.s$ac_file"
9439 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9441 ac_file=`expr $ac_file + 1`
9443 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9446 if test -z "$ac_sed_cmds"; then
9451 cat >> $CONFIG_STATUS <<EOF
9453 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9455 cat >> $CONFIG_STATUS <<\EOF
9456 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9457 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9459 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9460 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9461 *) ac_file_in="${ac_file}.in" ;;
9464 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9466 # Remove last slash and all that follows it. Not all systems have dirname.
9467 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9468 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9469 # The file is in a subdirectory.
9470 test ! -d "$ac_dir" && mkdir "$ac_dir"
9471 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9472 # A "../" for each directory in $ac_dir_suffix.
9473 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9475 ac_dir_suffix= ac_dots=
9478 case "$ac_given_srcdir" in
9480 if test -z "$ac_dots"; then top_srcdir=.
9481 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9482 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9484 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9485 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9489 echo creating "$ac_file"
9491 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9493 *Makefile*) ac_comsub="1i\\
9494 # $configure_input" ;;
9498 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9500 s%@configure_input@%$configure_input%g
9501 s%@srcdir@%$srcdir%g
9502 s%@top_srcdir@%$top_srcdir%g
9503 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9507 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9508 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9510 # ac_d sets the value in "#define NAME VALUE" lines.
9511 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9512 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9515 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9516 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9517 ac_uB='\([ ]\)%\1#\2define\3'
9520 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9521 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9522 ac_eB='$%\1#\2define\3'
9526 if test "${CONFIG_HEADERS+set}" != set; then
9528 cat >> $CONFIG_STATUS <<EOF
9529 CONFIG_HEADERS="auto-host.h:config.in"
9531 cat >> $CONFIG_STATUS <<\EOF
9533 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9534 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9536 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9537 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9538 *) ac_file_in="${ac_file}.in" ;;
9541 echo creating $ac_file
9543 rm -f conftest.frag conftest.in conftest.out
9544 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9545 cat $ac_file_inputs > conftest.in
9549 # Transform confdefs.h into a sed script conftest.vals that substitutes
9550 # the proper values into config.h.in to produce config.h. And first:
9551 # Protect against being on the right side of a sed subst in config.status.
9552 # Protect against being in an unquoted here document in config.status.
9554 cat > conftest.hdr <<\EOF
9557 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9561 sed -n -f conftest.hdr confdefs.h > conftest.vals
9564 # This sed command replaces #undef with comments. This is necessary, for
9565 # example, in the case of _POSIX_SOURCE, which is predefined and required
9566 # on some systems where configure will not decide to define it.
9567 cat >> conftest.vals <<\EOF
9568 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9571 # Break up conftest.vals because some shells have a limit on
9572 # the size of here documents, and old seds have small limits too.
9577 ac_lines=`grep -c . conftest.vals`
9578 # grep -c gives empty output for an empty file on some AIX systems.
9579 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9580 # Write a limited-size here document to conftest.frag.
9581 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9582 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9584 sed -f conftest.frag conftest.in > conftest.out
9586 mv conftest.out conftest.in
9588 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9590 mv conftest.tail conftest.vals
9594 cat >> $CONFIG_STATUS <<\EOF
9595 rm -f conftest.frag conftest.h
9596 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9597 cat conftest.in >> conftest.h
9599 if cmp -s $ac_file conftest.h 2>/dev/null; then
9600 echo "$ac_file is unchanged"
9603 # Remove last slash and all that follows it. Not all systems have dirname.
9604 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9605 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9606 # The file is in a subdirectory.
9607 test ! -d "$ac_dir" && mkdir "$ac_dir"
9610 mv conftest.h $ac_file
9616 cat >> $CONFIG_STATUS <<EOF
9617 ac_sources="$nls_cv_header_libgt"
9618 ac_dests="$nls_cv_header_intl"
9621 cat >> $CONFIG_STATUS <<\EOF
9622 srcdir=$ac_given_srcdir
9623 while test -n "$ac_sources"; do
9624 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9625 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9627 echo "linking $srcdir/$ac_source to $ac_dest"
9629 if test ! -r $srcdir/$ac_source; then
9630 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9634 # Make relative symlinks.
9635 # Remove last slash and all that follows it. Not all systems have dirname.
9636 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9637 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9638 # The dest file is in a subdirectory.
9639 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9640 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9641 # A "../" for each directory in $ac_dest_dir_suffix.
9642 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9644 ac_dest_dir_suffix= ac_dots=
9648 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9649 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9652 # Make a symlink if possible; otherwise try a hard link.
9653 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9654 ln $srcdir/$ac_source $ac_dest; then :
9656 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9660 cat >> $CONFIG_STATUS <<EOF
9666 target_alias='${target_alias}'
9668 subdirs='${subdirs}'
9669 oldstyle_subdirs='${oldstyle_subdirs}'
9670 symbolic_link='${symbolic_link}'
9671 program_transform_set='${program_transform_set}'
9672 program_transform_name='${program_transform_name}'
9673 dep_host_xmake_file='${dep_host_xmake_file}'
9674 host_xmake_file='${host_xmake_file}'
9675 dep_tmake_file='${dep_tmake_file}'
9676 tmake_file='${tmake_file}'
9677 thread_file='${thread_file}'
9678 gcc_version='${gcc_version}'
9679 gcc_version_trigger='${gcc_version_trigger}'
9680 local_prefix='${local_prefix}'
9681 build_install_headers_dir='${build_install_headers_dir}'
9682 build_exeext='${build_exeext}'
9683 host_exeext='${host_exeext}'
9684 out_file='${out_file}'
9685 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9686 SET_MAKE='${SET_MAKE}'
9687 target_list='${target_list}'
9688 target_overrides='${target_overrides}'
9689 host_overrides='${host_overrides}'
9690 cross_defines='${cross_defines}'
9691 cross_overrides='${cross_overrides}'
9692 build_overrides='${build_overrides}'
9693 cpp_install_dir='${cpp_install_dir}'
9696 cat >> $CONFIG_STATUS <<\EOF
9697 case "$CONFIG_FILES" in *po/Makefile.in*)
9698 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9701 . $srcdir/configure.lang
9702 case x$CONFIG_HEADERS in
9703 xauto-host.h:config.in)
9706 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9707 # bootstrapping and the installation procedure can still use
9708 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9709 # FLAGS_TO_PASS has been modified to solve the problem there.
9710 # This is virtually a duplicate of what happens in configure.lang; we do
9711 # an extra check to make sure this only happens if ln -s can be used.
9712 if test "$symbolic_link" = "ln -s"; then
9713 for d in .. ${subdirs} ; do
9714 if test $d != ..; then
9717 for t in stage1 stage2 stage3 stage4 include
9720 $symbolic_link ../$t $t 2>/dev/null
9726 # Avoid having to add intl to our include paths.
9727 if test -f intl/libintl.h; then
9728 echo creating libintl.h
9729 echo '#include "intl/libintl.h"' >libintl.h
9734 chmod +x $CONFIG_STATUS
9735 rm -fr confdefs* $ac_clean_files
9736 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1