3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking[=LIST]
33 enable expensive run-time checks. With LIST,
34 enable only specific categories of checks.
35 Categories are: misc,tree,rtl,gc,gcac; default
38 --disable-cpp don't provide a user-visible C preprocessor."
40 --with-cpp-install-dir=DIR
41 install the user visible C preprocessor in DIR
42 (relative to PREFIX) as well as PREFIX/bin."
44 --enable-c-cpplib link cpplib directly into C and C++ compilers
45 (HIGHLY EXPERIMENTAL)."
47 --enable-c-mbchar Enable multibyte characters for C and C++."
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
55 --with-dwarf2 force the default debug format to be DWARF2."
57 --enable-nls use Native Language Support (default)"
59 --disable-nls do not use Native Language Support"
61 --with-included-gettext use the GNU gettext library included here"
63 --with-catgets use catgets functions if available"
65 --disable-win32-registry
66 Disable lookup of installation paths in the
67 Registry on Windows hosts.
68 --enable-win32-registry Enable registry lookup (default).
69 --enable-win32-registry=KEY
70 Use KEY instead of GCC version as the last portion
73 --with-gc={simple,page} Choose the garbage collection mechanism to use
76 --with-system-zlib use installed libz"
79 select the new abi for g++. You must select an ABI
80 at configuration time, so that the correct runtime
81 support is built. You cannot mix ABIs."
84 enable libstdc++-v3 for building and installation"
86 --enable-maintainer-mode enable make rules and dependencies not useful
87 (and sometimes confusing) to the casual installer"
89 # Initialize some variables set by options.
90 # The variables have the same names as the options, with
91 # dashes changed to underlines.
93 cache_file
=.
/config.cache
102 program_transform_name
=s
,x
,x
,
110 bindir
='${exec_prefix}/bin'
111 sbindir
='${exec_prefix}/sbin'
112 libexecdir
='${exec_prefix}/libexec'
113 datadir
='${prefix}/share'
114 sysconfdir
='${prefix}/etc'
115 sharedstatedir
='${prefix}/com'
116 localstatedir
='${prefix}/var'
117 libdir
='${exec_prefix}/lib'
118 includedir
='${prefix}/include'
119 oldincludedir
='/usr/include'
120 infodir
='${prefix}/info'
121 mandir
='${prefix}/man'
123 # Initialize some other variables.
126 SHELL
=${CONFIG_SHELL-/bin/sh}
127 # Maximum number of lines to put in a shell here document.
134 # If the previous option needs an argument, assign it.
135 if test -n "$ac_prev"; then
136 eval "$ac_prev=\$ac_option"
142 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146 # Accept the important Cygnus configure options, so we can diagnose typos.
150 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
152 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
153 bindir
="$ac_optarg" ;;
155 -build |
--build |
--buil |
--bui |
--bu)
157 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
158 build
="$ac_optarg" ;;
160 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
161 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
162 ac_prev
=cache_file
;;
163 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
164 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
165 cache_file
="$ac_optarg" ;;
167 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
169 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
171 datadir
="$ac_optarg" ;;
173 -disable-* |
--disable-*)
174 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}=no" ;;
182 -enable-* |
--enable-*)
183 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}='$ac_optarg'" ;;
195 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
196 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
197 |
--exec |
--exe |
--ex)
198 ac_prev
=exec_prefix
;;
199 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
200 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
201 |
--exec=* |
--exe=* |
--ex=*)
202 exec_prefix
="$ac_optarg" ;;
204 -gas |
--gas |
--ga |
--g)
205 # Obsolete; use --with-gas.
208 -help |
--help |
--hel |
--he)
209 # Omit some internal or obsolete options to make the list less imposing.
210 # This message is too long to be a string in the A/UX 3.1 sh.
212 Usage: configure [options] [host]
213 Options: [defaults in brackets after descriptions]
215 --cache-file=FILE cache test results in FILE
216 --help print this message
217 --no-create do not create output files
218 --quiet, --silent do not print \`checking...' messages
219 --version print the version of autoconf that created configure
220 Directory and file names:
221 --prefix=PREFIX install architecture-independent files in PREFIX
223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 --bindir=DIR user executables in DIR [EPREFIX/bin]
226 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
227 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
228 --datadir=DIR read-only architecture-independent data in DIR
230 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
231 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
234 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
235 --includedir=DIR C header files in DIR [PREFIX/include]
236 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
237 --infodir=DIR info documentation in DIR [PREFIX/info]
238 --mandir=DIR man documentation in DIR [PREFIX/man]
239 --srcdir=DIR find the sources in DIR [configure dir or ..]
240 --program-prefix=PREFIX prepend PREFIX to installed program names
241 --program-suffix=SUFFIX append SUFFIX to installed program names
242 --program-transform-name=PROGRAM
243 run sed PROGRAM on installed program names
247 --build=BUILD configure for building on BUILD [BUILD=HOST]
248 --host=HOST configure for HOST [guessed]
249 --target=TARGET configure for TARGET [TARGET=HOST]
250 Features and packages:
251 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
252 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
253 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
254 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
255 --x-includes=DIR X include files are in DIR
256 --x-libraries=DIR X library files are in DIR
258 if test -n "$ac_help"; then
259 echo "--enable and --with options recognized:$ac_help"
263 -host |
--host |
--hos |
--ho)
265 -host=* |
--host=* |
--hos=* |
--ho=*)
268 -includedir |
--includedir |
--includedi |
--included |
--include \
269 |
--includ |
--inclu |
--incl |
--inc)
270 ac_prev
=includedir
;;
271 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
272 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
273 includedir
="$ac_optarg" ;;
275 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
277 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
278 infodir
="$ac_optarg" ;;
280 -libdir |
--libdir |
--libdi |
--libd)
282 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
283 libdir
="$ac_optarg" ;;
285 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
286 |
--libexe |
--libex |
--libe)
287 ac_prev
=libexecdir
;;
288 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
289 |
--libexe=* |
--libex=* |
--libe=*)
290 libexecdir
="$ac_optarg" ;;
292 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
293 |
--localstate |
--localstat |
--localsta |
--localst \
294 |
--locals |
--local |
--loca |
--loc |
--lo)
295 ac_prev
=localstatedir
;;
296 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
297 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
298 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
299 localstatedir
="$ac_optarg" ;;
301 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
303 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
304 mandir
="$ac_optarg" ;;
307 # Obsolete; use --without-fp.
310 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
314 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
315 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
318 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
319 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
320 |
--oldin |
--oldi |
--old |
--ol |
--o)
321 ac_prev
=oldincludedir
;;
322 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
323 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
324 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
325 oldincludedir
="$ac_optarg" ;;
327 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
329 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
330 prefix
="$ac_optarg" ;;
332 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
333 |
--program-pre |
--program-pr |
--program-p)
334 ac_prev
=program_prefix
;;
335 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
336 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
337 program_prefix
="$ac_optarg" ;;
339 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
340 |
--program-suf |
--program-su |
--program-s)
341 ac_prev
=program_suffix
;;
342 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
343 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
344 program_suffix
="$ac_optarg" ;;
346 -program-transform-name |
--program-transform-name \
347 |
--program-transform-nam |
--program-transform-na \
348 |
--program-transform-n |
--program-transform- \
349 |
--program-transform |
--program-transfor \
350 |
--program-transfo |
--program-transf \
351 |
--program-trans |
--program-tran \
352 |
--progr-tra |
--program-tr |
--program-t)
353 ac_prev
=program_transform_name
;;
354 -program-transform-name=* |
--program-transform-name=* \
355 |
--program-transform-nam=* |
--program-transform-na=* \
356 |
--program-transform-n=* |
--program-transform-=* \
357 |
--program-transform=* |
--program-transfor=* \
358 |
--program-transfo=* |
--program-transf=* \
359 |
--program-trans=* |
--program-tran=* \
360 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
361 program_transform_name
="$ac_optarg" ;;
363 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
364 |
-silent |
--silent |
--silen |
--sile |
--sil)
367 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
369 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
371 sbindir
="$ac_optarg" ;;
373 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
374 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
375 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
377 ac_prev
=sharedstatedir
;;
378 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
379 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
380 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
382 sharedstatedir
="$ac_optarg" ;;
384 -site |
--site |
--sit)
386 -site=* |
--site=* |
--sit=*)
389 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
391 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
392 srcdir
="$ac_optarg" ;;
394 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
395 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
396 ac_prev
=sysconfdir
;;
397 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
398 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
399 sysconfdir
="$ac_optarg" ;;
401 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
403 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
404 target
="$ac_optarg" ;;
406 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
409 -version |
--version |
--versio |
--versi |
--vers)
410 echo "configure generated by autoconf version 2.13"
414 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package
=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}='$ac_optarg'" ;;
426 -without-* |
--without-*)
427 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package
=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}=no" ;;
436 # Obsolete; use --with-x.
439 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
440 |
--x-incl |
--x-inc |
--x-in |
--x-i)
441 ac_prev
=x_includes
;;
442 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
443 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
444 x_includes
="$ac_optarg" ;;
446 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
447 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
448 ac_prev
=x_libraries
;;
449 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
450 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
451 x_libraries
="$ac_optarg" ;;
453 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
458 echo "configure: warning: $ac_option: invalid host type" 1>&2
460 if test "x$nonopt" != xNONE
; then
461 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
469 if test -n "$ac_prev"; then
470 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
475 # File descriptor usage:
478 # 2 errors and warnings
479 # 3 some systems may open it to /dev/tty
480 # 4 used on the Kubota Titan
481 # 6 checking for... messages and results
482 # 5 compiler messages saved in config.log
483 if test "$silent" = yes; then
491 This file contains any messages produced by compilers while
492 running configure, to aid debugging if configure makes a mistake.
495 # Strip out --no-create and --no-recursion so they do not pile up.
496 # Also quote any args containing shell metacharacters.
501 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
502 |
--no-cr |
--no-c) ;;
503 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
504 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
505 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
506 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
507 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
512 # Only set these to C if already set. These must not be set unconditionally
513 # because not all systems understand e.g. LANG=C (notably SCO).
514 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
515 # Non-C LC_CTYPE values break the ctype check.
516 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
517 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
518 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
519 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
522 rm -rf conftest
* confdefs.h
523 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
526 # A filename unique to this package, relative to the directory that
527 # configure is in, which we can look for to find out if srcdir is correct.
528 ac_unique_file
=tree.c
530 # Find the source files, if location was not specified.
531 if test -z "$srcdir"; then
532 ac_srcdir_defaulted
=yes
533 # Try the directory containing this script, then its parent.
535 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
536 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
538 if test ! -r $srcdir/$ac_unique_file; then
542 ac_srcdir_defaulted
=no
544 if test ! -r $srcdir/$ac_unique_file; then
545 if test "$ac_srcdir_defaulted" = yes; then
546 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
551 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
553 # Prefer explicitly selected file to automatically selected ones.
554 if test -z "$CONFIG_SITE"; then
555 if test "x$prefix" != xNONE
; then
556 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
558 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
561 for ac_site_file
in $CONFIG_SITE; do
562 if test -r "$ac_site_file"; then
563 echo "loading site script $ac_site_file"
568 if test -r "$cache_file"; then
569 echo "loading cache $cache_file"
572 echo "creating cache $cache_file"
577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
578 ac_cpp
='$CPP $CPPFLAGS'
579 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
580 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
581 cross_compiling
=$ac_cv_prog_cc_cross
585 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
586 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
587 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
594 ac_n
= ac_c
='\c' ac_t
=
602 symbolic_link
='ln -s'
605 # Check for bogus environment variables.
606 # Test if LIBRARY_PATH contains the notation for the current directory
607 # since this would lead to problems installing/building glibc.
608 # LIBRARY_PATH contains the current directory if one of the following
610 # - one of the terminals (":" and ";") is the first or last sign
611 # - two terminals occur directly after each other
612 # - the path contains an element with a dot in it
613 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
614 echo "configure:615: checking LIBRARY_PATH variable" >&5
615 case ${LIBRARY_PATH} in
616 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
617 library_path_setting
="contains current directory"
620 library_path_setting
="ok"
623 echo "$ac_t""$library_path_setting" 1>&6
624 if test "$library_path_setting" != "ok"; then
625 { echo "configure: error:
626 *** LIBRARY_PATH shouldn't contain the current directory when
627 *** building gcc. Please change the environment variable
628 *** and run configure again." 1>&2; exit 1; }
631 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
632 # since this would lead to problems installing/building glibc.
633 # GCC_EXEC_PREFIX contains the current directory if one of the following
635 # - one of the terminals (":" and ";") is the first or last sign
636 # - two terminals occur directly after each other
637 # - the path contains an element with a dot in it
638 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
639 echo "configure:640: checking GCC_EXEC_PREFIX variable" >&5
640 case ${GCC_EXEC_PREFIX} in
641 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
642 gcc_exec_prefix_setting
="contains current directory"
645 gcc_exec_prefix_setting
="ok"
648 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
649 if test "$gcc_exec_prefix_setting" != "ok"; then
650 { echo "configure: error:
651 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
652 *** building gcc. Please change the environment variable
653 *** and run configure again." 1>&2; exit 1; }
656 # Check for additional parameters
659 # Check whether --with-gnu-ld or --without-gnu-ld was given.
660 if test "${with_gnu_ld+set}" = set; then
661 withval
="$with_gnu_ld"
662 gnu_ld_flag
="$with_gnu_ld"
668 # With pre-defined ld
669 # Check whether --with-ld or --without-ld was given.
670 if test "${with_ld+set}" = set; then
672 DEFAULT_LINKER
="$with_ld"
675 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
676 if test ! -x "$DEFAULT_LINKER"; then
677 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
678 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
681 cat >> confdefs.h
<<EOF
682 #define DEFAULT_LINKER "$DEFAULT_LINKER"
688 # Check whether --with-gnu-as or --without-gnu-as was given.
689 if test "${with_gnu_as+set}" = set; then
690 withval
="$with_gnu_as"
691 gas_flag
="$with_gnu_as"
697 # Check whether --with-as or --without-as was given.
698 if test "${with_as+set}" = set; then
700 DEFAULT_ASSEMBLER
="$with_as"
703 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
704 if test ! -x "$DEFAULT_ASSEMBLER"; then
705 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
706 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
709 cat >> confdefs.h
<<EOF
710 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
716 # Check whether --with-stabs or --without-stabs was given.
717 if test "${with_stabs+set}" = set; then
718 withval
="$with_stabs"
726 # Check whether --with-elf or --without-elf was given.
727 if test "${with_elf+set}" = set; then
735 # Specify the local prefix
737 # Check whether --with-local-prefix or --without-local-prefix was given.
738 if test "${with_local_prefix+set}" = set; then
739 withval
="$with_local_prefix"
741 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
743 *) local_prefix
=$with_local_prefix ;;
748 # Default local prefix if it is empty
749 if test x
$local_prefix = x
; then
750 local_prefix
=/usr
/local
753 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
754 # passed in by the toplevel make and thus we'd get different behavior
755 # depending on where we built the sources.
757 # Specify the g++ header file directory
758 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
759 if test "${with_gxx_include_dir+set}" = set; then
760 withval
="$with_gxx_include_dir"
762 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
764 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
769 if test x
${gcc_gxx_include_dir} = x
; then
770 if test x
${enable_version_specific_runtime_libs} = xyes
; then
771 gcc_gxx_include_dir
='${libsubdir}/include/g++'
773 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
774 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
778 # Enable expensive internal checks
779 # Check whether --enable-checking or --disable-checking was given.
780 if test "${enable_checking+set}" = set; then
781 enableval
="$enable_checking"
786 ac_gc_always_collect
=
787 case "${enableval}" in
788 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
790 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
791 set fnord
$enableval; shift
796 misc
) ac_checking
=1 ;;
797 tree
) ac_tree_checking
=1 ;;
798 rtl
) ac_rtl_checking
=1 ;;
799 gc
) ac_gc_checking
=1 ;;
800 gcac
) ac_gc_always_collect
=1 ;;
801 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
808 # Enable some checks by default for development versions of GCC
809 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
812 if test x
$ac_checking != x
; then
813 cat >> confdefs.h
<<\EOF
814 #define ENABLE_CHECKING 1
818 if test x
$ac_tree_checking != x
; then
819 cat >> confdefs.h
<<\EOF
820 #define ENABLE_TREE_CHECKING 1
824 if test x
$ac_rtl_checking != x
; then
825 cat >> confdefs.h
<<\EOF
826 #define ENABLE_RTL_CHECKING 1
830 if test x
$ac_gc_checking != x
; then
831 cat >> confdefs.h
<<\EOF
832 #define ENABLE_GC_CHECKING 1
836 if test x
$ac_gc_always_collect != x
; then
837 cat >> confdefs.h
<<\EOF
838 #define ENABLE_GC_ALWAYS_COLLECT 1
844 # Check whether --enable-cpp or --disable-cpp was given.
845 if test "${enable_cpp+set}" = set; then
846 enableval
="$enable_cpp"
853 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
854 if test "${with_cpp_install_dir+set}" = set; then
855 withval
="$with_cpp_install_dir"
856 if test x
$withval = xyes
; then
857 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
858 elif test x
$withval != xno
; then
859 cpp_install_dir
=$withval
864 # Link cpplib into the compiler proper, for C/C++/ObjC.
865 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
866 if test "${enable_c_cpplib+set}" = set; then
867 enableval
="$enable_c_cpplib"
868 if test x
$enable_c_cpplib != xno
; then
869 extra_c_objs
="${extra_c_objs} libcpp.a"
870 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
871 cat >> confdefs.h
<<\EOF
879 # Enable Multibyte Characters for C/C++
880 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
881 if test "${enable_c_mbchar+set}" = set; then
882 enableval
="$enable_c_mbchar"
883 if test x
$enable_c_mbchar != xno
; then
884 cat >> confdefs.h
<<\EOF
885 #define MULTIBYTE_CHARS 1
893 # Pass with no value to take the default
894 # Pass with a value to specify a thread package
895 # Check whether --enable-threads or --disable-threads was given.
896 if test "${enable_threads+set}" = set; then
897 enableval
="$enable_threads"
904 enable_threads_flag
=$enable_threads
905 # Check if a valid thread package
906 case x
${enable_threads_flag} in
909 target_thread_file
='single'
913 target_thread_file
=''
915 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
916 xsolaris | xwin32 | xdce | xvxworks | xaix
)
917 target_thread_file
=$enable_threads_flag
920 echo "$enable_threads is an unknown thread package" 1>&2
925 # Check whether --enable-objc-gc or --disable-objc-gc was given.
926 if test "${enable_objc_gc+set}" = set; then
927 enableval
="$enable_objc_gc"
928 if test x
$enable_objc_gc = xno
; then
938 # Check whether --with-dwarf2 or --without-dwarf2 was given.
939 if test "${with_dwarf2+set}" = set; then
940 withval
="$with_dwarf2"
941 dwarf2
="$with_dwarf2"
947 # Determine the host, build, and target systems
949 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
950 if test -f $ac_dir/install-sh
; then
952 ac_install_sh
="$ac_aux_dir/install-sh -c"
954 elif test -f $ac_dir/install.sh
; then
956 ac_install_sh
="$ac_aux_dir/install.sh -c"
960 if test -z "$ac_aux_dir"; then
961 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963 ac_config_guess
=$ac_aux_dir/config.guess
964 ac_config_sub
=$ac_aux_dir/config.sub
965 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
968 # Do some error checking and defaulting for the host and target type.
970 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
973 # 1. You are not allowed to specify --host, --target, and nonopt at the
975 # 2. Host defaults to nonopt.
976 # 3. If nonopt is not specified, then host defaults to the current host,
977 # as determined by config.guess.
978 # 4. Target and build default to nonopt.
979 # 5. If nonopt is not specified, then target and build default to host.
981 # The aliases save the names the user supplied, while $host etc.
982 # will get canonicalized.
983 case $host---$target---$nonopt in
984 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
985 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
989 # Make sure we can run config.sub.
990 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
991 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
994 echo $ac_n "checking host system type""... $ac_c" 1>&6
995 echo "configure:996: checking host system type" >&5
998 case "$host_alias" in
1002 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1003 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1005 *) host_alias
=$nonopt ;;
1009 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1010 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1011 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1012 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013 echo "$ac_t""$host" 1>&6
1015 echo $ac_n "checking target system type""... $ac_c" 1>&6
1016 echo "configure:1017: checking target system type" >&5
1018 target_alias
=$target
1019 case "$target_alias" in
1022 NONE
) target_alias
=$host_alias ;;
1023 *) target_alias
=$nonopt ;;
1027 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1028 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031 echo "$ac_t""$target" 1>&6
1033 echo $ac_n "checking build system type""... $ac_c" 1>&6
1034 echo "configure:1035: checking build system type" >&5
1037 case "$build_alias" in
1040 NONE
) build_alias
=$host_alias ;;
1041 *) build_alias
=$nonopt ;;
1045 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1046 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1047 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1048 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1049 echo "$ac_t""$build" 1>&6
1051 test "$host_alias" != "$target_alias" &&
1052 test "$program_prefix$program_suffix$program_transform_name" = \
1054 program_prefix
=${target_alias}-
1057 # Find the native compiler
1058 # Extract the first word of "gcc", so it can be a program name with args.
1059 set dummy gcc
; ac_word
=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC
="$CC" # Let the user override the test.
1068 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1070 for ac_dir
in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir
=.
1072 if test -f $ac_dir/$ac_word; then
1081 if test -n "$CC"; then
1082 echo "$ac_t""$CC" 1>&6
1084 echo "$ac_t""no" 1>&6
1087 if test -z "$CC"; then
1088 # Extract the first word of "cc", so it can be a program name with args.
1089 set dummy cc
; ac_word
=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$CC"; then
1096 ac_cv_prog_CC
="$CC" # Let the user override the test.
1098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1101 for ac_dir
in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir
=.
1103 if test -f $ac_dir/$ac_word; then
1104 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1105 ac_prog_rejected
=yes
1113 if test $ac_prog_rejected = yes; then
1114 # We found a bogon in the path, so make sure we never use it.
1115 set dummy
$ac_cv_prog_CC
1117 if test $# -gt 0; then
1118 # We chose a different compiler from the bogus one.
1119 # However, it has the same basename, so the bogon will be chosen
1120 # first if we set CC to just the basename; use the full file name.
1122 set dummy
"$ac_dir/$ac_word" "$@"
1130 if test -n "$CC"; then
1131 echo "$ac_t""$CC" 1>&6
1133 echo "$ac_t""no" 1>&6
1136 if test -z "$CC"; then
1137 case "`uname -s`" in
1139 # Extract the first word of "cl", so it can be a program name with args.
1140 set dummy cl
; ac_word
=$2
1141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1142 echo "configure:1143: checking for $ac_word" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 if test -n "$CC"; then
1147 ac_cv_prog_CC
="$CC" # Let the user override the test.
1149 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1151 for ac_dir
in $ac_dummy; do
1152 test -z "$ac_dir" && ac_dir
=.
1153 if test -f $ac_dir/$ac_word; then
1162 if test -n "$CC"; then
1163 echo "$ac_t""$CC" 1>&6
1165 echo "$ac_t""no" 1>&6
1170 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1173 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1177 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1178 ac_cpp
='$CPP $CPPFLAGS'
1179 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1180 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1181 cross_compiling
=$ac_cv_prog_cc_cross
1183 cat > conftest.
$ac_ext << EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1190 if { (eval echo configure
:1191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1191 ac_cv_prog_cc_works
=yes
1192 # If we can't run a trivial program, we are probably using a cross compiler.
1193 if (.
/conftest
; exit) 2>/dev
/null
; then
1194 ac_cv_prog_cc_cross
=no
1196 ac_cv_prog_cc_cross
=yes
1199 echo "configure: failed program was:" >&5
1200 cat conftest.
$ac_ext >&5
1201 ac_cv_prog_cc_works
=no
1205 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1206 ac_cpp
='$CPP $CPPFLAGS'
1207 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1208 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1209 cross_compiling
=$ac_cv_prog_cc_cross
1211 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1212 if test $ac_cv_prog_cc_works = no
; then
1213 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1215 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1217 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1218 cross_compiling
=$ac_cv_prog_cc_cross
1220 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether we are using GNU C" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 cat > conftest.c
<<EOF
1230 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1237 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1239 if test $ac_cv_prog_gcc = yes; then
1245 ac_test_CFLAGS
="${CFLAGS+set}"
1246 ac_save_CFLAGS
="$CFLAGS"
1248 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1249 echo "configure:1250: checking whether ${CC-cc} accepts -g" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 echo 'void f(){}' > conftest.c
1254 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1263 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1264 if test "$ac_test_CFLAGS" = set; then
1265 CFLAGS
="$ac_save_CFLAGS"
1266 elif test $ac_cv_prog_cc_g = yes; then
1267 if test "$GCC" = yes; then
1273 if test "$GCC" = yes; then
1280 if test "x$CC" != xcc
; then
1281 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1282 echo "configure:1283: checking whether $CC and cc understand -c and -o together" >&5
1284 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether cc understands -c and -o together" >&5
1287 set dummy
$CC; ac_cc
="`echo $2 |
1288 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1289 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 echo 'foo(){}' > conftest.c
1293 # Make sure it works both with $CC and with simple cc.
1294 # We do the test twice because some compilers refuse to overwrite an
1295 # existing .o file with -o, though they will create one.
1296 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1297 if { (eval echo configure
:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1298 test -f conftest.o
&& { (eval echo configure
:1299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1300 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1301 if test "x$CC" != xcc
; then
1302 # Test first that cc exists at all.
1303 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1304 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1305 if { (eval echo configure
:1306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1306 test -f conftest.o
&& { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1311 # cc exists but doesn't like -o.
1312 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1317 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1322 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1323 echo "$ac_t""yes" 1>&6
1325 echo "$ac_t""no" 1>&6
1326 cat >> confdefs.h
<<\EOF
1327 #define NO_MINUS_C_MINUS_O 1
1332 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1333 NO_MINUS_C_MINUS_O
=yes
1337 echo $ac_n "checking for long double""... $ac_c" 1>&6
1338 echo "configure:1339: checking for long double" >&5
1339 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test "$GCC" = yes; then
1343 gcc_cv_c_long_double
=yes
1345 cat > conftest.
$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1350 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1351 long double foo = 0.0;
1352 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1353 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1356 if { (eval echo configure
:1357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1358 gcc_cv_c_long_double
=yes
1360 echo "configure: failed program was:" >&5
1361 cat conftest.
$ac_ext >&5
1363 gcc_cv_c_long_double
=no
1369 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1370 if test $gcc_cv_c_long_double = yes; then
1371 cat >> confdefs.h
<<\EOF
1372 #define HAVE_LONG_DOUBLE 1
1378 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1379 echo "configure:1380: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 save_CFLAGS
="$CFLAGS"
1384 CFLAGS
="-Wno-long-long"
1385 cat > conftest.
$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1393 if { (eval echo configure
:1394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1395 ac_cv_prog_cc_no_long_long
=yes
1397 echo "configure: failed program was:" >&5
1398 cat conftest.
$ac_ext >&5
1400 ac_cv_prog_cc_no_long_long
=no
1403 CFLAGS
="$save_CFLAGS"
1406 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1408 # If the native compiler is GCC, we can enable warnings even in stage1.
1409 # That's useful for people building cross-compilers, or just running a
1411 stage1_warn_cflags
=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
1412 stage2_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1413 if test "x$GCC" = "xyes"; then
1414 if test $ac_cv_prog_cc_no_long_long = yes; then
1415 stage1_warn_cflags
="$stage1_warn_cflags -pedantic -Wno-long-long"
1418 stage1_warn_cflags
=""
1421 # Stage specific cflags for build.
1424 if test x
$GCC = xyes
1426 stage1_warn_cflags
="$stage1_warn_cflags -Wa,-J"
1428 stage1_warn_cflags
="$stage1_warn_cflags -J"
1436 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1437 echo "configure:1438: checking whether ${MAKE-make} sets \${MAKE}" >&5
1438 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1439 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 cat > conftestmake
<<\EOF
1444 @
echo 'ac_maketemp="${MAKE}"'
1446 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1447 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1448 if test -n "$ac_maketemp"; then
1449 eval ac_cv_prog_make_
${ac_make}_set
=yes
1451 eval ac_cv_prog_make_
${ac_make}_set
=no
1455 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1459 echo "$ac_t""no" 1>&6
1460 SET_MAKE
="MAKE=${MAKE-make}"
1464 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1465 echo "configure:1466: checking whether a default assembler was specified" >&5
1466 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1467 if test x
"$gas_flag" = x
"no"; then
1468 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1470 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1473 echo "$ac_t""no" 1>&6
1476 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1477 echo "configure:1478: checking whether a default linker was specified" >&5
1478 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1479 if test x
"$gnu_ld_flag" = x
"no"; then
1480 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1482 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1485 echo "$ac_t""no" 1>&6
1488 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1489 echo "configure:1490: checking for GNU C library" >&5
1490 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 cat > conftest.
$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1496 #include <features.h>
1499 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1500 #error Not a GNU C library system
1504 if { (eval echo configure
:1505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1508 echo "configure: failed program was:" >&5
1509 cat conftest.
$ac_ext >&5
1516 echo "$ac_t""$gcc_cv_glibc" 1>&6
1517 if test $gcc_cv_glibc = yes; then
1518 cat >> confdefs.h
<<\EOF
1519 #define _GNU_SOURCE 1
1524 echo $ac_n "checking for inline""... $ac_c" 1>&6
1525 echo "configure:1526: checking for inline" >&5
1526 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1530 for ac_kw
in inline __inline__ __inline
; do
1531 cat > conftest.
$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1539 if { (eval echo configure
:1540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1541 ac_cv_c_inline
=$ac_kw; break
1543 echo "configure: failed program was:" >&5
1544 cat conftest.
$ac_ext >&5
1551 echo "$ac_t""$ac_cv_c_inline" 1>&6
1552 case "$ac_cv_c_inline" in
1554 no
) cat >> confdefs.h
<<\EOF
1558 *) cat >> confdefs.h
<<EOF
1559 #define inline $ac_cv_c_inline
1565 # Find some useful tools
1566 for ac_prog
in gawk mawk nawk
awk
1568 # Extract the first word of "$ac_prog", so it can be a program name with args.
1569 set dummy
$ac_prog; ac_word
=$2
1570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1571 echo "configure:1572: checking for $ac_word" >&5
1572 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1575 if test -n "$AWK"; then
1576 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1578 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1580 for ac_dir
in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir
=.
1582 if test -f $ac_dir/$ac_word; then
1583 ac_cv_prog_AWK
="$ac_prog"
1590 AWK
="$ac_cv_prog_AWK"
1591 if test -n "$AWK"; then
1592 echo "$ac_t""$AWK" 1>&6
1594 echo "$ac_t""no" 1>&6
1597 test -n "$AWK" && break
1600 # Extract the first word of "flex", so it can be a program name with args.
1601 set dummy flex
; ac_word
=$2
1602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1603 echo "configure:1604: checking for $ac_word" >&5
1604 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1607 if test -n "$LEX"; then
1608 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1610 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1612 for ac_dir
in $ac_dummy; do
1613 test -z "$ac_dir" && ac_dir
=.
1614 if test -f $ac_dir/$ac_word; then
1615 ac_cv_prog_LEX
="flex"
1620 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1623 LEX
="$ac_cv_prog_LEX"
1624 if test -n "$LEX"; then
1625 echo "$ac_t""$LEX" 1>&6
1627 echo "$ac_t""no" 1>&6
1630 if test -z "$LEXLIB"
1636 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1637 echo "configure:1638: checking for yywrap in -l$ac_lib" >&5
1638 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 ac_save_LIBS
="$LIBS"
1643 LIBS
="-l$ac_lib $LIBS"
1644 cat > conftest.
$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 /* Override any gcc2 internal prototype to avoid an error. */
1648 /* We use char because int might match the return type of a gcc2
1649 builtin and then its argument prototype would still apply. */
1656 if { (eval echo configure
:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1658 eval "ac_cv_lib_$ac_lib_var=yes"
1660 echo "configure: failed program was:" >&5
1661 cat conftest.
$ac_ext >&5
1663 eval "ac_cv_lib_$ac_lib_var=no"
1666 LIBS
="$ac_save_LIBS"
1669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1670 echo "$ac_t""yes" 1>&6
1673 echo "$ac_t""no" 1>&6
1678 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1679 echo "configure:1680: checking whether ln works" >&5
1680 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 rm -f conftestdata_t
1684 echo >conftestdata_f
1685 if ln conftestdata_f conftestdata_t
2>/dev
/null
1689 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1691 gcc_cv_prog_LN
="ln -s"
1696 rm -f conftestdata_f conftestdata_t
1699 LN
="$gcc_cv_prog_LN"
1700 if test "$gcc_cv_prog_LN" = "ln"; then
1701 echo "$ac_t""yes" 1>&6
1703 if test "$gcc_cv_prog_LN" = "ln -s"; then
1704 echo "$ac_t""no, using ln -s" 1>&6
1706 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1710 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1711 echo "configure:1712: checking whether ln -s works" >&5
1712 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 rm -f conftestdata_t
1716 echo >conftestdata_f
1717 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1719 gcc_cv_prog_LN_S
="ln -s"
1721 if ln conftestdata_f conftestdata_t
2>/dev
/null
1728 rm -f conftestdata_f conftestdata_t
1731 LN_S
="$gcc_cv_prog_LN_S"
1732 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1733 echo "$ac_t""yes" 1>&6
1735 if test "$gcc_cv_prog_LN_S" = "ln"; then
1736 echo "$ac_t""no, using ln" 1>&6
1738 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1742 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1743 echo "configure:1744: checking for volatile" >&5
1744 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1747 cat > conftest.
$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1755 if { (eval echo configure
:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1757 gcc_cv_c_volatile
=yes
1759 echo "configure: failed program was:" >&5
1760 cat conftest.
$ac_ext >&5
1762 gcc_cv_c_volatile
=no
1767 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1768 if test $gcc_cv_c_volatile = yes ; then
1769 cat >> confdefs.h
<<\EOF
1770 #define HAVE_VOLATILE 1
1775 # Extract the first word of "ranlib", so it can be a program name with args.
1776 set dummy ranlib
; ac_word
=$2
1777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1778 echo "configure:1779: checking for $ac_word" >&5
1779 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 if test -n "$RANLIB"; then
1783 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1787 for ac_dir
in $ac_dummy; do
1788 test -z "$ac_dir" && ac_dir
=.
1789 if test -f $ac_dir/$ac_word; then
1790 ac_cv_prog_RANLIB
="ranlib"
1795 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1798 RANLIB
="$ac_cv_prog_RANLIB"
1799 if test -n "$RANLIB"; then
1800 echo "$ac_t""$RANLIB" 1>&6
1802 echo "$ac_t""no" 1>&6
1805 for ac_prog
in 'bison -y' byacc
1807 # Extract the first word of "$ac_prog", so it can be a program name with args.
1808 set dummy
$ac_prog; ac_word
=$2
1809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_word" >&5
1811 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 if test -n "$YACC"; then
1815 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1817 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1819 for ac_dir
in $ac_dummy; do
1820 test -z "$ac_dir" && ac_dir
=.
1821 if test -f $ac_dir/$ac_word; then
1822 ac_cv_prog_YACC
="$ac_prog"
1829 YACC
="$ac_cv_prog_YACC"
1830 if test -n "$YACC"; then
1831 echo "$ac_t""$YACC" 1>&6
1833 echo "$ac_t""no" 1>&6
1836 test -n "$YACC" && break
1838 test -n "$YACC" || YACC
="yacc"
1840 # Find a good install program. We prefer a C program (faster),
1841 # so one script is as good as another. But avoid the broken or
1842 # incompatible versions:
1843 # SysV /etc/install, /usr/sbin/install
1844 # SunOS /usr/etc/install
1845 # IRIX /sbin/install
1847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1849 # ./install, which can be erroneously created by make from ./install.sh.
1850 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1851 echo "configure:1852: checking for a BSD compatible install" >&5
1852 if test -z "$INSTALL"; then
1853 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1857 for ac_dir
in $PATH; do
1858 # Account for people who put trailing slashes in PATH elements.
1860 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1862 # OSF1 and SCO ODT 3.0 have their own names for install.
1863 for ac_prog
in ginstall scoinst
install; do
1864 if test -f $ac_dir/$ac_prog; then
1865 if test $ac_prog = install &&
1866 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1867 # AIX install. It has an incompatible calling convention.
1868 # OSF/1 installbsd also uses dspmsg, but is usable.
1871 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1882 if test "${ac_cv_path_install+set}" = set; then
1883 INSTALL
="$ac_cv_path_install"
1885 # As a last resort, use the slow shell script. We don't cache a
1886 # path for INSTALL within a source directory, because that will
1887 # break other packages using the cache if that directory is
1888 # removed, or if the path is relative.
1889 INSTALL
="$ac_install_sh"
1892 echo "$ac_t""$INSTALL" 1>&6
1894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1895 # It thinks the first close brace ends the variable substitution.
1896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1898 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1901 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1902 echo "configure:1903: checking how to run the C preprocessor" >&5
1903 # On Suns, sometimes $CPP names a directory.
1904 if test -n "$CPP" && test -d "$CPP"; then
1907 if test -z "$CPP"; then
1908 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 # This must be in double quotes, not single quotes, because CPP may get
1912 # substituted into the Makefile and "${CC-cc}" will confuse make.
1914 # On the NeXT, cc -E runs the code through the compiler's parser,
1915 # not just through cpp.
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1922 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1923 { (eval echo configure
:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1924 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1925 if test -z "$ac_err"; then
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1932 CPP
="${CC-cc} -E -traditional-cpp"
1933 cat > conftest.
$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1939 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1940 { (eval echo configure
:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1941 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1942 if test -z "$ac_err"; then
1946 echo "configure: failed program was:" >&5
1947 cat conftest.
$ac_ext >&5
1949 CPP
="${CC-cc} -nologo -E"
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1956 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure
:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1959 if test -z "$ac_err"; then
1963 echo "configure: failed program was:" >&5
1964 cat conftest.
$ac_ext >&5
1973 ac_cv_prog_CPP
="$CPP"
1975 CPP
="$ac_cv_prog_CPP"
1977 ac_cv_prog_CPP
="$CPP"
1979 echo "$ac_t""$CPP" 1>&6
1981 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1982 echo "configure:1983: checking for ANSI C header files" >&5
1983 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.
$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #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 ac_cv_header_stdc
=yes
2002 echo "configure: failed program was:" >&5
2003 cat conftest.
$ac_ext >&5
2005 ac_cv_header_stdc
=no
2009 if test $ac_cv_header_stdc = yes; then
2010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2011 cat > conftest.
$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2017 egrep "memchr" >/dev
/null
2>&1; then
2021 ac_cv_header_stdc
=no
2027 if test $ac_cv_header_stdc = yes; then
2028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2035 egrep "free" >/dev
/null
2>&1; then
2039 ac_cv_header_stdc
=no
2045 if test $ac_cv_header_stdc = yes; then
2046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2047 if test "$cross_compiling" = yes; then
2050 cat > conftest.
$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2055 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2057 int main () { int i; for (i = 0; i < 256; i++)
2058 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2062 if { (eval echo configure
:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2066 echo "configure: failed program was:" >&5
2067 cat conftest.
$ac_ext >&5
2069 ac_cv_header_stdc
=no
2077 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2078 if test $ac_cv_header_stdc = yes; then
2079 cat >> confdefs.h
<<\EOF
2080 #define STDC_HEADERS 1
2085 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2086 echo "configure:2087: checking whether time.h and sys/time.h may both be included" >&5
2087 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 cat > conftest.
$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2093 #include <sys/types.h>
2094 #include <sys/time.h>
2100 if { (eval echo configure
:2101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2102 ac_cv_header_time
=yes
2104 echo "configure: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2107 ac_cv_header_time
=no
2112 echo "$ac_t""$ac_cv_header_time" 1>&6
2113 if test $ac_cv_header_time = yes; then
2114 cat >> confdefs.h
<<\EOF
2115 #define TIME_WITH_SYS_TIME 1
2120 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2121 echo "configure:2122: checking whether string.h and strings.h may both be included" >&5
2122 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.
$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2129 #include <strings.h>
2134 if { (eval echo configure
:2135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2136 gcc_cv_header_string
=yes
2138 echo "configure: failed program was:" >&5
2139 cat conftest.
$ac_ext >&5
2141 gcc_cv_header_string
=no
2146 echo "$ac_t""$gcc_cv_header_string" 1>&6
2147 if test $gcc_cv_header_string = yes; then
2148 cat >> confdefs.h
<<\EOF
2149 #define STRING_WITH_STRINGS 1
2154 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2155 echo "configure:2156: checking for sys/wait.h that is POSIX.1 compatible" >&5
2156 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 cat > conftest.
$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2162 #include <sys/types.h>
2163 #include <sys/wait.h>
2165 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2168 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2173 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2176 if { (eval echo configure
:2177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2178 ac_cv_header_sys_wait_h
=yes
2180 echo "configure: failed program was:" >&5
2181 cat conftest.
$ac_ext >&5
2183 ac_cv_header_sys_wait_h
=no
2188 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2189 if test $ac_cv_header_sys_wait_h = yes; then
2190 cat >> confdefs.h
<<\EOF
2191 #define HAVE_SYS_WAIT_H 1
2196 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2197 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2198 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2199 direct.h malloc.h langinfo.h
iconv.h
2201 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_hdr" >&5
2204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 cat > conftest.
$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2212 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2213 { (eval echo configure
:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2214 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2215 if test -z "$ac_err"; then
2217 eval "ac_cv_header_$ac_safe=yes"
2220 echo "configure: failed program was:" >&5
2221 cat conftest.
$ac_ext >&5
2223 eval "ac_cv_header_$ac_safe=no"
2227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2229 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2230 cat >> confdefs.h
<<EOF
2231 #define $ac_tr_hdr 1
2235 echo "$ac_t""no" 1>&6
2240 # Check for thread headers.
2241 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2242 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2243 echo "configure:2244: checking for thread.h" >&5
2244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 cat > conftest.
$ac_ext <<EOF
2248 #line 2249 "configure"
2249 #include "confdefs.h"
2252 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2253 { (eval echo configure
:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2254 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2255 if test -z "$ac_err"; then
2257 eval "ac_cv_header_$ac_safe=yes"
2260 echo "configure: failed program was:" >&5
2261 cat conftest.
$ac_ext >&5
2263 eval "ac_cv_header_$ac_safe=no"
2267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2268 echo "$ac_t""yes" 1>&6
2271 echo "$ac_t""no" 1>&6
2275 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2276 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2277 echo "configure:2278: checking for pthread.h" >&5
2278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.
$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 #include <pthread.h>
2286 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2287 { (eval echo configure
:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2288 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2289 if test -z "$ac_err"; then
2291 eval "ac_cv_header_$ac_safe=yes"
2294 echo "configure: failed program was:" >&5
2295 cat conftest.
$ac_ext >&5
2297 eval "ac_cv_header_$ac_safe=no"
2301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2302 echo "$ac_t""yes" 1>&6
2305 echo "$ac_t""no" 1>&6
2310 # See if GNAT has been installed
2311 # Extract the first word of "gnatbind", so it can be a program name with args.
2312 set dummy gnatbind
; ac_word
=$2
2313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_word" >&5
2315 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 if test -n "$gnat"; then
2319 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2321 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2323 for ac_dir
in $ac_dummy; do
2324 test -z "$ac_dir" && ac_dir
=.
2325 if test -f $ac_dir/$ac_word; then
2326 ac_cv_prog_gnat
="yes"
2331 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2334 gnat
="$ac_cv_prog_gnat"
2335 if test -n "$gnat"; then
2336 echo "$ac_t""$gnat" 1>&6
2338 echo "$ac_t""no" 1>&6
2342 # Do we have a single-tree copy of texinfo?
2343 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2344 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2345 gcc_cv_prog_makeinfo_modern
=yes
2346 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2348 # See if makeinfo has been installed and is modern enough
2349 # that we can use it.
2350 # Extract the first word of "makeinfo", so it can be a program name with args.
2351 set dummy makeinfo
; ac_word
=$2
2352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_word" >&5
2354 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 if test -n "$MAKEINFO"; then
2358 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2360 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2362 for ac_dir
in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir
=.
2364 if test -f $ac_dir/$ac_word; then
2365 ac_cv_prog_MAKEINFO
="makeinfo"
2372 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2373 if test -n "$MAKEINFO"; then
2374 echo "$ac_t""$MAKEINFO" 1>&6
2376 echo "$ac_t""no" 1>&6
2379 if test -n "$MAKEINFO"; then
2380 # Found it, now check the version.
2381 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2382 echo "configure:2383: checking for modern makeinfo" >&5
2383 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2387 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2388 echo "configure:2389: version of makeinfo is $ac_prog_version" >&5
2389 case $ac_prog_version in
2390 '') gcc_cv_prog_makeinfo_modern
=no
;;
2391 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2392 gcc_cv_prog_makeinfo_modern
=yes;;
2393 *) gcc_cv_prog_makeinfo_modern
=no
;;
2398 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2400 gcc_cv_prog_makeinfo_modern
=no
2405 if test $gcc_cv_prog_makeinfo_modern = no
; then
2406 echo "configure: warning:
2407 *** Makeinfo is missing or too old.
2408 *** Info documentation will not be built or installed." 1>&2
2413 INSTALL_INFO
=install-info
2416 # See if the stage1 system preprocessor understands the ANSI C
2417 # preprocessor stringification operator.
2420 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2421 echo "configure:2422: checking for preprocessor stringizing operator" >&5
2422 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2431 char *s = x(teststring);
2434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2435 egrep "#teststring" >/dev
/null
2>&1; then
2437 ac_cv_c_stringize
=no
2440 ac_cv_c_stringize
=yes
2446 if test "${ac_cv_c_stringize}" = yes
2448 cat >> confdefs.h
<<\EOF
2449 #define HAVE_STRINGIZE 1
2453 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2456 # Use <inttypes.h> only if it exists,
2457 # doesn't clash with <sys/types.h>, and declares intmax_t.
2458 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2459 echo "configure:2460: checking for inttypes.h" >&5
2460 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 cat > conftest.
$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2466 #include <sys/types.h>
2467 #include <inttypes.h>
2472 if { (eval echo configure
:2473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2474 gcc_cv_header_inttypes_h
=yes
2476 echo "configure: failed program was:" >&5
2477 cat conftest.
$ac_ext >&5
2479 gcc_cv_header_inttypes_h
=no
2484 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2485 if test $gcc_cv_header_inttypes_h = yes; then
2486 cat >> confdefs.h
<<\EOF
2487 #define HAVE_INTTYPES_H 1
2493 # Determine if enumerated bitfields are unsigned. ISO C says they can
2494 # be either signed or unsigned.
2496 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2497 echo "configure:2498: checking for unsigned enumerated bitfields" >&5
2498 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 if test "$cross_compiling" = yes; then
2502 gcc_cv_enum_bf_unsigned
=yes
2504 cat > conftest.
$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2508 enum t { BLAH = 128 } ;
2509 struct s_t { enum t member : 8; } s ;
2513 if (s.member < 0) exit(1);
2518 if { (eval echo configure
:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2520 gcc_cv_enum_bf_unsigned
=yes
2522 echo "configure: failed program was:" >&5
2523 cat conftest.
$ac_ext >&5
2525 gcc_cv_enum_bf_unsigned
=no
2532 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2533 if test $gcc_cv_enum_bf_unsigned = yes; then
2534 cat >> confdefs.h
<<\EOF
2535 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2540 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2541 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2542 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2543 fputs_unlocked getrusage valloc
iconv nl_langinfo
2545 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_func" >&5
2547 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.
$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 /* System header to define __stub macros and hopefully few prototypes,
2554 which can conflict with char $ac_func(); below. */
2556 /* Override any gcc2 internal prototype to avoid an error. */
2557 /* We use char because int might match the return type of a gcc2
2558 builtin and then its argument prototype would still apply. */
2563 /* The GNU C library defines this for functions which it implements
2564 to always fail with ENOSYS. Some functions are actually named
2565 something starting with __ and the normal name is an alias. */
2566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2574 if { (eval echo configure
:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2576 eval "ac_cv_func_$ac_func=yes"
2578 echo "configure: failed program was:" >&5
2579 cat conftest.
$ac_ext >&5
2581 eval "ac_cv_func_$ac_func=no"
2586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2589 cat >> confdefs.h
<<EOF
2590 #define $ac_tr_func 1
2594 echo "$ac_t""no" 1>&6
2599 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2600 echo "configure:2601: checking for ssize_t" >&5
2601 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.
$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2607 #include <sys/types.h>
2613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2614 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2616 ac_cv_type_ssize_t
=yes
2619 ac_cv_type_ssize_t
=no
2624 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2625 if test $ac_cv_type_ssize_t = no
; then
2626 cat >> confdefs.h
<<\EOF
2633 # Try to determine the array type of the second argument of getgroups
2634 # for the target system (int or gid_t).
2635 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2636 echo "configure:2637: checking for uid_t in sys/types.h" >&5
2637 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 cat > conftest.
$ac_ext <<EOF
2641 #line 2642 "configure"
2642 #include "confdefs.h"
2643 #include <sys/types.h>
2645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2646 egrep "uid_t" >/dev
/null
2>&1; then
2648 ac_cv_type_uid_t
=yes
2657 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2658 if test $ac_cv_type_uid_t = no
; then
2659 cat >> confdefs.h
<<\EOF
2663 cat >> confdefs.h
<<\EOF
2669 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2670 echo "configure:2671: checking type of array argument to getgroups" >&5
2671 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 if test "$cross_compiling" = yes; then
2675 ac_cv_type_getgroups
=cross
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2681 /* Thanks to Mike Rendell for this test. */
2682 #include <sys/types.h>
2685 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2690 union { gid_t gval; long lval; } val;
2693 for (i = 0; i < NGID; i++)
2694 gidset[i] = val.gval;
2695 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2697 /* Exit non-zero if getgroups seems to require an array of ints. This
2698 happens when gid_t is short but getgroups modifies an array of ints. */
2699 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2703 if { (eval echo configure
:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2705 ac_cv_type_getgroups
=gid_t
2707 echo "configure: failed program was:" >&5
2708 cat conftest.
$ac_ext >&5
2710 ac_cv_type_getgroups
=int
2715 if test $ac_cv_type_getgroups = cross
; then
2716 cat > conftest.
$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2722 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2724 ac_cv_type_getgroups
=gid_t
2727 ac_cv_type_getgroups
=int
2734 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2735 cat >> confdefs.h
<<EOF
2736 #define GETGROUPS_T $ac_cv_type_getgroups
2740 if test "${target}" = "${build}"; then
2741 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2744 # This condition may need some tweaking. It should include all
2745 # targets where the array type of the second argument of getgroups
2746 # is int and the type of gid_t is not equivalent to int.
2747 *-*-sunos* |
*-*-ultrix*)
2748 TARGET_GETGROUPS_T
=int
2751 TARGET_GETGROUPS_T
=gid_t
2757 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2758 echo "configure:2759: checking for vprintf" >&5
2759 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.
$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2765 /* System header to define __stub macros and hopefully few prototypes,
2766 which can conflict with char vprintf(); below. */
2768 /* Override any gcc2 internal prototype to avoid an error. */
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2775 /* The GNU C library defines this for functions which it implements
2776 to always fail with ENOSYS. Some functions are actually named
2777 something starting with __ and the normal name is an alias. */
2778 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2786 if { (eval echo configure
:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2788 eval "ac_cv_func_vprintf=yes"
2790 echo "configure: failed program was:" >&5
2791 cat conftest.
$ac_ext >&5
2793 eval "ac_cv_func_vprintf=no"
2798 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 cat >> confdefs.h
<<\EOF
2801 #define HAVE_VPRINTF 1
2805 echo "$ac_t""no" 1>&6
2808 if test "$ac_cv_func_vprintf" != yes; then
2809 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2810 echo "configure:2811: checking for _doprnt" >&5
2811 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* System header to define __stub macros and hopefully few prototypes,
2818 which can conflict with char _doprnt(); below. */
2820 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2827 /* The GNU C library defines this for functions which it implements
2828 to always fail with ENOSYS. Some functions are actually named
2829 something starting with __ and the normal name is an alias. */
2830 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2838 if { (eval echo configure
:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2840 eval "ac_cv_func__doprnt=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.
$ac_ext >&5
2845 eval "ac_cv_func__doprnt=no"
2850 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2852 cat >> confdefs.h
<<\EOF
2853 #define HAVE_DOPRNT 1
2857 echo "$ac_t""no" 1>&6
2864 if test $ac_cv_func_vprintf != yes ; then
2866 if test $ac_cv_func__doprnt != yes ; then
2873 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2874 echo "configure:2875: checking whether the printf functions support %p" >&5
2875 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 if test "$cross_compiling" = yes; then
2879 gcc_cv_func_printf_ptr
=no
2881 cat > conftest.
$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2889 char *p = buf, *q = NULL;
2890 sprintf(buf, "%p", p);
2891 sscanf(buf, "%p", &q);
2895 if { (eval echo configure
:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2897 gcc_cv_func_printf_ptr
=yes
2899 echo "configure: failed program was:" >&5
2900 cat conftest.
$ac_ext >&5
2902 gcc_cv_func_printf_ptr
=no
2907 rm -f core core.
* *.core
2910 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2911 if test $gcc_cv_func_printf_ptr = yes ; then
2912 cat >> confdefs.h
<<\EOF
2913 #define HAVE_PRINTF_PTR 1
2921 # Under some versions of uwin, vfork is notoriously buggy and the test
2922 # can hang configure; on other versions, vfork exists just as a stub.
2923 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2924 ac_cv_func_vfork_works
=no
2927 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2928 echo "configure:2929: checking for pid_t" >&5
2929 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 cat > conftest.
$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2935 #include <sys/types.h>
2941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2942 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2944 ac_cv_type_pid_t
=yes
2952 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2953 if test $ac_cv_type_pid_t = no
; then
2954 cat >> confdefs.h
<<\EOF
2960 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2961 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2962 echo "configure:2963: checking for vfork.h" >&5
2963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.
$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2971 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2972 { (eval echo configure
:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2973 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2974 if test -z "$ac_err"; then
2976 eval "ac_cv_header_$ac_safe=yes"
2979 echo "configure: failed program was:" >&5
2980 cat conftest.
$ac_ext >&5
2982 eval "ac_cv_header_$ac_safe=no"
2986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2988 cat >> confdefs.h
<<\EOF
2989 #define HAVE_VFORK_H 1
2993 echo "$ac_t""no" 1>&6
2996 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2997 echo "configure:2998: checking for working vfork" >&5
2998 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 if test "$cross_compiling" = yes; then
3002 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3003 echo "configure:3004: checking for vfork" >&5
3004 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 cat > conftest.
$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3010 /* System header to define __stub macros and hopefully few prototypes,
3011 which can conflict with char vfork(); below. */
3013 /* Override any gcc2 internal prototype to avoid an error. */
3014 /* We use char because int might match the return type of a gcc2
3015 builtin and then its argument prototype would still apply. */
3020 /* The GNU C library defines this for functions which it implements
3021 to always fail with ENOSYS. Some functions are actually named
3022 something starting with __ and the normal name is an alias. */
3023 #if defined (__stub_vfork) || defined (__stub___vfork)
3031 if { (eval echo configure
:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3033 eval "ac_cv_func_vfork=yes"
3035 echo "configure: failed program was:" >&5
3036 cat conftest.
$ac_ext >&5
3038 eval "ac_cv_func_vfork=no"
3043 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3047 echo "$ac_t""no" 1>&6
3050 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3052 cat > conftest.
$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 /* Thanks to Paul Eggert for this test. */
3057 #include <sys/types.h>
3058 #include <sys/stat.h>
3059 #ifdef HAVE_UNISTD_H
3065 /* On some sparc systems, changes by the child to local and incoming
3066 argument registers are propagated back to the parent.
3067 The compiler is told about this with #include <vfork.h>,
3068 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3069 Test for this by using a static variable whose address
3070 is put into a register that is clobbered by the vfork. */
3073 sparc_address_test (int arg)
3075 sparc_address_test (arg) int arg;
3093 pid_t parent = getpid ();
3096 sparc_address_test ();
3101 /* Here is another test for sparc vfork register problems.
3102 This test uses lots of local variables, at least
3103 as many local variables as main has allocated so far
3104 including compiler temporaries. 4 locals are enough for
3105 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3106 A buggy compiler should reuse the register of parent
3107 for one of the local variables, since it will think that
3108 parent can't possibly be used any more in this routine.
3109 Assigning to the local variable will thus munge parent
3110 in the parent process. */
3112 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3113 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3114 /* Convince the compiler that p..p7 are live; otherwise, it might
3115 use the same hardware register for all 8 local variables. */
3116 if (p != p1 || p != p2 || p != p3 || p != p4
3117 || p != p5 || p != p6 || p != p7)
3120 /* On some systems (e.g. IRIX 3.3),
3121 vfork doesn't separate parent from child file descriptors.
3122 If the child closes a descriptor before it execs or exits,
3123 this munges the parent's descriptor as well.
3124 Test for this by closing stdout in the child. */
3125 _exit(close(fileno(stdout)) != 0);
3130 while (wait(&status) != child)
3133 /* Was there some problem with vforking? */
3136 /* Did the child fail? (This shouldn't happen.) */
3139 /* Did the vfork/compiler bug occur? */
3140 || parent != getpid()
3142 /* Did the file descriptor bug occur? */
3143 || fstat(fileno(stdout), &st) != 0
3148 if { (eval echo configure
:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3150 ac_cv_func_vfork_works
=yes
3152 echo "configure: failed program was:" >&5
3153 cat conftest.
$ac_ext >&5
3155 ac_cv_func_vfork_works
=no
3162 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3163 if test $ac_cv_func_vfork_works = no
; then
3164 cat >> confdefs.h
<<\EOF
3170 for ac_hdr
in unistd.h
3172 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3174 echo "configure:3175: checking for $ac_hdr" >&5
3175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 cat > conftest.
$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3183 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3184 { (eval echo configure
:3185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3185 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3186 if test -z "$ac_err"; then
3188 eval "ac_cv_header_$ac_safe=yes"
3191 echo "configure: failed program was:" >&5
3192 cat conftest.
$ac_ext >&5
3194 eval "ac_cv_header_$ac_safe=no"
3198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3199 echo "$ac_t""yes" 1>&6
3200 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3201 cat >> confdefs.h
<<EOF
3202 #define $ac_tr_hdr 1
3206 echo "$ac_t""no" 1>&6
3210 for ac_func
in getpagesize
3212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3213 echo "configure:3214: checking for $ac_func" >&5
3214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 cat > conftest.
$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 /* System header to define __stub macros and hopefully few prototypes,
3221 which can conflict with char $ac_func(); below. */
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3230 /* The GNU C library defines this for functions which it implements
3231 to always fail with ENOSYS. Some functions are actually named
3232 something starting with __ and the normal name is an alias. */
3233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3241 if { (eval echo configure
:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3243 eval "ac_cv_func_$ac_func=yes"
3245 echo "configure: failed program was:" >&5
3246 cat conftest.
$ac_ext >&5
3248 eval "ac_cv_func_$ac_func=no"
3253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3255 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3256 cat >> confdefs.h
<<EOF
3257 #define $ac_tr_func 1
3261 echo "$ac_t""no" 1>&6
3265 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3266 echo "configure:3267: checking for working mmap which provides zeroed pages anywhere" >&5
3267 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test "$cross_compiling" = yes; then
3271 ac_cv_func_mmap_anywhere
=no
3273 cat > conftest.
$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3277 /* Test by Richard Henderson and Alexandre Oliva.
3278 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3279 #include <sys/types.h>
3281 #include <sys/mman.h>
3283 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3284 # define MAP_ANONYMOUS MAP_ANON
3287 /* This mess was copied from the GNU getpagesize.h. */
3288 #ifndef HAVE_GETPAGESIZE
3289 # ifdef HAVE_UNISTD_H
3290 # include <unistd.h>
3293 /* Assume that all systems that can run configure have sys/param.h. */
3294 # ifndef HAVE_SYS_PARAM_H
3295 # define HAVE_SYS_PARAM_H 1
3298 # ifdef _SC_PAGESIZE
3299 # define getpagesize() sysconf(_SC_PAGESIZE)
3300 # else /* no _SC_PAGESIZE */
3301 # ifdef HAVE_SYS_PARAM_H
3302 # include <sys/param.h>
3303 # ifdef EXEC_PAGESIZE
3304 # define getpagesize() EXEC_PAGESIZE
3305 # else /* no EXEC_PAGESIZE */
3307 # define getpagesize() NBPG * CLSIZE
3310 # endif /* no CLSIZE */
3311 # else /* no NBPG */
3313 # define getpagesize() NBPC
3314 # else /* no NBPC */
3316 # define getpagesize() PAGESIZE
3317 # endif /* PAGESIZE */
3318 # endif /* no NBPC */
3319 # endif /* no NBPG */
3320 # endif /* no EXEC_PAGESIZE */
3321 # else /* no HAVE_SYS_PARAM_H */
3322 # define getpagesize() 8192 /* punt totally */
3323 # endif /* no HAVE_SYS_PARAM_H */
3324 # endif /* no _SC_PAGESIZE */
3326 #endif /* no HAVE_GETPAGESIZE */
3333 #ifndef MAP_ANONYMOUS
3334 fd = open("/dev/zero", O_RDWR);
3340 #ifdef MAP_ANONYMOUS
3341 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3342 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3344 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3346 if (x == (char *) -1)
3351 if (munmap(x, pg) < 0)
3357 if { (eval echo configure
:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3359 ac_cv_func_mmap_anywhere
=yes
3361 echo "configure: failed program was:" >&5
3362 cat conftest.
$ac_ext >&5
3364 ac_cv_func_mmap_anywhere
=no
3371 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3372 if test $ac_cv_func_mmap_anywhere = yes; then
3373 cat >> confdefs.h
<<\EOF
3374 #define HAVE_MMAP_ANYWHERE 1
3379 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3380 echo "configure:3381: checking for working mmap of a file" >&5
3381 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 # Create a file one thousand bytes long.
3385 for i
in 1 2 3 4 5 6 7 8 9 0
3386 do for j
in 1 2 3 4 5 6 7 8 9 0
3389 done > conftestdata$$
3391 if test "$cross_compiling" = yes; then
3392 ac_cv_func_mmap_file
=no
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3398 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3399 Richard Henderson and Alexandre Oliva.
3400 Check whether read-only mmap of a plain file works. */
3401 #include <sys/types.h>
3402 #include <sys/stat.h>
3404 #include <sys/mman.h>
3412 fd = open("conftestdata$$", O_RDONLY);
3416 if (fstat (fd, &st))
3419 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3420 if (x == (char *) -1)
3423 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3426 if (munmap(x, st.st_size) < 0)
3432 if { (eval echo configure
:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3434 ac_cv_func_mmap_file
=yes
3436 echo "configure: failed program was:" >&5
3437 cat conftest.
$ac_ext >&5
3439 ac_cv_func_mmap_file
=no
3446 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3447 if test $ac_cv_func_mmap_file = yes; then
3448 cat >> confdefs.h
<<\EOF
3449 #define HAVE_MMAP_FILE 1
3455 # We will need to find libiberty.h and ansidecl.h
3456 saved_CFLAGS
="$CFLAGS"
3457 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3458 for ac_func
in bcopy bzero bcmp \
3459 index rindex getenv atol sbrk abort atof getcwd getwd \
3460 strsignal putc_unlocked fputs_unlocked strstr environ \
3461 malloc realloc calloc free
basename getopt
3463 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3464 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3465 echo "configure:3466: checking whether $ac_func is declared" >&5
3466 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3467 echo $ac_n "(cached) $ac_c" 1>&6
3469 cat > conftest.
$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3472 #include "gansidecl.h"
3477 char *(*pfn) = (char *(*)) $ac_func ;
3481 if { (eval echo configure
:3482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3483 eval "gcc_cv_have_decl_$ac_func=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.
$ac_ext >&5
3488 eval "gcc_cv_have_decl_$ac_func=no"
3493 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3495 #define $ac_tr_decl 1
3499 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3500 #define $ac_tr_decl 0
3506 if test x
= y
; then
3507 cat >> confdefs.h
<<EOF
3508 #define HAVE_DECL_BCOPY 1
3510 cat >> confdefs.h
<<EOF
3511 #define HAVE_DECL_BZERO 1
3513 cat >> confdefs.h
<<EOF
3514 #define HAVE_DECL_BCMP 1
3517 cat >> confdefs.h
<<EOF
3518 #define HAVE_DECL_INDEX 1
3520 cat >> confdefs.h
<<EOF
3521 #define HAVE_DECL_RINDEX 1
3523 cat >> confdefs.h
<<EOF
3524 #define HAVE_DECL_GETENV 1
3526 cat >> confdefs.h
<<EOF
3527 #define HAVE_DECL_ATOL 1
3529 cat >> confdefs.h
<<EOF
3530 #define HAVE_DECL_SBRK 1
3532 cat >> confdefs.h
<<EOF
3533 #define HAVE_DECL_ABORT 1
3535 cat >> confdefs.h
<<EOF
3536 #define HAVE_DECL_ATOF 1
3538 cat >> confdefs.h
<<EOF
3539 #define HAVE_DECL_GETCWD 1
3541 cat >> confdefs.h
<<EOF
3542 #define HAVE_DECL_GETWD 1
3545 cat >> confdefs.h
<<EOF
3546 #define HAVE_DECL_STRSIGNAL 1
3548 cat >> confdefs.h
<<EOF
3549 #define HAVE_DECL_PUTC_UNLOCKED 1
3551 cat >> confdefs.h
<<EOF
3552 #define HAVE_DECL_FPUTS_UNLOCKED 1
3554 cat >> confdefs.h
<<EOF
3555 #define HAVE_DECL_STRSTR 1
3557 cat >> confdefs.h
<<EOF
3558 #define HAVE_DECL_ENVIRON 1
3561 cat >> confdefs.h
<<EOF
3562 #define HAVE_DECL_MALLOC 1
3564 cat >> confdefs.h
<<EOF
3565 #define HAVE_DECL_REALLOC 1
3567 cat >> confdefs.h
<<EOF
3568 #define HAVE_DECL_CALLOC 1
3570 cat >> confdefs.h
<<EOF
3571 #define HAVE_DECL_FREE 1
3573 cat >> confdefs.h
<<EOF
3574 #define HAVE_DECL_BASENAME 1
3576 cat >> confdefs.h
<<EOF
3577 #define HAVE_DECL_GETOPT 1
3582 for ac_func
in getrlimit setrlimit getrusage
3584 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3585 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3586 echo "configure:3587: checking whether $ac_func is declared" >&5
3587 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 cat > conftest.
$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 #include "gansidecl.h"
3595 #ifdef HAVE_SYS_RESOURCE_H
3596 #include <sys/resource.h>
3602 char *(*pfn) = (char *(*)) $ac_func ;
3606 if { (eval echo configure
:3607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3608 eval "gcc_cv_have_decl_$ac_func=yes"
3610 echo "configure: failed program was:" >&5
3611 cat conftest.
$ac_ext >&5
3613 eval "gcc_cv_have_decl_$ac_func=no"
3618 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3620 #define $ac_tr_decl 1
3624 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3625 #define $ac_tr_decl 0
3631 if test x
= y
; then
3632 cat >> confdefs.h
<<EOF
3633 #define HAVE_DECL_GETRLIMIT 1
3635 cat >> confdefs.h
<<EOF
3636 #define HAVE_DECL_SETRLIMIT 1
3638 cat >> confdefs.h
<<EOF
3639 #define HAVE_DECL_GETRUSAGE 1
3644 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3645 CFLAGS
="$saved_CFLAGS"
3647 # mkdir takes a single argument on some systems.
3648 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3649 echo "configure:3650: checking if mkdir takes one argument" >&5
3650 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 cat > conftest.
$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3657 #include <sys/types.h>
3658 #ifdef HAVE_SYS_STAT_H
3659 # include <sys/stat.h>
3661 #ifdef HAVE_UNISTD_H
3662 # include <unistd.h>
3664 #ifdef HAVE_DIRECT_H
3665 # include <direct.h>
3671 if { (eval echo configure
:3672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3673 gcc_cv_mkdir_takes_one_arg
=no
3675 echo "configure: failed program was:" >&5
3676 cat conftest.
$ac_ext >&5
3678 gcc_cv_mkdir_takes_one_arg
=yes
3683 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3684 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3685 cat >> confdefs.h
<<\EOF
3686 #define MKDIR_TAKES_ONE_ARG 1
3700 build_install_headers_dir
=install-headers-tar
3705 host_truncate_target
=
3708 # Decode the host machine, then the target machine.
3709 # For the host machine, we save the xm_file variable as host_xm_file;
3710 # then we decode the target machine and forget everything else
3711 # that came from the host machine.
3712 for machine
in $build $host $target; do
3726 # Set this to force installation and use of collect2.
3728 # Set this to override the default target model.
3730 # Set this to control how the header file directory is installed.
3731 install_headers_dir
=install-headers-tar
3732 # Set this to a non-empty list of args to pass to cpp if the target
3733 # wants its .md file passed through cpp.
3735 # Set this if directory names should be truncated to 14 characters.
3737 # Set this if gdb needs a dir command with `dirname $out_file`
3738 gdb_needs_out_file_path
=
3739 # Set this if the build machine requires executables to have a
3742 # Set this to control which thread package will be used.
3744 # Reinitialize these from the flag values every loop pass, since some
3745 # configure entries modify them.
3747 gnu_ld
="$gnu_ld_flag"
3748 enable_threads
=$enable_threads_flag
3750 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3751 # updated in each machine entry.
3753 cpu_type
=`echo $machine | sed 's/-.*$//'`
3793 tm_file
=${cpu_type}/${cpu_type}.h
3794 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3795 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3797 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3799 # On a.out targets, we need to use collect2.
3806 # Common parts for linux and openbsd systems
3809 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3812 tm_file
=${cpu_type}/openbsd.h
3813 tmake_file
="t-libc-ok t-openbsd"
3814 # avoid surprises, always provide an xm-openbsd file
3815 xm_file
=${cpu_type}/xm-openbsd.h
3816 # don't depend on processor x-fragments as well
3818 if test x
$enable_threads = xyes
; then
3820 tmake_file
="${tmake_file} t-openbsd-thread"
3826 # Support site-specific machine types.
3828 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3829 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3830 xm_file
=${cpu_type}/xm-
$rest.h
3831 tm_file
=${cpu_type}/$rest.h
3832 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3833 then xmake_file
=${cpu_type}/x-
$rest; \
3836 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3837 then tmake_file
=${cpu_type}/t-
$rest; \
3843 a29k-
*-bsd* | a29k-
*-sym1*)
3844 tm_file
="${tm_file} a29k/unix.h"
3846 xmake_file
=a29k
/x-unix
3849 a29k-
*-udi | a29k-
*-coff)
3850 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3851 tmake_file
=a29k
/t-a29kbare
3854 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3855 tmake_file
=a29k
/t-vx29k
3856 extra_parts
="crtbegin.o crtend.o"
3857 thread_file
='vxworks'
3859 a29k-
*-*) # Default a29k environment.
3863 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3865 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3866 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3868 # GAS + IEEE_CONFORMANT
3869 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3871 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3872 xmake_file
="x-interix alpha/t-pe"
3873 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3874 if test x
$enable_threads = xyes
; then
3877 if test x
$stabs = xyes
; then
3878 tm_file
="${tm_file} dbxcoff.h"
3880 #prefix='$$INTERIX_ROOT'/usr/contrib
3881 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3883 alpha
*-*-linux*ecoff
*)
3884 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3885 target_cpu_default
="MASK_GAS"
3886 tmake_file
="alpha/t-alpha alpha/t-ieee"
3891 alpha
*-*-linux*libc1
*)
3892 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3893 target_cpu_default
="MASK_GAS"
3894 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3895 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3898 if test x
$enable_threads = xyes
; then
3903 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3904 target_cpu_default
="MASK_GAS"
3905 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3906 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3909 if test x
$enable_threads = xyes
; then
3914 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3915 target_cpu_default
="MASK_GAS"
3916 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3917 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3923 # default x-alpha is only appropriate for dec-osf.
3924 target_cpu_default
="MASK_GAS"
3925 tmake_file
="alpha/t-alpha alpha/t-ieee"
3929 if test x
$stabs = xyes
3931 tm_file
="${tm_file} dbx.h"
3933 if test x
$gas != xyes
3935 extra_passes
="mips-tfile mips-tdump"
3938 tmake_file
="alpha/t-alpha alpha/t-ieee"
3941 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3944 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3947 tm_file
="${tm_file} alpha/osf.h"
3948 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3949 # a broken tar, so we use cpio instead.
3950 install_headers_dir
=install-headers-cpio
3953 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3957 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3958 target_cpu_default
=MASK_SUPPORT_ARCH
3963 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3964 tmake_file
="alpha/t-alpha alpha/t-ieee"
3967 extra_passes
="mips-tfile mips-tdump"
3970 thread_file
='vxworks'
3973 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3974 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3975 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3976 xmake_file
=winnt
/x-winnt
3977 extra_host_objs
=oldnames.o
3978 extra_gcc_objs
="spawnv.o oldnames.o"
3979 if test x
$gnu_ld != xyes
3981 extra_programs
=ld.exe
3983 if test x
$enable_threads = xyes
; then
3989 xm_file
="${xm_file} alpha/xm-vms.h"
3990 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
3993 extra_parts
="crtinit.o crtfini.o"
3995 arm-
*-coff* | armel-
*-coff*)
3997 tmake_file
=arm
/t-arm-coff
4001 tmake_file
=arm
/t-arm-coff
4002 thread_file
='vxworks'
4004 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
4005 tm_file
=arm
/riscix1-1.h
4008 arm-
*-riscix*) # Acorn RISC machine
4009 if test x
$gas = xyes
4011 tm_file
=arm
/rix-gas.h
4013 tm_file
=arm
/riscix.h
4015 xmake_file
=arm
/x-riscix
4016 tmake_file
=arm
/t-riscix
4019 arm-semi-aout | armel-semi-aout
)
4021 tmake_file
=arm
/t-semi
4023 arm-semi-aof | armel-semi-aof
)
4024 tm_file
=arm
/semiaof.h
4025 tmake_file
=arm
/t-semiaof
4028 tm_file
=arm
/netbsd.h
4029 tmake_file
="t-netbsd arm/t-netbsd"
4032 arm
*-*-linux*aout
*) # ARM GNU/Linux with a.out
4035 tm_file
=arm
/linux-aout.h
4036 tmake_file
=arm
/t-linux
4039 arm
*-*-linux*oldld
*) # ARM GNU/Linux with old ELF linker
4040 xm_file
=arm
/xm-linux.h
4042 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
4045 tm_file
="arm/linux-elf26.h $tm_file"
4048 tmake_file
="t-linux arm/t-linux"
4049 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4051 case x
${enable_threads} in
4052 x | xyes | xpthreads | xposix
)
4057 arm
*-*-linux*) # ARM GNU/Linux with ELF
4058 xm_file
=arm
/xm-linux.h
4060 tm_file
="arm/linux-elf.h"
4063 tm_file
="arm/linux-elf26.h $tm_file"
4066 tmake_file
="t-linux arm/t-linux"
4067 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4069 case x
${enable_threads} in
4070 x | xyes | xpthreads | xposix
)
4075 arm
*-*-uclinux*) # ARM ucLinux
4076 tm_file
=arm
/uclinux-elf.h
4077 tmake_file
=arm
/t-arm-elf
4081 tmake_file
=arm
/t-arm-aout
4084 tm_file
=arm
/ecos-elf.h
4085 tmake_file
=arm
/t-arm-elf
4088 tm_file
=arm
/unknown-elf.h
4089 tmake_file
=arm
/t-arm-elf
4092 tm_file
=arm
/conix-elf.h
4093 tmake_file
=arm
/t-arm-elf
4096 tm_file
=arm
/unknown-elf-oabi.h
4097 tmake_file
=arm
/t-arm-elf
4106 c1-convex-
*) # Convex C1
4107 target_cpu_default
=1
4110 c2-convex-
*) # Convex C2
4111 target_cpu_default
=2
4115 target_cpu_default
=4
4119 target_cpu_default
=8
4123 target_cpu_default
=16
4129 tmake_file
=c4x
/t-c4x
4131 clipper-intergraph-clix
*)
4132 tm_file
="${tm_file} svr3.h clipper/clix.h"
4133 xm_file
=clipper
/xm-clix.h
4134 xmake_file
=clipper
/x-clix
4135 extra_headers
=va-clipper.h
4136 extra_parts
="crtbegin.o crtend.o"
4137 install_headers_dir
=install-headers-cpio
4148 tm_file
="fr30/fr30.h"
4149 tmake_file
=fr30
/t-fr30
4150 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4156 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4157 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4158 tmake_file
="t-linux pa/t-linux"
4159 extra_parts
="crtbegin.o crtend.o"
4162 if test x
$enable_threads = xyes
; then
4167 target_cpu_default
="MASK_PA_11"
4168 tmake_file
=pa
/t-openbsd
4171 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4172 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4173 xm_file
=pa
/xm-papro.h
4177 target_cpu_default
="MASK_PA_11"
4178 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4182 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4183 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4184 xm_file
=pa
/xm-papro.h
4188 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4192 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4193 target_cpu_default
="MASK_PA_11"
4197 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4201 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4202 xm_file
=pa
/xm-pahpux.h
4203 xmake_file
=pa
/x-pa-hpux
4204 if test x
$gas = xyes
4206 tm_file
="${tm_file} pa/gas.h"
4208 install_headers_dir
=install-headers-cpio
4211 hppa1.0
-*-hpux8.0
[0-2]*)
4212 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4213 xm_file
=pa
/xm-pahpux.h
4214 xmake_file
=pa
/x-pa-hpux
4215 if test x
$gas = xyes
4217 tm_file
="${tm_file} pa/pa-gas.h"
4219 tm_file
="pa/pa-oldas.h ${tm_file}"
4221 install_headers_dir
=install-headers-cpio
4224 hppa1.1
-*-hpux8.0
[0-2]*)
4225 target_cpu_default
="MASK_PA_11"
4226 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4227 xm_file
=pa
/xm-pahpux.h
4228 xmake_file
=pa
/x-pa-hpux
4229 if test x
$gas = xyes
4231 tm_file
="${tm_file} pa/pa-gas.h"
4233 tm_file
="pa/pa-oldas.h ${tm_file}"
4235 install_headers_dir
=install-headers-cpio
4239 target_cpu_default
="MASK_PA_11"
4240 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4241 xm_file
=pa
/xm-pahpux.h
4242 xmake_file
=pa
/x-pa-hpux
4243 if test x
$gas = xyes
4245 tm_file
="${tm_file} pa/pa-gas.h"
4247 install_headers_dir
=install-headers-cpio
4251 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4252 xm_file
=pa
/xm-pahpux.h
4253 xmake_file
=pa
/x-pa-hpux
4254 if test x
$gas = xyes
4256 tm_file
="${tm_file} pa/pa-gas.h"
4258 install_headers_dir
=install-headers-cpio
4261 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4262 target_cpu_default
="MASK_PA_11"
4263 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4265 xm_file
=pa
/xm-pahpux.h
4266 xmake_file
=pa
/x-pa-hpux
4268 if test x
$gas = xyes
4270 tm_file
="${tm_file} pa/pa-gas.h"
4272 if test x
$enable_threads = x
; then
4273 enable_threads
=$have_pthread_h
4275 case x
${enable_threads} in
4277 tmake_file
="${tmake_file} pa/t-dce-thr"
4280 install_headers_dir
=install-headers-cpio
4284 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4286 xm_file
=pa
/xm-pahpux.h
4287 xmake_file
=pa
/x-pa-hpux
4289 if test x
$gas = xyes
4291 tm_file
="${tm_file} pa/pa-gas.h"
4293 if test x
$enable_threads = x
; then
4294 enable_threads
=$have_pthread_h
4296 case x
${enable_threads} in
4298 tmake_file
="${tmake_file} pa/t-dce-thr"
4301 install_headers_dir
=install-headers-cpio
4305 target_cpu_default
="MASK_PA_11"
4306 xm_file
=pa
/xm-pa64hpux.h
4307 xmake_file
=pa
/x-pa-hpux
4309 tm_file
="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
4311 tmake_file
=pa
/t-pa64
4312 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4316 tm_file
="${tm_file} pa/pa-gas.h"
4318 # if [[ x$enable_threads = x ]]; then
4319 # enable_threads=$have_pthread_h
4321 # if [[ x$enable_threads = xyes ]]; then
4323 # tmake_file="${tmake_file} pa/t-dce-thr"
4325 install_headers_dir
=install-headers-cpio
4328 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4329 target_cpu_default
="MASK_PA_11"
4330 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4332 xm_file
=pa
/xm-pahpux.h
4333 xmake_file
=pa
/x-pa-hpux
4335 if test x
$gas = xyes
4337 tm_file
="${tm_file} pa/pa-gas.h"
4339 # if test x$enable_threads = x; then
4340 # enable_threads=$have_pthread_h
4342 # if test x$enable_threads = xyes; then
4344 # tmake_file="${tmake_file} pa/t-dce-thr"
4346 install_headers_dir
=install-headers-cpio
4350 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4352 xm_file
=pa
/xm-pahpux.h
4353 xmake_file
=pa
/x-pa-hpux
4354 if test x
$gas = xyes
4356 tm_file
="${tm_file} pa/pa-gas.h"
4358 # if test x$enable_threads = x; then
4359 # enable_threads=$have_pthread_h
4361 # if test x$enable_threads = xyes; then
4363 # tmake_file="${tmake_file} pa/t-dce-thr"
4365 install_headers_dir
=install-headers-cpio
4368 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
4369 target_cpu_default
="MASK_PA_11"
4370 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4371 xm_file
=pa
/xm-pahpux.h
4372 xmake_file
=pa
/x-pa-hpux
4373 if test x
$gas = xyes
4375 tm_file
="${tm_file} pa/pa-gas.h"
4377 install_headers_dir
=install-headers-cpio
4381 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
4382 xm_file
=pa
/xm-pahpux.h
4383 xmake_file
=pa
/x-pa-hpux
4384 if test x
$gas = xyes
4386 tm_file
="${tm_file} pa/pa-gas.h"
4388 install_headers_dir
=install-headers-cpio
4391 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4392 target_cpu_default
="MASK_PA_11"
4393 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4394 xm_file
=pa
/xm-pahpux.h
4395 xmake_file
=pa
/x-pa-hpux
4396 if test x
$gas = xyes
4398 tm_file
="${tm_file} pa/pa-gas.h"
4400 install_headers_dir
=install-headers-cpio
4404 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4405 xm_file
=pa
/xm-pahpux.h
4406 xmake_file
=pa
/x-pa-hpux
4407 if test x
$gas = xyes
4409 tm_file
="${tm_file} pa/pa-gas.h"
4411 install_headers_dir
=install-headers-cpio
4415 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4416 target_cpu_default
="MASK_PA_11"
4420 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4421 xm_file
=pa
/xm-pampeix.h
4422 xmake_file
=pa
/x-pa-mpeix
4423 echo "You must use gas. Assuming it is already installed."
4424 install_headers_dir
=install-headers-tar
4427 i370-
*-opened*) # IBM 360/370/390 Architecture
4428 xm_file
=i370
/xm-oe.h
4430 xmake_file
=i370
/x-oe
4431 tmake_file
=i370
/t-oe
4434 xm_file
=i370
/xm-mvs.h
4436 tmake_file
=i370
/t-mvs
4439 xm_file
="xm-linux.h i370/xm-linux.h"
4441 tm_file
="i370/linux.h ${tm_file}"
4442 tmake_file
="t-linux i370/t-linux"
4443 # broken_install=yes
4444 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4445 # extra_parts="crtbegin.o crtend.o"
4449 if test x
$enable_threads = xyes
; then
4454 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4455 tm_file
=i386
/i386elf.h
4456 tmake_file
=i386
/t-i386elf
4459 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4460 if test x
$gas = xyes
4462 tm_file
=i386
/aix386.h
4463 extra_parts
="crtbegin.o crtend.o"
4464 tmake_file
=i386
/t-crtstuff
4466 tm_file
=i386
/aix386ng.h
4469 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4471 xmake_file
=i386
/x-aix
4473 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4474 xm_file
="xm-alloca.h ${xm_file}"
4475 xm_defines
="USG POSIX SMALL_ARG_MAX"
4476 xmake_file
=i386
/x-ncr3000
4477 if test x
$stabs = xyes
-a x
$gas = xyes
4479 tm_file
=i386
/sysv4gdb.h
4481 tm_file
=i386
/sysv4.h
4483 extra_parts
="crtbegin.o crtend.o"
4484 tmake_file
=i386
/t-crtpic
4488 xm_file
=i386
/xm-next.h
4489 tmake_file
=i386
/t-next
4490 xmake_file
=i386
/x-next
4491 extra_objs
=nextstep.o
4492 extra_parts
="crtbegin.o crtend.o"
4493 if test x
$enable_threads = xyes
; then
4497 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4499 if test x
$gas = xyes
4501 tm_file
=i386
/seq-gas.h
4503 tm_file
=i386
/sequent.h
4506 i
[34567]86-sequent-ptx1*)
4507 xm_defines
="USG SVR3"
4508 xmake_file
=i386
/x-sysv3
4509 tm_file
=i386
/seq-sysv3.h
4510 tmake_file
=i386
/t-crtstuff
4511 extra_parts
="crtbegin.o crtend.o"
4512 install_headers_dir
=install-headers-cpio
4514 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4515 xm_defines
="USG SVR3"
4516 xmake_file
=i386
/x-sysv3
4517 tm_file
=i386
/seq2-sysv3.h
4518 tmake_file
=i386
/t-crtstuff
4519 extra_parts
="crtbegin.o crtend.o"
4520 install_headers_dir
=install-headers-cpio
4522 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4523 xm_file
="xm-alloca.h ${xm_file}"
4524 xm_defines
="USG POSIX SMALL_ARG_MAX"
4526 tm_file
=i386
/ptx4-i.h
4528 extra_parts
="crtbegin.o crtend.o"
4529 install_headers_dir
=install-headers-cpio
4531 i386-sun-sunos
*) # Sun i386 roadrunner
4536 i
[34567]86-wrs-vxworks*)
4537 tm_file
=i386
/vxi386.h
4538 tmake_file
=i386
/t-i386bare
4539 thread_file
='vxworks'
4542 tm_file
=i386
/i386-aout.h
4543 tmake_file
=i386
/t-i386bare
4545 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4546 xm_file
=i386
/xm-beos.h
4547 tmake_file
='i386/t-beos i386/t-crtpic'
4548 tm_file
=i386
/beos-elf.h
4549 xmake_file
=i386
/x-beos
4550 extra_parts
='crtbegin.o crtend.o'
4552 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4553 tm_file
=i386
/bsd386.h
4554 # tmake_file=t-libc-ok
4557 tm_file
=i386
/386bsd.h
4558 # tmake_file=t-libc-ok
4559 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4562 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4563 tm_file
="i386/freebsd-aout.h i386/perform.h"
4564 tmake_file
=t-freebsd
4566 i
[34567]86-*-freebsd*)
4567 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
4568 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4569 tmake_file
=t-freebsd
4573 case x
${enable_threads} in
4574 xyes | xpthreads | xposix
)
4576 tmake_file
="${tmake_file} t-freebsd-thread"
4580 i
[34567]86-*-netbsd*)
4581 tm_file
=i386
/netbsd.h
4585 i
[34567]86-*-openbsd*)
4586 # we need collect2 until our bug is fixed...
4590 tm_file
=i386
/i386-coff.h
4591 tmake_file
=i386
/t-i386bare
4593 i
[34567]86-*-isc*) # 80386 running ISC system
4594 xm_file
="${xm_file} i386/xm-isc.h"
4595 xm_defines
="USG SVR3"
4597 i
[34567]86-*-isc[34]*)
4598 xmake_file
=i386
/x-isc3
4601 xmake_file
=i386
/x-isc
4604 if test x
$gas = xyes
-a x
$stabs = xyes
4606 tm_file
=i386
/iscdbx.h
4607 tmake_file
=i386
/t-svr3dbx
4608 extra_parts
="svr3.ifile svr3z.ifile"
4610 tm_file
=i386
/isccoff.h
4611 tmake_file
=i386
/t-crtstuff
4612 extra_parts
="crtbegin.o crtend.o"
4614 tmake_file
="$tmake_file i386/t-i386bare"
4615 install_headers_dir
=install-headers-cpio
4617 i
[34567]86-*-linux*oldld
*) # Intel 80386's running GNU/Linux
4619 xmake_file
=x-linux-aout
4620 tmake_file
="t-linux-aout i386/t-crtstuff"
4621 tm_file
=i386
/linux-oldld.h
4625 i
[34567]86-*-linux*aout
*) # Intel 80386's running GNU/Linux
4626 xmake_file
=x-linux-aout
4627 tmake_file
="t-linux-aout i386/t-crtstuff"
4628 tm_file
=i386
/linux-aout.h
4632 i
[34567]86-*-linux*libc1
) # Intel 80386's running GNU/Linux
4633 # GNU/Linux C library 5
4635 tm_file
=i386
/linux.h
4636 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4637 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4640 if test x
$enable_threads = xyes
; then
4641 thread_file
='single'
4644 i
[34567]86-*-linux*) # Intel 80386's running GNU/Linux
4645 # aka GNU/Linux C library 6
4647 tm_file
=i386
/linux.h
4648 tmake_file
="t-linux i386/t-crtstuff"
4649 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4652 if test x
$enable_threads = xyes
; then
4659 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4660 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4663 i
[34567]86-pc-msdosdjgpp*)
4664 xm_file
=i386
/xm-djgpp.h
4665 tm_file
=i386
/djgpp.h
4666 tmake_file
=i386
/t-djgpp
4667 xmake_file
=i386
/x-djgpp
4672 case $host in *pc-msdosdjgpp
*)
4677 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4679 tmake_file
=t-libc-ok
4683 i
[34567]86-*-lynxos*)
4684 if test x
$gas = xyes
4688 tm_file
=i386
/lynx-ng.h
4690 xm_file
=i386
/xm-lynx.h
4691 tmake_file
=i386
/t-i386bare
4696 # tmake_file=t-libc-ok
4699 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4700 if test x
$elf = xyes
4702 tm_file
=i386
/osfelf.h
4705 tm_file
=i386
/osfrose.h
4708 xm_file
="i386/xm-osf.h ${xm_file}"
4709 xmake_file
=i386
/x-osfrose
4710 tmake_file
=i386
/t-osf
4711 extra_objs
=halfpic.o
4713 i
[34567]86-go32-rtems*)
4715 xm_file
=i386
/xm-go32.h
4716 tm_file
=i386
/go32-rtems.h
4717 tmake_file
="i386/t-go32 t-rtems"
4719 i
[34567]86-*-rtemscoff*)
4721 tm_file
=i386
/rtems.h
4722 tmake_file
="i386/t-i386bare t-rtems"
4724 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4726 tm_file
=i386
/rtemself.h
4727 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4728 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4730 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4731 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4732 xm_defines
="USG SVR3"
4733 xmake_file
=i386
/x-sco5
4734 install_headers_dir
=install-headers-cpio
4736 if test x
$gas = xyes
4738 tm_file
="i386/sco5gas.h ${tm_file}"
4739 tmake_file
=i386
/t-sco5gas
4741 tmake_file
=i386
/t-sco5
4743 tmake_file
="$tmake_file i386/t-i386bare"
4744 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4746 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4747 xm_file
="${xm_file} i386/xm-sco.h"
4748 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4749 xmake_file
=i386
/x-sco4
4750 install_headers_dir
=install-headers-cpio
4751 if test x
$stabs = xyes
4753 tm_file
=i386
/sco4dbx.h
4754 tmake_file
=i386
/t-svr3dbx
4755 extra_parts
="svr3.ifile svr3z.rfile"
4758 tmake_file
=i386
/t-crtstuff
4759 extra_parts
="crtbegin.o crtend.o"
4761 tmake_file
="$tmake_file i386/t-i386bare"
4762 # The default EAFS filesystem supports long file names.
4763 # Truncating the target makes $host != $target which
4764 # makes gcc think it is doing a cross-compile.
4765 # truncate_target=yes
4767 i
[34567]86-*-sco*) # 80386 running SCO system
4768 xm_file
=i386
/xm-sco.h
4769 xmake_file
=i386
/x-sco
4770 install_headers_dir
=install-headers-cpio
4771 if test x
$stabs = xyes
4773 tm_file
=i386
/scodbx.h
4774 tmake_file
=i386
/t-svr3dbx
4775 extra_parts
="svr3.ifile svr3z.rfile"
4778 extra_parts
="crtbegin.o crtend.o"
4779 tmake_file
=i386
/t-crtstuff
4781 tmake_file
="$tmake_file i386/t-i386bare"
4784 i
[34567]86-*-solaris2*)
4785 xm_file
="xm-alloca.h ${xm_file}"
4786 xm_defines
="USG POSIX SMALL_ARG_MAX"
4788 if test x
$gas = xyes
; then
4789 # Only needed if gas does not support -s
4790 tm_file
="i386/sol2gas.h ${tm_file}"
4792 tmake_file
="i386/t-i386bare i386/t-sol2"
4793 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4795 if test x
${enable_threads} = x
; then
4796 enable_threads
=$have_pthread_h
4797 if test x
${enable_threads} = x
; then
4798 enable_threads
=$have_thread_h
4801 if test x
${enable_threads} = xyes
; then
4802 if test x
${have_pthread_h} = xyes
; then
4805 thread_file
='solaris'
4809 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4810 xm_file
="xm-alloca.h ${xm_file}"
4811 xm_defines
="USG POSIX"
4812 tm_file
=i386
/sysv5.h
4813 if test x
$stabs = xyes
4815 tm_file
="${tm_file} dbx.h"
4817 tmake_file
="i386/t-i386bare i386/t-crtpic"
4819 extra_parts
="crtbegin.o crtend.o"
4820 if test x
$enable_threads = xyes
; then
4824 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4825 xm_file
="xm-alloca.h ${xm_file}"
4826 xm_defines
="USG POSIX SMALL_ARG_MAX"
4827 tm_file
=i386
/sysv4.h
4828 if test x
$stabs = xyes
4830 tm_file
="${tm_file} dbx.h"
4832 tmake_file
="i386/t-i386bare i386/t-crtpic"
4834 extra_parts
="crtbegin.o crtend.o"
4836 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4837 xm_file
="xm-alloca.h ${xm_file}"
4838 xm_defines
="USG POSIX"
4840 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4842 extra_parts
="crtbegin.o crtend.o"
4843 install_headers_dir
=install-headers-cpio
4845 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4847 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4848 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4849 if test x
$stabs = xyes
4851 tm_file
=i386
/osf1elfgdb.h
4853 tm_file
=i386
/osf1elf.h
4855 tmake_file
=i386
/t-osf1elf
4856 xmake_file
=i386
/x-osf1elf
4857 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4859 i
[34567]86-*-sysv*) # Intel 80386's running system V
4860 xm_defines
="USG SVR3"
4861 xmake_file
=i386
/x-sysv3
4862 if test x
$gas = xyes
4864 if test x
$stabs = xyes
4866 tm_file
=i386
/svr3dbx.h
4867 tmake_file
=i386
/t-svr3dbx
4868 extra_parts
="svr3.ifile svr3z.rfile"
4870 tm_file
=i386
/svr3gas.h
4871 extra_parts
="crtbegin.o crtend.o"
4872 tmake_file
=i386
/t-crtstuff
4875 tm_file
=i386
/sysv3.h
4876 extra_parts
="crtbegin.o crtend.o"
4877 tmake_file
=i386
/t-crtstuff
4879 tmake_file
="$tmake_file i386/t-crtpic"
4881 i386-
*-vsta) # Intel 80386's running VSTa kernel
4882 xm_file
="${xm_file} i386/xm-vsta.h"
4884 tmake_file
=i386
/t-vsta
4885 xmake_file
=i386
/x-vsta
4888 xm_file
="${xm_file} i386/xm-cygwin.h"
4889 tmake_file
=i386
/t-cygwin
4890 tm_file
=i386
/win32.h
4891 xmake_file
=i386
/x-cygwin
4893 if test x
$enable_threads = xyes
; then
4898 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4899 xm_file
="${xm_file} i386/xm-cygwin.h"
4900 tmake_file
=i386
/t-cygwin
4901 tm_file
=i386
/cygwin.h
4902 xmake_file
=i386
/x-cygwin
4904 if test x
$enable_threads = xyes
; then
4909 i
[34567]86-*-mingw32*)
4910 tm_file
=i386
/mingw32.h
4911 xm_file
="${xm_file} i386/xm-mingw32.h"
4912 tmake_file
="i386/t-cygwin i386/t-mingw32"
4914 xmake_file
=i386
/x-cygwin
4915 if test x
$enable_threads = xyes
; then
4922 *minwg32crt
* |
*mingw32
*)
4923 tm_file
="${tm_file} i386/crtdll.h"
4929 xm_file
="${xm_file} i386/xm-uwin.h"
4930 xm_defines
="USG NO_STAB_H"
4931 tmake_file
="i386/t-cygwin i386/t-uwin"
4933 xmake_file
=i386
/x-cygwin
4934 if test x
$enable_threads = xyes
; then
4939 i
[34567]86-*-interix*)
4940 tm_file
="i386/i386-interix.h interix.h"
4941 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4943 tmake_file
="i386/t-interix"
4944 extra_objs
=interix.o
4945 xmake_file
=x-interix
4946 if test x
$enable_threads = xyes
; then
4949 if test x
$stabs = xyes
; then
4950 tm_file
="${tm_file} dbxcoff.h"
4953 i
[34567]86-*-winnt3*)
4954 tm_file
=i386
/win-nt.h
4955 out_file
=i386
/i386.c
4956 xm_file
="xm-winnt.h ${xm_file}"
4957 xmake_file
=winnt
/x-winnt
4958 tmake_file
=i386
/t-winnt
4959 extra_host_objs
="winnt.o oldnames.o"
4960 extra_gcc_objs
="spawnv.o oldnames.o"
4961 if test x
$gnu_ld != xyes
4963 extra_programs
=ld.exe
4965 if test x
$enable_threads = xyes
; then
4969 i
[34567]86-dg-dgux*)
4970 xm_file
="xm-alloca.h ${xm_file}"
4971 xm_defines
="USG POSIX"
4972 out_file
=i386
/dgux.c
4974 tmake_file
=i386
/t-dgux
4975 xmake_file
=i386
/x-dgux
4976 install_headers_dir
=install-headers-cpio
4978 i860-alliant-
*) # Alliant FX/2800
4979 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4980 xm_file
="${xm_file}"
4981 xmake_file
=i860
/x-fx2800
4982 tmake_file
=i860
/t-fx2800
4983 extra_parts
="crtbegin.o crtend.o"
4986 tm_file
="${tm_file} i860/bsd.h"
4987 if test x
$gas = xyes
4989 tm_file
="${tm_file} i860/bsd-gas.h"
4994 tm_file
="${tm_file} i860/mach.h"
4995 tmake_file
=t-libc-ok
4997 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4998 tm_file
="${tm_file} svr3.h i860/paragon.h"
4999 xm_defines
="USG SVR3"
5003 tm_file
="${tm_file} svr3.h i860/sysv3.h"
5004 xm_defines
="USG SVR3"
5005 xmake_file
=i860
/x-sysv3
5006 extra_parts
="crtbegin.o crtend.o"
5009 tm_file
="${tm_file} svr4.h i860/sysv4.h"
5010 xm_defines
="USG SVR3"
5011 xmake_file
=i860
/x-sysv4
5013 extra_parts
="crtbegin.o crtend.o"
5015 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
5016 tm_file
="${tm_file} i960/vx960.h"
5017 tmake_file
=i960
/t-vxworks960
5019 thread_file
='vxworks'
5021 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
5022 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
5023 tmake_file
=i960
/t-vxworks960
5025 thread_file
='vxworks'
5028 tm_file
="${tm_file} i960/vx960.h"
5029 tmake_file
=i960
/t-vxworks960
5031 thread_file
='vxworks'
5034 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
5035 tmake_file
=i960
/t-960bare
5039 tmake_file
="i960/t-960bare t-rtems"
5040 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
5043 i960-
*-*) # Default i960 environment.
5048 tmake_file
="ia64/t-ia64"
5049 target_cpu_default
="0"
5050 if test x
$gas = xyes
5052 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
5054 if test x
$gnu_ld = xyes
5056 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
5061 tm_file
=ia64
/linux.h
5062 tmake_file
="t-linux ia64/t-ia64 ia64/t-glibc"
5063 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
5064 if test x
$enable_threads = xyes
; then
5070 extra_parts
="crtinit.o crtfini.o"
5072 # m68hc11 and m68hc12 share the same machine description.
5073 m68hc11-
*-*|m6811-
*-*)
5074 tm_file
="m68hc11/m68hc11.h"
5075 xm_file
="m68hc11/xm-m68hc11.h"
5076 tm_p_file
="m68hc11/m68hc11-protos.h"
5077 md_file
="m68hc11/m68hc11.md"
5078 out_file
="m68hc11/m68hc11.c"
5079 tmake_file
="m68hc11/t-m68hc11-gas"
5081 m68hc12-
*-*|m6812-
*-*)
5082 tm_file
="m68hc11/m68hc12.h"
5083 tm_p_file
="m68hc11/m68hc11-protos.h"
5084 xm_file
="m68hc11/xm-m68hc11.h"
5085 md_file
="m68hc11/m68hc11.md"
5086 out_file
="m68hc11/m68hc11.c"
5087 tmake_file
="m68hc11/t-m68hc11-gas"
5089 m68000-convergent-sysv
*)
5091 xm_file
="m68k/xm-3b1.h ${xm_file}"
5094 extra_headers
=math-68881.h
5096 m68000-hp-bsd
*) # HP 9000/200 running BSD
5097 tm_file
=m68k
/hp2bsd.h
5098 xmake_file
=m68k
/x-hp2bsd
5100 extra_headers
=math-68881.h
5102 m68000-hp-hpux
*) # HP 9000 series 300
5103 xm_file
="xm-alloca.h ${xm_file}"
5105 if test x
$gas = xyes
5107 xmake_file
=m68k
/x-hp320g
5108 tm_file
=m68k
/hp310g.h
5110 xmake_file
=m68k
/x-hp320
5111 tm_file
=m68k
/hp310.h
5113 install_headers_dir
=install-headers-cpio
5115 extra_headers
=math-68881.h
5120 extra_headers
=math-68881.h
5123 tm_file
=m68k
/sun2o4.h
5125 extra_headers
=math-68881.h
5128 xm_file
="m68k/xm-3b1.h ${xm_file}"
5130 if test x
$gas = xyes
5137 extra_headers
=math-68881.h
5139 m68k-apple-aux
*) # Apple Macintosh running A/UX
5140 xm_defines
="USG AUX"
5141 tmake_file
=m68k
/t-aux
5142 install_headers_dir
=install-headers-cpio
5143 extra_headers
=math-68881.h
5144 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5146 if test "$gnu_ld" = yes
5148 tm_file
="${tm_file} m68k/auxgld.h"
5150 tm_file
="${tm_file} m68k/auxld.h"
5152 if test "$gas" = yes
5154 tm_file
="${tm_file} m68k/auxgas.h"
5156 tm_file
="${tm_file} m68k/auxas.h"
5158 tm_file
="${tm_file} m68k/a-ux.h"
5162 tm_file
=m68k
/apollo68.h
5163 xmake_file
=m68k
/x-apollo68
5165 extra_headers
=math-68881.h
5168 m68k-altos-sysv
*) # Altos 3068
5169 if test x
$gas = xyes
5171 tm_file
=m68k
/altos3068.h
5174 echo "The Altos is supported only with the GNU assembler" 1>&2
5177 extra_headers
=math-68881.h
5179 m68k-bull-sysv
*) # Bull DPX/2
5180 if test x
$gas = xyes
5182 if test x
$stabs = xyes
5184 tm_file
=m68k
/dpx2cdbx.h
5186 tm_file
=m68k
/dpx2g.h
5191 xm_file
="xm-alloca.h ${xm_file}"
5193 xmake_file
=m68k
/x-dpx2
5195 extra_headers
=math-68881.h
5197 m68k-atari-sysv4
*) # Atari variant of V.4.
5198 tm_file
=m68k
/atari.h
5199 xm_file
="xm-alloca.h ${xm_file}"
5200 xm_defines
="USG FULL_PROTOTYPES"
5202 extra_parts
="crtbegin.o crtend.o"
5203 extra_headers
=math-68881.h
5206 m68k-motorola-sysv
*)
5207 tm_file
=m68k
/mot3300.h
5208 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5209 if test x
$gas = xyes
5211 xmake_file
=m68k
/x-mot3300-gas
5212 if test x
$gnu_ld = xyes
5214 tmake_file
=m68k
/t-mot3300-gald
5216 tmake_file
=m68k
/t-mot3300-gas
5220 xmake_file
=m68k
/x-mot3300
5221 if test x
$gnu_ld = xyes
5223 tmake_file
=m68k
/t-mot3300-gld
5225 tmake_file
=m68k
/t-mot3300
5229 gdb_needs_out_file_path
=yes
5230 extra_parts
="crt0.o mcrt0.o"
5231 extra_headers
=math-68881.h
5234 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5235 tm_file
=m68k
/tower-as.h
5236 xm_defines
="USG SVR3"
5237 xmake_file
=m68k
/x-tower
5238 extra_parts
="crtbegin.o crtend.o"
5239 extra_headers
=math-68881.h
5242 tm_file
=m68k
/plexus.h
5243 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5246 extra_headers
=math-68881.h
5250 xm_file
="xm-alloca.h ${xm_file}"
5252 extra_headers
=math-68881.h
5255 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5256 xm_defines
="USG unos"
5257 xmake_file
=m68k
/x-crds
5260 extra_headers
=math-68881.h
5262 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5264 xm_file
="xm-alloca.h ${xm_file}"
5265 xm_defines
="USG FULL_PROTOTYPES"
5266 xmake_file
=m68k
/x-amix
5268 extra_parts
="crtbegin.o crtend.o"
5269 extra_headers
=math-68881.h
5273 tm_file
=m68k
/ccur-GAS.h
5274 xmake_file
=m68k
/x-ccur
5275 extra_headers
=math-68881.h
5279 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5280 tm_file
=m68k
/hp3bsd44.h
5281 xmake_file
=m68k
/x-hp3bsd44
5283 extra_headers
=math-68881.h
5286 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5287 tm_file
=m68k
/hp3bsd.h
5289 extra_headers
=math-68881.h
5293 if test x
$with_fp = xno
5295 tm_file
=m68k
/isi-nfp.h
5301 extra_headers
=math-68881.h
5303 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5304 xm_file
="xm-alloca.h ${xm_file}"
5306 if test x
$gas = xyes
5308 xmake_file
=m68k
/x-hp320g
5309 tm_file
=m68k
/hp320g.h
5311 xmake_file
=m68k
/x-hp320
5312 tm_file
=m68k
/hpux7.h
5314 install_headers_dir
=install-headers-cpio
5316 extra_headers
=math-68881.h
5319 m68k-hp-hpux
*) # HP 9000 series 300
5320 xm_file
="xm-alloca.h ${xm_file}"
5322 if test x
$gas = xyes
5324 xmake_file
=m68k
/x-hp320g
5325 tm_file
=m68k
/hp320g.h
5327 xmake_file
=m68k
/x-hp320
5328 tm_file
=m68k
/hp320.h
5330 install_headers_dir
=install-headers-cpio
5332 extra_headers
=math-68881.h
5336 tm_file
=m68k
/sun3mach.h
5338 extra_headers
=math-68881.h
5342 if test x
$gas = xyes
5344 tm_file
=m68k
/news3gas.h
5346 tm_file
=m68k
/news3.h
5349 extra_headers
=math-68881.h
5352 m68k-sony-bsd
* | m68k-sony-newsos
*)
5353 if test x
$gas = xyes
5355 tm_file
=m68k
/newsgas.h
5360 extra_headers
=math-68881.h
5363 m68k-next-nextstep2
*)
5364 tm_file
=m68k
/next21.h
5365 xm_file
="m68k/xm-next.h ${xm_file}"
5366 tmake_file
=m68k
/t-next
5367 xmake_file
=m68k
/x-next
5368 extra_objs
=nextstep.o
5369 extra_headers
=math-68881.h
5373 m68k-next-nextstep
[34]*)
5375 xm_file
="m68k/xm-next.h ${xm_file}"
5376 tmake_file
=m68k
/t-next
5377 xmake_file
=m68k
/x-next
5378 extra_objs
=nextstep.o
5379 extra_parts
="crtbegin.o crtend.o"
5380 extra_headers
=math-68881.h
5382 if test x
$enable_threads = xyes
; then
5387 if test x
$with_fp = xno
5389 tm_file
=m68k
/sun3n3.h
5391 tm_file
=m68k
/sun3o3.h
5395 extra_headers
=math-68881.h
5397 m68k-sun-sunos
*) # For SunOS 4 (the default).
5398 if test x
$with_fp = xno
5400 tm_file
=m68k
/sun3n.h
5406 extra_headers
=math-68881.h
5409 tm_file
=m68k
/vxm68k.h
5410 tmake_file
=m68k
/t-vxworks68
5411 extra_headers
=math-68881.h
5412 thread_file
='vxworks'
5416 tmake_file
=m68k
/t-m68kbare
5417 tm_file
="m68k/m68k-aout.h libgloss.h"
5418 extra_headers
=math-68881.h
5422 tmake_file
=m68k
/t-m68kbare
5423 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
5424 extra_headers
=math-68881.h
5427 m68020-
*-elf* | m68k-
*-elf*)
5428 tm_file
="m68k/m68020-elf.h"
5429 xm_file
=m68k
/xm-m68kv.h
5430 tmake_file
=m68k
/t-m68kelf
5431 header_files
=math-68881.h
5434 if test x
$gas = xyes
5438 tm_file
=m68k
/lynx-ng.h
5440 xm_file
=m68k
/xm-lynx.h
5442 tmake_file
=m68k
/t-lynx
5443 extra_headers
=math-68881.h
5447 tm_file
=m68k
/netbsd.h
5454 # we need collect2 until our bug is fixed...
5457 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5458 xm_file
="xm-alloca.h ${xm_file}"
5460 xmake_file
=m68k
/x-m68kv
5461 extra_parts
="crtbegin.o crtend.o"
5462 extra_headers
=math-68881.h
5465 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5466 tm_file
=m68k
/m68kv4.h
5467 xm_file
="xm-alloca.h ${xm_file}"
5470 extra_parts
="crtbegin.o crtend.o"
5471 extra_headers
=math-68881.h
5474 m68k-
*-linux*aout
*) # Motorola m68k's running GNU/Linux
5477 tm_file
=m68k
/linux-aout.h
5478 tmake_file
="t-linux-aout m68k/t-linux-aout"
5479 extra_headers
=math-68881.h
5483 m68k-
*-linux*libc1
) # Motorola m68k's running GNU/Linux
5484 # with ELF format using the
5485 # GNU/Linux C library 5
5487 tm_file
=m68k
/linux.h
5488 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5489 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5490 extra_headers
=math-68881.h
5494 m68k-
*-linux*) # Motorola m68k's running GNU/Linux
5495 # with ELF format using glibc 2
5496 # aka the GNU/Linux C library 6.
5498 tm_file
=m68k
/linux.h
5499 tmake_file
="t-linux m68k/t-linux"
5500 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5501 extra_headers
=math-68881.h
5504 if test x
$enable_threads = xyes
; then
5509 tmake_file
=m68k
/t-m68kbare
5510 tm_file
=m68k
/m68k-psos.h
5511 extra_headers
=math-68881.h
5515 tmake_file
="m68k/t-m68kbare t-rtems"
5516 tm_file
=m68k
/rtems.h
5517 extra_headers
=math-68881.h
5520 m68k-
*-rtemself*|m68k-
*-rtems*)
5521 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5522 tm_file
=m68k
/rtemself.h
5523 extra_headers
=math-68881.h
5529 tm_file
=m88k
/dguxbcs.h
5530 tmake_file
=m88k
/t-dguxbcs
5534 tmake_file
=m88k
/t-dgux
5537 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5538 xmake_file
=m88k
/x-dgux
5539 if test x
$gas = xyes
5541 tmake_file
=m88k
/t-dgux-gas
5544 m88k-dolphin-sysv3
*)
5545 tm_file
=m88k
/dolph.h
5546 extra_parts
="crtbegin.o crtend.o"
5547 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5548 xmake_file
=m88k
/x-dolph
5549 if test x
$gas = xyes
5551 tmake_file
=m88k
/t-m88k-gas
5554 m88k-tektronix-sysv3
)
5555 tm_file
=m88k
/tekXD88.h
5556 extra_parts
="crtbegin.o crtend.o"
5557 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5558 xmake_file
=m88k
/x-tekXD88
5559 if test x
$gas = xyes
5561 tmake_file
=m88k
/t-m88k-gas
5565 tm_file
=m88k
/m88k-aout.h
5568 tm_file
=m88k
/m88k-coff.h
5569 tmake_file
=m88k
/t-bug
5573 extra_parts
="crtbegin.o crtend.o"
5574 if test x
$gas = xyes
5576 tmake_file
=m88k
/t-luna-gas
5578 tmake_file
=m88k
/t-luna
5582 tmake_file
="${tmake_file} m88k/t-luna-gas"
5583 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5584 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5587 tm_file
=m88k
/sysv3.h
5588 extra_parts
="crtbegin.o crtend.o"
5589 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5590 xmake_file
=m88k
/x-sysv3
5591 if test x
$gas = xyes
5593 tmake_file
=m88k
/t-m88k-gas
5597 tm_file
=m88k
/sysv4.h
5598 extra_parts
="crtbegin.o crtend.o"
5599 xmake_file
=m88k
/x-sysv4
5600 tmake_file
=m88k
/t-sysv4
5603 tm_file
=mcore
/mcore-elf.h
5604 tmake_file
=mcore
/t-mcore
5607 tm_file
=mcore
/mcore-pe.h
5608 tmake_file
=mcore
/t-mcore-pe
5610 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5611 if test "x$gnu_ld" = xyes
5613 tm_file
="mips/iris6.h mips/iris6gld.h"
5615 tm_file
=mips
/iris6.h
5617 tmake_file
=mips
/t-iris6
5618 xm_file
=mips
/xm-iris6.h
5619 xmake_file
=mips
/x-iris6
5620 # if test x$enable_threads = xyes; then
5621 # thread_file='irix'
5625 tm_file
="mips/elf.h mips/vxworks.h"
5626 tmake_file
=mips
/t-ecoff
5629 extra_parts
="crtbegin.o crtend.o"
5630 thread_file
='vxworks'
5632 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5633 tm_file
="mips/iris6.h mips/cross64.h"
5635 xm_file
="mips/xm-iris5.h"
5636 xmake_file
=mips
/x-iris
5637 tmake_file
=mips
/t-cross64
5638 # See comment in mips/iris[56].h files.
5640 # if test x$enable_threads = xyes; then
5641 # thread_file='irix'
5645 if test x
$gas = xyes
5647 if test x
$stabs = xyes
5649 tm_file
=mips
/iris5gdb.h
5651 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5654 tm_file
=mips
/sni-svr4.h
5657 xmake_file
=mips
/x-sni-svr4
5658 tmake_file
=mips
/t-mips-gas
5659 if test x
$gnu_ld != xyes
5664 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5665 if test x
$gas = xyes
5667 tm_file
="mips/iris5.h mips/iris5gas.h"
5668 if test x
$stabs = xyes
5670 tm_file
="${tm_file} dbx.h"
5673 tm_file
=mips
/iris5.h
5676 xm_file
="mips/xm-iris5.h"
5677 xmake_file
=mips
/x-iris
5678 # mips-tfile doesn't work yet
5679 tmake_file
=mips
/t-mips-gas
5680 # See comment in mips/iris5.h file.
5682 # if test x$enable_threads = xyes; then
5683 # thread_file='irix'
5686 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5687 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5688 if test x
$stabs = xyes
; then
5689 tm_file
="${tm_file} dbx.h"
5692 xmake_file
=mips
/x-iris
5693 if test x
$gas = xyes
5695 tmake_file
=mips
/t-mips-gas
5697 extra_passes
="mips-tfile mips-tdump"
5699 if test x
$gnu_ld != xyes
5703 # if test x$enable_threads = xyes; then
5704 # thread_file='irix'
5707 mips-sgi-irix4
*) # Mostly like a MIPS.
5708 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5709 if test x
$stabs = xyes
; then
5710 tm_file
="${tm_file} dbx.h"
5713 xmake_file
=mips
/x-iris
5714 if test x
$gas = xyes
5716 tmake_file
=mips
/t-mips-gas
5718 extra_passes
="mips-tfile mips-tdump"
5720 if test x
$gnu_ld != xyes
5724 # if test x$enable_threads = xyes; then
5725 # thread_file='irix'
5728 mips-sgi-
*) # Mostly like a MIPS.
5729 tm_file
="mips/iris3.h ${tm_file}"
5730 if test x
$stabs = xyes
; then
5731 tm_file
="${tm_file} dbx.h"
5734 xmake_file
=mips
/x-iris3
5735 if test x
$gas = xyes
5737 tmake_file
=mips
/t-mips-gas
5739 extra_passes
="mips-tfile mips-tdump"
5741 if test x
$gnu_ld != xyes
5746 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5747 tm_file
="mips/osfrose.h ${tm_file}"
5748 xmake_file
=mips
/x-osfrose
5749 tmake_file
=mips
/t-osfrose
5750 extra_objs
=halfpic.o
5753 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5754 tm_file
=mips
/dec-osf1.h
5755 if test x
$stabs = xyes
; then
5756 tm_file
="${tm_file} dbx.h"
5758 xmake_file
=mips
/x-dec-osf1
5759 if test x
$gas = xyes
5761 tmake_file
=mips
/t-mips-gas
5763 tmake_file
=mips
/t-ultrix
5764 extra_passes
="mips-tfile mips-tdump"
5766 if test x
$gnu_ld != xyes
5771 mips-dec-bsd
*) # Decstation running 4.4 BSD
5772 tm_file
=mips
/dec-bsd.h
5773 if test x
$gas = xyes
5775 tmake_file
=mips
/t-mips-gas
5777 tmake_file
=mips
/t-ultrix
5778 extra_passes
="mips-tfile mips-tdump"
5780 if test x
$gnu_ld != xyes
5785 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5786 tm_file
=mips
/netbsd.h
5787 # On NetBSD, the headers are already okay, except for math.h.
5790 mips
*-*-linux*) # Linux MIPS, either endian.
5793 mips
*el-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5794 *) tm_file
="mips/elf.h mips/linux.h" ;;
5797 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5800 if test x
$enable_threads = xyes
; then
5804 mips
*el-
*-openbsd*) # mips little endian
5805 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5807 mips
*-*-openbsd*) # mips big endian
5808 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5809 tm_file
="mips/openbsd-be.h ${tm_file}"
5811 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5812 tm_file
="mips/news4.h ${tm_file}"
5813 if test x
$stabs = xyes
; then
5814 tm_file
="${tm_file} dbx.h"
5816 if test x
$gas = xyes
5818 tmake_file
=mips
/t-mips-gas
5820 extra_passes
="mips-tfile mips-tdump"
5822 if test x
$gnu_ld != xyes
5826 xmake_file
=mips
/x-sony
5828 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5829 # That is based on svr4.
5830 # t-svr4 is not right because this system doesn't use ELF.
5831 tm_file
="mips/news5.h ${tm_file}"
5832 if test x
$stabs = xyes
; then
5833 tm_file
="${tm_file} dbx.h"
5836 if test x
$gas = xyes
5838 tmake_file
=mips
/t-mips-gas
5840 extra_passes
="mips-tfile mips-tdump"
5842 if test x
$gnu_ld != xyes
5847 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5848 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5849 if test x
$stabs = xyes
; then
5850 tm_file
="${tm_file} dbx.h"
5853 xmake_file
=mips
/x-sysv
5854 if test x
$gas = xyes
5856 tmake_file
=mips
/t-mips-gas
5857 extra_parts
="crtbegin.o crtend.o"
5859 tmake_file
=mips
/t-mips
5860 extra_passes
="mips-tfile mips-tdump"
5862 if test x
$gnu_ld != xyes
5867 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5868 tm_file
="mips/ultrix.h ${tm_file}"
5869 if test x
$stabs = xyes
; then
5870 tm_file
="${tm_file} dbx.h"
5872 xmake_file
=mips
/x-ultrix
5873 if test x
$gas = xyes
5875 tmake_file
=mips
/t-mips-gas
5877 tmake_file
=mips
/t-ultrix
5878 extra_passes
="mips-tfile mips-tdump"
5880 if test x
$gnu_ld != xyes
5885 mips-
*-riscos[56789]bsd
*)
5886 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5887 if test x
$stabs = xyes
; then
5888 tm_file
="${tm_file} dbx.h"
5890 if test x
$gas = xyes
5892 tmake_file
=mips
/t-bsd-gas
5894 tmake_file
=mips
/t-bsd
5895 extra_passes
="mips-tfile mips-tdump"
5897 if test x
$gnu_ld != xyes
5902 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5903 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5904 if test x
$stabs = xyes
; then
5905 tm_file
="${tm_file} dbx.h"
5907 if test x
$gas = xyes
5909 tmake_file
=mips
/t-bsd-gas
5911 tmake_file
=mips
/t-bsd
5912 extra_passes
="mips-tfile mips-tdump"
5914 if test x
$gnu_ld != xyes
5919 mips-
*-riscos[56789]sysv4
*)
5920 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5921 if test x
$stabs = xyes
; then
5922 tm_file
="${tm_file} dbx.h"
5924 xmake_file
=mips
/x-sysv
5925 if test x
$gas = xyes
5927 tmake_file
=mips
/t-svr4-gas
5929 tmake_file
=mips
/t-svr4
5930 extra_passes
="mips-tfile mips-tdump"
5932 if test x
$gnu_ld != xyes
5937 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5938 tm_file
="mips/svr4-4.h ${tm_file}"
5939 if test x
$stabs = xyes
; then
5940 tm_file
="${tm_file} dbx.h"
5943 xmake_file
=mips
/x-sysv
5944 if test x
$gas = xyes
5946 tmake_file
=mips
/t-svr4-gas
5948 tmake_file
=mips
/t-svr4
5949 extra_passes
="mips-tfile mips-tdump"
5951 if test x
$gnu_ld != xyes
5956 mips-
*-riscos[56789]sysv
*)
5957 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5958 if test x
$stabs = xyes
; then
5959 tm_file
="${tm_file} dbx.h"
5962 xmake_file
=mips
/x-sysv
5963 if test x
$gas = xyes
5965 tmake_file
=mips
/t-svr3-gas
5967 tmake_file
=mips
/t-svr3
5968 extra_passes
="mips-tfile mips-tdump"
5970 if test x
$gnu_ld != xyes
5975 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5976 tm_file
="mips/svr3-4.h ${tm_file}"
5977 if test x
$stabs = xyes
; then
5978 tm_file
="${tm_file} dbx.h"
5981 xmake_file
=mips
/x-sysv
5982 if test x
$gas = xyes
5984 tmake_file
=mips
/t-svr3-gas
5986 tmake_file
=mips
/t-svr3
5987 extra_passes
="mips-tfile mips-tdump"
5989 if test x
$gnu_ld != xyes
5994 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5995 tm_file
=mips
/mips-5.h
5996 if test x
$stabs = xyes
; then
5997 tm_file
="${tm_file} dbx.h"
5999 if test x
$gas = xyes
6001 tmake_file
=mips
/t-mips-gas
6003 extra_passes
="mips-tfile mips-tdump"
6005 if test x
$gnu_ld != xyes
6013 tm_file
=mips
/ecoffl.h
6014 if test x
$stabs = xyes
; then
6015 tm_file
="${tm_file} dbx.h"
6017 tmake_file
=mips
/t-ecoff
6020 tm_file
="gofast.h mips/ecoff.h"
6021 if test x
$stabs = xyes
; then
6022 tm_file
="${tm_file} dbx.h"
6024 tmake_file
=mips
/t-ecoff
6027 tm_file
="mips/elfl.h"
6028 tmake_file
=mips
/t-elf
6031 tm_file
="mips/elf.h"
6032 tmake_file
=mips
/t-elf
6035 tm_file
="mips/elfl64.h"
6036 tmake_file
=mips
/t-elf
6038 mips64orionel-
*-elf*)
6039 tm_file
="mips/elforion.h mips/elfl64.h"
6040 tmake_file
=mips
/t-elf
6043 tm_file
="mips/elf64.h"
6044 tmake_file
=mips
/t-elf
6047 tm_file
="mips/elforion.h mips/elf64.h"
6048 tmake_file
=mips
/t-elf
6050 mips64orion-
*-rtems*)
6051 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
6052 tmake_file
="mips/t-elf t-rtems"
6055 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
6056 tmake_file
=mips
/t-r3900
6059 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
6060 tmake_file
=mips
/t-r3900
6062 mips-
*-*) # Default MIPS RISC-OS 4.0.
6063 if test x
$stabs = xyes
; then
6064 tm_file
="${tm_file} dbx.h"
6066 if test x
$gas = xyes
6068 tmake_file
=mips
/t-mips-gas
6070 extra_passes
="mips-tfile mips-tdump"
6072 if test x
$gnu_ld != xyes
6080 tm_file
="mn10200/mn10200.h"
6081 if test x
$stabs = xyes
6083 tm_file
="${tm_file} dbx.h"
6089 tm_file
="mn10300/mn10300.h"
6090 if test x
$stabs = xyes
6092 tm_file
="${tm_file} dbx.h"
6097 tm_file
=ns32k
/encore.h
6101 tm_file
=ns32k
/sequent.h
6105 tm_file
=ns32k
/tek6100.h
6109 tm_file
=ns32k
/tek6200.h
6113 tm_file
=ns32k
/merlin.h
6117 tm_file
=ns32k
/pc532-mach.h
6121 tm_file
=ns32k
/pc532-min.h
6122 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6127 tm_file
=ns32k
/netbsd.h
6128 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6129 # On NetBSD, the headers are already okay, except for math.h.
6134 tm_file
="${tm_file} pdp11/2bsd.h"
6144 tm_file
="svr4.h pj/linux.h ${tm_file}"
6149 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6156 xmake_file
=romp
/x-mach
6163 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6167 tm_file
=rs6000
/beos.h
6168 xm_file
=rs6000
/xm-beos.h
6169 tmake_file
=rs6000
/t-beos
6170 xmake_file
=rs6000
/x-beos
6173 tm_file
=rs6000
/sysv4.h
6174 xm_file
="rs6000/xm-sysv4.h"
6175 xm_defines
="USG POSIX"
6176 extra_headers
=ppc-asm.h
6177 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6178 xmake_file
=rs6000
/x-sysv4
6181 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6182 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6183 extra_headers
=ppc-asm.h
6186 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6187 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6188 extra_headers
=ppc-asm.h
6191 tm_file
="rs6000/sysv4.h"
6192 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6193 extra_headers
=ppc-asm.h
6196 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6197 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6198 extra_headers
=ppc-asm.h
6201 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6202 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6203 extra_headers
=ppc-asm.h
6205 powerpc-
*-linux*libc1
)
6206 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6207 xm_file
=rs6000
/xm-sysv4.h
6208 out_file
=rs6000
/rs6000.c
6209 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6211 extra_headers
=ppc-asm.h
6212 if test x
$enable_threads = xyes
; then
6217 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6218 xm_file
="rs6000/xm-sysv4.h"
6219 xm_defines
="USG ${xm_defines}"
6220 out_file
=rs6000
/rs6000.c
6221 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6223 extra_headers
=ppc-asm.h
6224 if test x
$enable_threads = xyes
; then
6228 powerpc-wrs-vxworks
*)
6230 xm_file
="rs6000/xm-sysv4.h"
6231 xm_defines
="USG POSIX"
6232 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6233 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6234 extra_headers
=ppc-asm.h
6235 thread_file
='vxworks'
6237 powerpcle-wrs-vxworks
*)
6239 xm_file
="rs6000/xm-sysv4.h"
6240 xm_defines
="USG POSIX"
6241 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6242 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6243 extra_headers
=ppc-asm.h
6244 thread_file
='vxworks'
6247 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6248 xm_file
="rs6000/xm-sysv4.h"
6249 xm_defines
="USG POSIX"
6250 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6251 xmake_file
=rs6000
/x-sysv4
6252 extra_headers
=ppc-asm.h
6255 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6256 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6257 extra_headers
=ppc-asm.h
6259 powerpcle-
*-eabisim*)
6260 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6261 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6262 extra_headers
=ppc-asm.h
6265 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6266 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6267 extra_headers
=ppc-asm.h
6269 powerpcle-
*-solaris2*)
6270 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6271 xm_file
="rs6000/xm-sysv4.h"
6272 xm_defines
="USG POSIX"
6273 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6274 xmake_file
=rs6000
/x-sysv4
6275 extra_headers
=ppc-asm.h
6277 rs6000-ibm-aix3.
[01]*)
6278 tm_file
=rs6000
/aix31.h
6279 xmake_file
=rs6000
/x-aix31
6283 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6284 tm_file
=rs6000
/aix3newas.h
6285 if test x
$host != x
$target
6287 tmake_file
=rs6000
/t-xnewas
6289 tmake_file
=rs6000
/t-newas
6294 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6295 tm_file
=rs6000
/aix41.h
6296 if test x
$host != x
$target
6298 tmake_file
=rs6000
/t-xnewas
6300 tmake_file
=rs6000
/t-newas
6302 if test "$gnu_ld" = yes
6304 xmake_file
=rs6000
/x-aix41-gld
6306 tmake_file
='rs6000/t-newas'
6308 xmake_file
=rs6000
/x-aix41
6312 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6313 tm_file
=rs6000
/aix43.h
6314 tmake_file
=rs6000
/t-aix43
6315 xmake_file
=rs6000
/x-aix41
6320 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6321 tm_file
=rs6000
/aix43.h
6322 tmake_file
=rs6000
/t-aix43
6323 xmake_file
=rs6000
/x-aix41
6337 tm_file
=rs6000
/mach.h
6338 xm_file
="${xm_file} rs6000/xm-mach.h"
6339 xmake_file
=rs6000
/x-mach
6343 tm_file
=rs6000
/lynx.h
6344 xm_file
=rs6000
/xm-lynx.h
6345 tmake_file
=rs6000
/t-rs6000
6346 xmake_file
=rs6000
/x-lynx
6350 tmake_file
="sh/t-sh sh/t-elf"
6351 tm_file
="sh/sh.h sh/elf.h"
6355 tmake_file
="sh/t-sh sh/t-elf t-rtems"
6356 tm_file
="sh/sh.h sh/elf.h sh/rtemself.h"
6360 tmake_file
="sh/t-sh t-rtems"
6361 tm_file
="sh/sh.h sh/rtems.h"
6365 tm_file
="sh/sh.h sh/elf.h sh/linux.h"
6366 tmake_file
="sh/t-sh sh/t-elf sh/t-linux"
6369 if test x
$enable_threads = xyes
; then
6379 xm_file
="xm-alloca.h ${xm_file}"
6382 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6383 tm_file
=sparc
/vxsparc.h
6384 tmake_file
=sparc
/t-vxsparc
6386 thread_file
='vxworks'
6389 tmake_file
=sparc
/t-sparcbare
6390 tm_file
="sparc/aout.h libgloss.h"
6393 tm_file
=sparc
/netbsd.h
6398 # we need collect2 until our bug is fixed...
6406 tmake_file
=sparc
/t-elf
6407 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6411 sparc-
*-linux*aout
*) # Sparc's running GNU/Linux, a.out
6412 xm_file
="${xm_file} sparc/xm-linux.h"
6413 tm_file
=sparc
/linux-aout.h
6417 sparc-
*-linux*libc1
*) # Sparc's running GNU/Linux, libc5
6418 xm_file
="${xm_file} sparc/xm-linux.h"
6420 tm_file
=sparc
/linux.h
6421 tmake_file
="t-linux t-linux-gnulibc1"
6422 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6426 sparc-
*-linux*) # Sparc's running GNU/Linux, libc6
6427 xm_file
="${xm_file} sparc/xm-linux.h"
6429 tm_file
=sparc
/linux.h
6430 tmake_file
="t-linux"
6431 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6433 if test x
$enable_threads = xyes
; then
6439 if test x
$gas = xyes
6441 tm_file
=sparc
/lynx.h
6443 tm_file
=sparc
/lynx-ng.h
6445 xm_file
=sparc
/xm-lynx.h
6446 tmake_file
=sparc
/t-sunos41
6450 tmake_file
="sparc/t-sparcbare t-rtems"
6451 tm_file
=sparc
/rtems.h
6453 sparc-
*-rtems*|sparc-
*-rtemself*)
6454 tm_file
="sparc/rtemself.h"
6455 tmake_file
="sparc/t-elf t-rtems"
6456 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6460 sparcv9-
*-solaris2*)
6461 if test x
$gnu_ld = xyes
6463 tm_file
=sparc
/sol2-64.h
6465 tm_file
=sparc
/sol2-sld-64.h
6467 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6468 xm_defines
="USG POSIX"
6469 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6470 xmake_file
=sparc
/x-sysv4
6471 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6473 if test x
${enable_threads} = x
; then
6474 enable_threads
=$have_pthread_h
6475 if test x
${enable_threads} = x
; then
6476 enable_threads
=$have_thread_h
6479 if test x
${enable_threads} = xyes
; then
6480 if test x
${have_pthread_h} = xyes
; then
6483 thread_file
='solaris'
6487 sparc-hal-solaris2
*)
6488 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6489 xm_defines
="USG POSIX"
6490 tm_file
="sparc/sol2.h sparc/hal.h"
6491 tmake_file
="sparc/t-halos sparc/t-sol2"
6492 xmake_file
=sparc
/x-sysv4
6493 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6502 thread_file
='solaris'
6505 if test x
$gnu_ld = xyes
6507 tm_file
=sparc
/sol2.h
6509 tm_file
=sparc
/sol2-sld.h
6511 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6512 xm_defines
="USG POSIX"
6513 tmake_file
=sparc
/t-sol2
6514 xmake_file
=sparc
/x-sysv4
6515 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6516 # At the moment, 32-to-64 cross compilation doesn't work.
6519 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6520 #changequote([,])dnl
6522 # if test x$gnu_ld = xyes
6524 # tm_file=sparc/sol2-64.h
6526 # tm_file=sparc/sol2-sld-64.h
6528 # tmake_file="$tmake_file sparc/t-sol2-64"
6539 if test x
${enable_threads} = x
; then
6540 enable_threads
=$have_pthread_h
6541 if test x
${enable_threads} = x
; then
6542 enable_threads
=$have_thread_h
6545 if test x
${enable_threads} = xyes
; then
6546 if test x
${have_pthread_h} = xyes
; then
6549 thread_file
='solaris'
6554 tm_file
=sparc
/sunos4.h
6555 tmake_file
=sparc
/t-sunos40
6559 tm_file
=sparc
/sunos4.h
6560 tmake_file
=sparc
/t-sunos41
6562 if test x
$gas = xyes
; then
6563 tm_file
="${tm_file} sparc/sun4gas.h"
6567 tm_file
=sparc
/sun4o3.h
6571 tm_file
=sparc
/sysv4.h
6572 xm_file
="sparc/xm-sysv4.h"
6573 xm_defines
="USG POSIX"
6575 xmake_file
=sparc
/x-sysv4
6576 extra_parts
="crtbegin.o crtend.o"
6579 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6580 xm_defines
="USG POSIX"
6581 tm_file
=sparc
/vxsim.h
6582 tmake_file
=sparc
/t-vxsparc
6583 xmake_file
=sparc
/x-sysv4
6586 tm_file
="sparc/splet.h libgloss.h"
6587 tmake_file
=sparc
/t-splet
6590 tm_file
="sparc/litecoff.h libgloss.h"
6591 tmake_file
=sparc
/t-sparclite
6594 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6595 tmake_file
=sparc
/t-sparclite
6598 tm_file
="sparc/liteelf.h"
6599 tmake_file
=sparc
/t-sparclite
6600 extra_parts
="crtbegin.o crtend.o"
6603 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6604 tmake_file
=sparc
/t-sp86x
6607 tm_file
="sparc/sp86x-elf.h"
6608 tmake_file
=sparc
/t-sp86x
6609 extra_parts
="crtbegin.o crtend.o"
6612 tmake_file
=sparc
/t-sp64
6613 tm_file
=sparc
/sp64-aout.h
6616 tmake_file
=sparc
/t-sp64
6617 tm_file
=sparc
/sp64-elf.h
6618 extra_parts
="crtbegin.o crtend.o"
6620 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6621 tmake_file
="t-linux sparc/t-linux64"
6622 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6623 tm_file
=sparc
/linux64.h
6625 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6627 if test x
$enable_threads = xyes
; then
6633 { echo "configure: error:
6634 *** The Thumb targets have been depreciated. The equivalent
6635 *** ARM based toolchain can now generated Thumb instructions
6636 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6640 tm_file
="v850/rtems.h"
6641 xm_file
="v850/xm-v850.h"
6642 tmake_file
="v850/t-v850 t-rtems"
6643 if test x
$stabs = xyes
6645 tm_file
="${tm_file} dbx.h"
6650 target_cpu_default
="TARGET_CPU_generic"
6652 tm_file
="v850/v850.h"
6653 xm_file
="v850/xm-v850.h"
6654 tmake_file
=v850
/t-v850
6655 if test x
$stabs = xyes
6657 tm_file
="${tm_file} dbx.h"
6661 vax-
*-bsd*) # vaxen running BSD
6665 vax-
*-sysv*) # vaxen running system V
6666 tm_file
="${tm_file} vax/vaxv.h"
6671 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6677 tmake_file
="${tmake_file} vax/t-openbsd"
6678 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6679 xm_file
="xm-openbsd.h vax/xm-vax.h"
6683 vax-
*-ultrix*) # vaxen running ultrix
6684 tm_file
="${tm_file} vax/ultrix.h"
6687 vax-
*-vms*) # vaxen running VMS
6688 xm_file
=vax
/xm-vms.h
6692 vax-
*-*) # vax default entry
6696 xm_file
="${xm_file} xm-svr3"
6700 echo "Configuration $machine not supported" 1>&2
6707 ;; # Existing GNU/Linux systems do not use the GNU setup.
6709 # On the GNU system, the setup is just about the same on
6710 # each different CPU. The specific machines that GNU
6711 # supports are matched above and just set $cpu_type.
6712 xm_file
="xm-gnu.h ${xm_file}"
6713 tm_file
=${cpu_type}/gnu.h
6714 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6715 # GNU always uses ELF.
6717 # GNU tools are the only tools.
6720 xmake_file
=x-linux
# These details are the same as Linux.
6721 tmake_file
=t-gnu
# These are not.
6724 xmake_try_sysv
=x-sysv
6725 install_headers_dir
=install-headers-cpio
6728 install_headers_dir
=install-headers-cpio
6732 # Distinguish i[34567]86
6733 # Also, do not run mips-tfile on MIPS if using gas.
6734 # Process --with-cpu= for PowerPC/rs6000
6735 target_cpu_default2
=
6738 target_cpu_default2
=1
6741 case $target_alias in
6743 target_cpu_default2
=4
6746 target_cpu_default2
=2
6750 i686-
*-* | i786-
*-*)
6751 target_cpu_default2
=3
6756 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6759 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6762 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6765 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6768 target_cpu_default2
="MASK_CPU_EV5"
6772 if test x
$gas = xyes
6774 if test "$target_cpu_default2" = ""
6776 target_cpu_default2
="MASK_GAS"
6778 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6783 case "x$with_cpu" in
6786 target_cpu_default2
="TARGET_CPU_generic"
6789 # Distinguish cores, and major variants
6790 # arm7m doesn't exist, but D & I don't affect code
6791 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6792 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6793 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6794 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6795 target_cpu_default2
="TARGET_CPU_$with_cpu"
6799 echo "--with-cpu must be passed a value" 1>&2
6804 if test x
$pass2done = xyes
6806 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6813 mips
*-*-ecoff* | mips
*-*-elf*)
6814 if test x
$gas = xyes
6816 if test x
$gnu_ld = xyes
6818 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6820 target_cpu_default2
="MASK_GAS"
6825 if test x
$gas = xyes
6827 target_cpu_default2
="MASK_GAS"
6830 powerpc
*-*-* | rs6000-
*-*)
6831 case "x$with_cpu" in
6835 xcommon | xpower | xpower2 | xpowerpc | xrios \
6836 | xrios1 | xrios2 | xrsc | xrsc1 \
6837 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6838 | xec603e | x740 | x750 | x401 \
6839 | x403 | x505 | x801 | x821 | x823 | x860
)
6840 target_cpu_default2
="\"$with_cpu\""
6844 echo "--with-cpu must be passed a value" 1>&2
6849 if test x
$pass2done = xyes
6851 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6858 case ".$with_cpu" in
6860 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6862 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6863 target_cpu_default2
="TARGET_CPU_$with_cpu"
6866 if test x
$pass2done = xyes
6868 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6876 if test "$target_cpu_default2" != ""
6878 if test "$target_cpu_default" != ""
6880 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6882 target_cpu_default
=$target_cpu_default2
6886 # No need for collect2 if we have the GNU linker.
6887 # Actually, there is now; GNU ld doesn't handle the EH info or
6888 # collecting for shared libraries.
6895 # Save data on machine being used to compile GCC in build_xm_file.
6896 # Save data on host machine in vars host_xm_file and host_xmake_file.
6897 if test x
$pass1done = x
6899 if test x
"$xm_file" = x
6900 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6901 else build_xm_file
=$xm_file
6903 build_xm_defines
=$xm_defines
6904 build_install_headers_dir
=$install_headers_dir
6905 build_exeext
=$exeext
6908 if test x
$pass2done = x
6910 if test x
"$xm_file" = x
6911 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6912 else host_xm_file
=$xm_file
6914 host_xm_defines
=$xm_defines
6915 if test x
"$xmake_file" = x
6916 then xmake_file
=$cpu_type/x-
$cpu_type
6918 host_xmake_file
="$xmake_file"
6919 host_truncate_target
=$truncate_target
6920 host_extra_gcc_objs
=$extra_gcc_objs
6921 host_extra_objs
=$extra_host_objs
6928 extra_objs
="${host_extra_objs} ${extra_objs}"
6930 # Default the target-machine variables that were not explicitly set.
6931 if test x
"$tm_file" = x
6932 then tm_file
=$cpu_type/$cpu_type.h
; fi
6934 if test x
$extra_headers = x
6935 then extra_headers
=; fi
6937 if test x
"$xm_file" = x
6938 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6940 if test x
$md_file = x
6941 then md_file
=$cpu_type/$cpu_type.md
; fi
6943 if test x
$out_file = x
6944 then out_file
=$cpu_type/$cpu_type.c
; fi
6946 if test x
"$tmake_file" = x
6947 then tmake_file
=$cpu_type/t-
$cpu_type
6950 if test x
"$dwarf2" = xyes
6951 then tm_file
="$tm_file tm-dwarf2.h"
6954 if test x
$float_format = x
6955 then float_format
=i64
6958 if test $float_format = none
6959 then float_h_file
=Makefile.
in
6960 else float_h_file
=float-
$float_format.h
6963 # Handle cpp installation.
6964 if test x
$enable_cpp != xno
6966 tmake_file
="$tmake_file t-install-cpp"
6969 # Say what files are being used for the output code and MD file.
6970 echo "Using \`$srcdir/config/$out_file' to output insns."
6971 echo "Using \`$srcdir/config/$md_file' as machine description file."
6974 for f
in $tm_file; do
6977 if test $count = ax
; then
6978 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6980 echo "Using the following target machine macro files:"
6981 for f
in $tm_file; do
6982 echo " $srcdir/config/$f"
6987 for f
in $host_xm_file; do
6990 if test $count = ax
; then
6991 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6993 echo "Using the following host machine macro files:"
6994 for f
in $host_xm_file; do
6995 echo " $srcdir/config/$f"
6999 if test "$host_xm_file" != "$build_xm_file"; then
7001 for f
in $build_xm_file; do
7004 if test $count = ax
; then
7005 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
7007 echo "Using the following build machine macro files:"
7008 for f
in $build_xm_file; do
7009 echo " $srcdir/config/$f"
7014 if test x
$thread_file = x
; then
7015 if test x
$target_thread_file != x
; then
7016 thread_file
=$target_thread_file
7018 thread_file
='single'
7022 # Set up the header files.
7023 # $links is the list of header files to create.
7024 # $vars is the list of shell variables with file names to include.
7025 # auto-host.h is the file containing items generated by autoconf and is
7026 # the first file included by config.h.
7028 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
7030 # If host=build, it is correct to have hconfig include auto-host.h
7031 # as well. If host!=build, we are in error and need to do more
7032 # work to find out the build config parameters.
7033 if test x
$host = x
$build
7035 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
7037 # We create a subdir, then run autoconf in the subdir.
7038 # To prevent recursion we set host and build for the new
7039 # invocation of configure to the build for this invocation
7046 /*) realsrcdir
=${srcdir};;
7047 *) realsrcdir
=..
/${srcdir};;
7049 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
7050 --target=$target --host=$build --build=$build
7052 # We just finished tests for the build machine, so rename
7053 # the file auto-build.h in the gcc directory.
7054 mv auto-host.h ..
/auto-build.h
7057 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
7060 xm_file
="gansidecl.h ${xm_file}"
7061 tm_file
="gansidecl.h ${tm_file}"
7063 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
7064 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
7065 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
7068 if test -f config.status
; then mv -f config.status config.bak
; fi
7071 while test -n "$vars"
7073 set $vars; var
=$1; shift; vars
=$
*
7074 set $links; link
=$1; shift; links
=$
*
7075 set $defines; define
=$1; shift; defines
=$
*
7078 # Make sure the file is created, even if it is empty.
7081 # Define TARGET_CPU_DEFAULT if the system wants one.
7082 # This substitutes for lots of *.h files.
7083 if test "$target_cpu_default" != "" -a $link = tm.h
7085 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7088 for file in `eval echo '$'$var`; do
7090 auto-host.h | auto-build.h
)
7093 echo '#ifdef IN_GCC' >>$link
7096 echo "#include \"$file\"" >>$link
7098 auto-host.h | auto-build.h
)
7101 echo '#endif' >>$link
7106 for def
in `eval echo '$'$define`; do
7107 echo "#ifndef $def" >>$link
7108 echo "#define $def" >>$link
7109 echo "#endif" >>$link
7113 # Truncate the target if necessary
7114 if test x
$host_truncate_target != x
; then
7115 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7118 # Get the version trigger filename from the toplevel
7119 if test "${with_gcc_version_trigger+set}" = set; then
7120 gcc_version_trigger
=$with_gcc_version_trigger
7122 gcc_version_trigger
=${srcdir}/version.c
7124 gcc_version
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
7126 # Internationalization
7128 VERSION
="$gcc_version"
7129 cat >> confdefs.h
<<EOF
7130 #define PACKAGE "$PACKAGE"
7133 cat >> confdefs.h
<<EOF
7134 #define VERSION "$VERSION"
7142 # Enable NLS support by default
7143 # Check whether --enable-nls or --disable-nls was given.
7144 if test "${enable_nls+set}" = set; then
7145 enableval
="$enable_nls"
7152 # if cross compiling, disable NLS support.
7153 # It's not worth the trouble, at least for now.
7155 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7156 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7161 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7162 echo "configure:7163: checking for strerror in -lcposix" >&5
7163 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7165 echo $ac_n "(cached) $ac_c" 1>&6
7167 ac_save_LIBS
="$LIBS"
7168 LIBS
="-lcposix $LIBS"
7169 cat > conftest.
$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* Override any gcc2 internal prototype to avoid an error. */
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7181 if { (eval echo configure
:7182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7183 eval "ac_cv_lib_$ac_lib_var=yes"
7185 echo "configure: failed program was:" >&5
7186 cat conftest.
$ac_ext >&5
7188 eval "ac_cv_lib_$ac_lib_var=no"
7191 LIBS
="$ac_save_LIBS"
7194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7195 echo "$ac_t""yes" 1>&6
7196 LIBS
="$LIBS -lcposix"
7198 echo "$ac_t""no" 1>&6
7203 echo $ac_n "checking for working const""... $ac_c" 1>&6
7204 echo "configure:7205: checking for working const" >&5
7205 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7206 echo $ac_n "(cached) $ac_c" 1>&6
7208 cat > conftest.
$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7214 /* Ultrix mips cc rejects this. */
7215 typedef int charset[2]; const charset x;
7216 /* SunOS 4.1.1 cc rejects this. */
7217 char const *const *ccp;
7219 /* NEC SVR4.0.2 mips cc rejects this. */
7220 struct point {int x, y;};
7221 static struct point const zero = {0,0};
7222 /* AIX XL C 1.02.0.0 rejects this.
7223 It does not let you subtract one const X* pointer from another in an arm
7224 of an if-expression whose if-part is not a constant expression */
7225 const char *g = "string";
7226 ccp = &g + (g ? g-g : 0);
7227 /* HPUX 7.0 cc rejects these. */
7230 ccp = (char const *const *) p;
7231 { /* SCO 3.2v4 cc rejects this. */
7233 char const *s = 0 ? (char *) 0 : (char const *) 0;
7237 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7239 const int *foo = &x[0];
7242 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7243 typedef const int *iptr;
7247 { /* AIX XL C 1.02.0.0 rejects this saying
7248 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7249 struct s { int j; const int *ap[3]; };
7250 struct s *b; b->j = 5;
7252 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7258 if { (eval echo configure
:7259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7262 echo "configure: failed program was:" >&5
7263 cat conftest.
$ac_ext >&5
7270 echo "$ac_t""$ac_cv_c_const" 1>&6
7271 if test $ac_cv_c_const = no
; then
7272 cat >> confdefs.h
<<\EOF
7278 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7279 echo "configure:7280: checking for off_t" >&5
7280 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7281 echo $ac_n "(cached) $ac_c" 1>&6
7283 cat > conftest.
$ac_ext <<EOF
7284 #line 7285 "configure"
7285 #include "confdefs.h"
7286 #include <sys/types.h>
7292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7295 ac_cv_type_off_t
=yes
7303 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7304 if test $ac_cv_type_off_t = no
; then
7305 cat >> confdefs.h
<<\EOF
7311 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7312 echo "configure:7313: checking for size_t" >&5
7313 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7314 echo $ac_n "(cached) $ac_c" 1>&6
7316 cat > conftest.
$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7319 #include <sys/types.h>
7325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7326 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7328 ac_cv_type_size_t
=yes
7331 ac_cv_type_size_t
=no
7336 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7337 if test $ac_cv_type_size_t = no
; then
7338 cat >> confdefs.h
<<\EOF
7339 #define size_t unsigned
7344 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7345 # for constant arguments. Useless!
7346 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7347 echo "configure:7348: checking for working alloca.h" >&5
7348 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6
7351 cat > conftest.
$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7356 char *p = alloca(2 * sizeof(int));
7359 if { (eval echo configure
:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7361 ac_cv_header_alloca_h
=yes
7363 echo "configure: failed program was:" >&5
7364 cat conftest.
$ac_ext >&5
7366 ac_cv_header_alloca_h
=no
7371 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7372 if test $ac_cv_header_alloca_h = yes; then
7373 cat >> confdefs.h
<<\EOF
7374 #define HAVE_ALLOCA_H 1
7379 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7380 echo "configure:7381: checking for alloca" >&5
7381 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7384 cat > conftest.
$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7389 # define alloca __builtin_alloca
7392 # include <malloc.h>
7393 # define alloca _alloca
7396 # include <alloca.h>
7401 # ifndef alloca /* predefined by HP cc +Olibcalls */
7410 char *p = (char *) alloca(1);
7413 if { (eval echo configure
:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7415 ac_cv_func_alloca_works
=yes
7417 echo "configure: failed program was:" >&5
7418 cat conftest.
$ac_ext >&5
7420 ac_cv_func_alloca_works
=no
7425 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7426 if test $ac_cv_func_alloca_works = yes; then
7427 cat >> confdefs.h
<<\EOF
7428 #define HAVE_ALLOCA 1
7433 if test $ac_cv_func_alloca_works = no
; then
7434 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7435 # that cause trouble. Some versions do not even contain alloca or
7436 # contain a buggy version. If you still want to use their alloca,
7437 # use ar to extract alloca.o from them instead of compiling alloca.c.
7438 ALLOCA
=alloca.
${ac_objext}
7439 cat >> confdefs.h
<<\EOF
7444 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7445 echo "configure:7446: checking whether alloca needs Cray hooks" >&5
7446 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7447 echo $ac_n "(cached) $ac_c" 1>&6
7449 cat > conftest.
$ac_ext <<EOF
7450 #line 7451 "configure"
7451 #include "confdefs.h"
7452 #if defined(CRAY) && ! defined(CRAY2)
7459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7460 egrep "webecray" >/dev
/null
2>&1; then
7471 echo "$ac_t""$ac_cv_os_cray" 1>&6
7472 if test $ac_cv_os_cray = yes; then
7473 for ac_func
in _getb67 GETB67 getb67
; do
7474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7475 echo "configure:7476: checking for $ac_func" >&5
7476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7479 cat > conftest.
$ac_ext <<EOF
7480 #line 7481 "configure"
7481 #include "confdefs.h"
7482 /* System header to define __stub macros and hopefully few prototypes,
7483 which can conflict with char $ac_func(); below. */
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 /* We use char because int might match the return type of a gcc2
7487 builtin and then its argument prototype would still apply. */
7492 /* The GNU C library defines this for functions which it implements
7493 to always fail with ENOSYS. Some functions are actually named
7494 something starting with __ and the normal name is an alias. */
7495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7503 if { (eval echo configure
:7504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7505 eval "ac_cv_func_$ac_func=yes"
7507 echo "configure: failed program was:" >&5
7508 cat conftest.
$ac_ext >&5
7510 eval "ac_cv_func_$ac_func=no"
7515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7516 echo "$ac_t""yes" 1>&6
7517 cat >> confdefs.h
<<EOF
7518 #define CRAY_STACKSEG_END $ac_func
7523 echo "$ac_t""no" 1>&6
7529 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7530 echo "configure:7531: checking stack direction for C alloca" >&5
7531 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7534 if test "$cross_compiling" = yes; then
7535 ac_cv_c_stack_direction
=0
7537 cat > conftest.
$ac_ext <<EOF
7538 #line 7539 "configure"
7539 #include "confdefs.h"
7540 find_stack_direction ()
7542 static char *addr = 0;
7547 return find_stack_direction ();
7550 return (&dummy > addr) ? 1 : -1;
7554 exit (find_stack_direction() < 0);
7557 if { (eval echo configure
:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7559 ac_cv_c_stack_direction
=1
7561 echo "configure: failed program was:" >&5
7562 cat conftest.
$ac_ext >&5
7564 ac_cv_c_stack_direction
=-1
7571 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7572 cat >> confdefs.h
<<EOF
7573 #define STACK_DIRECTION $ac_cv_c_stack_direction
7579 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7580 unistd.h sys
/param.h
7582 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_hdr" >&5
7585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 cat > conftest.
$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7593 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7594 { (eval echo configure
:7595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7595 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7596 if test -z "$ac_err"; then
7598 eval "ac_cv_header_$ac_safe=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.
$ac_ext >&5
7604 eval "ac_cv_header_$ac_safe=no"
7608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7610 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7611 cat >> confdefs.h
<<EOF
7612 #define $ac_tr_hdr 1
7616 echo "$ac_t""no" 1>&6
7620 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7621 strdup __argz_count __argz_stringify __argz_next
7623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7624 echo "configure:7625: checking for $ac_func" >&5
7625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7626 echo $ac_n "(cached) $ac_c" 1>&6
7628 cat > conftest.
$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 /* System header to define __stub macros and hopefully few prototypes,
7632 which can conflict with char $ac_func(); below. */
7634 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7652 if { (eval echo configure
:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7654 eval "ac_cv_func_$ac_func=yes"
7656 echo "configure: failed program was:" >&5
7657 cat conftest.
$ac_ext >&5
7659 eval "ac_cv_func_$ac_func=no"
7664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7665 echo "$ac_t""yes" 1>&6
7666 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7667 cat >> confdefs.h
<<EOF
7668 #define $ac_tr_func 1
7672 echo "$ac_t""no" 1>&6
7677 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7678 for ac_func
in stpcpy
7680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7681 echo "configure:7682: checking for $ac_func" >&5
7682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7683 echo $ac_n "(cached) $ac_c" 1>&6
7685 cat > conftest.
$ac_ext <<EOF
7686 #line 7687 "configure"
7687 #include "confdefs.h"
7688 /* System header to define __stub macros and hopefully few prototypes,
7689 which can conflict with char $ac_func(); below. */
7691 /* Override any gcc2 internal prototype to avoid an error. */
7692 /* We use char because int might match the return type of a gcc2
7693 builtin and then its argument prototype would still apply. */
7698 /* The GNU C library defines this for functions which it implements
7699 to always fail with ENOSYS. Some functions are actually named
7700 something starting with __ and the normal name is an alias. */
7701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7709 if { (eval echo configure
:7710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7711 eval "ac_cv_func_$ac_func=yes"
7713 echo "configure: failed program was:" >&5
7714 cat conftest.
$ac_ext >&5
7716 eval "ac_cv_func_$ac_func=no"
7721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7722 echo "$ac_t""yes" 1>&6
7723 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7724 cat >> confdefs.h
<<EOF
7725 #define $ac_tr_func 1
7729 echo "$ac_t""no" 1>&6
7734 if test "${ac_cv_func_stpcpy}" = "yes"; then
7735 cat >> confdefs.h
<<\EOF
7736 #define HAVE_STPCPY 1
7741 if test $ac_cv_header_locale_h = yes; then
7742 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7743 echo "configure:7744: checking for LC_MESSAGES" >&5
7744 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 cat > conftest.
$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7755 if { (eval echo configure
:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7757 am_cv_val_LC_MESSAGES
=yes
7759 echo "configure: failed program was:" >&5
7760 cat conftest.
$ac_ext >&5
7762 am_cv_val_LC_MESSAGES
=no
7767 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7768 if test $am_cv_val_LC_MESSAGES = yes; then
7769 cat >> confdefs.h
<<\EOF
7770 #define HAVE_LC_MESSAGES 1
7775 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7776 echo "configure:7777: checking whether NLS is requested" >&5
7777 # Check whether --enable-nls or --disable-nls was given.
7778 if test "${enable_nls+set}" = set; then
7779 enableval
="$enable_nls"
7785 echo "$ac_t""$USE_NLS" 1>&6
7788 USE_INCLUDED_LIBINTL
=no
7790 if test "$USE_NLS" = "yes"; then
7791 cat >> confdefs.h
<<\EOF
7792 #define ENABLE_NLS 1
7795 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7796 echo "configure:7797: checking whether included gettext is requested" >&5
7797 # Check whether --with-included-gettext or --without-included-gettext was given.
7798 if test "${with_included_gettext+set}" = set; then
7799 withval
="$with_included_gettext"
7800 nls_cv_force_use_gnu_gettext
=$withval
7802 nls_cv_force_use_gnu_gettext
=no
7805 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7807 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7808 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7810 nls_cv_header_libgt
=
7813 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7814 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7815 echo "configure:7816: checking for libintl.h" >&5
7816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7817 echo $ac_n "(cached) $ac_c" 1>&6
7819 cat > conftest.
$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7822 #include <libintl.h>
7824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7825 { (eval echo configure
:7826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7827 if test -z "$ac_err"; then
7829 eval "ac_cv_header_$ac_safe=yes"
7832 echo "configure: failed program was:" >&5
7833 cat conftest.
$ac_ext >&5
7835 eval "ac_cv_header_$ac_safe=no"
7839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7840 echo "$ac_t""yes" 1>&6
7841 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7842 echo "configure:7843: checking for gettext in libc" >&5
7843 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7844 echo $ac_n "(cached) $ac_c" 1>&6
7846 cat > conftest.
$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7849 #include <libintl.h>
7851 return (int) gettext ("")
7854 if { (eval echo configure
:7855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7856 gt_cv_func_gettext_libc
=yes
7858 echo "configure: failed program was:" >&5
7859 cat conftest.
$ac_ext >&5
7861 gt_cv_func_gettext_libc
=no
7866 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7868 if test "$gt_cv_func_gettext_libc" != "yes"; then
7869 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7870 echo "configure:7871: checking for bindtextdomain in -lintl" >&5
7871 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7873 echo $ac_n "(cached) $ac_c" 1>&6
7875 ac_save_LIBS
="$LIBS"
7877 cat > conftest.
$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7880 /* Override any gcc2 internal prototype to avoid an error. */
7881 /* We use char because int might match the return type of a gcc2
7882 builtin and then its argument prototype would still apply. */
7883 char bindtextdomain();
7889 if { (eval echo configure
:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7891 eval "ac_cv_lib_$ac_lib_var=yes"
7893 echo "configure: failed program was:" >&5
7894 cat conftest.
$ac_ext >&5
7896 eval "ac_cv_lib_$ac_lib_var=no"
7899 LIBS
="$ac_save_LIBS"
7902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7903 echo "$ac_t""yes" 1>&6
7904 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7905 echo "configure:7906: checking for gettext in libintl" >&5
7906 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7907 echo $ac_n "(cached) $ac_c" 1>&6
7909 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7910 echo "configure:7911: checking for gettext in -lintl" >&5
7911 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7913 echo $ac_n "(cached) $ac_c" 1>&6
7915 ac_save_LIBS
="$LIBS"
7917 cat > conftest.
$ac_ext <<EOF
7918 #line 7919 "configure"
7919 #include "confdefs.h"
7920 /* Override any gcc2 internal prototype to avoid an error. */
7921 /* We use char because int might match the return type of a gcc2
7922 builtin and then its argument prototype would still apply. */
7929 if { (eval echo configure
:7930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7931 eval "ac_cv_lib_$ac_lib_var=yes"
7933 echo "configure: failed program was:" >&5
7934 cat conftest.
$ac_ext >&5
7936 eval "ac_cv_lib_$ac_lib_var=no"
7939 LIBS
="$ac_save_LIBS"
7942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7943 echo "$ac_t""yes" 1>&6
7944 gt_cv_func_gettext_libintl
=yes
7946 echo "$ac_t""no" 1>&6
7947 gt_cv_func_gettext_libintl
=no
7952 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7954 echo "$ac_t""no" 1>&6
7959 if test "$gt_cv_func_gettext_libc" = "yes" \
7960 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7961 cat >> confdefs.h
<<\EOF
7962 #define HAVE_GETTEXT 1
7965 # Extract the first word of "msgfmt", so it can be a program name with args.
7966 set dummy msgfmt
; ac_word
=$2
7967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7968 echo "configure:7969: checking for $ac_word" >&5
7969 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7974 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7977 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7978 for ac_dir
in $PATH; do
7979 test -z "$ac_dir" && ac_dir
=.
7980 if test -f $ac_dir/$ac_word; then
7981 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7982 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7988 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7992 MSGFMT
="$ac_cv_path_MSGFMT"
7993 if test -n "$MSGFMT"; then
7994 echo "$ac_t""$MSGFMT" 1>&6
7996 echo "$ac_t""no" 1>&6
7998 if test "$MSGFMT" != "no"; then
7999 for ac_func
in dcgettext
8001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8002 echo "configure:8003: checking for $ac_func" >&5
8003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8004 echo $ac_n "(cached) $ac_c" 1>&6
8006 cat > conftest.
$ac_ext <<EOF
8007 #line 8008 "configure"
8008 #include "confdefs.h"
8009 /* System header to define __stub macros and hopefully few prototypes,
8010 which can conflict with char $ac_func(); below. */
8012 /* Override any gcc2 internal prototype to avoid an error. */
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8019 /* The GNU C library defines this for functions which it implements
8020 to always fail with ENOSYS. Some functions are actually named
8021 something starting with __ and the normal name is an alias. */
8022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8030 if { (eval echo configure
:8031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8032 eval "ac_cv_func_$ac_func=yes"
8034 echo "configure: failed program was:" >&5
8035 cat conftest.
$ac_ext >&5
8037 eval "ac_cv_func_$ac_func=no"
8042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8043 echo "$ac_t""yes" 1>&6
8044 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8045 cat >> confdefs.h
<<EOF
8046 #define $ac_tr_func 1
8050 echo "$ac_t""no" 1>&6
8054 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8055 set dummy gmsgfmt
; ac_word
=$2
8056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8057 echo "configure:8058: checking for $ac_word" >&5
8058 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8059 echo $ac_n "(cached) $ac_c" 1>&6
8063 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8066 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8069 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8071 for ac_dir
in $ac_dummy; do
8072 test -z "$ac_dir" && ac_dir
=.
8073 if test -f $ac_dir/$ac_word; then
8074 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8079 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8083 GMSGFMT
="$ac_cv_path_GMSGFMT"
8084 if test -n "$GMSGFMT"; then
8085 echo "$ac_t""$GMSGFMT" 1>&6
8087 echo "$ac_t""no" 1>&6
8090 # Extract the first word of "xgettext", so it can be a program name with args.
8091 set dummy xgettext
; ac_word
=$2
8092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8093 echo "configure:8094: checking for $ac_word" >&5
8094 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8099 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8102 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8103 for ac_dir
in $PATH; do
8104 test -z "$ac_dir" && ac_dir
=.
8105 if test -f $ac_dir/$ac_word; then
8106 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8107 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8113 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8117 XGETTEXT
="$ac_cv_path_XGETTEXT"
8118 if test -n "$XGETTEXT"; then
8119 echo "$ac_t""$XGETTEXT" 1>&6
8121 echo "$ac_t""no" 1>&6
8124 cat > conftest.
$ac_ext <<EOF
8125 #line 8126 "configure"
8126 #include "confdefs.h"
8129 extern int _nl_msg_cat_cntr;
8130 return _nl_msg_cat_cntr
8133 if { (eval echo configure
:8134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8138 echo "configure: failed program was:" >&5
8139 cat conftest.
$ac_ext >&5
8150 echo "$ac_t""no" 1>&6
8154 if test "$CATOBJEXT" = "NONE"; then
8155 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8156 echo "configure:8157: checking whether catgets can be used" >&5
8157 # Check whether --with-catgets or --without-catgets was given.
8158 if test "${with_catgets+set}" = set; then
8159 withval
="$with_catgets"
8160 nls_cv_use_catgets
=$withval
8162 nls_cv_use_catgets
=no
8165 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8167 if test "$nls_cv_use_catgets" = "yes"; then
8168 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8169 echo "configure:8170: checking for main in -li" >&5
8170 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 ac_save_LIBS
="$LIBS"
8176 cat > conftest.
$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8184 if { (eval echo configure
:8185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8186 eval "ac_cv_lib_$ac_lib_var=yes"
8188 echo "configure: failed program was:" >&5
8189 cat conftest.
$ac_ext >&5
8191 eval "ac_cv_lib_$ac_lib_var=no"
8194 LIBS
="$ac_save_LIBS"
8197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8198 echo "$ac_t""yes" 1>&6
8199 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8200 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8201 cat >> confdefs.h
<<EOF
8202 #define $ac_tr_lib 1
8208 echo "$ac_t""no" 1>&6
8211 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8212 echo "configure:8213: checking for catgets" >&5
8213 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8216 cat > conftest.
$ac_ext <<EOF
8217 #line 8218 "configure"
8218 #include "confdefs.h"
8219 /* System header to define __stub macros and hopefully few prototypes,
8220 which can conflict with char catgets(); below. */
8222 /* Override any gcc2 internal prototype to avoid an error. */
8223 /* We use char because int might match the return type of a gcc2
8224 builtin and then its argument prototype would still apply. */
8229 /* The GNU C library defines this for functions which it implements
8230 to always fail with ENOSYS. Some functions are actually named
8231 something starting with __ and the normal name is an alias. */
8232 #if defined (__stub_catgets) || defined (__stub___catgets)
8240 if { (eval echo configure
:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8242 eval "ac_cv_func_catgets=yes"
8244 echo "configure: failed program was:" >&5
8245 cat conftest.
$ac_ext >&5
8247 eval "ac_cv_func_catgets=no"
8252 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8253 echo "$ac_t""yes" 1>&6
8254 cat >> confdefs.h
<<\EOF
8255 #define HAVE_CATGETS 1
8258 INTLOBJS
="\$(CATOBJS)"
8259 # Extract the first word of "gencat", so it can be a program name with args.
8260 set dummy gencat
; ac_word
=$2
8261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8262 echo "configure:8263: checking for $ac_word" >&5
8263 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8268 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8271 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8274 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8276 for ac_dir
in $ac_dummy; do
8277 test -z "$ac_dir" && ac_dir
=.
8278 if test -f $ac_dir/$ac_word; then
8279 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
8284 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
8288 GENCAT
="$ac_cv_path_GENCAT"
8289 if test -n "$GENCAT"; then
8290 echo "$ac_t""$GENCAT" 1>&6
8292 echo "$ac_t""no" 1>&6
8294 if test "$GENCAT" != "no"; then
8295 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8296 set dummy gmsgfmt
; ac_word
=$2
8297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8298 echo "configure:8299: checking for $ac_word" >&5
8299 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8300 echo $ac_n "(cached) $ac_c" 1>&6
8304 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8307 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8310 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8312 for ac_dir
in $ac_dummy; do
8313 test -z "$ac_dir" && ac_dir
=.
8314 if test -f $ac_dir/$ac_word; then
8315 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8320 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
8324 GMSGFMT
="$ac_cv_path_GMSGFMT"
8325 if test -n "$GMSGFMT"; then
8326 echo "$ac_t""$GMSGFMT" 1>&6
8328 echo "$ac_t""no" 1>&6
8331 if test "$GMSGFMT" = "no"; then
8332 # Extract the first word of "msgfmt", so it can be a program name with args.
8333 set dummy msgfmt
; ac_word
=$2
8334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8335 echo "configure:8336: checking for $ac_word" >&5
8336 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8341 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8344 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8345 for ac_dir
in $PATH; do
8346 test -z "$ac_dir" && ac_dir
=.
8347 if test -f $ac_dir/$ac_word; then
8348 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8349 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8355 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="msgfmt"
8359 GMSGFMT
="$ac_cv_path_GMSGFMT"
8360 if test -n "$GMSGFMT"; then
8361 echo "$ac_t""$GMSGFMT" 1>&6
8363 echo "$ac_t""no" 1>&6
8366 if test "$GMSGFMT" = "msgfmt"; then
8367 echo "configure: warning: No program for catalog building found" 1>&2
8368 create_catalogs
="no"
8371 # Extract the first word of "xgettext", so it can be a program name with args.
8372 set dummy xgettext
; ac_word
=$2
8373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8374 echo "configure:8375: checking for $ac_word" >&5
8375 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8376 echo $ac_n "(cached) $ac_c" 1>&6
8380 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8383 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8384 for ac_dir
in $PATH; do
8385 test -z "$ac_dir" && ac_dir
=.
8386 if test -f $ac_dir/$ac_word; then
8387 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8388 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8394 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8398 XGETTEXT
="$ac_cv_path_XGETTEXT"
8399 if test -n "$XGETTEXT"; then
8400 echo "$ac_t""$XGETTEXT" 1>&6
8402 echo "$ac_t""no" 1>&6
8405 USE_INCLUDED_LIBINTL
=yes
8409 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8411 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8412 nls_cv_header_intl
=intl
/libintl.h
8413 nls_cv_header_libgt
=intl
/libgettext.h
8416 echo "$ac_t""no" 1>&6
8422 if test "$CATOBJEXT" = "NONE"; then
8423 nls_cv_use_gnu_gettext
=yes
8427 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8428 INTLOBJS
="\$(GETTOBJS)"
8429 # Extract the first word of "msgfmt", so it can be a program name with args.
8430 set dummy msgfmt
; ac_word
=$2
8431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8432 echo "configure:8433: checking for $ac_word" >&5
8433 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8434 echo $ac_n "(cached) $ac_c" 1>&6
8438 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8441 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8442 for ac_dir
in $PATH; do
8443 test -z "$ac_dir" && ac_dir
=.
8444 if test -f $ac_dir/$ac_word; then
8445 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8446 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
8452 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
8456 MSGFMT
="$ac_cv_path_MSGFMT"
8457 if test -n "$MSGFMT"; then
8458 echo "$ac_t""$MSGFMT" 1>&6
8460 echo "$ac_t""no" 1>&6
8463 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8464 set dummy gmsgfmt
; ac_word
=$2
8465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8466 echo "configure:8467: checking for $ac_word" >&5
8467 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8472 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8475 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8478 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8480 for ac_dir
in $ac_dummy; do
8481 test -z "$ac_dir" && ac_dir
=.
8482 if test -f $ac_dir/$ac_word; then
8483 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8488 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8492 GMSGFMT
="$ac_cv_path_GMSGFMT"
8493 if test -n "$GMSGFMT"; then
8494 echo "$ac_t""$GMSGFMT" 1>&6
8496 echo "$ac_t""no" 1>&6
8499 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8500 echo "configure: warning: Neither msgfmt nor gmsgfmt found. No catalogs will be built" 1>&2
8501 create_catalogs
="no"
8503 # Extract the first word of "xgettext", so it can be a program name with args.
8504 set dummy xgettext
; ac_word
=$2
8505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8506 echo "configure:8507: checking for $ac_word" >&5
8507 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8508 echo $ac_n "(cached) $ac_c" 1>&6
8512 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8515 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8516 for ac_dir
in $PATH; do
8517 test -z "$ac_dir" && ac_dir
=.
8518 if test -f $ac_dir/$ac_word; then
8519 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8520 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8526 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8530 XGETTEXT
="$ac_cv_path_XGETTEXT"
8531 if test -n "$XGETTEXT"; then
8532 echo "$ac_t""$XGETTEXT" 1>&6
8534 echo "$ac_t""no" 1>&6
8538 USE_INCLUDED_LIBINTL
=yes
8542 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8544 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8545 nls_cv_header_intl
=intl
/libintl.h
8546 nls_cv_header_libgt
=intl
/libgettext.h
8549 if test "$XGETTEXT" != ":"; then
8550 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8553 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8560 # We need to process the po/ directory.
8564 nls_cv_header_intl
=intl
/libintl.h
8565 nls_cv_header_libgt
=intl
/libgettext.h
8571 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8572 # because some of the sources are only built for this goal.
8573 if test "$PACKAGE" = gettext; then
8575 USE_INCLUDED_LIBINTL
=yes
8578 for lang
in $ALL_LINGUAS; do
8579 GMOFILES
="$GMOFILES $lang.gmo"
8580 POFILES
="$POFILES $lang.po"
8596 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8597 if test "x$ALL_LINGUAS" = "x"; then
8600 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8601 echo "configure:8602: checking for catalogs to be installed" >&5
8602 if test "x$LINGUAS" = "x"; then
8603 LINGUAS
=$ALL_LINGUAS
8606 for lang
in $ALL_LINGUAS; do
8607 case " $LINGUAS " in
8608 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8611 LINGUAS
=$NEW_LINGUAS
8613 echo "$ac_t""$LINGUAS" 1>&6
8616 if test -n "$LINGUAS"; then
8617 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8621 if test $ac_cv_header_locale_h = yes; then
8622 INCLUDE_LOCALE_H
="#include <locale.h>"
8625 /* The system does not provide the header <locale.h>. Take care yourself. */"
8629 test -d intl || mkdir intl
8630 if test "$CATOBJEXT" = ".cat"; then
8631 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8632 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8633 echo "configure:8634: checking for linux/version.h" >&5
8634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8635 echo $ac_n "(cached) $ac_c" 1>&6
8637 cat > conftest.
$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 #include <linux/version.h>
8642 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8643 { (eval echo configure
:8644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8644 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8645 if test -z "$ac_err"; then
8647 eval "ac_cv_header_$ac_safe=yes"
8650 echo "configure: failed program was:" >&5
8651 cat conftest.
$ac_ext >&5
8653 eval "ac_cv_header_$ac_safe=no"
8657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8658 echo "$ac_t""yes" 1>&6
8661 echo "$ac_t""no" 1>&6
8666 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8668 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8669 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8671 if test "$PACKAGE" = "gettext"; then
8682 if test -n "$ac_aux_dir"; then
8683 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8685 if test -z "$MKINSTALLDIRS"; then
8686 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8693 test -d po || mkdir po
8694 if test "x$srcdir" != "x."; then
8695 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8696 posrcprefix
="$srcdir/"
8698 posrcprefix
="../$srcdir/"
8704 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8705 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8707 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8709 # Windows32 Registry support for specifying GCC installation paths.
8710 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8711 if test "${enable_win32_registry+set}" = set; then
8712 enableval
="$enable_win32_registry"
8717 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8718 echo "configure:8719: checking whether windows registry support is requested" >&5
8719 if test x
$enable_win32_registry != xno
; then
8720 cat >> confdefs.h
<<\EOF
8721 #define ENABLE_WIN32_REGISTRY 1
8724 echo "$ac_t""yes" 1>&6
8726 echo "$ac_t""no" 1>&6
8729 # Check if user specified a different registry key.
8730 case x
${enable_win32_registry} in
8733 gcc_cv_win32_registry_key
="$VERSION"
8736 # no registry lookup.
8737 gcc_cv_win32_registry_key
=''
8740 # user-specified key.
8741 gcc_cv_win32_registry_key
="$enable_win32_registry"
8745 if test x
$enable_win32_registry != xno
; then
8746 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8747 echo "configure:8748: checking registry key on windows hosts" >&5
8748 cat >> confdefs.h
<<EOF
8749 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8752 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8755 # Get an absolute path to the GCC top-level source directory
8761 # Conditionalize the makefile for this host machine.
8762 # Make-host contains the concatenation of all host makefile fragments
8763 # [there can be more than one]. This file is built by configure.frag.
8764 host_overrides
=Make-host
8765 dep_host_xmake_file
=
8766 for f
in ..
${host_xmake_file}
8768 if test -f ${srcdir}/config
/$f
8770 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8774 # Conditionalize the makefile for this target machine.
8775 # Make-target contains the concatenation of all host makefile fragments
8776 # [there can be more than one]. This file is built by configure.frag.
8777 target_overrides
=Make-target
8779 for f
in ..
${tmake_file}
8781 if test -f ${srcdir}/config
/$f
8783 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8787 # If the host doesn't support symlinks, modify CC in
8788 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8789 # Otherwise, we can use "CC=$(CC)".
8791 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8793 cc_set_by_configure
="\$(CC)"
8794 quoted_cc_set_by_configure
="\$(CC)"
8795 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8798 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8800 symbolic_link
="cp -p"
8804 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8805 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8806 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8810 out_object_file
=`basename $out_file .c`.o
8813 for f
in $tm_file; do
8816 tm_file_list
="${tm_file_list} $f" ;;
8817 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8822 for f
in $host_xm_file; do
8824 auto-host.h | gansidecl.h | hwint.h
)
8825 host_xm_file_list
="${host_xm_file_list} $f" ;;
8826 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8831 for f
in $build_xm_file; do
8833 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8834 build_xm_file_list
="${build_xm_file_list} $f" ;;
8835 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8839 # Define macro CROSS_COMPILE in compilation
8840 # if this is a cross-compiler.
8841 # Also use all.cross instead of all.internal
8842 # and add cross-make to Makefile.
8843 cross_overrides
="/dev/null"
8844 if test x
$host != x
$target
8846 cross_defines
="CROSS=-DCROSS_COMPILE"
8847 cross_overrides
="${topdir}/cross-make"
8850 # If this is a cross-compiler that does not
8851 # have its own set of headers then define
8854 # If this is using newlib, then define inhibit_libc in
8855 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8856 # libgcc.a, but that's OK because newlib should have its own version of
8859 if test x
$host != x
$target && test x
$with_headers = x
; then
8860 inhibit_libc
=-Dinhibit_libc
8862 if test x
$with_newlib = xyes
; then
8863 inhibit_libc
=-Dinhibit_libc
8868 # When building gcc with a cross-compiler, we need to fix a few things.
8869 # This must come after cross-make as we want all.build to override
8871 build_overrides
="/dev/null"
8872 if test x
$build != x
$host
8874 build_overrides
="${topdir}/build-make"
8877 # Expand extra_headers to include complete path.
8878 # This substitutes for lots of t-* files.
8880 if test "x$extra_headers" = x
8883 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8884 for file in $extra_headers;
8886 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8890 if test x
$use_collect2 = xno
; then
8894 # Add a definition of USE_COLLECT2 if system wants one.
8895 # Also tell toplev.c what to do.
8896 # This substitutes for lots of t-* files.
8897 if test x
$use_collect2 = x
8902 will_use_collect2
="collect2"
8903 maybe_use_collect2
="-DUSE_COLLECT2"
8907 # Set MD_DEPS if the real md file is in md.pre-cpp.
8908 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8909 # for line oriented comments, so we must always use a GNU cpp. If
8910 # building gcc with a cross compiler, use the cross compiler just
8911 # built. Otherwise, we can use the cpp just built.
8913 if test "x$md_cppflags" = x
8915 md_file_sub
=$srcdir/config
/$md_file
8920 # If we have gas in the build tree, make a link to it.
8921 if test -f ..
/gas
/Makefile
; then
8922 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8925 # If we have nm in the build tree, make a link to it.
8926 if test -f ..
/binutils
/Makefile
; then
8927 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8930 # If we have ld in the build tree, make a link to it.
8931 if test -f ..
/ld
/Makefile
; then
8932 # if test x$use_collect2 = x; then
8933 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8935 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8939 # Figure out what assembler we will be using.
8940 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
8941 echo "configure:8942: checking what assembler to use" >&5
8943 gcc_cv_gas_major_version
=
8944 gcc_cv_gas_minor_version
=
8945 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8946 if test -x "$DEFAULT_ASSEMBLER"; then
8947 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8948 elif test -x "$AS"; then
8950 elif test -x as
$host_exeext; then
8951 # Build using assembler in the current directory.
8952 gcc_cv_as
=.
/as
$host_exeext
8953 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8954 # Single tree build which includes gas.
8955 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8957 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8958 if test x
$gcc_cv_gas_version != x
; then
8962 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8963 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8966 if test "x$gcc_cv_as" = x
-a x
$host = x
$target; then
8968 # Search the same directories that the installed compiler will
8969 # search. Else we may find the wrong assembler and lose. If we
8970 # do not find a suitable assembler binary, then try the user's
8973 # Also note we have to check MD_EXEC_PREFIX before checking the
8974 # user's path. Unfortunately, there is no good way to get at the
8975 # value of MD_EXEC_PREFIX here. So we do a brute force search
8976 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8977 # to be fixed as part of the make/configure rewrite too.
8979 if test "x$exec_prefix" = xNONE
; then
8980 if test "x$prefix" = xNONE
; then
8981 test_prefix
=/usr
/local
8986 test_prefix
=$exec_prefix
8989 # If the loop below does not find an assembler, then use whatever
8990 # one we can find in the users's path.
8994 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8995 $test_prefix/lib/gcc-lib/$target \
8996 /usr/lib/gcc/$target/$gcc_version \
8997 /usr/lib/gcc/$target \
8998 $test_prefix/$target/bin/$target/$gcc_version \
8999 $test_prefix/$target/bin \
9004 /bsd43/usr/lib/cmplrs/cc \
9005 /usr/cross64/usr/bin \
9006 /usr/lib/cmplrs/cc \
9007 /sysv/usr/lib/cmplrs/cc \
9008 /svr4/usr/lib/cmplrs/cc \
9011 for dir
in $test_dirs; do
9012 if test -f $dir/as
$host_exeext; then
9013 gcc_cv_as
=$dir/as
$host_exeext
9018 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9019 echo "$ac_t"""newly built gas
"" 1>&6
9021 echo "$ac_t""$gcc_cv_as" 1>&6
9024 # Figure out what nm we will be using.
9025 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
9026 echo "configure:9027: checking what nm to use" >&5
9027 if test -x nm
$host_exeext; then
9028 gcc_cv_nm
=.
/nm
$host_exeext
9029 elif test x
$host = x
$target; then
9031 gcc_cv_nm
=nm
$host_exeext
9033 echo "$ac_t""$gcc_cv_nm" 1>&6
9035 # Figure out what assembler alignment features are present.
9036 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
9037 echo "configure:9038: checking assembler alignment features" >&5
9038 gcc_cv_as_alignment_features
=
9039 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9040 # Gas version 2.6 and later support for .balign and .p2align.
9041 # bytes to skip when using .p2align.
9042 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
9043 gcc_cv_as_alignment_features
=".balign and .p2align"
9044 cat >> confdefs.h
<<\EOF
9045 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9049 # Gas version 2.8 and later support specifying the maximum
9050 # bytes to skip when using .p2align.
9051 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
9052 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9053 cat >> confdefs.h
<<\EOF
9054 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9058 elif test x
$gcc_cv_as != x
; then
9059 # Check if we have .balign and .p2align
9060 echo ".balign 4" > conftest.s
9061 echo ".p2align 2" >> conftest.s
9062 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9063 gcc_cv_as_alignment_features
=".balign and .p2align"
9064 cat >> confdefs.h
<<\EOF
9065 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9069 rm -f conftest.s conftest.o
9070 # Check if specifying the maximum bytes to skip when
9071 # using .p2align is supported.
9072 echo ".p2align 4,,7" > conftest.s
9073 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9074 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9075 cat >> confdefs.h
<<\EOF
9076 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9080 rm -f conftest.s conftest.o
9082 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
9084 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
9085 echo "configure:9086: checking assembler subsection support" >&5
9086 gcc_cv_as_subsections
=
9087 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9088 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
9089 gcc_cv_as_subsections
="working .subsection -1"
9091 elif test x
$gcc_cv_as != x
; then
9092 # Check if we have .subsection
9093 echo ".subsection 1" > conftest.s
9094 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9095 gcc_cv_as_subsections
=".subsection"
9096 if test x
$gcc_cv_nm != x
; then
9097 cat > conftest.s
<<EOF
9098 conftest_label1: .word 0
9100 conftest_label2: .word 0
9103 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9104 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9105 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9106 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9109 gcc_cv_as_subsections
="working .subsection -1"
9114 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9116 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
9117 cat >> confdefs.h
<<\EOF
9118 #define HAVE_GAS_SUBSECTION_ORDERING 1
9122 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9124 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9125 echo "configure:9126: checking assembler weak support" >&5
9127 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9128 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
9129 gcc_cv_as_weak
="yes"
9131 elif test x
$gcc_cv_as != x
; then
9132 # Check if we have .weak
9133 echo " .weak foobar" > conftest.s
9134 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9135 gcc_cv_as_weak
="yes"
9137 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9139 if test x
"$gcc_cv_as_weak" = xyes
; then
9140 cat >> confdefs.h
<<\EOF
9141 #define HAVE_GAS_WEAK 1
9145 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9147 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9148 echo "configure:9149: checking assembler hidden support" >&5
9150 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9151 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
9152 gcc_cv_as_hidden
="yes"
9154 elif test x
$gcc_cv_as != x
; then
9155 # Check if we have .hidden
9156 echo " .hidden foobar" > conftest.s
9157 echo "foobar:" >> conftest.s
9158 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9159 gcc_cv_as_hidden
="yes"
9161 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9163 if test x
"$gcc_cv_as_hidden" = xyes
; then
9164 cat >> confdefs.h
<<\EOF
9165 #define HAVE_GAS_HIDDEN 1
9169 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9173 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9174 echo "configure:9175: checking assembler .register pseudo-op support" >&5
9175 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9176 echo $ac_n "(cached) $ac_c" 1>&6
9179 gcc_cv_as_register_pseudo_op
=unknown
9180 if test x
$gcc_cv_as != x
; then
9181 # Check if we have .register
9182 echo ".register %g2, #scratch" > conftest.s
9183 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9184 gcc_cv_as_register_pseudo_op
=yes
9186 gcc_cv_as_register_pseudo_op
=no
9188 rm -f conftest.s conftest.o
9193 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9194 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9195 cat >> confdefs.h
<<\EOF
9196 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9201 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9202 echo "configure:9203: checking assembler supports -relax" >&5
9203 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9204 echo $ac_n "(cached) $ac_c" 1>&6
9207 gcc_cv_as_relax_opt
=unknown
9208 if test x
$gcc_cv_as != x
; then
9209 # Check if gas supports -relax
9210 echo ".text" > conftest.s
9211 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9212 gcc_cv_as_relax_opt
=yes
9214 gcc_cv_as_relax_opt
=no
9216 rm -f conftest.s conftest.o
9221 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9222 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9223 cat >> confdefs.h
<<\EOF
9224 #define HAVE_AS_RELAX_OPTION 1
9231 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9232 echo "configure:9233: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9233 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9237 if test -n "$gcc_cv_as"; then
9238 echo ".xword foo" > conftest.s
9239 gcc_cv_as_flags64
=no
9240 for flag
in "-xarch=v9" "-64 -Av9"; do
9241 if $gcc_cv_as $flag -o conftest.o conftest.s \
9242 > /dev
/null
2>&1; then
9243 gcc_cv_as_flags64
=$flag
9247 rm -f conftest.s conftest.o
9249 if test "$gas" = yes; then
9250 gcc_cv_as_flags64
="-64 -Av9"
9252 gcc_cv_as_flags64
="-xarch=v9"
9258 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9259 if test "x$gcc_cv_as_flags64" = xno
; then
9261 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9262 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9265 cat >> confdefs.h
<<EOF
9266 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9271 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9275 if test "x$gcc_cv_as_flags64" != xno
; then
9276 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9277 echo "configure:9278: checking for assembler offsetable %lo() support" >&5
9278 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9279 echo $ac_n "(cached) $ac_c" 1>&6
9282 gcc_cv_as_offsetable_lo10
=unknown
9283 if test "x$gcc_cv_as" != x
; then
9284 # Check if assembler has offsetable %lo()
9285 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9286 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9287 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9289 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9290 > /dev
/null
2>&1; then
9291 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9292 gcc_cv_as_offsetable_lo10
=no
9294 gcc_cv_as_offsetable_lo10
=yes
9297 gcc_cv_as_offsetable_lo10
=no
9299 rm -f conftest.s conftest.o conftest1.s conftest1.o
9304 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9305 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9306 cat >> confdefs.h
<<\EOF
9307 #define HAVE_AS_OFFSETABLE_LO10 1
9315 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9316 echo "configure:9317: checking assembler instructions" >&5
9317 gcc_cv_as_instructions
=
9318 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9319 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
9320 gcc_cv_as_instructions
="filds fists"
9322 elif test x
$gcc_cv_as != x
; then
9323 set "filds fists" "filds mem; fists mem"
9326 echo "$2" > conftest.s
9327 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9328 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9332 rm -f conftest.s conftest.o
9334 if test x
"$gcc_cv_as_instructions" != x
; then
9335 cat >> confdefs.h
<<EOF
9336 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | tr 'a-z ' 'A-Z_'` 1
9340 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9344 # Figure out what language subdirectories are present.
9345 # Look if the user specified --enable-languages="..."; if not, use
9346 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9348 if test x
"${enable_languages+set}" != xset
; then
9349 if test x
"${LANGUAGES+set}" = xset
; then
9350 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9352 enable_languages
=all
9355 if test x
"${enable_languages}" = x
; then
9356 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9360 for lang
in ${srcdir}/*/config-lang.
in ..
9364 # The odd quoting in the next line works around
9365 # an apparent bug in bash 1.12 on linux.
9366 ${srcdir}/[*]/config-lang.
in) ;;
9368 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9369 if test "x$lang_alias" = x
9371 echo "$lang doesn't set \$language." 1>&2
9374 if test x
"${enable_languages}" = xall
&& test x
"${lang_alias}" != xCHILL
; then
9377 case "${enable_languages}" in
9378 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9386 if test x"${add_this_lang}" = xyes; then
9388 ${srcdir}/ada/config-lang.in)
9389 if test x$gnat = xyes ; then
9390 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9394 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9402 # Make gthr-default.h if we have a thread file.
9404 if test $thread_file != single; then
9405 rm -f gthr-default.h
9406 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9407 gthread_flags
=-DHAVE_GTHR_DEFAULT
9411 # Find out what GC implementation we want, or may, use.
9412 # Check whether --with-gc or --without-gc was given.
9413 if test "${with_gc+set}" = set; then
9420 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9424 if test $ac_cv_func_mmap_anywhere = yes \
9425 ||
test $ac_cv_func_valloc = yes; then
9433 echo "Using $GGC for garbage collection."
9435 # Use the system's zlib library.
9436 zlibdir
=-L..
/..
/zlib
9437 zlibinc
="-I\$(srcdir)/../../zlib"
9438 # Check whether --with-system-zlib or --without-system-zlib was given.
9439 if test "${with_system_zlib+set}" = set; then
9440 withval
="$with_system_zlib"
9449 # Build a new-abi (c++) system
9450 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9451 if test "${enable_new_gxx_abi+set}" = set; then
9452 enableval
="$enable_new_gxx_abi"
9453 cat >> confdefs.h
<<\EOF
9454 #define ENABLE_NEW_GXX_ABI 1
9457 GXX_ABI_FLAG
='-fnew-abi'
9458 echo "Building a new-abi g++ compiler."
9464 # Build a new-libstdc++ system (ie libstdc++-v3)
9465 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9466 echo "configure:9467: checking for libstdc++ to install" >&5
9467 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9468 if test "${enable_libstdcxx_v3+set}" = set; then
9469 enableval
="$enable_libstdcxx_v3"
9470 enable_libstdcxx_v3
="$enableval"
9472 enable_libstdcxx_v3
=no
9476 if test x
$enable_libstdcxx_v3 = xyes
; then
9477 echo "$ac_t""v3" 1>&6
9480 echo "$ac_t""v2" 1>&6
9483 cat >> confdefs.h
<<EOF
9484 #define ENABLE_STD_NAMESPACE $ac_esn
9489 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9490 echo "configure:9491: checking whether to enable maintainer-specific portions of Makefiles" >&5
9491 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9492 if test "${enable_maintainer_mode+set}" = set; then
9493 enableval
="$enable_maintainer_mode"
9494 maintainer_mode
=$enableval
9500 echo "$ac_t""$maintainer_mode" 1>&6
9502 if test "$maintainer_mode" = "yes"; then
9508 # Make empty files to contain the specs and options for each language.
9509 # Then add #include lines to for a compiler that has specs and/or options.
9514 rm -f specs.h options.h gencheck.h
9515 touch specs.h options.h gencheck.h
9516 for subdir
in .
$subdirs
9518 if test -f $srcdir/$subdir/lang-specs.h
; then
9519 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9520 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9522 if test -f $srcdir/$subdir/lang-options.h
; then
9523 echo "#include \"$subdir/lang-options.h\"" >>options.h
9524 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9526 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9527 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9528 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9532 # These (without "all_") are set in each config-lang.in.
9533 # `language' must be a single word so is spelled singularly.
9539 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9540 # List of language makefile fragments.
9545 # Add the language fragments.
9546 # Languages are added via two mechanisms. Some information must be
9547 # recorded in makefile variables, these are defined in config-lang.in.
9548 # We accumulate them and plug them into the main Makefile.
9549 # The other mechanism is a set of hooks for each of the main targets
9550 # like `clean', `install', etc.
9552 language_fragments
="Make-lang"
9553 language_hooks
="Make-hooks"
9556 for s
in ..
$subdirs
9568 .
${srcdir}/$s/config-lang.
in
9569 if test "x$language" = x
9571 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9574 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
9575 all_languages
="$all_languages $language"
9576 if test "x$boot_language" = xyes
9578 all_boot_languages
="$all_boot_languages $language"
9580 all_compilers
="$all_compilers $compilers"
9581 all_stagestuff
="$all_stagestuff $stagestuff"
9582 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9583 all_headers
="$all_headers $headers"
9584 all_outputs
="$all_outputs $outputs"
9585 if test x
$outputs = x
9587 oldstyle_subdirs
="$oldstyle_subdirs $s"
9589 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9593 # Since we can't use `::' targets, we link each language in
9594 # with a set of hooks, reached indirectly via lang.${target}.
9598 target_list
="all.build all.cross start.encap rest.encap \
9600 install-normal install-common install-info install-man \
9602 mostlyclean clean distclean extraclean maintainer-clean \
9603 stage1 stage2 stage3 stage4"
9604 for t
in $target_list
9607 for lang
in ..
$all_languages
9609 if test $lang != ".."; then
9613 echo "lang.$t: $x" >> Make-hooks
9616 # If we're not building in srcdir, create .gdbinit.
9618 if test ! -f Makefile.
in; then
9619 echo "dir ." > .gdbinit
9620 echo "dir ${srcdir}" >> .gdbinit
9621 if test x
$gdb_needs_out_file_path = xyes
9623 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9625 if test "x$subdirs" != x
; then
9628 echo "dir ${srcdir}/$s" >> .gdbinit
9631 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9634 # Define variables host_canonical and build_canonical
9635 # because some Cygnus local changes in the Makefile depend on them.
9636 build_canonical
=${build}
9637 host_canonical
=${host}
9639 if test "${host}" != "${target}" ; then
9640 target_subdir
=${target}/
9646 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9647 # absolute path for gcc_tooldir based on inserting the number of up-directory
9648 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9649 # $(libsubdir)/@(unlibsubdir) based path.
9650 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9651 # make and thus we'd get different behavior depending on where we built the
9653 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9654 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9656 # An explanation of the sed strings:
9657 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9658 # -e 's|/$||' match a trailing forward slash and eliminates it
9659 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9660 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9662 # (*) Note this pattern overwrites the first character of the string
9663 # with a forward slash if one is not already present. This is not a
9664 # problem because the exact names of the sub-directories concerned is
9665 # unimportant, just the number of them matters.
9667 # The practical upshot of these patterns is like this:
9669 # prefix exec_prefix result
9670 # ------ ----------- ------
9672 # /foo/ /foo/bar ../
9673 # /foo /foo/bar/ ../
9674 # /foo/ /foo/bar/ ../
9675 # /foo /foo/bar/ugg ../../
9678 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9683 # Nothing to do for FLOAT_H, float_format already handled.
9687 # Process the language and host/target makefile fragments.
9688 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9690 # Substitute configuration variables
9749 # Echo that links are built
9750 if test x
$host = x
$target
9758 if test x
$host != x
$build
9760 str3
=" on a $build system"
9763 if test "x$str2" != x ||
test "x$str3" != x
9768 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9770 if test "x$str2" != x ||
test "x$str3" != x
9772 echo " ${str2}${str3}." 1>&2
9775 # Truncate the target if necessary
9776 if test x
$host_truncate_target != x
; then
9777 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9780 # Configure the subdirectories
9781 # AC_CONFIG_SUBDIRS($subdirs)
9783 # Create the Makefile
9784 # and configure language subdirectories
9786 cat > confcache
<<\EOF
9787 # This file is a shell script that caches the results of configure
9788 # tests run on this system so they can be shared between configure
9789 # scripts and configure runs. It is not useful on other systems.
9790 # If it contains results you don't want to keep, you may remove or edit it.
9792 # By default, configure uses ./config.cache as the cache file,
9793 # creating it if it does not exist already. You can give configure
9794 # the --cache-file=FILE option to use a different cache file; that is
9795 # what configure does when it calls configure scripts in
9796 # subdirectories, so they share the cache.
9797 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9798 # config.status only pays attention to the cache file if you give it the
9799 # --recheck option to rerun configure.
9802 # The following way of writing the cache mishandles newlines in values,
9803 # but we know of no workaround that is simple, portable, and efficient.
9804 # So, don't put newlines in cache variables' values.
9805 # Ultrix sh set writes to stderr and can't be redirected directly,
9806 # and sets the high bit in the cache file unless we assign to the vars.
9808 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9810 # `set' does not quote correctly, so add quotes (double-quote substitution
9811 # turns \\\\ into \\, and sed turns \\ into \).
9813 -e "s/'/'\\\\''/g" \
9814 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9817 # `set' quotes correctly as required by POSIX, so do not add quotes.
9818 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9821 if cmp -s $cache_file confcache
; then
9824 if test -w $cache_file; then
9825 echo "updating cache $cache_file"
9826 cat confcache
> $cache_file
9828 echo "not updating unwritable cache $cache_file"
9833 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9835 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9836 # Let make expand exec_prefix.
9837 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9839 # Any assignment to VPATH causes Sun make to only execute
9840 # the first set of double-colon rules, so remove it if not needed.
9841 # If there is a colon in the path, we need to keep it.
9842 if test "x$srcdir" = x.
; then
9843 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9846 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9848 DEFS
=-DHAVE_CONFIG_H
9850 # Without the "./", some shells look in PATH for config.status.
9851 : ${CONFIG_STATUS=./config.status}
9853 echo creating
$CONFIG_STATUS
9854 rm -f $CONFIG_STATUS
9855 cat > $CONFIG_STATUS <<EOF
9857 # Generated automatically by configure.
9858 # Run this file to recreate the current configuration.
9859 # This directory was configured as follows,
9860 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9862 # $0 $ac_configure_args
9864 # Compiler output produced by configure, useful for debugging
9865 # configure, is in ./config.log if it exists.
9867 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9870 case "\$ac_option" in
9871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9872 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9873 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9874 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9875 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9877 -help | --help | --hel | --he | --h)
9878 echo "\$ac_cs_usage"; exit 0 ;;
9879 *) echo "\$ac_cs_usage"; exit 1 ;;
9883 ac_given_srcdir=$srcdir
9885 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9887 cat >> $CONFIG_STATUS <<EOF
9889 # Protect against being on the right side of a sed subst in config.status.
9890 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9891 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9895 s%@CFLAGS@%$CFLAGS%g
9896 s%@CPPFLAGS@%$CPPFLAGS%g
9897 s%@CXXFLAGS@%$CXXFLAGS%g
9898 s%@FFLAGS@%$FFLAGS%g
9900 s%@LDFLAGS@%$LDFLAGS%g
9902 s%@exec_prefix@%$exec_prefix%g
9903 s%@prefix@%$prefix%g
9904 s%@program_transform_name@%$program_transform_name%g
9905 s%@bindir@%$bindir%g
9906 s%@sbindir@%$sbindir%g
9907 s%@libexecdir@%$libexecdir%g
9908 s%@datadir@%$datadir%g
9909 s%@sysconfdir@%$sysconfdir%g
9910 s%@sharedstatedir@%$sharedstatedir%g
9911 s%@localstatedir@%$localstatedir%g
9912 s%@libdir@%$libdir%g
9913 s%@includedir@%$includedir%g
9914 s%@oldincludedir@%$oldincludedir%g
9915 s%@infodir@%$infodir%g
9916 s%@mandir@%$mandir%g
9918 s%@host_alias@%$host_alias%g
9919 s%@host_cpu@%$host_cpu%g
9920 s%@host_vendor@%$host_vendor%g
9921 s%@host_os@%$host_os%g
9922 s%@target@%$target%g
9923 s%@target_alias@%$target_alias%g
9924 s%@target_cpu@%$target_cpu%g
9925 s%@target_vendor@%$target_vendor%g
9926 s%@target_os@%$target_os%g
9928 s%@build_alias@%$build_alias%g
9929 s%@build_cpu@%$build_cpu%g
9930 s%@build_vendor@%$build_vendor%g
9931 s%@build_os@%$build_os%g
9933 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9934 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9935 s%@stage2_warn_cflags@%$stage2_warn_cflags%g
9936 s%@SET_MAKE@%$SET_MAKE%g
9939 s%@LEXLIB@%$LEXLIB%g
9942 s%@RANLIB@%$RANLIB%g
9944 s%@INSTALL@%$INSTALL%g
9945 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9946 s%@INSTALL_DATA@%$INSTALL_DATA%g
9949 s%@MAKEINFO@%$MAKEINFO%g
9950 s%@BUILD_INFO@%$BUILD_INFO%g
9951 s%@INSTALL_INFO@%$INSTALL_INFO%g
9952 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
9953 s%@vfprintf@%$vfprintf%g
9954 s%@doprint@%$doprint%g
9955 s%@manext@%$manext%g
9956 s%@objext@%$objext%g
9957 s%@PACKAGE@%$PACKAGE%g
9958 s%@VERSION@%$VERSION%g
9959 s%@ALLOCA@%$ALLOCA%g
9960 s%@USE_NLS@%$USE_NLS%g
9961 s%@MSGFMT@%$MSGFMT%g
9962 s%@GMSGFMT@%$GMSGFMT%g
9963 s%@XGETTEXT@%$XGETTEXT%g
9964 s%@GENCAT@%$GENCAT%g
9965 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9966 s%@CATALOGS@%$CATALOGS%g
9967 s%@CATOBJEXT@%$CATOBJEXT%g
9968 s%@DATADIRNAME@%$DATADIRNAME%g
9969 s%@GMOFILES@%$GMOFILES%g
9970 s%@INSTOBJEXT@%$INSTOBJEXT%g
9971 s%@INTLDEPS@%$INTLDEPS%g
9972 s%@INTLLIBS@%$INTLLIBS%g
9973 s%@INTLOBJS@%$INTLOBJS%g
9974 s%@POFILES@%$POFILES%g
9976 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9978 s%@GT_YES@%$GT_YES%g
9979 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9981 s%@inhibit_libc@%$inhibit_libc%g
9982 s%@gthread_flags@%$gthread_flags%g
9984 s%@zlibdir@%$zlibdir%g
9985 s%@zlibinc@%$zlibinc%g
9986 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
9988 s%@build_canonical@%$build_canonical%g
9989 s%@host_canonical@%$host_canonical%g
9990 s%@target_subdir@%$target_subdir%g
9991 s%@gcc_tooldir@%$gcc_tooldir%g
9992 s%@dollar@%$dollar%g
9993 s%@objdir@%$objdir%g
9994 s%@subdirs@%$subdirs%g
9995 s%@all_boot_languages@%$all_boot_languages%g
9996 s%@all_compilers@%$all_compilers%g
9997 s%@all_diff_excludes@%$all_diff_excludes%g
9998 s%@all_headers@%$all_headers%g
9999 s%@all_lang_makefiles@%$all_lang_makefiles%g
10000 s%@all_languages@%$all_languages%g
10001 s%@all_lib2funcs@%$all_lib2funcs%g
10002 s%@all_stagestuff@%$all_stagestuff%g
10003 s%@build_exeext@%$build_exeext%g
10004 s%@build_install_headers_dir@%$build_install_headers_dir%g
10005 s%@build_xm_file_list@%$build_xm_file_list%g
10006 s%@cc_set_by_configure@%$cc_set_by_configure%g
10007 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
10008 s%@cpp_install_dir@%$cpp_install_dir%g
10009 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
10010 s%@dep_tmake_file@%$dep_tmake_file%g
10011 s%@extra_c_flags@%$extra_c_flags%g
10012 s%@extra_c_objs@%$extra_c_objs%g
10013 s%@extra_cpp_objs@%$extra_cpp_objs%g
10014 s%@extra_cxx_objs@%$extra_cxx_objs%g
10015 s%@extra_headers_list@%$extra_headers_list%g
10016 s%@extra_objs@%$extra_objs%g
10017 s%@extra_parts@%$extra_parts%g
10018 s%@extra_passes@%$extra_passes%g
10019 s%@extra_programs@%$extra_programs%g
10020 s%@float_h_file@%$float_h_file%g
10021 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
10022 s%@gcc_version@%$gcc_version%g
10023 s%@gcc_version_trigger@%$gcc_version_trigger%g
10024 s%@host_exeext@%$host_exeext%g
10025 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
10026 s%@host_xm_file_list@%$host_xm_file_list%g
10027 s%@install@%$install%g
10028 s%@lang_options_files@%$lang_options_files%g
10029 s%@lang_specs_files@%$lang_specs_files%g
10030 s%@lang_tree_files@%$lang_tree_files%g
10031 s%@local_prefix@%$local_prefix%g
10032 s%@maybe_use_collect2@%$maybe_use_collect2%g
10033 s%@md_file@%$md_file%g
10034 s%@objc_boehm_gc@%$objc_boehm_gc%g
10035 s%@out_file@%$out_file%g
10036 s%@out_object_file@%$out_object_file%g
10037 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
10038 s%@symbolic_link@%$symbolic_link%g
10039 s%@thread_file@%$thread_file%g
10040 s%@tm_file_list@%$tm_file_list%g
10041 s%@will_use_collect2@%$will_use_collect2%g
10042 /@target_overrides@/r $target_overrides
10043 s%@target_overrides@%%g
10044 /@host_overrides@/r $host_overrides
10045 s%@host_overrides@%%g
10046 s%@cross_defines@%$cross_defines%g
10047 /@cross_overrides@/r $cross_overrides
10048 s%@cross_overrides@%%g
10049 /@build_overrides@/r $build_overrides
10050 s%@build_overrides@%%g
10051 /@language_fragments@/r $language_fragments
10052 s%@language_fragments@%%g
10053 /@language_hooks@/r $language_hooks
10054 s%@language_hooks@%%g
10059 cat >> $CONFIG_STATUS <<\EOF
10061 # Split the substitutions into bite-sized pieces for seds with
10062 # small command number limits, like on Digital OSF/1 and HP-UX.
10063 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10064 ac_file
=1 # Number of current file.
10065 ac_beg
=1 # First line for current file.
10066 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10069 while $ac_more_lines; do
10070 if test $ac_beg -gt 1; then
10071 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10073 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10075 if test ! -s conftest.s
$ac_file; then
10076 ac_more_lines
=false
10077 rm -f conftest.s
$ac_file
10079 if test -z "$ac_sed_cmds"; then
10080 ac_sed_cmds
="sed -f conftest.s$ac_file"
10082 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10084 ac_file
=`expr $ac_file + 1`
10086 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10089 if test -z "$ac_sed_cmds"; then
10094 cat >> $CONFIG_STATUS <<EOF
10096 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
10098 cat >> $CONFIG_STATUS <<\EOF
10099 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10102 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10103 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10104 *) ac_file_in
="${ac_file}.in" ;;
10107 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10109 # Remove last slash and all that follows it. Not all systems have dirname.
10110 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10111 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10112 # The file is in a subdirectory.
10113 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10114 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10115 # A "../" for each directory in $ac_dir_suffix.
10116 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10118 ac_dir_suffix
= ac_dots
=
10121 case "$ac_given_srcdir" in
10123 if test -z "$ac_dots"; then top_srcdir
=.
10124 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10125 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10126 *) # Relative path.
10127 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10128 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10132 echo creating
"$ac_file"
10134 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10136 *Makefile
*) ac_comsub
="1i\\
10137 # $configure_input" ;;
10141 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10143 s%@configure_input@%$configure_input%g
10144 s%@srcdir@%$srcdir%g
10145 s%@top_srcdir@%$top_srcdir%g
10146 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10150 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10151 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10153 # ac_d sets the value in "#define NAME VALUE" lines.
10154 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10155 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10158 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10159 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10160 ac_uB
='\([ ]\)%\1#\2define\3'
10163 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10164 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10165 ac_eB
='$%\1#\2define\3'
10169 if test "${CONFIG_HEADERS+set}" != set; then
10171 cat >> $CONFIG_STATUS <<EOF
10172 CONFIG_HEADERS="auto-host.h:config.in"
10174 cat >> $CONFIG_STATUS <<\EOF
10176 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10179 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10180 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10181 *) ac_file_in
="${ac_file}.in" ;;
10184 echo creating
$ac_file
10186 rm -f conftest.frag conftest.
in conftest.out
10187 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10188 cat $ac_file_inputs > conftest.
in
10192 # Transform confdefs.h into a sed script conftest.vals that substitutes
10193 # the proper values into config.h.in to produce config.h. And first:
10194 # Protect against being on the right side of a sed subst in config.status.
10195 # Protect against being in an unquoted here document in config.status.
10196 rm -f conftest.vals
10197 cat > conftest.hdr
<<\EOF
10200 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10204 sed -n -f conftest.hdr confdefs.h > conftest.vals
10207 # This sed command replaces #undef with comments. This is necessary, for
10208 # example, in the case of _POSIX_SOURCE, which is predefined and required
10209 # on some systems where configure will not decide to define it.
10210 cat >> conftest.vals <<\EOF
10211 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10214 # Break up conftest.vals because some shells have a limit on
10215 # the size of here documents, and old seds have small limits too.
10217 rm -f conftest.tail
10220 ac_lines=`grep -c . conftest.vals
`
10221 # grep -c gives empty output for an empty file on some AIX systems.
10222 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10223 # Write a limited-size here document to conftest.frag.
10224 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10225 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10227 sed -f conftest.frag conftest.in > conftest.out
10229 mv conftest.out conftest.in
10230 ' >> $CONFIG_STATUS
10231 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10232 rm -f conftest.vals
10233 mv conftest.tail conftest.vals
10235 rm -f conftest.vals
10237 cat >> $CONFIG_STATUS <<\EOF
10238 rm -f conftest.frag conftest.h
10239 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10240 cat conftest.in >> conftest.h
10242 if cmp -s $ac_file conftest.h 2>/dev/null; then
10243 echo "$ac_file is unchanged"
10246 # Remove last slash and all that follows it. Not all systems have dirname.
10247 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10248 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10249 # The file is in a subdirectory.
10250 test ! -d "$ac_dir" && mkdir "$ac_dir"
10253 mv conftest.h $ac_file
10259 cat >> $CONFIG_STATUS <<EOF
10260 ac_sources="$nls_cv_header_libgt"
10261 ac_dests="$nls_cv_header_intl"
10264 cat >> $CONFIG_STATUS <<\EOF
10265 srcdir=$ac_given_srcdir
10266 while test -n "$ac_sources"; do
10267 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10268 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10270 echo "linking $srcdir/$ac_source to $ac_dest"
10272 if test ! -r $srcdir/$ac_source; then
10273 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10277 # Make relative symlinks.
10278 # Remove last slash and all that follows it. Not all systems have dirname.
10279 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10280 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10281 # The dest file is in a subdirectory.
10282 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10283 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10284 # A "../" for each directory in $ac_dest_dir_suffix.
10285 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10287 ac_dest_dir_suffix= ac_dots=
10291 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10292 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10295 # Make a symlink if possible; otherwise try a hard link.
10296 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10297 ln $srcdir/$ac_source $ac_dest; then :
10299 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10303 cat >> $CONFIG_STATUS <<EOF
10309 target_alias='${target_alias}'
10311 subdirs='${subdirs}'
10312 oldstyle_subdirs='${oldstyle_subdirs}'
10313 symbolic_link='${symbolic_link}'
10314 program_transform_set='${program_transform_set}'
10315 program_transform_name='${program_transform_name}'
10316 dep_host_xmake_file='${dep_host_xmake_file}'
10317 host_xmake_file='${host_xmake_file}'
10318 dep_tmake_file='${dep_tmake_file}'
10319 tmake_file='${tmake_file}'
10320 thread_file='${thread_file}'
10321 gcc_version='${gcc_version}'
10322 gcc_version_trigger='${gcc_version_trigger}'
10323 local_prefix='${local_prefix}'
10324 build_install_headers_dir='${build_install_headers_dir}'
10325 build_exeext='${build_exeext}'
10326 host_exeext='${host_exeext}'
10327 out_file='${out_file}'
10328 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10329 SET_MAKE='${SET_MAKE}'
10330 target_list='${target_list}'
10331 target_overrides='${target_overrides}'
10332 host_overrides='${host_overrides}'
10333 cross_defines='${cross_defines}'
10334 cross_overrides='${cross_overrides}'
10335 build_overrides='${build_overrides}'
10336 cpp_install_dir='${cpp_install_dir}'
10339 cat >> $CONFIG_STATUS <<\EOF
10340 case "$CONFIG_FILES" in *po/Makefile.in*)
10341 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10344 . $srcdir/configure.lang
10345 case x$CONFIG_HEADERS in
10346 xauto-host.h:config.in)
10349 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10350 # bootstrapping and the installation procedure can still use
10351 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10352 # FLAGS_TO_PASS has been modified to solve the problem there.
10353 # This is virtually a duplicate of what happens in configure.lang; we do
10354 # an extra check to make sure this only happens if ln -s can be used.
10355 if test "$symbolic_link" = "ln -s"; then
10356 for d in .. ${subdirs} ; do
10357 if test $d != ..; then
10360 for t in stage1 stage2 stage3 stage4 include
10363 $symbolic_link ../$t $t 2>/dev/null
10369 # Avoid having to add intl to our include paths.
10370 if test -f intl/libintl.h; then
10371 echo creating libintl.h
10372 echo '#include "intl/libintl.h"' >libintl.h
10377 chmod +x $CONFIG_STATUS
10378 rm -fr confdefs* $ac_clean_files
10379 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1