3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking enable expensive run-time checks."
34 --disable-cpp don't provide a user-visible C preprocessor."
36 --with-cpp-install-dir=DIR
37 install the user visible C preprocessor in DIR
38 (relative to PREFIX) as well as PREFIX/bin."
40 --enable-cpplib use cpplib for the C preprocessor."
42 --enable-c-cpplib link cpplib directly into C and C++ compilers
43 (EXPERIMENTAL) (implies --enable-cpplib)."
45 --disable-fast-fixincludes
46 Disable the new fast fixincludes.
47 Run the old fixincludes script unconditionally"
49 --enable-c-mbchar Enable multibyte characters for C and C++."
51 --enable-threads enable thread usage for target GCC.
52 --enable-threads=LIB use LIB thread package for target GCC."
54 --enable-objc-gc enable the use of Boehm's garbage collector with
55 the GNU Objective-C runtime."
57 --enable-dwarf2 enable DWARF2 debugging as default."
59 --enable-nls use Native Language Support (disabled by default)"
61 --disable-nls do not use Native Language Support"
63 --with-included-gettext use the GNU gettext library included here"
65 --with-catgets use catgets functions if available"
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file=./config.cache
88 program_transform_name=s,x,x,
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --site-file=FILE use FILE as the site file
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host | --host | --hos | --ho)
253 -host=* | --host=* | --hos=* | --ho=*)
256 -includedir | --includedir | --includedi | --included | --include \
257 | --includ | --inclu | --incl | --inc)
258 ac_prev=includedir ;;
259 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
260 | --includ=* | --inclu=* | --incl=* | --inc=*)
261 includedir="$ac_optarg" ;;
263 -infodir | --infodir | --infodi | --infod | --info | --inf)
265 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
266 infodir="$ac_optarg" ;;
268 -libdir | --libdir | --libdi | --libd)
270 -libdir=* | --libdir=* | --libdi=* | --libd=*)
271 libdir="$ac_optarg" ;;
273 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
274 | --libexe | --libex | --libe)
275 ac_prev=libexecdir ;;
276 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
277 | --libexe=* | --libex=* | --libe=*)
278 libexecdir="$ac_optarg" ;;
280 -localstatedir | --localstatedir | --localstatedi | --localstated \
281 | --localstate | --localstat | --localsta | --localst \
282 | --locals | --local | --loca | --loc | --lo)
283 ac_prev=localstatedir ;;
284 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
285 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
286 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
287 localstatedir="$ac_optarg" ;;
289 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
291 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
292 mandir="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
302 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
303 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
306 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
307 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
308 | --oldin | --oldi | --old | --ol | --o)
309 ac_prev=oldincludedir ;;
310 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
311 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
312 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
313 oldincludedir="$ac_optarg" ;;
315 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
317 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
318 prefix="$ac_optarg" ;;
320 -program-prefix | --program-prefix | --program-prefi | --program-pref \
321 | --program-pre | --program-pr | --program-p)
322 ac_prev=program_prefix ;;
323 -program-prefix=* | --program-prefix=* | --program-prefi=* \
324 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
325 program_prefix="$ac_optarg" ;;
327 -program-suffix | --program-suffix | --program-suffi | --program-suff \
328 | --program-suf | --program-su | --program-s)
329 ac_prev=program_suffix ;;
330 -program-suffix=* | --program-suffix=* | --program-suffi=* \
331 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
332 program_suffix="$ac_optarg" ;;
334 -program-transform-name | --program-transform-name \
335 | --program-transform-nam | --program-transform-na \
336 | --program-transform-n | --program-transform- \
337 | --program-transform | --program-transfor \
338 | --program-transfo | --program-transf \
339 | --program-trans | --program-tran \
340 | --progr-tra | --program-tr | --program-t)
341 ac_prev=program_transform_name ;;
342 -program-transform-name=* | --program-transform-name=* \
343 | --program-transform-nam=* | --program-transform-na=* \
344 | --program-transform-n=* | --program-transform-=* \
345 | --program-transform=* | --program-transfor=* \
346 | --program-transfo=* | --program-transf=* \
347 | --program-trans=* | --program-tran=* \
348 | --progr-tra=* | --program-tr=* | --program-t=*)
349 program_transform_name="$ac_optarg" ;;
351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
352 | -silent | --silent | --silen | --sile | --sil)
355 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
357 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
359 sbindir="$ac_optarg" ;;
361 -sharedstatedir | --sharedstatedir | --sharedstatedi \
362 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
363 | --sharedst | --shareds | --shared | --share | --shar \
365 ac_prev=sharedstatedir ;;
366 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
367 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
368 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
370 sharedstatedir="$ac_optarg" ;;
372 -site | --site | --sit)
374 -site=* | --site=* | --sit=*)
377 -site-file | --site-file | --site-fil | --site-fi | --site-f)
379 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
380 sitefile="$ac_optarg" ;;
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 "$sitefile"; then
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE; then
550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 CONFIG_SITE="$sitefile"
558 for ac_site_file in $CONFIG_SITE; do
559 if test -r "$ac_site_file"; then
560 echo "loading site script $ac_site_file"
565 if test -r "$cache_file"; then
566 echo "loading cache $cache_file"
569 echo "creating cache $cache_file"
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp='$CPP $CPPFLAGS'
576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling=$ac_cv_prog_cc_cross
582 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
583 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
584 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591 ac_n= ac_c='\c' ac_t=
599 symbolic_link='ln -s'
602 # Check for bogus environment variables.
603 # Test if LIBRARY_PATH contains the notation for the current directory
604 # since this would lead to problems installing/building glibc.
605 # LIBRARY_PATH contains the current directory if one of the following
607 # - one of the terminals (":" and ";") is the first or last sign
608 # - two terminals occur directly after each other
609 # - the path contains an element with a dot in it
610 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
611 echo "configure:612: checking LIBRARY_PATH variable" >&5
612 case ${LIBRARY_PATH} in
613 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
614 library_path_setting="contains current directory"
617 library_path_setting="ok"
620 echo "$ac_t""$library_path_setting" 1>&6
621 if test "$library_path_setting" != "ok"; then
622 { echo "configure: error:
623 *** LIBRARY_PATH shouldn't contain the current directory when
624 *** building gcc. Please change the environment variable
625 *** and run configure again." 1>&2; exit 1; }
628 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
629 # since this would lead to problems installing/building glibc.
630 # GCC_EXEC_PREFIX contains the current directory if one of the following
632 # - one of the terminals (":" and ";") is the first or last sign
633 # - two terminals occur directly after each other
634 # - the path contains an element with a dot in it
635 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
636 echo "configure:637: checking GCC_EXEC_PREFIX variable" >&5
637 case ${GCC_EXEC_PREFIX} in
638 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
639 gcc_exec_prefix_setting="contains current directory"
642 gcc_exec_prefix_setting="ok"
645 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
646 if test "$gcc_exec_prefix_setting" != "ok"; then
647 { echo "configure: error:
648 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
649 *** building gcc. Please change the environment variable
650 *** and run configure again." 1>&2; exit 1; }
653 # Check for additional parameters
656 # Check whether --with-gnu-ld or --without-gnu-ld was given.
657 if test "${with_gnu_ld+set}" = set; then
658 withval="$with_gnu_ld"
659 gnu_ld_flag="$with_gnu_ld"
665 # With pre-defined ld
666 # Check whether --with-ld or --without-ld was given.
667 if test "${with_ld+set}" = set; then
669 DEFAULT_LINKER="$with_ld"
672 if test x"${DEFAULT_LINKER+set}" = x"set"; then
673 if test ! -x "$DEFAULT_LINKER"; then
674 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
675 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
678 cat >> confdefs.h <<EOF
679 #define DEFAULT_LINKER "$DEFAULT_LINKER"
685 # Check whether --with-gnu-as or --without-gnu-as was given.
686 if test "${with_gnu_as+set}" = set; then
687 withval="$with_gnu_as"
688 gas_flag="$with_gnu_as"
694 # Check whether --with-as or --without-as was given.
695 if test "${with_as+set}" = set; then
697 DEFAULT_ASSEMBLER="$with_as"
700 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
701 if test ! -x "$DEFAULT_ASSEMBLER"; then
702 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
703 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
706 cat >> confdefs.h <<EOF
707 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
713 # Check whether --with-stabs or --without-stabs was given.
714 if test "${with_stabs+set}" = set; then
715 withval="$with_stabs"
723 # Check whether --with-elf or --without-elf was given.
724 if test "${with_elf+set}" = set; then
732 # Specify the local prefix
734 # Check whether --with-local-prefix or --without-local-prefix was given.
735 if test "${with_local_prefix+set}" = set; then
736 withval="$with_local_prefix"
738 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
740 *) local_prefix=$with_local_prefix ;;
745 # Default local prefix if it is empty
746 if test x$local_prefix = x; then
747 local_prefix=/usr/local
750 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
751 # passed in by the toplevel make and thus we'd get different behavior
752 # depending on where we built the sources.
754 # Specify the g++ header file directory
755 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
756 if test "${with_gxx_include_dir+set}" = set; then
757 withval="$with_gxx_include_dir"
759 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
761 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
766 if test x${gcc_gxx_include_dir} = x; then
767 if test x${enable_version_specific_runtime_libs} = xyes; then
768 gcc_gxx_include_dir='${libsubdir}/include/g++'
770 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
771 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
775 # Enable expensive internal checks
776 # Check whether --enable-checking or --disable-checking was given.
777 if test "${enable_checking+set}" = set; then
778 enableval="$enable_checking"
779 case "${enableval}" in
780 yes) cat >> confdefs.h <<\EOF
781 #define ENABLE_CHECKING 1
785 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
790 # Check whether --enable-cpp or --disable-cpp was given.
791 if test "${enable_cpp+set}" = set; then
792 enableval="$enable_cpp"
799 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
800 if test "${with_cpp_install_dir+set}" = set; then
801 withval="$with_cpp_install_dir"
802 if test x$withval = xyes; then
803 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
804 elif test x$withval != xno; then
805 cpp_install_dir=$withval
810 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
812 # Check whether --enable-cpplib or --disable-cpplib was given.
813 if test "${enable_cpplib+set}" = set; then
814 enableval="$enable_cpplib"
815 if test x$enable_cpplib != xno; then
821 # Link cpplib into the compiler proper, for C/C++/ObjC.
822 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
823 if test "${enable_c_cpplib+set}" = set; then
824 enableval="$enable_c_cpplib"
825 if test x$enable_c_cpplib != xno; then
826 extra_c_objs="${extra_c_objs} libcpp.a"
827 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
828 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
834 # Disable fast fixincludes
835 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
836 if test "${enable_fast_fixincludes+set}" = set; then
837 enableval="$enable_fast_fixincludes"
838 if test x$enable_fast_fixincludes = xno ; then
839 cp $srcdir/fixincludes ./fixinc.sh
844 # Enable Multibyte Characters for C/C++
845 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
846 if test "${enable_c_mbchar+set}" = set; then
847 enableval="$enable_c_mbchar"
848 if [ x$enable_c_mbchar != xno ]; then
849 extra_c_flags=-DMULTIBYTE_CHARS=1
855 # Pass with no value to take the default
856 # Pass with a value to specify a thread package
857 # Check whether --enable-threads or --disable-threads was given.
858 if test "${enable_threads+set}" = set; then
859 enableval="$enable_threads"
860 if test x$enable_threads = xno; then
868 enable_threads_flag=$enable_threads
869 # Check if a valid thread package
870 case x${enable_threads_flag} in
873 target_thread_file='single'
877 target_thread_file=''
879 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
880 xsolaris | xwin32 | xdce | xvxworks)
881 target_thread_file=$enable_threads_flag
884 echo "$enable_threads is an unknown thread package" 1>&2
889 # Check whether --enable-objc-gc or --disable-objc-gc was given.
890 if test "${enable_objc_gc+set}" = set; then
891 enableval="$enable_objc_gc"
892 if [ x$enable_objc_gc = xno ]; then
902 # Check whether --with-dwarf2 or --without-dwarf2 was given.
903 if test "${with_dwarf2+set}" = set; then
904 withval="$with_dwarf2"
905 dwarf2="$with_dwarf2"
911 # Determine the host, build, and target systems
913 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
914 if test -f $ac_dir/install-sh; then
916 ac_install_sh="$ac_aux_dir/install-sh -c"
918 elif test -f $ac_dir/install.sh; then
920 ac_install_sh="$ac_aux_dir/install.sh -c"
924 if test -z "$ac_aux_dir"; then
925 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
927 ac_config_guess=$ac_aux_dir/config.guess
928 ac_config_sub=$ac_aux_dir/config.sub
929 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
932 # Do some error checking and defaulting for the host and target type.
934 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
937 # 1. You are not allowed to specify --host, --target, and nonopt at the
939 # 2. Host defaults to nonopt.
940 # 3. If nonopt is not specified, then host defaults to the current host,
941 # as determined by config.guess.
942 # 4. Target and build default to nonopt.
943 # 5. If nonopt is not specified, then target and build default to host.
945 # The aliases save the names the user supplied, while $host etc.
946 # will get canonicalized.
947 case $host---$target---$nonopt in
948 NONE---*---* | *---NONE---* | *---*---NONE) ;;
949 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
953 # Make sure we can run config.sub.
954 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
955 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
958 echo $ac_n "checking host system type""... $ac_c" 1>&6
959 echo "configure:960: checking host system type" >&5
962 case "$host_alias" in
966 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
967 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
969 *) host_alias=$nonopt ;;
973 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
974 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
975 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
976 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
977 echo "$ac_t""$host" 1>&6
979 echo $ac_n "checking target system type""... $ac_c" 1>&6
980 echo "configure:981: checking target system type" >&5
983 case "$target_alias" in
986 NONE) target_alias=$host_alias ;;
987 *) target_alias=$nonopt ;;
991 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
992 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
993 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
994 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
995 echo "$ac_t""$target" 1>&6
997 echo $ac_n "checking build system type""... $ac_c" 1>&6
998 echo "configure:999: checking build system type" >&5
1001 case "$build_alias" in
1004 NONE) build_alias=$host_alias ;;
1005 *) build_alias=$nonopt ;;
1009 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1010 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1011 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1012 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013 echo "$ac_t""$build" 1>&6
1015 test "$host_alias" != "$target_alias" &&
1016 test "$program_prefix$program_suffix$program_transform_name" = \
1018 program_prefix=${target_alias}-
1021 # Find the native compiler
1022 # Extract the first word of "gcc", so it can be a program name with args.
1023 set dummy gcc; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test.
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1045 if test -n "$CC"; then
1046 echo "$ac_t""$CC" 1>&6
1048 echo "$ac_t""no" 1>&6
1051 if test -z "$CC"; then
1052 # Extract the first word of "cc", so it can be a program name with args.
1053 set dummy cc; ac_word=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 if test -n "$CC"; then
1060 ac_cv_prog_CC="$CC" # Let the user override the test.
1062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1065 for ac_dir in $ac_dummy; do
1066 test -z "$ac_dir" && ac_dir=.
1067 if test -f $ac_dir/$ac_word; then
1068 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1069 ac_prog_rejected=yes
1077 if test $ac_prog_rejected = yes; then
1078 # We found a bogon in the path, so make sure we never use it.
1079 set dummy $ac_cv_prog_CC
1081 if test $# -gt 0; then
1082 # We chose a different compiler from the bogus one.
1083 # However, it has the same basename, so the bogon will be chosen
1084 # first if we set CC to just the basename; use the full file name.
1086 set dummy "$ac_dir/$ac_word" "$@"
1094 if test -n "$CC"; then
1095 echo "$ac_t""$CC" 1>&6
1097 echo "$ac_t""no" 1>&6
1100 if test -z "$CC"; then
1101 case "`uname -s`" in
1103 # Extract the first word of "cl", so it can be a program name with args.
1104 set dummy cl; ac_word=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 if test -n "$CC"; then
1111 ac_cv_prog_CC="$CC" # Let the user override the test.
1113 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1115 for ac_dir in $ac_dummy; do
1116 test -z "$ac_dir" && ac_dir=.
1117 if test -f $ac_dir/$ac_word; then
1126 if test -n "$CC"; then
1127 echo "$ac_t""$CC" 1>&6
1129 echo "$ac_t""no" 1>&6
1134 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1137 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1141 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1142 ac_cpp='$CPP $CPPFLAGS'
1143 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1144 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1145 cross_compiling=$ac_cv_prog_cc_cross
1147 cat > conftest.$ac_ext << EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1154 if { (eval echo configure:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1155 ac_cv_prog_cc_works=yes
1156 # If we can't run a trivial program, we are probably using a cross compiler.
1157 if (./conftest; exit) 2>/dev/null; then
1158 ac_cv_prog_cc_cross=no
1160 ac_cv_prog_cc_cross=yes
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1165 ac_cv_prog_cc_works=no
1169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1170 ac_cpp='$CPP $CPPFLAGS'
1171 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1172 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1173 cross_compiling=$ac_cv_prog_cc_cross
1175 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1176 if test $ac_cv_prog_cc_works = no; then
1177 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1179 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1181 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1182 cross_compiling=$ac_cv_prog_cc_cross
1184 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether we are using GNU C" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 cat > conftest.c <<EOF
1194 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1201 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1203 if test $ac_cv_prog_gcc = yes; then
1209 ac_test_CFLAGS="${CFLAGS+set}"
1210 ac_save_CFLAGS="$CFLAGS"
1212 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether ${CC-cc} accepts -g" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 echo 'void f(){}' > conftest.c
1218 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1227 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1228 if test "$ac_test_CFLAGS" = set; then
1229 CFLAGS="$ac_save_CFLAGS"
1230 elif test $ac_cv_prog_cc_g = yes; then
1231 if test "$GCC" = yes; then
1237 if test "$GCC" = yes; then
1244 echo $ac_n "checking for long double""... $ac_c" 1>&6
1245 echo "configure:1246: checking for long double" >&5
1246 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 if test "$GCC" = yes; then
1250 gcc_cv_c_long_double=yes
1252 cat > conftest.$ac_ext <<EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1257 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1258 long double foo = 0.0;
1259 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1260 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1263 if { (eval echo configure:1264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1265 gcc_cv_c_long_double=yes
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1270 gcc_cv_c_long_double=no
1276 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1277 if test $gcc_cv_c_long_double = yes; then
1278 cat >> confdefs.h <<\EOF
1279 #define HAVE_LONG_DOUBLE 1
1285 # If the native compiler is GCC, we can enable warnings even in stage1.
1286 # That's useful for people building cross-compilers, or just running a
1288 if test "x$GCC" = "xyes"; then
1289 stage1_warn_cflags='$(WARN_CFLAGS)'
1291 stage1_warn_cflags=""
1295 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether ${MAKE-make} sets \${MAKE}" >&5
1297 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1298 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 cat > conftestmake <<\EOF
1303 @echo 'ac_maketemp="${MAKE}"'
1305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1306 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1307 if test -n "$ac_maketemp"; then
1308 eval ac_cv_prog_make_${ac_make}_set=yes
1310 eval ac_cv_prog_make_${ac_make}_set=no
1314 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1315 echo "$ac_t""yes" 1>&6
1318 echo "$ac_t""no" 1>&6
1319 SET_MAKE="MAKE=${MAKE-make}"
1323 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1324 echo "configure:1325: checking whether a default assembler was specified" >&5
1325 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1326 if test x"$gas_flag" = x"no"; then
1327 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1329 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1332 echo "$ac_t""no" 1>&6
1335 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether a default linker was specified" >&5
1337 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1338 if test x"$gnu_ld_flag" = x"no"; then
1339 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1341 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 # Find some useful tools
1348 for ac_prog in mawk gawk nawk awk
1350 # Extract the first word of "$ac_prog", so it can be a program name with args.
1351 set dummy $ac_prog; ac_word=$2
1352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1353 echo "configure:1354: checking for $ac_word" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 if test -n "$AWK"; then
1358 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1362 for ac_dir in $ac_dummy; do
1363 test -z "$ac_dir" && ac_dir=.
1364 if test -f $ac_dir/$ac_word; then
1365 ac_cv_prog_AWK="$ac_prog"
1372 AWK="$ac_cv_prog_AWK"
1373 if test -n "$AWK"; then
1374 echo "$ac_t""$AWK" 1>&6
1376 echo "$ac_t""no" 1>&6
1379 test -n "$AWK" && break
1382 # Extract the first word of "flex", so it can be a program name with args.
1383 set dummy flex; ac_word=$2
1384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1385 echo "configure:1386: checking for $ac_word" >&5
1386 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 if test -n "$LEX"; then
1390 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1394 for ac_dir in $ac_dummy; do
1395 test -z "$ac_dir" && ac_dir=.
1396 if test -f $ac_dir/$ac_word; then
1397 ac_cv_prog_LEX="flex"
1402 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1405 LEX="$ac_cv_prog_LEX"
1406 if test -n "$LEX"; then
1407 echo "$ac_t""$LEX" 1>&6
1409 echo "$ac_t""no" 1>&6
1412 if test -z "$LEXLIB"
1418 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1419 echo "configure:1420: checking for yywrap in -l$ac_lib" >&5
1420 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 ac_save_LIBS="$LIBS"
1425 LIBS="-l$ac_lib $LIBS"
1426 cat > conftest.$ac_ext <<EOF
1427 #line 1428 "configure"
1428 #include "confdefs.h"
1429 /* Override any gcc2 internal prototype to avoid an error. */
1430 /* We use char because int might match the return type of a gcc2
1431 builtin and then its argument prototype would still apply. */
1438 if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1440 eval "ac_cv_lib_$ac_lib_var=yes"
1442 echo "configure: failed program was:" >&5
1443 cat conftest.$ac_ext >&5
1445 eval "ac_cv_lib_$ac_lib_var=no"
1448 LIBS="$ac_save_LIBS"
1451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1452 echo "$ac_t""yes" 1>&6
1455 echo "$ac_t""no" 1>&6
1460 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1461 echo "configure:1462: checking whether ln works" >&5
1462 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 rm -f conftestdata_t
1466 echo >conftestdata_f
1467 if ln conftestdata_f conftestdata_t 2>/dev/null
1471 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1473 gcc_cv_prog_LN="ln -s"
1478 rm -f conftestdata_f conftestdata_t
1481 LN="$gcc_cv_prog_LN"
1482 if test "$gcc_cv_prog_LN" = "ln"; then
1483 echo "$ac_t""yes" 1>&6
1485 if test "$gcc_cv_prog_LN" = "ln -s"; then
1486 echo "$ac_t""no, using ln -s" 1>&6
1488 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1492 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1493 echo "configure:1494: checking whether ln -s works" >&5
1494 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 rm -f conftestdata_t
1498 echo >conftestdata_f
1499 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1501 gcc_cv_prog_LN_S="ln -s"
1503 if ln conftestdata_f conftestdata_t 2>/dev/null
1510 rm -f conftestdata_f conftestdata_t
1513 LN_S="$gcc_cv_prog_LN_S"
1514 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1515 echo "$ac_t""yes" 1>&6
1517 if test "$gcc_cv_prog_LN_S" = "ln"; then
1518 echo "$ac_t""no, using ln" 1>&6
1520 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1524 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1525 echo "configure:1526: checking for volatile" >&5
1526 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1537 if { (eval echo configure:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1539 gcc_cv_c_volatile=yes
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1544 gcc_cv_c_volatile=no
1549 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1550 if test $gcc_cv_c_volatile = yes ; then
1551 cat >> confdefs.h <<\EOF
1552 #define HAVE_VOLATILE 1
1557 # Extract the first word of "ranlib", so it can be a program name with args.
1558 set dummy ranlib; ac_word=$2
1559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1560 echo "configure:1561: checking for $ac_word" >&5
1561 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 if test -n "$RANLIB"; then
1565 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1569 for ac_dir in $ac_dummy; do
1570 test -z "$ac_dir" && ac_dir=.
1571 if test -f $ac_dir/$ac_word; then
1572 ac_cv_prog_RANLIB="ranlib"
1577 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1580 RANLIB="$ac_cv_prog_RANLIB"
1581 if test -n "$RANLIB"; then
1582 echo "$ac_t""$RANLIB" 1>&6
1584 echo "$ac_t""no" 1>&6
1587 for ac_prog in 'bison -y' byacc
1589 # Extract the first word of "$ac_prog", so it can be a program name with args.
1590 set dummy $ac_prog; ac_word=$2
1591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $ac_word" >&5
1593 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 if test -n "$YACC"; then
1597 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1601 for ac_dir in $ac_dummy; do
1602 test -z "$ac_dir" && ac_dir=.
1603 if test -f $ac_dir/$ac_word; then
1604 ac_cv_prog_YACC="$ac_prog"
1611 YACC="$ac_cv_prog_YACC"
1612 if test -n "$YACC"; then
1613 echo "$ac_t""$YACC" 1>&6
1615 echo "$ac_t""no" 1>&6
1618 test -n "$YACC" && break
1620 test -n "$YACC" || YACC="yacc"
1622 # Find a good install program. We prefer a C program (faster),
1623 # so one script is as good as another. But avoid the broken or
1624 # incompatible versions:
1625 # SysV /etc/install, /usr/sbin/install
1626 # SunOS /usr/etc/install
1627 # IRIX /sbin/install
1629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1631 # ./install, which can be erroneously created by make from ./install.sh.
1632 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1633 echo "configure:1634: checking for a BSD compatible install" >&5
1634 if test -z "$INSTALL"; then
1635 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1639 for ac_dir in $PATH; do
1640 # Account for people who put trailing slashes in PATH elements.
1642 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1644 # OSF1 and SCO ODT 3.0 have their own names for install.
1645 for ac_prog in ginstall scoinst install; do
1646 if test -f $ac_dir/$ac_prog; then
1647 if test $ac_prog = install &&
1648 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1649 # AIX install. It has an incompatible calling convention.
1650 # OSF/1 installbsd also uses dspmsg, but is usable.
1653 ac_cv_path_install="$ac_dir/$ac_prog -c"
1664 if test "${ac_cv_path_install+set}" = set; then
1665 INSTALL="$ac_cv_path_install"
1667 # As a last resort, use the slow shell script. We don't cache a
1668 # path for INSTALL within a source directory, because that will
1669 # break other packages using the cache if that directory is
1670 # removed, or if the path is relative.
1671 INSTALL="$ac_install_sh"
1674 echo "$ac_t""$INSTALL" 1>&6
1676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1677 # It thinks the first close brace ends the variable substitution.
1678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1680 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1683 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1684 echo "configure:1685: checking how to run the C preprocessor" >&5
1685 # On Suns, sometimes $CPP names a directory.
1686 if test -n "$CPP" && test -d "$CPP"; then
1689 if test -z "$CPP"; then
1690 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 # This must be in double quotes, not single quotes, because CPP may get
1694 # substituted into the Makefile and "${CC-cc}" will confuse make.
1696 # On the NeXT, cc -E runs the code through the compiler's parser,
1697 # not just through cpp.
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1707 if test -z "$ac_err"; then
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 CPP="${CC-cc} -E -traditional-cpp"
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1722 { (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1724 if test -z "$ac_err"; then
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1731 CPP="${CC-cc} -nologo -E"
1732 cat > conftest.$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1739 { (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1741 if test -z "$ac_err"; then
1745 echo "configure: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1755 ac_cv_prog_CPP="$CPP"
1757 CPP="$ac_cv_prog_CPP"
1759 ac_cv_prog_CPP="$CPP"
1761 echo "$ac_t""$CPP" 1>&6
1763 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1764 echo "configure:1765: checking for ANSI C header files" >&5
1765 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1777 { (eval echo configure:1778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1779 if test -z "$ac_err"; then
1781 ac_cv_header_stdc=yes
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1787 ac_cv_header_stdc=no
1791 if test $ac_cv_header_stdc = yes; then
1792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1793 cat > conftest.$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1799 egrep "memchr" >/dev/null 2>&1; then
1803 ac_cv_header_stdc=no
1809 if test $ac_cv_header_stdc = yes; then
1810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1817 egrep "free" >/dev/null 2>&1; then
1821 ac_cv_header_stdc=no
1827 if test $ac_cv_header_stdc = yes; then
1828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1829 if test "$cross_compiling" = yes; then
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1836 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1837 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1839 int main () { int i; for (i = 0; i < 256; i++)
1840 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1844 if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1848 echo "configure: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1851 ac_cv_header_stdc=no
1859 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1860 if test $ac_cv_header_stdc = yes; then
1861 cat >> confdefs.h <<\EOF
1862 #define STDC_HEADERS 1
1867 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1868 echo "configure:1869: checking whether time.h and sys/time.h may both be included" >&5
1869 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 #include <sys/types.h>
1876 #include <sys/time.h>
1882 if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1884 ac_cv_header_time=yes
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1889 ac_cv_header_time=no
1894 echo "$ac_t""$ac_cv_header_time" 1>&6
1895 if test $ac_cv_header_time = yes; then
1896 cat >> confdefs.h <<\EOF
1897 #define TIME_WITH_SYS_TIME 1
1902 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether string.h and strings.h may both be included" >&5
1904 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1907 cat > conftest.$ac_ext <<EOF
1908 #line 1909 "configure"
1909 #include "confdefs.h"
1911 #include <strings.h>
1916 if { (eval echo configure:1917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1918 gcc_cv_header_string=yes
1920 echo "configure: failed program was:" >&5
1921 cat conftest.$ac_ext >&5
1923 gcc_cv_header_string=no
1928 echo "$ac_t""$gcc_cv_header_string" 1>&6
1929 if test $gcc_cv_header_string = yes; then
1930 cat >> confdefs.h <<\EOF
1931 #define STRING_WITH_STRINGS 1
1936 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1937 echo "configure:1938: checking for sys/wait.h that is POSIX.1 compatible" >&5
1938 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1944 #include <sys/types.h>
1945 #include <sys/wait.h>
1947 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1950 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1955 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1958 if { (eval echo configure:1959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1960 ac_cv_header_sys_wait_h=yes
1962 echo "configure: failed program was:" >&5
1963 cat conftest.$ac_ext >&5
1965 ac_cv_header_sys_wait_h=no
1970 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1971 if test $ac_cv_header_sys_wait_h = yes; then
1972 cat >> confdefs.h <<\EOF
1973 #define HAVE_SYS_WAIT_H 1
1978 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
1979 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
1980 sys/resource.h sys/param.h sys/times.h sys/stat.h \
1983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1985 echo "configure:1986: checking for $ac_hdr" >&5
1986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1995 { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1997 if test -z "$ac_err"; then
1999 eval "ac_cv_header_$ac_safe=yes"
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2005 eval "ac_cv_header_$ac_safe=no"
2009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2010 echo "$ac_t""yes" 1>&6
2011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2012 cat >> confdefs.h <<EOF
2013 #define $ac_tr_hdr 1
2017 echo "$ac_t""no" 1>&6
2022 # Check for thread headers.
2023 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'`
2024 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2025 echo "configure:2026: checking for thread.h" >&5
2026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2035 { (eval echo configure:2036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2037 if test -z "$ac_err"; then
2039 eval "ac_cv_header_$ac_safe=yes"
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 eval "ac_cv_header_$ac_safe=no"
2049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2053 echo "$ac_t""no" 1>&6
2057 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2058 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2059 echo "configure:2060: checking for pthread.h" >&5
2060 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2066 #include <pthread.h>
2068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2069 { (eval echo configure:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2071 if test -z "$ac_err"; then
2073 eval "ac_cv_header_$ac_safe=yes"
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2079 eval "ac_cv_header_$ac_safe=no"
2083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2084 echo "$ac_t""yes" 1>&6
2087 echo "$ac_t""no" 1>&6
2092 # See if GNAT has been installed
2093 # Extract the first word of "gnatbind", so it can be a program name with args.
2094 set dummy gnatbind; ac_word=$2
2095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2096 echo "configure:2097: checking for $ac_word" >&5
2097 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2098 echo $ac_n "(cached) $ac_c" 1>&6
2100 if test -n "$gnat"; then
2101 ac_cv_prog_gnat="$gnat" # Let the user override the test.
2103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2105 for ac_dir in $ac_dummy; do
2106 test -z "$ac_dir" && ac_dir=.
2107 if test -f $ac_dir/$ac_word; then
2108 ac_cv_prog_gnat="yes"
2113 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat="no"
2116 gnat="$ac_cv_prog_gnat"
2117 if test -n "$gnat"; then
2118 echo "$ac_t""$gnat" 1>&6
2120 echo "$ac_t""no" 1>&6
2124 # See if the stage1 system preprocessor understands the ANSI C
2125 # preprocessor stringification operator.
2128 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2129 echo "configure:2130: checking for preprocessor stringizing operator" >&5
2130 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2139 char *s = x(teststring);
2142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2143 egrep "#teststring" >/dev/null 2>&1; then
2145 ac_cv_c_stringize=no
2148 ac_cv_c_stringize=yes
2154 if test "${ac_cv_c_stringize}" = yes
2156 cat >> confdefs.h <<\EOF
2157 #define HAVE_STRINGIZE 1
2161 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2164 # Use <inttypes.h> only if it exists,
2165 # doesn't clash with <sys/types.h>, and declares intmax_t.
2166 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2167 echo "configure:2168: checking for inttypes.h" >&5
2168 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2174 #include <sys/types.h>
2175 #include <inttypes.h>
2180 if { (eval echo configure:2181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2182 gcc_cv_header_inttypes_h=yes
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2187 gcc_cv_header_inttypes_h=no
2192 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2193 if test $gcc_cv_header_inttypes_h = yes; then
2194 cat >> confdefs.h <<\EOF
2195 #define HAVE_INTTYPES_H 1
2200 for ac_func in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2201 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
2202 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2203 fputs_unlocked getrusage
2205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2206 echo "configure:2207: checking for $ac_func" >&5
2207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213 /* System header to define __stub macros and hopefully few prototypes,
2214 which can conflict with char $ac_func(); below. */
2216 /* Override any gcc2 internal prototype to avoid an error. */
2217 /* We use char because int might match the return type of a gcc2
2218 builtin and then its argument prototype would still apply. */
2223 /* The GNU C library defines this for functions which it implements
2224 to always fail with ENOSYS. Some functions are actually named
2225 something starting with __ and the normal name is an alias. */
2226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2234 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2236 eval "ac_cv_func_$ac_func=yes"
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2241 eval "ac_cv_func_$ac_func=no"
2246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2249 cat >> confdefs.h <<EOF
2250 #define $ac_tr_func 1
2254 echo "$ac_t""no" 1>&6
2259 # Make sure wchar_t is available
2260 #AC_CHECK_TYPE(wchar_t, unsigned int)
2262 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2263 echo "configure:2264: checking for vprintf" >&5
2264 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 /* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char vprintf(); below. */
2273 /* Override any gcc2 internal prototype to avoid an error. */
2274 /* We use char because int might match the return type of a gcc2
2275 builtin and then its argument prototype would still apply. */
2280 /* The GNU C library defines this for functions which it implements
2281 to always fail with ENOSYS. Some functions are actually named
2282 something starting with __ and the normal name is an alias. */
2283 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2291 if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2293 eval "ac_cv_func_vprintf=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 eval "ac_cv_func_vprintf=no"
2303 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 cat >> confdefs.h <<\EOF
2306 #define HAVE_VPRINTF 1
2310 echo "$ac_t""no" 1>&6
2313 if test "$ac_cv_func_vprintf" != yes; then
2314 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2315 echo "configure:2316: checking for _doprnt" >&5
2316 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* System header to define __stub macros and hopefully few prototypes,
2323 which can conflict with char _doprnt(); below. */
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2343 if { (eval echo configure:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2345 eval "ac_cv_func__doprnt=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 eval "ac_cv_func__doprnt=no"
2355 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2357 cat >> confdefs.h <<\EOF
2358 #define HAVE_DOPRNT 1
2362 echo "$ac_t""no" 1>&6
2369 if test $ac_cv_func_vprintf != yes ; then
2371 if test $ac_cv_func__doprnt != yes ; then
2378 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2379 echo "configure:2380: checking whether the printf functions support %p" >&5
2380 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 if test "$cross_compiling" = yes; then
2384 gcc_cv_func_printf_ptr=no
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2394 char *p = buf, *q = NULL;
2395 sprintf(buf, "%p", p);
2396 sscanf(buf, "%p", &q);
2400 if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2402 gcc_cv_func_printf_ptr=yes
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2407 gcc_cv_func_printf_ptr=no
2412 rm -f core core.* *.core
2415 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2416 if test $gcc_cv_func_printf_ptr = yes ; then
2417 cat >> confdefs.h <<\EOF
2418 #define HAVE_PRINTF_PTR 1
2426 # Under some versions of uwin, vfork is notoriously buggy and the test
2427 # can hang configure; on other versions, vfork exists just as a stub.
2428 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2429 ac_cv_func_vfork_works=no
2432 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2433 echo "configure:2434: checking for pid_t" >&5
2434 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2440 #include <sys/types.h>
2446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2447 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2449 ac_cv_type_pid_t=yes
2457 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2458 if test $ac_cv_type_pid_t = no; then
2459 cat >> confdefs.h <<\EOF
2465 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2466 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2467 echo "configure:2468: checking for vfork.h" >&5
2468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2477 { (eval echo configure:2478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2479 if test -z "$ac_err"; then
2481 eval "ac_cv_header_$ac_safe=yes"
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 eval "ac_cv_header_$ac_safe=no"
2491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2492 echo "$ac_t""yes" 1>&6
2493 cat >> confdefs.h <<\EOF
2494 #define HAVE_VFORK_H 1
2498 echo "$ac_t""no" 1>&6
2501 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2502 echo "configure:2503: checking for working vfork" >&5
2503 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 if test "$cross_compiling" = yes; then
2507 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2508 echo "configure:2509: checking for vfork" >&5
2509 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 /* System header to define __stub macros and hopefully few prototypes,
2516 which can conflict with char vfork(); below. */
2518 /* Override any gcc2 internal prototype to avoid an error. */
2519 /* We use char because int might match the return type of a gcc2
2520 builtin and then its argument prototype would still apply. */
2525 /* The GNU C library defines this for functions which it implements
2526 to always fail with ENOSYS. Some functions are actually named
2527 something starting with __ and the normal name is an alias. */
2528 #if defined (__stub_vfork) || defined (__stub___vfork)
2536 if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2538 eval "ac_cv_func_vfork=yes"
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2543 eval "ac_cv_func_vfork=no"
2548 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2549 echo "$ac_t""yes" 1>&6
2552 echo "$ac_t""no" 1>&6
2555 ac_cv_func_vfork_works=$ac_cv_func_vfork
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 /* Thanks to Paul Eggert for this test. */
2562 #include <sys/types.h>
2563 #include <sys/stat.h>
2564 #ifdef HAVE_UNISTD_H
2570 /* On some sparc systems, changes by the child to local and incoming
2571 argument registers are propagated back to the parent.
2572 The compiler is told about this with #include <vfork.h>,
2573 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2574 Test for this by using a static variable whose address
2575 is put into a register that is clobbered by the vfork. */
2578 sparc_address_test (int arg)
2580 sparc_address_test (arg) int arg;
2598 pid_t parent = getpid ();
2601 sparc_address_test ();
2606 /* Here is another test for sparc vfork register problems.
2607 This test uses lots of local variables, at least
2608 as many local variables as main has allocated so far
2609 including compiler temporaries. 4 locals are enough for
2610 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2611 A buggy compiler should reuse the register of parent
2612 for one of the local variables, since it will think that
2613 parent can't possibly be used any more in this routine.
2614 Assigning to the local variable will thus munge parent
2615 in the parent process. */
2617 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2618 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2619 /* Convince the compiler that p..p7 are live; otherwise, it might
2620 use the same hardware register for all 8 local variables. */
2621 if (p != p1 || p != p2 || p != p3 || p != p4
2622 || p != p5 || p != p6 || p != p7)
2625 /* On some systems (e.g. IRIX 3.3),
2626 vfork doesn't separate parent from child file descriptors.
2627 If the child closes a descriptor before it execs or exits,
2628 this munges the parent's descriptor as well.
2629 Test for this by closing stdout in the child. */
2630 _exit(close(fileno(stdout)) != 0);
2635 while (wait(&status) != child)
2638 /* Was there some problem with vforking? */
2641 /* Did the child fail? (This shouldn't happen.) */
2644 /* Did the vfork/compiler bug occur? */
2645 || parent != getpid()
2647 /* Did the file descriptor bug occur? */
2648 || fstat(fileno(stdout), &st) != 0
2653 if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2655 ac_cv_func_vfork_works=yes
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2660 ac_cv_func_vfork_works=no
2667 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2668 if test $ac_cv_func_vfork_works = no; then
2669 cat >> confdefs.h <<\EOF
2676 for ac_func in bcopy bzero bcmp \
2677 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2678 strsignal putc_unlocked fputs_unlocked strstr
2680 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2681 echo "configure:2682: checking whether $ac_func must be declared" >&5
2682 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2690 #ifdef STRING_WITH_STRINGS
2691 # include <string.h>
2692 # include <strings.h>
2694 # ifdef HAVE_STRING_H
2695 # include <string.h>
2697 # ifdef HAVE_STRINGS_H
2698 # include <strings.h>
2702 #ifdef HAVE_STDLIB_H
2705 #ifdef HAVE_UNISTD_H
2709 #define rindex strrchr
2712 #define index strchr
2716 char *(*pfn) = (char *(*)) $ac_func
2719 if { (eval echo configure:2720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2721 eval "gcc_cv_decl_needed_$ac_func=no"
2723 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2726 eval "gcc_cv_decl_needed_$ac_func=yes"
2731 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2732 echo "$ac_t""yes" 1>&6
2733 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2734 cat >> confdefs.h <<EOF
2735 #define $gcc_tr_decl 1
2739 echo "$ac_t""no" 1>&6
2745 for ac_func in malloc realloc calloc free
2747 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2748 echo "configure:2749: checking whether $ac_func must be declared" >&5
2749 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 cat > conftest.$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2757 #ifdef STRING_WITH_STRINGS
2758 # include <string.h>
2759 # include <strings.h>
2761 # ifdef HAVE_STRING_H
2762 # include <string.h>
2764 # ifdef HAVE_STRINGS_H
2765 # include <strings.h>
2769 #ifdef HAVE_STDLIB_H
2772 #ifdef HAVE_UNISTD_H
2776 #define rindex strrchr
2779 #define index strchr
2781 #ifdef HAVE_MALLOC_H
2786 char *(*pfn) = (char *(*)) $ac_func
2789 if { (eval echo configure:2790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2791 eval "gcc_cv_decl_needed_$ac_func=no"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 eval "gcc_cv_decl_needed_$ac_func=yes"
2801 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2804 cat >> confdefs.h <<EOF
2805 #define $gcc_tr_decl 1
2809 echo "$ac_t""no" 1>&6
2815 for ac_func in getrlimit setrlimit getrusage
2817 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2818 echo "configure:2819: checking whether $ac_func must be declared" >&5
2819 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2827 #ifdef STRING_WITH_STRINGS
2828 # include <string.h>
2829 # include <strings.h>
2831 # ifdef HAVE_STRING_H
2832 # include <string.h>
2834 # ifdef HAVE_STRINGS_H
2835 # include <strings.h>
2839 #ifdef HAVE_STDLIB_H
2842 #ifdef HAVE_UNISTD_H
2846 #define rindex strrchr
2849 #define index strchr
2851 #include <sys/types.h>
2852 #ifdef HAVE_SYS_RESOURCE_H
2853 #include <sys/resource.h>
2857 char *(*pfn) = (char *(*)) $ac_func
2860 if { (eval echo configure:2861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 eval "gcc_cv_decl_needed_$ac_func=no"
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2867 eval "gcc_cv_decl_needed_$ac_func=yes"
2872 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2873 echo "$ac_t""yes" 1>&6
2874 gcc_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2875 cat >> confdefs.h <<EOF
2876 #define $gcc_tr_decl 1
2880 echo "$ac_t""no" 1>&6
2886 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2887 echo "configure:2888: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2888 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2894 #include <sys/types.h>
2896 /* NetBSD declares sys_siglist in unistd.h. */
2897 #ifdef HAVE_UNISTD_H
2901 char *msg = *(sys_siglist + 1);
2904 if { (eval echo configure:2905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2906 ac_cv_decl_sys_siglist=yes
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 ac_cv_decl_sys_siglist=no
2916 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2917 if test $ac_cv_decl_sys_siglist = yes; then
2918 cat >> confdefs.h <<\EOF
2919 #define SYS_SIGLIST_DECLARED 1
2925 # mkdir takes a single argument on some systems.
2926 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2927 echo "configure:2928: checking if mkdir takes one argument" >&5
2928 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2935 #include <sys/types.h>
2936 #ifdef HAVE_SYS_STAT_H
2937 # include <sys/stat.h>
2939 #ifdef HAVE_UNISTD_H
2940 # include <unistd.h>
2942 #ifdef HAVE_DIRECT_H
2943 # include <direct.h>
2949 if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2951 gcc_cv_mkdir_takes_one_arg=no
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 gcc_cv_mkdir_takes_one_arg=yes
2961 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2962 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2963 cat >> confdefs.h <<\EOF
2964 #define MKDIR_TAKES_ONE_ARG 1
2978 build_install_headers_dir=install-headers-tar
2983 host_truncate_target=
2986 # Decode the host machine, then the target machine.
2987 # For the host machine, we save the xm_file variable as host_xm_file;
2988 # then we decode the target machine and forget everything else
2989 # that came from the host machine.
2990 for machine in $build $host $target; do
3004 # Set this to force installation and use of collect2.
3006 # Set this to override the default target model.
3008 # Set this to control how the header file directory is installed.
3009 install_headers_dir=install-headers-tar
3010 # Set this to a non-empty list of args to pass to cpp if the target
3011 # wants its .md file passed through cpp.
3013 # Set this if directory names should be truncated to 14 characters.
3015 # Set this if gdb needs a dir command with `dirname $out_file`
3016 gdb_needs_out_file_path=
3017 # Set this if the build machine requires executables to have a
3020 # Set this to control which thread package will be used.
3022 # Reinitialize these from the flag values every loop pass, since some
3023 # configure entries modify them.
3025 gnu_ld="$gnu_ld_flag"
3026 enable_threads=$enable_threads_flag
3028 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3029 # updated in each machine entry.
3031 cpu_type=`echo $machine | sed 's/-.*$//'`
3065 tm_file=${cpu_type}/${cpu_type}.h
3066 xm_file=${cpu_type}/xm-${cpu_type}.h
3067 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
3069 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
3071 # On a.out targets, we need to use collect2.
3078 # Common parts for linux-gnu and openbsd systems
3081 xm_defines="HAVE_ATEXIT POSIX BSTRING"
3084 tm_file=${cpu_type}/openbsd.h
3085 tmake_file="t-libc-ok t-openbsd"
3086 # avoid surprises, always provide an xm-openbsd file
3087 xm_file=${cpu_type}/xm-openbsd.h
3088 # don't depend on processor x-fragments as well
3090 if test x$enable_threads = xyes; then
3092 tmake_file="${tmake_file} t-openbsd-thread"
3098 # Support site-specific machine types.
3100 cpu_type=`echo $machine | sed -e 's/-.*//'`
3101 rest=`echo $machine | sed -e "s/$cpu_type-//"`
3102 xm_file=${cpu_type}/xm-$rest.h
3103 tm_file=${cpu_type}/$rest.h
3104 if test -f $srcdir/config/${cpu_type}/x-$rest; \
3105 then xmake_file=${cpu_type}/x-$rest; \
3108 if test -f $srcdir/config/${cpu_type}/t-$rest; \
3109 then tmake_file=${cpu_type}/t-$rest; \
3115 a29k-*-bsd* | a29k-*-sym1*)
3116 tm_file="${tm_file} a29k/unix.h"
3118 xmake_file=a29k/x-unix
3121 a29k-*-udi | a29k-*-coff)
3122 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
3123 tmake_file=a29k/t-a29kbare
3126 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3127 tmake_file=a29k/t-vx29k
3128 extra_parts="crtbegin.o crtend.o"
3129 thread_file='vxworks'
3131 a29k-*-*) # Default a29k environment.
3135 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3137 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3138 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3140 # GAS + IEEE_CONFORMANT
3141 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
3143 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
3144 xmake_file="x-interix alpha/t-pe"
3145 tmake_file="alpha/t-interix alpha/t-ieee"
3146 if test x$enable_threads = xyes ; then
3149 if test x$stabs = xyes ; then
3150 tm_file="${tm_file} dbxcoff.h"
3152 #prefix='$$INTERIX_ROOT'/usr/contrib
3153 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3155 alpha*-*-linux-gnuecoff*)
3156 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3157 target_cpu_default="MASK_GAS"
3158 tmake_file="alpha/t-ieee"
3163 alpha*-*-linux-gnulibc1*)
3164 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3165 target_cpu_default="MASK_GAS"
3166 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3167 extra_parts="crtbegin.o crtend.o"
3170 if test x$enable_threads = xyes; then
3174 alpha*-*-linux-gnu*)
3175 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3176 target_cpu_default="MASK_GAS"
3177 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3178 extra_parts="crtbegin.o crtend.o"
3181 if test x$enable_threads = xyes; then
3186 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3187 target_cpu_default="MASK_GAS"
3188 tmake_file="alpha/t-crtbe alpha/t-ieee"
3189 extra_parts="crtbegin.o crtend.o"
3195 # default x-alpha is only appropriate for dec-osf.
3196 target_cpu_default="MASK_GAS"
3197 tmake_file="alpha/t-ieee"
3201 if test x$stabs = xyes
3203 tm_file="${tm_file} dbx.h"
3205 if test x$gas != xyes
3207 extra_passes="mips-tfile mips-tdump"
3210 tmake_file="alpha/t-ieee"
3213 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3216 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
3219 tm_file="${tm_file} alpha/osf.h"
3220 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3221 # a broken tar, so we use cpio instead.
3222 install_headers_dir=install-headers-cpio
3225 tm_file="${tm_file} alpha/osf.h"
3229 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
3230 target_cpu_default=MASK_SUPPORT_ARCH
3235 tm_file="${tm_file} dbx.h alpha/vxworks.h"
3236 tmake_file="alpha/t-ieee"
3239 extra_passes="mips-tfile mips-tdump"
3242 thread_file='vxworks'
3245 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3246 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3247 tmake_file="t-libc-ok alpha/t-ieee"
3248 xmake_file=winnt/x-winnt
3249 extra_host_objs=oldnames.o
3250 extra_gcc_objs="spawnv.o oldnames.o"
3251 if test x$gnu_ld != xyes
3253 extra_programs=ld.exe
3255 if test x$enable_threads = xyes; then
3261 xm_file="${xm_file} alpha/xm-vms.h"
3262 tmake_file="alpha/t-vms alpha/t-ieee"
3265 extra_parts="crtinit.o crtfini.o"
3267 arm-*-coff* | armel-*-coff*)
3269 tmake_file=arm/t-bare
3273 tmake_file=arm/t-bare
3274 thread_file='vxworks'
3276 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
3277 tm_file=arm/riscix1-1.h
3280 arm-*-riscix*) # Acorn RISC machine
3281 if test x$gas = xyes
3283 tm_file=arm/rix-gas.h
3285 tm_file=arm/riscix.h
3287 xmake_file=arm/x-riscix
3288 tmake_file=arm/t-riscix
3291 arm-semi-aout | armel-semi-aout)
3293 tmake_file=arm/t-semi
3295 arm-semi-aof | armel-semi-aof)
3296 tm_file=arm/semiaof.h
3297 tmake_file=arm/t-semiaof
3300 tm_file=arm/netbsd.h
3301 xm_file="arm/xm-netbsd.h ${xm_file}"
3302 tmake_file="t-netbsd arm/t-netbsd"
3305 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3308 tm_file=arm/linux-aout.h
3309 tmake_file=arm/t-linux
3312 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3313 xm_file=arm/xm-linux.h
3315 tm_file="arm/linux-oldld.h arm/linux-elf.h"
3318 tm_file="arm/linux-elf26.h $tm_file"
3321 tmake_file="t-linux arm/t-linux"
3322 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3324 case x${enable_threads} in
3325 x | xyes | xpthreads | xposix)
3330 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
3331 xm_file=arm/xm-linux.h
3333 tm_file="arm/linux-elf.h"
3336 tm_file="arm/linux-elf26.h $tm_file"
3339 tmake_file="t-linux arm/t-linux"
3340 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3342 case x${enable_threads} in
3343 x | xyes | xpthreads | xposix)
3348 arm*-*-uclinux*) # ARM ucLinux
3349 tm_file=arm/uclinux-elf.h
3350 tmake_file=arm/t-arm-elf
3354 tmake_file=arm/t-bare
3357 tm_file=arm/ecos-elf.h
3358 tmake_file=arm/t-elf
3361 tm_file=arm/unknown-elf.h
3362 tmake_file=arm/t-arm-elf
3365 tm_file=arm/unknown-elf-oabi.h
3366 tmake_file=arm/t-arm-elf
3373 c1-convex-*) # Convex C1
3374 target_cpu_default=1
3377 c2-convex-*) # Convex C2
3378 target_cpu_default=2
3382 target_cpu_default=4
3386 target_cpu_default=8
3390 target_cpu_default=16
3395 tmake_file=c4x/t-c4x
3397 clipper-intergraph-clix*)
3398 tm_file="${tm_file} svr3.h clipper/clix.h"
3399 xm_file=clipper/xm-clix.h
3400 xmake_file=clipper/x-clix
3401 extra_headers=va-clipper.h
3402 extra_parts="crtbegin.o crtend.o"
3403 install_headers_dir=install-headers-cpio
3411 tm_file="fr30/fr30.h"
3412 tmake_file=fr30/t-fr30
3413 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3415 # This hasn't been upgraded to GCC 2.
3416 # fx80-alliant-*) # Alliant FX/80
3422 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3423 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3424 tmake_file="t-linux pa/t-linux"
3425 extra_parts="crtbegin.o crtend.o"
3428 if test x$enable_threads = xyes; then
3433 target_cpu_default="MASK_PA_11"
3434 tmake_file=pa/t-openbsd
3437 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3438 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3439 xm_file=pa/xm-papro.h
3443 target_cpu_default="MASK_PA_11"
3444 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3448 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3449 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3450 xm_file=pa/xm-papro.h
3454 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
3458 tm_file="${tm_file} pa/som.h"
3459 target_cpu_default="MASK_PA_11"
3463 tm_file="${tm_file} pa/som.h"
3467 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3468 xm_file=pa/xm-pahpux.h
3469 xmake_file=pa/x-pa-hpux
3470 if test x$gas = xyes
3472 tm_file="${tm_file} pa/gas.h"
3474 install_headers_dir=install-headers-cpio
3477 hppa1.0-*-hpux8.0[0-2]*)
3478 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3479 xm_file=pa/xm-pahpux.h
3480 xmake_file=pa/x-pa-hpux
3481 if test x$gas = xyes
3483 tm_file="${tm_file} pa/pa-gas.h"
3485 tm_file="pa/pa-oldas.h ${tm_file}"
3487 install_headers_dir=install-headers-cpio
3490 hppa1.1-*-hpux8.0[0-2]*)
3491 target_cpu_default="MASK_PA_11"
3492 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3493 xm_file=pa/xm-pahpux.h
3494 xmake_file=pa/x-pa-hpux
3495 if test x$gas = xyes
3497 tm_file="${tm_file} pa/pa-gas.h"
3499 tm_file="pa/pa-oldas.h ${tm_file}"
3501 install_headers_dir=install-headers-cpio
3505 target_cpu_default="MASK_PA_11"
3506 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3507 xm_file=pa/xm-pahpux.h
3508 xmake_file=pa/x-pa-hpux
3509 if test x$gas = xyes
3511 tm_file="${tm_file} pa/pa-gas.h"
3513 install_headers_dir=install-headers-cpio
3517 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
3518 xm_file=pa/xm-pahpux.h
3519 xmake_file=pa/x-pa-hpux
3520 if test x$gas = xyes
3522 tm_file="${tm_file} pa/pa-gas.h"
3524 install_headers_dir=install-headers-cpio
3527 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
3528 target_cpu_default="MASK_PA_11"
3529 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3530 xm_file=pa/xm-pahpux.h
3531 xmake_file=pa/x-pa-hpux
3533 if test x$gas = xyes
3535 tm_file="${tm_file} pa/pa-gas.h"
3537 if test x$enable_threads = x; then
3538 enable_threads=$have_pthread_h
3540 if test x$enable_threads = xyes; then
3542 tmake_file="${tmake_file} pa/t-dce-thr"
3544 install_headers_dir=install-headers-cpio
3548 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3549 xm_file=pa/xm-pahpux.h
3550 xmake_file=pa/x-pa-hpux
3552 if test x$gas = xyes
3554 tm_file="${tm_file} pa/pa-gas.h"
3556 if test x$enable_threads = x; then
3557 enable_threads=$have_pthread_h
3559 if test x$enable_threads = xyes; then
3561 tmake_file="${tmake_file} pa/t-dce-thr"
3563 install_headers_dir=install-headers-cpio
3566 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
3567 target_cpu_default="MASK_PA_11"
3568 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3569 xm_file=pa/xm-pahpux.h
3570 xmake_file=pa/x-pa-hpux
3574 tm_file="${tm_file} pa/pa-gas.h"
3576 # if [[ x$enable_threads = x ]]; then
3577 # enable_threads=$have_pthread_h
3579 # if [[ x$enable_threads = xyes ]]; then
3581 # tmake_file="${tmake_file} pa/t-dce-thr"
3583 install_headers_dir=install-headers-cpio
3587 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3588 xm_file=pa/xm-pahpux.h
3589 xmake_file=pa/x-pa-hpux
3592 tm_file="${tm_file} pa/pa-gas.h"
3594 # if [[ x$enable_threads = x ]]; then
3595 # enable_threads=$have_pthread_h
3597 # if [[ x$enable_threads = xyes ]]; then
3599 # tmake_file="${tmake_file} pa/t-dce-thr"
3601 install_headers_dir=install-headers-cpio
3604 hppa1.1-*-hpux* | hppa2*-*-hpux*)
3605 target_cpu_default="MASK_PA_11"
3606 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3607 xm_file=pa/xm-pahpux.h
3608 xmake_file=pa/x-pa-hpux
3609 if test x$gas = xyes
3611 tm_file="${tm_file} pa/pa-gas.h"
3613 install_headers_dir=install-headers-cpio
3617 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3618 xm_file=pa/xm-pahpux.h
3619 xmake_file=pa/x-pa-hpux
3620 if test x$gas = xyes
3622 tm_file="${tm_file} pa/pa-gas.h"
3624 install_headers_dir=install-headers-cpio
3627 hppa1.1-*-hiux* | hppa2*-*-hiux*)
3628 target_cpu_default="MASK_PA_11"
3629 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3630 xm_file=pa/xm-pahpux.h
3631 xmake_file=pa/x-pa-hpux
3632 if test x$gas = xyes
3634 tm_file="${tm_file} pa/pa-gas.h"
3636 install_headers_dir=install-headers-cpio
3640 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3641 xm_file=pa/xm-pahpux.h
3642 xmake_file=pa/x-pa-hpux
3643 if test x$gas = xyes
3645 tm_file="${tm_file} pa/pa-gas.h"
3647 install_headers_dir=install-headers-cpio
3651 tm_file="${tm_file} elfos.h pa/elf.h"
3652 target_cpu_default="MASK_PA_11"
3656 tm_file="${tm_file} pa/pa-mpeix.h"
3657 xm_file=pa/xm-pampeix.h
3658 xmake_file=pa/x-pa-mpeix
3659 echo "You must use gas. Assuming it is already installed."
3660 install_headers_dir=install-headers-tar
3661 fixincludes=Makefile.in
3664 i370-*-opened*) # IBM 360/370/390 Architecture
3665 xm_file=i370/xm-oe.h
3667 xmake_file=i370/x-oe
3668 tmake_file=i370/t-oe
3669 fixincludes=Makefile.in # Headers are wierd, don't mess with
3672 xm_file=i370/xm-mvs.h
3674 tmake_file=i370/t-mvs
3675 fixincludes=Makefile.in # Headers are wierd, don't mess with
3678 xm_file="xm-linux.h i370/xm-linux.h"
3680 tm_file="i370/linux.h ${tm_file}"
3681 tmake_file="t-linux i370/t-linux"
3682 fixincludes=Makefile.in # The headers are ok already.
3683 # broken_install=yes
3684 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3685 # extra_parts="crtbegin.o crtend.o"
3689 if [ x$enable_threads = xyes ]; then
3694 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3695 tm_file=i386/i386elf.h
3696 tmake_file=i386/t-i386elf
3699 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
3700 if test x$gas = xyes
3702 tm_file=i386/aix386.h
3703 extra_parts="crtbegin.o crtend.o"
3704 tmake_file=i386/t-crtstuff
3706 tm_file=i386/aix386ng.h
3709 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
3711 xmake_file=i386/x-aix
3713 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3714 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3715 xm_defines="USG POSIX SMALL_ARG_MAX"
3716 xmake_file=i386/x-ncr3000
3717 if test x$stabs = xyes -a x$gas = xyes
3719 tm_file=i386/sysv4gdb.h
3721 tm_file=i386/sysv4.h
3723 extra_parts="crtbegin.o crtend.o"
3724 tmake_file=i386/t-crtpic
3728 xm_file=i386/xm-next.h
3729 tmake_file=i386/t-next
3730 xmake_file=i386/x-next
3731 extra_objs=nextstep.o
3732 extra_parts="crtbegin.o crtend.o"
3733 if test x$enable_threads = xyes; then
3737 i[34567]86-sequent-bsd*) # 80386 from Sequent
3739 if test x$gas = xyes
3741 tm_file=i386/seq-gas.h
3743 tm_file=i386/sequent.h
3746 i[34567]86-sequent-ptx1*)
3747 xm_defines="USG SVR3"
3748 xmake_file=i386/x-sysv3
3749 tm_file=i386/seq-sysv3.h
3750 tmake_file=i386/t-crtstuff
3751 extra_parts="crtbegin.o crtend.o"
3752 install_headers_dir=install-headers-cpio
3754 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
3755 xm_defines="USG SVR3"
3756 xmake_file=i386/x-sysv3
3757 tm_file=i386/seq2-sysv3.h
3758 tmake_file=i386/t-crtstuff
3759 extra_parts="crtbegin.o crtend.o"
3760 install_headers_dir=install-headers-cpio
3762 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
3763 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
3764 xm_defines="USG POSIX SMALL_ARG_MAX"
3766 tm_file=i386/ptx4-i.h
3768 extra_parts="crtbegin.o crtend.o"
3769 install_headers_dir=install-headers-cpio
3771 i386-sun-sunos*) # Sun i386 roadrunner
3776 i[34567]86-wrs-vxworks*)
3777 tm_file=i386/vxi386.h
3778 tmake_file=i386/t-i386bare
3779 thread_file='vxworks'
3782 tm_file=i386/i386-aout.h
3783 tmake_file=i386/t-i386bare
3785 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
3786 tm_file=i386/bsd386.h
3787 # tmake_file=t-libc-ok
3790 tm_file=i386/386bsd.h
3791 # tmake_file=t-libc-ok
3792 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3795 i[34567]86-*-freebsdelf*)
3796 tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h"
3797 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3798 tmake_file=t-freebsd
3802 case x${enable_threads} in
3803 xyes | xpthreads | xposix)
3805 tmake_file="${tmake_file} t-openbsd-thread"
3809 i[34567]86-*-freebsd*)
3810 tm_file=i386/freebsd.h
3811 tmake_file=t-freebsd
3813 i[34567]86-*-netbsd*)
3814 tm_file=i386/netbsd.h
3818 i[34567]86-*-openbsd*)
3819 # we need collect2 until our bug is fixed...
3823 tm_file=i386/i386-coff.h
3824 tmake_file=i386/t-i386bare
3826 i[34567]86-*-isc*) # 80386 running ISC system
3827 xm_file="${xm_file} i386/xm-isc.h"
3828 xm_defines="USG SVR3"
3830 i[34567]86-*-isc[34]*)
3831 xmake_file=i386/x-isc3
3834 xmake_file=i386/x-isc
3837 if test x$gas = xyes -a x$stabs = xyes
3839 tm_file=i386/iscdbx.h
3840 tmake_file=i386/t-svr3dbx
3841 extra_parts="svr3.ifile svr3z.ifile"
3843 tm_file=i386/isccoff.h
3844 tmake_file=i386/t-crtstuff
3845 extra_parts="crtbegin.o crtend.o"
3847 install_headers_dir=install-headers-cpio
3849 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3851 xmake_file=x-linux-aout
3852 tmake_file="t-linux-aout i386/t-crtstuff"
3853 tm_file=i386/linux-oldld.h
3857 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3858 xmake_file=x-linux-aout
3859 tmake_file="t-linux-aout i386/t-crtstuff"
3860 tm_file=i386/linux-aout.h
3864 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3865 # GNU/Linux C library 5
3867 tm_file=i386/linux.h
3868 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3869 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3872 if test x$enable_threads = xyes; then
3873 thread_file='single'
3876 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3877 # aka GNU/Linux C library 6
3879 tm_file=i386/linux.h
3880 tmake_file="t-linux i386/t-crtstuff"
3881 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3884 if test x$enable_threads = xyes; then
3891 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3892 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3895 i[34567]86-pc-msdosdjgpp*)
3896 xm_file=i386/xm-djgpp.h
3897 tm_file=i386/djgpp.h
3898 tmake_file=i386/t-djgpp
3899 xmake_file=i386/x-djgpp
3903 case $host in *pc-msdosdjgpp*)
3908 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3910 tmake_file=t-libc-ok
3914 i[34567]86-*-lynxos*)
3915 if test x$gas = xyes
3919 tm_file=i386/lynx-ng.h
3921 xm_file=i386/xm-lynx.h
3922 tmake_file=i386/t-i386bare
3927 # tmake_file=t-libc-ok
3930 i[34567]86-*-osfrose*) # 386 using OSF/rose
3931 if test x$elf = xyes
3933 tm_file=i386/osfelf.h
3936 tm_file=i386/osfrose.h
3939 xm_file="i386/xm-osf.h ${xm_file}"
3940 xmake_file=i386/x-osfrose
3941 tmake_file=i386/t-osf
3942 extra_objs=halfpic.o
3944 i[34567]86-go32-rtems*)
3946 xm_file=i386/xm-go32.h
3947 tm_file=i386/go32-rtems.h
3948 tmake_file="i386/t-go32 t-rtems"
3950 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
3952 tm_file=i386/rtemself.h
3953 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
3954 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
3956 i[34567]86-*-rtemscoff*)
3958 tm_file=i386/rtems.h
3959 tmake_file="i386/t-i386bare t-rtems"
3961 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
3962 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3963 xm_defines="USG SVR3"
3964 xmake_file=i386/x-sco5
3965 install_headers_dir=install-headers-cpio
3967 if test x$gas = xyes
3969 tm_file="i386/sco5gas.h ${tm_file}"
3970 tmake_file=i386/t-sco5gas
3972 tmake_file=i386/t-sco5
3974 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3976 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
3977 xm_file="${xm_file} i386/xm-sco.h"
3978 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3979 xmake_file=i386/x-sco4
3980 install_headers_dir=install-headers-cpio
3981 if test x$stabs = xyes
3983 tm_file=i386/sco4dbx.h
3984 tmake_file=i386/t-svr3dbx
3985 extra_parts="svr3.ifile svr3z.rfile"
3988 tmake_file=i386/t-crtstuff
3989 extra_parts="crtbegin.o crtend.o"
3991 # The default EAFS filesystem supports long file names.
3992 # Truncating the target makes $host != $target which
3993 # makes gcc think it is doing a cross-compile.
3994 # truncate_target=yes
3996 i[34567]86-*-sco*) # 80386 running SCO system
3997 xm_file=i386/xm-sco.h
3998 xmake_file=i386/x-sco
3999 install_headers_dir=install-headers-cpio
4000 if test x$stabs = xyes
4002 tm_file=i386/scodbx.h
4003 tmake_file=i386/t-svr3dbx
4004 extra_parts="svr3.ifile svr3z.rfile"
4007 extra_parts="crtbegin.o crtend.o"
4008 tmake_file=i386/t-crtstuff
4012 i[34567]86-*-solaris2*)
4013 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
4014 xm_defines="USG POSIX SMALL_ARG_MAX"
4016 if test x$gas = xyes; then
4017 # Only needed if gas does not support -s
4018 tm_file="i386/sol2gas.h ${tm_file}"
4020 tmake_file=i386/t-sol2
4021 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4023 if test x${enable_threads} = x; then
4024 enable_threads=$have_pthread_h
4025 if test x${enable_threads} = x; then
4026 enable_threads=$have_thread_h
4029 if test x${enable_threads} = xyes; then
4030 if test x${have_pthread_h} = xyes; then
4033 thread_file='solaris'
4037 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4038 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
4039 xm_defines="USG POSIX"
4040 tm_file=i386/sysv5.h
4041 if test x$stabs = xyes
4043 tm_file="${tm_file} dbx.h"
4045 tmake_file=i386/t-crtpic
4047 extra_parts="crtbegin.o crtend.o"
4048 if test x$enable_threads = xyes; then
4052 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
4053 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
4054 xm_defines="USG POSIX SMALL_ARG_MAX"
4055 tm_file=i386/sysv4.h
4056 if test x$stabs = xyes
4058 tm_file="${tm_file} dbx.h"
4060 tmake_file=i386/t-crtpic
4062 extra_parts="crtbegin.o crtend.o"
4064 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4065 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
4066 xm_defines="USG POSIX"
4068 tmake_file="i386/t-crtpic i386/t-udk"
4070 extra_parts="crtbegin.o crtend.o"
4071 install_headers_dir=install-headers-cpio
4073 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4075 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4076 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
4077 if test x$stabs = xyes
4079 tm_file=i386/osf1elfgdb.h
4081 tm_file=i386/osf1elf.h
4083 tmake_file=i386/t-osf1elf
4084 xmake_file=i386/x-osf1elf
4085 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4087 i[34567]86-*-sysv*) # Intel 80386's running system V
4088 xm_defines="USG SVR3"
4089 xmake_file=i386/x-sysv3
4090 if test x$gas = xyes
4092 if test x$stabs = xyes
4094 tm_file=i386/svr3dbx.h
4095 tmake_file=i386/t-svr3dbx
4096 extra_parts="svr3.ifile svr3z.rfile"
4098 tm_file=i386/svr3gas.h
4099 extra_parts="crtbegin.o crtend.o"
4100 tmake_file=i386/t-crtstuff
4103 tm_file=i386/sysv3.h
4104 extra_parts="crtbegin.o crtend.o"
4105 tmake_file=i386/t-crtstuff
4108 i386-*-vsta) # Intel 80386's running VSTa kernel
4109 xm_file="${xm_file} i386/xm-vsta.h"
4111 tmake_file=i386/t-vsta
4112 xmake_file=i386/x-vsta
4115 xm_file="${xm_file} i386/xm-cygwin.h"
4116 tmake_file=i386/t-cygwin
4117 tm_file=i386/win32.h
4118 xmake_file=i386/x-cygwin
4120 if test x$enable_threads = xyes; then
4125 i[34567]86-*-pe | i[34567]86-*-cygwin*)
4126 xm_file="${xm_file} i386/xm-cygwin.h"
4127 tmake_file=i386/t-cygwin
4128 tm_file=i386/cygwin.h
4129 xmake_file=i386/x-cygwin
4131 if test x$enable_threads = xyes; then
4136 i[34567]86-*-mingw32*)
4137 tm_file=i386/mingw32.h
4138 xm_file="${xm_file} i386/xm-mingw32.h"
4139 tmake_file="i386/t-cygwin i386/t-mingw32"
4141 xmake_file=i386/x-cygwin
4142 if test x$enable_threads = xyes; then
4149 *minwg32crt* | *mingw32*)
4150 tm_file="${tm_file} i386/crtdll.h"
4156 xm_file="${xm_file} i386/xm-uwin.h"
4157 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
4158 tmake_file="i386/t-cygwin i386/t-uwin"
4160 xmake_file=i386/x-cygwin
4161 if test x$enable_threads = xyes; then
4166 i[34567]86-*-interix*)
4167 tm_file="i386/i386-interix.h interix.h"
4168 xm_file="i386/xm-i386-interix.h xm-interix.h"
4169 xm_defines="USG NO_SYS_SIGLIST"
4170 tmake_file="i386/t-interix"
4171 extra_objs=interix.o
4172 xmake_file=x-interix
4173 if test x$enable_threads = xyes ; then
4176 if test x$stabs = xyes ; then
4177 tm_file="${tm_file} dbxcoff.h"
4180 i[34567]86-*-winnt3*)
4181 tm_file=i386/win-nt.h
4182 out_file=i386/i386.c
4183 xm_file="xm-winnt.h ${xm_file}"
4184 xmake_file=winnt/x-winnt
4185 tmake_file=i386/t-winnt
4186 extra_host_objs="winnt.o oldnames.o"
4187 extra_gcc_objs="spawnv.o oldnames.o"
4188 if test x$gnu_ld != xyes
4190 extra_programs=ld.exe
4192 if test x$enable_threads = xyes; then
4196 i[34567]86-dg-dgux*)
4197 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
4198 xm_defines="USG POSIX"
4199 out_file=i386/dgux.c
4201 tmake_file=i386/t-dgux
4202 xmake_file=i386/x-dgux
4203 install_headers_dir=install-headers-cpio
4205 i860-alliant-*) # Alliant FX/2800
4206 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4207 xm_file="${xm_file}"
4208 xmake_file=i860/x-fx2800
4209 tmake_file=i860/t-fx2800
4210 extra_parts="crtbegin.o crtend.o"
4213 tm_file="${tm_file} i860/bsd.h"
4214 if test x$gas = xyes
4216 tm_file="${tm_file} i860/bsd-gas.h"
4221 tm_file="${tm_file} i860/mach.h"
4222 tmake_file=t-libc-ok
4224 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
4225 tm_file="${tm_file} svr3.h i860/paragon.h"
4226 xm_defines="USG SVR3"
4230 tm_file="${tm_file} svr3.h i860/sysv3.h"
4231 xm_defines="USG SVR3"
4232 xmake_file=i860/x-sysv3
4233 extra_parts="crtbegin.o crtend.o"
4236 tm_file="${tm_file} svr4.h i860/sysv4.h"
4237 xm_defines="USG SVR3"
4238 xmake_file=i860/x-sysv4
4240 extra_parts="crtbegin.o crtend.o"
4242 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
4243 tm_file="${tm_file} i960/vx960.h"
4244 tmake_file=i960/t-vxworks960
4246 thread_file='vxworks'
4248 i960-wrs-vxworks5* | i960-wrs-vxworks)
4249 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4250 tmake_file=i960/t-vxworks960
4252 thread_file='vxworks'
4255 tm_file="${tm_file} i960/vx960.h"
4256 tmake_file=i960/t-vxworks960
4258 thread_file='vxworks'
4261 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4262 tmake_file=i960/t-960bare
4266 tmake_file="i960/t-960bare t-rtems"
4267 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
4270 i960-*-*) # Default i960 environment.
4274 extra_parts="crtinit.o crtfini.o"
4276 m68000-convergent-sysv*)
4278 xm_file="m68k/xm-3b1.h ${xm_file}"
4281 extra_headers=math-68881.h
4283 m68000-hp-bsd*) # HP 9000/200 running BSD
4284 tm_file=m68k/hp2bsd.h
4285 xmake_file=m68k/x-hp2bsd
4287 extra_headers=math-68881.h
4289 m68000-hp-hpux*) # HP 9000 series 300
4290 xm_file="xm_alloca.h ${xm_file}"
4291 xm_defines="USG NO_SYS_SIGLIST"
4292 if test x$gas = xyes
4294 xmake_file=m68k/x-hp320g
4295 tm_file=m68k/hp310g.h
4297 xmake_file=m68k/x-hp320
4298 tm_file=m68k/hp310.h
4300 install_headers_dir=install-headers-cpio
4302 extra_headers=math-68881.h
4307 extra_headers=math-68881.h
4310 tm_file=m68k/sun2o4.h
4312 extra_headers=math-68881.h
4315 xm_file="m68k/xm-3b1.h ${xm_file}"
4317 if test x$gas = xyes
4324 extra_headers=math-68881.h
4326 m68k-apple-aux*) # Apple Macintosh running A/UX
4327 xm_defines="USG AUX"
4328 tmake_file=m68k/t-aux
4329 install_headers_dir=install-headers-cpio
4330 extra_headers=math-68881.h
4331 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4333 if test "$gnu_ld" = yes
4335 tm_file="${tm_file} m68k/auxgld.h"
4337 tm_file="${tm_file} m68k/auxld.h"
4339 if test "$gas" = yes
4341 tm_file="${tm_file} m68k/auxgas.h"
4343 tm_file="${tm_file} m68k/auxas.h"
4345 tm_file="${tm_file} m68k/a-ux.h"
4349 tm_file=m68k/apollo68.h
4350 xmake_file=m68k/x-apollo68
4352 extra_headers=math-68881.h
4355 m68k-altos-sysv*) # Altos 3068
4356 if test x$gas = xyes
4358 tm_file=m68k/altos3068.h
4361 echo "The Altos is supported only with the GNU assembler" 1>&2
4364 extra_headers=math-68881.h
4366 m68k-bull-sysv*) # Bull DPX/2
4367 if test x$gas = xyes
4369 if test x$stabs = xyes
4371 tm_file=m68k/dpx2cdbx.h
4373 tm_file=m68k/dpx2g.h
4378 xm_file="xm-alloca.h ${xm_file}"
4380 xmake_file=m68k/x-dpx2
4382 extra_headers=math-68881.h
4384 m68k-atari-sysv4*) # Atari variant of V.4.
4385 tm_file=m68k/atari.h
4386 xm_file="xm-alloca.h ${xm_file}"
4387 xm_defines="USG FULL_PROTOTYPES"
4389 extra_parts="crtbegin.o crtend.o"
4390 extra_headers=math-68881.h
4393 m68k-motorola-sysv*)
4394 tm_file=m68k/mot3300.h
4395 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4396 xm_defines=NO_SYS_SIGLIST
4397 if test x$gas = xyes
4399 xmake_file=m68k/x-mot3300-gas
4400 if test x$gnu_ld = xyes
4402 tmake_file=m68k/t-mot3300-gald
4404 tmake_file=m68k/t-mot3300-gas
4408 xmake_file=m68k/x-mot3300
4409 if test x$gnu_ld = xyes
4411 tmake_file=m68k/t-mot3300-gld
4413 tmake_file=m68k/t-mot3300
4417 gdb_needs_out_file_path=yes
4418 extra_parts="crt0.o mcrt0.o"
4419 extra_headers=math-68881.h
4422 m68k-ncr-sysv*) # NCR Tower 32 SVR3
4423 tm_file=m68k/tower-as.h
4424 xm_defines="USG SVR3"
4425 xmake_file=m68k/x-tower
4426 extra_parts="crtbegin.o crtend.o"
4427 extra_headers=math-68881.h
4430 tm_file=m68k/plexus.h
4431 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4434 extra_headers=math-68881.h
4438 xm_file="xm-alloca.h ${xm_file}"
4440 extra_headers=math-68881.h
4443 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4444 xm_defines="USG unos"
4445 xmake_file=m68k/x-crds
4448 extra_headers=math-68881.h
4450 m68k-cbm-sysv4*) # Commodore variant of V.4.
4452 xm_file="xm-alloca.h ${xm_file}"
4453 xm_defines="USG FULL_PROTOTYPES"
4454 xmake_file=m68k/x-amix
4456 extra_parts="crtbegin.o crtend.o"
4457 extra_headers=math-68881.h
4461 tm_file=m68k/ccur-GAS.h
4462 xmake_file=m68k/x-ccur
4463 extra_headers=math-68881.h
4467 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
4468 tm_file=m68k/hp3bsd44.h
4469 xmake_file=m68k/x-hp3bsd44
4471 extra_headers=math-68881.h
4474 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
4475 tm_file=m68k/hp3bsd.h
4477 extra_headers=math-68881.h
4481 if test x$with_fp = xno
4483 tm_file=m68k/isi-nfp.h
4489 extra_headers=math-68881.h
4491 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
4492 xm_file="xm_alloca.h ${xm_file}"
4493 xm_defines="USG NO_SYS_SIGLIST"
4494 if test x$gas = xyes
4496 xmake_file=m68k/x-hp320g
4497 tm_file=m68k/hp320g.h
4499 xmake_file=m68k/x-hp320
4500 tm_file=m68k/hpux7.h
4502 install_headers_dir=install-headers-cpio
4504 extra_headers=math-68881.h
4507 m68k-hp-hpux*) # HP 9000 series 300
4508 xm_file="xm_alloca.h ${xm_file}"
4509 xm_defines="USG NO_SYS_SIGLIST"
4510 if test x$gas = xyes
4512 xmake_file=m68k/x-hp320g
4513 tm_file=m68k/hp320g.h
4515 xmake_file=m68k/x-hp320
4516 tm_file=m68k/hp320.h
4518 install_headers_dir=install-headers-cpio
4520 extra_headers=math-68881.h
4524 tm_file=m68k/sun3mach.h
4526 extra_headers=math-68881.h
4530 if test x$gas = xyes
4532 tm_file=m68k/news3gas.h
4534 tm_file=m68k/news3.h
4537 extra_headers=math-68881.h
4540 m68k-sony-bsd* | m68k-sony-newsos*)
4541 if test x$gas = xyes
4543 tm_file=m68k/newsgas.h
4548 extra_headers=math-68881.h
4551 m68k-next-nextstep2*)
4552 tm_file=m68k/next21.h
4553 xm_file="m68k/xm-next.h ${xm_file}"
4554 tmake_file=m68k/t-next
4555 xmake_file=m68k/x-next
4556 extra_objs=nextstep.o
4557 extra_headers=math-68881.h
4561 m68k-next-nextstep3*)
4563 xm_file="m68k/xm-next.h ${xm_file}"
4564 tmake_file=m68k/t-next
4565 xmake_file=m68k/x-next
4566 extra_objs=nextstep.o
4567 extra_parts="crtbegin.o crtend.o"
4568 extra_headers=math-68881.h
4570 if test x$enable_threads = xyes; then
4575 if test x$with_fp = xno
4577 tm_file=m68k/sun3n3.h
4579 tm_file=m68k/sun3o3.h
4583 extra_headers=math-68881.h
4585 m68k-sun-sunos*) # For SunOS 4 (the default).
4586 if test x$with_fp = xno
4588 tm_file=m68k/sun3n.h
4594 extra_headers=math-68881.h
4597 tm_file=m68k/vxm68k.h
4598 tmake_file=m68k/t-vxworks68
4599 extra_headers=math-68881.h
4600 thread_file='vxworks'
4604 tmake_file=m68k/t-m68kbare
4605 tm_file="m68k/m68k-aout.h libgloss.h"
4606 extra_headers=math-68881.h
4610 tmake_file=m68k/t-m68kbare
4611 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
4612 extra_headers=math-68881.h
4615 m68020-*-elf* | m68k-*-elf*)
4616 tm_file="m68k/m68020-elf.h"
4617 xm_file=m68k/xm-m68kv.h
4618 tmake_file=m68k/t-m68kelf
4619 header_files=math-68881.h
4622 if test x$gas = xyes
4626 tm_file=m68k/lynx-ng.h
4628 xm_file=m68k/xm-lynx.h
4630 tmake_file=m68k/t-lynx
4631 extra_headers=math-68881.h
4635 tm_file=m68k/netbsd.h
4642 # we need collect2 until our bug is fixed...
4645 m68k-*-sysv3*) # Motorola m68k's running system V.3
4646 xm_file="xm-alloca.h ${xm_file}"
4648 xmake_file=m68k/x-m68kv
4649 extra_parts="crtbegin.o crtend.o"
4650 extra_headers=math-68881.h
4653 m68k-*-sysv4*) # Motorola m68k's running system V.4
4654 tm_file=m68k/m68kv4.h
4655 xm_file="xm-alloca.h ${xm_file}"
4658 extra_parts="crtbegin.o crtend.o"
4659 extra_headers=math-68881.h
4662 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4665 tm_file=m68k/linux-aout.h
4666 tmake_file="t-linux-aout m68k/t-linux-aout"
4667 extra_headers=math-68881.h
4671 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4672 # with ELF format using the
4673 # GNU/Linux C library 5
4675 tm_file=m68k/linux.h
4676 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
4677 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4678 extra_headers=math-68881.h
4682 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
4683 # with ELF format using glibc 2
4684 # aka the GNU/Linux C library 6.
4686 tm_file=m68k/linux.h
4687 tmake_file="t-linux m68k/t-linux"
4688 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4689 extra_headers=math-68881.h
4692 if test x$enable_threads = xyes; then
4697 tmake_file=m68k/t-m68kbare
4698 tm_file=m68k/m68k-psos.h
4699 extra_headers=math-68881.h
4702 m68k-*-rtemscoff*|m68k-*-rtems*)
4703 tmake_file="m68k/t-m68kbare t-rtems"
4704 tm_file=m68k/rtems.h
4705 extra_headers=math-68881.h
4709 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4710 tm_file=m68k/rtemself.h
4711 extra_headers=math-68881.h
4717 tm_file=m88k/dguxbcs.h
4718 tmake_file=m88k/t-dguxbcs
4722 tmake_file=m88k/t-dgux
4725 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4726 xmake_file=m88k/x-dgux
4727 if test x$gas = xyes
4729 tmake_file=m88k/t-dgux-gas
4732 m88k-dolphin-sysv3*)
4733 tm_file=m88k/dolph.h
4734 extra_parts="crtbegin.o crtend.o"
4735 xm_file="m88k/xm-sysv3.h ${xm_file}"
4736 xmake_file=m88k/x-dolph
4737 if test x$gas = xyes
4739 tmake_file=m88k/t-m88k-gas
4742 m88k-tektronix-sysv3)
4743 tm_file=m88k/tekXD88.h
4744 extra_parts="crtbegin.o crtend.o"
4745 xm_file="m88k/xm-sysv3.h ${xm_file}"
4746 xmake_file=m88k/x-tekXD88
4747 if test x$gas = xyes
4749 tmake_file=m88k/t-m88k-gas
4753 tm_file=m88k/m88k-aout.h
4756 tm_file=m88k/m88k-coff.h
4757 tmake_file=m88k/t-bug
4761 extra_parts="crtbegin.o crtend.o"
4762 if test x$gas = xyes
4764 tmake_file=m88k/t-luna-gas
4766 tmake_file=m88k/t-luna
4770 tmake_file="${tmake_file} m88k/t-luna-gas"
4773 tm_file=m88k/sysv3.h
4774 extra_parts="crtbegin.o crtend.o"
4775 xm_file="m88k/xm-sysv3.h ${xm_file}"
4776 xmake_file=m88k/x-sysv3
4777 if test x$gas = xyes
4779 tmake_file=m88k/t-m88k-gas
4783 tm_file=m88k/sysv4.h
4784 extra_parts="crtbegin.o crtend.o"
4785 xmake_file=m88k/x-sysv4
4786 tmake_file=m88k/t-sysv4
4788 mips-sgi-irix6*) # SGI System V.4., IRIX 6
4789 if test "x$gnu_ld" = xyes
4791 tm_file="mips/iris6.h mips/iris6gld.h"
4793 tm_file=mips/iris6.h
4795 tmake_file=mips/t-iris6
4796 xm_file=mips/xm-iris6.h
4797 xmake_file=mips/x-iris6
4798 # if test x$enable_threads = xyes; then
4799 # thread_file='irix'
4803 tm_file="mips/elf.h mips/vxworks.h"
4804 tmake_file=mips/t-ecoff
4807 extra_parts="crtbegin.o crtend.o"
4808 thread_file='vxworks'
4810 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
4811 tm_file="mips/iris6.h mips/cross64.h"
4813 xm_file="mips/xm-iris5.h"
4814 xmake_file=mips/x-iris
4815 tmake_file=mips/t-cross64
4816 # See comment in mips/iris[56].h files.
4818 # if test x$enable_threads = xyes; then
4819 # thread_file='irix'
4823 if test x$gas = xyes
4825 if test x$stabs = xyes
4827 tm_file=mips/iris5gdb.h
4829 tm_file="mips/sni-svr4.h mips/sni-gas.h"
4832 tm_file=mips/sni-svr4.h
4835 xmake_file=mips/x-sni-svr4
4836 tmake_file=mips/t-mips-gas
4837 if test x$gnu_ld != xyes
4842 mips-sgi-irix5*) # SGI System V.4., IRIX 5
4843 if test x$gas = xyes
4845 tm_file="mips/iris5.h mips/iris5gas.h"
4846 if test x$stabs = xyes
4848 tm_file="${tm_file} dbx.h"
4851 tm_file=mips/iris5.h
4854 xm_file="mips/xm-iris5.h"
4855 xmake_file=mips/x-iris
4856 # mips-tfile doesn't work yet
4857 tmake_file=mips/t-mips-gas
4858 # See comment in mips/iris5.h file.
4860 # if test x$enable_threads = xyes; then
4861 # thread_file='irix'
4864 mips-sgi-irix4loser*) # Mostly like a MIPS.
4865 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4866 if test x$stabs = xyes; then
4867 tm_file="${tm_file} dbx.h"
4870 xmake_file=mips/x-iris
4871 if test x$gas = xyes
4873 tmake_file=mips/t-mips-gas
4875 extra_passes="mips-tfile mips-tdump"
4877 if test x$gnu_ld != xyes
4881 # if test x$enable_threads = xyes; then
4882 # thread_file='irix'
4885 mips-sgi-irix4*) # Mostly like a MIPS.
4886 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
4887 if test x$stabs = xyes; then
4888 tm_file="${tm_file} dbx.h"
4891 xmake_file=mips/x-iris
4892 if test x$gas = xyes
4894 tmake_file=mips/t-mips-gas
4896 extra_passes="mips-tfile mips-tdump"
4898 if test x$gnu_ld != xyes
4902 # if test x$enable_threads = xyes; then
4903 # thread_file='irix'
4906 mips-sgi-*) # Mostly like a MIPS.
4907 tm_file="mips/iris3.h ${tm_file}"
4908 if test x$stabs = xyes; then
4909 tm_file="${tm_file} dbx.h"
4912 xmake_file=mips/x-iris3
4913 if test x$gas = xyes
4915 tmake_file=mips/t-mips-gas
4917 extra_passes="mips-tfile mips-tdump"
4919 if test x$gnu_ld != xyes
4924 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
4925 tm_file="mips/osfrose.h ${tm_file}"
4926 xmake_file=mips/x-osfrose
4927 tmake_file=mips/t-osfrose
4928 extra_objs=halfpic.o
4931 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
4932 tm_file=mips/dec-osf1.h
4933 if test x$stabs = xyes; then
4934 tm_file="${tm_file} dbx.h"
4936 xmake_file=mips/x-dec-osf1
4937 if test x$gas = xyes
4939 tmake_file=mips/t-mips-gas
4941 tmake_file=mips/t-ultrix
4942 extra_passes="mips-tfile mips-tdump"
4944 if test x$gnu_ld != xyes
4949 mips-dec-bsd*) # Decstation running 4.4 BSD
4950 tm_file=mips/dec-bsd.h
4951 if test x$gas = xyes
4953 tmake_file=mips/t-mips-gas
4955 tmake_file=mips/t-ultrix
4956 extra_passes="mips-tfile mips-tdump"
4958 if test x$gnu_ld != xyes
4963 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
4964 tm_file=mips/netbsd.h
4965 # On NetBSD, the headers are already okay, except for math.h.
4968 mips*-*-linux*) # Linux MIPS, either endian.
4970 xm_file="xm-siglist.h ${xm_file}"
4972 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
4973 *) tm_file="mips/elf.h mips/linux.h" ;;
4975 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4978 if test x$enable_threads = xyes; then
4982 mips*el-*-openbsd*) # mips little endian
4983 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4985 mips*-*-openbsd*) # mips big endian
4986 target_cpu_default="MASK_GAS|MASK_ABICALLS"
4987 tm_file="mips/openbsd-be.h ${tm_file}"
4989 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
4990 tm_file="mips/news4.h ${tm_file}"
4991 if test x$stabs = xyes; then
4992 tm_file="${tm_file} dbx.h"
4994 if test x$gas = xyes
4996 tmake_file=mips/t-mips-gas
4998 extra_passes="mips-tfile mips-tdump"
5000 if test x$gnu_ld != xyes
5004 xmake_file=mips/x-sony
5006 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
5007 # That is based on svr4.
5008 # t-svr4 is not right because this system doesn't use ELF.
5009 tm_file="mips/news5.h ${tm_file}"
5010 if test x$stabs = xyes; then
5011 tm_file="${tm_file} dbx.h"
5013 xm_file="xm-siglist.h ${xm_file}"
5015 if test x$gas = xyes
5017 tmake_file=mips/t-mips-gas
5019 extra_passes="mips-tfile mips-tdump"
5021 if test x$gnu_ld != xyes
5026 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
5027 tm_file="mips/svr4-5.h mips/svr4-t.h"
5028 if test x$stabs = xyes; then
5029 tm_file="${tm_file} dbx.h"
5031 xm_file="xm-siglist.h ${xm_file}"
5033 xmake_file=mips/x-sysv
5034 if test x$gas = xyes
5036 tmake_file=mips/t-mips-gas
5037 extra_parts="crtbegin.o crtend.o"
5039 tmake_file=mips/t-mips
5040 extra_passes="mips-tfile mips-tdump"
5042 if test x$gnu_ld != xyes
5047 mips-*-ultrix* | mips-dec-mach3) # Decstation.
5048 tm_file="mips/ultrix.h ${tm_file}"
5049 if test x$stabs = xyes; then
5050 tm_file="${tm_file} dbx.h"
5052 xmake_file=mips/x-ultrix
5053 if test x$gas = xyes
5055 tmake_file=mips/t-mips-gas
5057 tmake_file=mips/t-ultrix
5058 extra_passes="mips-tfile mips-tdump"
5060 if test x$gnu_ld != xyes
5065 mips-*-riscos[56789]bsd*)
5066 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
5067 if test x$stabs = xyes; then
5068 tm_file="${tm_file} dbx.h"
5070 if test x$gas = xyes
5072 tmake_file=mips/t-bsd-gas
5074 tmake_file=mips/t-bsd
5075 extra_passes="mips-tfile mips-tdump"
5077 if test x$gnu_ld != xyes
5082 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
5083 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5084 if test x$stabs = xyes; then
5085 tm_file="${tm_file} dbx.h"
5087 if test x$gas = xyes
5089 tmake_file=mips/t-bsd-gas
5091 tmake_file=mips/t-bsd
5092 extra_passes="mips-tfile mips-tdump"
5094 if test x$gnu_ld != xyes
5099 mips-*-riscos[56789]sysv4*)
5100 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
5101 if test x$stabs = xyes; then
5102 tm_file="${tm_file} dbx.h"
5104 xm_file="xm-siglist.h ${xm_file}"
5105 xmake_file=mips/x-sysv
5106 if test x$gas = xyes
5108 tmake_file=mips/t-svr4-gas
5110 tmake_file=mips/t-svr4
5111 extra_passes="mips-tfile mips-tdump"
5113 if test x$gnu_ld != xyes
5118 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
5119 tm_file="mips/svr4-4.h ${tm_file}"
5120 if test x$stabs = xyes; then
5121 tm_file="${tm_file} dbx.h"
5124 xmake_file=mips/x-sysv
5125 if test x$gas = xyes
5127 tmake_file=mips/t-svr4-gas
5129 tmake_file=mips/t-svr4
5130 extra_passes="mips-tfile mips-tdump"
5132 if test x$gnu_ld != xyes
5137 mips-*-riscos[56789]sysv*)
5138 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
5139 if test x$stabs = xyes; then
5140 tm_file="${tm_file} dbx.h"
5143 xmake_file=mips/x-sysv
5144 if test x$gas = xyes
5146 tmake_file=mips/t-svr3-gas
5148 tmake_file=mips/t-svr3
5149 extra_passes="mips-tfile mips-tdump"
5151 if test x$gnu_ld != xyes
5156 mips-*-sysv* | mips-*-riscos*sysv*)
5157 tm_file="mips/svr3-4.h ${tm_file}"
5158 if test x$stabs = xyes; then
5159 tm_file="${tm_file} dbx.h"
5162 xmake_file=mips/x-sysv
5163 if test x$gas = xyes
5165 tmake_file=mips/t-svr3-gas
5167 tmake_file=mips/t-svr3
5168 extra_passes="mips-tfile mips-tdump"
5170 if test x$gnu_ld != xyes
5175 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5176 tm_file=mips/mips-5.h
5177 if test x$stabs = xyes; then
5178 tm_file="${tm_file} dbx.h"
5180 if test x$gas = xyes
5182 tmake_file=mips/t-mips-gas
5184 extra_passes="mips-tfile mips-tdump"
5186 if test x$gnu_ld != xyes
5194 tm_file=mips/ecoffl.h
5195 if test x$stabs = xyes; then
5196 tm_file="${tm_file} dbx.h"
5198 tmake_file=mips/t-ecoff
5201 tm_file="gofast.h mips/ecoff.h"
5202 if test x$stabs = xyes; then
5203 tm_file="${tm_file} dbx.h"
5205 tmake_file=mips/t-ecoff
5208 tm_file="mips/elfl.h"
5209 tmake_file=mips/t-elf
5212 tm_file="mips/elf.h"
5213 tmake_file=mips/t-elf
5216 tm_file="mips/elfl64.h"
5217 tmake_file=mips/t-elf
5219 mips64orionel-*-elf*)
5220 tm_file="mips/elforion.h mips/elfl64.h"
5221 tmake_file=mips/t-elf
5224 tm_file="mips/elf64.h"
5225 tmake_file=mips/t-elf
5228 tm_file="mips/elforion.h mips/elf64.h"
5229 tmake_file=mips/t-elf
5231 mips64orion-*-rtems*)
5232 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5233 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
5234 tmake_file="mips/t-elf t-rtems"
5237 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
5238 tmake_file=mips/t-r3900
5241 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
5242 tmake_file=mips/t-r3900
5244 mips-*-*) # Default MIPS RISC-OS 4.0.
5245 if test x$stabs = xyes; then
5246 tm_file="${tm_file} dbx.h"
5248 if test x$gas = xyes
5250 tmake_file=mips/t-mips-gas
5252 extra_passes="mips-tfile mips-tdump"
5254 if test x$gnu_ld != xyes
5261 tm_file="mn10200/mn10200.h"
5262 if test x$stabs = xyes
5264 tm_file="${tm_file} dbx.h"
5270 tm_file="mn10300/mn10300.h"
5271 if test x$stabs = xyes
5273 tm_file="${tm_file} dbx.h"
5278 tm_file=ns32k/encore.h
5282 tm_file=ns32k/sequent.h
5286 tm_file=ns32k/tek6100.h
5290 tm_file=ns32k/tek6200.h
5293 # This has not been updated to GCC 2.
5296 # xmake_file=ns32k/x-genix
5297 # tm_file=ns32k/genix.h
5301 tm_file=ns32k/merlin.h
5305 tm_file=ns32k/pc532-mach.h
5309 tm_file=ns32k/pc532-min.h
5310 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
5315 tm_file=ns32k/netbsd.h
5316 xm_file="ns32k/xm-netbsd.h ${xm_file}"
5317 # On NetBSD, the headers are already okay, except for math.h.
5322 tm_file="${tm_file} pdp11/2bsd.h"
5329 # This has not been updated to GCC 2.
5332 # xmake_file=pyr/x-pyr
5339 xmake_file=romp/x-mach
5346 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5350 tm_file=rs6000/beos.h
5351 xm_file=rs6000/xm-beos.h
5352 tmake_file=rs6000/t-beos
5353 xmake_file=rs6000/x-beos
5355 powerpc-*-sysv* | powerpc-*-elf*)
5356 tm_file=rs6000/sysv4.h
5357 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5358 xm_defines="USG POSIX"
5359 extra_headers=ppc-asm.h
5360 if test x$gas = xyes
5362 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5364 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5366 xmake_file=rs6000/x-sysv4
5369 tm_file=rs6000/eabiaix.h
5370 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5371 extra_headers=ppc-asm.h
5374 tm_file=rs6000/eabisim.h
5375 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5376 extra_headers=ppc-asm.h
5379 tm_file=rs6000/eabi.h
5380 if test x$gas = xyes
5382 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5384 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5386 extra_headers=ppc-asm.h
5389 tm_file=rs6000/rtems.h
5390 if test x$gas = xyes
5392 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5394 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5396 extra_headers=ppc-asm.h
5398 powerpc-*-linux-gnulibc1)
5399 tm_file=rs6000/linux.h
5400 xm_file=rs6000/xm-sysv4.h
5401 out_file=rs6000/rs6000.c
5402 if test x$gas = xyes
5404 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5406 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5409 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5410 extra_headers=ppc-asm.h
5411 if test x$enable_threads = xyes; then
5415 powerpc-*-linux-gnu*)
5416 tm_file=rs6000/linux.h
5417 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5418 xm_defines="USG ${xm_defines}"
5419 out_file=rs6000/rs6000.c
5420 if test x$gas = xyes
5422 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5424 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5427 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5428 extra_headers=ppc-asm.h
5429 if test x$enable_threads = xyes; then
5433 powerpc-wrs-vxworks*)
5435 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5436 xm_defines="USG POSIX"
5437 tm_file=rs6000/vxppc.h
5438 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5439 extra_headers=ppc-asm.h
5440 thread_file='vxworks'
5442 powerpcle-*-sysv* | powerpcle-*-elf*)
5443 tm_file=rs6000/sysv4le.h
5444 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5445 xm_defines="USG POSIX"
5446 if test x$gas = xyes
5448 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5450 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5452 xmake_file=rs6000/x-sysv4
5453 extra_headers=ppc-asm.h
5455 powerpcle-*-eabisim*)
5456 tm_file=rs6000/eabilesim.h
5457 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5458 extra_headers=ppc-asm.h
5461 tm_file=rs6000/eabile.h
5462 if test x$gas = xyes
5464 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
5466 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5468 extra_headers=ppc-asm.h
5470 powerpcle-*-winnt* )
5471 tm_file=rs6000/win-nt.h
5472 tmake_file=rs6000/t-winnt
5474 if test x$enable_threads = xyes; then
5477 extra_headers=ppc-asm.h
5479 powerpcle-*-pe | powerpcle-*-cygwin*)
5480 tm_file=rs6000/cygwin.h
5481 xm_file="rs6000/xm-cygwin.h ${xm_file}"
5482 tmake_file=rs6000/t-winnt
5483 xmake_file=rs6000/x-cygwin
5485 if test x$enable_threads = xyes; then
5489 extra_headers=ppc-asm.h
5491 powerpcle-*-solaris2*)
5492 tm_file=rs6000/sol2.h
5493 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
5494 xm_defines="USG POSIX"
5495 if test x$gas = xyes
5497 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
5499 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
5501 xmake_file=rs6000/x-sysv4
5502 extra_headers=ppc-asm.h
5504 rs6000-ibm-aix3.[01]*)
5505 tm_file=rs6000/aix31.h
5506 xmake_file=rs6000/x-aix31
5510 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
5511 tm_file=rs6000/aix3newas.h
5512 if test x$host != x$target
5514 tmake_file=rs6000/t-xnewas
5516 tmake_file=rs6000/t-newas
5521 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
5522 tm_file=rs6000/aix41.h
5523 if test x$host != x$target
5525 tmake_file=rs6000/t-xnewas
5527 tmake_file=rs6000/t-newas
5529 if test "$gnu_ld" = yes
5531 xmake_file=rs6000/x-aix41-gld
5533 xmake_file=rs6000/x-aix41
5538 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
5539 tm_file=rs6000/aix43.h
5540 if test x$host != x$target
5542 tmake_file=rs6000/t-xaix43
5544 tmake_file=rs6000/t-aix43
5546 xmake_file=rs6000/x-aix43
5550 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
5551 tm_file=rs6000/aix43.h
5552 if test x$host != x$target
5554 tmake_file=rs6000/t-xaix43
5556 tmake_file=rs6000/t-aix43
5558 xmake_file=rs6000/x-aix43
5571 tm_file=rs6000/mach.h
5572 xm_file="${xm_file} rs6000/xm-mach.h"
5573 xmake_file=rs6000/x-mach
5577 tm_file=rs6000/lynx.h
5578 xm_file=rs6000/xm-lynx.h
5579 tmake_file=rs6000/t-rs6000
5580 xmake_file=rs6000/x-lynx
5588 tmake_file="sh/t-sh t-rtems"
5589 tm_file=sh/rtemself.h
5593 tmake_file="sh/t-sh t-rtems"
5602 xm_file="xm-alloca.h ${xm_file}"
5605 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
5606 tm_file=sparc/vxsparc.h
5607 tmake_file=sparc/t-vxsparc
5609 thread_file='vxworks'
5612 tmake_file=sparc/t-sparcbare
5613 tm_file="sparc/aout.h libgloss.h"
5616 tm_file=sparc/netbsd.h
5621 # we need collect2 until our bug is fixed...
5629 tmake_file=sparc/t-elf
5630 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5634 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5635 xm_file="${xm_file} sparc/xm-linux.h"
5636 tm_file=sparc/linux-aout.h
5640 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5641 xm_file="${xm_file} sparc/xm-linux.h"
5643 tm_file=sparc/linux.h
5644 tmake_file="t-linux t-linux-gnulibc1"
5645 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5649 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5650 xm_file="${xm_file} sparc/xm-linux.h"
5652 tm_file=sparc/linux.h
5653 tmake_file="t-linux"
5654 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5656 if test x$enable_threads = xyes; then
5662 if test x$gas = xyes
5664 tm_file=sparc/lynx.h
5666 tm_file=sparc/lynx-ng.h
5668 xm_file=sparc/xm-lynx.h
5669 tmake_file=sparc/t-sunos41
5672 sparc-*-rtems*|sparc-*-rtemself*)
5673 tm_file="sparc/rtemself.h"
5674 tmake_file="sparc/t-elf t-rtems"
5675 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
5680 tmake_file="sparc/t-sparcbare t-rtems"
5681 tm_file=sparc/rtems.h
5683 sparcv9-*-solaris2*)
5684 tm_file=sparc/sol2-sld-64.h
5685 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5686 xm_defines="USG POSIX"
5687 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
5688 xmake_file=sparc/x-sysv4
5689 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5691 if test x${enable_threads} = x ; then
5692 enable_threads=$have_pthread_h
5693 if test x${enable_threads} = x ; then
5694 enable_threads=$have_thread_h
5697 if test x${enable_threads} = xyes ; then
5698 if test x${have_pthread_h} = xyes ; then
5701 thread_file='solaris'
5705 sparc-hal-solaris2*)
5706 xm_file=sparc/xm-sol2.h
5707 tm_file="sparc/sol2.h sparc/hal.h"
5708 tmake_file="sparc/t-halos sparc/t-sol2"
5709 xmake_file=sparc/x-sysv4
5710 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5714 if test x$gnu_ld = xyes
5716 tm_file=sparc/sol2.h
5718 tm_file=sparc/sol2-sld.h
5720 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5721 xm_defines="USG POSIX"
5722 tmake_file=sparc/t-sol2
5723 xmake_file=sparc/x-sysv4
5724 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5733 if test x${enable_threads} = x; then
5734 enable_threads=$have_pthread_h
5735 if test x${enable_threads} = x; then
5736 enable_threads=$have_thread_h
5739 if test x${enable_threads} = xyes; then
5740 if test x${have_pthread_h} = xyes; then
5743 thread_file='solaris'
5748 tm_file=sparc/sunos4.h
5749 tmake_file=sparc/t-sunos40
5753 tm_file=sparc/sunos4.h
5754 tmake_file=sparc/t-sunos41
5756 if test x$gas = xyes; then
5757 tm_file="${tm_file} sparc/sun4gas.h"
5761 tm_file=sparc/sun4o3.h
5765 tm_file=sparc/sysv4.h
5766 xm_file="xm-siglist.h sparc/xm-sysv4.h"
5767 xm_defines="USG POSIX"
5769 xmake_file=sparc/x-sysv4
5770 extra_parts="crtbegin.o crtend.o"
5773 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5774 xm_defines="USG POSIX"
5775 tm_file=sparc/vxsim.h
5776 tmake_file=sparc/t-vxsparc
5777 xmake_file=sparc/x-sysv4
5780 tm_file="sparc/splet.h libgloss.h"
5781 tmake_file=sparc/t-splet
5784 tm_file="sparc/litecoff.h libgloss.h"
5785 tmake_file=sparc/t-sparclite
5788 tm_file="sparc/lite.h aoutos.h libgloss.h"
5789 tmake_file=sparc/t-sparclite
5792 tm_file="sparc/liteelf.h libgloss.h"
5793 tmake_file=sparc/t-sparclite
5794 extra_parts="crtbegin.o crtend.o"
5797 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
5798 tmake_file=sparc/t-sp86x
5801 tm_file="sparc/sp86x-elf.h libgloss.h"
5802 tmake_file=sparc/t-sp86x
5803 extra_parts="crtbegin.o crtend.o"
5806 tmake_file=sparc/t-sp64
5807 tm_file=sparc/sp64-aout.h
5810 tmake_file=sparc/t-sp64
5811 tm_file=sparc/sp64-elf.h
5812 extra_parts="crtbegin.o crtend.o"
5814 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
5815 tmake_file="t-linux sparc/t-linux64"
5816 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
5817 tm_file=sparc/linux64.h
5819 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5823 # This hasn't been upgraded to GCC 2.
5824 # tahoe-harris-*) # Harris tahoe, using COFF.
5825 # tm_file=tahoe/harris.h
5827 # tahoe-*-bsd*) # tahoe running BSD
5829 thumb-*-coff* | thumbel-*-coff*)
5831 out_file=arm/thumb.c
5832 xm_file=arm/xm-thumb.h
5833 md_file=arm/thumb.md
5834 tmake_file=arm/t-thumb
5836 thumb-*-elf* | thumbel-*-elf*)
5838 out_file=arm/thumb.c
5839 xm_file=arm/xm-thumb.h
5840 md_file=arm/thumb.md
5841 tmake_file=arm/t-thumb-elf
5844 tm_file=arm/linux-telf.h
5845 out_file=arm/thumb.c
5846 xm_file=arm/xm-thumb.h
5847 md_file=arm/thumb.md
5848 tmake_file=arm/t-thumb-linux
5851 tm_file=arm/uclinux-telf.h
5852 out_file=arm/thumb.c
5853 md_file=arm/thumb.md
5854 tmake_file=arm/t-thumb-linux
5855 xm_file=arm/xm-thumb.h
5859 out_file=arm/thumb.c
5860 xm_file=arm/xm-thumb.h
5861 md_file=arm/thumb.md
5862 tmake_file=arm/t-thumb
5863 thread_file='vxworks'
5867 out_file=arm/thumb.c
5868 xm_file=arm/xm-thumb.h
5869 md_file=arm/thumb.md
5870 tmake_file=arm/t-pe-thumb
5873 # This hasn't been upgraded to GCC 2.
5879 target_cpu_default="TARGET_CPU_generic"
5881 tm_file="v850/v850.h"
5882 xm_file="v850/xm-v850.h"
5883 tmake_file=v850/t-v850
5884 if test x$stabs = xyes
5886 tm_file="${tm_file} dbx.h"
5890 vax-*-bsd*) # vaxen running BSD
5894 vax-*-sysv*) # vaxen running system V
5895 tm_file="${tm_file} vax/vaxv.h"
5900 tm_file="${tm_file} netbsd.h vax/netbsd.h"
5906 tmake_file="${tmake_file} vax/t-openbsd"
5908 vax-*-ultrix*) # vaxen running ultrix
5909 tm_file="${tm_file} vax/ultrix.h"
5913 vax-*-vms*) # vaxen running VMS
5914 xm_file=vax/xm-vms.h
5918 vax-*-*) # vax default entry
5922 xm_file="${xm_file} xm-svr3"
5926 echo "Configuration $machine not supported" 1>&2
5933 ;; # Existing GNU/Linux systems do not use the GNU setup.
5935 # On the GNU system, the setup is just about the same on
5936 # each different CPU. The specific machines that GNU
5937 # supports are matched above and just set $cpu_type.
5938 xm_file="xm-gnu.h ${xm_file}"
5939 tm_file=${cpu_type}/gnu.h
5940 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5941 # GNU always uses ELF.
5943 # GNU tools are the only tools.
5946 xmake_file=x-linux # These details are the same as Linux.
5947 tmake_file=t-gnu # These are not.
5950 xmake_try_sysv=x-sysv
5951 install_headers_dir=install-headers-cpio
5954 install_headers_dir=install-headers-cpio
5958 # Distinguish i[34567]86
5959 # Also, do not run mips-tfile on MIPS if using gas.
5960 # Process --with-cpu= for PowerPC/rs6000
5961 target_cpu_default2=
5964 target_cpu_default2=1
5967 case $target_alias in
5969 target_cpu_default2=4
5972 target_cpu_default2=2
5976 i686-*-* | i786-*-*)
5977 target_cpu_default2=3
5982 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
5985 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5988 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
5991 target_cpu_default2="MASK_CPU_EV5"
5995 if test x$gas = xyes
5997 if test "$target_cpu_default2" = ""
5999 target_cpu_default2="MASK_GAS"
6001 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
6006 case "x$with_cpu" in
6009 target_cpu_default2="TARGET_CPU_generic"
6012 # Distinguish cores, and major variants
6013 # arm7m doesn't exist, but D & I don't affect code
6014 xarm23678 | xarm250 | xarm67010 \
6015 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6016 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6017 | xstrongarm | xstrongarm110 | xstrongarm1100)
6018 target_cpu_default2="TARGET_CPU_$with_cpu"
6022 echo "--with-cpu must be passed a value" 1>&2
6027 if test x$pass2done = xyes
6029 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6036 mips*-*-ecoff* | mips*-*-elf*)
6037 if test x$gas = xyes
6039 if test x$gnu_ld = xyes
6041 target_cpu_default2=20
6043 target_cpu_default2=16
6048 if test x$gas = xyes
6050 target_cpu_default2=16
6053 powerpc*-*-* | rs6000-*-*)
6054 case "x$with_cpu" in
6058 xcommon | xpower | xpower2 | xpowerpc | xrios \
6059 | xrios1 | xrios2 | xrsc | xrsc1 \
6060 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6061 | xec603e | x740 | x750 | x401 \
6062 | x403 | x505 | x801 | x821 | x823 | x860)
6063 target_cpu_default2="\"$with_cpu\""
6067 echo "--with-cpu must be passed a value" 1>&2
6072 if test x$pass2done = xyes
6074 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6081 case ".$with_cpu" in
6083 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
6085 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
6086 target_cpu_default2="TARGET_CPU_$with_cpu"
6089 if test x$pass2done = xyes
6091 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6099 if test "$target_cpu_default2" != ""
6101 if test "$target_cpu_default" != ""
6103 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
6105 target_cpu_default=$target_cpu_default2
6109 # No need for collect2 if we have the GNU linker.
6110 # Actually, there is now; GNU ld doesn't handle the EH info or
6111 # collecting for shared libraries.
6118 # Save data on machine being used to compile GCC in build_xm_file.
6119 # Save data on host machine in vars host_xm_file and host_xmake_file.
6120 if test x$pass1done = x
6122 if test x"$xm_file" = x
6123 then build_xm_file=$cpu_type/xm-$cpu_type.h
6124 else build_xm_file=$xm_file
6126 build_xm_defines=$xm_defines
6127 build_install_headers_dir=$install_headers_dir
6128 build_exeext=$exeext
6131 if test x$pass2done = x
6133 if test x"$xm_file" = x
6134 then host_xm_file=$cpu_type/xm-$cpu_type.h
6135 else host_xm_file=$xm_file
6137 host_xm_defines=$xm_defines
6138 if test x"$xmake_file" = x
6139 then xmake_file=$cpu_type/x-$cpu_type
6141 host_xmake_file="$xmake_file"
6142 host_truncate_target=$truncate_target
6143 host_extra_gcc_objs=$extra_gcc_objs
6144 host_extra_objs=$extra_host_objs
6151 extra_objs="${host_extra_objs} ${extra_objs}"
6153 # Default the target-machine variables that were not explicitly set.
6154 if test x"$tm_file" = x
6155 then tm_file=$cpu_type/$cpu_type.h; fi
6157 if test x$extra_headers = x
6158 then extra_headers=; fi
6160 if test x"$xm_file" = x
6161 then xm_file=$cpu_type/xm-$cpu_type.h; fi
6163 if test x$md_file = x
6164 then md_file=$cpu_type/$cpu_type.md; fi
6166 if test x$out_file = x
6167 then out_file=$cpu_type/$cpu_type.c; fi
6169 if test x"$tmake_file" = x
6170 then tmake_file=$cpu_type/t-$cpu_type
6173 if test x"$dwarf2" = xyes
6174 then tm_file="tm-dwarf2.h $tm_file"
6177 if test x$float_format = x
6178 then float_format=i64
6181 if test $float_format = none
6182 then float_h_file=Makefile.in
6183 else float_h_file=float-$float_format.h
6186 # Handle cpp installation.
6187 if test x$enable_cpp != xno
6189 tmake_file="$tmake_file t-install-cpp"
6192 # Say what files are being used for the output code and MD file.
6193 echo "Using \`$srcdir/config/$out_file' to output insns."
6194 echo "Using \`$srcdir/config/$md_file' as machine description file."
6197 for f in $tm_file; do
6200 if test $count = ax; then
6201 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6203 echo "Using the following target machine macro files:"
6204 for f in $tm_file; do
6205 echo " $srcdir/config/$f"
6210 for f in $host_xm_file; do
6213 if test $count = ax; then
6214 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6216 echo "Using the following host machine macro files:"
6217 for f in $host_xm_file; do
6218 echo " $srcdir/config/$f"
6222 if test "$host_xm_file" != "$build_xm_file"; then
6224 for f in $build_xm_file; do
6227 if test $count = ax; then
6228 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6230 echo "Using the following build machine macro files:"
6231 for f in $build_xm_file; do
6232 echo " $srcdir/config/$f"
6237 if test x$thread_file = x; then
6238 if test x$target_thread_file != x; then
6239 thread_file=$target_thread_file
6241 thread_file='single'
6245 # Set up the header files.
6246 # $links is the list of header files to create.
6247 # $vars is the list of shell variables with file names to include.
6248 # auto-host.h is the file containing items generated by autoconf and is
6249 # the first file included by config.h.
6251 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6253 # If host=build, it is correct to have hconfig include auto-host.h
6254 # as well. If host!=build, we are in error and need to do more
6255 # work to find out the build config parameters.
6256 if test x$host = x$build
6258 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6260 # We create a subdir, then run autoconf in the subdir.
6261 # To prevent recursion we set host and build for the new
6262 # invocation of configure to the build for this invocation
6269 /*) realsrcdir=${srcdir};;
6270 *) realsrcdir=../${srcdir};;
6272 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6273 --target=$target --host=$build --build=$build
6275 # We just finished tests for the build machine, so rename
6276 # the file auto-build.h in the gcc directory.
6277 mv auto-host.h ../auto-build.h
6280 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6283 xm_file="gansidecl.h ${xm_file}"
6284 tm_file="gansidecl.h ${tm_file}"
6286 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6287 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
6288 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6291 if test -f config.status; then mv -f config.status config.bak; fi
6294 while test -n "$vars"
6296 set $vars; var=$1; shift; vars=$*
6297 set $links; link=$1; shift; links=$*
6298 set $defines; define=$1; shift; defines=$*
6301 # Make sure the file is created, even if it is empty.
6304 # Define TARGET_CPU_DEFAULT if the system wants one.
6305 # This substitutes for lots of *.h files.
6306 if test "$target_cpu_default" != "" -a $link = tm.h
6308 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6311 for file in `eval echo '$'$var`; do
6316 echo '#ifdef IN_GCC' >>$link
6319 echo "#include \"$file\"" >>$link
6324 echo '#endif' >>$link
6329 for def in `eval echo '$'$define`; do
6330 echo "#ifndef $def" >>$link
6331 echo "#define $def" >>$link
6332 echo "#endif" >>$link
6336 # Truncate the target if necessary
6337 if test x$host_truncate_target != x; then
6338 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6341 # Get the version trigger filename from the toplevel
6342 if test "${with_gcc_version_trigger+set}" = set; then
6343 gcc_version_trigger=$with_gcc_version_trigger
6345 gcc_version_trigger=${srcdir}/version.c
6347 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6349 # Internationalization
6351 VERSION="$gcc_version"
6352 cat >> confdefs.h <<EOF
6353 #define PACKAGE "$PACKAGE"
6356 cat >> confdefs.h <<EOF
6357 #define VERSION "$VERSION"
6365 # NLS support is still experimental, so disable it by default for now.
6366 # Check whether --enable-nls or --disable-nls was given.
6367 if test "${enable_nls+set}" = set; then
6368 enableval="$enable_nls"
6376 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6377 echo "configure:6378: checking for strerror in -lcposix" >&5
6378 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6382 ac_save_LIBS="$LIBS"
6383 LIBS="-lcposix $LIBS"
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 /* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */
6396 if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6398 eval "ac_cv_lib_$ac_lib_var=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6403 eval "ac_cv_lib_$ac_lib_var=no"
6406 LIBS="$ac_save_LIBS"
6409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6410 echo "$ac_t""yes" 1>&6
6411 LIBS="$LIBS -lcposix"
6413 echo "$ac_t""no" 1>&6
6418 echo $ac_n "checking for working const""... $ac_c" 1>&6
6419 echo "configure:6420: checking for working const" >&5
6420 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6429 /* Ultrix mips cc rejects this. */
6430 typedef int charset[2]; const charset x;
6431 /* SunOS 4.1.1 cc rejects this. */
6432 char const *const *ccp;
6434 /* NEC SVR4.0.2 mips cc rejects this. */
6435 struct point {int x, y;};
6436 static struct point const zero = {0,0};
6437 /* AIX XL C 1.02.0.0 rejects this.
6438 It does not let you subtract one const X* pointer from another in an arm
6439 of an if-expression whose if-part is not a constant expression */
6440 const char *g = "string";
6441 ccp = &g + (g ? g-g : 0);
6442 /* HPUX 7.0 cc rejects these. */
6445 ccp = (char const *const *) p;
6446 { /* SCO 3.2v4 cc rejects this. */
6448 char const *s = 0 ? (char *) 0 : (char const *) 0;
6452 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6454 const int *foo = &x[0];
6457 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6458 typedef const int *iptr;
6462 { /* AIX XL C 1.02.0.0 rejects this saying
6463 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6464 struct s { int j; const int *ap[3]; };
6465 struct s *b; b->j = 5;
6467 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6473 if { (eval echo configure:6474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6477 echo "configure: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6485 echo "$ac_t""$ac_cv_c_const" 1>&6
6486 if test $ac_cv_c_const = no; then
6487 cat >> confdefs.h <<\EOF
6493 echo $ac_n "checking for inline""... $ac_c" 1>&6
6494 echo "configure:6495: checking for inline" >&5
6495 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6499 for ac_kw in inline __inline__ __inline; do
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6508 if { (eval echo configure:6509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6510 ac_cv_c_inline=$ac_kw; break
6512 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5
6520 echo "$ac_t""$ac_cv_c_inline" 1>&6
6521 case "$ac_cv_c_inline" in
6523 no) cat >> confdefs.h <<\EOF
6527 *) cat >> confdefs.h <<EOF
6528 #define inline $ac_cv_c_inline
6533 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6534 echo "configure:6535: checking for off_t" >&5
6535 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6538 cat > conftest.$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541 #include <sys/types.h>
6547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6548 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6550 ac_cv_type_off_t=yes
6558 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6559 if test $ac_cv_type_off_t = no; then
6560 cat >> confdefs.h <<\EOF
6566 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6567 echo "configure:6568: checking for size_t" >&5
6568 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure"
6573 #include "confdefs.h"
6574 #include <sys/types.h>
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6583 ac_cv_type_size_t=yes
6586 ac_cv_type_size_t=no
6591 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6592 if test $ac_cv_type_size_t = no; then
6593 cat >> confdefs.h <<\EOF
6594 #define size_t unsigned
6599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6600 # for constant arguments. Useless!
6601 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6602 echo "configure:6603: checking for working alloca.h" >&5
6603 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6611 char *p = alloca(2 * sizeof(int));
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6616 ac_cv_header_alloca_h=yes
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6621 ac_cv_header_alloca_h=no
6626 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6627 if test $ac_cv_header_alloca_h = yes; then
6628 cat >> confdefs.h <<\EOF
6629 #define HAVE_ALLOCA_H 1
6634 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6635 echo "configure:6636: checking for alloca" >&5
6636 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6644 # define alloca __builtin_alloca
6647 # include <malloc.h>
6648 # define alloca _alloca
6651 # include <alloca.h>
6656 # ifndef alloca /* predefined by HP cc +Olibcalls */
6665 char *p = (char *) alloca(1);
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6670 ac_cv_func_alloca_works=yes
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6675 ac_cv_func_alloca_works=no
6680 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6681 if test $ac_cv_func_alloca_works = yes; then
6682 cat >> confdefs.h <<\EOF
6683 #define HAVE_ALLOCA 1
6688 if test $ac_cv_func_alloca_works = no; then
6689 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6690 # that cause trouble. Some versions do not even contain alloca or
6691 # contain a buggy version. If you still want to use their alloca,
6692 # use ar to extract alloca.o from them instead of compiling alloca.c.
6693 ALLOCA=alloca.${ac_objext}
6694 cat >> confdefs.h <<\EOF
6699 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6700 echo "configure:6701: checking whether alloca needs Cray hooks" >&5
6701 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 #if defined(CRAY) && ! defined(CRAY2)
6714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715 egrep "webecray" >/dev/null 2>&1; then
6726 echo "$ac_t""$ac_cv_os_cray" 1>&6
6727 if test $ac_cv_os_cray = yes; then
6728 for ac_func in _getb67 GETB67 getb67; do
6729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6730 echo "configure:6731: checking for $ac_func" >&5
6731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6732 echo $ac_n "(cached) $ac_c" 1>&6
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* System header to define __stub macros and hopefully few prototypes,
6738 which can conflict with char $ac_func(); below. */
6740 /* Override any gcc2 internal prototype to avoid an error. */
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6747 /* The GNU C library defines this for functions which it implements
6748 to always fail with ENOSYS. Some functions are actually named
6749 something starting with __ and the normal name is an alias. */
6750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6758 if { (eval echo configure:6759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6760 eval "ac_cv_func_$ac_func=yes"
6762 echo "configure: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6765 eval "ac_cv_func_$ac_func=no"
6770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6771 echo "$ac_t""yes" 1>&6
6772 cat >> confdefs.h <<EOF
6773 #define CRAY_STACKSEG_END $ac_func
6778 echo "$ac_t""no" 1>&6
6784 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6785 echo "configure:6786: checking stack direction for C alloca" >&5
6786 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6789 if test "$cross_compiling" = yes; then
6790 ac_cv_c_stack_direction=0
6792 cat > conftest.$ac_ext <<EOF
6793 #line 6794 "configure"
6794 #include "confdefs.h"
6795 find_stack_direction ()
6797 static char *addr = 0;
6802 return find_stack_direction ();
6805 return (&dummy > addr) ? 1 : -1;
6809 exit (find_stack_direction() < 0);
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6814 ac_cv_c_stack_direction=1
6816 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6819 ac_cv_c_stack_direction=-1
6826 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6827 cat >> confdefs.h <<EOF
6828 #define STACK_DIRECTION $ac_cv_c_stack_direction
6833 for ac_hdr in unistd.h
6835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6837 echo "configure:6838: checking for $ac_hdr" >&5
6838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6839 echo $ac_n "(cached) $ac_c" 1>&6
6841 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6847 { (eval echo configure:6848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6849 if test -z "$ac_err"; then
6851 eval "ac_cv_header_$ac_safe=yes"
6854 echo "configure: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6857 eval "ac_cv_header_$ac_safe=no"
6861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6864 cat >> confdefs.h <<EOF
6865 #define $ac_tr_hdr 1
6869 echo "$ac_t""no" 1>&6
6873 for ac_func in getpagesize
6875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6876 echo "configure:6877: checking for $ac_func" >&5
6877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* System header to define __stub macros and hopefully few prototypes,
6884 which can conflict with char $ac_func(); below. */
6886 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6893 /* The GNU C library defines this for functions which it implements
6894 to always fail with ENOSYS. Some functions are actually named
6895 something starting with __ and the normal name is an alias. */
6896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6906 eval "ac_cv_func_$ac_func=yes"
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 eval "ac_cv_func_$ac_func=no"
6916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6917 echo "$ac_t""yes" 1>&6
6918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6919 cat >> confdefs.h <<EOF
6920 #define $ac_tr_func 1
6924 echo "$ac_t""no" 1>&6
6928 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6929 echo "configure:6930: checking for working mmap" >&5
6930 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6933 if test "$cross_compiling" = yes; then
6934 ac_cv_func_mmap_fixed_mapped=no
6936 cat > conftest.$ac_ext <<EOF
6937 #line 6938 "configure"
6938 #include "confdefs.h"
6940 /* Thanks to Mike Haertel and Jim Avera for this test.
6941 Here is a matrix of mmap possibilities:
6942 mmap private not fixed
6943 mmap private fixed at somewhere currently unmapped
6944 mmap private fixed at somewhere already mapped
6945 mmap shared not fixed
6946 mmap shared fixed at somewhere currently unmapped
6947 mmap shared fixed at somewhere already mapped
6948 For private mappings, we should verify that changes cannot be read()
6949 back from the file, nor mmap's back from the file at a different
6950 address. (There have been systems where private was not correctly
6951 implemented like the infamous i386 svr4.0, and systems where the
6952 VM page cache was not coherent with the filesystem buffer cache
6953 like early versions of FreeBSD and possibly contemporary NetBSD.)
6954 For shared mappings, we should conversely verify that changes get
6955 propogated back to all the places they're supposed to be.
6957 Grep wants private fixed already mapped.
6958 The main things grep needs to know about mmap are:
6959 * does it exist and is it safe to write into the mmap'd area
6960 * how to use it (BSD variants) */
6961 #include <sys/types.h>
6963 #include <sys/mman.h>
6965 /* This mess was copied from the GNU getpagesize.h. */
6966 #ifndef HAVE_GETPAGESIZE
6967 # ifdef HAVE_UNISTD_H
6968 # include <unistd.h>
6971 /* Assume that all systems that can run configure have sys/param.h. */
6972 # ifndef HAVE_SYS_PARAM_H
6973 # define HAVE_SYS_PARAM_H 1
6976 # ifdef _SC_PAGESIZE
6977 # define getpagesize() sysconf(_SC_PAGESIZE)
6978 # else /* no _SC_PAGESIZE */
6979 # ifdef HAVE_SYS_PARAM_H
6980 # include <sys/param.h>
6981 # ifdef EXEC_PAGESIZE
6982 # define getpagesize() EXEC_PAGESIZE
6983 # else /* no EXEC_PAGESIZE */
6985 # define getpagesize() NBPG * CLSIZE
6988 # endif /* no CLSIZE */
6989 # else /* no NBPG */
6991 # define getpagesize() NBPC
6992 # else /* no NBPC */
6994 # define getpagesize() PAGESIZE
6995 # endif /* PAGESIZE */
6996 # endif /* no NBPC */
6997 # endif /* no NBPG */
6998 # endif /* no EXEC_PAGESIZE */
6999 # else /* no HAVE_SYS_PARAM_H */
7000 # define getpagesize() 8192 /* punt totally */
7001 # endif /* no HAVE_SYS_PARAM_H */
7002 # endif /* no _SC_PAGESIZE */
7004 #endif /* no HAVE_GETPAGESIZE */
7007 extern "C" { void *malloc(unsigned); }
7015 char *data, *data2, *data3;
7019 pagesize = getpagesize();
7022 * First, make a file with some known garbage in it.
7024 data = malloc(pagesize);
7027 for (i = 0; i < pagesize; ++i)
7028 *(data + i) = rand();
7030 fd = creat("conftestmmap", 0600);
7033 if (write(fd, data, pagesize) != pagesize)
7038 * Next, try to mmap the file at a fixed address which
7039 * already has something else allocated at it. If we can,
7040 * also make sure that we see the same garbage.
7042 fd = open("conftestmmap", O_RDWR);
7045 data2 = malloc(2 * pagesize);
7048 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7049 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7050 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7052 for (i = 0; i < pagesize; ++i)
7053 if (*(data + i) != *(data2 + i))
7057 * Finally, make sure that changes to the mapped area
7058 * do not percolate back to the file as seen by read().
7059 * (This is a bug on some variants of i386 svr4.0.)
7061 for (i = 0; i < pagesize; ++i)
7062 *(data2 + i) = *(data2 + i) + 1;
7063 data3 = malloc(pagesize);
7066 if (read(fd, data3, pagesize) != pagesize)
7068 for (i = 0; i < pagesize; ++i)
7069 if (*(data + i) != *(data3 + i))
7072 unlink("conftestmmap");
7077 if { (eval echo configure:7078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7079 ac_cv_func_mmap_fixed_mapped=yes
7081 echo "configure: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7084 ac_cv_func_mmap_fixed_mapped=no
7091 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7092 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7093 cat >> confdefs.h <<\EOF
7100 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7101 unistd.h sys/param.h
7103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7105 echo "configure:7106: checking for $ac_hdr" >&5
7106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7107 echo $ac_n "(cached) $ac_c" 1>&6
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7115 { (eval echo configure:7116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7117 if test -z "$ac_err"; then
7119 eval "ac_cv_header_$ac_safe=yes"
7122 echo "configure: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7125 eval "ac_cv_header_$ac_safe=no"
7129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7130 echo "$ac_t""yes" 1>&6
7131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7132 cat >> confdefs.h <<EOF
7133 #define $ac_tr_hdr 1
7137 echo "$ac_t""no" 1>&6
7141 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7142 strdup __argz_count __argz_stringify __argz_next
7144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7145 echo "configure:7146: checking for $ac_func" >&5
7146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7147 echo $ac_n "(cached) $ac_c" 1>&6
7149 cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7152 /* System header to define __stub macros and hopefully few prototypes,
7153 which can conflict with char $ac_func(); below. */
7155 /* Override any gcc2 internal prototype to avoid an error. */
7156 /* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7162 /* The GNU C library defines this for functions which it implements
7163 to always fail with ENOSYS. Some functions are actually named
7164 something starting with __ and the normal name is an alias. */
7165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7173 if { (eval echo configure:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7175 eval "ac_cv_func_$ac_func=yes"
7177 echo "configure: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7180 eval "ac_cv_func_$ac_func=no"
7185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7186 echo "$ac_t""yes" 1>&6
7187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7188 cat >> confdefs.h <<EOF
7189 #define $ac_tr_func 1
7193 echo "$ac_t""no" 1>&6
7198 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7199 for ac_func in stpcpy
7201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7202 echo "configure:7203: checking for $ac_func" >&5
7203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7204 echo $ac_n "(cached) $ac_c" 1>&6
7206 cat > conftest.$ac_ext <<EOF
7207 #line 7208 "configure"
7208 #include "confdefs.h"
7209 /* System header to define __stub macros and hopefully few prototypes,
7210 which can conflict with char $ac_func(); below. */
7212 /* Override any gcc2 internal prototype to avoid an error. */
7213 /* We use char because int might match the return type of a gcc2
7214 builtin and then its argument prototype would still apply. */
7219 /* The GNU C library defines this for functions which it implements
7220 to always fail with ENOSYS. Some functions are actually named
7221 something starting with __ and the normal name is an alias. */
7222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7232 eval "ac_cv_func_$ac_func=yes"
7234 echo "configure: failed program was:" >&5
7235 cat conftest.$ac_ext >&5
7237 eval "ac_cv_func_$ac_func=no"
7242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7245 cat >> confdefs.h <<EOF
7246 #define $ac_tr_func 1
7250 echo "$ac_t""no" 1>&6
7255 if test "${ac_cv_func_stpcpy}" = "yes"; then
7256 cat >> confdefs.h <<\EOF
7257 #define HAVE_STPCPY 1
7262 if test $ac_cv_header_locale_h = yes; then
7263 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7264 echo "configure:7265: checking for LC_MESSAGES" >&5
7265 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7266 echo $ac_n "(cached) $ac_c" 1>&6
7268 cat > conftest.$ac_ext <<EOF
7269 #line 7270 "configure"
7270 #include "confdefs.h"
7276 if { (eval echo configure:7277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7278 am_cv_val_LC_MESSAGES=yes
7280 echo "configure: failed program was:" >&5
7281 cat conftest.$ac_ext >&5
7283 am_cv_val_LC_MESSAGES=no
7288 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7289 if test $am_cv_val_LC_MESSAGES = yes; then
7290 cat >> confdefs.h <<\EOF
7291 #define HAVE_LC_MESSAGES 1
7296 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7297 echo "configure:7298: checking whether NLS is requested" >&5
7298 # Check whether --enable-nls or --disable-nls was given.
7299 if test "${enable_nls+set}" = set; then
7300 enableval="$enable_nls"
7306 echo "$ac_t""$USE_NLS" 1>&6
7309 USE_INCLUDED_LIBINTL=no
7311 if test "$USE_NLS" = "yes"; then
7312 cat >> confdefs.h <<\EOF
7313 #define ENABLE_NLS 1
7316 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7317 echo "configure:7318: checking whether included gettext is requested" >&5
7318 # Check whether --with-included-gettext or --without-included-gettext was given.
7319 if test "${with_included_gettext+set}" = set; then
7320 withval="$with_included_gettext"
7321 nls_cv_force_use_gnu_gettext=$withval
7323 nls_cv_force_use_gnu_gettext=no
7326 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7328 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7329 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7331 nls_cv_header_libgt=
7334 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7335 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7336 echo "configure:7337: checking for libintl.h" >&5
7337 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 #include <libintl.h>
7345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7346 { (eval echo configure:7347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7348 if test -z "$ac_err"; then
7350 eval "ac_cv_header_$ac_safe=yes"
7353 echo "configure: failed program was:" >&5
7354 cat conftest.$ac_ext >&5
7356 eval "ac_cv_header_$ac_safe=no"
7360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7361 echo "$ac_t""yes" 1>&6
7362 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7363 echo "configure:7364: checking for gettext in libc" >&5
7364 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7367 cat > conftest.$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 #include <libintl.h>
7372 return (int) gettext ("")
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7377 gt_cv_func_gettext_libc=yes
7379 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7382 gt_cv_func_gettext_libc=no
7387 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7389 if test "$gt_cv_func_gettext_libc" != "yes"; then
7390 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7391 echo "configure:7392: checking for bindtextdomain in -lintl" >&5
7392 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7396 ac_save_LIBS="$LIBS"
7398 cat > conftest.$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 /* Override any gcc2 internal prototype to avoid an error. */
7402 /* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */
7404 char bindtextdomain();
7410 if { (eval echo configure:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7412 eval "ac_cv_lib_$ac_lib_var=yes"
7414 echo "configure: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7417 eval "ac_cv_lib_$ac_lib_var=no"
7420 LIBS="$ac_save_LIBS"
7423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7424 echo "$ac_t""yes" 1>&6
7425 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7426 echo "configure:7427: checking for gettext in libintl" >&5
7427 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7428 echo $ac_n "(cached) $ac_c" 1>&6
7430 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7431 echo "configure:7432: checking for gettext in -lintl" >&5
7432 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7436 ac_save_LIBS="$LIBS"
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7441 /* Override any gcc2 internal prototype to avoid an error. */
7442 /* We use char because int might match the return type of a gcc2
7443 builtin and then its argument prototype would still apply. */
7450 if { (eval echo configure:7451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7452 eval "ac_cv_lib_$ac_lib_var=yes"
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7457 eval "ac_cv_lib_$ac_lib_var=no"
7460 LIBS="$ac_save_LIBS"
7463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7464 echo "$ac_t""yes" 1>&6
7465 gt_cv_func_gettext_libintl=yes
7467 echo "$ac_t""no" 1>&6
7468 gt_cv_func_gettext_libintl=no
7473 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7475 echo "$ac_t""no" 1>&6
7480 if test "$gt_cv_func_gettext_libc" = "yes" \
7481 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7482 cat >> confdefs.h <<\EOF
7483 #define HAVE_GETTEXT 1
7486 # Extract the first word of "msgfmt", so it can be a program name with args.
7487 set dummy msgfmt; ac_word=$2
7488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7489 echo "configure:7490: checking for $ac_word" >&5
7490 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7491 echo $ac_n "(cached) $ac_c" 1>&6
7495 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7499 for ac_dir in $PATH; do
7500 test -z "$ac_dir" && ac_dir=.
7501 if test -f $ac_dir/$ac_word; then
7502 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7503 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7509 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7513 MSGFMT="$ac_cv_path_MSGFMT"
7514 if test -n "$MSGFMT"; then
7515 echo "$ac_t""$MSGFMT" 1>&6
7517 echo "$ac_t""no" 1>&6
7519 if test "$MSGFMT" != "no"; then
7520 for ac_func in dcgettext
7522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7523 echo "configure:7524: checking for $ac_func" >&5
7524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7525 echo $ac_n "(cached) $ac_c" 1>&6
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 /* System header to define __stub macros and hopefully few prototypes,
7531 which can conflict with char $ac_func(); below. */
7533 /* Override any gcc2 internal prototype to avoid an error. */
7534 /* We use char because int might match the return type of a gcc2
7535 builtin and then its argument prototype would still apply. */
7540 /* The GNU C library defines this for functions which it implements
7541 to always fail with ENOSYS. Some functions are actually named
7542 something starting with __ and the normal name is an alias. */
7543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7551 if { (eval echo configure:7552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7553 eval "ac_cv_func_$ac_func=yes"
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7558 eval "ac_cv_func_$ac_func=no"
7563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7564 echo "$ac_t""yes" 1>&6
7565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7566 cat >> confdefs.h <<EOF
7567 #define $ac_tr_func 1
7571 echo "$ac_t""no" 1>&6
7575 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7576 set dummy gmsgfmt; ac_word=$2
7577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7578 echo "configure:7579: checking for $ac_word" >&5
7579 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7580 echo $ac_n "(cached) $ac_c" 1>&6
7584 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7587 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7592 for ac_dir in $ac_dummy; do
7593 test -z "$ac_dir" && ac_dir=.
7594 if test -f $ac_dir/$ac_word; then
7595 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7600 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7604 GMSGFMT="$ac_cv_path_GMSGFMT"
7605 if test -n "$GMSGFMT"; then
7606 echo "$ac_t""$GMSGFMT" 1>&6
7608 echo "$ac_t""no" 1>&6
7611 # Extract the first word of "xgettext", so it can be a program name with args.
7612 set dummy xgettext; ac_word=$2
7613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7614 echo "configure:7615: checking for $ac_word" >&5
7615 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7616 echo $ac_n "(cached) $ac_c" 1>&6
7620 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7624 for ac_dir in $PATH; do
7625 test -z "$ac_dir" && ac_dir=.
7626 if test -f $ac_dir/$ac_word; then
7627 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7628 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7634 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7638 XGETTEXT="$ac_cv_path_XGETTEXT"
7639 if test -n "$XGETTEXT"; then
7640 echo "$ac_t""$XGETTEXT" 1>&6
7642 echo "$ac_t""no" 1>&6
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure"
7647 #include "confdefs.h"
7650 extern int _nl_msg_cat_cntr;
7651 return _nl_msg_cat_cntr
7654 if { (eval echo configure:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7659 echo "configure: failed program was:" >&5
7660 cat conftest.$ac_ext >&5
7671 echo "$ac_t""no" 1>&6
7675 if test "$CATOBJEXT" = "NONE"; then
7676 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7677 echo "configure:7678: checking whether catgets can be used" >&5
7678 # Check whether --with-catgets or --without-catgets was given.
7679 if test "${with_catgets+set}" = set; then
7680 withval="$with_catgets"
7681 nls_cv_use_catgets=$withval
7683 nls_cv_use_catgets=no
7686 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7688 if test "$nls_cv_use_catgets" = "yes"; then
7689 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7690 echo "configure:7691: checking for main in -li" >&5
7691 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
7692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7693 echo $ac_n "(cached) $ac_c" 1>&6
7695 ac_save_LIBS="$LIBS"
7697 cat > conftest.$ac_ext <<EOF
7698 #line 7699 "configure"
7699 #include "confdefs.h"
7705 if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7707 eval "ac_cv_lib_$ac_lib_var=yes"
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7712 eval "ac_cv_lib_$ac_lib_var=no"
7715 LIBS="$ac_save_LIBS"
7718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7719 echo "$ac_t""yes" 1>&6
7720 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7721 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7722 cat >> confdefs.h <<EOF
7723 #define $ac_tr_lib 1
7729 echo "$ac_t""no" 1>&6
7732 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7733 echo "configure:7734: checking for catgets" >&5
7734 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7737 cat > conftest.$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740 /* System header to define __stub macros and hopefully few prototypes,
7741 which can conflict with char catgets(); below. */
7743 /* Override any gcc2 internal prototype to avoid an error. */
7744 /* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7750 /* The GNU C library defines this for functions which it implements
7751 to always fail with ENOSYS. Some functions are actually named
7752 something starting with __ and the normal name is an alias. */
7753 #if defined (__stub_catgets) || defined (__stub___catgets)
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7763 eval "ac_cv_func_catgets=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7768 eval "ac_cv_func_catgets=no"
7773 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7774 echo "$ac_t""yes" 1>&6
7775 cat >> confdefs.h <<\EOF
7776 #define HAVE_CATGETS 1
7779 INTLOBJS="\$(CATOBJS)"
7780 # Extract the first word of "gencat", so it can be a program name with args.
7781 set dummy gencat; ac_word=$2
7782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7783 echo "configure:7784: checking for $ac_word" >&5
7784 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7789 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
7792 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
7795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7797 for ac_dir in $ac_dummy; do
7798 test -z "$ac_dir" && ac_dir=.
7799 if test -f $ac_dir/$ac_word; then
7800 ac_cv_path_GENCAT="$ac_dir/$ac_word"
7805 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
7809 GENCAT="$ac_cv_path_GENCAT"
7810 if test -n "$GENCAT"; then
7811 echo "$ac_t""$GENCAT" 1>&6
7813 echo "$ac_t""no" 1>&6
7815 if test "$GENCAT" != "no"; then
7816 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7817 set dummy gmsgfmt; ac_word=$2
7818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7819 echo "configure:7820: checking for $ac_word" >&5
7820 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7825 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7828 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7833 for ac_dir in $ac_dummy; do
7834 test -z "$ac_dir" && ac_dir=.
7835 if test -f $ac_dir/$ac_word; then
7836 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7841 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7845 GMSGFMT="$ac_cv_path_GMSGFMT"
7846 if test -n "$GMSGFMT"; then
7847 echo "$ac_t""$GMSGFMT" 1>&6
7849 echo "$ac_t""no" 1>&6
7852 if test "$GMSGFMT" = "no"; then
7853 # Extract the first word of "msgfmt", so it can be a program name with args.
7854 set dummy msgfmt; ac_word=$2
7855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7856 echo "configure:7857: checking for $ac_word" >&5
7857 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7862 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7866 for ac_dir in $PATH; do
7867 test -z "$ac_dir" && ac_dir=.
7868 if test -f $ac_dir/$ac_word; then
7869 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7870 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7876 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
7880 GMSGFMT="$ac_cv_path_GMSGFMT"
7881 if test -n "$GMSGFMT"; then
7882 echo "$ac_t""$GMSGFMT" 1>&6
7884 echo "$ac_t""no" 1>&6
7888 # Extract the first word of "xgettext", so it can be a program name with args.
7889 set dummy xgettext; ac_word=$2
7890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7891 echo "configure:7892: checking for $ac_word" >&5
7892 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7897 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7901 for ac_dir in $PATH; do
7902 test -z "$ac_dir" && ac_dir=.
7903 if test -f $ac_dir/$ac_word; then
7904 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7905 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7911 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7915 XGETTEXT="$ac_cv_path_XGETTEXT"
7916 if test -n "$XGETTEXT"; then
7917 echo "$ac_t""$XGETTEXT" 1>&6
7919 echo "$ac_t""no" 1>&6
7922 USE_INCLUDED_LIBINTL=yes
7926 INTLDEPS='$(top_builddir)/intl/libintl.a'
7928 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7929 nls_cv_header_intl=intl/libintl.h
7930 nls_cv_header_libgt=intl/libgettext.h
7933 echo "$ac_t""no" 1>&6
7939 if test "$CATOBJEXT" = "NONE"; then
7940 nls_cv_use_gnu_gettext=yes
7944 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7945 INTLOBJS="\$(GETTOBJS)"
7946 # Extract the first word of "msgfmt", so it can be a program name with args.
7947 set dummy msgfmt; ac_word=$2
7948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7949 echo "configure:7950: checking for $ac_word" >&5
7950 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7951 echo $ac_n "(cached) $ac_c" 1>&6
7955 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7959 for ac_dir in $PATH; do
7960 test -z "$ac_dir" && ac_dir=.
7961 if test -f $ac_dir/$ac_word; then
7962 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7963 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7969 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7973 MSGFMT="$ac_cv_path_MSGFMT"
7974 if test -n "$MSGFMT"; then
7975 echo "$ac_t""$MSGFMT" 1>&6
7977 echo "$ac_t""no" 1>&6
7980 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7981 set dummy gmsgfmt; ac_word=$2
7982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7983 echo "configure:7984: checking for $ac_word" >&5
7984 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7985 echo $ac_n "(cached) $ac_c" 1>&6
7989 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7992 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7997 for ac_dir in $ac_dummy; do
7998 test -z "$ac_dir" && ac_dir=.
7999 if test -f $ac_dir/$ac_word; then
8000 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8005 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8009 GMSGFMT="$ac_cv_path_GMSGFMT"
8010 if test -n "$GMSGFMT"; then
8011 echo "$ac_t""$GMSGFMT" 1>&6
8013 echo "$ac_t""no" 1>&6
8016 # Extract the first word of "xgettext", so it can be a program name with args.
8017 set dummy xgettext; ac_word=$2
8018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8019 echo "configure:8020: checking for $ac_word" >&5
8020 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8025 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8029 for ac_dir in $PATH; do
8030 test -z "$ac_dir" && ac_dir=.
8031 if test -f $ac_dir/$ac_word; then
8032 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8033 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8039 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8043 XGETTEXT="$ac_cv_path_XGETTEXT"
8044 if test -n "$XGETTEXT"; then
8045 echo "$ac_t""$XGETTEXT" 1>&6
8047 echo "$ac_t""no" 1>&6
8051 USE_INCLUDED_LIBINTL=yes
8055 INTLDEPS='$(top_builddir)/intl/libintl.a'
8057 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8058 nls_cv_header_intl=intl/libintl.h
8059 nls_cv_header_libgt=intl/libgettext.h
8062 if test "$XGETTEXT" != ":"; then
8063 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8066 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8071 # We need to process the po/ directory.
8075 nls_cv_header_intl=intl/libintl.h
8076 nls_cv_header_libgt=intl/libgettext.h
8082 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8083 # because some of the sources are only built for this goal.
8084 if test "$PACKAGE" = gettext; then
8086 USE_INCLUDED_LIBINTL=yes
8089 for lang in $ALL_LINGUAS; do
8090 GMOFILES="$GMOFILES $lang.gmo"
8091 POFILES="$POFILES $lang.po"
8107 if test "x$CATOBJEXT" != "x"; then
8108 if test "x$ALL_LINGUAS" = "x"; then
8111 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8112 echo "configure:8113: checking for catalogs to be installed" >&5
8114 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8115 case "$ALL_LINGUAS" in
8116 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8119 LINGUAS=$NEW_LINGUAS
8120 echo "$ac_t""$LINGUAS" 1>&6
8123 if test -n "$LINGUAS"; then
8124 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8128 if test $ac_cv_header_locale_h = yes; then
8129 INCLUDE_LOCALE_H="#include <locale.h>"
8132 /* The system does not provide the header <locale.h>. Take care yourself. */"
8136 test -d intl || mkdir intl
8137 if test "$CATOBJEXT" = ".cat"; then
8138 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8139 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8140 echo "configure:8141: checking for linux/version.h" >&5
8141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8144 cat > conftest.$ac_ext <<EOF
8145 #line 8146 "configure"
8146 #include "confdefs.h"
8147 #include <linux/version.h>
8149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8150 { (eval echo configure:8151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8152 if test -z "$ac_err"; then
8154 eval "ac_cv_header_$ac_safe=yes"
8157 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8160 eval "ac_cv_header_$ac_safe=no"
8164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8165 echo "$ac_t""yes" 1>&6
8168 echo "$ac_t""no" 1>&6
8173 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
8175 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8176 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
8178 if test "$PACKAGE" = "gettext"; then
8189 if test -n "$ac_aux_dir"; then
8190 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8192 if test -z "$MKINSTALLDIRS"; then
8193 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8200 test -d po || mkdir po
8201 if test "x$srcdir" != "x."; then
8202 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8203 posrcprefix="$srcdir/"
8205 posrcprefix="../$srcdir/"
8211 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8212 < $srcdir/po/POTFILES.in > po/POTFILES
8214 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8216 # Windows32 Registry support for specifying GCC installation paths.
8217 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8218 if test "${enable_win32_registry+set}" = set; then
8219 enableval="$enable_win32_registry"
8224 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8225 echo "configure:8226: checking whether windows registry support is requested" >&5
8226 if test x$enable_win32_registry != xno; then
8227 cat >> confdefs.h <<\EOF
8228 #define ENABLE_WIN32_REGISTRY 1
8231 echo "$ac_t""yes" 1>&6
8233 echo "$ac_t""no" 1>&6
8236 # Check if user specified a different registry key.
8237 case x${enable_win32_registry} in
8240 gcc_cv_win32_registry_key="$VERSION"
8243 # no registry lookup.
8244 gcc_cv_win32_registry_key=''
8247 # user-specified key.
8248 gcc_cv_win32_registry_key="$enable_win32_registry"
8252 if test x$enable_win32_registry != xno; then
8253 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8254 echo "configure:8255: checking registry key on windows hosts" >&5
8255 cat >> confdefs.h <<EOF
8256 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8259 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8262 # Get an absolute path to the GCC top-level source directory
8268 # Conditionalize the makefile for this host machine.
8269 # Make-host contains the concatenation of all host makefile fragments
8270 # [there can be more than one]. This file is built by configure.frag.
8271 host_overrides=Make-host
8272 dep_host_xmake_file=
8273 for f in .. ${host_xmake_file}
8275 if test -f ${srcdir}/config/$f
8277 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
8281 # Conditionalize the makefile for this target machine.
8282 # Make-target contains the concatenation of all host makefile fragments
8283 # [there can be more than one]. This file is built by configure.frag.
8284 target_overrides=Make-target
8286 for f in .. ${tmake_file}
8288 if test -f ${srcdir}/config/$f
8290 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
8294 # If the host doesn't support symlinks, modify CC in
8295 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8296 # Otherwise, we can use "CC=$(CC)".
8298 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
8300 cc_set_by_configure="\$(CC)"
8301 quoted_cc_set_by_configure="\$(CC)"
8302 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
8305 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
8307 symbolic_link="cp -p"
8311 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8312 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8313 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8317 out_object_file=`basename $out_file .c`.o
8320 for f in $tm_file; do
8323 tm_file_list="${tm_file_list} $f" ;;
8324 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
8329 for f in $host_xm_file; do
8331 auto-host.h | gansidecl.h | hwint.h )
8332 host_xm_file_list="${host_xm_file_list} $f" ;;
8333 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8338 for f in $build_xm_file; do
8340 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
8341 build_xm_file_list="${build_xm_file_list} $f" ;;
8342 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8346 # Define macro CROSS_COMPILE in compilation
8347 # if this is a cross-compiler.
8348 # Also use all.cross instead of all.internal
8349 # and add cross-make to Makefile.
8350 cross_overrides="/dev/null"
8351 if test x$host != x$target
8353 cross_defines="CROSS=-DCROSS_COMPILE"
8354 cross_overrides="${topdir}/cross-make"
8357 # When building gcc with a cross-compiler, we need to fix a few things.
8358 # This must come after cross-make as we want all.build to override
8360 build_overrides="/dev/null"
8361 if test x$build != x$host
8363 build_overrides="${topdir}/build-make"
8366 # Expand extra_headers to include complete path.
8367 # This substitutes for lots of t-* files.
8369 if test "x$extra_headers" = x
8372 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8373 for file in $extra_headers;
8375 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8379 if test x$use_collect2 = xno; then
8383 # Add a definition of USE_COLLECT2 if system wants one.
8384 # Also tell toplev.c what to do.
8385 # This substitutes for lots of t-* files.
8386 if test x$use_collect2 = x
8391 will_use_collect2="collect2"
8392 maybe_use_collect2="-DUSE_COLLECT2"
8396 # Set MD_DEPS if the real md file is in md.pre-cpp.
8397 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8398 # for line oriented comments, so we must always use a GNU cpp. If
8399 # building gcc with a cross compiler, use the cross compiler just
8400 # built. Otherwise, we can use the cpp just built.
8402 if test "x$md_cppflags" = x
8404 md_file_sub=$srcdir/config/$md_file
8409 # If we have gas in the build tree, make a link to it.
8410 if test -f ../gas/Makefile; then
8411 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
8414 # If we have nm in the build tree, make a link to it.
8415 if test -f ../binutils/Makefile; then
8416 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
8419 # If we have ld in the build tree, make a link to it.
8420 if test -f ../ld/Makefile; then
8421 # if test x$use_collect2 = x; then
8422 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8424 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
8428 # Figure out what assembler alignment features are present.
8429 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8430 echo "configure:8431: checking assembler alignment features" >&5
8432 gcc_cv_as_alignment_features=
8433 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8434 if test -x "$DEFAULT_ASSEMBLER"; then
8435 gcc_cv_as="$DEFAULT_ASSEMBLER"
8436 elif test -x "$AS"; then
8438 elif test -x as$host_exeext; then
8439 # Build using assembler in the current directory.
8440 gcc_cv_as=./as$host_exeext
8441 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
8442 # Single tree build which includes gas.
8443 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
8445 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8446 if test x$gcc_cv_gas_version != x; then
8450 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8451 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8452 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
8453 # Gas version 2.6 and later support for .balign and .p2align.
8454 # bytes to skip when using .p2align.
8455 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
8456 gcc_cv_as_alignment_features=".balign and .p2align"
8457 cat >> confdefs.h <<\EOF
8458 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8462 # Gas version 2.8 and later support specifying the maximum
8463 # bytes to skip when using .p2align.
8464 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
8465 gcc_cv_as_alignment_features=".p2align including maximum skip"
8466 cat >> confdefs.h <<\EOF
8467 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8472 elif test x$host = x$target; then
8474 # Search the same directories that the installed compiler will
8475 # search. Else we may find the wrong assembler and lose. If we
8476 # do not find a suitable assembler binary, then try the user's
8479 # Also note we have to check MD_EXEC_PREFIX before checking the
8480 # user's path. Unfortunately, there is no good way to get at the
8481 # value of MD_EXEC_PREFIX here. So we do a brute force search
8482 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8483 # to be fixed as part of the make/configure rewrite too.
8485 if test "x$exec_prefix" = xNONE; then
8486 if test "x$prefix" = xNONE; then
8487 test_prefix=/usr/local
8492 test_prefix=$exec_prefix
8495 # If the loop below does not find an assembler, then use whatever
8496 # one we can find in the users's path.
8500 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8501 $test_prefix/lib/gcc-lib/$target \
8502 /usr/lib/gcc/$target/$gcc_version \
8503 /usr/lib/gcc/$target \
8504 $test_prefix/$target/bin/$target/$gcc_version \
8505 $test_prefix/$target/bin \
8510 /bsd43/usr/lib/cmplrs/cc \
8511 /usr/cross64/usr/bin \
8512 /usr/lib/cmplrs/cc \
8513 /sysv/usr/lib/cmplrs/cc \
8514 /svr4/usr/lib/cmplrs/cc \
8517 for dir in $test_dirs; do
8518 if test -f $dir/as$host_exeext; then
8519 gcc_cv_as=$dir/as$host_exeext
8524 if test x$gcc_cv_as != x; then
8525 # Check if we have .balign and .p2align
8526 echo ".balign 4" > conftest.s
8527 echo ".p2align 2" >> conftest.s
8528 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8529 gcc_cv_as_alignment_features=".balign and .p2align"
8530 cat >> confdefs.h <<\EOF
8531 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8535 rm -f conftest.s conftest.o
8536 # Check if specifying the maximum bytes to skip when
8537 # using .p2align is supported.
8538 echo ".p2align 4,,7" > conftest.s
8539 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8540 gcc_cv_as_alignment_features=".p2align including maximum skip"
8541 cat >> confdefs.h <<\EOF
8542 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8546 rm -f conftest.s conftest.o
8548 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8550 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8551 echo "configure:8552: checking assembler subsection support" >&5
8552 gcc_cv_as_subsections=
8553 if test x$gcc_cv_as != x; then
8554 # Check if we have .subsection
8555 echo ".subsection 1" > conftest.s
8556 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8557 gcc_cv_as_subsections=".subsection"
8558 if test -x nm$host_exeext; then
8559 gcc_cv_nm=./nm$host_exeext
8560 elif test x$host = x$target; then
8562 gcc_cv_nm=nm$host_exeext
8564 if test x$gcc_cv_nm != x; then
8565 cat > conftest.s <<EOF
8566 conftest_label1: .word 0
8568 conftest_label2: .word 0
8571 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8572 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
8573 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
8574 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
8577 gcc_cv_as_subsections="working .subsection -1"
8578 cat >> confdefs.h <<\EOF
8579 #define HAVE_GAS_SUBSECTION_ORDERING 1
8586 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8588 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8592 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8593 echo "configure:8594: checking assembler .register pseudo-op support" >&5
8594 gcc_cv_as_register_pseudo_op=
8595 if test x$gcc_cv_as != x; then
8596 # Check if we have .register
8597 echo ".register %g2, #scratch" > conftest.s
8598 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8599 gcc_cv_as_register_pseudo_op=yes
8600 cat >> confdefs.h <<\EOF
8601 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8605 rm -f conftest.s conftest.o
8607 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8609 echo $ac_n "checking assembler offsetable %lo() support""... $ac_c" 1>&6
8610 echo "configure:8611: checking assembler offsetable %lo() support" >&5
8611 gcc_cv_as_offsetable_lo10=
8612 if test x$gcc_cv_as != x; then
8613 # Check if assembler has offsetable %lo()
8614 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8615 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8616 gcc_cv_as_flags64="-xarch=v9"
8617 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
8620 gcc_cv_as_flags64="-64"
8621 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
8624 gcc_cv_as_flags64=""
8627 if test -n "$gcc_cv_as_flags64" ; then
8628 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s > /dev/null 2>&1; then
8629 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
8632 gcc_cv_as_offsetable_lo10=yes
8633 cat >> confdefs.h <<\EOF
8634 #define HAVE_AS_OFFSETABLE_LO10 1
8640 rm -f conftest.s conftest.o conftest1.s conftest1.o
8642 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8646 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8647 echo "configure:8648: checking assembler instructions" >&5
8648 gcc_cv_as_instructions=
8649 if test x$gcc_cv_as != x; then
8650 set "filds fists" "filds mem; fists mem"
8653 echo "$2" > conftest.s
8654 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
8655 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
8656 cat >> confdefs.h <<EOF
8657 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8663 rm -f conftest.s conftest.o
8665 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8669 # Figure out what language subdirectories are present.
8670 # Look if the user specified --enable-languages="..."; if not, use
8671 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8673 if test x"${enable_languages+set}" != xset; then
8674 if test x"${LANGUAGES+set}" = xset; then
8675 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
8677 enable_languages=all
8681 for lang in ${srcdir}/*/config-lang.in ..
8685 # The odd quoting in the next line works around
8686 # an apparent bug in bash 1.12 on linux.
8687 ${srcdir}/[*]/config-lang.in) ;;
8689 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8690 if test "x$lang_alias" = x
8692 echo "$lang doesn't set \$language." 1>&2
8695 if test x"${enable_languages}" = xall; then
8698 case "${enable_languages}" in
8699 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8707 if test x"${add_this_lang}" = xyes; then
8709 ${srcdir}/ada/config-lang.in)
8710 if test x$gnat = xyes ; then
8711 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8715 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8723 # Make gthr-default.h if we have a thread file.
8725 if test $thread_file != single; then
8726 rm -f gthr-default.h
8727 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8728 gthread_flags=-DHAVE_GTHR_DEFAULT
8732 # Make empty files to contain the specs and options for each language.
8733 # Then add #include lines to for a compiler that has specs and/or options.
8738 rm -f specs.h options.h gencheck.h
8739 touch specs.h options.h gencheck.h
8740 for subdir in . $subdirs
8742 if test -f $srcdir/$subdir/lang-specs.h; then
8743 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8744 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8746 if test -f $srcdir/$subdir/lang-options.h; then
8747 echo "#include \"$subdir/lang-options.h\"" >>options.h
8748 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
8750 if test -f $srcdir/$subdir/$subdir-tree.def; then
8751 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8752 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8756 # These (without "all_") are set in each config-lang.in.
8757 # `language' must be a single word so is spelled singularly.
8763 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8764 # List of language makefile fragments.
8769 # Add the language fragments.
8770 # Languages are added via two mechanisms. Some information must be
8771 # recorded in makefile variables, these are defined in config-lang.in.
8772 # We accumulate them and plug them into the main Makefile.
8773 # The other mechanism is a set of hooks for each of the main targets
8774 # like `clean', `install', etc.
8776 language_fragments="Make-lang"
8777 language_hooks="Make-hooks"
8780 for s in .. $subdirs
8792 . ${srcdir}/$s/config-lang.in
8793 if test "x$language" = x
8795 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8798 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8799 all_languages="$all_languages $language"
8800 if test "x$boot_language" = xyes
8802 all_boot_languages="$all_boot_languages $language"
8804 all_compilers="$all_compilers $compilers"
8805 all_stagestuff="$all_stagestuff $stagestuff"
8806 all_diff_excludes="$all_diff_excludes $diff_excludes"
8807 all_headers="$all_headers $headers"
8808 all_outputs="$all_outputs $outputs"
8809 if test x$outputs = x
8811 oldstyle_subdirs="$oldstyle_subdirs $s"
8813 all_lib2funcs="$all_lib2funcs $lib2funcs"
8817 # Since we can't use `::' targets, we link each language in
8818 # with a set of hooks, reached indirectly via lang.${target}.
8822 target_list="all.build all.cross start.encap rest.encap \
8824 install-normal install-common install-info install-man \
8826 mostlyclean clean distclean extraclean maintainer-clean \
8827 stage1 stage2 stage3 stage4"
8828 for t in $target_list
8831 for lang in .. $all_languages
8833 if test $lang != ".."; then
8837 echo "lang.$t: $x" >> Make-hooks
8840 # If we're not building in srcdir, create .gdbinit.
8842 if test ! -f Makefile.in; then
8843 echo "dir ." > .gdbinit
8844 echo "dir ${srcdir}" >> .gdbinit
8845 if test x$gdb_needs_out_file_path = xyes
8847 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8849 if test "x$subdirs" != x; then
8852 echo "dir ${srcdir}/$s" >> .gdbinit
8855 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8858 # Define variables host_canonical and build_canonical
8859 # because some Cygnus local changes in the Makefile depend on them.
8860 build_canonical=${build}
8861 host_canonical=${host}
8863 if test "${host}" != "${target}" ; then
8864 target_subdir=${target}/
8870 # If this is using newlib, then define inhibit_libc in
8871 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8872 # libgcc.a, but that's OK because newib should have its own version of
8875 if test x$with_newlib = xyes; then
8876 inhibit_libc=-Dinhibit_libc
8880 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8881 # absolute path for gcc_tooldir based on inserting the number of up-directory
8882 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8883 # $(libsubdir)/@(unlibsubdir) based path.
8884 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8885 # make and thus we'd get different behavior depending on where we built the
8887 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
8888 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8890 # An explanation of the sed strings:
8891 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8892 # -e 's|/$||' match a trailing forward slash and eliminates it
8893 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8894 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8896 # (*) Note this pattern overwrites the first character of the string
8897 # with a forward slash if one is not already present. This is not a
8898 # problem because the exact names of the sub-directories concerned is
8899 # unimportant, just the number of them matters.
8901 # The practical upshot of these patterns is like this:
8903 # prefix exec_prefix result
8904 # ------ ----------- ------
8906 # /foo/ /foo/bar ../
8907 # /foo /foo/bar/ ../
8908 # /foo/ /foo/bar/ ../
8909 # /foo /foo/bar/ugg ../../
8912 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8917 # Nothing to do for FLOAT_H, float_format already handled.
8921 # Process the language and host/target makefile fragments.
8922 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8924 # Substitute configuration variables
8985 # Echo that links are built
8986 if test x$host = x$target
8994 if test x$host != x$build
8996 str3=" on a $build system"
8999 if test "x$str2" != x || test "x$str3" != x
9004 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9006 if test "x$str2" != x || test "x$str3" != x
9008 echo " ${str2}${str3}." 1>&2
9011 # Truncate the target if necessary
9012 if test x$host_truncate_target != x; then
9013 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9016 # Configure the subdirectories
9017 # AC_CONFIG_SUBDIRS($subdirs)
9019 # Create the Makefile
9020 # and configure language subdirectories
9022 cat > confcache <<\EOF
9023 # This file is a shell script that caches the results of configure
9024 # tests run on this system so they can be shared between configure
9025 # scripts and configure runs. It is not useful on other systems.
9026 # If it contains results you don't want to keep, you may remove or edit it.
9028 # By default, configure uses ./config.cache as the cache file,
9029 # creating it if it does not exist already. You can give configure
9030 # the --cache-file=FILE option to use a different cache file; that is
9031 # what configure does when it calls configure scripts in
9032 # subdirectories, so they share the cache.
9033 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9034 # config.status only pays attention to the cache file if you give it the
9035 # --recheck option to rerun configure.
9038 # The following way of writing the cache mishandles newlines in values,
9039 # but we know of no workaround that is simple, portable, and efficient.
9040 # So, don't put newlines in cache variables' values.
9041 # Ultrix sh set writes to stderr and can't be redirected directly,
9042 # and sets the high bit in the cache file unless we assign to the vars.
9044 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9046 # `set' does not quote correctly, so add quotes (double-quote substitution
9047 # turns \\\\ into \\, and sed turns \\ into \).
9049 -e "s/'/'\\\\''/g" \
9050 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9053 # `set' quotes correctly as required by POSIX, so do not add quotes.
9054 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9057 if cmp -s $cache_file confcache; then
9060 if test -w $cache_file; then
9061 echo "updating cache $cache_file"
9062 cat confcache > $cache_file
9064 echo "not updating unwritable cache $cache_file"
9069 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9072 # Let make expand exec_prefix.
9073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9075 # Any assignment to VPATH causes Sun make to only execute
9076 # the first set of double-colon rules, so remove it if not needed.
9077 # If there is a colon in the path, we need to keep it.
9078 if test "x$srcdir" = x.; then
9079 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9082 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9084 DEFS=-DHAVE_CONFIG_H
9086 # Without the "./", some shells look in PATH for config.status.
9087 : ${CONFIG_STATUS=./config.status}
9089 echo creating $CONFIG_STATUS
9090 rm -f $CONFIG_STATUS
9091 cat > $CONFIG_STATUS <<EOF
9093 # Generated automatically by configure.
9094 # Run this file to recreate the current configuration.
9095 # This directory was configured as follows,
9096 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9098 # $0 $ac_configure_args
9100 # Compiler output produced by configure, useful for debugging
9101 # configure, is in ./config.log if it exists.
9103 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9106 case "\$ac_option" in
9107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9108 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9109 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9110 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9111 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9113 -help | --help | --hel | --he | --h)
9114 echo "\$ac_cs_usage"; exit 0 ;;
9115 *) echo "\$ac_cs_usage"; exit 1 ;;
9119 ac_given_srcdir=$srcdir
9121 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9123 cat >> $CONFIG_STATUS <<EOF
9125 # Protect against being on the right side of a sed subst in config.status.
9126 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9127 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9131 s%@CFLAGS@%$CFLAGS%g
9132 s%@CPPFLAGS@%$CPPFLAGS%g
9133 s%@CXXFLAGS@%$CXXFLAGS%g
9134 s%@FFLAGS@%$FFLAGS%g
9136 s%@LDFLAGS@%$LDFLAGS%g
9138 s%@exec_prefix@%$exec_prefix%g
9139 s%@prefix@%$prefix%g
9140 s%@program_transform_name@%$program_transform_name%g
9141 s%@bindir@%$bindir%g
9142 s%@sbindir@%$sbindir%g
9143 s%@libexecdir@%$libexecdir%g
9144 s%@datadir@%$datadir%g
9145 s%@sysconfdir@%$sysconfdir%g
9146 s%@sharedstatedir@%$sharedstatedir%g
9147 s%@localstatedir@%$localstatedir%g
9148 s%@libdir@%$libdir%g
9149 s%@includedir@%$includedir%g
9150 s%@oldincludedir@%$oldincludedir%g
9151 s%@infodir@%$infodir%g
9152 s%@mandir@%$mandir%g
9154 s%@host_alias@%$host_alias%g
9155 s%@host_cpu@%$host_cpu%g
9156 s%@host_vendor@%$host_vendor%g
9157 s%@host_os@%$host_os%g
9158 s%@target@%$target%g
9159 s%@target_alias@%$target_alias%g
9160 s%@target_cpu@%$target_cpu%g
9161 s%@target_vendor@%$target_vendor%g
9162 s%@target_os@%$target_os%g
9164 s%@build_alias@%$build_alias%g
9165 s%@build_cpu@%$build_cpu%g
9166 s%@build_vendor@%$build_vendor%g
9167 s%@build_os@%$build_os%g
9169 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9170 s%@SET_MAKE@%$SET_MAKE%g
9173 s%@LEXLIB@%$LEXLIB%g
9176 s%@RANLIB@%$RANLIB%g
9178 s%@INSTALL@%$INSTALL%g
9179 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9180 s%@INSTALL_DATA@%$INSTALL_DATA%g
9183 s%@vfprintf@%$vfprintf%g
9184 s%@doprint@%$doprint%g
9185 s%@manext@%$manext%g
9186 s%@objext@%$objext%g
9187 s%@PACKAGE@%$PACKAGE%g
9188 s%@VERSION@%$VERSION%g
9189 s%@ALLOCA@%$ALLOCA%g
9190 s%@USE_NLS@%$USE_NLS%g
9191 s%@MSGFMT@%$MSGFMT%g
9192 s%@GMSGFMT@%$GMSGFMT%g
9193 s%@XGETTEXT@%$XGETTEXT%g
9194 s%@GENCAT@%$GENCAT%g
9195 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9196 s%@CATALOGS@%$CATALOGS%g
9197 s%@CATOBJEXT@%$CATOBJEXT%g
9198 s%@DATADIRNAME@%$DATADIRNAME%g
9199 s%@GMOFILES@%$GMOFILES%g
9200 s%@INSTOBJEXT@%$INSTOBJEXT%g
9201 s%@INTLDEPS@%$INTLDEPS%g
9202 s%@INTLLIBS@%$INTLLIBS%g
9203 s%@INTLOBJS@%$INTLOBJS%g
9204 s%@POFILES@%$POFILES%g
9206 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9208 s%@GT_YES@%$GT_YES%g
9209 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9211 s%@gthread_flags@%$gthread_flags%g
9212 s%@build_canonical@%$build_canonical%g
9213 s%@host_canonical@%$host_canonical%g
9214 s%@target_subdir@%$target_subdir%g
9215 s%@inhibit_libc@%$inhibit_libc%g
9216 s%@gcc_tooldir@%$gcc_tooldir%g
9217 s%@dollar@%$dollar%g
9218 s%@objdir@%$objdir%g
9219 s%@subdirs@%$subdirs%g
9220 s%@all_boot_languages@%$all_boot_languages%g
9221 s%@all_compilers@%$all_compilers%g
9222 s%@all_diff_excludes@%$all_diff_excludes%g
9223 s%@all_headers@%$all_headers%g
9224 s%@all_lang_makefiles@%$all_lang_makefiles%g
9225 s%@all_languages@%$all_languages%g
9226 s%@all_lib2funcs@%$all_lib2funcs%g
9227 s%@all_stagestuff@%$all_stagestuff%g
9228 s%@build_exeext@%$build_exeext%g
9229 s%@build_install_headers_dir@%$build_install_headers_dir%g
9230 s%@build_xm_file_list@%$build_xm_file_list%g
9231 s%@cc_set_by_configure@%$cc_set_by_configure%g
9232 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9233 s%@cpp_install_dir@%$cpp_install_dir%g
9234 s%@cpp_main@%$cpp_main%g
9235 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9236 s%@dep_tmake_file@%$dep_tmake_file%g
9237 s%@extra_c_flags@%$extra_c_flags%g
9238 s%@extra_c_objs@%$extra_c_objs%g
9239 s%@extra_cpp_objs@%$extra_cpp_objs%g
9240 s%@extra_cxx_objs@%$extra_cxx_objs%g
9241 s%@extra_headers_list@%$extra_headers_list%g
9242 s%@extra_objs@%$extra_objs%g
9243 s%@extra_parts@%$extra_parts%g
9244 s%@extra_passes@%$extra_passes%g
9245 s%@extra_programs@%$extra_programs%g
9246 s%@fixinc_defs@%$fixinc_defs%g
9247 s%@float_h_file@%$float_h_file%g
9248 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9249 s%@gcc_version@%$gcc_version%g
9250 s%@gcc_version_trigger@%$gcc_version_trigger%g
9251 s%@host_exeext@%$host_exeext%g
9252 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9253 s%@host_xm_file_list@%$host_xm_file_list%g
9254 s%@install@%$install%g
9255 s%@lang_options_files@%$lang_options_files%g
9256 s%@lang_specs_files@%$lang_specs_files%g
9257 s%@lang_tree_files@%$lang_tree_files%g
9258 s%@local_prefix@%$local_prefix%g
9259 s%@maybe_use_collect2@%$maybe_use_collect2%g
9260 s%@md_file@%$md_file%g
9261 s%@objc_boehm_gc@%$objc_boehm_gc%g
9262 s%@out_file@%$out_file%g
9263 s%@out_object_file@%$out_object_file%g
9264 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9265 s%@symbolic_link@%$symbolic_link%g
9266 s%@thread_file@%$thread_file%g
9267 s%@tm_file_list@%$tm_file_list%g
9268 s%@will_use_collect2@%$will_use_collect2%g
9269 /@target_overrides@/r $target_overrides
9270 s%@target_overrides@%%g
9271 /@host_overrides@/r $host_overrides
9272 s%@host_overrides@%%g
9273 s%@cross_defines@%$cross_defines%g
9274 /@cross_overrides@/r $cross_overrides
9275 s%@cross_overrides@%%g
9276 /@build_overrides@/r $build_overrides
9277 s%@build_overrides@%%g
9278 /@language_fragments@/r $language_fragments
9279 s%@language_fragments@%%g
9280 /@language_hooks@/r $language_hooks
9281 s%@language_hooks@%%g
9286 cat >> $CONFIG_STATUS <<\EOF
9288 # Split the substitutions into bite-sized pieces for seds with
9289 # small command number limits, like on Digital OSF/1 and HP-UX.
9290 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9291 ac_file=1 # Number of current file.
9292 ac_beg=1 # First line for current file.
9293 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9296 while $ac_more_lines; do
9297 if test $ac_beg -gt 1; then
9298 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9300 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9302 if test ! -s conftest.s$ac_file; then
9304 rm -f conftest.s$ac_file
9306 if test -z "$ac_sed_cmds"; then
9307 ac_sed_cmds="sed -f conftest.s$ac_file"
9309 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9311 ac_file=`expr $ac_file + 1`
9313 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9316 if test -z "$ac_sed_cmds"; then
9321 cat >> $CONFIG_STATUS <<EOF
9323 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9325 cat >> $CONFIG_STATUS <<\EOF
9326 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9329 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9330 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9331 *) ac_file_in="${ac_file}.in" ;;
9334 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9336 # Remove last slash and all that follows it. Not all systems have dirname.
9337 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9338 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9339 # The file is in a subdirectory.
9340 test ! -d "$ac_dir" && mkdir "$ac_dir"
9341 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9342 # A "../" for each directory in $ac_dir_suffix.
9343 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9345 ac_dir_suffix= ac_dots=
9348 case "$ac_given_srcdir" in
9350 if test -z "$ac_dots"; then top_srcdir=.
9351 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9352 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9354 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9355 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9359 echo creating "$ac_file"
9361 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9363 *Makefile*) ac_comsub="1i\\
9364 # $configure_input" ;;
9368 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9370 s%@configure_input@%$configure_input%g
9371 s%@srcdir@%$srcdir%g
9372 s%@top_srcdir@%$top_srcdir%g
9373 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9377 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9378 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9380 # ac_d sets the value in "#define NAME VALUE" lines.
9381 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9382 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9385 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9386 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9387 ac_uB='\([ ]\)%\1#\2define\3'
9390 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9391 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9392 ac_eB='$%\1#\2define\3'
9396 if test "${CONFIG_HEADERS+set}" != set; then
9398 cat >> $CONFIG_STATUS <<EOF
9399 CONFIG_HEADERS="auto-host.h:config.in"
9401 cat >> $CONFIG_STATUS <<\EOF
9403 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9404 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9406 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9407 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9408 *) ac_file_in="${ac_file}.in" ;;
9411 echo creating $ac_file
9413 rm -f conftest.frag conftest.in conftest.out
9414 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9415 cat $ac_file_inputs > conftest.in
9419 # Transform confdefs.h into a sed script conftest.vals that substitutes
9420 # the proper values into config.h.in to produce config.h. And first:
9421 # Protect against being on the right side of a sed subst in config.status.
9422 # Protect against being in an unquoted here document in config.status.
9424 cat > conftest.hdr <<\EOF
9427 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9431 sed -n -f conftest.hdr confdefs.h > conftest.vals
9434 # This sed command replaces #undef with comments. This is necessary, for
9435 # example, in the case of _POSIX_SOURCE, which is predefined and required
9436 # on some systems where configure will not decide to define it.
9437 cat >> conftest.vals <<\EOF
9438 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9441 # Break up conftest.vals because some shells have a limit on
9442 # the size of here documents, and old seds have small limits too.
9447 ac_lines=`grep -c . conftest.vals`
9448 # grep -c gives empty output for an empty file on some AIX systems.
9449 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9450 # Write a limited-size here document to conftest.frag.
9451 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9452 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9454 sed -f conftest.frag conftest.in > conftest.out
9456 mv conftest.out conftest.in
9458 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9460 mv conftest.tail conftest.vals
9464 cat >> $CONFIG_STATUS <<\EOF
9465 rm -f conftest.frag conftest.h
9466 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9467 cat conftest.in >> conftest.h
9469 if cmp -s $ac_file conftest.h 2>/dev/null; then
9470 echo "$ac_file is unchanged"
9473 # Remove last slash and all that follows it. Not all systems have dirname.
9474 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9475 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9476 # The file is in a subdirectory.
9477 test ! -d "$ac_dir" && mkdir "$ac_dir"
9480 mv conftest.h $ac_file
9486 cat >> $CONFIG_STATUS <<EOF
9487 ac_sources="$nls_cv_header_libgt"
9488 ac_dests="$nls_cv_header_intl"
9491 cat >> $CONFIG_STATUS <<\EOF
9492 srcdir=$ac_given_srcdir
9493 while test -n "$ac_sources"; do
9494 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9495 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9497 echo "linking $srcdir/$ac_source to $ac_dest"
9499 if test ! -r $srcdir/$ac_source; then
9500 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9504 # Make relative symlinks.
9505 # Remove last slash and all that follows it. Not all systems have dirname.
9506 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9507 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9508 # The dest file is in a subdirectory.
9509 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9510 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9511 # A "../" for each directory in $ac_dest_dir_suffix.
9512 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9514 ac_dest_dir_suffix= ac_dots=
9518 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9519 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9522 # Make a symlink if possible; otherwise try a hard link.
9523 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9524 ln $srcdir/$ac_source $ac_dest; then :
9526 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9530 cat >> $CONFIG_STATUS <<EOF
9536 target_alias='${target_alias}'
9538 subdirs='${subdirs}'
9539 oldstyle_subdirs='${oldstyle_subdirs}'
9540 symbolic_link='${symbolic_link}'
9541 program_transform_set='${program_transform_set}'
9542 program_transform_name='${program_transform_name}'
9543 dep_host_xmake_file='${dep_host_xmake_file}'
9544 host_xmake_file='${host_xmake_file}'
9545 dep_tmake_file='${dep_tmake_file}'
9546 tmake_file='${tmake_file}'
9547 thread_file='${thread_file}'
9548 gcc_version='${gcc_version}'
9549 gcc_version_trigger='${gcc_version_trigger}'
9550 local_prefix='${local_prefix}'
9551 build_install_headers_dir='${build_install_headers_dir}'
9552 build_exeext='${build_exeext}'
9553 host_exeext='${host_exeext}'
9554 out_file='${out_file}'
9555 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9556 SET_MAKE='${SET_MAKE}'
9557 target_list='${target_list}'
9558 target_overrides='${target_overrides}'
9559 host_overrides='${host_overrides}'
9560 cross_defines='${cross_defines}'
9561 cross_overrides='${cross_overrides}'
9562 build_overrides='${build_overrides}'
9563 cpp_install_dir='${cpp_install_dir}'
9566 cat >> $CONFIG_STATUS <<\EOF
9567 case "$CONFIG_FILES" in *po/Makefile.in*)
9568 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9571 . $srcdir/configure.lang
9572 case x$CONFIG_HEADERS in
9573 xauto-host.h:config.in)
9576 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9577 # bootstrapping and the installation procedure can still use
9578 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9579 # FLAGS_TO_PASS has been modified to solve the problem there.
9580 # This is virtually a duplicate of what happens in configure.lang; we do
9581 # an extra check to make sure this only happens if ln -s can be used.
9582 if test "$symbolic_link" = "ln -s"; then
9583 for d in .. ${subdirs} ; do
9584 if test $d != ..; then
9587 for t in stage1 stage2 stage3 stage4 include
9590 $symbolic_link ../$t $t 2>/dev/null
9596 # Avoid having to add intl to our include paths.
9597 if test -f intl/libintl.h; then
9598 echo creating libintl.h
9599 echo '#include "intl/libintl.h"' >libintl.h
9604 chmod +x $CONFIG_STATUS
9605 rm -fr confdefs* $ac_clean_files
9606 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1