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 --disable-shared don't provide a shared libgcc."
59 --enable-nls use Native Language Support (default)"
61 --disable-nls do not use Native Language Support"
63 --with-included-gettext use the GNU gettext library included here"
65 --with-catgets use catgets functions if available"
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
75 --with-gc={simple,page} Choose the garbage collection mechanism to use
78 --with-system-zlib use installed libz"
81 select the new abi for g++. You must select an ABI
82 at configuration time, so that the correct runtime
83 support is built. You cannot mix ABIs."
86 enable libstdc++-v3 for building and installation"
88 --enable-maintainer-mode enable make rules and dependencies not useful
89 (and sometimes confusing) to the casual installer"
91 # Initialize some variables set by options.
92 # The variables have the same names as the options, with
93 # dashes changed to underlines.
95 cache_file
=.
/config.cache
104 program_transform_name
=s
,x
,x
,
112 bindir
='${exec_prefix}/bin'
113 sbindir
='${exec_prefix}/sbin'
114 libexecdir
='${exec_prefix}/libexec'
115 datadir
='${prefix}/share'
116 sysconfdir
='${prefix}/etc'
117 sharedstatedir
='${prefix}/com'
118 localstatedir
='${prefix}/var'
119 libdir
='${exec_prefix}/lib'
120 includedir
='${prefix}/include'
121 oldincludedir
='/usr/include'
122 infodir
='${prefix}/info'
123 mandir
='${prefix}/man'
125 # Initialize some other variables.
128 SHELL
=${CONFIG_SHELL-/bin/sh}
129 # Maximum number of lines to put in a shell here document.
136 # If the previous option needs an argument, assign it.
137 if test -n "$ac_prev"; then
138 eval "$ac_prev=\$ac_option"
144 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
148 # Accept the important Cygnus configure options, so we can diagnose typos.
152 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
154 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
155 bindir
="$ac_optarg" ;;
157 -build |
--build |
--buil |
--bui |
--bu)
159 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
160 build
="$ac_optarg" ;;
162 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
163 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
164 ac_prev
=cache_file
;;
165 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
166 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
167 cache_file
="$ac_optarg" ;;
169 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
171 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
173 datadir
="$ac_optarg" ;;
175 -disable-* |
--disable-*)
176 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}=no" ;;
184 -enable-* |
--enable-*)
185 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
195 eval "enable_${ac_feature}='$ac_optarg'" ;;
197 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
198 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
199 |
--exec |
--exe |
--ex)
200 ac_prev
=exec_prefix
;;
201 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
202 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
203 |
--exec=* |
--exe=* |
--ex=*)
204 exec_prefix
="$ac_optarg" ;;
206 -gas |
--gas |
--ga |
--g)
207 # Obsolete; use --with-gas.
210 -help |
--help |
--hel |
--he)
211 # Omit some internal or obsolete options to make the list less imposing.
212 # This message is too long to be a string in the A/UX 3.1 sh.
214 Usage: configure [options] [host]
215 Options: [defaults in brackets after descriptions]
217 --cache-file=FILE cache test results in FILE
218 --help print this message
219 --no-create do not create output files
220 --quiet, --silent do not print \`checking...' messages
221 --version print the version of autoconf that created configure
222 Directory and file names:
223 --prefix=PREFIX install architecture-independent files in PREFIX
225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 --bindir=DIR user executables in DIR [EPREFIX/bin]
228 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
229 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
230 --datadir=DIR read-only architecture-independent data in DIR
232 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
233 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
236 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
237 --includedir=DIR C header files in DIR [PREFIX/include]
238 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
239 --infodir=DIR info documentation in DIR [PREFIX/info]
240 --mandir=DIR man documentation in DIR [PREFIX/man]
241 --srcdir=DIR find the sources in DIR [configure dir or ..]
242 --program-prefix=PREFIX prepend PREFIX to installed program names
243 --program-suffix=SUFFIX append SUFFIX to installed program names
244 --program-transform-name=PROGRAM
245 run sed PROGRAM on installed program names
249 --build=BUILD configure for building on BUILD [BUILD=HOST]
250 --host=HOST configure for HOST [guessed]
251 --target=TARGET configure for TARGET [TARGET=HOST]
252 Features and packages:
253 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
254 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
255 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
256 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
257 --x-includes=DIR X include files are in DIR
258 --x-libraries=DIR X library files are in DIR
260 if test -n "$ac_help"; then
261 echo "--enable and --with options recognized:$ac_help"
265 -host |
--host |
--hos |
--ho)
267 -host=* |
--host=* |
--hos=* |
--ho=*)
270 -includedir |
--includedir |
--includedi |
--included |
--include \
271 |
--includ |
--inclu |
--incl |
--inc)
272 ac_prev
=includedir
;;
273 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
274 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
275 includedir
="$ac_optarg" ;;
277 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
279 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
280 infodir
="$ac_optarg" ;;
282 -libdir |
--libdir |
--libdi |
--libd)
284 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
285 libdir
="$ac_optarg" ;;
287 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
288 |
--libexe |
--libex |
--libe)
289 ac_prev
=libexecdir
;;
290 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
291 |
--libexe=* |
--libex=* |
--libe=*)
292 libexecdir
="$ac_optarg" ;;
294 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
295 |
--localstate |
--localstat |
--localsta |
--localst \
296 |
--locals |
--local |
--loca |
--loc |
--lo)
297 ac_prev
=localstatedir
;;
298 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
299 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
300 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
301 localstatedir
="$ac_optarg" ;;
303 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
305 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
306 mandir
="$ac_optarg" ;;
309 # Obsolete; use --without-fp.
312 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
316 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
317 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
320 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
321 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
322 |
--oldin |
--oldi |
--old |
--ol |
--o)
323 ac_prev
=oldincludedir
;;
324 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
325 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
326 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
327 oldincludedir
="$ac_optarg" ;;
329 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
331 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
332 prefix
="$ac_optarg" ;;
334 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
335 |
--program-pre |
--program-pr |
--program-p)
336 ac_prev
=program_prefix
;;
337 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
338 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
339 program_prefix
="$ac_optarg" ;;
341 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
342 |
--program-suf |
--program-su |
--program-s)
343 ac_prev
=program_suffix
;;
344 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
345 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
346 program_suffix
="$ac_optarg" ;;
348 -program-transform-name |
--program-transform-name \
349 |
--program-transform-nam |
--program-transform-na \
350 |
--program-transform-n |
--program-transform- \
351 |
--program-transform |
--program-transfor \
352 |
--program-transfo |
--program-transf \
353 |
--program-trans |
--program-tran \
354 |
--progr-tra |
--program-tr |
--program-t)
355 ac_prev
=program_transform_name
;;
356 -program-transform-name=* |
--program-transform-name=* \
357 |
--program-transform-nam=* |
--program-transform-na=* \
358 |
--program-transform-n=* |
--program-transform-=* \
359 |
--program-transform=* |
--program-transfor=* \
360 |
--program-transfo=* |
--program-transf=* \
361 |
--program-trans=* |
--program-tran=* \
362 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
363 program_transform_name
="$ac_optarg" ;;
365 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
366 |
-silent |
--silent |
--silen |
--sile |
--sil)
369 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
371 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
373 sbindir
="$ac_optarg" ;;
375 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
376 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
377 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
379 ac_prev
=sharedstatedir
;;
380 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
381 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
382 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
384 sharedstatedir
="$ac_optarg" ;;
386 -site |
--site |
--sit)
388 -site=* |
--site=* |
--sit=*)
391 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
393 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
394 srcdir
="$ac_optarg" ;;
396 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
397 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
398 ac_prev
=sysconfdir
;;
399 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
400 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
401 sysconfdir
="$ac_optarg" ;;
403 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
405 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
406 target
="$ac_optarg" ;;
408 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
411 -version |
--version |
--versio |
--versi |
--vers)
412 echo "configure generated by autoconf version 2.13"
416 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package
=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}='$ac_optarg'" ;;
428 -without-* |
--without-*)
429 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
432 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434 ac_package
=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}=no" ;;
438 # Obsolete; use --with-x.
441 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
442 |
--x-incl |
--x-inc |
--x-in |
--x-i)
443 ac_prev
=x_includes
;;
444 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
445 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
446 x_includes
="$ac_optarg" ;;
448 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
449 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
450 ac_prev
=x_libraries
;;
451 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
452 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
453 x_libraries
="$ac_optarg" ;;
455 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
459 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
460 echo "configure: warning: $ac_option: invalid host type" 1>&2
462 if test "x$nonopt" != xNONE
; then
463 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
471 if test -n "$ac_prev"; then
472 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477 # File descriptor usage:
480 # 2 errors and warnings
481 # 3 some systems may open it to /dev/tty
482 # 4 used on the Kubota Titan
483 # 6 checking for... messages and results
484 # 5 compiler messages saved in config.log
485 if test "$silent" = yes; then
493 This file contains any messages produced by compilers while
494 running configure, to aid debugging if configure makes a mistake.
497 # Strip out --no-create and --no-recursion so they do not pile up.
498 # Also quote any args containing shell metacharacters.
503 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
504 |
--no-cr |
--no-c) ;;
505 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
506 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
507 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
508 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
509 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
514 # Only set these to C if already set. These must not be set unconditionally
515 # because not all systems understand e.g. LANG=C (notably SCO).
516 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
517 # Non-C LC_CTYPE values break the ctype check.
518 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
519 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
520 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
521 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
523 # confdefs.h avoids OS command line length limits that DEFS can exceed.
524 rm -rf conftest
* confdefs.h
525 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
528 # A filename unique to this package, relative to the directory that
529 # configure is in, which we can look for to find out if srcdir is correct.
530 ac_unique_file
=tree.c
532 # Find the source files, if location was not specified.
533 if test -z "$srcdir"; then
534 ac_srcdir_defaulted
=yes
535 # Try the directory containing this script, then its parent.
537 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
540 if test ! -r $srcdir/$ac_unique_file; then
544 ac_srcdir_defaulted
=no
546 if test ! -r $srcdir/$ac_unique_file; then
547 if test "$ac_srcdir_defaulted" = yes; then
548 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
553 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555 # Prefer explicitly selected file to automatically selected ones.
556 if test -z "$CONFIG_SITE"; then
557 if test "x$prefix" != xNONE
; then
558 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
560 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
563 for ac_site_file
in $CONFIG_SITE; do
564 if test -r "$ac_site_file"; then
565 echo "loading site script $ac_site_file"
570 if test -r "$cache_file"; then
571 echo "loading cache $cache_file"
574 echo "creating cache $cache_file"
579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
580 ac_cpp
='$CPP $CPPFLAGS'
581 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
582 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
583 cross_compiling
=$ac_cv_prog_cc_cross
587 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
588 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
589 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
596 ac_n
= ac_c
='\c' ac_t
=
604 symbolic_link
='ln -s'
607 # Check for bogus environment variables.
608 # Test if LIBRARY_PATH contains the notation for the current directory
609 # since this would lead to problems installing/building glibc.
610 # LIBRARY_PATH contains the current directory if one of the following
612 # - one of the terminals (":" and ";") is the first or last sign
613 # - two terminals occur directly after each other
614 # - the path contains an element with a dot in it
615 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
616 echo "configure:617: checking LIBRARY_PATH variable" >&5
617 case ${LIBRARY_PATH} in
618 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
619 library_path_setting
="contains current directory"
622 library_path_setting
="ok"
625 echo "$ac_t""$library_path_setting" 1>&6
626 if test "$library_path_setting" != "ok"; then
627 { echo "configure: error:
628 *** LIBRARY_PATH shouldn't contain the current directory when
629 *** building gcc. Please change the environment variable
630 *** and run configure again." 1>&2; exit 1; }
633 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
634 # since this would lead to problems installing/building glibc.
635 # GCC_EXEC_PREFIX contains the current directory if one of the following
637 # - one of the terminals (":" and ";") is the first or last sign
638 # - two terminals occur directly after each other
639 # - the path contains an element with a dot in it
640 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
641 echo "configure:642: checking GCC_EXEC_PREFIX variable" >&5
642 case ${GCC_EXEC_PREFIX} in
643 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
644 gcc_exec_prefix_setting
="contains current directory"
647 gcc_exec_prefix_setting
="ok"
650 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
651 if test "$gcc_exec_prefix_setting" != "ok"; then
652 { echo "configure: error:
653 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
654 *** building gcc. Please change the environment variable
655 *** and run configure again." 1>&2; exit 1; }
658 # Check for additional parameters
661 # Check whether --with-gnu-ld or --without-gnu-ld was given.
662 if test "${with_gnu_ld+set}" = set; then
663 withval
="$with_gnu_ld"
664 gnu_ld_flag
="$with_gnu_ld"
670 # With pre-defined ld
671 # Check whether --with-ld or --without-ld was given.
672 if test "${with_ld+set}" = set; then
674 DEFAULT_LINKER
="$with_ld"
677 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
678 if test ! -x "$DEFAULT_LINKER"; then
679 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
680 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
683 cat >> confdefs.h
<<EOF
684 #define DEFAULT_LINKER "$DEFAULT_LINKER"
690 # Check whether --with-gnu-as or --without-gnu-as was given.
691 if test "${with_gnu_as+set}" = set; then
692 withval
="$with_gnu_as"
693 gas_flag
="$with_gnu_as"
699 # Check whether --with-as or --without-as was given.
700 if test "${with_as+set}" = set; then
702 DEFAULT_ASSEMBLER
="$with_as"
705 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
706 if test ! -x "$DEFAULT_ASSEMBLER"; then
707 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
708 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
711 cat >> confdefs.h
<<EOF
712 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
718 # Check whether --with-stabs or --without-stabs was given.
719 if test "${with_stabs+set}" = set; then
720 withval
="$with_stabs"
728 # Check whether --with-elf or --without-elf was given.
729 if test "${with_elf+set}" = set; then
737 # Specify the local prefix
739 # Check whether --with-local-prefix or --without-local-prefix was given.
740 if test "${with_local_prefix+set}" = set; then
741 withval
="$with_local_prefix"
743 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
745 *) local_prefix
=$with_local_prefix ;;
750 # Default local prefix if it is empty
751 if test x
$local_prefix = x
; then
752 local_prefix
=/usr
/local
755 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
756 # passed in by the toplevel make and thus we'd get different behavior
757 # depending on where we built the sources.
759 # Specify the g++ header file directory
760 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
761 if test "${with_gxx_include_dir+set}" = set; then
762 withval
="$with_gxx_include_dir"
764 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
766 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
771 if test x
${gcc_gxx_include_dir} = x
; then
772 if test x
${enable_version_specific_runtime_libs} = xyes
; then
773 gcc_gxx_include_dir
='${libsubdir}/include/g++'
775 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
776 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
780 # Enable expensive internal checks
781 # Check whether --enable-checking or --disable-checking was given.
782 if test "${enable_checking+set}" = set; then
783 enableval
="$enable_checking"
788 ac_gc_always_collect
=
789 case "${enableval}" in
790 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;;
792 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
793 set fnord
$enableval; shift
798 misc
) ac_checking
=1 ;;
799 tree
) ac_tree_checking
=1 ;;
800 rtl
) ac_rtl_checking
=1 ;;
801 gc
) ac_gc_checking
=1 ;;
802 gcac
) ac_gc_always_collect
=1 ;;
803 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;;
810 # Enable some checks by default for development versions of GCC
811 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1;
814 if test x
$ac_checking != x
; then
815 cat >> confdefs.h
<<\EOF
816 #define ENABLE_CHECKING 1
820 if test x
$ac_tree_checking != x
; then
821 cat >> confdefs.h
<<\EOF
822 #define ENABLE_TREE_CHECKING 1
826 if test x
$ac_rtl_checking != x
; then
827 cat >> confdefs.h
<<\EOF
828 #define ENABLE_RTL_CHECKING 1
832 if test x
$ac_gc_checking != x
; then
833 cat >> confdefs.h
<<\EOF
834 #define ENABLE_GC_CHECKING 1
838 if test x
$ac_gc_always_collect != x
; then
839 cat >> confdefs.h
<<\EOF
840 #define ENABLE_GC_ALWAYS_COLLECT 1
846 # Check whether --enable-cpp or --disable-cpp was given.
847 if test "${enable_cpp+set}" = set; then
848 enableval
="$enable_cpp"
855 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
856 if test "${with_cpp_install_dir+set}" = set; then
857 withval
="$with_cpp_install_dir"
858 if test x
$withval = xyes
; then
859 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
860 elif test x
$withval != xno
; then
861 cpp_install_dir
=$withval
866 # Link cpplib into the compiler proper, for C/C++/ObjC. Defaults to on.
867 maybe_cpplib
=libcpp.a
868 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
869 if test "${enable_c_cpplib+set}" = set; then
870 enableval
="$enable_c_cpplib"
871 if test x
$enable_c_cpplib != xyes
; then
877 if test x
$maybe_cpplib != x
; then
878 cat >> confdefs.h
<<\EOF
885 # Enable Multibyte Characters for C/C++
886 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
887 if test "${enable_c_mbchar+set}" = set; then
888 enableval
="$enable_c_mbchar"
889 if test x
$enable_c_mbchar != xno
; then
890 cat >> confdefs.h
<<\EOF
891 #define MULTIBYTE_CHARS 1
899 # Pass with no value to take the default
900 # Pass with a value to specify a thread package
901 # Check whether --enable-threads or --disable-threads was given.
902 if test "${enable_threads+set}" = set; then
903 enableval
="$enable_threads"
910 enable_threads_flag
=$enable_threads
911 # Check if a valid thread package
912 case x
${enable_threads_flag} in
915 target_thread_file
='single'
919 target_thread_file
=''
921 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
922 xsolaris | xwin32 | xdce | xvxworks | xaix
)
923 target_thread_file
=$enable_threads_flag
926 echo "$enable_threads is an unknown thread package" 1>&2
931 # Check whether --enable-objc-gc or --disable-objc-gc was given.
932 if test "${enable_objc_gc+set}" = set; then
933 enableval
="$enable_objc_gc"
934 if test x
$enable_objc_gc = xno
; then
944 # Check whether --with-dwarf2 or --without-dwarf2 was given.
945 if test "${with_dwarf2+set}" = set; then
946 withval
="$with_dwarf2"
947 dwarf2
="$with_dwarf2"
953 # Check whether --enable-shared or --disable-shared was given.
954 if test "${enable_shared+set}" = set; then
955 enableval
="$enable_shared"
963 # Determine the host, build, and target systems
965 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
966 if test -f $ac_dir/install-sh
; then
968 ac_install_sh
="$ac_aux_dir/install-sh -c"
970 elif test -f $ac_dir/install.sh
; then
972 ac_install_sh
="$ac_aux_dir/install.sh -c"
976 if test -z "$ac_aux_dir"; then
977 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
979 ac_config_guess
=$ac_aux_dir/config.guess
980 ac_config_sub
=$ac_aux_dir/config.sub
981 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
984 # Do some error checking and defaulting for the host and target type.
986 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
989 # 1. You are not allowed to specify --host, --target, and nonopt at the
991 # 2. Host defaults to nonopt.
992 # 3. If nonopt is not specified, then host defaults to the current host,
993 # as determined by config.guess.
994 # 4. Target and build default to nonopt.
995 # 5. If nonopt is not specified, then target and build default to host.
997 # The aliases save the names the user supplied, while $host etc.
998 # will get canonicalized.
999 case $host---$target---$nonopt in
1000 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1001 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1005 # Make sure we can run config.sub.
1006 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1007 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1010 echo $ac_n "checking host system type""... $ac_c" 1>&6
1011 echo "configure:1012: checking host system type" >&5
1014 case "$host_alias" in
1018 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1019 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1021 *) host_alias
=$nonopt ;;
1025 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1026 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1027 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1028 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1029 echo "$ac_t""$host" 1>&6
1031 echo $ac_n "checking target system type""... $ac_c" 1>&6
1032 echo "configure:1033: checking target system type" >&5
1034 target_alias
=$target
1035 case "$target_alias" in
1038 NONE
) target_alias
=$host_alias ;;
1039 *) target_alias
=$nonopt ;;
1043 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1044 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1045 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1046 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 echo "$ac_t""$target" 1>&6
1049 echo $ac_n "checking build system type""... $ac_c" 1>&6
1050 echo "configure:1051: checking build system type" >&5
1053 case "$build_alias" in
1056 NONE
) build_alias
=$host_alias ;;
1057 *) build_alias
=$nonopt ;;
1061 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1062 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1063 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1064 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1065 echo "$ac_t""$build" 1>&6
1067 test "$host_alias" != "$target_alias" &&
1068 test "$program_prefix$program_suffix$program_transform_name" = \
1070 program_prefix
=${target_alias}-
1073 # Find the native compiler
1074 # Extract the first word of "gcc", so it can be a program name with args.
1075 set dummy gcc
; ac_word
=$2
1076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1077 echo "configure:1078: checking for $ac_word" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 if test -n "$CC"; then
1082 ac_cv_prog_CC
="$CC" # Let the user override the test.
1084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1086 for ac_dir
in $ac_dummy; do
1087 test -z "$ac_dir" && ac_dir
=.
1088 if test -f $ac_dir/$ac_word; then
1097 if test -n "$CC"; then
1098 echo "$ac_t""$CC" 1>&6
1100 echo "$ac_t""no" 1>&6
1103 if test -z "$CC"; then
1104 # Extract the first word of "cc", so it can be a program name with args.
1105 set dummy cc
; ac_word
=$2
1106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1107 echo "configure:1108: checking for $ac_word" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 if test -n "$CC"; then
1112 ac_cv_prog_CC
="$CC" # Let the user override the test.
1114 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1117 for ac_dir
in $ac_dummy; do
1118 test -z "$ac_dir" && ac_dir
=.
1119 if test -f $ac_dir/$ac_word; then
1120 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1121 ac_prog_rejected
=yes
1129 if test $ac_prog_rejected = yes; then
1130 # We found a bogon in the path, so make sure we never use it.
1131 set dummy
$ac_cv_prog_CC
1133 if test $# -gt 0; then
1134 # We chose a different compiler from the bogus one.
1135 # However, it has the same basename, so the bogon will be chosen
1136 # first if we set CC to just the basename; use the full file name.
1138 set dummy
"$ac_dir/$ac_word" "$@"
1146 if test -n "$CC"; then
1147 echo "$ac_t""$CC" 1>&6
1149 echo "$ac_t""no" 1>&6
1152 if test -z "$CC"; then
1153 case "`uname -s`" in
1155 # Extract the first word of "cl", so it can be a program name with args.
1156 set dummy cl
; ac_word
=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$CC"; then
1163 ac_cv_prog_CC
="$CC" # Let the user override the test.
1165 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1167 for ac_dir
in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir
=.
1169 if test -f $ac_dir/$ac_word; then
1178 if test -n "$CC"; then
1179 echo "$ac_t""$CC" 1>&6
1181 echo "$ac_t""no" 1>&6
1186 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1189 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1194 ac_cpp
='$CPP $CPPFLAGS'
1195 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1196 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1197 cross_compiling
=$ac_cv_prog_cc_cross
1199 cat > conftest.
$ac_ext << EOF
1201 #line 1202 "configure"
1202 #include "confdefs.h"
1206 if { (eval echo configure
:1207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1207 ac_cv_prog_cc_works
=yes
1208 # If we can't run a trivial program, we are probably using a cross compiler.
1209 if (.
/conftest
; exit) 2>/dev
/null
; then
1210 ac_cv_prog_cc_cross
=no
1212 ac_cv_prog_cc_cross
=yes
1215 echo "configure: failed program was:" >&5
1216 cat conftest.
$ac_ext >&5
1217 ac_cv_prog_cc_works
=no
1221 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1222 ac_cpp
='$CPP $CPPFLAGS'
1223 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1224 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1225 cross_compiling
=$ac_cv_prog_cc_cross
1227 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1228 if test $ac_cv_prog_cc_works = no
; then
1229 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1231 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1233 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1234 cross_compiling
=$ac_cv_prog_cc_cross
1236 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1237 echo "configure:1238: checking whether we are using GNU C" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 cat > conftest.c
<<EOF
1246 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1253 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1255 if test $ac_cv_prog_gcc = yes; then
1261 ac_test_CFLAGS
="${CFLAGS+set}"
1262 ac_save_CFLAGS
="$CFLAGS"
1264 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether ${CC-cc} accepts -g" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 echo 'void f(){}' > conftest.c
1270 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1279 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1280 if test "$ac_test_CFLAGS" = set; then
1281 CFLAGS
="$ac_save_CFLAGS"
1282 elif test $ac_cv_prog_cc_g = yes; then
1283 if test "$GCC" = yes; then
1289 if test "$GCC" = yes; then
1296 if test "x$CC" != xcc
; then
1297 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether $CC and cc understand -c and -o together" >&5
1300 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1301 echo "configure:1302: checking whether cc understands -c and -o together" >&5
1303 set dummy
$CC; ac_cc
="`echo $2 |
1304 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1305 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 echo 'foo(){}' > conftest.c
1309 # Make sure it works both with $CC and with simple cc.
1310 # We do the test twice because some compilers refuse to overwrite an
1311 # existing .o file with -o, though they will create one.
1312 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1313 if { (eval echo configure
:1314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1314 test -f conftest.o
&& { (eval echo configure
:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1316 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1317 if test "x$CC" != xcc
; then
1318 # Test first that cc exists at all.
1319 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1320 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1321 if { (eval echo configure
:1322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1322 test -f conftest.o
&& { (eval echo configure
:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1327 # cc exists but doesn't like -o.
1328 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1333 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1338 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1339 echo "$ac_t""yes" 1>&6
1341 echo "$ac_t""no" 1>&6
1342 cat >> confdefs.h
<<\EOF
1343 #define NO_MINUS_C_MINUS_O 1
1348 # autoconf is lame and doesn't give us any substitution variable for this.
1349 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1350 NO_MINUS_C_MINUS_O
=yes
1352 OUTPUT_OPTION
='-o $@'
1357 echo $ac_n "checking for long double""... $ac_c" 1>&6
1358 echo "configure:1359: checking for long double" >&5
1359 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 if test "$GCC" = yes; then
1363 gcc_cv_c_long_double
=yes
1365 cat > conftest.
$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1370 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1371 long double foo = 0.0;
1372 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1373 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1376 if { (eval echo configure
:1377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378 gcc_cv_c_long_double
=yes
1380 echo "configure: failed program was:" >&5
1381 cat conftest.
$ac_ext >&5
1383 gcc_cv_c_long_double
=no
1389 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1390 if test $gcc_cv_c_long_double = yes; then
1391 cat >> confdefs.h
<<\EOF
1392 #define HAVE_LONG_DOUBLE 1
1398 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether ${CC-cc} accepts -Wno-long-long" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 save_CFLAGS
="$CFLAGS"
1404 CFLAGS
="-Wno-long-long"
1405 cat > conftest.
$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1413 if { (eval echo configure
:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1415 ac_cv_prog_cc_no_long_long
=yes
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1420 ac_cv_prog_cc_no_long_long
=no
1423 CFLAGS
="$save_CFLAGS"
1426 echo "$ac_t""$ac_cv_prog_cc_no_long_long" 1>&6
1428 if test $ac_cv_prog_cc_no_long_long = yes; then
1429 strict1_warn
="-pedantic -Wno-long-long"
1433 # If the native compiler is GCC, we can enable warnings even in stage1.
1434 # That's useful for people building cross-compilers, or just running a
1437 if test "x$GCC" = "xyes"; then
1438 warn_cflags
='$(GCC_WARN_CFLAGS)'
1442 # Stage specific cflags for build.
1446 if test x
$GCC = xyes
1448 stage1_cflags
="-Wa,-J"
1456 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1457 echo "configure:1458: checking whether ${MAKE-make} sets \${MAKE}" >&5
1458 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1459 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 cat > conftestmake
<<\EOF
1464 @
echo 'ac_maketemp="${MAKE}"'
1466 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1467 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1468 if test -n "$ac_maketemp"; then
1469 eval ac_cv_prog_make_
${ac_make}_set
=yes
1471 eval ac_cv_prog_make_
${ac_make}_set
=no
1475 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1476 echo "$ac_t""yes" 1>&6
1479 echo "$ac_t""no" 1>&6
1480 SET_MAKE
="MAKE=${MAKE-make}"
1484 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1485 echo "configure:1486: checking whether a default assembler was specified" >&5
1486 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1487 if test x
"$gas_flag" = x
"no"; then
1488 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1490 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1493 echo "$ac_t""no" 1>&6
1496 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1497 echo "configure:1498: checking whether a default linker was specified" >&5
1498 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1499 if test x
"$gnu_ld_flag" = x
"no"; then
1500 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1502 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1505 echo "$ac_t""no" 1>&6
1508 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1509 echo "configure:1510: checking for GNU C library" >&5
1510 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 cat > conftest.
$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1516 #include <features.h>
1519 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1520 #error Not a GNU C library system
1524 if { (eval echo configure
:1525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1528 echo "configure: failed program was:" >&5
1529 cat conftest.
$ac_ext >&5
1536 echo "$ac_t""$gcc_cv_glibc" 1>&6
1537 if test $gcc_cv_glibc = yes; then
1538 cat >> confdefs.h
<<\EOF
1539 #define _GNU_SOURCE 1
1544 echo $ac_n "checking for inline""... $ac_c" 1>&6
1545 echo "configure:1546: checking for inline" >&5
1546 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1550 for ac_kw
in inline __inline__ __inline
; do
1551 cat > conftest.
$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1556 } int $ac_kw foo() {
1559 if { (eval echo configure
:1560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1561 ac_cv_c_inline
=$ac_kw; break
1563 echo "configure: failed program was:" >&5
1564 cat conftest.
$ac_ext >&5
1571 echo "$ac_t""$ac_cv_c_inline" 1>&6
1572 case "$ac_cv_c_inline" in
1574 no
) cat >> confdefs.h
<<\EOF
1578 *) cat >> confdefs.h
<<EOF
1579 #define inline $ac_cv_c_inline
1585 # Find some useful tools
1586 for ac_prog
in mawk gawk nawk
awk
1588 # Extract the first word of "$ac_prog", so it can be a program name with args.
1589 set dummy
$ac_prog; ac_word
=$2
1590 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_word" >&5
1592 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 if test -n "$AWK"; then
1596 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1598 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1600 for ac_dir
in $ac_dummy; do
1601 test -z "$ac_dir" && ac_dir
=.
1602 if test -f $ac_dir/$ac_word; then
1603 ac_cv_prog_AWK
="$ac_prog"
1610 AWK
="$ac_cv_prog_AWK"
1611 if test -n "$AWK"; then
1612 echo "$ac_t""$AWK" 1>&6
1614 echo "$ac_t""no" 1>&6
1617 test -n "$AWK" && break
1620 # Extract the first word of "flex", so it can be a program name with args.
1621 set dummy flex
; ac_word
=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 if test -n "$LEX"; then
1628 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1630 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1632 for ac_dir
in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir
=.
1634 if test -f $ac_dir/$ac_word; then
1635 ac_cv_prog_LEX
="flex"
1640 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1643 LEX
="$ac_cv_prog_LEX"
1644 if test -n "$LEX"; then
1645 echo "$ac_t""$LEX" 1>&6
1647 echo "$ac_t""no" 1>&6
1650 if test -z "$LEXLIB"
1656 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1657 echo "configure:1658: checking for yywrap in -l$ac_lib" >&5
1658 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1659 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 ac_save_LIBS
="$LIBS"
1663 LIBS
="-l$ac_lib $LIBS"
1664 cat > conftest.
$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1667 /* Override any gcc2 internal prototype to avoid an error. */
1668 /* We use char because int might match the return type of a gcc2
1669 builtin and then its argument prototype would still apply. */
1676 if { (eval echo configure
:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1678 eval "ac_cv_lib_$ac_lib_var=yes"
1680 echo "configure: failed program was:" >&5
1681 cat conftest.
$ac_ext >&5
1683 eval "ac_cv_lib_$ac_lib_var=no"
1686 LIBS
="$ac_save_LIBS"
1689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1690 echo "$ac_t""yes" 1>&6
1693 echo "$ac_t""no" 1>&6
1698 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1699 echo "configure:1700: checking whether ln works" >&5
1700 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 rm -f conftestdata_t
1704 echo >conftestdata_f
1705 if ln conftestdata_f conftestdata_t
2>/dev
/null
1709 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1711 gcc_cv_prog_LN
="ln -s"
1716 rm -f conftestdata_f conftestdata_t
1719 LN
="$gcc_cv_prog_LN"
1720 if test "$gcc_cv_prog_LN" = "ln"; then
1721 echo "$ac_t""yes" 1>&6
1723 if test "$gcc_cv_prog_LN" = "ln -s"; then
1724 echo "$ac_t""no, using ln -s" 1>&6
1726 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1730 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1731 echo "configure:1732: checking whether ln -s works" >&5
1732 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 rm -f conftestdata_t
1736 echo >conftestdata_f
1737 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1739 gcc_cv_prog_LN_S
="ln -s"
1741 if ln conftestdata_f conftestdata_t
2>/dev
/null
1748 rm -f conftestdata_f conftestdata_t
1751 LN_S
="$gcc_cv_prog_LN_S"
1752 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1753 echo "$ac_t""yes" 1>&6
1755 if test "$gcc_cv_prog_LN_S" = "ln"; then
1756 echo "$ac_t""no, using ln" 1>&6
1758 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1762 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1763 echo "configure:1764: checking for volatile" >&5
1764 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 cat > conftest.
$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1775 if { (eval echo configure
:1776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1777 gcc_cv_c_volatile
=yes
1779 echo "configure: failed program was:" >&5
1780 cat conftest.
$ac_ext >&5
1782 gcc_cv_c_volatile
=no
1787 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1788 if test $gcc_cv_c_volatile = yes ; then
1789 cat >> confdefs.h
<<\EOF
1790 #define HAVE_VOLATILE 1
1795 # Extract the first word of "ranlib", so it can be a program name with args.
1796 set dummy ranlib
; ac_word
=$2
1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1798 echo "configure:1799: checking for $ac_word" >&5
1799 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 if test -n "$RANLIB"; then
1803 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1805 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1807 for ac_dir
in $ac_dummy; do
1808 test -z "$ac_dir" && ac_dir
=.
1809 if test -f $ac_dir/$ac_word; then
1810 ac_cv_prog_RANLIB
="ranlib"
1815 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1818 RANLIB
="$ac_cv_prog_RANLIB"
1819 if test -n "$RANLIB"; then
1820 echo "$ac_t""$RANLIB" 1>&6
1822 echo "$ac_t""no" 1>&6
1825 for ac_prog
in 'bison -y' byacc
1827 # Extract the first word of "$ac_prog", so it can be a program name with args.
1828 set dummy
$ac_prog; ac_word
=$2
1829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1830 echo "configure:1831: checking for $ac_word" >&5
1831 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 if test -n "$YACC"; then
1835 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1837 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1839 for ac_dir
in $ac_dummy; do
1840 test -z "$ac_dir" && ac_dir
=.
1841 if test -f $ac_dir/$ac_word; then
1842 ac_cv_prog_YACC
="$ac_prog"
1849 YACC
="$ac_cv_prog_YACC"
1850 if test -n "$YACC"; then
1851 echo "$ac_t""$YACC" 1>&6
1853 echo "$ac_t""no" 1>&6
1856 test -n "$YACC" && break
1858 test -n "$YACC" || YACC
="yacc"
1860 # Find a good install program. We prefer a C program (faster),
1861 # so one script is as good as another. But avoid the broken or
1862 # incompatible versions:
1863 # SysV /etc/install, /usr/sbin/install
1864 # SunOS /usr/etc/install
1865 # IRIX /sbin/install
1867 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1868 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1869 # ./install, which can be erroneously created by make from ./install.sh.
1870 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1871 echo "configure:1872: checking for a BSD compatible install" >&5
1872 if test -z "$INSTALL"; then
1873 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1877 for ac_dir
in $PATH; do
1878 # Account for people who put trailing slashes in PATH elements.
1880 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1882 # OSF1 and SCO ODT 3.0 have their own names for install.
1883 for ac_prog
in ginstall scoinst
install; do
1884 if test -f $ac_dir/$ac_prog; then
1885 if test $ac_prog = install &&
1886 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1887 # AIX install. It has an incompatible calling convention.
1888 # OSF/1 installbsd also uses dspmsg, but is usable.
1891 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1902 if test "${ac_cv_path_install+set}" = set; then
1903 INSTALL
="$ac_cv_path_install"
1905 # As a last resort, use the slow shell script. We don't cache a
1906 # path for INSTALL within a source directory, because that will
1907 # break other packages using the cache if that directory is
1908 # removed, or if the path is relative.
1909 INSTALL
="$ac_install_sh"
1912 echo "$ac_t""$INSTALL" 1>&6
1914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1915 # It thinks the first close brace ends the variable substitution.
1916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1918 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1921 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1922 echo "configure:1923: checking how to run the C preprocessor" >&5
1923 # On Suns, sometimes $CPP names a directory.
1924 if test -n "$CPP" && test -d "$CPP"; then
1927 if test -z "$CPP"; then
1928 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 # This must be in double quotes, not single quotes, because CPP may get
1932 # substituted into the Makefile and "${CC-cc}" will confuse make.
1934 # On the NeXT, cc -E runs the code through the compiler's parser,
1935 # not just through cpp.
1936 cat > conftest.
$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1942 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1943 { (eval echo configure
:1944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1944 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1945 if test -z "$ac_err"; then
1949 echo "configure: failed program was:" >&5
1950 cat conftest.
$ac_ext >&5
1952 CPP
="${CC-cc} -E -traditional-cpp"
1953 cat > conftest.
$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1959 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1960 { (eval echo configure
:1961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1961 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1962 if test -z "$ac_err"; then
1966 echo "configure: failed program was:" >&5
1967 cat conftest.
$ac_ext >&5
1969 CPP
="${CC-cc} -nologo -E"
1970 cat > conftest.
$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1976 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1977 { (eval echo configure
:1978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1978 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1979 if test -z "$ac_err"; then
1983 echo "configure: failed program was:" >&5
1984 cat conftest.
$ac_ext >&5
1993 ac_cv_prog_CPP
="$CPP"
1995 CPP
="$ac_cv_prog_CPP"
1997 ac_cv_prog_CPP
="$CPP"
1999 echo "$ac_t""$CPP" 1>&6
2001 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2002 echo "configure:2003: checking for ANSI C header files" >&5
2003 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2004 echo $ac_n "(cached) $ac_c" 1>&6
2006 cat > conftest.
$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2014 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2015 { (eval echo configure
:2016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2016 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2017 if test -z "$ac_err"; then
2019 ac_cv_header_stdc
=yes
2022 echo "configure: failed program was:" >&5
2023 cat conftest.
$ac_ext >&5
2025 ac_cv_header_stdc
=no
2029 if test $ac_cv_header_stdc = yes; then
2030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2031 cat > conftest.
$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2037 egrep "memchr" >/dev
/null
2>&1; then
2041 ac_cv_header_stdc
=no
2047 if test $ac_cv_header_stdc = yes; then
2048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2049 cat > conftest.
$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2055 egrep "free" >/dev
/null
2>&1; then
2059 ac_cv_header_stdc
=no
2065 if test $ac_cv_header_stdc = yes; then
2066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2067 if test "$cross_compiling" = yes; then
2070 cat > conftest.
$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2074 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2075 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2077 int main () { int i; for (i = 0; i < 256; i++)
2078 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2082 if { (eval echo configure
:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2086 echo "configure: failed program was:" >&5
2087 cat conftest.
$ac_ext >&5
2089 ac_cv_header_stdc
=no
2097 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2098 if test $ac_cv_header_stdc = yes; then
2099 cat >> confdefs.h
<<\EOF
2100 #define STDC_HEADERS 1
2105 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2106 echo "configure:2107: checking whether time.h and sys/time.h may both be included" >&5
2107 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2110 cat > conftest.
$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 #include <sys/types.h>
2114 #include <sys/time.h>
2120 if { (eval echo configure
:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2122 ac_cv_header_time
=yes
2124 echo "configure: failed program was:" >&5
2125 cat conftest.
$ac_ext >&5
2127 ac_cv_header_time
=no
2132 echo "$ac_t""$ac_cv_header_time" 1>&6
2133 if test $ac_cv_header_time = yes; then
2134 cat >> confdefs.h
<<\EOF
2135 #define TIME_WITH_SYS_TIME 1
2140 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
2141 echo "configure:2142: checking whether string.h and strings.h may both be included" >&5
2142 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 cat > conftest.
$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2149 #include <strings.h>
2154 if { (eval echo configure
:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2156 gcc_cv_header_string
=yes
2158 echo "configure: failed program was:" >&5
2159 cat conftest.
$ac_ext >&5
2161 gcc_cv_header_string
=no
2166 echo "$ac_t""$gcc_cv_header_string" 1>&6
2167 if test $gcc_cv_header_string = yes; then
2168 cat >> confdefs.h
<<\EOF
2169 #define STRING_WITH_STRINGS 1
2174 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2175 echo "configure:2176: checking for sys/wait.h that is POSIX.1 compatible" >&5
2176 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <sys/types.h>
2183 #include <sys/wait.h>
2185 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2188 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2193 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2196 if { (eval echo configure
:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2198 ac_cv_header_sys_wait_h
=yes
2200 echo "configure: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2203 ac_cv_header_sys_wait_h
=no
2208 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2209 if test $ac_cv_header_sys_wait_h = yes; then
2210 cat >> confdefs.h
<<\EOF
2211 #define HAVE_SYS_WAIT_H 1
2216 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
2217 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
2218 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
2219 direct.h malloc.h langinfo.h
iconv.h
2221 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2223 echo "configure:2224: checking for $ac_hdr" >&5
2224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2232 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2233 { (eval echo configure
:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2234 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2235 if test -z "$ac_err"; then
2237 eval "ac_cv_header_$ac_safe=yes"
2240 echo "configure: failed program was:" >&5
2241 cat conftest.
$ac_ext >&5
2243 eval "ac_cv_header_$ac_safe=no"
2247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2248 echo "$ac_t""yes" 1>&6
2249 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2250 cat >> confdefs.h
<<EOF
2251 #define $ac_tr_hdr 1
2255 echo "$ac_t""no" 1>&6
2260 # Check for thread headers.
2261 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2262 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2263 echo "configure:2264: checking for thread.h" >&5
2264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.
$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2272 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2273 { (eval echo configure
:2274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2274 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2275 if test -z "$ac_err"; then
2277 eval "ac_cv_header_$ac_safe=yes"
2280 echo "configure: failed program was:" >&5
2281 cat conftest.
$ac_ext >&5
2283 eval "ac_cv_header_$ac_safe=no"
2287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2288 echo "$ac_t""yes" 1>&6
2291 echo "$ac_t""no" 1>&6
2295 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2296 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2297 echo "configure:2298: checking for pthread.h" >&5
2298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.
$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 #include <pthread.h>
2306 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2307 { (eval echo configure
:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2308 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2309 if test -z "$ac_err"; then
2311 eval "ac_cv_header_$ac_safe=yes"
2314 echo "configure: failed program was:" >&5
2315 cat conftest.
$ac_ext >&5
2317 eval "ac_cv_header_$ac_safe=no"
2321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2325 echo "$ac_t""no" 1>&6
2330 # See if GNAT has been installed
2331 # Extract the first word of "gnatbind", so it can be a program name with args.
2332 set dummy gnatbind
; ac_word
=$2
2333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 if test -n "$gnat"; then
2339 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2341 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2343 for ac_dir
in $ac_dummy; do
2344 test -z "$ac_dir" && ac_dir
=.
2345 if test -f $ac_dir/$ac_word; then
2346 ac_cv_prog_gnat
="yes"
2351 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2354 gnat
="$ac_cv_prog_gnat"
2355 if test -n "$gnat"; then
2356 echo "$ac_t""$gnat" 1>&6
2358 echo "$ac_t""no" 1>&6
2362 # Do we have a single-tree copy of texinfo?
2363 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
2364 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
2365 gcc_cv_prog_makeinfo_modern
=yes
2366 echo "$ac_t""Using makeinfo from the unified source tree." 1>&6
2368 # See if makeinfo has been installed and is modern enough
2369 # that we can use it.
2370 # Extract the first word of "makeinfo", so it can be a program name with args.
2371 set dummy makeinfo
; ac_word
=$2
2372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_word" >&5
2374 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 if test -n "$MAKEINFO"; then
2378 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
2380 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2382 for ac_dir
in $ac_dummy; do
2383 test -z "$ac_dir" && ac_dir
=.
2384 if test -f $ac_dir/$ac_word; then
2385 ac_cv_prog_MAKEINFO
="makeinfo"
2392 MAKEINFO
="$ac_cv_prog_MAKEINFO"
2393 if test -n "$MAKEINFO"; then
2394 echo "$ac_t""$MAKEINFO" 1>&6
2396 echo "$ac_t""no" 1>&6
2399 if test -n "$MAKEINFO"; then
2400 # Found it, now check the version.
2401 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6
2402 echo "configure:2403: checking for modern makeinfo" >&5
2403 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 ac_prog_version
=`$MAKEINFO --version 2>&1 |
2407 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
2408 echo "configure:2409: version of makeinfo is $ac_prog_version" >&5
2409 case $ac_prog_version in
2410 '') gcc_cv_prog_makeinfo_modern
=no
;;
2411 3.1[2-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
2412 gcc_cv_prog_makeinfo_modern
=yes;;
2413 *) gcc_cv_prog_makeinfo_modern
=no
;;
2418 echo "$ac_t""$gcc_cv_prog_makeinfo_modern" 1>&6
2420 gcc_cv_prog_makeinfo_modern
=no
2425 if test $gcc_cv_prog_makeinfo_modern = no
; then
2426 echo "configure: warning:
2427 *** Makeinfo is missing or too old.
2428 *** Info documentation will not be built or installed." 1>&2
2433 INSTALL_INFO
=install-info
2436 # See if the stage1 system preprocessor understands the ANSI C
2437 # preprocessor stringification operator.
2440 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2441 echo "configure:2442: checking for preprocessor stringizing operator" >&5
2442 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 cat > conftest.
$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2451 char *s = x(teststring);
2454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2455 egrep "#teststring" >/dev
/null
2>&1; then
2457 ac_cv_c_stringize
=no
2460 ac_cv_c_stringize
=yes
2466 if test "${ac_cv_c_stringize}" = yes
2468 cat >> confdefs.h
<<\EOF
2469 #define HAVE_STRINGIZE 1
2473 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2476 # Use <inttypes.h> only if it exists,
2477 # doesn't clash with <sys/types.h>, and declares intmax_t.
2478 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2479 echo "configure:2480: checking for inttypes.h" >&5
2480 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 cat > conftest.
$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 #include <sys/types.h>
2487 #include <inttypes.h>
2492 if { (eval echo configure
:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2494 gcc_cv_header_inttypes_h
=yes
2496 echo "configure: failed program was:" >&5
2497 cat conftest.
$ac_ext >&5
2499 gcc_cv_header_inttypes_h
=no
2504 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2505 if test $gcc_cv_header_inttypes_h = yes; then
2506 cat >> confdefs.h
<<\EOF
2507 #define HAVE_INTTYPES_H 1
2513 # Determine if enumerated bitfields are unsigned. ISO C says they can
2514 # be either signed or unsigned.
2516 echo $ac_n "checking for unsigned enumerated bitfields""... $ac_c" 1>&6
2517 echo "configure:2518: checking for unsigned enumerated bitfields" >&5
2518 if eval "test \"`echo '$''{'gcc_cv_enum_bf_unsigned'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 if test "$cross_compiling" = yes; then
2522 gcc_cv_enum_bf_unsigned
=yes
2524 cat > conftest.
$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2528 enum t { BLAH = 128 } ;
2529 struct s_t { enum t member : 8; } s ;
2533 if (s.member < 0) exit(1);
2538 if { (eval echo configure
:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2540 gcc_cv_enum_bf_unsigned
=yes
2542 echo "configure: failed program was:" >&5
2543 cat conftest.
$ac_ext >&5
2545 gcc_cv_enum_bf_unsigned
=no
2552 echo "$ac_t""$gcc_cv_enum_bf_unsigned" 1>&6
2553 if test $gcc_cv_enum_bf_unsigned = yes; then
2554 cat >> confdefs.h
<<\EOF
2555 #define ENUM_BITFIELDS_ARE_UNSIGNED 1
2560 for ac_func
in strtoul bsearch putenv popen bcopy bzero bcmp \
2561 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2562 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2563 fputs_unlocked getrusage valloc
iconv nl_langinfo
2565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_func" >&5
2567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 cat > conftest.
$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $ac_func(); below. */
2576 /* Override any gcc2 internal prototype to avoid an error. */
2577 /* We use char because int might match the return type of a gcc2
2578 builtin and then its argument prototype would still apply. */
2583 /* The GNU C library defines this for functions which it implements
2584 to always fail with ENOSYS. Some functions are actually named
2585 something starting with __ and the normal name is an alias. */
2586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2594 if { (eval echo configure
:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2596 eval "ac_cv_func_$ac_func=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.
$ac_ext >&5
2601 eval "ac_cv_func_$ac_func=no"
2606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2609 cat >> confdefs.h
<<EOF
2610 #define $ac_tr_func 1
2614 echo "$ac_t""no" 1>&6
2619 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2620 echo "configure:2621: checking for ssize_t" >&5
2621 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 cat > conftest.
$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2627 #include <sys/types.h>
2633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2634 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2636 ac_cv_type_ssize_t
=yes
2639 ac_cv_type_ssize_t
=no
2644 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2645 if test $ac_cv_type_ssize_t = no
; then
2646 cat >> confdefs.h
<<\EOF
2653 # Try to determine the array type of the second argument of getgroups
2654 # for the target system (int or gid_t).
2655 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2656 echo "configure:2657: checking for uid_t in sys/types.h" >&5
2657 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.
$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2663 #include <sys/types.h>
2665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2666 egrep "uid_t" >/dev
/null
2>&1; then
2668 ac_cv_type_uid_t
=yes
2677 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2678 if test $ac_cv_type_uid_t = no
; then
2679 cat >> confdefs.h
<<\EOF
2683 cat >> confdefs.h
<<\EOF
2689 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2690 echo "configure:2691: checking type of array argument to getgroups" >&5
2691 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 if test "$cross_compiling" = yes; then
2695 ac_cv_type_getgroups
=cross
2697 cat > conftest.
$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2701 /* Thanks to Mike Rendell for this test. */
2702 #include <sys/types.h>
2705 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2710 union { gid_t gval; long lval; } val;
2713 for (i = 0; i < NGID; i++)
2714 gidset[i] = val.gval;
2715 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2717 /* Exit non-zero if getgroups seems to require an array of ints. This
2718 happens when gid_t is short but getgroups modifies an array of ints. */
2719 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2723 if { (eval echo configure
:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2725 ac_cv_type_getgroups
=gid_t
2727 echo "configure: failed program was:" >&5
2728 cat conftest.
$ac_ext >&5
2730 ac_cv_type_getgroups
=int
2735 if test $ac_cv_type_getgroups = cross
; then
2736 cat > conftest.
$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2742 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2744 ac_cv_type_getgroups
=gid_t
2747 ac_cv_type_getgroups
=int
2754 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2755 cat >> confdefs.h
<<EOF
2756 #define GETGROUPS_T $ac_cv_type_getgroups
2760 if test "${target}" = "${build}"; then
2761 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
2764 # This condition may need some tweaking. It should include all
2765 # targets where the array type of the second argument of getgroups
2766 # is int and the type of gid_t is not equivalent to int.
2767 *-*-sunos* |
*-*-ultrix*)
2768 TARGET_GETGROUPS_T
=int
2771 TARGET_GETGROUPS_T
=gid_t
2777 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2778 echo "configure:2779: checking for vprintf" >&5
2779 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 cat > conftest.
$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2785 /* System header to define __stub macros and hopefully few prototypes,
2786 which can conflict with char vprintf(); below. */
2788 /* Override any gcc2 internal prototype to avoid an error. */
2789 /* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2795 /* The GNU C library defines this for functions which it implements
2796 to always fail with ENOSYS. Some functions are actually named
2797 something starting with __ and the normal name is an alias. */
2798 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2806 if { (eval echo configure
:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2808 eval "ac_cv_func_vprintf=yes"
2810 echo "configure: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2813 eval "ac_cv_func_vprintf=no"
2818 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 cat >> confdefs.h
<<\EOF
2821 #define HAVE_VPRINTF 1
2825 echo "$ac_t""no" 1>&6
2828 if test "$ac_cv_func_vprintf" != yes; then
2829 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2830 echo "configure:2831: checking for _doprnt" >&5
2831 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2834 cat > conftest.
$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 /* System header to define __stub macros and hopefully few prototypes,
2838 which can conflict with char _doprnt(); below. */
2840 /* Override any gcc2 internal prototype to avoid an error. */
2841 /* We use char because int might match the return type of a gcc2
2842 builtin and then its argument prototype would still apply. */
2847 /* The GNU C library defines this for functions which it implements
2848 to always fail with ENOSYS. Some functions are actually named
2849 something starting with __ and the normal name is an alias. */
2850 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2858 if { (eval echo configure
:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2860 eval "ac_cv_func__doprnt=yes"
2862 echo "configure: failed program was:" >&5
2863 cat conftest.
$ac_ext >&5
2865 eval "ac_cv_func__doprnt=no"
2870 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2871 echo "$ac_t""yes" 1>&6
2872 cat >> confdefs.h
<<\EOF
2873 #define HAVE_DOPRNT 1
2877 echo "$ac_t""no" 1>&6
2884 if test $ac_cv_func_vprintf != yes ; then
2886 if test $ac_cv_func__doprnt != yes ; then
2893 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2894 echo "configure:2895: checking whether the printf functions support %p" >&5
2895 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 if test "$cross_compiling" = yes; then
2899 gcc_cv_func_printf_ptr
=no
2901 cat > conftest.
$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2909 char *p = buf, *q = NULL;
2910 sprintf(buf, "%p", p);
2911 sscanf(buf, "%p", &q);
2915 if { (eval echo configure
:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2917 gcc_cv_func_printf_ptr
=yes
2919 echo "configure: failed program was:" >&5
2920 cat conftest.
$ac_ext >&5
2922 gcc_cv_func_printf_ptr
=no
2927 rm -f core core.
* *.core
2930 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2931 if test $gcc_cv_func_printf_ptr = yes ; then
2932 cat >> confdefs.h
<<\EOF
2933 #define HAVE_PRINTF_PTR 1
2941 # Under some versions of uwin, vfork is notoriously buggy and the test
2942 # can hang configure; on other versions, vfork exists just as a stub.
2943 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2944 ac_cv_func_vfork_works
=no
2947 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2948 echo "configure:2949: checking for pid_t" >&5
2949 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 cat > conftest.
$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 #include <sys/types.h>
2961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2962 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2964 ac_cv_type_pid_t
=yes
2972 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2973 if test $ac_cv_type_pid_t = no
; then
2974 cat >> confdefs.h
<<\EOF
2980 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2981 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2982 echo "configure:2983: checking for vfork.h" >&5
2983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 cat > conftest.
$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2991 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2992 { (eval echo configure
:2993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2993 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2994 if test -z "$ac_err"; then
2996 eval "ac_cv_header_$ac_safe=yes"
2999 echo "configure: failed program was:" >&5
3000 cat conftest.
$ac_ext >&5
3002 eval "ac_cv_header_$ac_safe=no"
3006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3007 echo "$ac_t""yes" 1>&6
3008 cat >> confdefs.h
<<\EOF
3009 #define HAVE_VFORK_H 1
3013 echo "$ac_t""no" 1>&6
3016 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
3017 echo "configure:3018: checking for working vfork" >&5
3018 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 if test "$cross_compiling" = yes; then
3022 echo $ac_n "checking for vfork""... $ac_c" 1>&6
3023 echo "configure:3024: checking for vfork" >&5
3024 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.
$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 /* System header to define __stub macros and hopefully few prototypes,
3031 which can conflict with char vfork(); below. */
3033 /* Override any gcc2 internal prototype to avoid an error. */
3034 /* We use char because int might match the return type of a gcc2
3035 builtin and then its argument prototype would still apply. */
3040 /* The GNU C library defines this for functions which it implements
3041 to always fail with ENOSYS. Some functions are actually named
3042 something starting with __ and the normal name is an alias. */
3043 #if defined (__stub_vfork) || defined (__stub___vfork)
3051 if { (eval echo configure
:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3053 eval "ac_cv_func_vfork=yes"
3055 echo "configure: failed program was:" >&5
3056 cat conftest.
$ac_ext >&5
3058 eval "ac_cv_func_vfork=no"
3063 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
3064 echo "$ac_t""yes" 1>&6
3067 echo "$ac_t""no" 1>&6
3070 ac_cv_func_vfork_works
=$ac_cv_func_vfork
3072 cat > conftest.
$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3075 /* Thanks to Paul Eggert for this test. */
3077 #include <sys/types.h>
3078 #include <sys/stat.h>
3079 #ifdef HAVE_UNISTD_H
3085 /* On some sparc systems, changes by the child to local and incoming
3086 argument registers are propagated back to the parent.
3087 The compiler is told about this with #include <vfork.h>,
3088 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
3089 Test for this by using a static variable whose address
3090 is put into a register that is clobbered by the vfork. */
3093 sparc_address_test (int arg)
3095 sparc_address_test (arg) int arg;
3113 pid_t parent = getpid ();
3116 sparc_address_test ();
3121 /* Here is another test for sparc vfork register problems.
3122 This test uses lots of local variables, at least
3123 as many local variables as main has allocated so far
3124 including compiler temporaries. 4 locals are enough for
3125 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
3126 A buggy compiler should reuse the register of parent
3127 for one of the local variables, since it will think that
3128 parent can't possibly be used any more in this routine.
3129 Assigning to the local variable will thus munge parent
3130 in the parent process. */
3132 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3133 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3134 /* Convince the compiler that p..p7 are live; otherwise, it might
3135 use the same hardware register for all 8 local variables. */
3136 if (p != p1 || p != p2 || p != p3 || p != p4
3137 || p != p5 || p != p6 || p != p7)
3140 /* On some systems (e.g. IRIX 3.3),
3141 vfork doesn't separate parent from child file descriptors.
3142 If the child closes a descriptor before it execs or exits,
3143 this munges the parent's descriptor as well.
3144 Test for this by closing stdout in the child. */
3145 _exit(close(fileno(stdout)) != 0);
3150 while (wait(&status) != child)
3153 /* Was there some problem with vforking? */
3156 /* Did the child fail? (This shouldn't happen.) */
3159 /* Did the vfork/compiler bug occur? */
3160 || parent != getpid()
3162 /* Did the file descriptor bug occur? */
3163 || fstat(fileno(stdout), &st) != 0
3168 if { (eval echo configure
:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3170 ac_cv_func_vfork_works
=yes
3172 echo "configure: failed program was:" >&5
3173 cat conftest.
$ac_ext >&5
3175 ac_cv_func_vfork_works
=no
3182 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
3183 if test $ac_cv_func_vfork_works = no
; then
3184 cat >> confdefs.h
<<\EOF
3190 for ac_hdr
in unistd.h
3192 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3194 echo "configure:3195: checking for $ac_hdr" >&5
3195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.
$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3203 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3204 { (eval echo configure
:3205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3205 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3206 if test -z "$ac_err"; then
3208 eval "ac_cv_header_$ac_safe=yes"
3211 echo "configure: failed program was:" >&5
3212 cat conftest.
$ac_ext >&5
3214 eval "ac_cv_header_$ac_safe=no"
3218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3220 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3221 cat >> confdefs.h
<<EOF
3222 #define $ac_tr_hdr 1
3226 echo "$ac_t""no" 1>&6
3230 for ac_func
in getpagesize
3232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_func" >&5
3234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 cat > conftest.
$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 /* System header to define __stub macros and hopefully few prototypes,
3241 which can conflict with char $ac_func(); below. */
3243 /* Override any gcc2 internal prototype to avoid an error. */
3244 /* We use char because int might match the return type of a gcc2
3245 builtin and then its argument prototype would still apply. */
3250 /* The GNU C library defines this for functions which it implements
3251 to always fail with ENOSYS. Some functions are actually named
3252 something starting with __ and the normal name is an alias. */
3253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3261 if { (eval echo configure
:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3263 eval "ac_cv_func_$ac_func=yes"
3265 echo "configure: failed program was:" >&5
3266 cat conftest.
$ac_ext >&5
3268 eval "ac_cv_func_$ac_func=no"
3273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3274 echo "$ac_t""yes" 1>&6
3275 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3276 cat >> confdefs.h
<<EOF
3277 #define $ac_tr_func 1
3281 echo "$ac_t""no" 1>&6
3285 echo $ac_n "checking for working mmap which provides zeroed pages anywhere""... $ac_c" 1>&6
3286 echo "configure:3287: checking for working mmap which provides zeroed pages anywhere" >&5
3287 if eval "test \"`echo '$''{'ac_cv_func_mmap_anywhere'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 if test "$cross_compiling" = yes; then
3291 ac_cv_func_mmap_anywhere
=no
3293 cat > conftest.
$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3297 /* Test by Richard Henderson and Alexandre Oliva.
3298 Check whether mmap MAP_ANONYMOUS or mmap from /dev/zero works. */
3299 #include <sys/types.h>
3301 #include <sys/mman.h>
3303 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
3304 # define MAP_ANONYMOUS MAP_ANON
3307 /* This mess was copied from the GNU getpagesize.h. */
3308 #ifndef HAVE_GETPAGESIZE
3309 # ifdef HAVE_UNISTD_H
3310 # include <unistd.h>
3313 /* Assume that all systems that can run configure have sys/param.h. */
3314 # ifndef HAVE_SYS_PARAM_H
3315 # define HAVE_SYS_PARAM_H 1
3318 # ifdef _SC_PAGESIZE
3319 # define getpagesize() sysconf(_SC_PAGESIZE)
3320 # else /* no _SC_PAGESIZE */
3321 # ifdef HAVE_SYS_PARAM_H
3322 # include <sys/param.h>
3323 # ifdef EXEC_PAGESIZE
3324 # define getpagesize() EXEC_PAGESIZE
3325 # else /* no EXEC_PAGESIZE */
3327 # define getpagesize() NBPG * CLSIZE
3330 # endif /* no CLSIZE */
3331 # else /* no NBPG */
3333 # define getpagesize() NBPC
3334 # else /* no NBPC */
3336 # define getpagesize() PAGESIZE
3337 # endif /* PAGESIZE */
3338 # endif /* no NBPC */
3339 # endif /* no NBPG */
3340 # endif /* no EXEC_PAGESIZE */
3341 # else /* no HAVE_SYS_PARAM_H */
3342 # define getpagesize() 8192 /* punt totally */
3343 # endif /* no HAVE_SYS_PARAM_H */
3344 # endif /* no _SC_PAGESIZE */
3346 #endif /* no HAVE_GETPAGESIZE */
3353 #ifndef MAP_ANONYMOUS
3354 fd = open("/dev/zero", O_RDWR);
3360 #ifdef MAP_ANONYMOUS
3361 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE,
3362 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
3364 x = (char*)mmap(0, pg, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
3366 if (x == (char *) -1)
3371 if (munmap(x, pg) < 0)
3377 if { (eval echo configure
:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3379 ac_cv_func_mmap_anywhere
=yes
3381 echo "configure: failed program was:" >&5
3382 cat conftest.
$ac_ext >&5
3384 ac_cv_func_mmap_anywhere
=no
3391 echo "$ac_t""$ac_cv_func_mmap_anywhere" 1>&6
3392 if test $ac_cv_func_mmap_anywhere = yes; then
3393 cat >> confdefs.h
<<\EOF
3394 #define HAVE_MMAP_ANYWHERE 1
3399 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
3400 echo "configure:3401: checking for working mmap of a file" >&5
3401 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 # Create a file one thousand bytes long.
3405 for i
in 1 2 3 4 5 6 7 8 9 0
3406 do for j
in 1 2 3 4 5 6 7 8 9 0
3409 done > conftestdata$$
3411 if test "$cross_compiling" = yes; then
3412 ac_cv_func_mmap_file
=no
3414 cat > conftest.
$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3418 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
3419 Richard Henderson and Alexandre Oliva.
3420 Check whether read-only mmap of a plain file works. */
3421 #include <sys/types.h>
3422 #include <sys/stat.h>
3424 #include <sys/mman.h>
3432 fd = open("conftestdata$$", O_RDONLY);
3436 if (fstat (fd, &st))
3439 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
3440 if (x == (char *) -1)
3443 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
3446 if (munmap(x, st.st_size) < 0)
3452 if { (eval echo configure
:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3454 ac_cv_func_mmap_file
=yes
3456 echo "configure: failed program was:" >&5
3457 cat conftest.
$ac_ext >&5
3459 ac_cv_func_mmap_file
=no
3466 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
3467 if test $ac_cv_func_mmap_file = yes; then
3468 cat >> confdefs.h
<<\EOF
3469 #define HAVE_MMAP_FILE 1
3475 # We will need to find libiberty.h and ansidecl.h
3476 saved_CFLAGS
="$CFLAGS"
3477 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
3478 for ac_func
in bcopy bzero bcmp \
3479 index rindex getenv atol sbrk abort atof getcwd getwd \
3480 strsignal putc_unlocked fputs_unlocked strstr environ \
3481 malloc realloc calloc free
basename getopt
3483 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3484 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3485 echo "configure:3486: checking whether $ac_func is declared" >&5
3486 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 cat > conftest.
$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 #include "gansidecl.h"
3497 char *(*pfn) = (char *(*)) $ac_func ;
3501 if { (eval echo configure
:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3503 eval "gcc_cv_have_decl_$ac_func=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.
$ac_ext >&5
3508 eval "gcc_cv_have_decl_$ac_func=no"
3513 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3515 #define $ac_tr_decl 1
3519 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3520 #define $ac_tr_decl 0
3526 if test x
= y
; then
3527 cat >> confdefs.h
<<EOF
3528 #define HAVE_DECL_BCOPY 1
3530 cat >> confdefs.h
<<EOF
3531 #define HAVE_DECL_BZERO 1
3533 cat >> confdefs.h
<<EOF
3534 #define HAVE_DECL_BCMP 1
3537 cat >> confdefs.h
<<EOF
3538 #define HAVE_DECL_INDEX 1
3540 cat >> confdefs.h
<<EOF
3541 #define HAVE_DECL_RINDEX 1
3543 cat >> confdefs.h
<<EOF
3544 #define HAVE_DECL_GETENV 1
3546 cat >> confdefs.h
<<EOF
3547 #define HAVE_DECL_ATOL 1
3549 cat >> confdefs.h
<<EOF
3550 #define HAVE_DECL_SBRK 1
3552 cat >> confdefs.h
<<EOF
3553 #define HAVE_DECL_ABORT 1
3555 cat >> confdefs.h
<<EOF
3556 #define HAVE_DECL_ATOF 1
3558 cat >> confdefs.h
<<EOF
3559 #define HAVE_DECL_GETCWD 1
3561 cat >> confdefs.h
<<EOF
3562 #define HAVE_DECL_GETWD 1
3565 cat >> confdefs.h
<<EOF
3566 #define HAVE_DECL_STRSIGNAL 1
3568 cat >> confdefs.h
<<EOF
3569 #define HAVE_DECL_PUTC_UNLOCKED 1
3571 cat >> confdefs.h
<<EOF
3572 #define HAVE_DECL_FPUTS_UNLOCKED 1
3574 cat >> confdefs.h
<<EOF
3575 #define HAVE_DECL_STRSTR 1
3577 cat >> confdefs.h
<<EOF
3578 #define HAVE_DECL_ENVIRON 1
3581 cat >> confdefs.h
<<EOF
3582 #define HAVE_DECL_MALLOC 1
3584 cat >> confdefs.h
<<EOF
3585 #define HAVE_DECL_REALLOC 1
3587 cat >> confdefs.h
<<EOF
3588 #define HAVE_DECL_CALLOC 1
3590 cat >> confdefs.h
<<EOF
3591 #define HAVE_DECL_FREE 1
3593 cat >> confdefs.h
<<EOF
3594 #define HAVE_DECL_BASENAME 1
3596 cat >> confdefs.h
<<EOF
3597 #define HAVE_DECL_GETOPT 1
3602 for ac_func
in getrlimit setrlimit getrusage
3604 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3605 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
3606 echo "configure:3607: checking whether $ac_func is declared" >&5
3607 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.
$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 #include "gansidecl.h"
3615 #ifdef HAVE_SYS_RESOURCE_H
3616 #include <sys/resource.h>
3622 char *(*pfn) = (char *(*)) $ac_func ;
3626 if { (eval echo configure
:3627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3628 eval "gcc_cv_have_decl_$ac_func=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.
$ac_ext >&5
3633 eval "gcc_cv_have_decl_$ac_func=no"
3638 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h
<<EOF
3640 #define $ac_tr_decl 1
3644 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h
<<EOF
3645 #define $ac_tr_decl 0
3651 if test x
= y
; then
3652 cat >> confdefs.h
<<EOF
3653 #define HAVE_DECL_GETRLIMIT 1
3655 cat >> confdefs.h
<<EOF
3656 #define HAVE_DECL_SETRLIMIT 1
3658 cat >> confdefs.h
<<EOF
3659 #define HAVE_DECL_GETRUSAGE 1
3664 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
3665 CFLAGS
="$saved_CFLAGS"
3667 # mkdir takes a single argument on some systems.
3668 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3669 echo "configure:3670: checking if mkdir takes one argument" >&5
3670 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.
$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3677 #include <sys/types.h>
3678 #ifdef HAVE_SYS_STAT_H
3679 # include <sys/stat.h>
3681 #ifdef HAVE_UNISTD_H
3682 # include <unistd.h>
3684 #ifdef HAVE_DIRECT_H
3685 # include <direct.h>
3691 if { (eval echo configure
:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3693 gcc_cv_mkdir_takes_one_arg
=no
3695 echo "configure: failed program was:" >&5
3696 cat conftest.
$ac_ext >&5
3698 gcc_cv_mkdir_takes_one_arg
=yes
3703 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3704 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3705 cat >> confdefs.h
<<\EOF
3706 #define MKDIR_TAKES_ONE_ARG 1
3720 build_install_headers_dir
=install-headers-tar
3725 host_truncate_target
=
3728 # Decode the host machine, then the target machine.
3729 # For the host machine, we save the xm_file variable as host_xm_file;
3730 # then we decode the target machine and forget everything else
3731 # that came from the host machine.
3732 for machine
in $build $host $target; do
3746 # Set this to force installation and use of collect2.
3748 # Set this to override the default target model.
3750 # Set this to control how the header file directory is installed.
3751 install_headers_dir
=install-headers-tar
3752 # Set this to a non-empty list of args to pass to cpp if the target
3753 # wants its .md file passed through cpp.
3755 # Set this if directory names should be truncated to 14 characters.
3757 # Set this if gdb needs a dir command with `dirname $out_file`
3758 gdb_needs_out_file_path
=
3759 # Set this if the build machine requires executables to have a
3762 # Set this to control which thread package will be used.
3764 # Reinitialize these from the flag values every loop pass, since some
3765 # configure entries modify them.
3767 gnu_ld
="$gnu_ld_flag"
3768 enable_threads
=$enable_threads_flag
3770 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3771 # updated in each machine entry.
3773 cpu_type
=`echo $machine | sed 's/-.*$//'`
3813 tm_file
=${cpu_type}/${cpu_type}.h
3814 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3815 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3817 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3819 # On a.out targets, we need to use collect2.
3826 # Common parts for linux and openbsd systems
3829 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3832 tm_file
=${cpu_type}/openbsd.h
3833 tmake_file
="t-libc-ok t-openbsd"
3834 # avoid surprises, always provide an xm-openbsd file
3835 xm_file
=${cpu_type}/xm-openbsd.h
3836 # don't depend on processor x-fragments as well
3838 if test x
$enable_threads = xyes
; then
3840 tmake_file
="${tmake_file} t-openbsd-thread"
3846 # Support site-specific machine types.
3848 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3849 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3850 xm_file
=${cpu_type}/xm-
$rest.h
3851 tm_file
=${cpu_type}/$rest.h
3852 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3853 then xmake_file
=${cpu_type}/x-
$rest; \
3856 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3857 then tmake_file
=${cpu_type}/t-
$rest; \
3863 a29k-
*-bsd* | a29k-
*-sym1*)
3864 tm_file
="${tm_file} a29k/unix.h"
3866 xmake_file
=a29k
/x-unix
3869 a29k-
*-udi | a29k-
*-coff)
3870 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3871 tmake_file
=a29k
/t-a29kbare
3874 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3875 tmake_file
=a29k
/t-vx29k
3876 extra_parts
="crtbegin.o crtend.o"
3877 thread_file
='vxworks'
3879 a29k-
*-*) # Default a29k environment.
3883 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3885 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3886 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3888 # GAS + IEEE_CONFORMANT
3889 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3891 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3892 xmake_file
="x-interix alpha/t-pe"
3893 tmake_file
="alpha/t-alpha alpha/t-interix alpha/t-ieee"
3894 if test x
$enable_threads = xyes
; then
3897 if test x
$stabs = xyes
; then
3898 tm_file
="${tm_file} dbxcoff.h"
3900 #prefix='$$INTERIX_ROOT'/usr/contrib
3901 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3903 alpha
*-*-linux*ecoff
*)
3904 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3905 target_cpu_default
="MASK_GAS"
3906 tmake_file
="alpha/t-alpha alpha/t-ieee"
3911 alpha
*-*-linux*libc1
*)
3912 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3913 target_cpu_default
="MASK_GAS"
3914 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
3915 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3918 if test x
$enable_threads = xyes
; then
3923 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3924 target_cpu_default
="MASK_GAS"
3925 tmake_file
="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3926 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3929 if test x
$enable_threads = xyes
; then
3934 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3935 target_cpu_default
="MASK_GAS"
3936 tmake_file
="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
3937 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3943 # default x-alpha is only appropriate for dec-osf.
3944 target_cpu_default
="MASK_GAS"
3945 tmake_file
="alpha/t-alpha alpha/t-ieee"
3949 if test x
$stabs = xyes
3951 tm_file
="${tm_file} dbx.h"
3953 if test x
$gas != xyes
3955 extra_passes
="mips-tfile mips-tdump"
3958 tmake_file
="alpha/t-alpha alpha/t-ieee alpha/t-osf"
3959 xmake_file
=alpha
/x-osf
3962 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3965 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3968 tm_file
="${tm_file} alpha/osf.h"
3969 tmake_file
="$tmake_file alpha/t-osf4"
3970 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3971 # a broken tar, so we use cpio instead.
3972 install_headers_dir
=install-headers-cpio
3975 tm_file
="${tm_file} alpha/osf.h alpha/osf5.h"
3976 tmake_file
="$tmake_file alpha/t-osf4"
3980 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]* |
*-*-osf5*)
3981 target_cpu_default
=MASK_SUPPORT_ARCH
3986 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3987 tmake_file
="alpha/t-alpha alpha/t-ieee"
3990 extra_passes
="mips-tfile mips-tdump"
3993 thread_file
='vxworks'
3996 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3997 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3998 tmake_file
="t-libc-ok alpha/t-alpha alpha/t-ieee"
3999 xmake_file
=winnt
/x-winnt
4000 extra_host_objs
=oldnames.o
4001 extra_gcc_objs
="spawnv.o oldnames.o"
4002 if test x
$gnu_ld != xyes
4004 extra_programs
=ld.exe
4006 if test x
$enable_threads = xyes
; then
4012 xm_file
="${xm_file} alpha/xm-vms.h"
4013 tmake_file
="alpha/t-alpha alpha/t-vms alpha/t-ieee"
4016 extra_parts
="crtinit.o crtfini.o"
4018 arm-
*-coff* | armel-
*-coff*)
4020 tmake_file
=arm
/t-arm-coff
4024 tmake_file
=arm
/t-arm-coff
4025 thread_file
='vxworks'
4027 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
4028 tm_file
=arm
/riscix1-1.h
4031 arm-
*-riscix*) # Acorn RISC machine
4032 if test x
$gas = xyes
4034 tm_file
=arm
/rix-gas.h
4036 tm_file
=arm
/riscix.h
4038 xmake_file
=arm
/x-riscix
4039 tmake_file
=arm
/t-riscix
4042 arm-semi-aout | armel-semi-aout
)
4044 tmake_file
=arm
/t-semi
4046 arm-semi-aof | armel-semi-aof
)
4047 tm_file
=arm
/semiaof.h
4048 tmake_file
=arm
/t-semiaof
4051 tm_file
=arm
/netbsd.h
4052 tmake_file
="t-netbsd arm/t-netbsd"
4055 arm
*-*-linux*aout
*) # ARM GNU/Linux with a.out
4058 tm_file
=arm
/linux-aout.h
4059 tmake_file
=arm
/t-linux
4062 arm
*-*-linux*oldld
*) # ARM GNU/Linux with old ELF linker
4063 xm_file
=arm
/xm-linux.h
4065 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
4068 tm_file
="arm/linux-elf26.h $tm_file"
4071 tmake_file
="t-linux arm/t-linux"
4072 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4074 case x
${enable_threads} in
4075 x | xyes | xpthreads | xposix
)
4080 arm
*-*-linux*) # ARM GNU/Linux with ELF
4081 xm_file
=arm
/xm-linux.h
4083 tm_file
="arm/linux-elf.h"
4086 tm_file
="arm/linux-elf26.h $tm_file"
4089 tmake_file
="t-linux arm/t-linux"
4090 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4092 case x
${enable_threads} in
4093 x | xyes | xpthreads | xposix
)
4098 arm
*-*-uclinux*) # ARM ucLinux
4099 tm_file
=arm
/uclinux-elf.h
4100 tmake_file
=arm
/t-arm-elf
4104 tmake_file
=arm
/t-arm-aout
4107 tm_file
=arm
/ecos-elf.h
4108 tmake_file
=arm
/t-arm-elf
4111 tm_file
=arm
/unknown-elf.h
4112 tmake_file
=arm
/t-arm-elf
4115 tm_file
=arm
/conix-elf.h
4116 tmake_file
=arm
/t-arm-elf
4119 tm_file
=arm
/unknown-elf-oabi.h
4120 tmake_file
=arm
/t-arm-elf
4129 c1-convex-
*) # Convex C1
4130 target_cpu_default
=1
4133 c2-convex-
*) # Convex C2
4134 target_cpu_default
=2
4138 target_cpu_default
=4
4142 target_cpu_default
=8
4146 target_cpu_default
=16
4152 tmake_file
=c4x
/t-c4x
4154 clipper-intergraph-clix
*)
4155 tm_file
="${tm_file} svr3.h clipper/clix.h"
4156 xm_file
=clipper
/xm-clix.h
4157 xmake_file
=clipper
/x-clix
4158 extra_headers
=va-clipper.h
4159 extra_parts
="crtbegin.o crtend.o"
4160 install_headers_dir
=install-headers-cpio
4171 tm_file
="fr30/fr30.h"
4172 tmake_file
=fr30
/t-fr30
4173 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4179 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
4180 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
4181 tmake_file
="t-linux pa/t-linux"
4182 extra_parts
="crtbegin.o crtend.o"
4185 if test x
$enable_threads = xyes
; then
4190 target_cpu_default
="MASK_PA_11"
4191 tmake_file
=pa
/t-openbsd
4194 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4195 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
4196 xm_file
=pa
/xm-papro.h
4200 target_cpu_default
="MASK_PA_11"
4201 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4205 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
4206 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
4207 xm_file
=pa
/xm-papro.h
4211 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
4215 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4216 target_cpu_default
="MASK_PA_11"
4220 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h"
4224 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
4225 xm_file
=pa
/xm-pahpux.h
4226 xmake_file
=pa
/x-pa-hpux
4227 if test x
$gas = xyes
4229 tm_file
="${tm_file} pa/gas.h"
4231 install_headers_dir
=install-headers-cpio
4234 hppa1.0
-*-hpux8.0
[0-2]*)
4235 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4236 xm_file
=pa
/xm-pahpux.h
4237 xmake_file
=pa
/x-pa-hpux
4238 if test x
$gas = xyes
4240 tm_file
="${tm_file} pa/pa-gas.h"
4242 tm_file
="pa/pa-oldas.h ${tm_file}"
4244 install_headers_dir
=install-headers-cpio
4247 hppa1.1
-*-hpux8.0
[0-2]*)
4248 target_cpu_default
="MASK_PA_11"
4249 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4250 xm_file
=pa
/xm-pahpux.h
4251 xmake_file
=pa
/x-pa-hpux
4252 if test x
$gas = xyes
4254 tm_file
="${tm_file} pa/pa-gas.h"
4256 tm_file
="pa/pa-oldas.h ${tm_file}"
4258 install_headers_dir
=install-headers-cpio
4262 target_cpu_default
="MASK_PA_11"
4263 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4264 xm_file
=pa
/xm-pahpux.h
4265 xmake_file
=pa
/x-pa-hpux
4266 if test x
$gas = xyes
4268 tm_file
="${tm_file} pa/pa-gas.h"
4270 install_headers_dir
=install-headers-cpio
4274 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
4275 xm_file
=pa
/xm-pahpux.h
4276 xmake_file
=pa
/x-pa-hpux
4277 if test x
$gas = xyes
4279 tm_file
="${tm_file} pa/pa-gas.h"
4281 install_headers_dir
=install-headers-cpio
4284 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
4285 target_cpu_default
="MASK_PA_11"
4286 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4288 xm_file
=pa
/xm-pahpux.h
4289 xmake_file
=pa
/x-pa-hpux
4291 if test x
$gas = xyes
4293 tm_file
="${tm_file} pa/pa-gas.h"
4295 if test x
$enable_threads = x
; then
4296 enable_threads
=$have_pthread_h
4298 case x
${enable_threads} in
4300 tmake_file
="${tmake_file} pa/t-dce-thr"
4303 install_headers_dir
=install-headers-cpio
4307 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
4309 xm_file
=pa
/xm-pahpux.h
4310 xmake_file
=pa
/x-pa-hpux
4312 if test x
$gas = xyes
4314 tm_file
="${tm_file} pa/pa-gas.h"
4316 if test x
$enable_threads = x
; then
4317 enable_threads
=$have_pthread_h
4319 case x
${enable_threads} in
4321 tmake_file
="${tmake_file} pa/t-dce-thr"
4324 install_headers_dir
=install-headers-cpio
4328 target_cpu_default
="MASK_PA_11"
4329 xm_file
=pa
/xm-pa64hpux.h
4330 xmake_file
=pa
/x-pa-hpux
4332 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"
4334 tmake_file
=pa
/t-pa64
4335 target_cpu_default
="(MASK_PA_11|MASK_PA_20)"
4339 tm_file
="${tm_file} pa/pa-gas.h"
4341 # if [[ x$enable_threads = x ]]; then
4342 # enable_threads=$have_pthread_h
4344 # if [[ x$enable_threads = xyes ]]; then
4346 # tmake_file="${tmake_file} pa/t-dce-thr"
4348 install_headers_dir
=install-headers-cpio
4351 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
4352 target_cpu_default
="MASK_PA_11"
4353 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4355 xm_file
=pa
/xm-pahpux.h
4356 xmake_file
=pa
/x-pa-hpux
4358 if test x
$gas = xyes
4360 tm_file
="${tm_file} pa/pa-gas.h"
4362 # if test x$enable_threads = x; then
4363 # enable_threads=$have_pthread_h
4365 # if test x$enable_threads = xyes; then
4367 # tmake_file="${tmake_file} pa/t-dce-thr"
4369 install_headers_dir
=install-headers-cpio
4373 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
4375 xm_file
=pa
/xm-pahpux.h
4376 xmake_file
=pa
/x-pa-hpux
4377 if test x
$gas = xyes
4379 tm_file
="${tm_file} pa/pa-gas.h"
4381 # if test x$enable_threads = x; then
4382 # enable_threads=$have_pthread_h
4384 # if test x$enable_threads = xyes; then
4386 # tmake_file="${tmake_file} pa/t-dce-thr"
4388 install_headers_dir
=install-headers-cpio
4391 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
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-hpux9.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-hpux9.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
4414 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
4415 target_cpu_default
="MASK_PA_11"
4416 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4417 xm_file
=pa
/xm-pahpux.h
4418 xmake_file
=pa
/x-pa-hpux
4419 if test x
$gas = xyes
4421 tm_file
="${tm_file} pa/pa-gas.h"
4423 install_headers_dir
=install-headers-cpio
4427 tm_file
="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
4428 xm_file
=pa
/xm-pahpux.h
4429 xmake_file
=pa
/x-pa-hpux
4430 if test x
$gas = xyes
4432 tm_file
="${tm_file} pa/pa-gas.h"
4434 install_headers_dir
=install-headers-cpio
4438 tm_file
="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
4439 target_cpu_default
="MASK_PA_11"
4443 tm_file
="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
4444 xm_file
=pa
/xm-pampeix.h
4445 xmake_file
=pa
/x-pa-mpeix
4446 echo "You must use gas. Assuming it is already installed."
4447 install_headers_dir
=install-headers-tar
4450 i370-
*-opened*) # IBM 360/370/390 Architecture
4451 xm_file
=i370
/xm-oe.h
4453 xmake_file
=i370
/x-oe
4454 tmake_file
=i370
/t-oe
4457 xm_file
=i370
/xm-mvs.h
4459 tmake_file
=i370
/t-mvs
4462 xm_file
="xm-linux.h i370/xm-linux.h"
4464 tm_file
="i370/linux.h ${tm_file}"
4465 tmake_file
="t-linux i370/t-linux"
4466 # broken_install=yes
4467 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4468 # extra_parts="crtbegin.o crtend.o"
4472 if test x
$enable_threads = xyes
; then
4477 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
4478 tm_file
=i386
/i386elf.h
4479 tmake_file
=i386
/t-i386elf
4482 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
4483 if test x
$gas = xyes
4485 tm_file
=i386
/aix386.h
4486 extra_parts
="crtbegin.o crtend.o"
4487 tmake_file
=i386
/t-crtstuff
4489 tm_file
=i386
/aix386ng.h
4492 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
4494 xmake_file
=i386
/x-aix
4496 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
4497 xm_file
="xm-alloca.h ${xm_file}"
4498 xm_defines
="USG POSIX SMALL_ARG_MAX"
4499 xmake_file
=i386
/x-ncr3000
4500 if test x
$stabs = xyes
-a x
$gas = xyes
4502 tm_file
=i386
/sysv4gdb.h
4504 tm_file
=i386
/sysv4.h
4506 extra_parts
="crtbegin.o crtend.o"
4507 tmake_file
=i386
/t-crtpic
4511 xm_file
=i386
/xm-next.h
4512 tmake_file
=i386
/t-next
4513 xmake_file
=i386
/x-next
4514 extra_objs
=nextstep.o
4515 extra_parts
="crtbegin.o crtend.o"
4516 if test x
$enable_threads = xyes
; then
4520 i
[34567]86-*-netware) # Intel 80386's running netware
4521 tm_file
=i386
/netware.h
4522 tmake_file
=i386
/t-netware
4524 i
[34567]86-sequent-bsd*) # 80386 from Sequent
4526 if test x
$gas = xyes
4528 tm_file
=i386
/seq-gas.h
4530 tm_file
=i386
/sequent.h
4533 i
[34567]86-sequent-ptx1*)
4534 xm_defines
="USG SVR3"
4535 xmake_file
=i386
/x-sysv3
4536 tm_file
=i386
/seq-sysv3.h
4537 tmake_file
=i386
/t-crtstuff
4538 extra_parts
="crtbegin.o crtend.o"
4539 install_headers_dir
=install-headers-cpio
4541 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4542 xm_defines
="USG SVR3"
4543 xmake_file
=i386
/x-sysv3
4544 tm_file
=i386
/seq2-sysv3.h
4545 tmake_file
=i386
/t-crtstuff
4546 extra_parts
="crtbegin.o crtend.o"
4547 install_headers_dir
=install-headers-cpio
4549 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4550 xm_file
="xm-alloca.h ${xm_file}"
4551 xm_defines
="USG POSIX SMALL_ARG_MAX"
4553 tm_file
=i386
/ptx4-i.h
4555 extra_parts
="crtbegin.o crtend.o"
4556 install_headers_dir
=install-headers-cpio
4558 i386-sun-sunos
*) # Sun i386 roadrunner
4563 i
[34567]86-wrs-vxworks*)
4564 tm_file
=i386
/vxi386.h
4565 tmake_file
=i386
/t-i386bare
4566 thread_file
='vxworks'
4569 tm_file
=i386
/i386-aout.h
4570 tmake_file
=i386
/t-i386bare
4572 i
[34567]86-*-beoself* | i
[34567]86-*-beos*)
4573 xm_file
=i386
/xm-beos.h
4574 tmake_file
='i386/t-beos i386/t-crtpic'
4575 tm_file
=i386
/beos-elf.h
4576 xmake_file
=i386
/x-beos
4577 extra_parts
='crtbegin.o crtend.o'
4579 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4580 tm_file
=i386
/bsd386.h
4581 # tmake_file=t-libc-ok
4584 tm_file
=i386
/386bsd.h
4585 # tmake_file=t-libc-ok
4586 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4589 i
[34567]86-*-freebsd[12] | i
[34567]86-*-freebsd[12].
* | i
[34567]86-*-freebsd*aout
*)
4590 tm_file
="i386/freebsd-aout.h i386/perform.h"
4591 tmake_file
=t-freebsd
4593 i
[34567]86-*-freebsd*)
4594 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
4595 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4596 tmake_file
=t-freebsd
4600 case x
${enable_threads} in
4601 xyes | xpthreads | xposix
)
4603 tmake_file
="${tmake_file} t-freebsd-thread"
4607 i
[34567]86-*-netbsd*)
4608 tm_file
=i386
/netbsd.h
4612 i
[34567]86-*-openbsd*)
4613 # we need collect2 until our bug is fixed...
4617 tm_file
=i386
/i386-coff.h
4618 tmake_file
=i386
/t-i386bare
4620 i
[34567]86-*-isc*) # 80386 running ISC system
4621 xm_file
="${xm_file} i386/xm-isc.h"
4622 xm_defines
="USG SVR3"
4624 i
[34567]86-*-isc[34]*)
4625 xmake_file
=i386
/x-isc3
4628 xmake_file
=i386
/x-isc
4631 if test x
$gas = xyes
-a x
$stabs = xyes
4633 tm_file
=i386
/iscdbx.h
4634 tmake_file
=i386
/t-svr3dbx
4635 extra_parts
="svr3.ifile svr3z.ifile"
4637 tm_file
=i386
/isccoff.h
4638 tmake_file
=i386
/t-crtstuff
4639 extra_parts
="crtbegin.o crtend.o"
4641 tmake_file
="$tmake_file i386/t-i386bare"
4642 install_headers_dir
=install-headers-cpio
4644 i
[34567]86-*-linux*oldld
*) # Intel 80386's running GNU/Linux
4646 xmake_file
=x-linux-aout
4647 tmake_file
="t-linux-aout i386/t-crtstuff"
4648 tm_file
=i386
/linux-oldld.h
4652 i
[34567]86-*-linux*aout
*) # Intel 80386's running GNU/Linux
4653 xmake_file
=x-linux-aout
4654 tmake_file
="t-linux-aout i386/t-crtstuff"
4655 tm_file
=i386
/linux-aout.h
4659 i
[34567]86-*-linux*libc1
) # Intel 80386's running GNU/Linux
4660 # GNU/Linux C library 5
4662 tm_file
=i386
/linux.h
4663 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4664 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4667 if test x
$enable_threads = xyes
; then
4668 thread_file
='single'
4671 i
[34567]86-*-linux*) # Intel 80386's running GNU/Linux
4672 # aka GNU/Linux C library 6
4674 tm_file
=i386
/linux.h
4675 tmake_file
="t-linux i386/t-crtstuff"
4676 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4679 if test x
$enable_threads = xyes
; then
4686 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4687 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4690 i
[34567]86-pc-msdosdjgpp*)
4691 xm_file
=i386
/xm-djgpp.h
4692 tm_file
=i386
/djgpp.h
4693 tmake_file
=i386
/t-djgpp
4694 xmake_file
=i386
/x-djgpp
4699 case $host in *pc-msdosdjgpp
*)
4704 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4706 tmake_file
=t-libc-ok
4710 i
[34567]86-*-lynxos*)
4711 if test x
$gas = xyes
4715 tm_file
=i386
/lynx-ng.h
4717 xm_file
=i386
/xm-lynx.h
4718 tmake_file
=i386
/t-i386bare
4723 # tmake_file=t-libc-ok
4726 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4727 if test x
$elf = xyes
4729 tm_file
=i386
/osfelf.h
4732 tm_file
=i386
/osfrose.h
4735 xm_file
="i386/xm-osf.h ${xm_file}"
4736 xmake_file
=i386
/x-osfrose
4737 tmake_file
=i386
/t-osf
4738 extra_objs
=halfpic.o
4740 i
[34567]86-go32-rtems*)
4742 xm_file
=i386
/xm-go32.h
4743 tm_file
=i386
/go32-rtems.h
4744 tmake_file
="i386/t-go32 t-rtems"
4746 i
[34567]86-*-rtemscoff*)
4748 tm_file
=i386
/rtems.h
4749 tmake_file
="i386/t-i386bare t-rtems"
4751 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4753 tm_file
=i386
/rtemself.h
4754 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4755 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4757 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4758 xm_file
="xm-alloca.h ${xm_file} i386/xm-sco5.h"
4759 xm_defines
="USG SVR3"
4760 xmake_file
=i386
/x-sco5
4761 install_headers_dir
=install-headers-cpio
4763 if test x
$gas = xyes
4765 tm_file
="i386/sco5gas.h ${tm_file}"
4766 tmake_file
=i386
/t-sco5gas
4768 tmake_file
=i386
/t-sco5
4770 tmake_file
="$tmake_file i386/t-i386bare"
4771 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4773 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4774 xm_file
="${xm_file} i386/xm-sco.h"
4775 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
4776 xmake_file
=i386
/x-sco4
4777 install_headers_dir
=install-headers-cpio
4778 if test x
$stabs = xyes
4780 tm_file
=i386
/sco4dbx.h
4781 tmake_file
=i386
/t-svr3dbx
4782 extra_parts
="svr3.ifile svr3z.rfile"
4785 tmake_file
=i386
/t-crtstuff
4786 extra_parts
="crtbegin.o crtend.o"
4788 tmake_file
="$tmake_file i386/t-i386bare"
4789 # The default EAFS filesystem supports long file names.
4790 # Truncating the target makes $host != $target which
4791 # makes gcc think it is doing a cross-compile.
4792 # truncate_target=yes
4794 i
[34567]86-*-sco*) # 80386 running SCO system
4795 xm_file
=i386
/xm-sco.h
4796 xmake_file
=i386
/x-sco
4797 install_headers_dir
=install-headers-cpio
4798 if test x
$stabs = xyes
4800 tm_file
=i386
/scodbx.h
4801 tmake_file
=i386
/t-svr3dbx
4802 extra_parts
="svr3.ifile svr3z.rfile"
4805 extra_parts
="crtbegin.o crtend.o"
4806 tmake_file
=i386
/t-crtstuff
4808 tmake_file
="$tmake_file i386/t-i386bare"
4811 i
[34567]86-*-solaris2*)
4812 xm_file
="xm-alloca.h ${xm_file}"
4813 xm_defines
="USG POSIX SMALL_ARG_MAX"
4815 if test x
$gas = xyes
; then
4816 # Only needed if gas does not support -s
4817 tm_file
="i386/sol2gas.h ${tm_file}"
4819 tmake_file
="i386/t-i386bare i386/t-sol2"
4820 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4822 if test x
${enable_threads} = x
; then
4823 enable_threads
=$have_pthread_h
4824 if test x
${enable_threads} = x
; then
4825 enable_threads
=$have_thread_h
4828 if test x
${enable_threads} = xyes
; then
4829 if test x
${have_pthread_h} = xyes
; then
4832 thread_file
='solaris'
4836 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4837 xm_file
="xm-alloca.h ${xm_file}"
4838 xm_defines
="USG POSIX"
4839 tm_file
=i386
/sysv5.h
4840 if test x
$stabs = xyes
4842 tm_file
="${tm_file} dbx.h"
4844 tmake_file
="i386/t-i386bare i386/t-crtpic"
4846 extra_parts
="crtbegin.o crtend.o"
4847 if test x
$enable_threads = xyes
; then
4851 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4852 xm_file
="xm-alloca.h ${xm_file}"
4853 xm_defines
="USG POSIX SMALL_ARG_MAX"
4854 tm_file
=i386
/sysv4.h
4855 if test x
$stabs = xyes
4857 tm_file
="${tm_file} dbx.h"
4859 tmake_file
="i386/t-i386bare i386/t-crtpic"
4861 extra_parts
="crtbegin.o crtend.o"
4863 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4864 xm_file
="xm-alloca.h ${xm_file}"
4865 xm_defines
="USG POSIX"
4867 tmake_file
="i386/t-i386bare i386/t-crtpic i386/t-udk"
4869 extra_parts
="crtbegin.o crtend.o"
4870 install_headers_dir
=install-headers-cpio
4872 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4874 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4875 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4876 if test x
$stabs = xyes
4878 tm_file
=i386
/osf1elfgdb.h
4880 tm_file
=i386
/osf1elf.h
4882 tmake_file
=i386
/t-osf1elf
4883 xmake_file
=i386
/x-osf1elf
4884 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4886 i
[34567]86-*-sysv*) # Intel 80386's running system V
4887 xm_defines
="USG SVR3"
4888 xmake_file
=i386
/x-sysv3
4889 if test x
$gas = xyes
4891 if test x
$stabs = xyes
4893 tm_file
=i386
/svr3dbx.h
4894 tmake_file
=i386
/t-svr3dbx
4895 extra_parts
="svr3.ifile svr3z.rfile"
4897 tm_file
=i386
/svr3gas.h
4898 extra_parts
="crtbegin.o crtend.o"
4899 tmake_file
=i386
/t-crtstuff
4902 tm_file
=i386
/sysv3.h
4903 extra_parts
="crtbegin.o crtend.o"
4904 tmake_file
=i386
/t-crtstuff
4906 tmake_file
="$tmake_file i386/t-crtpic"
4908 i386-
*-vsta) # Intel 80386's running VSTa kernel
4909 xm_file
="${xm_file} i386/xm-vsta.h"
4911 tmake_file
=i386
/t-vsta
4912 xmake_file
=i386
/x-vsta
4915 xm_file
="${xm_file} i386/xm-cygwin.h"
4916 tmake_file
=i386
/t-cygwin
4917 tm_file
=i386
/win32.h
4918 xmake_file
=i386
/x-cygwin
4920 if test x
$enable_threads = xyes
; then
4925 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4926 xm_file
="${xm_file} i386/xm-cygwin.h"
4927 tmake_file
=i386
/t-cygwin
4928 tm_file
=i386
/cygwin.h
4929 xmake_file
=i386
/x-cygwin
4931 if test x
$enable_threads = xyes
; then
4936 i
[34567]86-*-mingw32*)
4937 tm_file
=i386
/mingw32.h
4938 xm_file
="${xm_file} i386/xm-mingw32.h"
4939 tmake_file
="i386/t-cygwin i386/t-mingw32"
4941 xmake_file
=i386
/x-cygwin
4942 if test x
$enable_threads = xyes
; then
4949 *minwg32crt
* |
*mingw32
*)
4950 tm_file
="${tm_file} i386/crtdll.h"
4956 xm_file
="${xm_file} i386/xm-uwin.h"
4957 xm_defines
="USG NO_STAB_H"
4958 tmake_file
="i386/t-cygwin i386/t-uwin"
4960 xmake_file
=i386
/x-cygwin
4961 if test x
$enable_threads = xyes
; then
4966 i
[34567]86-*-interix*)
4967 tm_file
="i386/i386-interix.h interix.h"
4968 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4970 tmake_file
="i386/t-interix"
4971 extra_objs
=interix.o
4972 xmake_file
=x-interix
4973 if test x
$enable_threads = xyes
; then
4976 if test x
$stabs = xyes
; then
4977 tm_file
="${tm_file} dbxcoff.h"
4980 i
[34567]86-*-winnt3*)
4981 tm_file
=i386
/win-nt.h
4982 out_file
=i386
/i386.c
4983 xm_file
="xm-winnt.h ${xm_file}"
4984 xmake_file
=winnt
/x-winnt
4985 tmake_file
=i386
/t-winnt
4986 extra_host_objs
="winnt.o oldnames.o"
4987 extra_gcc_objs
="spawnv.o oldnames.o"
4988 if test x
$gnu_ld != xyes
4990 extra_programs
=ld.exe
4992 if test x
$enable_threads = xyes
; then
4996 i
[34567]86-dg-dgux*)
4997 xm_file
="xm-alloca.h ${xm_file}"
4998 xm_defines
="USG POSIX"
4999 out_file
=i386
/dgux.c
5001 tmake_file
=i386
/t-dgux
5002 xmake_file
=i386
/x-dgux
5003 install_headers_dir
=install-headers-cpio
5005 i860-alliant-
*) # Alliant FX/2800
5006 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
5007 xm_file
="${xm_file}"
5008 xmake_file
=i860
/x-fx2800
5009 tmake_file
=i860
/t-fx2800
5010 extra_parts
="crtbegin.o crtend.o"
5013 tm_file
="${tm_file} i860/bsd.h"
5014 if test x
$gas = xyes
5016 tm_file
="${tm_file} i860/bsd-gas.h"
5021 tm_file
="${tm_file} i860/mach.h"
5022 tmake_file
=t-libc-ok
5024 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
5025 tm_file
="${tm_file} svr3.h i860/paragon.h"
5026 xm_defines
="USG SVR3"
5030 tm_file
="${tm_file} svr3.h i860/sysv3.h"
5031 xm_defines
="USG SVR3"
5032 xmake_file
=i860
/x-sysv3
5033 extra_parts
="crtbegin.o crtend.o"
5036 tm_file
="${tm_file} svr4.h i860/sysv4.h"
5037 xm_defines
="USG SVR3"
5038 xmake_file
=i860
/x-sysv4
5040 extra_parts
="crtbegin.o crtend.o"
5042 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
5043 tm_file
="${tm_file} i960/vx960.h"
5044 tmake_file
=i960
/t-vxworks960
5046 thread_file
='vxworks'
5048 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
5049 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
5050 tmake_file
=i960
/t-vxworks960
5052 thread_file
='vxworks'
5055 tm_file
="${tm_file} i960/vx960.h"
5056 tmake_file
=i960
/t-vxworks960
5058 thread_file
='vxworks'
5061 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
5062 tmake_file
=i960
/t-960bare
5066 tmake_file
="i960/t-960bare t-rtems"
5067 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
5070 i960-
*-*) # Default i960 environment.
5075 tmake_file
="ia64/t-ia64"
5076 target_cpu_default
="0"
5077 if test x
$gas = xyes
5079 target_cpu_default
="${target_cpu_default}|MASK_GNU_AS"
5081 if test x
$gnu_ld = xyes
5083 target_cpu_default
="${target_cpu_default}|MASK_GNU_LD"
5088 tm_file
=ia64
/linux.h
5089 tmake_file
="t-linux ia64/t-ia64 ia64/t-glibc"
5090 target_cpu_default
="MASK_GNU_AS|MASK_GNU_LD"
5091 if test x
$enable_threads = xyes
; then
5097 extra_parts
="crtinit.o crtfini.o"
5099 # m68hc11 and m68hc12 share the same machine description.
5100 m68hc11-
*-*|m6811-
*-*)
5101 tm_file
="m68hc11/m68hc11.h"
5102 xm_file
="m68hc11/xm-m68hc11.h"
5103 tm_p_file
="m68hc11/m68hc11-protos.h"
5104 md_file
="m68hc11/m68hc11.md"
5105 out_file
="m68hc11/m68hc11.c"
5106 tmake_file
="m68hc11/t-m68hc11-gas"
5108 m68hc12-
*-*|m6812-
*-*)
5109 tm_file
="m68hc11/m68hc12.h"
5110 tm_p_file
="m68hc11/m68hc11-protos.h"
5111 xm_file
="m68hc11/xm-m68hc11.h"
5112 md_file
="m68hc11/m68hc11.md"
5113 out_file
="m68hc11/m68hc11.c"
5114 tmake_file
="m68hc11/t-m68hc11-gas"
5116 m68000-convergent-sysv
*)
5118 xm_file
="m68k/xm-3b1.h ${xm_file}"
5121 extra_headers
=math-68881.h
5123 m68000-hp-bsd
*) # HP 9000/200 running BSD
5124 tm_file
=m68k
/hp2bsd.h
5125 xmake_file
=m68k
/x-hp2bsd
5127 extra_headers
=math-68881.h
5129 m68000-hp-hpux
*) # HP 9000 series 300
5130 xm_file
="xm-alloca.h ${xm_file}"
5132 if test x
$gas = xyes
5134 xmake_file
=m68k
/x-hp320g
5135 tm_file
=m68k
/hp310g.h
5137 xmake_file
=m68k
/x-hp320
5138 tm_file
=m68k
/hp310.h
5140 install_headers_dir
=install-headers-cpio
5142 extra_headers
=math-68881.h
5147 extra_headers
=math-68881.h
5150 tm_file
=m68k
/sun2o4.h
5152 extra_headers
=math-68881.h
5155 xm_file
="m68k/xm-3b1.h ${xm_file}"
5157 if test x
$gas = xyes
5164 extra_headers
=math-68881.h
5166 m68k-apple-aux
*) # Apple Macintosh running A/UX
5167 xm_defines
="USG AUX"
5168 tmake_file
=m68k
/t-aux
5169 install_headers_dir
=install-headers-cpio
5170 extra_headers
=math-68881.h
5171 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
5173 if test "$gnu_ld" = yes
5175 tm_file
="${tm_file} m68k/auxgld.h"
5177 tm_file
="${tm_file} m68k/auxld.h"
5179 if test "$gas" = yes
5181 tm_file
="${tm_file} m68k/auxgas.h"
5183 tm_file
="${tm_file} m68k/auxas.h"
5185 tm_file
="${tm_file} m68k/a-ux.h"
5189 tm_file
=m68k
/apollo68.h
5190 xmake_file
=m68k
/x-apollo68
5192 extra_headers
=math-68881.h
5195 m68k-altos-sysv
*) # Altos 3068
5196 if test x
$gas = xyes
5198 tm_file
=m68k
/altos3068.h
5201 echo "The Altos is supported only with the GNU assembler" 1>&2
5204 extra_headers
=math-68881.h
5206 m68k-bull-sysv
*) # Bull DPX/2
5207 if test x
$gas = xyes
5209 if test x
$stabs = xyes
5211 tm_file
=m68k
/dpx2cdbx.h
5213 tm_file
=m68k
/dpx2g.h
5218 xm_file
="xm-alloca.h ${xm_file}"
5220 xmake_file
=m68k
/x-dpx2
5222 extra_headers
=math-68881.h
5224 m68k-atari-sysv4
*) # Atari variant of V.4.
5225 tm_file
=m68k
/atari.h
5226 xm_file
="xm-alloca.h ${xm_file}"
5227 xm_defines
="USG FULL_PROTOTYPES"
5229 extra_parts
="crtbegin.o crtend.o"
5230 extra_headers
=math-68881.h
5233 m68k-motorola-sysv
*)
5234 tm_file
=m68k
/mot3300.h
5235 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
5236 if test x
$gas = xyes
5238 xmake_file
=m68k
/x-mot3300-gas
5239 if test x
$gnu_ld = xyes
5241 tmake_file
=m68k
/t-mot3300-gald
5243 tmake_file
=m68k
/t-mot3300-gas
5247 xmake_file
=m68k
/x-mot3300
5248 if test x
$gnu_ld = xyes
5250 tmake_file
=m68k
/t-mot3300-gld
5252 tmake_file
=m68k
/t-mot3300
5256 gdb_needs_out_file_path
=yes
5257 extra_parts
="crt0.o mcrt0.o"
5258 extra_headers
=math-68881.h
5261 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
5262 tm_file
=m68k
/tower-as.h
5263 xm_defines
="USG SVR3"
5264 xmake_file
=m68k
/x-tower
5265 extra_parts
="crtbegin.o crtend.o"
5266 extra_headers
=math-68881.h
5269 tm_file
=m68k
/plexus.h
5270 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
5273 extra_headers
=math-68881.h
5277 xm_file
="xm-alloca.h ${xm_file}"
5279 extra_headers
=math-68881.h
5282 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
5283 xm_defines
="USG unos"
5284 xmake_file
=m68k
/x-crds
5287 extra_headers
=math-68881.h
5289 m68k-cbm-sysv4
*) # Commodore variant of V.4.
5291 xm_file
="xm-alloca.h ${xm_file}"
5292 xm_defines
="USG FULL_PROTOTYPES"
5293 xmake_file
=m68k
/x-amix
5295 extra_parts
="crtbegin.o crtend.o"
5296 extra_headers
=math-68881.h
5300 tm_file
=m68k
/ccur-GAS.h
5301 xmake_file
=m68k
/x-ccur
5302 extra_headers
=math-68881.h
5306 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
5307 tm_file
=m68k
/hp3bsd44.h
5308 xmake_file
=m68k
/x-hp3bsd44
5310 extra_headers
=math-68881.h
5313 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
5314 tm_file
=m68k
/hp3bsd.h
5316 extra_headers
=math-68881.h
5320 if test x
$with_fp = xno
5322 tm_file
=m68k
/isi-nfp.h
5328 extra_headers
=math-68881.h
5330 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
5331 xm_file
="xm-alloca.h ${xm_file}"
5333 if test x
$gas = xyes
5335 xmake_file
=m68k
/x-hp320g
5336 tm_file
=m68k
/hp320g.h
5338 xmake_file
=m68k
/x-hp320
5339 tm_file
=m68k
/hpux7.h
5341 install_headers_dir
=install-headers-cpio
5343 extra_headers
=math-68881.h
5346 m68k-hp-hpux
*) # HP 9000 series 300
5347 xm_file
="xm-alloca.h ${xm_file}"
5349 if test x
$gas = xyes
5351 xmake_file
=m68k
/x-hp320g
5352 tm_file
=m68k
/hp320g.h
5354 xmake_file
=m68k
/x-hp320
5355 tm_file
=m68k
/hp320.h
5357 install_headers_dir
=install-headers-cpio
5359 extra_headers
=math-68881.h
5363 tm_file
=m68k
/sun3mach.h
5365 extra_headers
=math-68881.h
5369 if test x
$gas = xyes
5371 tm_file
=m68k
/news3gas.h
5373 tm_file
=m68k
/news3.h
5376 extra_headers
=math-68881.h
5379 m68k-sony-bsd
* | m68k-sony-newsos
*)
5380 if test x
$gas = xyes
5382 tm_file
=m68k
/newsgas.h
5387 extra_headers
=math-68881.h
5390 m68k-next-nextstep2
*)
5391 tm_file
=m68k
/next21.h
5392 xm_file
="m68k/xm-next.h ${xm_file}"
5393 tmake_file
=m68k
/t-next
5394 xmake_file
=m68k
/x-next
5395 extra_objs
=nextstep.o
5396 extra_headers
=math-68881.h
5400 m68k-next-nextstep
[34]*)
5402 xm_file
="m68k/xm-next.h ${xm_file}"
5403 tmake_file
=m68k
/t-next
5404 xmake_file
=m68k
/x-next
5405 extra_objs
=nextstep.o
5406 extra_parts
="crtbegin.o crtend.o"
5407 extra_headers
=math-68881.h
5409 if test x
$enable_threads = xyes
; then
5414 if test x
$with_fp = xno
5416 tm_file
=m68k
/sun3n3.h
5418 tm_file
=m68k
/sun3o3.h
5422 extra_headers
=math-68881.h
5424 m68k-sun-sunos
*) # For SunOS 4 (the default).
5425 if test x
$with_fp = xno
5427 tm_file
=m68k
/sun3n.h
5433 extra_headers
=math-68881.h
5436 tm_file
=m68k
/vxm68k.h
5437 tmake_file
=m68k
/t-vxworks68
5438 extra_headers
=math-68881.h
5439 thread_file
='vxworks'
5443 tmake_file
=m68k
/t-m68kbare
5444 tm_file
="m68k/m68k-aout.h libgloss.h"
5445 extra_headers
=math-68881.h
5449 tmake_file
=m68k
/t-m68kbare
5450 tm_file
="m68k/m68k-coff.h dbx.h"
5451 extra_headers
=math-68881.h
5454 m68020-
*-elf* | m68k-
*-elf*)
5455 tm_file
="m68k/m68020-elf.h"
5456 xm_file
=m68k
/xm-m68kv.h
5457 tmake_file
=m68k
/t-m68kelf
5458 header_files
=math-68881.h
5461 if test x
$gas = xyes
5465 tm_file
=m68k
/lynx-ng.h
5467 xm_file
=m68k
/xm-lynx.h
5469 tmake_file
=m68k
/t-lynx
5470 extra_headers
=math-68881.h
5474 tm_file
=m68k
/netbsd.h
5481 # we need collect2 until our bug is fixed...
5484 m68k-
*-sysv3*) # Motorola m68k's running system V.3
5485 xm_file
="xm-alloca.h ${xm_file}"
5487 xmake_file
=m68k
/x-m68kv
5488 extra_parts
="crtbegin.o crtend.o"
5489 extra_headers
=math-68881.h
5492 m68k-
*-sysv4*) # Motorola m68k's running system V.4
5493 tm_file
=m68k
/m68kv4.h
5494 xm_file
="xm-alloca.h ${xm_file}"
5497 extra_parts
="crtbegin.o crtend.o"
5498 extra_headers
=math-68881.h
5501 m68k-
*-linux*aout
*) # Motorola m68k's running GNU/Linux
5504 tm_file
=m68k
/linux-aout.h
5505 tmake_file
="t-linux-aout m68k/t-linux-aout"
5506 extra_headers
=math-68881.h
5510 m68k-
*-linux*libc1
) # Motorola m68k's running GNU/Linux
5511 # with ELF format using the
5512 # GNU/Linux C library 5
5514 tm_file
=m68k
/linux.h
5515 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
5516 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5517 extra_headers
=math-68881.h
5521 m68k-
*-linux*) # Motorola m68k's running GNU/Linux
5522 # with ELF format using glibc 2
5523 # aka the GNU/Linux C library 6.
5525 tm_file
=m68k
/linux.h
5526 tmake_file
="t-linux m68k/t-linux"
5527 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5528 extra_headers
=math-68881.h
5531 if test x
$enable_threads = xyes
; then
5536 tmake_file
=m68k
/t-m68kbare
5537 tm_file
=m68k
/m68k-psos.h
5538 extra_headers
=math-68881.h
5542 tmake_file
="m68k/t-m68kbare t-rtems"
5543 tm_file
=m68k
/rtems.h
5544 extra_headers
=math-68881.h
5547 m68k-
*-rtemself*|m68k-
*-rtems*)
5548 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
5549 tm_file
=m68k
/rtemself.h
5550 extra_headers
=math-68881.h
5556 tm_file
=m88k
/dguxbcs.h
5557 tmake_file
=m88k
/t-dguxbcs
5561 tmake_file
=m88k
/t-dgux
5564 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
5565 xmake_file
=m88k
/x-dgux
5566 if test x
$gas = xyes
5568 tmake_file
=m88k
/t-dgux-gas
5571 m88k-dolphin-sysv3
*)
5572 tm_file
=m88k
/dolph.h
5573 extra_parts
="crtbegin.o crtend.o"
5574 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5575 xmake_file
=m88k
/x-dolph
5576 if test x
$gas = xyes
5578 tmake_file
=m88k
/t-m88k-gas
5581 m88k-tektronix-sysv3
)
5582 tm_file
=m88k
/tekXD88.h
5583 extra_parts
="crtbegin.o crtend.o"
5584 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5585 xmake_file
=m88k
/x-tekXD88
5586 if test x
$gas = xyes
5588 tmake_file
=m88k
/t-m88k-gas
5592 tm_file
=m88k
/m88k-aout.h
5595 tm_file
=m88k
/m88k-coff.h
5596 tmake_file
=m88k
/t-bug
5600 extra_parts
="crtbegin.o crtend.o"
5601 if test x
$gas = xyes
5603 tmake_file
=m88k
/t-luna-gas
5605 tmake_file
=m88k
/t-luna
5609 tmake_file
="${tmake_file} m88k/t-luna-gas"
5610 tm_file
="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
5611 xm_file
="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
5614 tm_file
=m88k
/sysv3.h
5615 extra_parts
="crtbegin.o crtend.o"
5616 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5617 xmake_file
=m88k
/x-sysv3
5618 if test x
$gas = xyes
5620 tmake_file
=m88k
/t-m88k-gas
5624 tm_file
=m88k
/sysv4.h
5625 extra_parts
="crtbegin.o crtend.o"
5626 xmake_file
=m88k
/x-sysv4
5627 tmake_file
=m88k
/t-sysv4
5630 tm_file
=mcore
/mcore-elf.h
5631 tmake_file
=mcore
/t-mcore
5634 tm_file
=mcore
/mcore-pe.h
5635 tmake_file
=mcore
/t-mcore-pe
5637 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5638 if test "x$gnu_ld" = xyes
5640 tm_file
="mips/iris6.h mips/iris6gld.h"
5642 tm_file
=mips
/iris6.h
5644 tmake_file
=mips
/t-iris6
5645 xm_file
=mips
/xm-iris6.h
5646 xmake_file
=mips
/x-iris6
5647 # if test x$enable_threads = xyes; then
5648 # thread_file='irix'
5652 tm_file
="mips/elf.h mips/vxworks.h"
5653 tmake_file
=mips
/t-ecoff
5656 extra_parts
="crtbegin.o crtend.o"
5657 thread_file
='vxworks'
5659 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5660 tm_file
="mips/iris6.h mips/cross64.h"
5662 xm_file
="mips/xm-iris5.h"
5663 xmake_file
=mips
/x-iris
5664 tmake_file
=mips
/t-cross64
5665 # See comment in mips/iris[56].h files.
5667 # if test x$enable_threads = xyes; then
5668 # thread_file='irix'
5672 if test x
$gas = xyes
5674 if test x
$stabs = xyes
5676 tm_file
=mips
/iris5gdb.h
5678 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5681 tm_file
=mips
/sni-svr4.h
5684 xmake_file
=mips
/x-sni-svr4
5685 tmake_file
=mips
/t-mips-gas
5686 if test x
$gnu_ld != xyes
5691 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5692 if test x
$gas = xyes
5694 tm_file
="mips/iris5.h mips/iris5gas.h"
5695 if test x
$stabs = xyes
5697 tm_file
="${tm_file} dbx.h"
5700 tm_file
=mips
/iris5.h
5703 xm_file
="mips/xm-iris5.h"
5704 xmake_file
=mips
/x-iris
5705 # mips-tfile doesn't work yet
5706 tmake_file
=mips
/t-mips-gas
5707 # See comment in mips/iris5.h file.
5709 # if test x$enable_threads = xyes; then
5710 # thread_file='irix'
5713 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5714 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5715 if test x
$stabs = xyes
; then
5716 tm_file
="${tm_file} dbx.h"
5719 xmake_file
=mips
/x-iris
5720 if test x
$gas = xyes
5722 tmake_file
=mips
/t-mips-gas
5724 extra_passes
="mips-tfile mips-tdump"
5726 if test x
$gnu_ld != xyes
5730 # if test x$enable_threads = xyes; then
5731 # thread_file='irix'
5734 mips-sgi-irix4
*) # Mostly like a MIPS.
5735 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5736 if test x
$stabs = xyes
; then
5737 tm_file
="${tm_file} dbx.h"
5740 xmake_file
=mips
/x-iris
5741 if test x
$gas = xyes
5743 tmake_file
=mips
/t-mips-gas
5745 extra_passes
="mips-tfile mips-tdump"
5747 if test x
$gnu_ld != xyes
5751 # if test x$enable_threads = xyes; then
5752 # thread_file='irix'
5755 mips-sgi-
*) # Mostly like a MIPS.
5756 tm_file
="mips/iris3.h ${tm_file}"
5757 if test x
$stabs = xyes
; then
5758 tm_file
="${tm_file} dbx.h"
5761 xmake_file
=mips
/x-iris3
5762 if test x
$gas = xyes
5764 tmake_file
=mips
/t-mips-gas
5766 extra_passes
="mips-tfile mips-tdump"
5768 if test x
$gnu_ld != xyes
5773 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5774 tm_file
="mips/osfrose.h ${tm_file}"
5775 xmake_file
=mips
/x-osfrose
5776 tmake_file
=mips
/t-osfrose
5777 extra_objs
=halfpic.o
5780 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5781 tm_file
=mips
/dec-osf1.h
5782 if test x
$stabs = xyes
; then
5783 tm_file
="${tm_file} dbx.h"
5785 xmake_file
=mips
/x-dec-osf1
5786 if test x
$gas = xyes
5788 tmake_file
=mips
/t-mips-gas
5790 tmake_file
=mips
/t-ultrix
5791 extra_passes
="mips-tfile mips-tdump"
5793 if test x
$gnu_ld != xyes
5798 mips-dec-bsd
*) # Decstation running 4.4 BSD
5799 tm_file
=mips
/dec-bsd.h
5800 if test x
$gas = xyes
5802 tmake_file
=mips
/t-mips-gas
5804 tmake_file
=mips
/t-ultrix
5805 extra_passes
="mips-tfile mips-tdump"
5807 if test x
$gnu_ld != xyes
5812 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5813 tm_file
=mips
/netbsd.h
5814 # On NetBSD, the headers are already okay, except for math.h.
5817 mips
*-*-linux*) # Linux MIPS, either endian.
5820 mips
*el-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5821 *) tm_file
="mips/elf.h mips/linux.h" ;;
5824 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5827 if test x
$enable_threads = xyes
; then
5831 mips
*el-
*-openbsd*) # mips little endian
5832 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5834 mips
*-*-openbsd*) # mips big endian
5835 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5836 tm_file
="mips/openbsd-be.h ${tm_file}"
5838 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5839 tm_file
="mips/news4.h ${tm_file}"
5840 if test x
$stabs = xyes
; then
5841 tm_file
="${tm_file} dbx.h"
5843 if test x
$gas = xyes
5845 tmake_file
=mips
/t-mips-gas
5847 extra_passes
="mips-tfile mips-tdump"
5849 if test x
$gnu_ld != xyes
5853 xmake_file
=mips
/x-sony
5855 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5856 # That is based on svr4.
5857 # t-svr4 is not right because this system doesn't use ELF.
5858 tm_file
="mips/news5.h ${tm_file}"
5859 if test x
$stabs = xyes
; then
5860 tm_file
="${tm_file} dbx.h"
5863 if test x
$gas = xyes
5865 tmake_file
=mips
/t-mips-gas
5867 extra_passes
="mips-tfile mips-tdump"
5869 if test x
$gnu_ld != xyes
5874 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5875 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5876 if test x
$stabs = xyes
; then
5877 tm_file
="${tm_file} dbx.h"
5880 xmake_file
=mips
/x-sysv
5881 if test x
$gas = xyes
5883 tmake_file
=mips
/t-mips-gas
5884 extra_parts
="crtbegin.o crtend.o"
5886 tmake_file
=mips
/t-mips
5887 extra_passes
="mips-tfile mips-tdump"
5889 if test x
$gnu_ld != xyes
5894 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5895 tm_file
="mips/ultrix.h ${tm_file}"
5896 if test x
$stabs = xyes
; then
5897 tm_file
="${tm_file} dbx.h"
5899 xmake_file
=mips
/x-ultrix
5900 if test x
$gas = xyes
5902 tmake_file
=mips
/t-mips-gas
5904 tmake_file
=mips
/t-ultrix
5905 extra_passes
="mips-tfile mips-tdump"
5907 if test x
$gnu_ld != xyes
5912 mips-
*-riscos[56789]bsd
*)
5913 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5914 if test x
$stabs = xyes
; then
5915 tm_file
="${tm_file} dbx.h"
5917 if test x
$gas = xyes
5919 tmake_file
=mips
/t-bsd-gas
5921 tmake_file
=mips
/t-bsd
5922 extra_passes
="mips-tfile mips-tdump"
5924 if test x
$gnu_ld != xyes
5929 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5930 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5931 if test x
$stabs = xyes
; then
5932 tm_file
="${tm_file} dbx.h"
5934 if test x
$gas = xyes
5936 tmake_file
=mips
/t-bsd-gas
5938 tmake_file
=mips
/t-bsd
5939 extra_passes
="mips-tfile mips-tdump"
5941 if test x
$gnu_ld != xyes
5946 mips-
*-riscos[56789]sysv4
*)
5947 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5948 if test x
$stabs = xyes
; then
5949 tm_file
="${tm_file} dbx.h"
5951 xmake_file
=mips
/x-sysv
5952 if test x
$gas = xyes
5954 tmake_file
=mips
/t-svr4-gas
5956 tmake_file
=mips
/t-svr4
5957 extra_passes
="mips-tfile mips-tdump"
5959 if test x
$gnu_ld != xyes
5964 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5965 tm_file
="mips/svr4-4.h ${tm_file}"
5966 if test x
$stabs = xyes
; then
5967 tm_file
="${tm_file} dbx.h"
5970 xmake_file
=mips
/x-sysv
5971 if test x
$gas = xyes
5973 tmake_file
=mips
/t-svr4-gas
5975 tmake_file
=mips
/t-svr4
5976 extra_passes
="mips-tfile mips-tdump"
5978 if test x
$gnu_ld != xyes
5983 mips-
*-riscos[56789]sysv
*)
5984 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5985 if test x
$stabs = xyes
; then
5986 tm_file
="${tm_file} dbx.h"
5989 xmake_file
=mips
/x-sysv
5990 if test x
$gas = xyes
5992 tmake_file
=mips
/t-svr3-gas
5994 tmake_file
=mips
/t-svr3
5995 extra_passes
="mips-tfile mips-tdump"
5997 if test x
$gnu_ld != xyes
6002 mips-
*-sysv* | mips-
*-riscos*sysv
*)
6003 tm_file
="mips/svr3-4.h ${tm_file}"
6004 if test x
$stabs = xyes
; then
6005 tm_file
="${tm_file} dbx.h"
6008 xmake_file
=mips
/x-sysv
6009 if test x
$gas = xyes
6011 tmake_file
=mips
/t-svr3-gas
6013 tmake_file
=mips
/t-svr3
6014 extra_passes
="mips-tfile mips-tdump"
6016 if test x
$gnu_ld != xyes
6021 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
6022 tm_file
=mips
/mips-5.h
6023 if test x
$stabs = xyes
; then
6024 tm_file
="${tm_file} dbx.h"
6026 if test x
$gas = xyes
6028 tmake_file
=mips
/t-mips-gas
6030 extra_passes
="mips-tfile mips-tdump"
6032 if test x
$gnu_ld != xyes
6040 tm_file
=mips
/ecoffl.h
6041 if test x
$stabs = xyes
; then
6042 tm_file
="${tm_file} dbx.h"
6044 tmake_file
=mips
/t-ecoff
6047 tm_file
="gofast.h mips/ecoff.h"
6048 if test x
$stabs = xyes
; then
6049 tm_file
="${tm_file} dbx.h"
6051 tmake_file
=mips
/t-ecoff
6054 tm_file
="mips/elfl.h"
6055 tmake_file
=mips
/t-elf
6058 tm_file
="mips/elf.h"
6059 tmake_file
=mips
/t-elf
6062 tm_file
="mips/elfl64.h"
6063 tmake_file
=mips
/t-elf
6065 mips64orionel-
*-elf*)
6066 tm_file
="mips/elforion.h mips/elfl64.h"
6067 tmake_file
=mips
/t-elf
6070 tm_file
="mips/elf64.h"
6071 tmake_file
=mips
/t-elf
6074 tm_file
="mips/elforion.h mips/elf64.h"
6075 tmake_file
=mips
/t-elf
6077 mips64orion-
*-rtems*)
6078 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
6079 tmake_file
="mips/t-elf t-rtems"
6082 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
6083 tmake_file
=mips
/t-r3900
6086 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
6087 tmake_file
=mips
/t-r3900
6089 mips-
*-*) # Default MIPS RISC-OS 4.0.
6090 if test x
$stabs = xyes
; then
6091 tm_file
="${tm_file} dbx.h"
6093 if test x
$gas = xyes
6095 tmake_file
=mips
/t-mips-gas
6097 extra_passes
="mips-tfile mips-tdump"
6099 if test x
$gnu_ld != xyes
6107 tm_file
="mn10200/mn10200.h"
6108 if test x
$stabs = xyes
6110 tm_file
="${tm_file} dbx.h"
6116 tm_file
="mn10300/mn10300.h"
6117 if test x
$stabs = xyes
6119 tm_file
="${tm_file} dbx.h"
6124 tm_file
=ns32k
/encore.h
6128 tm_file
=ns32k
/sequent.h
6132 tm_file
=ns32k
/tek6100.h
6136 tm_file
=ns32k
/tek6200.h
6140 tm_file
=ns32k
/merlin.h
6144 tm_file
=ns32k
/pc532-mach.h
6148 tm_file
=ns32k
/pc532-min.h
6149 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
6154 tm_file
=ns32k
/netbsd.h
6155 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
6156 # On NetBSD, the headers are already okay, except for math.h.
6161 tm_file
="${tm_file} pdp11/2bsd.h"
6171 tm_file
="svr4.h pj/linux.h ${tm_file}"
6176 tm_file
="svr4.h pj/pjl.h ${tm_file}"
6183 xmake_file
=romp
/x-mach
6190 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
6194 tm_file
=rs6000
/beos.h
6195 xm_file
=rs6000
/xm-beos.h
6196 tmake_file
=rs6000
/t-beos
6197 xmake_file
=rs6000
/x-beos
6200 tm_file
=rs6000
/sysv4.h
6201 xm_file
="rs6000/xm-sysv4.h"
6202 xm_defines
="USG POSIX"
6203 extra_headers
=ppc-asm.h
6204 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6205 xmake_file
=rs6000
/x-sysv4
6208 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
6209 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6210 extra_headers
=ppc-asm.h
6213 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
6214 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6215 extra_headers
=ppc-asm.h
6218 tm_file
="rs6000/sysv4.h"
6219 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6220 extra_headers
=ppc-asm.h
6223 tm_file
="rs6000/sysv4.h rs6000/eabi.h"
6224 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6225 extra_headers
=ppc-asm.h
6228 tm_file
="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
6229 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
6230 extra_headers
=ppc-asm.h
6232 powerpc-
*-linux*libc1
)
6233 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6234 xm_file
=rs6000
/xm-sysv4.h
6235 out_file
=rs6000
/rs6000.c
6236 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
6238 extra_headers
=ppc-asm.h
6239 if test x
$enable_threads = xyes
; then
6244 tm_file
="rs6000/sysv4.h rs6000/linux.h"
6245 xm_file
="rs6000/xm-sysv4.h"
6246 xm_defines
="USG ${xm_defines}"
6247 out_file
=rs6000
/rs6000.c
6248 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
6250 extra_headers
=ppc-asm.h
6251 if test x
$enable_threads = xyes
; then
6255 powerpc-wrs-vxworks
*)
6257 xm_file
="rs6000/xm-sysv4.h"
6258 xm_defines
="USG POSIX"
6259 tm_file
="rs6000/sysv4.h rs6000/vxppc.h"
6260 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6261 extra_headers
=ppc-asm.h
6262 thread_file
='vxworks'
6264 powerpcle-wrs-vxworks
*)
6266 xm_file
="rs6000/xm-sysv4.h"
6267 xm_defines
="USG POSIX"
6268 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
6269 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6270 extra_headers
=ppc-asm.h
6271 thread_file
='vxworks'
6274 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6275 xm_file
="rs6000/xm-sysv4.h"
6276 xm_defines
="USG POSIX"
6277 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6278 xmake_file
=rs6000
/x-sysv4
6279 extra_headers
=ppc-asm.h
6282 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h"
6283 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6284 extra_headers
=ppc-asm.h
6286 powerpcle-
*-eabisim*)
6287 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
6288 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6289 extra_headers
=ppc-asm.h
6292 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
6293 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
6294 extra_headers
=ppc-asm.h
6296 powerpcle-
*-solaris2*)
6297 tm_file
="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
6298 xm_file
="rs6000/xm-sysv4.h"
6299 xm_defines
="USG POSIX"
6300 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
6301 xmake_file
=rs6000
/x-sysv4
6302 extra_headers
=ppc-asm.h
6304 rs6000-ibm-aix3.
[01]*)
6305 tm_file
=rs6000
/aix31.h
6306 xmake_file
=rs6000
/x-aix31
6310 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
6311 tm_file
=rs6000
/aix3newas.h
6312 if test x
$host != x
$target
6314 tmake_file
=rs6000
/t-xnewas
6316 tmake_file
=rs6000
/t-newas
6321 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
6322 tm_file
=rs6000
/aix41.h
6323 if test x
$host != x
$target
6325 tmake_file
=rs6000
/t-xnewas
6327 tmake_file
=rs6000
/t-newas
6329 if test "$gnu_ld" = yes
6331 xmake_file
=rs6000
/x-aix41-gld
6333 tmake_file
='rs6000/t-newas'
6335 xmake_file
=rs6000
/x-aix41
6339 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
6340 tm_file
=rs6000
/aix43.h
6341 tmake_file
=rs6000
/t-aix43
6342 xmake_file
=rs6000
/x-aix41
6347 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
6348 tm_file
=rs6000
/aix43.h
6349 tmake_file
=rs6000
/t-aix43
6350 xmake_file
=rs6000
/x-aix41
6364 tm_file
=rs6000
/mach.h
6365 xm_file
="${xm_file} rs6000/xm-mach.h"
6366 xmake_file
=rs6000
/x-mach
6370 tm_file
=rs6000
/lynx.h
6371 xm_file
=rs6000
/xm-lynx.h
6372 tmake_file
=rs6000
/t-rs6000
6373 xmake_file
=rs6000
/x-lynx
6377 tmake_file
="sh/t-sh sh/t-elf"
6378 tm_file
="sh/sh.h sh/elf.h"
6382 tmake_file
="sh/t-sh sh/t-elf t-rtems"
6383 tm_file
="sh/sh.h sh/elf.h sh/rtemself.h"
6387 tmake_file
="sh/t-sh t-rtems"
6388 tm_file
="sh/sh.h sh/rtems.h"
6392 tm_file
="sh/sh.h sh/elf.h sh/linux.h"
6393 tmake_file
="sh/t-sh sh/t-elf sh/t-linux"
6396 if test x
$enable_threads = xyes
; then
6406 xm_file
="xm-alloca.h ${xm_file}"
6409 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
6410 tm_file
=sparc
/vxsparc.h
6411 tmake_file
=sparc
/t-vxsparc
6413 thread_file
='vxworks'
6416 tmake_file
=sparc
/t-sparcbare
6417 tm_file
="sparc/aout.h libgloss.h"
6420 tm_file
=sparc
/netbsd.h
6425 # we need collect2 until our bug is fixed...
6433 tmake_file
=sparc
/t-elf
6434 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6438 sparc-
*-linux*aout
*) # Sparc's running GNU/Linux, a.out
6439 xm_file
="${xm_file} sparc/xm-linux.h"
6440 tm_file
=sparc
/linux-aout.h
6444 sparc-
*-linux*libc1
*) # Sparc's running GNU/Linux, libc5
6445 xm_file
="${xm_file} sparc/xm-linux.h"
6447 tm_file
=sparc
/linux.h
6448 tmake_file
="t-linux t-linux-gnulibc1"
6449 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6453 sparc-
*-linux*) # Sparc's running GNU/Linux, libc6
6454 xm_file
="${xm_file} sparc/xm-linux.h"
6456 tm_file
=sparc
/linux.h
6457 tmake_file
="t-linux"
6458 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6460 if test x
$enable_threads = xyes
; then
6466 if test x
$gas = xyes
6468 tm_file
=sparc
/lynx.h
6470 tm_file
=sparc
/lynx-ng.h
6472 xm_file
=sparc
/xm-lynx.h
6473 tmake_file
=sparc
/t-sunos41
6477 tmake_file
="sparc/t-sparcbare t-rtems"
6478 tm_file
=sparc
/rtems.h
6480 sparc-
*-rtems*|sparc-
*-rtemself*)
6481 tm_file
="sparc/rtemself.h"
6482 tmake_file
="sparc/t-elf t-rtems"
6483 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
6487 sparcv9-
*-solaris2*)
6488 if test x
$gnu_ld = xyes
6490 tm_file
=sparc
/sol2-64.h
6492 tm_file
=sparc
/sol2-sld-64.h
6494 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
6495 xm_defines
="USG POSIX"
6496 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
6497 if test x
$gnu_ld = xyes
; then
6498 tmake_file
="$tmake_file sparc/t-slibgcc"
6500 tmake_file
="$tmake_file sparc/t-slibgcc-sld"
6502 xmake_file
=sparc
/x-sysv4
6503 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
6505 if test x
${enable_threads} = x
; then
6506 enable_threads
=$have_pthread_h
6507 if test x
${enable_threads} = x
; then
6508 enable_threads
=$have_thread_h
6511 if test x
${enable_threads} = xyes
; then
6512 if test x
${have_pthread_h} = xyes
; then
6515 thread_file
='solaris'
6519 sparc-hal-solaris2
*)
6520 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6521 xm_defines
="USG POSIX"
6522 tm_file
="sparc/sol2.h sparc/hal.h"
6523 tmake_file
="sparc/t-halos sparc/t-sol2"
6524 if test x
$gnu_ld = xyes
; then
6525 tmake_file
="$tmake_file sparc/t-slibgcc"
6527 tmake_file
="$tmake_file sparc/t-slibgcc-sld"
6529 xmake_file
=sparc
/x-sysv4
6530 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
6539 thread_file
='solaris'
6542 if test x
$gnu_ld = xyes
6544 tm_file
=sparc
/sol2.h
6546 tm_file
=sparc
/sol2-sld.h
6548 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6549 xm_defines
="USG POSIX"
6550 tmake_file
=sparc
/t-sol2
6551 if test x
$gnu_ld = xyes
; then
6552 tmake_file
="$tmake_file sparc/t-slibgcc"
6554 tmake_file
="$tmake_file sparc/t-slibgcc-sld"
6556 xmake_file
=sparc
/x-sysv4
6557 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
6558 # At the moment, 32-to-64 cross compilation doesn't work.
6561 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
6562 #changequote([,])dnl
6564 # if test x$gnu_ld = xyes
6566 # tm_file=sparc/sol2-64.h
6568 # tm_file=sparc/sol2-sld-64.h
6570 # tmake_file="$tmake_file sparc/t-sol2-64"
6581 if test x
${enable_threads} = x
; then
6582 enable_threads
=$have_pthread_h
6583 if test x
${enable_threads} = x
; then
6584 enable_threads
=$have_thread_h
6587 if test x
${enable_threads} = xyes
; then
6588 if test x
${have_pthread_h} = xyes
; then
6591 thread_file
='solaris'
6596 tm_file
=sparc
/sunos4.h
6597 tmake_file
=sparc
/t-sunos40
6601 tm_file
=sparc
/sunos4.h
6602 tmake_file
=sparc
/t-sunos41
6604 if test x
$gas = xyes
; then
6605 tm_file
="${tm_file} sparc/sun4gas.h"
6609 tm_file
=sparc
/sun4o3.h
6613 tm_file
=sparc
/sysv4.h
6614 xm_file
="sparc/xm-sysv4.h"
6615 xm_defines
="USG POSIX"
6617 xmake_file
=sparc
/x-sysv4
6618 extra_parts
="crtbegin.o crtend.o"
6621 xm_file
="sparc/xm-sysv4.h sparc/xm-sol2.h"
6622 xm_defines
="USG POSIX"
6623 tm_file
=sparc
/vxsim.h
6624 tmake_file
=sparc
/t-vxsparc
6625 xmake_file
=sparc
/x-sysv4
6628 tm_file
="sparc/splet.h libgloss.h"
6629 tmake_file
=sparc
/t-splet
6632 tm_file
="sparc/litecoff.h libgloss.h"
6633 tmake_file
=sparc
/t-sparclite
6636 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6637 tmake_file
=sparc
/t-sparclite
6640 tm_file
="sparc/liteelf.h"
6641 tmake_file
=sparc
/t-sparclite
6642 extra_parts
="crtbegin.o crtend.o"
6645 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6646 tmake_file
=sparc
/t-sp86x
6649 tm_file
="sparc/sp86x-elf.h"
6650 tmake_file
=sparc
/t-sp86x
6651 extra_parts
="crtbegin.o crtend.o"
6654 tmake_file
=sparc
/t-sp64
6655 tm_file
=sparc
/sp64-aout.h
6658 tmake_file
=sparc
/t-sp64
6659 tm_file
=sparc
/sp64-elf.h
6660 extra_parts
="crtbegin.o crtend.o"
6662 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6663 tmake_file
="t-linux sparc/t-linux64"
6664 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6665 tm_file
=sparc
/linux64.h
6667 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6669 if test x
$enable_threads = xyes
; then
6675 { echo "configure: error:
6676 *** The Thumb targets have been depreciated. The equivalent
6677 *** ARM based toolchain can now generated Thumb instructions
6678 *** when the -mthumb switch is given to the compiler." 1>&2; exit 1; }
6682 tm_file
="v850/rtems.h"
6683 xm_file
="v850/xm-v850.h"
6684 tmake_file
="v850/t-v850 t-rtems"
6685 if test x
$stabs = xyes
6687 tm_file
="${tm_file} dbx.h"
6692 target_cpu_default
="TARGET_CPU_generic"
6694 tm_file
="v850/v850.h"
6695 xm_file
="v850/xm-v850.h"
6696 tmake_file
=v850
/t-v850
6697 if test x
$stabs = xyes
6699 tm_file
="${tm_file} dbx.h"
6703 vax-
*-bsd*) # vaxen running BSD
6707 vax-
*-sysv*) # vaxen running system V
6708 tm_file
="${tm_file} vax/vaxv.h"
6713 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6719 tmake_file
="${tmake_file} vax/t-openbsd"
6720 tm_file
="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
6721 xm_file
="xm-openbsd.h vax/xm-vax.h"
6725 vax-
*-ultrix*) # vaxen running ultrix
6726 tm_file
="${tm_file} vax/ultrix.h"
6729 vax-
*-vms*) # vaxen running VMS
6730 xm_file
=vax
/xm-vms.h
6734 vax-
*-*) # vax default entry
6738 xm_file
="${xm_file} xm-svr3"
6742 echo "Configuration $machine not supported" 1>&2
6749 ;; # Existing GNU/Linux systems do not use the GNU setup.
6751 # On the GNU system, the setup is just about the same on
6752 # each different CPU. The specific machines that GNU
6753 # supports are matched above and just set $cpu_type.
6754 xm_file
="xm-gnu.h ${xm_file}"
6755 tm_file
=${cpu_type}/gnu.h
6756 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6757 # GNU always uses ELF.
6759 # GNU tools are the only tools.
6762 xmake_file
=x-linux
# These details are the same as Linux.
6763 tmake_file
=t-gnu
# These are not.
6766 xmake_try_sysv
=x-sysv
6767 install_headers_dir
=install-headers-cpio
6770 install_headers_dir
=install-headers-cpio
6774 # Distinguish i[34567]86
6775 # Also, do not run mips-tfile on MIPS if using gas.
6776 # Process --with-cpu= for PowerPC/rs6000
6777 target_cpu_default2
=
6780 target_cpu_default2
=1
6783 case $target_alias in
6785 target_cpu_default2
=4
6788 target_cpu_default2
=2
6792 i686-
*-* | i786-
*-*)
6793 target_cpu_default2
=3
6798 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
6801 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6804 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6807 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6810 target_cpu_default2
="MASK_CPU_EV5"
6814 if test x
$gas = xyes
6816 if test "$target_cpu_default2" = ""
6818 target_cpu_default2
="MASK_GAS"
6820 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6825 case "x$with_cpu" in
6828 target_cpu_default2
="TARGET_CPU_generic"
6831 # Distinguish cores, and major variants
6832 # arm7m doesn't exist, but D & I don't affect code
6833 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6834 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6835 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6836 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6837 target_cpu_default2
="TARGET_CPU_$with_cpu"
6841 echo "--with-cpu must be passed a value" 1>&2
6846 if test x
$pass2done = xyes
6848 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6855 mips
*-*-ecoff* | mips
*-*-elf*)
6856 if test x
$gas = xyes
6858 if test x
$gnu_ld = xyes
6860 target_cpu_default2
="MASK_GAS|MASK_SPLIT_ADDR"
6862 target_cpu_default2
="MASK_GAS"
6867 if test x
$gas = xyes
6869 target_cpu_default2
="MASK_GAS"
6872 powerpc
*-*-* | rs6000-
*-*)
6873 case "x$with_cpu" in
6877 xcommon | xpower | xpower2 | xpowerpc | xrios \
6878 | xrios1 | xrios2 | xrsc | xrsc1 \
6879 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6880 | xec603e | x740 | x750 | x401 \
6881 | x403 | x505 | x801 | x821 | x823 | x860
)
6882 target_cpu_default2
="\"$with_cpu\""
6886 echo "--with-cpu must be passed a value" 1>&2
6891 if test x
$pass2done = xyes
6893 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6900 case ".$with_cpu" in
6902 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6904 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6905 target_cpu_default2
="TARGET_CPU_$with_cpu"
6908 if test x
$pass2done = xyes
6910 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6918 if test "$target_cpu_default2" != ""
6920 if test "$target_cpu_default" != ""
6922 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6924 target_cpu_default
=$target_cpu_default2
6928 # No need for collect2 if we have the GNU linker.
6929 # Actually, there is now; GNU ld doesn't handle the EH info or
6930 # collecting for shared libraries.
6937 # Save data on machine being used to compile GCC in build_xm_file.
6938 # Save data on host machine in vars host_xm_file and host_xmake_file.
6939 if test x
$pass1done = x
6941 if test x
"$xm_file" = x
6942 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6943 else build_xm_file
=$xm_file
6945 build_xm_defines
=$xm_defines
6946 build_install_headers_dir
=$install_headers_dir
6947 build_exeext
=$exeext
6950 if test x
$pass2done = x
6952 if test x
"$xm_file" = x
6953 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6954 else host_xm_file
=$xm_file
6956 host_xm_defines
=$xm_defines
6957 if test x
"$xmake_file" = x
6958 then xmake_file
=$cpu_type/x-
$cpu_type
6960 host_xmake_file
="$xmake_file"
6961 host_truncate_target
=$truncate_target
6962 host_extra_gcc_objs
=$extra_gcc_objs
6963 host_extra_objs
=$extra_host_objs
6970 extra_objs
="${host_extra_objs} ${extra_objs}"
6972 # Default the target-machine variables that were not explicitly set.
6973 if test x
"$tm_file" = x
6974 then tm_file
=$cpu_type/$cpu_type.h
; fi
6976 if test x
$extra_headers = x
6977 then extra_headers
=; fi
6979 if test x
"$xm_file" = x
6980 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6982 if test x
$md_file = x
6983 then md_file
=$cpu_type/$cpu_type.md
; fi
6985 if test x
$out_file = x
6986 then out_file
=$cpu_type/$cpu_type.c
; fi
6988 if test x
"$tmake_file" = x
6989 then tmake_file
=$cpu_type/t-
$cpu_type
6992 if test x
"$dwarf2" = xyes
6993 then tm_file
="$tm_file tm-dwarf2.h"
6996 if test x
$float_format = x
6997 then float_format
=i64
7000 if test $float_format = none
7001 then float_h_file
=Makefile.
in
7002 else float_h_file
=float-
$float_format.h
7005 # Handle cpp installation.
7006 if test x
$enable_cpp != xno
7008 tmake_file
="$tmake_file t-install-cpp"
7011 # Say what files are being used for the output code and MD file.
7012 echo "Using \`$srcdir/config/$out_file' to output insns."
7013 echo "Using \`$srcdir/config/$md_file' as machine description file."
7016 for f
in $tm_file; do
7019 if test $count = ax
; then
7020 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
7022 echo "Using the following target machine macro files:"
7023 for f
in $tm_file; do
7024 echo " $srcdir/config/$f"
7029 for f
in $host_xm_file; do
7032 if test $count = ax
; then
7033 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
7035 echo "Using the following host machine macro files:"
7036 for f
in $host_xm_file; do
7037 echo " $srcdir/config/$f"
7041 if test "$host_xm_file" != "$build_xm_file"; then
7043 for f
in $build_xm_file; do
7046 if test $count = ax
; then
7047 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
7049 echo "Using the following build machine macro files:"
7050 for f
in $build_xm_file; do
7051 echo " $srcdir/config/$f"
7056 if test x
$thread_file = x
; then
7057 if test x
$target_thread_file != x
; then
7058 thread_file
=$target_thread_file
7060 thread_file
='single'
7064 # Set up the header files.
7065 # $links is the list of header files to create.
7066 # $vars is the list of shell variables with file names to include.
7067 # auto-host.h is the file containing items generated by autoconf and is
7068 # the first file included by config.h.
7070 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
7072 # If host=build, it is correct to have hconfig include auto-host.h
7073 # as well. If host!=build, we are in error and need to do more
7074 # work to find out the build config parameters.
7075 if test x
$host = x
$build
7077 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
7079 # We create a subdir, then run autoconf in the subdir.
7080 # To prevent recursion we set host and build for the new
7081 # invocation of configure to the build for this invocation
7088 /*) realsrcdir
=${srcdir};;
7089 *) realsrcdir
=..
/${srcdir};;
7091 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
7092 --target=$target --host=$build --build=$build
7094 # We just finished tests for the build machine, so rename
7095 # the file auto-build.h in the gcc directory.
7096 mv auto-host.h ..
/auto-build.h
7099 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
7102 xm_file
="gansidecl.h ${xm_file}"
7103 tm_file
="gansidecl.h ${tm_file}"
7105 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
7106 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
7107 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
7110 if test -f config.status
; then mv -f config.status config.bak
; fi
7113 while test -n "$vars"
7115 set $vars; var
=$1; shift; vars
=$
*
7116 set $links; link
=$1; shift; links
=$
*
7117 set $defines; define
=$1; shift; defines
=$
*
7120 # Make sure the file is created, even if it is empty.
7123 # Define TARGET_CPU_DEFAULT if the system wants one.
7124 # This substitutes for lots of *.h files.
7125 if test "$target_cpu_default" != "" -a $link = tm.h
7127 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
7130 for file in `eval echo '$'$var`; do
7132 auto-host.h | auto-build.h
)
7135 echo '#ifdef IN_GCC' >>$link
7138 echo "#include \"$file\"" >>$link
7140 auto-host.h | auto-build.h
)
7143 echo '#endif' >>$link
7148 for def
in `eval echo '$'$define`; do
7149 echo "#ifndef $def" >>$link
7150 echo "#define $def" >>$link
7151 echo "#endif" >>$link
7155 # Truncate the target if necessary
7156 if test x
$host_truncate_target != x
; then
7157 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7160 # Get the version trigger filename from the toplevel
7161 if test "${with_gcc_version_trigger+set}" = set; then
7162 gcc_version_trigger
=$with_gcc_version_trigger
7164 gcc_version_trigger
=${srcdir}/version.c
7166 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
7167 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
7169 # Internationalization
7171 VERSION
="$gcc_version"
7172 cat >> confdefs.h
<<EOF
7173 #define PACKAGE "$PACKAGE"
7176 cat >> confdefs.h
<<EOF
7177 #define VERSION "$VERSION"
7185 # Enable NLS support by default
7186 # Check whether --enable-nls or --disable-nls was given.
7187 if test "${enable_nls+set}" = set; then
7188 enableval
="$enable_nls"
7195 # if cross compiling, disable NLS support.
7196 # It's not worth the trouble, at least for now.
7198 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
7199 echo "configure: warning: Disabling NLS support for canadian cross compiler." 1>&2
7203 # if NLS is enabled, also enable check in po subdir
7204 if test $enable_nls = yes; then
7213 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
7214 echo "configure:7215: checking for strerror in -lcposix" >&5
7215 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
7216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7217 echo $ac_n "(cached) $ac_c" 1>&6
7219 ac_save_LIBS
="$LIBS"
7220 LIBS
="-lcposix $LIBS"
7221 cat > conftest.
$ac_ext <<EOF
7222 #line 7223 "configure"
7223 #include "confdefs.h"
7224 /* Override any gcc2 internal prototype to avoid an error. */
7225 /* We use char because int might match the return type of a gcc2
7226 builtin and then its argument prototype would still apply. */
7233 if { (eval echo configure
:7234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7235 eval "ac_cv_lib_$ac_lib_var=yes"
7237 echo "configure: failed program was:" >&5
7238 cat conftest.
$ac_ext >&5
7240 eval "ac_cv_lib_$ac_lib_var=no"
7243 LIBS
="$ac_save_LIBS"
7246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7247 echo "$ac_t""yes" 1>&6
7248 LIBS
="$LIBS -lcposix"
7250 echo "$ac_t""no" 1>&6
7255 echo $ac_n "checking for working const""... $ac_c" 1>&6
7256 echo "configure:7257: checking for working const" >&5
7257 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7258 echo $ac_n "(cached) $ac_c" 1>&6
7260 cat > conftest.
$ac_ext <<EOF
7261 #line 7262 "configure"
7262 #include "confdefs.h"
7266 /* Ultrix mips cc rejects this. */
7267 typedef int charset[2]; const charset x = {0,0};
7268 /* SunOS 4.1.1 cc rejects this. */
7269 char const *const *ccp;
7271 /* NEC SVR4.0.2 mips cc rejects this. */
7272 struct point {int x, y;};
7273 static struct point const zero = {0,0};
7274 /* AIX XL C 1.02.0.0 rejects this.
7275 It does not let you subtract one const X* pointer from another in an arm
7276 of an if-expression whose if-part is not a constant expression */
7277 const char *g = "string";
7278 ccp = &g + (g ? g-g : 0);
7279 /* HPUX 7.0 cc rejects these. */
7282 ccp = (char const *const *) p;
7283 { /* SCO 3.2v4 cc rejects this. */
7285 char const *s = 0 ? (char *) 0 : (char const *) 0;
7289 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7291 const int *foo = &x[0];
7294 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7295 typedef const int *iptr;
7299 { /* AIX XL C 1.02.0.0 rejects this saying
7300 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7301 struct s { int j; const int *ap[3]; };
7302 struct s *b; b->j = 5;
7304 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7310 if { (eval echo configure
:7311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7314 echo "configure: failed program was:" >&5
7315 cat conftest.
$ac_ext >&5
7322 echo "$ac_t""$ac_cv_c_const" 1>&6
7323 if test $ac_cv_c_const = no
; then
7324 cat >> confdefs.h
<<\EOF
7330 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7331 echo "configure:7332: checking for off_t" >&5
7332 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7333 echo $ac_n "(cached) $ac_c" 1>&6
7335 cat > conftest.
$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7338 #include <sys/types.h>
7344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7345 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7347 ac_cv_type_off_t
=yes
7355 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7356 if test $ac_cv_type_off_t = no
; then
7357 cat >> confdefs.h
<<\EOF
7363 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7364 echo "configure:7365: checking for size_t" >&5
7365 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7368 cat > conftest.
$ac_ext <<EOF
7369 #line 7370 "configure"
7370 #include "confdefs.h"
7371 #include <sys/types.h>
7377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7378 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7380 ac_cv_type_size_t
=yes
7383 ac_cv_type_size_t
=no
7388 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7389 if test $ac_cv_type_size_t = no
; then
7390 cat >> confdefs.h
<<\EOF
7391 #define size_t unsigned
7396 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7397 # for constant arguments. Useless!
7398 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7399 echo "configure:7400: checking for working alloca.h" >&5
7400 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7403 cat > conftest.
$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7408 void *p = alloca(2 * sizeof(int));
7411 if { (eval echo configure
:7412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7413 ac_cv_header_alloca_h
=yes
7415 echo "configure: failed program was:" >&5
7416 cat conftest.
$ac_ext >&5
7418 ac_cv_header_alloca_h
=no
7423 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7424 if test $ac_cv_header_alloca_h = yes; then
7425 cat >> confdefs.h
<<\EOF
7426 #define HAVE_ALLOCA_H 1
7431 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7432 echo "configure:7433: checking for alloca" >&5
7433 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7436 cat > conftest.
$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7441 # define alloca __builtin_alloca
7444 # include <malloc.h>
7445 # define alloca _alloca
7448 # include <alloca.h>
7453 # ifndef alloca /* predefined by HP cc +Olibcalls */
7462 char *p = (char *) alloca(1);
7465 if { (eval echo configure
:7466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7467 ac_cv_func_alloca_works
=yes
7469 echo "configure: failed program was:" >&5
7470 cat conftest.
$ac_ext >&5
7472 ac_cv_func_alloca_works
=no
7477 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7478 if test $ac_cv_func_alloca_works = yes; then
7479 cat >> confdefs.h
<<\EOF
7480 #define HAVE_ALLOCA 1
7485 if test $ac_cv_func_alloca_works = no
; then
7486 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7487 # that cause trouble. Some versions do not even contain alloca or
7488 # contain a buggy version. If you still want to use their alloca,
7489 # use ar to extract alloca.o from them instead of compiling alloca.c.
7490 ALLOCA
=alloca.
${ac_objext}
7491 cat >> confdefs.h
<<\EOF
7496 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7497 echo "configure:7498: checking whether alloca needs Cray hooks" >&5
7498 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7501 cat > conftest.
$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 #if defined(CRAY) && ! defined(CRAY2)
7511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7512 egrep "webecray" >/dev
/null
2>&1; then
7523 echo "$ac_t""$ac_cv_os_cray" 1>&6
7524 if test $ac_cv_os_cray = yes; then
7525 for ac_func
in _getb67 GETB67 getb67
; do
7526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7527 echo "configure:7528: checking for $ac_func" >&5
7528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7531 cat > conftest.
$ac_ext <<EOF
7532 #line 7533 "configure"
7533 #include "confdefs.h"
7534 /* System header to define __stub macros and hopefully few prototypes,
7535 which can conflict with char $ac_func(); below. */
7537 /* Override any gcc2 internal prototype to avoid an error. */
7538 /* We use char because int might match the return type of a gcc2
7539 builtin and then its argument prototype would still apply. */
7544 /* The GNU C library defines this for functions which it implements
7545 to always fail with ENOSYS. Some functions are actually named
7546 something starting with __ and the normal name is an alias. */
7547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7555 if { (eval echo configure
:7556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7557 eval "ac_cv_func_$ac_func=yes"
7559 echo "configure: failed program was:" >&5
7560 cat conftest.
$ac_ext >&5
7562 eval "ac_cv_func_$ac_func=no"
7567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7568 echo "$ac_t""yes" 1>&6
7569 cat >> confdefs.h
<<EOF
7570 #define CRAY_STACKSEG_END $ac_func
7575 echo "$ac_t""no" 1>&6
7581 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7582 echo "configure:7583: checking stack direction for C alloca" >&5
7583 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7586 if test "$cross_compiling" = yes; then
7587 ac_cv_c_stack_direction
=0
7589 cat > conftest.
$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 find_stack_direction ()
7594 static char *addr = 0;
7599 return find_stack_direction ();
7602 return (&dummy > addr) ? 1 : -1;
7606 exit (find_stack_direction() < 0);
7609 if { (eval echo configure
:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7611 ac_cv_c_stack_direction
=1
7613 echo "configure: failed program was:" >&5
7614 cat conftest.
$ac_ext >&5
7616 ac_cv_c_stack_direction
=-1
7623 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7624 cat >> confdefs.h
<<EOF
7625 #define STACK_DIRECTION $ac_cv_c_stack_direction
7631 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7632 unistd.h sys
/param.h
7634 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7636 echo "configure:7637: checking for $ac_hdr" >&5
7637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7640 cat > conftest.
$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7645 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7646 { (eval echo configure
:7647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7647 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7648 if test -z "$ac_err"; then
7650 eval "ac_cv_header_$ac_safe=yes"
7653 echo "configure: failed program was:" >&5
7654 cat conftest.
$ac_ext >&5
7656 eval "ac_cv_header_$ac_safe=no"
7660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7661 echo "$ac_t""yes" 1>&6
7662 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7663 cat >> confdefs.h
<<EOF
7664 #define $ac_tr_hdr 1
7668 echo "$ac_t""no" 1>&6
7672 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7673 strdup __argz_count __argz_stringify __argz_next
7675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7676 echo "configure:7677: checking for $ac_func" >&5
7677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7680 cat > conftest.
$ac_ext <<EOF
7681 #line 7682 "configure"
7682 #include "confdefs.h"
7683 /* System header to define __stub macros and hopefully few prototypes,
7684 which can conflict with char $ac_func(); below. */
7686 /* Override any gcc2 internal prototype to avoid an error. */
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7693 /* The GNU C library defines this for functions which it implements
7694 to always fail with ENOSYS. Some functions are actually named
7695 something starting with __ and the normal name is an alias. */
7696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7704 if { (eval echo configure
:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7706 eval "ac_cv_func_$ac_func=yes"
7708 echo "configure: failed program was:" >&5
7709 cat conftest.
$ac_ext >&5
7711 eval "ac_cv_func_$ac_func=no"
7716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7717 echo "$ac_t""yes" 1>&6
7718 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7719 cat >> confdefs.h
<<EOF
7720 #define $ac_tr_func 1
7724 echo "$ac_t""no" 1>&6
7729 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7730 for ac_func
in stpcpy
7732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7733 echo "configure:7734: checking for $ac_func" >&5
7734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7737 cat > conftest.
$ac_ext <<EOF
7738 #line 7739 "configure"
7739 #include "confdefs.h"
7740 /* System header to define __stub macros and hopefully few prototypes,
7741 which can conflict with char $ac_func(); below. */
7743 /* Override any gcc2 internal prototype to avoid an error. */
7744 /* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7750 /* The GNU C library defines this for functions which it implements
7751 to always fail with ENOSYS. Some functions are actually named
7752 something starting with __ and the normal name is an alias. */
7753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7761 if { (eval echo configure
:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7763 eval "ac_cv_func_$ac_func=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.
$ac_ext >&5
7768 eval "ac_cv_func_$ac_func=no"
7773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7774 echo "$ac_t""yes" 1>&6
7775 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7776 cat >> confdefs.h
<<EOF
7777 #define $ac_tr_func 1
7781 echo "$ac_t""no" 1>&6
7786 if test "${ac_cv_func_stpcpy}" = "yes"; then
7787 cat >> confdefs.h
<<\EOF
7788 #define HAVE_STPCPY 1
7793 if test $ac_cv_header_locale_h = yes; then
7794 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7795 echo "configure:7796: checking for LC_MESSAGES" >&5
7796 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6
7799 cat > conftest.
$ac_ext <<EOF
7800 #line 7801 "configure"
7801 #include "confdefs.h"
7807 if { (eval echo configure
:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7809 am_cv_val_LC_MESSAGES
=yes
7811 echo "configure: failed program was:" >&5
7812 cat conftest.
$ac_ext >&5
7814 am_cv_val_LC_MESSAGES
=no
7819 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7820 if test $am_cv_val_LC_MESSAGES = yes; then
7821 cat >> confdefs.h
<<\EOF
7822 #define HAVE_LC_MESSAGES 1
7827 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7828 echo "configure:7829: checking whether NLS is requested" >&5
7829 # Check whether --enable-nls or --disable-nls was given.
7830 if test "${enable_nls+set}" = set; then
7831 enableval
="$enable_nls"
7837 echo "$ac_t""$USE_NLS" 1>&6
7840 USE_INCLUDED_LIBINTL
=no
7842 if test "$USE_NLS" = "yes"; then
7843 cat >> confdefs.h
<<\EOF
7844 #define ENABLE_NLS 1
7847 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7848 echo "configure:7849: checking whether included gettext is requested" >&5
7849 # Check whether --with-included-gettext or --without-included-gettext was given.
7850 if test "${with_included_gettext+set}" = set; then
7851 withval
="$with_included_gettext"
7852 nls_cv_force_use_gnu_gettext
=$withval
7854 nls_cv_force_use_gnu_gettext
=no
7857 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7859 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7860 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7862 nls_cv_header_libgt
=
7865 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7866 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7867 echo "configure:7868: checking for libintl.h" >&5
7868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7871 cat > conftest.
$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 #include <libintl.h>
7876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7877 { (eval echo configure
:7878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7878 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7879 if test -z "$ac_err"; then
7881 eval "ac_cv_header_$ac_safe=yes"
7884 echo "configure: failed program was:" >&5
7885 cat conftest.
$ac_ext >&5
7887 eval "ac_cv_header_$ac_safe=no"
7891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7892 echo "$ac_t""yes" 1>&6
7893 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7894 echo "configure:7895: checking for gettext in libc" >&5
7895 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6
7898 cat > conftest.
$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7901 #include <libintl.h>
7903 return (int) gettext ("")
7906 if { (eval echo configure
:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7908 gt_cv_func_gettext_libc
=yes
7910 echo "configure: failed program was:" >&5
7911 cat conftest.
$ac_ext >&5
7913 gt_cv_func_gettext_libc
=no
7918 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7920 if test "$gt_cv_func_gettext_libc" != "yes"; then
7921 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7922 echo "configure:7923: checking for bindtextdomain in -lintl" >&5
7923 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7927 ac_save_LIBS
="$LIBS"
7929 cat > conftest.
$ac_ext <<EOF
7930 #line 7931 "configure"
7931 #include "confdefs.h"
7932 /* Override any gcc2 internal prototype to avoid an error. */
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935 char bindtextdomain();
7941 if { (eval echo configure
:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7943 eval "ac_cv_lib_$ac_lib_var=yes"
7945 echo "configure: failed program was:" >&5
7946 cat conftest.
$ac_ext >&5
7948 eval "ac_cv_lib_$ac_lib_var=no"
7951 LIBS
="$ac_save_LIBS"
7954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7955 echo "$ac_t""yes" 1>&6
7956 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7957 echo "configure:7958: checking for gettext in libintl" >&5
7958 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7961 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7962 echo "configure:7963: checking for gettext in -lintl" >&5
7963 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7967 ac_save_LIBS
="$LIBS"
7969 cat > conftest.
$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7972 /* Override any gcc2 internal prototype to avoid an error. */
7973 /* We use char because int might match the return type of a gcc2
7974 builtin and then its argument prototype would still apply. */
7981 if { (eval echo configure
:7982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7983 eval "ac_cv_lib_$ac_lib_var=yes"
7985 echo "configure: failed program was:" >&5
7986 cat conftest.
$ac_ext >&5
7988 eval "ac_cv_lib_$ac_lib_var=no"
7991 LIBS
="$ac_save_LIBS"
7994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7995 echo "$ac_t""yes" 1>&6
7996 gt_cv_func_gettext_libintl
=yes
7998 echo "$ac_t""no" 1>&6
7999 gt_cv_func_gettext_libintl
=no
8004 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
8006 echo "$ac_t""no" 1>&6
8011 if test "$gt_cv_func_gettext_libc" = "yes" \
8012 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
8013 cat >> confdefs.h
<<\EOF
8014 #define HAVE_GETTEXT 1
8017 # Extract the first word of "msgfmt", so it can be a program name with args.
8018 set dummy msgfmt
; ac_word
=$2
8019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8020 echo "configure:8021: checking for $ac_word" >&5
8021 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8026 gcc_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8030 for ac_dir
in $PATH; do
8031 test -z "$ac_dir" && ac_dir
=.
8032 if test -f $ac_dir/$ac_word; then
8033 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8034 gcc_cv_path_MSGFMT
="$ac_dir/$ac_word"
8040 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT
="no"
8044 MSGFMT
="$gcc_cv_path_MSGFMT"
8045 if test -n "$MSGFMT"; then
8046 echo "$ac_t""$MSGFMT" 1>&6
8048 echo "$ac_t""no" 1>&6
8050 if test "$MSGFMT" != "no"; then
8051 for ac_func
in dcgettext
8053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8054 echo "configure:8055: checking for $ac_func" >&5
8055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 cat > conftest.
$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 /* System header to define __stub macros and hopefully few prototypes,
8062 which can conflict with char $ac_func(); below. */
8064 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8071 /* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8082 if { (eval echo configure
:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8084 eval "ac_cv_func_$ac_func=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.
$ac_ext >&5
8089 eval "ac_cv_func_$ac_func=no"
8094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8097 cat >> confdefs.h
<<EOF
8098 #define $ac_tr_func 1
8102 echo "$ac_t""no" 1>&6
8106 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8107 set dummy gmsgfmt
; ac_word
=$2
8108 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8109 echo "configure:8110: checking for $ac_word" >&5
8110 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8115 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8118 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8121 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8123 for ac_dir
in $ac_dummy; do
8124 test -z "$ac_dir" && ac_dir
=.
8125 if test -f $ac_dir/$ac_word; then
8126 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8131 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="$MSGFMT"
8135 GMSGFMT
="$gcc_cv_path_GMSGFMT"
8136 if test -n "$GMSGFMT"; then
8137 echo "$ac_t""$GMSGFMT" 1>&6
8139 echo "$ac_t""no" 1>&6
8142 # Extract the first word of "xgettext", so it can be a program name with args.
8143 set dummy xgettext
; ac_word
=$2
8144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8145 echo "configure:8146: checking for $ac_word" >&5
8146 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
8147 echo $ac_n "(cached) $ac_c" 1>&6
8151 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8155 for ac_dir
in $PATH; do
8156 test -z "$ac_dir" && ac_dir
=.
8157 if test -f $ac_dir/$ac_word; then
8158 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8159 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8165 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
8169 XGETTEXT
="$gcc_cv_path_XGETTEXT"
8170 if test -n "$XGETTEXT"; then
8171 echo "$ac_t""$XGETTEXT" 1>&6
8173 echo "$ac_t""no" 1>&6
8176 cat > conftest.
$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8181 extern int _nl_msg_cat_cntr;
8182 return _nl_msg_cat_cntr
8185 if { (eval echo configure
:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8190 echo "configure: failed program was:" >&5
8191 cat conftest.
$ac_ext >&5
8199 create_catalogs
="no"
8204 echo "$ac_t""no" 1>&6
8208 if test "$CATOBJEXT" = "NONE"; then
8209 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
8210 echo "configure:8211: checking whether catgets can be used" >&5
8211 # Check whether --with-catgets or --without-catgets was given.
8212 if test "${with_catgets+set}" = set; then
8213 withval
="$with_catgets"
8214 nls_cv_use_catgets
=$withval
8216 nls_cv_use_catgets
=no
8219 echo "$ac_t""$nls_cv_use_catgets" 1>&6
8221 if test "$nls_cv_use_catgets" = "yes"; then
8222 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
8223 echo "configure:8224: checking for main in -li" >&5
8224 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
8225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8228 ac_save_LIBS
="$LIBS"
8230 cat > conftest.
$ac_ext <<EOF
8231 #line 8232 "configure"
8232 #include "confdefs.h"
8238 if { (eval echo configure
:8239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8240 eval "ac_cv_lib_$ac_lib_var=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.
$ac_ext >&5
8245 eval "ac_cv_lib_$ac_lib_var=no"
8248 LIBS
="$ac_save_LIBS"
8251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8252 echo "$ac_t""yes" 1>&6
8253 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8254 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8255 cat >> confdefs.h
<<EOF
8256 #define $ac_tr_lib 1
8262 echo "$ac_t""no" 1>&6
8265 echo $ac_n "checking for catgets""... $ac_c" 1>&6
8266 echo "configure:8267: checking for catgets" >&5
8267 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
8268 echo $ac_n "(cached) $ac_c" 1>&6
8270 cat > conftest.
$ac_ext <<EOF
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8273 /* System header to define __stub macros and hopefully few prototypes,
8274 which can conflict with char catgets(); below. */
8276 /* Override any gcc2 internal prototype to avoid an error. */
8277 /* We use char because int might match the return type of a gcc2
8278 builtin and then its argument prototype would still apply. */
8283 /* The GNU C library defines this for functions which it implements
8284 to always fail with ENOSYS. Some functions are actually named
8285 something starting with __ and the normal name is an alias. */
8286 #if defined (__stub_catgets) || defined (__stub___catgets)
8294 if { (eval echo configure
:8295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8296 eval "ac_cv_func_catgets=yes"
8298 echo "configure: failed program was:" >&5
8299 cat conftest.
$ac_ext >&5
8301 eval "ac_cv_func_catgets=no"
8306 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
8307 echo "$ac_t""yes" 1>&6
8308 cat >> confdefs.h
<<\EOF
8309 #define HAVE_CATGETS 1
8312 INTLOBJS
="\$(CATOBJS)"
8313 # Extract the first word of "gencat", so it can be a program name with args.
8314 set dummy gencat
; ac_word
=$2
8315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8316 echo "configure:8317: checking for $ac_word" >&5
8317 if eval "test \"`echo '$''{'gcc_cv_path_GENCAT'+set}'`\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8322 gcc_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
8325 gcc_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
8328 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8330 for ac_dir
in $ac_dummy; do
8331 test -z "$ac_dir" && ac_dir
=.
8332 if test -f $ac_dir/$ac_word; then
8333 gcc_cv_path_GENCAT
="$ac_dir/$ac_word"
8338 test -z "$gcc_cv_path_GENCAT" && gcc_cv_path_GENCAT
="no"
8342 GENCAT
="$gcc_cv_path_GENCAT"
8343 if test -n "$GENCAT"; then
8344 echo "$ac_t""$GENCAT" 1>&6
8346 echo "$ac_t""no" 1>&6
8348 if test "$GENCAT" != "no"; then
8349 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8350 set dummy gmsgfmt
; ac_word
=$2
8351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8352 echo "configure:8353: checking for $ac_word" >&5
8353 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
8354 echo $ac_n "(cached) $ac_c" 1>&6
8358 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8361 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8364 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8366 for ac_dir
in $ac_dummy; do
8367 test -z "$ac_dir" && ac_dir
=.
8368 if test -f $ac_dir/$ac_word; then
8369 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8374 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="no"
8378 GMSGFMT
="$gcc_cv_path_GMSGFMT"
8379 if test -n "$GMSGFMT"; then
8380 echo "$ac_t""$GMSGFMT" 1>&6
8382 echo "$ac_t""no" 1>&6
8385 if test "$GMSGFMT" = "no"; then
8386 # Extract the first word of "msgfmt", so it can be a program name with args.
8387 set dummy msgfmt
; ac_word
=$2
8388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8389 echo "configure:8390: checking for $ac_word" >&5
8390 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8395 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8398 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8399 for ac_dir
in $PATH; do
8400 test -z "$ac_dir" && ac_dir
=.
8401 if test -f $ac_dir/$ac_word; then
8402 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8403 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8409 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="msgfmt"
8413 GMSGFMT
="$gcc_cv_path_GMSGFMT"
8414 if test -n "$GMSGFMT"; then
8415 echo "$ac_t""$GMSGFMT" 1>&6
8417 echo "$ac_t""no" 1>&6
8420 if test "$GMSGFMT" = "msgfmt"; then
8421 create_catalogs
="no"
8424 # Extract the first word of "xgettext", so it can be a program name with args.
8425 set dummy xgettext
; ac_word
=$2
8426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8427 echo "configure:8428: checking for $ac_word" >&5
8428 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
8429 echo $ac_n "(cached) $ac_c" 1>&6
8433 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8436 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8437 for ac_dir
in $PATH; do
8438 test -z "$ac_dir" && ac_dir
=.
8439 if test -f $ac_dir/$ac_word; then
8440 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8441 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8447 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
8451 XGETTEXT
="$gcc_cv_path_XGETTEXT"
8452 if test -n "$XGETTEXT"; then
8453 echo "$ac_t""$XGETTEXT" 1>&6
8455 echo "$ac_t""no" 1>&6
8458 USE_INCLUDED_LIBINTL
=yes
8462 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8464 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8465 nls_cv_header_intl
=intl
/libintl.h
8466 nls_cv_header_libgt
=intl
/libgettext.h
8469 echo "$ac_t""no" 1>&6
8475 if test "$CATOBJEXT" = "NONE"; then
8476 nls_cv_use_gnu_gettext
=yes
8480 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8481 INTLOBJS
="\$(GETTOBJS)"
8482 # Extract the first word of "msgfmt", so it can be a program name with args.
8483 set dummy msgfmt
; ac_word
=$2
8484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8485 echo "configure:8486: checking for $ac_word" >&5
8486 if eval "test \"`echo '$''{'gcc_cv_path_MSGFMT'+set}'`\" = set"; then
8487 echo $ac_n "(cached) $ac_c" 1>&6
8491 gcc_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8494 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8495 for ac_dir
in $PATH; do
8496 test -z "$ac_dir" && ac_dir
=.
8497 if test -f $ac_dir/$ac_word; then
8498 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8499 gcc_cv_path_MSGFMT
="$ac_dir/$ac_word"
8505 test -z "$gcc_cv_path_MSGFMT" && gcc_cv_path_MSGFMT
="msgfmt"
8509 MSGFMT
="$gcc_cv_path_MSGFMT"
8510 if test -n "$MSGFMT"; then
8511 echo "$ac_t""$MSGFMT" 1>&6
8513 echo "$ac_t""no" 1>&6
8516 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8517 set dummy gmsgfmt
; ac_word
=$2
8518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8519 echo "configure:8520: checking for $ac_word" >&5
8520 if eval "test \"`echo '$''{'gcc_cv_path_GMSGFMT'+set}'`\" = set"; then
8521 echo $ac_n "(cached) $ac_c" 1>&6
8525 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8528 gcc_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8531 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8533 for ac_dir
in $ac_dummy; do
8534 test -z "$ac_dir" && ac_dir
=.
8535 if test -f $ac_dir/$ac_word; then
8536 gcc_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8541 test -z "$gcc_cv_path_GMSGFMT" && gcc_cv_path_GMSGFMT
="$MSGFMT"
8545 GMSGFMT
="$gcc_cv_path_GMSGFMT"
8546 if test -n "$GMSGFMT"; then
8547 echo "$ac_t""$GMSGFMT" 1>&6
8549 echo "$ac_t""no" 1>&6
8552 if test "$MSGFMT" = "msgfmt" && test "$GMSGFMT" = "msgfmt"; then
8553 create_catalogs
="no"
8555 # Extract the first word of "xgettext", so it can be a program name with args.
8556 set dummy xgettext
; ac_word
=$2
8557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8558 echo "configure:8559: checking for $ac_word" >&5
8559 if eval "test \"`echo '$''{'gcc_cv_path_XGETTEXT'+set}'`\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
8564 gcc_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8567 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8568 for ac_dir
in $PATH; do
8569 test -z "$ac_dir" && ac_dir
=.
8570 if test -f $ac_dir/$ac_word; then
8571 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8572 gcc_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8578 test -z "$gcc_cv_path_XGETTEXT" && gcc_cv_path_XGETTEXT
=":"
8582 XGETTEXT
="$gcc_cv_path_XGETTEXT"
8583 if test -n "$XGETTEXT"; then
8584 echo "$ac_t""$XGETTEXT" 1>&6
8586 echo "$ac_t""no" 1>&6
8590 USE_INCLUDED_LIBINTL
=yes
8594 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8596 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8597 nls_cv_header_intl
=intl
/libintl.h
8598 nls_cv_header_libgt
=intl
/libgettext.h
8601 if test "$XGETTEXT" != ":"; then
8602 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8605 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8612 # We need to process the po/ directory.
8616 nls_cv_header_intl
=intl
/libintl.h
8617 nls_cv_header_libgt
=intl
/libgettext.h
8623 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8624 # because some of the sources are only built for this goal.
8625 if test "$PACKAGE" = gettext; then
8627 USE_INCLUDED_LIBINTL
=yes
8630 for lang
in $ALL_LINGUAS; do
8631 GMOFILES
="$GMOFILES $lang.gmo"
8632 POFILES
="$POFILES $lang.po"
8648 if test "x$create_catalogs" = "xno"; then
8649 echo "configure: warning: No program for building catalogs found -> building disabled" 1>&2
8652 if test "x$CATOBJEXT" != "x" && test "x$create_catalogs" != "xno" ; then
8653 if test "x$ALL_LINGUAS" = "x"; then
8656 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8657 echo "configure:8658: checking for catalogs to be installed" >&5
8658 if test "x$LINGUAS" = "x"; then
8659 LINGUAS
=$ALL_LINGUAS
8662 for lang
in $ALL_LINGUAS; do
8663 case " $LINGUAS " in
8664 *" $lang "*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8667 LINGUAS
=$NEW_LINGUAS
8669 echo "$ac_t""$LINGUAS" 1>&6
8672 if test -n "$LINGUAS"; then
8673 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8677 if test $ac_cv_header_locale_h = yes; then
8678 INCLUDE_LOCALE_H
="#include <locale.h>"
8681 /* The system does not provide the header <locale.h>. Take care yourself. */"
8685 test -d intl || mkdir intl
8686 if test "$CATOBJEXT" = ".cat"; then
8687 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8688 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8689 echo "configure:8690: checking for linux/version.h" >&5
8690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8693 cat > conftest.
$ac_ext <<EOF
8694 #line 8695 "configure"
8695 #include "confdefs.h"
8696 #include <linux/version.h>
8698 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8699 { (eval echo configure
:8700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8700 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8701 if test -z "$ac_err"; then
8703 eval "ac_cv_header_$ac_safe=yes"
8706 echo "configure: failed program was:" >&5
8707 cat conftest.
$ac_ext >&5
8709 eval "ac_cv_header_$ac_safe=no"
8713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8714 echo "$ac_t""yes" 1>&6
8717 echo "$ac_t""no" 1>&6
8722 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8724 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8725 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8727 if test "$PACKAGE" = "gettext"; then
8738 if test -n "$ac_aux_dir"; then
8739 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8741 if test -z "$MKINSTALLDIRS"; then
8742 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8749 test -d po || mkdir po
8750 if test "x$srcdir" != "x."; then
8751 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8752 posrcprefix
="$srcdir/"
8754 posrcprefix
="../$srcdir/"
8760 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8761 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8763 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8765 # Windows32 Registry support for specifying GCC installation paths.
8766 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8767 if test "${enable_win32_registry+set}" = set; then
8768 enableval
="$enable_win32_registry"
8773 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8774 echo "configure:8775: checking whether windows registry support is requested" >&5
8775 if test x
$enable_win32_registry != xno
; then
8776 cat >> confdefs.h
<<\EOF
8777 #define ENABLE_WIN32_REGISTRY 1
8780 echo "$ac_t""yes" 1>&6
8782 echo "$ac_t""no" 1>&6
8785 # Check if user specified a different registry key.
8786 case x
${enable_win32_registry} in
8789 gcc_cv_win32_registry_key
="$VERSION"
8792 # no registry lookup.
8793 gcc_cv_win32_registry_key
=''
8796 # user-specified key.
8797 gcc_cv_win32_registry_key
="$enable_win32_registry"
8801 if test x
$enable_win32_registry != xno
; then
8802 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8803 echo "configure:8804: checking registry key on windows hosts" >&5
8804 cat >> confdefs.h
<<EOF
8805 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8808 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8811 # Get an absolute path to the GCC top-level source directory
8817 # Conditionalize the makefile for this host machine.
8818 # Make-host contains the concatenation of all host makefile fragments
8819 # [there can be more than one]. This file is built by configure.frag.
8820 host_overrides
=Make-host
8821 dep_host_xmake_file
=
8822 for f
in ..
${host_xmake_file}
8824 if test -f ${srcdir}/config
/$f
8826 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8830 # Conditionalize the makefile for this target machine.
8831 # Make-target contains the concatenation of all host makefile fragments
8832 # [there can be more than one]. This file is built by configure.frag.
8833 target_overrides
=Make-target
8835 for f
in ..
${tmake_file}
8837 if test -f ${srcdir}/config
/$f
8839 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8843 # If the host doesn't support symlinks, modify CC in
8844 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8845 # Otherwise, we can use "CC=$(CC)".
8847 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8849 cc_set_by_configure
="\$(CC)"
8850 quoted_cc_set_by_configure
="\$(CC)"
8851 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8854 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8856 symbolic_link
="cp -p"
8860 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8861 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8862 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8866 out_object_file
=`basename $out_file .c`.o
8869 for f
in $tm_file; do
8872 tm_file_list
="${tm_file_list} $f" ;;
8873 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8878 for f
in $host_xm_file; do
8880 auto-host.h | gansidecl.h | hwint.h
)
8881 host_xm_file_list
="${host_xm_file_list} $f" ;;
8882 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8887 for f
in $build_xm_file; do
8889 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8890 build_xm_file_list
="${build_xm_file_list} $f" ;;
8891 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8895 # Define macro CROSS_COMPILE in compilation
8896 # if this is a cross-compiler.
8897 # Also use all.cross instead of all.internal
8898 # and add cross-make to Makefile.
8899 cross_overrides
="/dev/null"
8900 if test x
$host != x
$target
8902 cross_defines
="CROSS=-DCROSS_COMPILE"
8903 cross_overrides
="${topdir}/cross-make"
8906 # If this is a cross-compiler that does not
8907 # have its own set of headers then define
8910 # If this is using newlib, then define inhibit_libc in
8911 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8912 # libgcc.a, but that's OK because newlib should have its own version of
8915 if test x
$host != x
$target && test x
$with_headers = x
; then
8916 inhibit_libc
=-Dinhibit_libc
8918 if test x
$with_newlib = xyes
; then
8919 inhibit_libc
=-Dinhibit_libc
8924 # When building gcc with a cross-compiler, we need to fix a few things.
8925 # This must come after cross-make as we want all.build to override
8927 build_overrides
="/dev/null"
8928 if test x
$build != x
$host
8930 build_overrides
="${topdir}/build-make"
8933 # Expand extra_headers to include complete path.
8934 # This substitutes for lots of t-* files.
8936 if test "x$extra_headers" = x
8939 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8940 for file in $extra_headers;
8942 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8946 if test x
$use_collect2 = xno
; then
8950 # Add a definition of USE_COLLECT2 if system wants one.
8951 # Also tell toplev.c what to do.
8952 # This substitutes for lots of t-* files.
8953 if test x
$use_collect2 = x
8958 will_use_collect2
="collect2"
8959 maybe_use_collect2
="-DUSE_COLLECT2"
8963 # Set MD_DEPS if the real md file is in md.pre-cpp.
8964 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8965 # for line oriented comments, so we must always use a GNU cpp. If
8966 # building gcc with a cross compiler, use the cross compiler just
8967 # built. Otherwise, we can use the cpp just built.
8969 if test "x$md_cppflags" = x
8971 md_file_sub
=$srcdir/config
/$md_file
8976 # If we have gas in the build tree, make a link to it.
8977 if test -f ..
/gas
/Makefile
; then
8978 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8981 # If we have nm in the build tree, make a link to it.
8982 if test -f ..
/binutils
/Makefile
; then
8983 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8986 # If we have ld in the build tree, make a link to it.
8987 if test -f ..
/ld
/Makefile
; then
8988 # if test x$use_collect2 = x; then
8989 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8991 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8995 # Figure out what assembler we will be using.
8996 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
8997 echo "configure:8998: checking what assembler to use" >&5
8999 gcc_cv_gas_major_version
=
9000 gcc_cv_gas_minor_version
=
9001 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9002 if test -x "$DEFAULT_ASSEMBLER"; then
9003 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9004 elif test -x "$AS"; then
9006 elif test -x as
$host_exeext; then
9007 # Build using assembler in the current directory.
9008 gcc_cv_as
=.
/as
$host_exeext
9009 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
9010 # Single tree build which includes gas.
9011 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
9013 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9014 if test x
$gcc_cv_gas_version != x
; then
9018 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9019 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9022 if test "x$gcc_cv_as" = x
-a x
$host = x
$target; then
9024 # Search the same directories that the installed compiler will
9025 # search. Else we may find the wrong assembler and lose. If we
9026 # do not find a suitable assembler binary, then try the user's
9029 # Also note we have to check MD_EXEC_PREFIX before checking the
9030 # user's path. Unfortunately, there is no good way to get at the
9031 # value of MD_EXEC_PREFIX here. So we do a brute force search
9032 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9033 # to be fixed as part of the make/configure rewrite too.
9035 if test "x$exec_prefix" = xNONE
; then
9036 if test "x$prefix" = xNONE
; then
9037 test_prefix
=/usr
/local
9042 test_prefix
=$exec_prefix
9045 # If the loop below does not find an assembler, then use whatever
9046 # one we can find in the users's path.
9050 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
9051 $test_prefix/lib/gcc-lib/$target \
9052 /usr/lib/gcc/$target/$gcc_version \
9053 /usr/lib/gcc/$target \
9054 $test_prefix/$target/bin/$target/$gcc_version \
9055 $test_prefix/$target/bin \
9060 /bsd43/usr/lib/cmplrs/cc \
9061 /usr/cross64/usr/bin \
9062 /usr/lib/cmplrs/cc \
9063 /sysv/usr/lib/cmplrs/cc \
9064 /svr4/usr/lib/cmplrs/cc \
9067 for dir
in $test_dirs; do
9068 if test -f $dir/as
$host_exeext; then
9069 gcc_cv_as
=$dir/as
$host_exeext
9074 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9075 echo "$ac_t"""newly built gas
"" 1>&6
9077 echo "$ac_t""$gcc_cv_as" 1>&6
9080 # Figure out what nm we will be using.
9081 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
9082 echo "configure:9083: checking what nm to use" >&5
9083 if test -x nm
$host_exeext; then
9084 gcc_cv_nm
=.
/nm
$host_exeext
9085 elif test x
$host = x
$target; then
9087 gcc_cv_nm
=nm
$host_exeext
9089 echo "$ac_t""$gcc_cv_nm" 1>&6
9091 # Figure out what assembler alignment features are present.
9092 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
9093 echo "configure:9094: checking assembler alignment features" >&5
9094 gcc_cv_as_alignment_features
=
9095 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9096 # Gas version 2.6 and later support for .balign and .p2align.
9097 # bytes to skip when using .p2align.
9098 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
9099 gcc_cv_as_alignment_features
=".balign and .p2align"
9100 cat >> confdefs.h
<<\EOF
9101 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9105 # Gas version 2.8 and later support specifying the maximum
9106 # bytes to skip when using .p2align.
9107 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
9108 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9109 cat >> confdefs.h
<<\EOF
9110 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9114 elif test x
$gcc_cv_as != x
; then
9115 # Check if we have .balign and .p2align
9116 echo ".balign 4" > conftest.s
9117 echo ".p2align 2" >> conftest.s
9118 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9119 gcc_cv_as_alignment_features
=".balign and .p2align"
9120 cat >> confdefs.h
<<\EOF
9121 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9125 rm -f conftest.s conftest.o
9126 # Check if specifying the maximum bytes to skip when
9127 # using .p2align is supported.
9128 echo ".p2align 4,,7" > conftest.s
9129 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9130 gcc_cv_as_alignment_features
=".p2align including maximum skip"
9131 cat >> confdefs.h
<<\EOF
9132 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9136 rm -f conftest.s conftest.o
9138 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
9140 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
9141 echo "configure:9142: checking assembler subsection support" >&5
9142 gcc_cv_as_subsections
=
9143 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9144 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
9145 gcc_cv_as_subsections
="working .subsection -1"
9147 elif test x
$gcc_cv_as != x
; then
9148 # Check if we have .subsection
9149 echo ".subsection 1" > conftest.s
9150 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9151 gcc_cv_as_subsections
=".subsection"
9152 if test x
$gcc_cv_nm != x
; then
9153 cat > conftest.s
<<EOF
9154 conftest_label1: .word 0
9156 conftest_label2: .word 0
9159 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9160 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9161 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9162 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
9165 gcc_cv_as_subsections
="working .subsection -1"
9170 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9172 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
9173 cat >> confdefs.h
<<\EOF
9174 #define HAVE_GAS_SUBSECTION_ORDERING 1
9178 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
9180 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6
9181 echo "configure:9182: checking assembler weak support" >&5
9183 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9184 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
9185 gcc_cv_as_weak
="yes"
9187 elif test x
$gcc_cv_as != x
; then
9188 # Check if we have .weak
9189 echo " .weak foobar" > conftest.s
9190 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9191 gcc_cv_as_weak
="yes"
9193 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9195 if test x
"$gcc_cv_as_weak" = xyes
; then
9196 cat >> confdefs.h
<<\EOF
9197 #define HAVE_GAS_WEAK 1
9201 echo "$ac_t""$gcc_cv_as_weak" 1>&6
9203 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6
9204 echo "configure:9205: checking assembler hidden support" >&5
9206 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9207 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
9208 gcc_cv_as_hidden
="yes"
9210 elif test x
$gcc_cv_as != x
; then
9211 # Check if we have .hidden
9212 echo " .hidden foobar" > conftest.s
9213 echo "foobar:" >> conftest.s
9214 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9215 gcc_cv_as_hidden
="yes"
9217 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
9219 if test x
"$gcc_cv_as_hidden" = xyes
; then
9220 cat >> confdefs.h
<<\EOF
9221 #define HAVE_GAS_HIDDEN 1
9225 echo "$ac_t""$gcc_cv_as_hidden" 1>&6
9229 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
9230 echo "configure:9231: checking assembler .register pseudo-op support" >&5
9231 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9235 gcc_cv_as_register_pseudo_op
=unknown
9236 if test x
$gcc_cv_as != x
; then
9237 # Check if we have .register
9238 echo ".register %g2, #scratch" > conftest.s
9239 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9240 gcc_cv_as_register_pseudo_op
=yes
9242 gcc_cv_as_register_pseudo_op
=no
9244 rm -f conftest.s conftest.o
9249 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
9250 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
9251 cat >> confdefs.h
<<\EOF
9252 #define HAVE_AS_REGISTER_PSEUDO_OP 1
9257 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6
9258 echo "configure:9259: checking assembler supports -relax" >&5
9259 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then
9260 echo $ac_n "(cached) $ac_c" 1>&6
9263 gcc_cv_as_relax_opt
=unknown
9264 if test x
$gcc_cv_as != x
; then
9265 # Check if gas supports -relax
9266 echo ".text" > conftest.s
9267 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
9268 gcc_cv_as_relax_opt
=yes
9270 gcc_cv_as_relax_opt
=no
9272 rm -f conftest.s conftest.o
9277 echo "$ac_t""$gcc_cv_as_relax_opt" 1>&6
9278 if test "x$gcc_cv_as_relax_opt" = xyes
; then
9279 cat >> confdefs.h
<<\EOF
9280 #define HAVE_AS_RELAX_OPTION 1
9287 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
9288 echo "configure:9289: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
9289 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
9290 echo $ac_n "(cached) $ac_c" 1>&6
9293 if test -n "$gcc_cv_as"; then
9294 echo ".xword foo" > conftest.s
9295 gcc_cv_as_flags64
=no
9296 for flag
in "-xarch=v9" "-64 -Av9"; do
9297 if $gcc_cv_as $flag -o conftest.o conftest.s \
9298 > /dev
/null
2>&1; then
9299 gcc_cv_as_flags64
=$flag
9303 rm -f conftest.s conftest.o
9305 if test "$gas" = yes; then
9306 gcc_cv_as_flags64
="-64 -Av9"
9308 gcc_cv_as_flags64
="-xarch=v9"
9314 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
9315 if test "x$gcc_cv_as_flags64" = xno
; then
9317 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9318 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
9321 cat >> confdefs.h
<<EOF
9322 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
9327 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
9331 if test "x$gcc_cv_as_flags64" != xno
; then
9332 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
9333 echo "configure:9334: checking for assembler offsetable %lo() support" >&5
9334 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
9335 echo $ac_n "(cached) $ac_c" 1>&6
9338 gcc_cv_as_offsetable_lo10
=unknown
9339 if test "x$gcc_cv_as" != x
; then
9340 # Check if assembler has offsetable %lo()
9341 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
9342 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
9343 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
9345 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
9346 > /dev
/null
2>&1; then
9347 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
9348 gcc_cv_as_offsetable_lo10
=no
9350 gcc_cv_as_offsetable_lo10
=yes
9353 gcc_cv_as_offsetable_lo10
=no
9355 rm -f conftest.s conftest.o conftest1.s conftest1.o
9360 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
9361 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
9362 cat >> confdefs.h
<<\EOF
9363 #define HAVE_AS_OFFSETABLE_LO10 1
9371 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
9372 echo "configure:9373: checking assembler instructions" >&5
9373 gcc_cv_as_instructions
=
9374 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
9375 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
9376 gcc_cv_as_instructions
="filds fists"
9378 elif test x
$gcc_cv_as != x
; then
9379 set "filds fists" "filds mem; fists mem"
9382 echo "$2" > conftest.s
9383 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
9384 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
9388 rm -f conftest.s conftest.o
9390 if test x
"$gcc_cv_as_instructions" != x
; then
9391 cat >> confdefs.h
<<EOF
9392 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | tr 'a-z ' 'A-Z_'` 1
9396 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
9400 # Figure out what language subdirectories are present.
9401 # Look if the user specified --enable-languages="..."; if not, use
9402 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9404 if test x
"${enable_languages+set}" != xset
; then
9405 if test x
"${LANGUAGES+set}" = xset
; then
9406 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
9408 enable_languages
=all
9411 if test x
"${enable_languages}" = x
; then
9412 { echo "configure: error: --enable-languages needs at least one argument" 1>&2; exit 1; }
9416 for lang
in ${srcdir}/*/config-lang.
in ..
9420 # The odd quoting in the next line works around
9421 # an apparent bug in bash 1.12 on linux.
9422 ${srcdir}/[*]/config-lang.
in) ;;
9424 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
9425 if test "x$lang_alias" = x
9427 echo "$lang doesn't set \$language." 1>&2
9430 if test x
"${enable_languages}" = xall
&& test x
"${lang_alias}" != xCHILL
; then
9433 case "${enable_languages}" in
9434 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
9442 if test x"${add_this_lang}" = xyes; then
9444 ${srcdir}/ada/config-lang.in)
9445 if test x$gnat = xyes ; then
9446 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9450 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
9458 # Make gthr-default.h if we have a thread file.
9460 if test $thread_file != single; then
9461 rm -f gthr-default.h
9462 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9463 gthread_flags
=-DHAVE_GTHR_DEFAULT
9467 # Find out what GC implementation we want, or may, use.
9468 # Check whether --with-gc or --without-gc was given.
9469 if test "${with_gc+set}" = set; then
9476 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
9480 if test $ac_cv_func_mmap_anywhere = yes \
9481 ||
test $ac_cv_func_valloc = yes; then
9489 echo "Using $GGC for garbage collection."
9491 # Use the system's zlib library.
9493 zlibinc
="-I\$(srcdir)/../zlib"
9494 # Check whether --with-system-zlib or --without-system-zlib was given.
9495 if test "${with_system_zlib+set}" = set; then
9496 withval
="$with_system_zlib"
9505 # Build a new-abi (c++) system
9506 # Check whether --enable-new-gxx-abi or --disable-new-gxx-abi was given.
9507 if test "${enable_new_gxx_abi+set}" = set; then
9508 enableval
="$enable_new_gxx_abi"
9509 cat >> confdefs.h
<<\EOF
9510 #define ENABLE_NEW_GXX_ABI 1
9513 GXX_ABI_FLAG
='-fnew-abi'
9514 echo "Building a new-abi g++ compiler."
9520 # Build a new-libstdc++ system (ie libstdc++-v3)
9521 echo $ac_n "checking for libstdc++ to install""... $ac_c" 1>&6
9522 echo "configure:9523: checking for libstdc++ to install" >&5
9523 # Check whether --enable-libstdcxx-v3 or --disable-libstdcxx-v3 was given.
9524 if test "${enable_libstdcxx_v3+set}" = set; then
9525 enableval
="$enable_libstdcxx_v3"
9526 enable_libstdcxx_v3
="$enableval"
9528 enable_libstdcxx_v3
=no
9532 if test x
$enable_libstdcxx_v3 = xyes
; then
9533 echo "$ac_t""v3" 1>&6
9537 echo "$ac_t""v2" 1>&6
9541 cat >> confdefs.h
<<EOF
9542 #define ENABLE_STD_NAMESPACE $ac_esn
9548 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
9549 echo "configure:9550: checking whether to enable maintainer-specific portions of Makefiles" >&5
9550 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9551 if test "${enable_maintainer_mode+set}" = set; then
9552 enableval
="$enable_maintainer_mode"
9553 maintainer_mode
=$enableval
9559 echo "$ac_t""$maintainer_mode" 1>&6
9561 if test "$maintainer_mode" = "yes"; then
9567 # Make empty files to contain the specs and options for each language.
9568 # Then add #include lines to for a compiler that has specs and/or options.
9573 rm -f specs.h options.h gencheck.h
9574 touch specs.h options.h gencheck.h
9575 for subdir
in .
$subdirs
9577 if test -f $srcdir/$subdir/lang-specs.h
; then
9578 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
9579 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
9581 if test -f $srcdir/$subdir/lang-options.h
; then
9582 echo "#include \"$subdir/lang-options.h\"" >>options.h
9583 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
9585 if test -f $srcdir/$subdir/$subdir-tree.def
; then
9586 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
9587 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
9591 # These (without "all_") are set in each config-lang.in.
9592 # `language' must be a single word so is spelled singularly.
9598 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
9599 # List of language makefile fragments.
9604 # Add the language fragments.
9605 # Languages are added via two mechanisms. Some information must be
9606 # recorded in makefile variables, these are defined in config-lang.in.
9607 # We accumulate them and plug them into the main Makefile.
9608 # The other mechanism is a set of hooks for each of the main targets
9609 # like `clean', `install', etc.
9611 language_fragments
="Make-lang"
9612 language_hooks
="Make-hooks"
9614 for s
in ..
$subdirs
9626 .
${srcdir}/$s/config-lang.
in
9627 if test "x$language" = x
9629 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
9632 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in $outputs"
9633 all_languages
="$all_languages $language"
9634 if test "x$boot_language" = xyes
9636 all_boot_languages
="$all_boot_languages $language"
9638 all_compilers
="$all_compilers $compilers"
9639 all_stagestuff
="$all_stagestuff $stagestuff"
9640 all_diff_excludes
="$all_diff_excludes $diff_excludes"
9641 all_headers
="$all_headers $headers"
9642 all_outputs
="$all_outputs $outputs"
9643 all_lib2funcs
="$all_lib2funcs $lib2funcs"
9647 # Since we can't use `::' targets, we link each language in
9648 # with a set of hooks, reached indirectly via lang.${target}.
9652 target_list
="all.build all.cross start.encap rest.encap \
9654 install-normal install-common install-info install-man \
9656 mostlyclean clean distclean extraclean maintainer-clean \
9657 stage1 stage2 stage3 stage4"
9658 for t
in $target_list
9661 for lang
in ..
$all_languages
9663 if test $lang != ".."; then
9667 echo "lang.$t: $x" >> Make-hooks
9670 # If we're not building in srcdir, create .gdbinit.
9672 if test ! -f Makefile.
in; then
9673 echo "dir ." > .gdbinit
9674 echo "dir ${srcdir}" >> .gdbinit
9675 if test x
$gdb_needs_out_file_path = xyes
9677 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
9679 if test "x$subdirs" != x
; then
9682 echo "dir ${srcdir}/$s" >> .gdbinit
9685 echo "source ${srcdir}/.gdbinit" >> .gdbinit
9688 # Define variables host_canonical and build_canonical
9689 # because some Cygnus local changes in the Makefile depend on them.
9690 build_canonical
=${build}
9691 host_canonical
=${host}
9693 if test "${host}" != "${target}" ; then
9694 target_subdir
=${target}/
9700 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
9701 # absolute path for gcc_tooldir based on inserting the number of up-directory
9702 # movements required to get from $(exec_prefix) to $(prefix) into the basic
9703 # $(libsubdir)/@(unlibsubdir) based path.
9704 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
9705 # make and thus we'd get different behavior depending on where we built the
9707 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
9708 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
9710 # An explanation of the sed strings:
9711 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
9712 # -e 's|/$||' match a trailing forward slash and eliminates it
9713 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9714 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9716 # (*) Note this pattern overwrites the first character of the string
9717 # with a forward slash if one is not already present. This is not a
9718 # problem because the exact names of the sub-directories concerned is
9719 # unimportant, just the number of them matters.
9721 # The practical upshot of these patterns is like this:
9723 # prefix exec_prefix result
9724 # ------ ----------- ------
9726 # /foo/ /foo/bar ../
9727 # /foo /foo/bar/ ../
9728 # /foo/ /foo/bar/ ../
9729 # /foo /foo/bar/ugg ../../
9732 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9737 # Nothing to do for FLOAT_H, float_format already handled.
9741 # Process the language and host/target makefile fragments.
9742 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9744 # Substitute configuration variables
9801 # Echo that links are built
9802 if test x
$host = x
$target
9810 if test x
$host != x
$build
9812 str3
=" on a $build system"
9815 if test "x$str2" != x ||
test "x$str3" != x
9820 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9822 if test "x$str2" != x ||
test "x$str3" != x
9824 echo " ${str2}${str3}." 1>&2
9827 # Truncate the target if necessary
9828 if test x
$host_truncate_target != x
; then
9829 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9832 # Configure the subdirectories
9833 # AC_CONFIG_SUBDIRS($subdirs)
9835 # Create the Makefile
9836 # and configure language subdirectories
9838 cat > confcache
<<\EOF
9839 # This file is a shell script that caches the results of configure
9840 # tests run on this system so they can be shared between configure
9841 # scripts and configure runs. It is not useful on other systems.
9842 # If it contains results you don't want to keep, you may remove or edit it.
9844 # By default, configure uses ./config.cache as the cache file,
9845 # creating it if it does not exist already. You can give configure
9846 # the --cache-file=FILE option to use a different cache file; that is
9847 # what configure does when it calls configure scripts in
9848 # subdirectories, so they share the cache.
9849 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9850 # config.status only pays attention to the cache file if you give it the
9851 # --recheck option to rerun configure.
9854 # The following way of writing the cache mishandles newlines in values,
9855 # but we know of no workaround that is simple, portable, and efficient.
9856 # So, don't put newlines in cache variables' values.
9857 # Ultrix sh set writes to stderr and can't be redirected directly,
9858 # and sets the high bit in the cache file unless we assign to the vars.
9860 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9862 # `set' does not quote correctly, so add quotes (double-quote substitution
9863 # turns \\\\ into \\, and sed turns \\ into \).
9865 -e "s/'/'\\\\''/g" \
9866 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9869 # `set' quotes correctly as required by POSIX, so do not add quotes.
9870 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9873 if cmp -s $cache_file confcache
; then
9876 if test -w $cache_file; then
9877 echo "updating cache $cache_file"
9878 cat confcache
> $cache_file
9880 echo "not updating unwritable cache $cache_file"
9885 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9887 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9888 # Let make expand exec_prefix.
9889 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9891 # Any assignment to VPATH causes Sun make to only execute
9892 # the first set of double-colon rules, so remove it if not needed.
9893 # If there is a colon in the path, we need to keep it.
9894 if test "x$srcdir" = x.
; then
9895 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9898 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9900 DEFS
=-DHAVE_CONFIG_H
9902 # Without the "./", some shells look in PATH for config.status.
9903 : ${CONFIG_STATUS=./config.status}
9905 echo creating
$CONFIG_STATUS
9906 rm -f $CONFIG_STATUS
9907 cat > $CONFIG_STATUS <<EOF
9909 # Generated automatically by configure.
9910 # Run this file to recreate the current configuration.
9911 # This directory was configured as follows,
9912 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9914 # $0 $ac_configure_args
9916 # Compiler output produced by configure, useful for debugging
9917 # configure, is in ./config.log if it exists.
9919 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9922 case "\$ac_option" in
9923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9924 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9925 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9926 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9927 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9929 -help | --help | --hel | --he | --h)
9930 echo "\$ac_cs_usage"; exit 0 ;;
9931 *) echo "\$ac_cs_usage"; exit 1 ;;
9935 ac_given_srcdir=$srcdir
9937 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9939 cat >> $CONFIG_STATUS <<EOF
9941 # Protect against being on the right side of a sed subst in config.status.
9942 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9943 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9947 s%@CFLAGS@%$CFLAGS%g
9948 s%@CPPFLAGS@%$CPPFLAGS%g
9949 s%@CXXFLAGS@%$CXXFLAGS%g
9950 s%@FFLAGS@%$FFLAGS%g
9952 s%@LDFLAGS@%$LDFLAGS%g
9954 s%@exec_prefix@%$exec_prefix%g
9955 s%@prefix@%$prefix%g
9956 s%@program_transform_name@%$program_transform_name%g
9957 s%@bindir@%$bindir%g
9958 s%@sbindir@%$sbindir%g
9959 s%@libexecdir@%$libexecdir%g
9960 s%@datadir@%$datadir%g
9961 s%@sysconfdir@%$sysconfdir%g
9962 s%@sharedstatedir@%$sharedstatedir%g
9963 s%@localstatedir@%$localstatedir%g
9964 s%@libdir@%$libdir%g
9965 s%@includedir@%$includedir%g
9966 s%@oldincludedir@%$oldincludedir%g
9967 s%@infodir@%$infodir%g
9968 s%@mandir@%$mandir%g
9969 s%@maybe_cpplib@%$maybe_cpplib%g
9970 s%@enable_shared@%$enable_shared%g
9972 s%@host_alias@%$host_alias%g
9973 s%@host_cpu@%$host_cpu%g
9974 s%@host_vendor@%$host_vendor%g
9975 s%@host_os@%$host_os%g
9976 s%@target@%$target%g
9977 s%@target_alias@%$target_alias%g
9978 s%@target_cpu@%$target_cpu%g
9979 s%@target_vendor@%$target_vendor%g
9980 s%@target_os@%$target_os%g
9982 s%@build_alias@%$build_alias%g
9983 s%@build_cpu@%$build_cpu%g
9984 s%@build_vendor@%$build_vendor%g
9985 s%@build_os@%$build_os%g
9987 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
9988 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
9989 s%@strict1_warn@%$strict1_warn%g
9990 s%@warn_cflags@%$warn_cflags%g
9991 s%@stage1_cflags@%$stage1_cflags%g
9992 s%@SET_MAKE@%$SET_MAKE%g
9995 s%@LEXLIB@%$LEXLIB%g
9998 s%@RANLIB@%$RANLIB%g
10000 s%@INSTALL@%$INSTALL%g
10001 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10002 s%@INSTALL_DATA@%$INSTALL_DATA%g
10005 s%@MAKEINFO@%$MAKEINFO%g
10006 s%@BUILD_INFO@%$BUILD_INFO%g
10007 s%@INSTALL_INFO@%$INSTALL_INFO%g
10008 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g
10009 s%@vfprintf@%$vfprintf%g
10010 s%@doprint@%$doprint%g
10011 s%@manext@%$manext%g
10012 s%@objext@%$objext%g
10013 s%@PACKAGE@%$PACKAGE%g
10014 s%@VERSION@%$VERSION%g
10015 s%@CHECK_PO@%$CHECK_PO%g
10016 s%@ALLOCA@%$ALLOCA%g
10017 s%@USE_NLS@%$USE_NLS%g
10018 s%@MSGFMT@%$MSGFMT%g
10019 s%@GMSGFMT@%$GMSGFMT%g
10020 s%@XGETTEXT@%$XGETTEXT%g
10021 s%@GENCAT@%$GENCAT%g
10022 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
10023 s%@CATALOGS@%$CATALOGS%g
10024 s%@CATOBJEXT@%$CATOBJEXT%g
10025 s%@DATADIRNAME@%$DATADIRNAME%g
10026 s%@GMOFILES@%$GMOFILES%g
10027 s%@INSTOBJEXT@%$INSTOBJEXT%g
10028 s%@INTLDEPS@%$INTLDEPS%g
10029 s%@INTLLIBS@%$INTLLIBS%g
10030 s%@INTLOBJS@%$INTLOBJS%g
10031 s%@POFILES@%$POFILES%g
10033 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
10035 s%@GT_YES@%$GT_YES%g
10036 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
10038 s%@inhibit_libc@%$inhibit_libc%g
10039 s%@gthread_flags@%$gthread_flags%g
10041 s%@zlibdir@%$zlibdir%g
10042 s%@zlibinc@%$zlibinc%g
10043 s%@GXX_ABI_FLAG@%$GXX_ABI_FLAG%g
10044 s%@HAVE_LIBSTDCXX_V3@%$HAVE_LIBSTDCXX_V3%g
10046 s%@build_canonical@%$build_canonical%g
10047 s%@host_canonical@%$host_canonical%g
10048 s%@target_subdir@%$target_subdir%g
10049 s%@gcc_tooldir@%$gcc_tooldir%g
10050 s%@dollar@%$dollar%g
10051 s%@objdir@%$objdir%g
10052 s%@subdirs@%$subdirs%g
10053 s%@all_boot_languages@%$all_boot_languages%g
10054 s%@all_compilers@%$all_compilers%g
10055 s%@all_diff_excludes@%$all_diff_excludes%g
10056 s%@all_headers@%$all_headers%g
10057 s%@all_lang_makefiles@%$all_lang_makefiles%g
10058 s%@all_languages@%$all_languages%g
10059 s%@all_lib2funcs@%$all_lib2funcs%g
10060 s%@all_stagestuff@%$all_stagestuff%g
10061 s%@build_exeext@%$build_exeext%g
10062 s%@build_install_headers_dir@%$build_install_headers_dir%g
10063 s%@build_xm_file_list@%$build_xm_file_list%g
10064 s%@cc_set_by_configure@%$cc_set_by_configure%g
10065 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
10066 s%@cpp_install_dir@%$cpp_install_dir%g
10067 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
10068 s%@dep_tmake_file@%$dep_tmake_file%g
10069 s%@extra_c_flags@%$extra_c_flags%g
10070 s%@extra_headers_list@%$extra_headers_list%g
10071 s%@extra_objs@%$extra_objs%g
10072 s%@extra_parts@%$extra_parts%g
10073 s%@extra_passes@%$extra_passes%g
10074 s%@extra_programs@%$extra_programs%g
10075 s%@float_h_file@%$float_h_file%g
10076 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
10077 s%@gcc_version@%$gcc_version%g
10078 s%@gcc_version_full@%$gcc_version_full%g
10079 s%@gcc_version_trigger@%$gcc_version_trigger%g
10080 s%@host_exeext@%$host_exeext%g
10081 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
10082 s%@host_xm_file_list@%$host_xm_file_list%g
10083 s%@install@%$install%g
10084 s%@lang_options_files@%$lang_options_files%g
10085 s%@lang_specs_files@%$lang_specs_files%g
10086 s%@lang_tree_files@%$lang_tree_files%g
10087 s%@local_prefix@%$local_prefix%g
10088 s%@maybe_use_collect2@%$maybe_use_collect2%g
10089 s%@md_file@%$md_file%g
10090 s%@objc_boehm_gc@%$objc_boehm_gc%g
10091 s%@out_file@%$out_file%g
10092 s%@out_object_file@%$out_object_file%g
10093 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
10094 s%@symbolic_link@%$symbolic_link%g
10095 s%@thread_file@%$thread_file%g
10096 s%@tm_file_list@%$tm_file_list%g
10097 s%@will_use_collect2@%$will_use_collect2%g
10098 /@target_overrides@/r $target_overrides
10099 s%@target_overrides@%%g
10100 /@host_overrides@/r $host_overrides
10101 s%@host_overrides@%%g
10102 s%@cross_defines@%$cross_defines%g
10103 /@cross_overrides@/r $cross_overrides
10104 s%@cross_overrides@%%g
10105 /@build_overrides@/r $build_overrides
10106 s%@build_overrides@%%g
10107 /@language_fragments@/r $language_fragments
10108 s%@language_fragments@%%g
10109 /@language_hooks@/r $language_hooks
10110 s%@language_hooks@%%g
10115 cat >> $CONFIG_STATUS <<\EOF
10117 # Split the substitutions into bite-sized pieces for seds with
10118 # small command number limits, like on Digital OSF/1 and HP-UX.
10119 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
10120 ac_file
=1 # Number of current file.
10121 ac_beg
=1 # First line for current file.
10122 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
10125 while $ac_more_lines; do
10126 if test $ac_beg -gt 1; then
10127 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
10129 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
10131 if test ! -s conftest.s
$ac_file; then
10132 ac_more_lines
=false
10133 rm -f conftest.s
$ac_file
10135 if test -z "$ac_sed_cmds"; then
10136 ac_sed_cmds
="sed -f conftest.s$ac_file"
10138 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
10140 ac_file
=`expr $ac_file + 1`
10142 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
10145 if test -z "$ac_sed_cmds"; then
10150 cat >> $CONFIG_STATUS <<EOF
10152 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
10154 cat >> $CONFIG_STATUS <<\EOF
10155 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
10156 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10158 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10159 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10160 *) ac_file_in
="${ac_file}.in" ;;
10163 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10165 # Remove last slash and all that follows it. Not all systems have dirname.
10166 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10167 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
10168 # The file is in a subdirectory.
10169 test ! -d "$ac_dir" && mkdir
"$ac_dir"
10170 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
10171 # A "../" for each directory in $ac_dir_suffix.
10172 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10174 ac_dir_suffix
= ac_dots
=
10177 case "$ac_given_srcdir" in
10179 if test -z "$ac_dots"; then top_srcdir
=.
10180 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10181 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
10182 *) # Relative path.
10183 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10184 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
10188 echo creating
"$ac_file"
10190 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10192 *Makefile
*) ac_comsub
="1i\\
10193 # $configure_input" ;;
10197 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10199 s%@configure_input@%$configure_input%g
10200 s%@srcdir@%$srcdir%g
10201 s%@top_srcdir@%$top_srcdir%g
10202 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
10206 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10207 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10209 # ac_d sets the value in "#define NAME VALUE" lines.
10210 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10211 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
10214 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10215 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10216 ac_uB
='\([ ]\)%\1#\2define\3'
10219 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10220 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10221 ac_eB
='$%\1#\2define\3'
10225 if test "${CONFIG_HEADERS+set}" != set; then
10227 cat >> $CONFIG_STATUS <<EOF
10228 CONFIG_HEADERS="auto-host.h:config.in"
10230 cat >> $CONFIG_STATUS <<\EOF
10232 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
10233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10235 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
10236 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
10237 *) ac_file_in
="${ac_file}.in" ;;
10240 echo creating
$ac_file
10242 rm -f conftest.frag conftest.
in conftest.out
10243 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10244 cat $ac_file_inputs > conftest.
in
10248 # Transform confdefs.h into a sed script conftest.vals that substitutes
10249 # the proper values into config.h.in to produce config.h. And first:
10250 # Protect against being on the right side of a sed subst in config.status.
10251 # Protect against being in an unquoted here document in config.status.
10252 rm -f conftest.vals
10253 cat > conftest.hdr
<<\EOF
10256 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10260 sed -n -f conftest.hdr confdefs.h > conftest.vals
10263 # This sed command replaces #undef with comments. This is necessary, for
10264 # example, in the case of _POSIX_SOURCE, which is predefined and required
10265 # on some systems where configure will not decide to define it.
10266 cat >> conftest.vals <<\EOF
10267 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10270 # Break up conftest.vals because some shells have a limit on
10271 # the size of here documents, and old seds have small limits too.
10273 rm -f conftest.tail
10276 ac_lines=`grep -c . conftest.vals
`
10277 # grep -c gives empty output for an empty file on some AIX systems.
10278 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10279 # Write a limited-size here document to conftest.frag.
10280 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10281 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10283 sed -f conftest.frag conftest.in > conftest.out
10285 mv conftest.out conftest.in
10286 ' >> $CONFIG_STATUS
10287 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10288 rm -f conftest.vals
10289 mv conftest.tail conftest.vals
10291 rm -f conftest.vals
10293 cat >> $CONFIG_STATUS <<\EOF
10294 rm -f conftest.frag conftest.h
10295 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10296 cat conftest.in >> conftest.h
10298 if cmp -s $ac_file conftest.h 2>/dev/null; then
10299 echo "$ac_file is unchanged"
10302 # Remove last slash and all that follows it. Not all systems have dirname.
10303 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
10304 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10305 # The file is in a subdirectory.
10306 test ! -d "$ac_dir" && mkdir "$ac_dir"
10309 mv conftest.h $ac_file
10315 cat >> $CONFIG_STATUS <<EOF
10316 ac_sources="$nls_cv_header_libgt"
10317 ac_dests="$nls_cv_header_intl"
10320 cat >> $CONFIG_STATUS <<\EOF
10321 srcdir=$ac_given_srcdir
10322 while test -n "$ac_sources"; do
10323 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
10324 set $ac_sources; ac_source=$1; shift; ac_sources=$*
10326 echo "linking $srcdir/$ac_source to $ac_dest"
10328 if test ! -r $srcdir/$ac_source; then
10329 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
10333 # Make relative symlinks.
10334 # Remove last slash and all that follows it. Not all systems have dirname.
10335 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
10336 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
10337 # The dest file is in a subdirectory.
10338 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
10339 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
10340 # A "../" for each directory in $ac_dest_dir_suffix.
10341 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
10343 ac_dest_dir_suffix= ac_dots=
10347 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
10348 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
10351 # Make a symlink if possible; otherwise try a hard link.
10352 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10353 ln $srcdir/$ac_source $ac_dest; then :
10355 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
10359 cat >> $CONFIG_STATUS <<EOF
10365 target_alias='${target_alias}'
10367 subdirs='${subdirs}'
10368 symbolic_link='${symbolic_link}'
10369 program_transform_set='${program_transform_set}'
10370 program_transform_name='${program_transform_name}'
10371 dep_host_xmake_file='${dep_host_xmake_file}'
10372 host_xmake_file='${host_xmake_file}'
10373 dep_tmake_file='${dep_tmake_file}'
10374 tmake_file='${tmake_file}'
10375 thread_file='${thread_file}'
10376 gcc_version='${gcc_version}'
10377 gcc_version_full='${gcc_version_full}'
10378 gcc_version_trigger='${gcc_version_trigger}'
10379 local_prefix='${local_prefix}'
10380 build_install_headers_dir='${build_install_headers_dir}'
10381 build_exeext='${build_exeext}'
10382 host_exeext='${host_exeext}'
10383 out_file='${out_file}'
10384 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
10385 SET_MAKE='${SET_MAKE}'
10386 target_list='${target_list}'
10387 target_overrides='${target_overrides}'
10388 host_overrides='${host_overrides}'
10389 cross_defines='${cross_defines}'
10390 cross_overrides='${cross_overrides}'
10391 build_overrides='${build_overrides}'
10392 cpp_install_dir='${cpp_install_dir}'
10395 cat >> $CONFIG_STATUS <<\EOF
10396 case "$CONFIG_FILES" in *po/Makefile.in*)
10397 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10400 case x$CONFIG_HEADERS in
10401 xauto-host.h:config.in)
10404 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
10405 # bootstrapping and the installation procedure can still use
10406 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
10407 # FLAGS_TO_PASS has been modified to solve the problem there.
10408 # This is virtually a duplicate of what happens in configure.lang; we do
10409 # an extra check to make sure this only happens if ln -s can be used.
10410 if test "$symbolic_link" = "ln -s"; then
10411 for d in .. ${subdirs} ; do
10412 if test $d != ..; then
10415 for t in stage1 stage2 stage3 stage4 include
10418 $symbolic_link ../$t $t 2>/dev/null
10424 # Avoid having to add intl to our include paths.
10425 if test -f intl/libintl.h; then
10426 echo creating libintl.h
10427 echo '#include "intl/libintl.h"' >libintl.h
10432 chmod +x $CONFIG_STATUS
10433 rm -fr confdefs* $ac_clean_files
10434 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1