3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)."
19 --with-gnu-as arrange to work with GNU as."
21 --with-as arrange to use the specified as (full pathname)."
23 --with-stabs arrange to use stabs instead of host debug format."
25 --with-elf arrange to use ELF instead of host debug format."
27 --with-local-prefix=DIR specifies directory to put local include."
29 --with-gxx-include-dir=DIR
30 specifies directory to put g++ header files."
32 --enable-checking enable expensive run-time checks."
34 --disable-cpp don't provide a user-visible C preprocessor."
36 --with-cpp-install-dir=DIR
37 install the user visible C preprocessor in DIR
38 (relative to PREFIX) as well as PREFIX/bin."
40 --enable-cpplib use cpplib for the C preprocessor."
42 --enable-c-cpplib link cpplib directly into C and C++ compilers
43 (EXPERIMENTAL) (implies --enable-cpplib)."
45 --disable-fast-fixincludes
46 Disable the new fast fixincludes.
47 Run the old fixincludes script unconditionally"
49 --enable-c-mbchar Enable multibyte characters for C and C++."
51 --enable-threads enable thread usage for target GCC.
52 --enable-threads=LIB use LIB thread package for target GCC."
54 --enable-objc-gc enable the use of Boehm's garbage collector with
55 the GNU Objective-C runtime."
57 --enable-dwarf2 enable DWARF2 debugging as default."
59 --enable-nls use Native Language Support (disabled by default)"
61 --disable-nls do not use Native Language Support"
63 --with-included-gettext use the GNU gettext library included here"
65 --with-catgets use catgets functions if available"
67 --disable-win32-registry
68 Disable lookup of installation paths in the
69 Registry on Windows hosts.
70 --enable-win32-registry Enable registry lookup (default).
71 --enable-win32-registry=KEY
72 Use KEY instead of GCC version as the last portion
75 --with-gc={simple,page} Choose the garbage collection mechanism to use
78 # Initialize some variables set by options.
79 # The variables have the same names as the options, with
80 # dashes changed to underlines.
82 cache_file
=.
/config.cache
91 program_transform_name
=s
,x
,x
,
99 bindir
='${exec_prefix}/bin'
100 sbindir
='${exec_prefix}/sbin'
101 libexecdir
='${exec_prefix}/libexec'
102 datadir
='${prefix}/share'
103 sysconfdir
='${prefix}/etc'
104 sharedstatedir
='${prefix}/com'
105 localstatedir
='${prefix}/var'
106 libdir
='${exec_prefix}/lib'
107 includedir
='${prefix}/include'
108 oldincludedir
='/usr/include'
109 infodir
='${prefix}/info'
110 mandir
='${prefix}/man'
112 # Initialize some other variables.
115 SHELL
=${CONFIG_SHELL-/bin/sh}
116 # Maximum number of lines to put in a shell here document.
123 # If the previous option needs an argument, assign it.
124 if test -n "$ac_prev"; then
125 eval "$ac_prev=\$ac_option"
131 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 # Accept the important Cygnus configure options, so we can diagnose typos.
139 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
141 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
142 bindir
="$ac_optarg" ;;
144 -build |
--build |
--buil |
--bui |
--bu)
146 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
147 build
="$ac_optarg" ;;
149 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
150 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
151 ac_prev
=cache_file
;;
152 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
153 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
154 cache_file
="$ac_optarg" ;;
156 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
158 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
160 datadir
="$ac_optarg" ;;
162 -disable-* |
--disable-*)
163 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}=no" ;;
171 -enable-* |
--enable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}='$ac_optarg'" ;;
184 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
185 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
186 |
--exec |
--exe |
--ex)
187 ac_prev
=exec_prefix
;;
188 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
189 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
190 |
--exec=* |
--exe=* |
--ex=*)
191 exec_prefix
="$ac_optarg" ;;
193 -gas |
--gas |
--ga |
--g)
194 # Obsolete; use --with-gas.
197 -help |
--help |
--hel |
--he)
198 # Omit some internal or obsolete options to make the list less imposing.
199 # This message is too long to be a string in the A/UX 3.1 sh.
201 Usage: configure [options] [host]
202 Options: [defaults in brackets after descriptions]
204 --cache-file=FILE cache test results in FILE
205 --help print this message
206 --no-create do not create output files
207 --quiet, --silent do not print \`checking...' messages
208 --version print the version of autoconf that created configure
209 Directory and file names:
210 --prefix=PREFIX install architecture-independent files in PREFIX
212 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
214 --bindir=DIR user executables in DIR [EPREFIX/bin]
215 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
216 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
217 --datadir=DIR read-only architecture-independent data in DIR
219 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
220 --sharedstatedir=DIR modifiable architecture-independent data in DIR
222 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
223 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
224 --includedir=DIR C header files in DIR [PREFIX/include]
225 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
226 --infodir=DIR info documentation in DIR [PREFIX/info]
227 --mandir=DIR man documentation in DIR [PREFIX/man]
228 --srcdir=DIR find the sources in DIR [configure dir or ..]
229 --program-prefix=PREFIX prepend PREFIX to installed program names
230 --program-suffix=SUFFIX append SUFFIX to installed program names
231 --program-transform-name=PROGRAM
232 run sed PROGRAM on installed program names
236 --build=BUILD configure for building on BUILD [BUILD=HOST]
237 --host=HOST configure for HOST [guessed]
238 --target=TARGET configure for TARGET [TARGET=HOST]
239 Features and packages:
240 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
241 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
242 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
243 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
244 --x-includes=DIR X include files are in DIR
245 --x-libraries=DIR X library files are in DIR
247 if test -n "$ac_help"; then
248 echo "--enable and --with options recognized:$ac_help"
252 -host |
--host |
--hos |
--ho)
254 -host=* |
--host=* |
--hos=* |
--ho=*)
257 -includedir |
--includedir |
--includedi |
--included |
--include \
258 |
--includ |
--inclu |
--incl |
--inc)
259 ac_prev
=includedir
;;
260 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
261 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
262 includedir
="$ac_optarg" ;;
264 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
266 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
267 infodir
="$ac_optarg" ;;
269 -libdir |
--libdir |
--libdi |
--libd)
271 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
272 libdir
="$ac_optarg" ;;
274 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
275 |
--libexe |
--libex |
--libe)
276 ac_prev
=libexecdir
;;
277 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
278 |
--libexe=* |
--libex=* |
--libe=*)
279 libexecdir
="$ac_optarg" ;;
281 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
282 |
--localstate |
--localstat |
--localsta |
--localst \
283 |
--locals |
--local |
--loca |
--loc |
--lo)
284 ac_prev
=localstatedir
;;
285 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
286 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
287 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
288 localstatedir
="$ac_optarg" ;;
290 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
292 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
293 mandir
="$ac_optarg" ;;
296 # Obsolete; use --without-fp.
299 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
303 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
304 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
307 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
308 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
309 |
--oldin |
--oldi |
--old |
--ol |
--o)
310 ac_prev
=oldincludedir
;;
311 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
312 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
313 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
314 oldincludedir
="$ac_optarg" ;;
316 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
318 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
319 prefix
="$ac_optarg" ;;
321 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
322 |
--program-pre |
--program-pr |
--program-p)
323 ac_prev
=program_prefix
;;
324 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
325 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
326 program_prefix
="$ac_optarg" ;;
328 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
329 |
--program-suf |
--program-su |
--program-s)
330 ac_prev
=program_suffix
;;
331 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
332 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
333 program_suffix
="$ac_optarg" ;;
335 -program-transform-name |
--program-transform-name \
336 |
--program-transform-nam |
--program-transform-na \
337 |
--program-transform-n |
--program-transform- \
338 |
--program-transform |
--program-transfor \
339 |
--program-transfo |
--program-transf \
340 |
--program-trans |
--program-tran \
341 |
--progr-tra |
--program-tr |
--program-t)
342 ac_prev
=program_transform_name
;;
343 -program-transform-name=* |
--program-transform-name=* \
344 |
--program-transform-nam=* |
--program-transform-na=* \
345 |
--program-transform-n=* |
--program-transform-=* \
346 |
--program-transform=* |
--program-transfor=* \
347 |
--program-transfo=* |
--program-transf=* \
348 |
--program-trans=* |
--program-tran=* \
349 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
350 program_transform_name
="$ac_optarg" ;;
352 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
353 |
-silent |
--silent |
--silen |
--sile |
--sil)
356 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
358 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
360 sbindir
="$ac_optarg" ;;
362 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
363 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
364 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
366 ac_prev
=sharedstatedir
;;
367 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
368 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
369 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
371 sharedstatedir
="$ac_optarg" ;;
373 -site |
--site |
--sit)
375 -site=* |
--site=* |
--sit=*)
378 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
380 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
381 srcdir
="$ac_optarg" ;;
383 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
384 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
385 ac_prev
=sysconfdir
;;
386 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
387 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
388 sysconfdir
="$ac_optarg" ;;
390 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
392 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
393 target
="$ac_optarg" ;;
395 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
398 -version |
--version |
--versio |
--versi |
--vers)
399 echo "configure generated by autoconf version 2.13"
403 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package
=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}='$ac_optarg'" ;;
415 -without-* |
--without-*)
416 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
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'`
422 eval "with_${ac_package}=no" ;;
425 # Obsolete; use --with-x.
428 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
429 |
--x-incl |
--x-inc |
--x-in |
--x-i)
430 ac_prev
=x_includes
;;
431 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
432 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
433 x_includes
="$ac_optarg" ;;
435 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
436 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
437 ac_prev
=x_libraries
;;
438 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
439 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
440 x_libraries
="$ac_optarg" ;;
442 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
447 echo "configure: warning: $ac_option: invalid host type" 1>&2
449 if test "x$nonopt" != xNONE
; then
450 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458 if test -n "$ac_prev"; then
459 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464 # File descriptor usage:
467 # 2 errors and warnings
468 # 3 some systems may open it to /dev/tty
469 # 4 used on the Kubota Titan
470 # 6 checking for... messages and results
471 # 5 compiler messages saved in config.log
472 if test "$silent" = yes; then
480 This file contains any messages produced by compilers while
481 running configure, to aid debugging if configure makes a mistake.
484 # Strip out --no-create and --no-recursion so they do not pile up.
485 # Also quote any args containing shell metacharacters.
490 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
491 |
--no-cr |
--no-c) ;;
492 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
493 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
494 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
495 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
496 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
501 # Only set these to C if already set. These must not be set unconditionally
502 # because not all systems understand e.g. LANG=C (notably SCO).
503 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
504 # Non-C LC_CTYPE values break the ctype check.
505 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
506 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
507 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
508 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
511 rm -rf conftest
* confdefs.h
512 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 # A filename unique to this package, relative to the directory that
516 # configure is in, which we can look for to find out if srcdir is correct.
517 ac_unique_file
=tree.c
519 # Find the source files, if location was not specified.
520 if test -z "$srcdir"; then
521 ac_srcdir_defaulted
=yes
522 # Try the directory containing this script, then its parent.
524 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
525 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
527 if test ! -r $srcdir/$ac_unique_file; then
531 ac_srcdir_defaulted
=no
533 if test ! -r $srcdir/$ac_unique_file; then
534 if test "$ac_srcdir_defaulted" = yes; then
535 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
540 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542 # Prefer explicitly selected file to automatically selected ones.
543 if test -z "$CONFIG_SITE"; then
544 if test "x$prefix" != xNONE
; then
545 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
547 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 for ac_site_file
in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
561 echo "creating cache $cache_file"
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp
='$CPP $CPPFLAGS'
568 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling
=$ac_cv_prog_cc_cross
574 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
575 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
576 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
583 ac_n
= ac_c
='\c' ac_t
=
591 symbolic_link
='ln -s'
594 # Check for bogus environment variables.
595 # Test if LIBRARY_PATH contains the notation for the current directory
596 # since this would lead to problems installing/building glibc.
597 # LIBRARY_PATH contains the current directory if one of the following
599 # - one of the terminals (":" and ";") is the first or last sign
600 # - two terminals occur directly after each other
601 # - the path contains an element with a dot in it
602 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
603 echo "configure:604: checking LIBRARY_PATH variable" >&5
604 case ${LIBRARY_PATH} in
605 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
606 library_path_setting
="contains current directory"
609 library_path_setting
="ok"
612 echo "$ac_t""$library_path_setting" 1>&6
613 if test "$library_path_setting" != "ok"; then
614 { echo "configure: error:
615 *** LIBRARY_PATH shouldn't contain the current directory when
616 *** building gcc. Please change the environment variable
617 *** and run configure again." 1>&2; exit 1; }
620 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
621 # since this would lead to problems installing/building glibc.
622 # GCC_EXEC_PREFIX contains the current directory if one of the following
624 # - one of the terminals (":" and ";") is the first or last sign
625 # - two terminals occur directly after each other
626 # - the path contains an element with a dot in it
627 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
628 echo "configure:629: checking GCC_EXEC_PREFIX variable" >&5
629 case ${GCC_EXEC_PREFIX} in
630 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
631 gcc_exec_prefix_setting
="contains current directory"
634 gcc_exec_prefix_setting
="ok"
637 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
638 if test "$gcc_exec_prefix_setting" != "ok"; then
639 { echo "configure: error:
640 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
641 *** building gcc. Please change the environment variable
642 *** and run configure again." 1>&2; exit 1; }
645 # Check for additional parameters
648 # Check whether --with-gnu-ld or --without-gnu-ld was given.
649 if test "${with_gnu_ld+set}" = set; then
650 withval
="$with_gnu_ld"
651 gnu_ld_flag
="$with_gnu_ld"
657 # With pre-defined ld
658 # Check whether --with-ld or --without-ld was given.
659 if test "${with_ld+set}" = set; then
661 DEFAULT_LINKER
="$with_ld"
664 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
665 if test ! -x "$DEFAULT_LINKER"; then
666 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
667 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
670 cat >> confdefs.h
<<EOF
671 #define DEFAULT_LINKER "$DEFAULT_LINKER"
677 # Check whether --with-gnu-as or --without-gnu-as was given.
678 if test "${with_gnu_as+set}" = set; then
679 withval
="$with_gnu_as"
680 gas_flag
="$with_gnu_as"
686 # Check whether --with-as or --without-as was given.
687 if test "${with_as+set}" = set; then
689 DEFAULT_ASSEMBLER
="$with_as"
692 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
693 if test ! -x "$DEFAULT_ASSEMBLER"; then
694 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
695 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
698 cat >> confdefs.h
<<EOF
699 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
705 # Check whether --with-stabs or --without-stabs was given.
706 if test "${with_stabs+set}" = set; then
707 withval
="$with_stabs"
715 # Check whether --with-elf or --without-elf was given.
716 if test "${with_elf+set}" = set; then
724 # Specify the local prefix
726 # Check whether --with-local-prefix or --without-local-prefix was given.
727 if test "${with_local_prefix+set}" = set; then
728 withval
="$with_local_prefix"
730 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
732 *) local_prefix
=$with_local_prefix ;;
737 # Default local prefix if it is empty
738 if test x
$local_prefix = x
; then
739 local_prefix
=/usr
/local
742 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
743 # passed in by the toplevel make and thus we'd get different behavior
744 # depending on where we built the sources.
746 # Specify the g++ header file directory
747 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
748 if test "${with_gxx_include_dir+set}" = set; then
749 withval
="$with_gxx_include_dir"
751 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
753 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
758 if test x
${gcc_gxx_include_dir} = x
; then
759 if test x
${enable_version_specific_runtime_libs} = xyes
; then
760 gcc_gxx_include_dir
='${libsubdir}/include/g++'
762 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
763 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
767 # Enable expensive internal checks
768 # Check whether --enable-checking or --disable-checking was given.
769 if test "${enable_checking+set}" = set; then
770 enableval
="$enable_checking"
771 case "${enableval}" in
772 yes) cat >> confdefs.h
<<\EOF
773 #define ENABLE_CHECKING 1
777 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
782 # Check whether --enable-cpp or --disable-cpp was given.
783 if test "${enable_cpp+set}" = set; then
784 enableval
="$enable_cpp"
791 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
792 if test "${with_cpp_install_dir+set}" = set; then
793 withval
="$with_cpp_install_dir"
794 if test x
$withval = xyes
; then
795 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; }
796 elif test x
$withval != xno
; then
797 cpp_install_dir
=$withval
802 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
804 # Check whether --enable-cpplib or --disable-cpplib was given.
805 if test "${enable_cpplib+set}" = set; then
806 enableval
="$enable_cpplib"
807 if test x
$enable_cpplib != xno
; then
813 # Link cpplib into the compiler proper, for C/C++/ObjC.
814 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
815 if test "${enable_c_cpplib+set}" = set; then
816 enableval
="$enable_c_cpplib"
817 if test x
$enable_c_cpplib != xno
; then
818 extra_c_objs
="${extra_c_objs} libcpp.a"
819 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
820 extra_c_flags
="${extra_c_flags} -DUSE_CPPLIB=1"
826 # Disable fast fixincludes
827 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
828 if test "${enable_fast_fixincludes+set}" = set; then
829 enableval
="$enable_fast_fixincludes"
830 if test x
$enable_fast_fixincludes = xno
; then
831 cp $srcdir/fixincludes .
/fixinc.sh
836 # Enable Multibyte Characters for C/C++
837 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
838 if test "${enable_c_mbchar+set}" = set; then
839 enableval
="$enable_c_mbchar"
840 if [ x
$enable_c_mbchar != xno
]; then
841 extra_c_flags
="${extra_c_flags} -DMULTIBYTE_CHARS=1"
847 # Pass with no value to take the default
848 # Pass with a value to specify a thread package
849 # Check whether --enable-threads or --disable-threads was given.
850 if test "${enable_threads+set}" = set; then
851 enableval
="$enable_threads"
852 if test x
$enable_threads = xno
; then
860 enable_threads_flag
=$enable_threads
861 # Check if a valid thread package
862 case x
${enable_threads_flag} in
865 target_thread_file
='single'
869 target_thread_file
=''
871 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
872 xsolaris | xwin32 | xdce | xvxworks
)
873 target_thread_file
=$enable_threads_flag
876 echo "$enable_threads is an unknown thread package" 1>&2
881 # Check whether --enable-objc-gc or --disable-objc-gc was given.
882 if test "${enable_objc_gc+set}" = set; then
883 enableval
="$enable_objc_gc"
884 if [ x
$enable_objc_gc = xno
]; then
894 # Check whether --with-dwarf2 or --without-dwarf2 was given.
895 if test "${with_dwarf2+set}" = set; then
896 withval
="$with_dwarf2"
897 dwarf2
="$with_dwarf2"
903 # Determine the host, build, and target systems
905 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
906 if test -f $ac_dir/install-sh
; then
908 ac_install_sh
="$ac_aux_dir/install-sh -c"
910 elif test -f $ac_dir/install.sh
; then
912 ac_install_sh
="$ac_aux_dir/install.sh -c"
916 if test -z "$ac_aux_dir"; then
917 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
919 ac_config_guess
=$ac_aux_dir/config.guess
920 ac_config_sub
=$ac_aux_dir/config.sub
921 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
924 # Do some error checking and defaulting for the host and target type.
926 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
929 # 1. You are not allowed to specify --host, --target, and nonopt at the
931 # 2. Host defaults to nonopt.
932 # 3. If nonopt is not specified, then host defaults to the current host,
933 # as determined by config.guess.
934 # 4. Target and build default to nonopt.
935 # 5. If nonopt is not specified, then target and build default to host.
937 # The aliases save the names the user supplied, while $host etc.
938 # will get canonicalized.
939 case $host---$target---$nonopt in
940 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
941 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
945 # Make sure we can run config.sub.
946 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
947 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
950 echo $ac_n "checking host system type""... $ac_c" 1>&6
951 echo "configure:952: checking host system type" >&5
954 case "$host_alias" in
958 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
959 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
961 *) host_alias
=$nonopt ;;
965 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
966 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
967 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
968 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
969 echo "$ac_t""$host" 1>&6
971 echo $ac_n "checking target system type""... $ac_c" 1>&6
972 echo "configure:973: checking target system type" >&5
975 case "$target_alias" in
978 NONE
) target_alias
=$host_alias ;;
979 *) target_alias
=$nonopt ;;
983 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
984 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
985 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
986 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
987 echo "$ac_t""$target" 1>&6
989 echo $ac_n "checking build system type""... $ac_c" 1>&6
990 echo "configure:991: checking build system type" >&5
993 case "$build_alias" in
996 NONE
) build_alias
=$host_alias ;;
997 *) build_alias
=$nonopt ;;
1001 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1002 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1003 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1004 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1005 echo "$ac_t""$build" 1>&6
1007 test "$host_alias" != "$target_alias" &&
1008 test "$program_prefix$program_suffix$program_transform_name" = \
1010 program_prefix
=${target_alias}-
1013 # Find the native compiler
1014 # Extract the first word of "gcc", so it can be a program name with args.
1015 set dummy gcc
; ac_word
=$2
1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017 echo "configure:1018: checking for $ac_word" >&5
1018 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 if test -n "$CC"; then
1022 ac_cv_prog_CC
="$CC" # Let the user override the test.
1024 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1026 for ac_dir
in $ac_dummy; do
1027 test -z "$ac_dir" && ac_dir
=.
1028 if test -f $ac_dir/$ac_word; then
1037 if test -n "$CC"; then
1038 echo "$ac_t""$CC" 1>&6
1040 echo "$ac_t""no" 1>&6
1043 if test -z "$CC"; then
1044 # Extract the first word of "cc", so it can be a program name with args.
1045 set dummy cc
; ac_word
=$2
1046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1047 echo "configure:1048: checking for $ac_word" >&5
1048 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 if test -n "$CC"; then
1052 ac_cv_prog_CC
="$CC" # Let the user override the test.
1054 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1057 for ac_dir
in $ac_dummy; do
1058 test -z "$ac_dir" && ac_dir
=.
1059 if test -f $ac_dir/$ac_word; then
1060 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1061 ac_prog_rejected
=yes
1069 if test $ac_prog_rejected = yes; then
1070 # We found a bogon in the path, so make sure we never use it.
1071 set dummy
$ac_cv_prog_CC
1073 if test $# -gt 0; then
1074 # We chose a different compiler from the bogus one.
1075 # However, it has the same basename, so the bogon will be chosen
1076 # first if we set CC to just the basename; use the full file name.
1078 set dummy
"$ac_dir/$ac_word" "$@"
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1089 echo "$ac_t""no" 1>&6
1092 if test -z "$CC"; then
1093 case "`uname -s`" in
1095 # Extract the first word of "cl", so it can be a program name with args.
1096 set dummy cl
; ac_word
=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 if test -n "$CC"; then
1103 ac_cv_prog_CC
="$CC" # Let the user override the test.
1105 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1107 for ac_dir
in $ac_dummy; do
1108 test -z "$ac_dir" && ac_dir
=.
1109 if test -f $ac_dir/$ac_word; then
1118 if test -n "$CC"; then
1119 echo "$ac_t""$CC" 1>&6
1121 echo "$ac_t""no" 1>&6
1126 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1129 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1130 echo "configure:1131: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1134 ac_cpp
='$CPP $CPPFLAGS'
1135 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1136 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1137 cross_compiling
=$ac_cv_prog_cc_cross
1139 cat > conftest.
$ac_ext << EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1146 if { (eval echo configure
:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1147 ac_cv_prog_cc_works
=yes
1148 # If we can't run a trivial program, we are probably using a cross compiler.
1149 if (.
/conftest
; exit) 2>/dev
/null
; then
1150 ac_cv_prog_cc_cross
=no
1152 ac_cv_prog_cc_cross
=yes
1155 echo "configure: failed program was:" >&5
1156 cat conftest.
$ac_ext >&5
1157 ac_cv_prog_cc_works
=no
1161 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1162 ac_cpp
='$CPP $CPPFLAGS'
1163 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1164 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1165 cross_compiling
=$ac_cv_prog_cc_cross
1167 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1168 if test $ac_cv_prog_cc_works = no
; then
1169 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1171 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1172 echo "configure:1173: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1173 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1174 cross_compiling
=$ac_cv_prog_cc_cross
1176 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether we are using GNU C" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 cat > conftest.c
<<EOF
1186 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1193 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1195 if test $ac_cv_prog_gcc = yes; then
1201 ac_test_CFLAGS
="${CFLAGS+set}"
1202 ac_save_CFLAGS
="$CFLAGS"
1204 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether ${CC-cc} accepts -g" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 echo 'void f(){}' > conftest.c
1210 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1219 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1220 if test "$ac_test_CFLAGS" = set; then
1221 CFLAGS
="$ac_save_CFLAGS"
1222 elif test $ac_cv_prog_cc_g = yes; then
1223 if test "$GCC" = yes; then
1229 if test "$GCC" = yes; then
1236 echo $ac_n "checking for long double""... $ac_c" 1>&6
1237 echo "configure:1238: checking for long double" >&5
1238 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 if test "$GCC" = yes; then
1242 gcc_cv_c_long_double
=yes
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1249 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
1250 long double foo = 0.0;
1251 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
1252 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
1255 if { (eval echo configure
:1256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1257 gcc_cv_c_long_double
=yes
1259 echo "configure: failed program was:" >&5
1260 cat conftest.
$ac_ext >&5
1262 gcc_cv_c_long_double
=no
1268 echo "$ac_t""$gcc_cv_c_long_double" 1>&6
1269 if test $gcc_cv_c_long_double = yes; then
1270 cat >> confdefs.h
<<\EOF
1271 #define HAVE_LONG_DOUBLE 1
1277 # If the native compiler is GCC, we can enable warnings even in stage1.
1278 # That's useful for people building cross-compilers, or just running a
1280 if test "x$GCC" = "xyes"; then
1281 stage1_warn_cflags
='$(WARN_CFLAGS)'
1283 stage1_warn_cflags
=""
1287 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1288 echo "configure:1289: checking whether ${MAKE-make} sets \${MAKE}" >&5
1289 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1290 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 cat > conftestmake
<<\EOF
1295 @
echo 'ac_maketemp="${MAKE}"'
1297 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1298 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1299 if test -n "$ac_maketemp"; then
1300 eval ac_cv_prog_make_
${ac_make}_set
=yes
1302 eval ac_cv_prog_make_
${ac_make}_set
=no
1306 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1307 echo "$ac_t""yes" 1>&6
1310 echo "$ac_t""no" 1>&6
1311 SET_MAKE
="MAKE=${MAKE-make}"
1315 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1316 echo "configure:1317: checking whether a default assembler was specified" >&5
1317 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1318 if test x
"$gas_flag" = x
"no"; then
1319 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1321 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1324 echo "$ac_t""no" 1>&6
1327 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1328 echo "configure:1329: checking whether a default linker was specified" >&5
1329 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1330 if test x
"$gnu_ld_flag" = x
"no"; then
1331 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1333 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1336 echo "$ac_t""no" 1>&6
1339 # Find some useful tools
1340 for ac_prog
in gawk mawk nawk
awk
1342 # Extract the first word of "$ac_prog", so it can be a program name with args.
1343 set dummy
$ac_prog; ac_word
=$2
1344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_word" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 if test -n "$AWK"; then
1350 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1352 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1354 for ac_dir
in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir
=.
1356 if test -f $ac_dir/$ac_word; then
1357 ac_cv_prog_AWK
="$ac_prog"
1364 AWK
="$ac_cv_prog_AWK"
1365 if test -n "$AWK"; then
1366 echo "$ac_t""$AWK" 1>&6
1368 echo "$ac_t""no" 1>&6
1371 test -n "$AWK" && break
1374 # Extract the first word of "flex", so it can be a program name with args.
1375 set dummy flex
; ac_word
=$2
1376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1377 echo "configure:1378: checking for $ac_word" >&5
1378 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 if test -n "$LEX"; then
1382 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1384 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1386 for ac_dir
in $ac_dummy; do
1387 test -z "$ac_dir" && ac_dir
=.
1388 if test -f $ac_dir/$ac_word; then
1389 ac_cv_prog_LEX
="flex"
1394 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1397 LEX
="$ac_cv_prog_LEX"
1398 if test -n "$LEX"; then
1399 echo "$ac_t""$LEX" 1>&6
1401 echo "$ac_t""no" 1>&6
1404 if test -z "$LEXLIB"
1410 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1411 echo "configure:1412: checking for yywrap in -l$ac_lib" >&5
1412 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 ac_save_LIBS
="$LIBS"
1417 LIBS
="-l$ac_lib $LIBS"
1418 cat > conftest.
$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 /* Override any gcc2 internal prototype to avoid an error. */
1422 /* We use char because int might match the return type of a gcc2
1423 builtin and then its argument prototype would still apply. */
1430 if { (eval echo configure
:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1432 eval "ac_cv_lib_$ac_lib_var=yes"
1434 echo "configure: failed program was:" >&5
1435 cat conftest.
$ac_ext >&5
1437 eval "ac_cv_lib_$ac_lib_var=no"
1440 LIBS
="$ac_save_LIBS"
1443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1444 echo "$ac_t""yes" 1>&6
1447 echo "$ac_t""no" 1>&6
1452 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1453 echo "configure:1454: checking whether ln works" >&5
1454 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 rm -f conftestdata_t
1458 echo >conftestdata_f
1459 if ln conftestdata_f conftestdata_t
2>/dev
/null
1463 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1465 gcc_cv_prog_LN
="ln -s"
1470 rm -f conftestdata_f conftestdata_t
1473 LN
="$gcc_cv_prog_LN"
1474 if test "$gcc_cv_prog_LN" = "ln"; then
1475 echo "$ac_t""yes" 1>&6
1477 if test "$gcc_cv_prog_LN" = "ln -s"; then
1478 echo "$ac_t""no, using ln -s" 1>&6
1480 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1484 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1485 echo "configure:1486: checking whether ln -s works" >&5
1486 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 rm -f conftestdata_t
1490 echo >conftestdata_f
1491 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1493 gcc_cv_prog_LN_S
="ln -s"
1495 if ln conftestdata_f conftestdata_t
2>/dev
/null
1502 rm -f conftestdata_f conftestdata_t
1505 LN_S
="$gcc_cv_prog_LN_S"
1506 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1507 echo "$ac_t""yes" 1>&6
1509 if test "$gcc_cv_prog_LN_S" = "ln"; then
1510 echo "$ac_t""no, using ln" 1>&6
1512 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1516 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1517 echo "configure:1518: checking for volatile" >&5
1518 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1521 cat > conftest.
$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1529 if { (eval echo configure
:1530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1531 gcc_cv_c_volatile
=yes
1533 echo "configure: failed program was:" >&5
1534 cat conftest.
$ac_ext >&5
1536 gcc_cv_c_volatile
=no
1541 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1542 if test $gcc_cv_c_volatile = yes ; then
1543 cat >> confdefs.h
<<\EOF
1544 #define HAVE_VOLATILE 1
1549 # Extract the first word of "ranlib", so it can be a program name with args.
1550 set dummy ranlib
; ac_word
=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 if test -n "$RANLIB"; then
1557 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1559 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1561 for ac_dir
in $ac_dummy; do
1562 test -z "$ac_dir" && ac_dir
=.
1563 if test -f $ac_dir/$ac_word; then
1564 ac_cv_prog_RANLIB
="ranlib"
1569 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1572 RANLIB
="$ac_cv_prog_RANLIB"
1573 if test -n "$RANLIB"; then
1574 echo "$ac_t""$RANLIB" 1>&6
1576 echo "$ac_t""no" 1>&6
1579 for ac_prog
in 'bison -y' byacc
1581 # Extract the first word of "$ac_prog", so it can be a program name with args.
1582 set dummy
$ac_prog; ac_word
=$2
1583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1584 echo "configure:1585: checking for $ac_word" >&5
1585 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 if test -n "$YACC"; then
1589 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1593 for ac_dir
in $ac_dummy; do
1594 test -z "$ac_dir" && ac_dir
=.
1595 if test -f $ac_dir/$ac_word; then
1596 ac_cv_prog_YACC
="$ac_prog"
1603 YACC
="$ac_cv_prog_YACC"
1604 if test -n "$YACC"; then
1605 echo "$ac_t""$YACC" 1>&6
1607 echo "$ac_t""no" 1>&6
1610 test -n "$YACC" && break
1612 test -n "$YACC" || YACC
="yacc"
1614 # Find a good install program. We prefer a C program (faster),
1615 # so one script is as good as another. But avoid the broken or
1616 # incompatible versions:
1617 # SysV /etc/install, /usr/sbin/install
1618 # SunOS /usr/etc/install
1619 # IRIX /sbin/install
1621 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1622 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1623 # ./install, which can be erroneously created by make from ./install.sh.
1624 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1625 echo "configure:1626: checking for a BSD compatible install" >&5
1626 if test -z "$INSTALL"; then
1627 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1630 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1631 for ac_dir
in $PATH; do
1632 # Account for people who put trailing slashes in PATH elements.
1634 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1636 # OSF1 and SCO ODT 3.0 have their own names for install.
1637 for ac_prog
in ginstall scoinst
install; do
1638 if test -f $ac_dir/$ac_prog; then
1639 if test $ac_prog = install &&
1640 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1641 # AIX install. It has an incompatible calling convention.
1642 # OSF/1 installbsd also uses dspmsg, but is usable.
1645 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1656 if test "${ac_cv_path_install+set}" = set; then
1657 INSTALL
="$ac_cv_path_install"
1659 # As a last resort, use the slow shell script. We don't cache a
1660 # path for INSTALL within a source directory, because that will
1661 # break other packages using the cache if that directory is
1662 # removed, or if the path is relative.
1663 INSTALL
="$ac_install_sh"
1666 echo "$ac_t""$INSTALL" 1>&6
1668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1669 # It thinks the first close brace ends the variable substitution.
1670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1672 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1675 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1676 echo "configure:1677: checking how to run the C preprocessor" >&5
1677 # On Suns, sometimes $CPP names a directory.
1678 if test -n "$CPP" && test -d "$CPP"; then
1681 if test -z "$CPP"; then
1682 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 # This must be in double quotes, not single quotes, because CPP may get
1686 # substituted into the Makefile and "${CC-cc}" will confuse make.
1688 # On the NeXT, cc -E runs the code through the compiler's parser,
1689 # not just through cpp.
1690 cat > conftest.
$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1696 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1697 { (eval echo configure
:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1698 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1699 if test -z "$ac_err"; then
1703 echo "configure: failed program was:" >&5
1704 cat conftest.
$ac_ext >&5
1706 CPP
="${CC-cc} -E -traditional-cpp"
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1713 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1714 { (eval echo configure
:1715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1715 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1716 if test -z "$ac_err"; then
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1723 CPP
="${CC-cc} -nologo -E"
1724 cat > conftest.
$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1730 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731 { (eval echo configure
:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733 if test -z "$ac_err"; then
1737 echo "configure: failed program was:" >&5
1738 cat conftest.
$ac_ext >&5
1747 ac_cv_prog_CPP
="$CPP"
1749 CPP
="$ac_cv_prog_CPP"
1751 ac_cv_prog_CPP
="$CPP"
1753 echo "$ac_t""$CPP" 1>&6
1755 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1756 echo "configure:1757: checking for ANSI C header files" >&5
1757 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 cat > conftest.
$ac_ext <<EOF
1761 #line 1762 "configure"
1762 #include "confdefs.h"
1768 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1769 { (eval echo configure
:1770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1770 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1771 if test -z "$ac_err"; then
1773 ac_cv_header_stdc
=yes
1776 echo "configure: failed program was:" >&5
1777 cat conftest.
$ac_ext >&5
1779 ac_cv_header_stdc
=no
1783 if test $ac_cv_header_stdc = yes; then
1784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1785 cat > conftest.
$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1791 egrep "memchr" >/dev
/null
2>&1; then
1795 ac_cv_header_stdc
=no
1801 if test $ac_cv_header_stdc = yes; then
1802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1803 cat > conftest.
$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1809 egrep "free" >/dev
/null
2>&1; then
1813 ac_cv_header_stdc
=no
1819 if test $ac_cv_header_stdc = yes; then
1820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1821 if test "$cross_compiling" = yes; then
1824 cat > conftest.
$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1828 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1829 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1831 int main () { int i; for (i = 0; i < 256; i++)
1832 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1836 if { (eval echo configure
:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1840 echo "configure: failed program was:" >&5
1841 cat conftest.
$ac_ext >&5
1843 ac_cv_header_stdc
=no
1851 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1852 if test $ac_cv_header_stdc = yes; then
1853 cat >> confdefs.h
<<\EOF
1854 #define STDC_HEADERS 1
1859 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1860 echo "configure:1861: checking whether time.h and sys/time.h may both be included" >&5
1861 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 cat > conftest.
$ac_ext <<EOF
1865 #line 1866 "configure"
1866 #include "confdefs.h"
1867 #include <sys/types.h>
1868 #include <sys/time.h>
1874 if { (eval echo configure
:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1876 ac_cv_header_time
=yes
1878 echo "configure: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1881 ac_cv_header_time
=no
1886 echo "$ac_t""$ac_cv_header_time" 1>&6
1887 if test $ac_cv_header_time = yes; then
1888 cat >> confdefs.h
<<\EOF
1889 #define TIME_WITH_SYS_TIME 1
1894 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1895 echo "configure:1896: checking whether string.h and strings.h may both be included" >&5
1896 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1903 #include <strings.h>
1908 if { (eval echo configure
:1909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1910 gcc_cv_header_string
=yes
1912 echo "configure: failed program was:" >&5
1913 cat conftest.
$ac_ext >&5
1915 gcc_cv_header_string
=no
1920 echo "$ac_t""$gcc_cv_header_string" 1>&6
1921 if test $gcc_cv_header_string = yes; then
1922 cat >> confdefs.h
<<\EOF
1923 #define STRING_WITH_STRINGS 1
1928 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1929 echo "configure:1930: checking for sys/wait.h that is POSIX.1 compatible" >&5
1930 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 cat > conftest.
$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1936 #include <sys/types.h>
1937 #include <sys/wait.h>
1939 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1942 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1947 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1950 if { (eval echo configure
:1951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1952 ac_cv_header_sys_wait_h
=yes
1954 echo "configure: failed program was:" >&5
1955 cat conftest.
$ac_ext >&5
1957 ac_cv_header_sys_wait_h
=no
1962 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1963 if test $ac_cv_header_sys_wait_h = yes; then
1964 cat >> confdefs.h
<<\EOF
1965 #define HAVE_SYS_WAIT_H 1
1970 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1971 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h \
1972 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
1975 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_hdr" >&5
1978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 cat > conftest.
$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1986 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1987 { (eval echo configure
:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1988 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1989 if test -z "$ac_err"; then
1991 eval "ac_cv_header_$ac_safe=yes"
1994 echo "configure: failed program was:" >&5
1995 cat conftest.
$ac_ext >&5
1997 eval "ac_cv_header_$ac_safe=no"
2001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2002 echo "$ac_t""yes" 1>&6
2003 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2004 cat >> confdefs.h
<<EOF
2005 #define $ac_tr_hdr 1
2009 echo "$ac_t""no" 1>&6
2014 # Check for thread headers.
2015 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
2016 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
2017 echo "configure:2018: checking for thread.h" >&5
2018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.
$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2026 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2027 { (eval echo configure
:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2028 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2029 if test -z "$ac_err"; then
2031 eval "ac_cv_header_$ac_safe=yes"
2034 echo "configure: failed program was:" >&5
2035 cat conftest.
$ac_ext >&5
2037 eval "ac_cv_header_$ac_safe=no"
2041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2045 echo "$ac_t""no" 1>&6
2049 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
2050 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
2051 echo "configure:2052: checking for pthread.h" >&5
2052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 cat > conftest.
$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 #include <pthread.h>
2060 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2061 { (eval echo configure
:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2062 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2063 if test -z "$ac_err"; then
2065 eval "ac_cv_header_$ac_safe=yes"
2068 echo "configure: failed program was:" >&5
2069 cat conftest.
$ac_ext >&5
2071 eval "ac_cv_header_$ac_safe=no"
2075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2076 echo "$ac_t""yes" 1>&6
2079 echo "$ac_t""no" 1>&6
2084 # See if GNAT has been installed
2085 # Extract the first word of "gnatbind", so it can be a program name with args.
2086 set dummy gnatbind
; ac_word
=$2
2087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_word" >&5
2089 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 if test -n "$gnat"; then
2093 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2095 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2097 for ac_dir
in $ac_dummy; do
2098 test -z "$ac_dir" && ac_dir
=.
2099 if test -f $ac_dir/$ac_word; then
2100 ac_cv_prog_gnat
="yes"
2105 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2108 gnat
="$ac_cv_prog_gnat"
2109 if test -n "$gnat"; then
2110 echo "$ac_t""$gnat" 1>&6
2112 echo "$ac_t""no" 1>&6
2116 # See if the stage1 system preprocessor understands the ANSI C
2117 # preprocessor stringification operator.
2120 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
2121 echo "configure:2122: checking for preprocessor stringizing operator" >&5
2122 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.
$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2131 char *s = x(teststring);
2134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2135 egrep "#teststring" >/dev
/null
2>&1; then
2137 ac_cv_c_stringize
=no
2140 ac_cv_c_stringize
=yes
2146 if test "${ac_cv_c_stringize}" = yes
2148 cat >> confdefs.h
<<\EOF
2149 #define HAVE_STRINGIZE 1
2153 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2156 # Use <inttypes.h> only if it exists,
2157 # doesn't clash with <sys/types.h>, and declares intmax_t.
2158 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2159 echo "configure:2160: checking for inttypes.h" >&5
2160 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 cat > conftest.
$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2166 #include <sys/types.h>
2167 #include <inttypes.h>
2172 if { (eval echo configure
:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2174 gcc_cv_header_inttypes_h
=yes
2176 echo "configure: failed program was:" >&5
2177 cat conftest.
$ac_ext >&5
2179 gcc_cv_header_inttypes_h
=no
2184 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2185 if test $gcc_cv_header_inttypes_h = yes; then
2186 cat >> confdefs.h
<<\EOF
2187 #define HAVE_INTTYPES_H 1
2192 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2193 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2194 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2195 fputs_unlocked getrusage valloc
2197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2198 echo "configure:2199: checking for $ac_func" >&5
2199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 cat > conftest.
$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2205 /* System header to define __stub macros and hopefully few prototypes,
2206 which can conflict with char $ac_func(); below. */
2208 /* Override any gcc2 internal prototype to avoid an error. */
2209 /* We use char because int might match the return type of a gcc2
2210 builtin and then its argument prototype would still apply. */
2215 /* The GNU C library defines this for functions which it implements
2216 to always fail with ENOSYS. Some functions are actually named
2217 something starting with __ and the normal name is an alias. */
2218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2226 if { (eval echo configure
:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2228 eval "ac_cv_func_$ac_func=yes"
2230 echo "configure: failed program was:" >&5
2231 cat conftest.
$ac_ext >&5
2233 eval "ac_cv_func_$ac_func=no"
2238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2239 echo "$ac_t""yes" 1>&6
2240 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2241 cat >> confdefs.h
<<EOF
2242 #define $ac_tr_func 1
2246 echo "$ac_t""no" 1>&6
2251 # Make sure wchar_t is available
2252 #AC_CHECK_TYPE(wchar_t, unsigned int)
2254 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2255 echo "configure:2256: checking for vprintf" >&5
2256 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.
$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 /* System header to define __stub macros and hopefully few prototypes,
2263 which can conflict with char vprintf(); below. */
2265 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2272 /* The GNU C library defines this for functions which it implements
2273 to always fail with ENOSYS. Some functions are actually named
2274 something starting with __ and the normal name is an alias. */
2275 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2283 if { (eval echo configure
:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2285 eval "ac_cv_func_vprintf=yes"
2287 echo "configure: failed program was:" >&5
2288 cat conftest.
$ac_ext >&5
2290 eval "ac_cv_func_vprintf=no"
2295 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2296 echo "$ac_t""yes" 1>&6
2297 cat >> confdefs.h
<<\EOF
2298 #define HAVE_VPRINTF 1
2302 echo "$ac_t""no" 1>&6
2305 if test "$ac_cv_func_vprintf" != yes; then
2306 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2307 echo "configure:2308: checking for _doprnt" >&5
2308 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 cat > conftest.
$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 /* System header to define __stub macros and hopefully few prototypes,
2315 which can conflict with char _doprnt(); below. */
2317 /* Override any gcc2 internal prototype to avoid an error. */
2318 /* We use char because int might match the return type of a gcc2
2319 builtin and then its argument prototype would still apply. */
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2335 if { (eval echo configure
:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2337 eval "ac_cv_func__doprnt=yes"
2339 echo "configure: failed program was:" >&5
2340 cat conftest.
$ac_ext >&5
2342 eval "ac_cv_func__doprnt=no"
2347 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2349 cat >> confdefs.h
<<\EOF
2350 #define HAVE_DOPRNT 1
2354 echo "$ac_t""no" 1>&6
2361 if test $ac_cv_func_vprintf != yes ; then
2363 if test $ac_cv_func__doprnt != yes ; then
2370 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2371 echo "configure:2372: checking whether the printf functions support %p" >&5
2372 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 if test "$cross_compiling" = yes; then
2376 gcc_cv_func_printf_ptr
=no
2378 cat > conftest.
$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2386 char *p = buf, *q = NULL;
2387 sprintf(buf, "%p", p);
2388 sscanf(buf, "%p", &q);
2392 if { (eval echo configure
:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2394 gcc_cv_func_printf_ptr
=yes
2396 echo "configure: failed program was:" >&5
2397 cat conftest.
$ac_ext >&5
2399 gcc_cv_func_printf_ptr
=no
2404 rm -f core core.
* *.core
2407 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2408 if test $gcc_cv_func_printf_ptr = yes ; then
2409 cat >> confdefs.h
<<\EOF
2410 #define HAVE_PRINTF_PTR 1
2418 # Under some versions of uwin, vfork is notoriously buggy and the test
2419 # can hang configure; on other versions, vfork exists just as a stub.
2420 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2421 ac_cv_func_vfork_works
=no
2424 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2425 echo "configure:2426: checking for pid_t" >&5
2426 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 cat > conftest.
$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 #include <sys/types.h>
2438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2439 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2441 ac_cv_type_pid_t
=yes
2449 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2450 if test $ac_cv_type_pid_t = no
; then
2451 cat >> confdefs.h
<<\EOF
2457 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2458 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2459 echo "configure:2460: checking for vfork.h" >&5
2460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 cat > conftest.
$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2468 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2469 { (eval echo configure
:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2470 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2471 if test -z "$ac_err"; then
2473 eval "ac_cv_header_$ac_safe=yes"
2476 echo "configure: failed program was:" >&5
2477 cat conftest.
$ac_ext >&5
2479 eval "ac_cv_header_$ac_safe=no"
2483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2484 echo "$ac_t""yes" 1>&6
2485 cat >> confdefs.h
<<\EOF
2486 #define HAVE_VFORK_H 1
2490 echo "$ac_t""no" 1>&6
2493 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2494 echo "configure:2495: checking for working vfork" >&5
2495 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 if test "$cross_compiling" = yes; then
2499 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2500 echo "configure:2501: checking for vfork" >&5
2501 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 cat > conftest.
$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 /* System header to define __stub macros and hopefully few prototypes,
2508 which can conflict with char vfork(); below. */
2510 /* Override any gcc2 internal prototype to avoid an error. */
2511 /* We use char because int might match the return type of a gcc2
2512 builtin and then its argument prototype would still apply. */
2517 /* The GNU C library defines this for functions which it implements
2518 to always fail with ENOSYS. Some functions are actually named
2519 something starting with __ and the normal name is an alias. */
2520 #if defined (__stub_vfork) || defined (__stub___vfork)
2528 if { (eval echo configure
:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2530 eval "ac_cv_func_vfork=yes"
2532 echo "configure: failed program was:" >&5
2533 cat conftest.
$ac_ext >&5
2535 eval "ac_cv_func_vfork=no"
2540 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2549 cat > conftest.
$ac_ext <<EOF
2550 #line 2551 "configure"
2551 #include "confdefs.h"
2552 /* Thanks to Paul Eggert for this test. */
2554 #include <sys/types.h>
2555 #include <sys/stat.h>
2556 #ifdef HAVE_UNISTD_H
2562 /* On some sparc systems, changes by the child to local and incoming
2563 argument registers are propagated back to the parent.
2564 The compiler is told about this with #include <vfork.h>,
2565 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2566 Test for this by using a static variable whose address
2567 is put into a register that is clobbered by the vfork. */
2570 sparc_address_test (int arg)
2572 sparc_address_test (arg) int arg;
2590 pid_t parent = getpid ();
2593 sparc_address_test ();
2598 /* Here is another test for sparc vfork register problems.
2599 This test uses lots of local variables, at least
2600 as many local variables as main has allocated so far
2601 including compiler temporaries. 4 locals are enough for
2602 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2603 A buggy compiler should reuse the register of parent
2604 for one of the local variables, since it will think that
2605 parent can't possibly be used any more in this routine.
2606 Assigning to the local variable will thus munge parent
2607 in the parent process. */
2609 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2610 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2611 /* Convince the compiler that p..p7 are live; otherwise, it might
2612 use the same hardware register for all 8 local variables. */
2613 if (p != p1 || p != p2 || p != p3 || p != p4
2614 || p != p5 || p != p6 || p != p7)
2617 /* On some systems (e.g. IRIX 3.3),
2618 vfork doesn't separate parent from child file descriptors.
2619 If the child closes a descriptor before it execs or exits,
2620 this munges the parent's descriptor as well.
2621 Test for this by closing stdout in the child. */
2622 _exit(close(fileno(stdout)) != 0);
2627 while (wait(&status) != child)
2630 /* Was there some problem with vforking? */
2633 /* Did the child fail? (This shouldn't happen.) */
2636 /* Did the vfork/compiler bug occur? */
2637 || parent != getpid()
2639 /* Did the file descriptor bug occur? */
2640 || fstat(fileno(stdout), &st) != 0
2645 if { (eval echo configure
:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2647 ac_cv_func_vfork_works
=yes
2649 echo "configure: failed program was:" >&5
2650 cat conftest.
$ac_ext >&5
2652 ac_cv_func_vfork_works
=no
2659 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2660 if test $ac_cv_func_vfork_works = no
; then
2661 cat >> confdefs.h
<<\EOF
2667 for ac_hdr
in unistd.h
2669 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2671 echo "configure:2672: checking for $ac_hdr" >&5
2672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 cat > conftest.
$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2680 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2681 { (eval echo configure
:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2682 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2683 if test -z "$ac_err"; then
2685 eval "ac_cv_header_$ac_safe=yes"
2688 echo "configure: failed program was:" >&5
2689 cat conftest.
$ac_ext >&5
2691 eval "ac_cv_header_$ac_safe=no"
2695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2697 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2698 cat >> confdefs.h
<<EOF
2699 #define $ac_tr_hdr 1
2703 echo "$ac_t""no" 1>&6
2707 for ac_func
in getpagesize
2709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_func" >&5
2711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 cat > conftest.
$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2717 /* System header to define __stub macros and hopefully few prototypes,
2718 which can conflict with char $ac_func(); below. */
2720 /* Override any gcc2 internal prototype to avoid an error. */
2721 /* We use char because int might match the return type of a gcc2
2722 builtin and then its argument prototype would still apply. */
2727 /* The GNU C library defines this for functions which it implements
2728 to always fail with ENOSYS. Some functions are actually named
2729 something starting with __ and the normal name is an alias. */
2730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2738 if { (eval echo configure
:2739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2740 eval "ac_cv_func_$ac_func=yes"
2742 echo "configure: failed program was:" >&5
2743 cat conftest.
$ac_ext >&5
2745 eval "ac_cv_func_$ac_func=no"
2750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2751 echo "$ac_t""yes" 1>&6
2752 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2753 cat >> confdefs.h
<<EOF
2754 #define $ac_tr_func 1
2758 echo "$ac_t""no" 1>&6
2762 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2763 echo "configure:2764: checking for working mmap" >&5
2764 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 if test "$cross_compiling" = yes; then
2768 ac_cv_func_mmap_fixed_mapped
=no
2770 cat > conftest.
$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2774 /* Thanks to Mike Haertel and Jim Avera for this test.
2775 Here is a matrix of mmap possibilities:
2776 mmap private not fixed
2777 mmap private fixed at somewhere currently unmapped
2778 mmap private fixed at somewhere already mapped
2779 mmap shared not fixed
2780 mmap shared fixed at somewhere currently unmapped
2781 mmap shared fixed at somewhere already mapped
2782 For private mappings, we should verify that changes cannot be read()
2783 back from the file, nor mmap's back from the file at a different
2784 address. (There have been systems where private was not correctly
2785 implemented like the infamous i386 svr4.0, and systems where the
2786 VM page cache was not coherent with the filesystem buffer cache
2787 like early versions of FreeBSD and possibly contemporary NetBSD.)
2788 For shared mappings, we should conversely verify that changes get
2789 propogated back to all the places they're supposed to be.
2791 Grep wants private fixed already mapped.
2792 The main things grep needs to know about mmap are:
2793 * does it exist and is it safe to write into the mmap'd area
2794 * how to use it (BSD variants) */
2795 #include <sys/types.h>
2797 #include <sys/mman.h>
2799 /* This mess was copied from the GNU getpagesize.h. */
2800 #ifndef HAVE_GETPAGESIZE
2801 # ifdef HAVE_UNISTD_H
2802 # include <unistd.h>
2805 /* Assume that all systems that can run configure have sys/param.h. */
2806 # ifndef HAVE_SYS_PARAM_H
2807 # define HAVE_SYS_PARAM_H 1
2810 # ifdef _SC_PAGESIZE
2811 # define getpagesize() sysconf(_SC_PAGESIZE)
2812 # else /* no _SC_PAGESIZE */
2813 # ifdef HAVE_SYS_PARAM_H
2814 # include <sys/param.h>
2815 # ifdef EXEC_PAGESIZE
2816 # define getpagesize() EXEC_PAGESIZE
2817 # else /* no EXEC_PAGESIZE */
2819 # define getpagesize() NBPG * CLSIZE
2822 # endif /* no CLSIZE */
2823 # else /* no NBPG */
2825 # define getpagesize() NBPC
2826 # else /* no NBPC */
2828 # define getpagesize() PAGESIZE
2829 # endif /* PAGESIZE */
2830 # endif /* no NBPC */
2831 # endif /* no NBPG */
2832 # endif /* no EXEC_PAGESIZE */
2833 # else /* no HAVE_SYS_PARAM_H */
2834 # define getpagesize() 8192 /* punt totally */
2835 # endif /* no HAVE_SYS_PARAM_H */
2836 # endif /* no _SC_PAGESIZE */
2838 #endif /* no HAVE_GETPAGESIZE */
2841 extern "C" { void *malloc(unsigned); }
2849 char *data, *data2, *data3;
2853 pagesize = getpagesize();
2856 * First, make a file with some known garbage in it.
2858 data = malloc(pagesize);
2861 for (i = 0; i < pagesize; ++i)
2862 *(data + i) = rand();
2864 fd = creat("conftestmmap", 0600);
2867 if (write(fd, data, pagesize) != pagesize)
2872 * Next, try to mmap the file at a fixed address which
2873 * already has something else allocated at it. If we can,
2874 * also make sure that we see the same garbage.
2876 fd = open("conftestmmap", O_RDWR);
2879 data2 = malloc(2 * pagesize);
2882 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2883 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2884 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2886 for (i = 0; i < pagesize; ++i)
2887 if (*(data + i) != *(data2 + i))
2891 * Finally, make sure that changes to the mapped area
2892 * do not percolate back to the file as seen by read().
2893 * (This is a bug on some variants of i386 svr4.0.)
2895 for (i = 0; i < pagesize; ++i)
2896 *(data2 + i) = *(data2 + i) + 1;
2897 data3 = malloc(pagesize);
2900 if (read(fd, data3, pagesize) != pagesize)
2902 for (i = 0; i < pagesize; ++i)
2903 if (*(data + i) != *(data3 + i))
2906 unlink("conftestmmap");
2911 if { (eval echo configure
:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2913 ac_cv_func_mmap_fixed_mapped
=yes
2915 echo "configure: failed program was:" >&5
2916 cat conftest.
$ac_ext >&5
2918 ac_cv_func_mmap_fixed_mapped
=no
2925 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2926 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2927 cat >> confdefs.h
<<\EOF
2934 for ac_func
in bcopy bzero bcmp \
2935 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2936 strsignal putc_unlocked fputs_unlocked strstr
2938 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2939 echo "configure:2940: checking whether $ac_func must be declared" >&5
2940 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2943 cat > conftest.
$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2948 #ifdef STRING_WITH_STRINGS
2949 # include <string.h>
2950 # include <strings.h>
2952 # ifdef HAVE_STRING_H
2953 # include <string.h>
2955 # ifdef HAVE_STRINGS_H
2956 # include <strings.h>
2960 #ifdef HAVE_STDLIB_H
2963 #ifdef HAVE_UNISTD_H
2967 #define rindex strrchr
2970 #define index strchr
2974 char *(*pfn) = (char *(*)) $ac_func
2977 if { (eval echo configure
:2978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2979 eval "gcc_cv_decl_needed_$ac_func=no"
2981 echo "configure: failed program was:" >&5
2982 cat conftest.
$ac_ext >&5
2984 eval "gcc_cv_decl_needed_$ac_func=yes"
2989 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2990 echo "$ac_t""yes" 1>&6
2991 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2992 cat >> confdefs.h
<<EOF
2993 #define $gcc_tr_decl 1
2997 echo "$ac_t""no" 1>&6
3003 for ac_func
in malloc realloc calloc free
3005 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3006 echo "configure:3007: checking whether $ac_func must be declared" >&5
3007 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 cat > conftest.
$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3015 #ifdef STRING_WITH_STRINGS
3016 # include <string.h>
3017 # include <strings.h>
3019 # ifdef HAVE_STRING_H
3020 # include <string.h>
3022 # ifdef HAVE_STRINGS_H
3023 # include <strings.h>
3027 #ifdef HAVE_STDLIB_H
3030 #ifdef HAVE_UNISTD_H
3034 #define rindex strrchr
3037 #define index strchr
3039 #ifdef HAVE_MALLOC_H
3044 char *(*pfn) = (char *(*)) $ac_func
3047 if { (eval echo configure
:3048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3049 eval "gcc_cv_decl_needed_$ac_func=no"
3051 echo "configure: failed program was:" >&5
3052 cat conftest.
$ac_ext >&5
3054 eval "gcc_cv_decl_needed_$ac_func=yes"
3059 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3060 echo "$ac_t""yes" 1>&6
3061 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3062 cat >> confdefs.h
<<EOF
3063 #define $gcc_tr_decl 1
3067 echo "$ac_t""no" 1>&6
3073 for ac_func
in getrlimit setrlimit getrusage
3075 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3076 echo "configure:3077: checking whether $ac_func must be declared" >&5
3077 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 cat > conftest.
$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3085 #ifdef STRING_WITH_STRINGS
3086 # include <string.h>
3087 # include <strings.h>
3089 # ifdef HAVE_STRING_H
3090 # include <string.h>
3092 # ifdef HAVE_STRINGS_H
3093 # include <strings.h>
3097 #ifdef HAVE_STDLIB_H
3100 #ifdef HAVE_UNISTD_H
3104 #define rindex strrchr
3107 #define index strchr
3109 #include <sys/types.h>
3110 #ifdef HAVE_SYS_RESOURCE_H
3111 #include <sys/resource.h>
3115 char *(*pfn) = (char *(*)) $ac_func
3118 if { (eval echo configure
:3119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3120 eval "gcc_cv_decl_needed_$ac_func=no"
3122 echo "configure: failed program was:" >&5
3123 cat conftest.
$ac_ext >&5
3125 eval "gcc_cv_decl_needed_$ac_func=yes"
3130 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
3131 echo "$ac_t""yes" 1>&6
3132 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3133 cat >> confdefs.h
<<EOF
3134 #define $gcc_tr_decl 1
3138 echo "$ac_t""no" 1>&6
3144 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3145 echo "configure:3146: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3146 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3147 echo $ac_n "(cached) $ac_c" 1>&6
3149 cat > conftest.
$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3152 #include <sys/types.h>
3154 /* NetBSD declares sys_siglist in unistd.h. */
3155 #ifdef HAVE_UNISTD_H
3159 char *msg = *(sys_siglist + 1);
3162 if { (eval echo configure
:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3164 ac_cv_decl_sys_siglist
=yes
3166 echo "configure: failed program was:" >&5
3167 cat conftest.
$ac_ext >&5
3169 ac_cv_decl_sys_siglist
=no
3174 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3175 if test $ac_cv_decl_sys_siglist = yes; then
3176 cat >> confdefs.h
<<\EOF
3177 #define SYS_SIGLIST_DECLARED 1
3183 # mkdir takes a single argument on some systems.
3184 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
3185 echo "configure:3186: checking if mkdir takes one argument" >&5
3186 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 cat > conftest.
$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3193 #include <sys/types.h>
3194 #ifdef HAVE_SYS_STAT_H
3195 # include <sys/stat.h>
3197 #ifdef HAVE_UNISTD_H
3198 # include <unistd.h>
3200 #ifdef HAVE_DIRECT_H
3201 # include <direct.h>
3207 if { (eval echo configure
:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3209 gcc_cv_mkdir_takes_one_arg
=no
3211 echo "configure: failed program was:" >&5
3212 cat conftest.
$ac_ext >&5
3214 gcc_cv_mkdir_takes_one_arg
=yes
3219 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
3220 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
3221 cat >> confdefs.h
<<\EOF
3222 #define MKDIR_TAKES_ONE_ARG 1
3236 build_install_headers_dir
=install-headers-tar
3241 host_truncate_target
=
3244 # Decode the host machine, then the target machine.
3245 # For the host machine, we save the xm_file variable as host_xm_file;
3246 # then we decode the target machine and forget everything else
3247 # that came from the host machine.
3248 for machine
in $build $host $target; do
3262 # Set this to force installation and use of collect2.
3264 # Set this to override the default target model.
3266 # Set this to control how the header file directory is installed.
3267 install_headers_dir
=install-headers-tar
3268 # Set this to a non-empty list of args to pass to cpp if the target
3269 # wants its .md file passed through cpp.
3271 # Set this if directory names should be truncated to 14 characters.
3273 # Set this if gdb needs a dir command with `dirname $out_file`
3274 gdb_needs_out_file_path
=
3275 # Set this if the build machine requires executables to have a
3278 # Set this to control which thread package will be used.
3280 # Reinitialize these from the flag values every loop pass, since some
3281 # configure entries modify them.
3283 gnu_ld
="$gnu_ld_flag"
3284 enable_threads
=$enable_threads_flag
3286 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
3287 # updated in each machine entry.
3289 cpu_type
=`echo $machine | sed 's/-.*$//'`
3323 tm_file
=${cpu_type}/${cpu_type}.h
3324 xm_file
=${cpu_type}/xm-
${cpu_type}.h
3325 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
;
3327 tm_p_file
=${cpu_type}/${cpu_type}-protos.h
;
3329 # On a.out targets, we need to use collect2.
3336 # Common parts for linux-gnu and openbsd systems
3339 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
3342 tm_file
=${cpu_type}/openbsd.h
3343 tmake_file
="t-libc-ok t-openbsd"
3344 # avoid surprises, always provide an xm-openbsd file
3345 xm_file
=${cpu_type}/xm-openbsd.h
3346 # don't depend on processor x-fragments as well
3348 if test x
$enable_threads = xyes
; then
3350 tmake_file
="${tmake_file} t-openbsd-thread"
3356 # Support site-specific machine types.
3358 cpu_type
=`echo $machine | sed -e 's/-.*//'`
3359 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
3360 xm_file
=${cpu_type}/xm-
$rest.h
3361 tm_file
=${cpu_type}/$rest.h
3362 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
3363 then xmake_file
=${cpu_type}/x-
$rest; \
3366 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
3367 then tmake_file
=${cpu_type}/t-
$rest; \
3373 a29k-
*-bsd* | a29k-
*-sym1*)
3374 tm_file
="${tm_file} a29k/unix.h"
3376 xmake_file
=a29k
/x-unix
3379 a29k-
*-udi | a29k-
*-coff)
3380 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
3381 tmake_file
=a29k
/t-a29kbare
3384 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
3385 tmake_file
=a29k
/t-vx29k
3386 extra_parts
="crtbegin.o crtend.o"
3387 thread_file
='vxworks'
3389 a29k-
*-*) # Default a29k environment.
3393 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
3395 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
3396 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
3398 # GAS + IEEE_CONFORMANT
3399 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3401 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3402 xmake_file
="x-interix alpha/t-pe"
3403 tmake_file
="alpha/t-interix alpha/t-ieee"
3404 if test x
$enable_threads = xyes
; then
3407 if test x
$stabs = xyes
; then
3408 tm_file
="${tm_file} dbxcoff.h"
3410 #prefix='$$INTERIX_ROOT'/usr/contrib
3411 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3413 alpha
*-*-linux-gnuecoff*)
3414 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3415 target_cpu_default
="MASK_GAS"
3416 tmake_file
="alpha/t-ieee"
3421 alpha
*-*-linux-gnulibc1*)
3422 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3423 target_cpu_default
="MASK_GAS"
3424 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3425 extra_parts
="crtbegin.o crtend.o"
3428 if test x
$enable_threads = xyes
; then
3432 alpha
*-*-linux-gnu*)
3433 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3434 target_cpu_default
="MASK_GAS"
3435 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
3436 extra_parts
="crtbegin.o crtend.o"
3439 if test x
$enable_threads = xyes
; then
3444 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3445 target_cpu_default
="MASK_GAS"
3446 tmake_file
="alpha/t-crtbe alpha/t-ieee"
3447 extra_parts
="crtbegin.o crtend.o"
3453 # default x-alpha is only appropriate for dec-osf.
3454 target_cpu_default
="MASK_GAS"
3455 tmake_file
="alpha/t-ieee"
3459 if test x
$stabs = xyes
3461 tm_file
="${tm_file} dbx.h"
3463 if test x
$gas != xyes
3465 extra_passes
="mips-tfile mips-tdump"
3468 tmake_file
="alpha/t-ieee"
3471 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3474 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3477 tm_file
="${tm_file} alpha/osf.h"
3478 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3479 # a broken tar, so we use cpio instead.
3480 install_headers_dir
=install-headers-cpio
3483 tm_file
="${tm_file} alpha/osf.h"
3487 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
3488 target_cpu_default
=MASK_SUPPORT_ARCH
3493 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3494 tmake_file
="alpha/t-ieee"
3497 extra_passes
="mips-tfile mips-tdump"
3500 thread_file
='vxworks'
3503 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3504 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3505 tmake_file
="t-libc-ok alpha/t-ieee"
3506 xmake_file
=winnt
/x-winnt
3507 extra_host_objs
=oldnames.o
3508 extra_gcc_objs
="spawnv.o oldnames.o"
3509 if test x
$gnu_ld != xyes
3511 extra_programs
=ld.exe
3513 if test x
$enable_threads = xyes
; then
3519 xm_file
="${xm_file} alpha/xm-vms.h"
3520 tmake_file
="alpha/t-vms alpha/t-ieee"
3523 extra_parts
="crtinit.o crtfini.o"
3525 arm-
*-coff* | armel-
*-coff*)
3527 tmake_file
=arm
/t-bare
3531 tmake_file
=arm
/t-bare
3532 thread_file
='vxworks'
3534 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3535 tm_file
=arm
/riscix1-1.h
3538 arm-
*-riscix*) # Acorn RISC machine
3539 if test x
$gas = xyes
3541 tm_file
=arm
/rix-gas.h
3543 tm_file
=arm
/riscix.h
3545 xmake_file
=arm
/x-riscix
3546 tmake_file
=arm
/t-riscix
3549 arm-semi-aout | armel-semi-aout
)
3551 tmake_file
=arm
/t-semi
3553 arm-semi-aof | armel-semi-aof
)
3554 tm_file
=arm
/semiaof.h
3555 tmake_file
=arm
/t-semiaof
3558 tm_file
=arm
/netbsd.h
3559 xm_file
="arm/xm-netbsd.h ${xm_file}"
3560 tmake_file
="t-netbsd arm/t-netbsd"
3563 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3566 tm_file
=arm
/linux-aout.h
3567 tmake_file
=arm
/t-linux
3570 arm
*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
3571 xm_file
=arm
/xm-linux.h
3573 tm_file
="arm/linux-oldld.h arm/linux-elf.h"
3576 tm_file
="arm/linux-elf26.h $tm_file"
3579 tmake_file
="t-linux arm/t-linux"
3580 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3582 case x
${enable_threads} in
3583 x | xyes | xpthreads | xposix
)
3588 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3589 xm_file
=arm
/xm-linux.h
3591 tm_file
="arm/linux-elf.h"
3594 tm_file
="arm/linux-elf26.h $tm_file"
3597 tmake_file
="t-linux arm/t-linux"
3598 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3600 case x
${enable_threads} in
3601 x | xyes | xpthreads | xposix
)
3606 arm
*-*-uclinux*) # ARM ucLinux
3607 tm_file
=arm
/uclinux-elf.h
3608 tmake_file
=arm
/t-arm-elf
3612 tmake_file
=arm
/t-bare
3615 tm_file
=arm
/ecos-elf.h
3616 tmake_file
=arm
/t-elf
3619 tm_file
=arm
/unknown-elf.h
3620 tmake_file
=arm
/t-arm-elf
3623 tm_file
=arm
/unknown-elf-oabi.h
3624 tmake_file
=arm
/t-arm-elf
3631 c1-convex-
*) # Convex C1
3632 target_cpu_default
=1
3635 c2-convex-
*) # Convex C2
3636 target_cpu_default
=2
3640 target_cpu_default
=4
3644 target_cpu_default
=8
3648 target_cpu_default
=16
3653 tmake_file
=c4x
/t-c4x
3655 clipper-intergraph-clix
*)
3656 tm_file
="${tm_file} svr3.h clipper/clix.h"
3657 xm_file
=clipper
/xm-clix.h
3658 xmake_file
=clipper
/x-clix
3659 extra_headers
=va-clipper.h
3660 extra_parts
="crtbegin.o crtend.o"
3661 install_headers_dir
=install-headers-cpio
3669 tm_file
="fr30/fr30.h"
3670 tmake_file
=fr30
/t-fr30
3671 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3673 # This hasn't been upgraded to GCC 2.
3674 # fx80-alliant-*) # Alliant FX/80
3680 target_cpu_default
="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
3681 tm_file
="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
3682 tmake_file
="t-linux pa/t-linux"
3683 extra_parts
="crtbegin.o crtend.o"
3686 if test x
$enable_threads = xyes
; then
3691 target_cpu_default
="MASK_PA_11"
3692 tmake_file
=pa
/t-openbsd
3695 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3696 tm_file
="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
3697 xm_file
=pa
/xm-papro.h
3701 target_cpu_default
="MASK_PA_11"
3702 tm_file
="${tm_file} pa/som.h pa/pa-osf.h"
3706 target_cpu_default
="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
3707 tm_file
="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
3708 xm_file
=pa
/xm-papro.h
3712 tm_file
="${tm_file} pa/som.h pa/pa-osf.h"
3716 tm_file
="${tm_file} pa/som.h"
3717 target_cpu_default
="MASK_PA_11"
3721 tm_file
="${tm_file} pa/som.h"
3725 tm_file
="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
3726 xm_file
=pa
/xm-pahpux.h
3727 xmake_file
=pa
/x-pa-hpux
3728 if test x
$gas = xyes
3730 tm_file
="${tm_file} pa/gas.h"
3732 install_headers_dir
=install-headers-cpio
3735 hppa1.0
-*-hpux8.0
[0-2]*)
3736 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3737 xm_file
=pa
/xm-pahpux.h
3738 xmake_file
=pa
/x-pa-hpux
3739 if test x
$gas = xyes
3741 tm_file
="${tm_file} pa/pa-gas.h"
3743 tm_file
="pa/pa-oldas.h ${tm_file}"
3745 install_headers_dir
=install-headers-cpio
3748 hppa1.1
-*-hpux8.0
[0-2]*)
3749 target_cpu_default
="MASK_PA_11"
3750 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3751 xm_file
=pa
/xm-pahpux.h
3752 xmake_file
=pa
/x-pa-hpux
3753 if test x
$gas = xyes
3755 tm_file
="${tm_file} pa/pa-gas.h"
3757 tm_file
="pa/pa-oldas.h ${tm_file}"
3759 install_headers_dir
=install-headers-cpio
3763 target_cpu_default
="MASK_PA_11"
3764 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3765 xm_file
=pa
/xm-pahpux.h
3766 xmake_file
=pa
/x-pa-hpux
3767 if test x
$gas = xyes
3769 tm_file
="${tm_file} pa/pa-gas.h"
3771 install_headers_dir
=install-headers-cpio
3775 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h"
3776 xm_file
=pa
/xm-pahpux.h
3777 xmake_file
=pa
/x-pa-hpux
3778 if test x
$gas = xyes
3780 tm_file
="${tm_file} pa/pa-gas.h"
3782 install_headers_dir
=install-headers-cpio
3785 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3786 target_cpu_default
="MASK_PA_11"
3787 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3788 xm_file
=pa
/xm-pahpux.h
3789 xmake_file
=pa
/x-pa-hpux
3791 if test x
$gas = xyes
3793 tm_file
="${tm_file} pa/pa-gas.h"
3795 if test x
$enable_threads = x
; then
3796 enable_threads
=$have_pthread_h
3798 if test x
$enable_threads = xyes
; then
3800 tmake_file
="${tmake_file} pa/t-dce-thr"
3802 install_headers_dir
=install-headers-cpio
3806 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
3807 xm_file
=pa
/xm-pahpux.h
3808 xmake_file
=pa
/x-pa-hpux
3810 if test x
$gas = xyes
3812 tm_file
="${tm_file} pa/pa-gas.h"
3814 if test x
$enable_threads = x
; then
3815 enable_threads
=$have_pthread_h
3817 if test x
$enable_threads = xyes
; then
3819 tmake_file
="${tmake_file} pa/t-dce-thr"
3821 install_headers_dir
=install-headers-cpio
3824 hppa1.1
-*-hpux11* | hppa2
*-*-hpux11*)
3825 target_cpu_default
="MASK_PA_11"
3826 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3827 xm_file
=pa
/xm-pahpux.h
3828 xmake_file
=pa
/x-pa-hpux
3832 tm_file
="${tm_file} pa/pa-gas.h"
3834 # if [[ x$enable_threads = x ]]; then
3835 # enable_threads=$have_pthread_h
3837 # if [[ x$enable_threads = xyes ]]; then
3839 # tmake_file="${tmake_file} pa/t-dce-thr"
3841 install_headers_dir
=install-headers-cpio
3845 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
3846 xm_file
=pa
/xm-pahpux.h
3847 xmake_file
=pa
/x-pa-hpux
3850 tm_file
="${tm_file} pa/pa-gas.h"
3852 # if [[ x$enable_threads = x ]]; then
3853 # enable_threads=$have_pthread_h
3855 # if [[ x$enable_threads = xyes ]]; then
3857 # tmake_file="${tmake_file} pa/t-dce-thr"
3859 install_headers_dir
=install-headers-cpio
3862 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3863 target_cpu_default
="MASK_PA_11"
3864 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3865 xm_file
=pa
/xm-pahpux.h
3866 xmake_file
=pa
/x-pa-hpux
3867 if test x
$gas = xyes
3869 tm_file
="${tm_file} pa/pa-gas.h"
3871 install_headers_dir
=install-headers-cpio
3875 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
3876 xm_file
=pa
/xm-pahpux.h
3877 xmake_file
=pa
/x-pa-hpux
3878 if test x
$gas = xyes
3880 tm_file
="${tm_file} pa/pa-gas.h"
3882 install_headers_dir
=install-headers-cpio
3885 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3886 target_cpu_default
="MASK_PA_11"
3887 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3888 xm_file
=pa
/xm-pahpux.h
3889 xmake_file
=pa
/x-pa-hpux
3890 if test x
$gas = xyes
3892 tm_file
="${tm_file} pa/pa-gas.h"
3894 install_headers_dir
=install-headers-cpio
3898 tm_file
="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
3899 xm_file
=pa
/xm-pahpux.h
3900 xmake_file
=pa
/x-pa-hpux
3901 if test x
$gas = xyes
3903 tm_file
="${tm_file} pa/pa-gas.h"
3905 install_headers_dir
=install-headers-cpio
3909 tm_file
="${tm_file} elfos.h pa/elf.h"
3910 target_cpu_default
="MASK_PA_11"
3914 tm_file
="${tm_file} pa/pa-mpeix.h"
3915 xm_file
=pa
/xm-pampeix.h
3916 xmake_file
=pa
/x-pa-mpeix
3917 echo "You must use gas. Assuming it is already installed."
3918 install_headers_dir
=install-headers-tar
3919 fixincludes
=Makefile.
in
3922 i370-
*-opened*) # IBM 360/370/390 Architecture
3923 xm_file
=i370
/xm-oe.h
3925 xmake_file
=i370
/x-oe
3926 tmake_file
=i370
/t-oe
3927 fixincludes
=Makefile.
in # Headers are wierd, don't mess with
3930 xm_file
=i370
/xm-mvs.h
3932 tmake_file
=i370
/t-mvs
3933 fixincludes
=Makefile.
in # Headers are wierd, don't mess with
3936 xm_file
="xm-linux.h i370/xm-linux.h"
3938 tm_file
="i370/linux.h ${tm_file}"
3939 tmake_file
="t-linux i370/t-linux"
3940 fixincludes
=Makefile.
in # The headers are ok already.
3941 # broken_install=yes
3942 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3943 # extra_parts="crtbegin.o crtend.o"
3947 if [ x
$enable_threads = xyes
]; then
3952 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h"
3953 tm_file
=i386
/i386elf.h
3954 tmake_file
=i386
/t-i386elf
3957 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3958 if test x
$gas = xyes
3960 tm_file
=i386
/aix386.h
3961 extra_parts
="crtbegin.o crtend.o"
3962 tmake_file
=i386
/t-crtstuff
3964 tm_file
=i386
/aix386ng.h
3967 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3969 xmake_file
=i386
/x-aix
3971 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3972 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3973 xm_defines
="USG POSIX SMALL_ARG_MAX"
3974 xmake_file
=i386
/x-ncr3000
3975 if test x
$stabs = xyes
-a x
$gas = xyes
3977 tm_file
=i386
/sysv4gdb.h
3979 tm_file
=i386
/sysv4.h
3981 extra_parts
="crtbegin.o crtend.o"
3982 tmake_file
=i386
/t-crtpic
3986 xm_file
=i386
/xm-next.h
3987 tmake_file
=i386
/t-next
3988 xmake_file
=i386
/x-next
3989 extra_objs
=nextstep.o
3990 extra_parts
="crtbegin.o crtend.o"
3991 if test x
$enable_threads = xyes
; then
3995 i
[34567]86-sequent-bsd*) # 80386 from Sequent
3997 if test x
$gas = xyes
3999 tm_file
=i386
/seq-gas.h
4001 tm_file
=i386
/sequent.h
4004 i
[34567]86-sequent-ptx1*)
4005 xm_defines
="USG SVR3"
4006 xmake_file
=i386
/x-sysv3
4007 tm_file
=i386
/seq-sysv3.h
4008 tmake_file
=i386
/t-crtstuff
4009 extra_parts
="crtbegin.o crtend.o"
4010 install_headers_dir
=install-headers-cpio
4012 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
4013 xm_defines
="USG SVR3"
4014 xmake_file
=i386
/x-sysv3
4015 tm_file
=i386
/seq2-sysv3.h
4016 tmake_file
=i386
/t-crtstuff
4017 extra_parts
="crtbegin.o crtend.o"
4018 install_headers_dir
=install-headers-cpio
4020 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
4021 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
4022 xm_defines
="USG POSIX SMALL_ARG_MAX"
4024 tm_file
=i386
/ptx4-i.h
4026 extra_parts
="crtbegin.o crtend.o"
4027 install_headers_dir
=install-headers-cpio
4029 i386-sun-sunos
*) # Sun i386 roadrunner
4034 i
[34567]86-wrs-vxworks*)
4035 tm_file
=i386
/vxi386.h
4036 tmake_file
=i386
/t-i386bare
4037 thread_file
='vxworks'
4040 tm_file
=i386
/i386-aout.h
4041 tmake_file
=i386
/t-i386bare
4043 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
4044 tm_file
=i386
/bsd386.h
4045 # tmake_file=t-libc-ok
4048 tm_file
=i386
/386bsd.h
4049 # tmake_file=t-libc-ok
4050 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
4053 i
[34567]86-*-freebsdelf*)
4054 tm_file
="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
4055 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4056 tmake_file
=t-freebsd
4060 case x
${enable_threads} in
4061 xyes | xpthreads | xposix
)
4063 tmake_file
="${tmake_file} t-freebsd-thread"
4067 i
[34567]86-*-freebsd*)
4068 tm_file
="i386/freebsd.h i386/perform.h"
4069 tmake_file
=t-freebsd
4071 i
[34567]86-*-netbsd*)
4072 tm_file
=i386
/netbsd.h
4076 i
[34567]86-*-openbsd*)
4077 # we need collect2 until our bug is fixed...
4081 tm_file
=i386
/i386-coff.h
4082 tmake_file
=i386
/t-i386bare
4084 i
[34567]86-*-isc*) # 80386 running ISC system
4085 xm_file
="${xm_file} i386/xm-isc.h"
4086 xm_defines
="USG SVR3"
4088 i
[34567]86-*-isc[34]*)
4089 xmake_file
=i386
/x-isc3
4092 xmake_file
=i386
/x-isc
4095 if test x
$gas = xyes
-a x
$stabs = xyes
4097 tm_file
=i386
/iscdbx.h
4098 tmake_file
=i386
/t-svr3dbx
4099 extra_parts
="svr3.ifile svr3z.ifile"
4101 tm_file
=i386
/isccoff.h
4102 tmake_file
=i386
/t-crtstuff
4103 extra_parts
="crtbegin.o crtend.o"
4105 install_headers_dir
=install-headers-cpio
4107 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
4109 xmake_file
=x-linux-aout
4110 tmake_file
="t-linux-aout i386/t-crtstuff"
4111 tm_file
=i386
/linux-oldld.h
4115 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
4116 xmake_file
=x-linux-aout
4117 tmake_file
="t-linux-aout i386/t-crtstuff"
4118 tm_file
=i386
/linux-aout.h
4122 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
4123 # GNU/Linux C library 5
4125 tm_file
=i386
/linux.h
4126 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
4127 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4130 if test x
$enable_threads = xyes
; then
4131 thread_file
='single'
4134 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
4135 # aka GNU/Linux C library 6
4137 tm_file
=i386
/linux.h
4138 tmake_file
="t-linux i386/t-crtstuff"
4139 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4142 if test x
$enable_threads = xyes
; then
4149 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
4150 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
4153 i
[34567]86-pc-msdosdjgpp*)
4154 xm_file
=i386
/xm-djgpp.h
4155 tm_file
=i386
/djgpp.h
4156 tmake_file
=i386
/t-djgpp
4157 xmake_file
=i386
/x-djgpp
4161 case $host in *pc-msdosdjgpp
*)
4166 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
4168 tmake_file
=t-libc-ok
4172 i
[34567]86-*-lynxos*)
4173 if test x
$gas = xyes
4177 tm_file
=i386
/lynx-ng.h
4179 xm_file
=i386
/xm-lynx.h
4180 tmake_file
=i386
/t-i386bare
4185 # tmake_file=t-libc-ok
4188 i
[34567]86-*-osfrose*) # 386 using OSF/rose
4189 if test x
$elf = xyes
4191 tm_file
=i386
/osfelf.h
4194 tm_file
=i386
/osfrose.h
4197 xm_file
="i386/xm-osf.h ${xm_file}"
4198 xmake_file
=i386
/x-osfrose
4199 tmake_file
=i386
/t-osf
4200 extra_objs
=halfpic.o
4202 i
[34567]86-go32-rtems*)
4204 xm_file
=i386
/xm-go32.h
4205 tm_file
=i386
/go32-rtems.h
4206 tmake_file
="i386/t-go32 t-rtems"
4208 i
[34567]86-*-rtems*|i
[34567]86-*-rtemself*)
4210 tm_file
=i386
/rtemself.h
4211 extra_parts
="crtbegin.o crtend.o crti.o crtn.o"
4212 tmake_file
="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
4214 i
[34567]86-*-rtemscoff*)
4216 tm_file
=i386
/rtems.h
4217 tmake_file
="i386/t-i386bare t-rtems"
4219 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
4220 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
4221 xm_defines
="USG SVR3"
4222 xmake_file
=i386
/x-sco5
4223 install_headers_dir
=install-headers-cpio
4225 if test x
$gas = xyes
4227 tm_file
="i386/sco5gas.h ${tm_file}"
4228 tmake_file
=i386
/t-sco5gas
4230 tmake_file
=i386
/t-sco5
4232 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
4234 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
4235 xm_file
="${xm_file} i386/xm-sco.h"
4236 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
4237 xmake_file
=i386
/x-sco4
4238 install_headers_dir
=install-headers-cpio
4239 if test x
$stabs = xyes
4241 tm_file
=i386
/sco4dbx.h
4242 tmake_file
=i386
/t-svr3dbx
4243 extra_parts
="svr3.ifile svr3z.rfile"
4246 tmake_file
=i386
/t-crtstuff
4247 extra_parts
="crtbegin.o crtend.o"
4249 # The default EAFS filesystem supports long file names.
4250 # Truncating the target makes $host != $target which
4251 # makes gcc think it is doing a cross-compile.
4252 # truncate_target=yes
4254 i
[34567]86-*-sco*) # 80386 running SCO system
4255 xm_file
=i386
/xm-sco.h
4256 xmake_file
=i386
/x-sco
4257 install_headers_dir
=install-headers-cpio
4258 if test x
$stabs = xyes
4260 tm_file
=i386
/scodbx.h
4261 tmake_file
=i386
/t-svr3dbx
4262 extra_parts
="svr3.ifile svr3z.rfile"
4265 extra_parts
="crtbegin.o crtend.o"
4266 tmake_file
=i386
/t-crtstuff
4270 i
[34567]86-*-solaris2*)
4271 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
4272 xm_defines
="USG POSIX SMALL_ARG_MAX"
4274 if test x
$gas = xyes
; then
4275 # Only needed if gas does not support -s
4276 tm_file
="i386/sol2gas.h ${tm_file}"
4278 tmake_file
=i386
/t-sol2
4279 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4281 if test x
${enable_threads} = x
; then
4282 enable_threads
=$have_pthread_h
4283 if test x
${enable_threads} = x
; then
4284 enable_threads
=$have_thread_h
4287 if test x
${enable_threads} = xyes
; then
4288 if test x
${have_pthread_h} = xyes
; then
4291 thread_file
='solaris'
4295 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
4296 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
4297 xm_defines
="USG POSIX"
4298 tm_file
=i386
/sysv5.h
4299 if test x
$stabs = xyes
4301 tm_file
="${tm_file} dbx.h"
4303 tmake_file
=i386
/t-crtpic
4305 extra_parts
="crtbegin.o crtend.o"
4306 if test x
$enable_threads = xyes
; then
4310 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
4311 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
4312 xm_defines
="USG POSIX SMALL_ARG_MAX"
4313 tm_file
=i386
/sysv4.h
4314 if test x
$stabs = xyes
4316 tm_file
="${tm_file} dbx.h"
4318 tmake_file
=i386
/t-crtpic
4320 extra_parts
="crtbegin.o crtend.o"
4322 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
4323 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
4324 xm_defines
="USG POSIX"
4326 tmake_file
="i386/t-crtpic i386/t-udk"
4328 extra_parts
="crtbegin.o crtend.o"
4329 install_headers_dir
=install-headers-cpio
4331 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
4333 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
4334 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
4335 if test x
$stabs = xyes
4337 tm_file
=i386
/osf1elfgdb.h
4339 tm_file
=i386
/osf1elf.h
4341 tmake_file
=i386
/t-osf1elf
4342 xmake_file
=i386
/x-osf1elf
4343 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4345 i
[34567]86-*-sysv*) # Intel 80386's running system V
4346 xm_defines
="USG SVR3"
4347 xmake_file
=i386
/x-sysv3
4348 if test x
$gas = xyes
4350 if test x
$stabs = xyes
4352 tm_file
=i386
/svr3dbx.h
4353 tmake_file
=i386
/t-svr3dbx
4354 extra_parts
="svr3.ifile svr3z.rfile"
4356 tm_file
=i386
/svr3gas.h
4357 extra_parts
="crtbegin.o crtend.o"
4358 tmake_file
=i386
/t-crtstuff
4361 tm_file
=i386
/sysv3.h
4362 extra_parts
="crtbegin.o crtend.o"
4363 tmake_file
=i386
/t-crtstuff
4366 i386-
*-vsta) # Intel 80386's running VSTa kernel
4367 xm_file
="${xm_file} i386/xm-vsta.h"
4369 tmake_file
=i386
/t-vsta
4370 xmake_file
=i386
/x-vsta
4373 xm_file
="${xm_file} i386/xm-cygwin.h"
4374 tmake_file
=i386
/t-cygwin
4375 tm_file
=i386
/win32.h
4376 xmake_file
=i386
/x-cygwin
4378 if test x
$enable_threads = xyes
; then
4383 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
4384 xm_file
="${xm_file} i386/xm-cygwin.h"
4385 tmake_file
=i386
/t-cygwin
4386 tm_file
=i386
/cygwin.h
4387 xmake_file
=i386
/x-cygwin
4389 if test x
$enable_threads = xyes
; then
4394 i
[34567]86-*-mingw32*)
4395 tm_file
=i386
/mingw32.h
4396 xm_file
="${xm_file} i386/xm-mingw32.h"
4397 tmake_file
="i386/t-cygwin i386/t-mingw32"
4399 xmake_file
=i386
/x-cygwin
4400 if test x
$enable_threads = xyes
; then
4407 *minwg32crt
* |
*mingw32
*)
4408 tm_file
="${tm_file} i386/crtdll.h"
4414 xm_file
="${xm_file} i386/xm-uwin.h"
4415 xm_defines
="USG NO_STAB_H NO_SYS_SIGLIST"
4416 tmake_file
="i386/t-cygwin i386/t-uwin"
4418 xmake_file
=i386
/x-cygwin
4419 if test x
$enable_threads = xyes
; then
4424 i
[34567]86-*-interix*)
4425 tm_file
="i386/i386-interix.h interix.h"
4426 xm_file
="i386/xm-i386-interix.h xm-interix.h"
4427 xm_defines
="USG NO_SYS_SIGLIST"
4428 tmake_file
="i386/t-interix"
4429 extra_objs
=interix.o
4430 xmake_file
=x-interix
4431 if test x
$enable_threads = xyes
; then
4434 if test x
$stabs = xyes
; then
4435 tm_file
="${tm_file} dbxcoff.h"
4438 i
[34567]86-*-winnt3*)
4439 tm_file
=i386
/win-nt.h
4440 out_file
=i386
/i386.c
4441 xm_file
="xm-winnt.h ${xm_file}"
4442 xmake_file
=winnt
/x-winnt
4443 tmake_file
=i386
/t-winnt
4444 extra_host_objs
="winnt.o oldnames.o"
4445 extra_gcc_objs
="spawnv.o oldnames.o"
4446 if test x
$gnu_ld != xyes
4448 extra_programs
=ld.exe
4450 if test x
$enable_threads = xyes
; then
4454 i
[34567]86-dg-dgux*)
4455 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
4456 xm_defines
="USG POSIX"
4457 out_file
=i386
/dgux.c
4459 tmake_file
=i386
/t-dgux
4460 xmake_file
=i386
/x-dgux
4461 install_headers_dir
=install-headers-cpio
4463 i860-alliant-
*) # Alliant FX/2800
4464 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
4465 xm_file
="${xm_file}"
4466 xmake_file
=i860
/x-fx2800
4467 tmake_file
=i860
/t-fx2800
4468 extra_parts
="crtbegin.o crtend.o"
4471 tm_file
="${tm_file} i860/bsd.h"
4472 if test x
$gas = xyes
4474 tm_file
="${tm_file} i860/bsd-gas.h"
4479 tm_file
="${tm_file} i860/mach.h"
4480 tmake_file
=t-libc-ok
4482 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
4483 tm_file
="${tm_file} svr3.h i860/paragon.h"
4484 xm_defines
="USG SVR3"
4488 tm_file
="${tm_file} svr3.h i860/sysv3.h"
4489 xm_defines
="USG SVR3"
4490 xmake_file
=i860
/x-sysv3
4491 extra_parts
="crtbegin.o crtend.o"
4494 tm_file
="${tm_file} svr4.h i860/sysv4.h"
4495 xm_defines
="USG SVR3"
4496 xmake_file
=i860
/x-sysv4
4498 extra_parts
="crtbegin.o crtend.o"
4500 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
4501 tm_file
="${tm_file} i960/vx960.h"
4502 tmake_file
=i960
/t-vxworks960
4504 thread_file
='vxworks'
4506 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
4507 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
4508 tmake_file
=i960
/t-vxworks960
4510 thread_file
='vxworks'
4513 tm_file
="${tm_file} i960/vx960.h"
4514 tmake_file
=i960
/t-vxworks960
4516 thread_file
='vxworks'
4519 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
4520 tmake_file
=i960
/t-960bare
4524 tmake_file
="i960/t-960bare t-rtems"
4525 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
4528 i960-
*-*) # Default i960 environment.
4532 extra_parts
="crtinit.o crtfini.o"
4534 m68000-convergent-sysv
*)
4536 xm_file
="m68k/xm-3b1.h ${xm_file}"
4539 extra_headers
=math-68881.h
4541 m68000-hp-bsd
*) # HP 9000/200 running BSD
4542 tm_file
=m68k
/hp2bsd.h
4543 xmake_file
=m68k
/x-hp2bsd
4545 extra_headers
=math-68881.h
4547 m68000-hp-hpux
*) # HP 9000 series 300
4548 xm_file
="xm-alloca.h ${xm_file}"
4549 xm_defines
="USG NO_SYS_SIGLIST"
4550 if test x
$gas = xyes
4552 xmake_file
=m68k
/x-hp320g
4553 tm_file
=m68k
/hp310g.h
4555 xmake_file
=m68k
/x-hp320
4556 tm_file
=m68k
/hp310.h
4558 install_headers_dir
=install-headers-cpio
4560 extra_headers
=math-68881.h
4565 extra_headers
=math-68881.h
4568 tm_file
=m68k
/sun2o4.h
4570 extra_headers
=math-68881.h
4573 xm_file
="m68k/xm-3b1.h ${xm_file}"
4575 if test x
$gas = xyes
4582 extra_headers
=math-68881.h
4584 m68k-apple-aux
*) # Apple Macintosh running A/UX
4585 xm_defines
="USG AUX"
4586 tmake_file
=m68k
/t-aux
4587 install_headers_dir
=install-headers-cpio
4588 extra_headers
=math-68881.h
4589 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4591 if test "$gnu_ld" = yes
4593 tm_file
="${tm_file} m68k/auxgld.h"
4595 tm_file
="${tm_file} m68k/auxld.h"
4597 if test "$gas" = yes
4599 tm_file
="${tm_file} m68k/auxgas.h"
4601 tm_file
="${tm_file} m68k/auxas.h"
4603 tm_file
="${tm_file} m68k/a-ux.h"
4607 tm_file
=m68k
/apollo68.h
4608 xmake_file
=m68k
/x-apollo68
4610 extra_headers
=math-68881.h
4613 m68k-altos-sysv
*) # Altos 3068
4614 if test x
$gas = xyes
4616 tm_file
=m68k
/altos3068.h
4619 echo "The Altos is supported only with the GNU assembler" 1>&2
4622 extra_headers
=math-68881.h
4624 m68k-bull-sysv
*) # Bull DPX/2
4625 if test x
$gas = xyes
4627 if test x
$stabs = xyes
4629 tm_file
=m68k
/dpx2cdbx.h
4631 tm_file
=m68k
/dpx2g.h
4636 xm_file
="xm-alloca.h ${xm_file}"
4638 xmake_file
=m68k
/x-dpx2
4640 extra_headers
=math-68881.h
4642 m68k-atari-sysv4
*) # Atari variant of V.4.
4643 tm_file
=m68k
/atari.h
4644 xm_file
="xm-alloca.h ${xm_file}"
4645 xm_defines
="USG FULL_PROTOTYPES"
4647 extra_parts
="crtbegin.o crtend.o"
4648 extra_headers
=math-68881.h
4651 m68k-motorola-sysv
*)
4652 tm_file
=m68k
/mot3300.h
4653 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4654 xm_defines
=NO_SYS_SIGLIST
4655 if test x
$gas = xyes
4657 xmake_file
=m68k
/x-mot3300-gas
4658 if test x
$gnu_ld = xyes
4660 tmake_file
=m68k
/t-mot3300-gald
4662 tmake_file
=m68k
/t-mot3300-gas
4666 xmake_file
=m68k
/x-mot3300
4667 if test x
$gnu_ld = xyes
4669 tmake_file
=m68k
/t-mot3300-gld
4671 tmake_file
=m68k
/t-mot3300
4675 gdb_needs_out_file_path
=yes
4676 extra_parts
="crt0.o mcrt0.o"
4677 extra_headers
=math-68881.h
4680 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4681 tm_file
=m68k
/tower-as.h
4682 xm_defines
="USG SVR3"
4683 xmake_file
=m68k
/x-tower
4684 extra_parts
="crtbegin.o crtend.o"
4685 extra_headers
=math-68881.h
4688 tm_file
=m68k
/plexus.h
4689 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4692 extra_headers
=math-68881.h
4696 xm_file
="xm-alloca.h ${xm_file}"
4698 extra_headers
=math-68881.h
4701 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4702 xm_defines
="USG unos"
4703 xmake_file
=m68k
/x-crds
4706 extra_headers
=math-68881.h
4708 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4710 xm_file
="xm-alloca.h ${xm_file}"
4711 xm_defines
="USG FULL_PROTOTYPES"
4712 xmake_file
=m68k
/x-amix
4714 extra_parts
="crtbegin.o crtend.o"
4715 extra_headers
=math-68881.h
4719 tm_file
=m68k
/ccur-GAS.h
4720 xmake_file
=m68k
/x-ccur
4721 extra_headers
=math-68881.h
4725 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4726 tm_file
=m68k
/hp3bsd44.h
4727 xmake_file
=m68k
/x-hp3bsd44
4729 extra_headers
=math-68881.h
4732 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4733 tm_file
=m68k
/hp3bsd.h
4735 extra_headers
=math-68881.h
4739 if test x
$with_fp = xno
4741 tm_file
=m68k
/isi-nfp.h
4747 extra_headers
=math-68881.h
4749 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4750 xm_file
="xm-alloca.h ${xm_file}"
4751 xm_defines
="USG NO_SYS_SIGLIST"
4752 if test x
$gas = xyes
4754 xmake_file
=m68k
/x-hp320g
4755 tm_file
=m68k
/hp320g.h
4757 xmake_file
=m68k
/x-hp320
4758 tm_file
=m68k
/hpux7.h
4760 install_headers_dir
=install-headers-cpio
4762 extra_headers
=math-68881.h
4765 m68k-hp-hpux
*) # HP 9000 series 300
4766 xm_file
="xm-alloca.h ${xm_file}"
4767 xm_defines
="USG NO_SYS_SIGLIST"
4768 if test x
$gas = xyes
4770 xmake_file
=m68k
/x-hp320g
4771 tm_file
=m68k
/hp320g.h
4773 xmake_file
=m68k
/x-hp320
4774 tm_file
=m68k
/hp320.h
4776 install_headers_dir
=install-headers-cpio
4778 extra_headers
=math-68881.h
4782 tm_file
=m68k
/sun3mach.h
4784 extra_headers
=math-68881.h
4788 if test x
$gas = xyes
4790 tm_file
=m68k
/news3gas.h
4792 tm_file
=m68k
/news3.h
4795 extra_headers
=math-68881.h
4798 m68k-sony-bsd
* | m68k-sony-newsos
*)
4799 if test x
$gas = xyes
4801 tm_file
=m68k
/newsgas.h
4806 extra_headers
=math-68881.h
4809 m68k-next-nextstep2
*)
4810 tm_file
=m68k
/next21.h
4811 xm_file
="m68k/xm-next.h ${xm_file}"
4812 tmake_file
=m68k
/t-next
4813 xmake_file
=m68k
/x-next
4814 extra_objs
=nextstep.o
4815 extra_headers
=math-68881.h
4819 m68k-next-nextstep
[34]*)
4821 xm_file
="m68k/xm-next.h ${xm_file}"
4822 tmake_file
=m68k
/t-next
4823 xmake_file
=m68k
/x-next
4824 extra_objs
=nextstep.o
4825 extra_parts
="crtbegin.o crtend.o"
4826 extra_headers
=math-68881.h
4828 if test x
$enable_threads = xyes
; then
4833 if test x
$with_fp = xno
4835 tm_file
=m68k
/sun3n3.h
4837 tm_file
=m68k
/sun3o3.h
4841 extra_headers
=math-68881.h
4843 m68k-sun-sunos
*) # For SunOS 4 (the default).
4844 if test x
$with_fp = xno
4846 tm_file
=m68k
/sun3n.h
4852 extra_headers
=math-68881.h
4855 tm_file
=m68k
/vxm68k.h
4856 tmake_file
=m68k
/t-vxworks68
4857 extra_headers
=math-68881.h
4858 thread_file
='vxworks'
4862 tmake_file
=m68k
/t-m68kbare
4863 tm_file
="m68k/m68k-aout.h libgloss.h"
4864 extra_headers
=math-68881.h
4868 tmake_file
=m68k
/t-m68kbare
4869 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4870 extra_headers
=math-68881.h
4873 m68020-
*-elf* | m68k-
*-elf*)
4874 tm_file
="m68k/m68020-elf.h"
4875 xm_file
=m68k
/xm-m68kv.h
4876 tmake_file
=m68k
/t-m68kelf
4877 header_files
=math-68881.h
4880 if test x
$gas = xyes
4884 tm_file
=m68k
/lynx-ng.h
4886 xm_file
=m68k
/xm-lynx.h
4888 tmake_file
=m68k
/t-lynx
4889 extra_headers
=math-68881.h
4893 tm_file
=m68k
/netbsd.h
4900 # we need collect2 until our bug is fixed...
4903 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4904 xm_file
="xm-alloca.h ${xm_file}"
4906 xmake_file
=m68k
/x-m68kv
4907 extra_parts
="crtbegin.o crtend.o"
4908 extra_headers
=math-68881.h
4911 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4912 tm_file
=m68k
/m68kv4.h
4913 xm_file
="xm-alloca.h ${xm_file}"
4916 extra_parts
="crtbegin.o crtend.o"
4917 extra_headers
=math-68881.h
4920 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4923 tm_file
=m68k
/linux-aout.h
4924 tmake_file
="t-linux-aout m68k/t-linux-aout"
4925 extra_headers
=math-68881.h
4929 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4930 # with ELF format using the
4931 # GNU/Linux C library 5
4933 tm_file
=m68k
/linux.h
4934 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4935 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4936 extra_headers
=math-68881.h
4940 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4941 # with ELF format using glibc 2
4942 # aka the GNU/Linux C library 6.
4944 tm_file
=m68k
/linux.h
4945 tmake_file
="t-linux m68k/t-linux"
4946 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4947 extra_headers
=math-68881.h
4950 if test x
$enable_threads = xyes
; then
4955 tmake_file
=m68k
/t-m68kbare
4956 tm_file
=m68k
/m68k-psos.h
4957 extra_headers
=math-68881.h
4960 m68k-
*-rtemscoff*|m68k-
*-rtems*)
4961 tmake_file
="m68k/t-m68kbare t-rtems"
4962 tm_file
=m68k
/rtems.h
4963 extra_headers
=math-68881.h
4967 tmake_file
="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
4968 tm_file
=m68k
/rtemself.h
4969 extra_headers
=math-68881.h
4975 tm_file
=m88k
/dguxbcs.h
4976 tmake_file
=m88k
/t-dguxbcs
4980 tmake_file
=m88k
/t-dgux
4983 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4984 xmake_file
=m88k
/x-dgux
4985 if test x
$gas = xyes
4987 tmake_file
=m88k
/t-dgux-gas
4990 m88k-dolphin-sysv3
*)
4991 tm_file
=m88k
/dolph.h
4992 extra_parts
="crtbegin.o crtend.o"
4993 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4994 xmake_file
=m88k
/x-dolph
4995 if test x
$gas = xyes
4997 tmake_file
=m88k
/t-m88k-gas
5000 m88k-tektronix-sysv3
)
5001 tm_file
=m88k
/tekXD88.h
5002 extra_parts
="crtbegin.o crtend.o"
5003 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5004 xmake_file
=m88k
/x-tekXD88
5005 if test x
$gas = xyes
5007 tmake_file
=m88k
/t-m88k-gas
5011 tm_file
=m88k
/m88k-aout.h
5014 tm_file
=m88k
/m88k-coff.h
5015 tmake_file
=m88k
/t-bug
5019 extra_parts
="crtbegin.o crtend.o"
5020 if test x
$gas = xyes
5022 tmake_file
=m88k
/t-luna-gas
5024 tmake_file
=m88k
/t-luna
5028 tmake_file
="${tmake_file} m88k/t-luna-gas"
5031 tm_file
=m88k
/sysv3.h
5032 extra_parts
="crtbegin.o crtend.o"
5033 xm_file
="m88k/xm-sysv3.h ${xm_file}"
5034 xmake_file
=m88k
/x-sysv3
5035 if test x
$gas = xyes
5037 tmake_file
=m88k
/t-m88k-gas
5041 tm_file
=m88k
/sysv4.h
5042 extra_parts
="crtbegin.o crtend.o"
5043 xmake_file
=m88k
/x-sysv4
5044 tmake_file
=m88k
/t-sysv4
5046 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
5047 if test "x$gnu_ld" = xyes
5049 tm_file
="mips/iris6.h mips/iris6gld.h"
5051 tm_file
=mips
/iris6.h
5053 tmake_file
=mips
/t-iris6
5054 xm_file
=mips
/xm-iris6.h
5055 xmake_file
=mips
/x-iris6
5056 # if test x$enable_threads = xyes; then
5057 # thread_file='irix'
5061 tm_file
="mips/elf.h mips/vxworks.h"
5062 tmake_file
=mips
/t-ecoff
5065 extra_parts
="crtbegin.o crtend.o"
5066 thread_file
='vxworks'
5068 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
5069 tm_file
="mips/iris6.h mips/cross64.h"
5071 xm_file
="mips/xm-iris5.h"
5072 xmake_file
=mips
/x-iris
5073 tmake_file
=mips
/t-cross64
5074 # See comment in mips/iris[56].h files.
5076 # if test x$enable_threads = xyes; then
5077 # thread_file='irix'
5081 if test x
$gas = xyes
5083 if test x
$stabs = xyes
5085 tm_file
=mips
/iris5gdb.h
5087 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
5090 tm_file
=mips
/sni-svr4.h
5093 xmake_file
=mips
/x-sni-svr4
5094 tmake_file
=mips
/t-mips-gas
5095 if test x
$gnu_ld != xyes
5100 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
5101 if test x
$gas = xyes
5103 tm_file
="mips/iris5.h mips/iris5gas.h"
5104 if test x
$stabs = xyes
5106 tm_file
="${tm_file} dbx.h"
5109 tm_file
=mips
/iris5.h
5112 xm_file
="mips/xm-iris5.h"
5113 xmake_file
=mips
/x-iris
5114 # mips-tfile doesn't work yet
5115 tmake_file
=mips
/t-mips-gas
5116 # See comment in mips/iris5.h file.
5118 # if test x$enable_threads = xyes; then
5119 # thread_file='irix'
5122 mips-sgi-irix4loser
*) # Mostly like a MIPS.
5123 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
5124 if test x
$stabs = xyes
; then
5125 tm_file
="${tm_file} dbx.h"
5128 xmake_file
=mips
/x-iris
5129 if test x
$gas = xyes
5131 tmake_file
=mips
/t-mips-gas
5133 extra_passes
="mips-tfile mips-tdump"
5135 if test x
$gnu_ld != xyes
5139 # if test x$enable_threads = xyes; then
5140 # thread_file='irix'
5143 mips-sgi-irix4
*) # Mostly like a MIPS.
5144 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
5145 if test x
$stabs = xyes
; then
5146 tm_file
="${tm_file} dbx.h"
5149 xmake_file
=mips
/x-iris
5150 if test x
$gas = xyes
5152 tmake_file
=mips
/t-mips-gas
5154 extra_passes
="mips-tfile mips-tdump"
5156 if test x
$gnu_ld != xyes
5160 # if test x$enable_threads = xyes; then
5161 # thread_file='irix'
5164 mips-sgi-
*) # Mostly like a MIPS.
5165 tm_file
="mips/iris3.h ${tm_file}"
5166 if test x
$stabs = xyes
; then
5167 tm_file
="${tm_file} dbx.h"
5170 xmake_file
=mips
/x-iris3
5171 if test x
$gas = xyes
5173 tmake_file
=mips
/t-mips-gas
5175 extra_passes
="mips-tfile mips-tdump"
5177 if test x
$gnu_ld != xyes
5182 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
5183 tm_file
="mips/osfrose.h ${tm_file}"
5184 xmake_file
=mips
/x-osfrose
5185 tmake_file
=mips
/t-osfrose
5186 extra_objs
=halfpic.o
5189 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
5190 tm_file
=mips
/dec-osf1.h
5191 if test x
$stabs = xyes
; then
5192 tm_file
="${tm_file} dbx.h"
5194 xmake_file
=mips
/x-dec-osf1
5195 if test x
$gas = xyes
5197 tmake_file
=mips
/t-mips-gas
5199 tmake_file
=mips
/t-ultrix
5200 extra_passes
="mips-tfile mips-tdump"
5202 if test x
$gnu_ld != xyes
5207 mips-dec-bsd
*) # Decstation running 4.4 BSD
5208 tm_file
=mips
/dec-bsd.h
5209 if test x
$gas = xyes
5211 tmake_file
=mips
/t-mips-gas
5213 tmake_file
=mips
/t-ultrix
5214 extra_passes
="mips-tfile mips-tdump"
5216 if test x
$gnu_ld != xyes
5221 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
5222 tm_file
=mips
/netbsd.h
5223 # On NetBSD, the headers are already okay, except for math.h.
5226 mips
*-*-linux*) # Linux MIPS, either endian.
5228 xm_file
="xm-siglist.h ${xm_file}"
5230 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
5231 *) tm_file
="mips/elf.h mips/linux.h" ;;
5233 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5236 if test x
$enable_threads = xyes
; then
5240 mips
*el-
*-openbsd*) # mips little endian
5241 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5243 mips
*-*-openbsd*) # mips big endian
5244 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
5245 tm_file
="mips/openbsd-be.h ${tm_file}"
5247 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
5248 tm_file
="mips/news4.h ${tm_file}"
5249 if test x
$stabs = xyes
; then
5250 tm_file
="${tm_file} dbx.h"
5252 if test x
$gas = xyes
5254 tmake_file
=mips
/t-mips-gas
5256 extra_passes
="mips-tfile mips-tdump"
5258 if test x
$gnu_ld != xyes
5262 xmake_file
=mips
/x-sony
5264 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
5265 # That is based on svr4.
5266 # t-svr4 is not right because this system doesn't use ELF.
5267 tm_file
="mips/news5.h ${tm_file}"
5268 if test x
$stabs = xyes
; then
5269 tm_file
="${tm_file} dbx.h"
5271 xm_file
="xm-siglist.h ${xm_file}"
5273 if test x
$gas = xyes
5275 tmake_file
=mips
/t-mips-gas
5277 extra_passes
="mips-tfile mips-tdump"
5279 if test x
$gnu_ld != xyes
5284 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
5285 tm_file
="mips/svr4-5.h mips/svr4-t.h"
5286 if test x
$stabs = xyes
; then
5287 tm_file
="${tm_file} dbx.h"
5289 xm_file
="xm-siglist.h ${xm_file}"
5291 xmake_file
=mips
/x-sysv
5292 if test x
$gas = xyes
5294 tmake_file
=mips
/t-mips-gas
5295 extra_parts
="crtbegin.o crtend.o"
5297 tmake_file
=mips
/t-mips
5298 extra_passes
="mips-tfile mips-tdump"
5300 if test x
$gnu_ld != xyes
5305 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
5306 tm_file
="mips/ultrix.h ${tm_file}"
5307 if test x
$stabs = xyes
; then
5308 tm_file
="${tm_file} dbx.h"
5310 xmake_file
=mips
/x-ultrix
5311 if test x
$gas = xyes
5313 tmake_file
=mips
/t-mips-gas
5315 tmake_file
=mips
/t-ultrix
5316 extra_passes
="mips-tfile mips-tdump"
5318 if test x
$gnu_ld != xyes
5323 mips-
*-riscos[56789]bsd
*)
5324 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
5325 if test x
$stabs = xyes
; then
5326 tm_file
="${tm_file} dbx.h"
5328 if test x
$gas = xyes
5330 tmake_file
=mips
/t-bsd-gas
5332 tmake_file
=mips
/t-bsd
5333 extra_passes
="mips-tfile mips-tdump"
5335 if test x
$gnu_ld != xyes
5340 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
5341 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
5342 if test x
$stabs = xyes
; then
5343 tm_file
="${tm_file} dbx.h"
5345 if test x
$gas = xyes
5347 tmake_file
=mips
/t-bsd-gas
5349 tmake_file
=mips
/t-bsd
5350 extra_passes
="mips-tfile mips-tdump"
5352 if test x
$gnu_ld != xyes
5357 mips-
*-riscos[56789]sysv4
*)
5358 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
5359 if test x
$stabs = xyes
; then
5360 tm_file
="${tm_file} dbx.h"
5362 xm_file
="xm-siglist.h ${xm_file}"
5363 xmake_file
=mips
/x-sysv
5364 if test x
$gas = xyes
5366 tmake_file
=mips
/t-svr4-gas
5368 tmake_file
=mips
/t-svr4
5369 extra_passes
="mips-tfile mips-tdump"
5371 if test x
$gnu_ld != xyes
5376 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
5377 tm_file
="mips/svr4-4.h ${tm_file}"
5378 if test x
$stabs = xyes
; then
5379 tm_file
="${tm_file} dbx.h"
5382 xmake_file
=mips
/x-sysv
5383 if test x
$gas = xyes
5385 tmake_file
=mips
/t-svr4-gas
5387 tmake_file
=mips
/t-svr4
5388 extra_passes
="mips-tfile mips-tdump"
5390 if test x
$gnu_ld != xyes
5395 mips-
*-riscos[56789]sysv
*)
5396 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
5397 if test x
$stabs = xyes
; then
5398 tm_file
="${tm_file} dbx.h"
5401 xmake_file
=mips
/x-sysv
5402 if test x
$gas = xyes
5404 tmake_file
=mips
/t-svr3-gas
5406 tmake_file
=mips
/t-svr3
5407 extra_passes
="mips-tfile mips-tdump"
5409 if test x
$gnu_ld != xyes
5414 mips-
*-sysv* | mips-
*-riscos*sysv
*)
5415 tm_file
="mips/svr3-4.h ${tm_file}"
5416 if test x
$stabs = xyes
; then
5417 tm_file
="${tm_file} dbx.h"
5420 xmake_file
=mips
/x-sysv
5421 if test x
$gas = xyes
5423 tmake_file
=mips
/t-svr3-gas
5425 tmake_file
=mips
/t-svr3
5426 extra_passes
="mips-tfile mips-tdump"
5428 if test x
$gnu_ld != xyes
5433 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
5434 tm_file
=mips
/mips-5.h
5435 if test x
$stabs = xyes
; then
5436 tm_file
="${tm_file} dbx.h"
5438 if test x
$gas = xyes
5440 tmake_file
=mips
/t-mips-gas
5442 extra_passes
="mips-tfile mips-tdump"
5444 if test x
$gnu_ld != xyes
5452 tm_file
=mips
/ecoffl.h
5453 if test x
$stabs = xyes
; then
5454 tm_file
="${tm_file} dbx.h"
5456 tmake_file
=mips
/t-ecoff
5459 tm_file
="gofast.h mips/ecoff.h"
5460 if test x
$stabs = xyes
; then
5461 tm_file
="${tm_file} dbx.h"
5463 tmake_file
=mips
/t-ecoff
5466 tm_file
="mips/elfl.h"
5467 tmake_file
=mips
/t-elf
5470 tm_file
="mips/elf.h"
5471 tmake_file
=mips
/t-elf
5474 tm_file
="mips/elfl64.h"
5475 tmake_file
=mips
/t-elf
5477 mips64orionel-
*-elf*)
5478 tm_file
="mips/elforion.h mips/elfl64.h"
5479 tmake_file
=mips
/t-elf
5482 tm_file
="mips/elf64.h"
5483 tmake_file
=mips
/t-elf
5486 tm_file
="mips/elforion.h mips/elf64.h"
5487 tmake_file
=mips
/t-elf
5489 mips64orion-
*-rtems*)
5490 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5491 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
5492 tmake_file
="mips/t-elf t-rtems"
5495 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
5496 tmake_file
=mips
/t-r3900
5499 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
5500 tmake_file
=mips
/t-r3900
5502 mips-
*-*) # Default MIPS RISC-OS 4.0.
5503 if test x
$stabs = xyes
; then
5504 tm_file
="${tm_file} dbx.h"
5506 if test x
$gas = xyes
5508 tmake_file
=mips
/t-mips-gas
5510 extra_passes
="mips-tfile mips-tdump"
5512 if test x
$gnu_ld != xyes
5519 tm_file
="mn10200/mn10200.h"
5520 if test x
$stabs = xyes
5522 tm_file
="${tm_file} dbx.h"
5528 tm_file
="mn10300/mn10300.h"
5529 if test x
$stabs = xyes
5531 tm_file
="${tm_file} dbx.h"
5536 tm_file
=ns32k
/encore.h
5540 tm_file
=ns32k
/sequent.h
5544 tm_file
=ns32k
/tek6100.h
5548 tm_file
=ns32k
/tek6200.h
5551 # This has not been updated to GCC 2.
5554 # xmake_file=ns32k/x-genix
5555 # tm_file=ns32k/genix.h
5559 tm_file
=ns32k
/merlin.h
5563 tm_file
=ns32k
/pc532-mach.h
5567 tm_file
=ns32k
/pc532-min.h
5568 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5573 tm_file
=ns32k
/netbsd.h
5574 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5575 # On NetBSD, the headers are already okay, except for math.h.
5580 tm_file
="${tm_file} pdp11/2bsd.h"
5587 # This has not been updated to GCC 2.
5590 # xmake_file=pyr/x-pyr
5597 xmake_file
=romp
/x-mach
5604 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5608 tm_file
=rs6000
/beos.h
5609 xm_file
=rs6000
/xm-beos.h
5610 tmake_file
=rs6000
/t-beos
5611 xmake_file
=rs6000
/x-beos
5613 powerpc-
*-sysv* | powerpc-
*-elf*)
5614 tm_file
=rs6000
/sysv4.h
5615 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5616 xm_defines
="USG POSIX"
5617 extra_headers
=ppc-asm.h
5618 if test x
$gas = xyes
5620 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5622 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5624 xmake_file
=rs6000
/x-sysv4
5627 tm_file
=rs6000
/eabiaix.h
5628 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5629 extra_headers
=ppc-asm.h
5632 tm_file
=rs6000
/eabisim.h
5633 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5634 extra_headers
=ppc-asm.h
5637 tm_file
=rs6000
/eabi.h
5638 if test x
$gas = xyes
5640 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5642 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5644 extra_headers
=ppc-asm.h
5647 tm_file
=rs6000
/rtems.h
5648 if test x
$gas = xyes
5650 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5652 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5654 extra_headers
=ppc-asm.h
5656 powerpc-
*-linux-gnulibc1)
5657 tm_file
=rs6000
/linux.h
5658 xm_file
=rs6000
/xm-sysv4.h
5659 out_file
=rs6000
/rs6000.c
5660 if test x
$gas = xyes
5662 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5664 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5667 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5668 extra_headers
=ppc-asm.h
5669 if test x
$enable_threads = xyes
; then
5673 powerpc-
*-linux-gnu*)
5674 tm_file
=rs6000
/linux.h
5675 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5676 xm_defines
="USG ${xm_defines}"
5677 out_file
=rs6000
/rs6000.c
5678 if test x
$gas = xyes
5680 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5682 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5685 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5686 extra_headers
=ppc-asm.h
5687 if test x
$enable_threads = xyes
; then
5691 powerpc-wrs-vxworks
*)
5693 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5694 xm_defines
="USG POSIX"
5695 tm_file
=rs6000
/vxppc.h
5696 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5697 extra_headers
=ppc-asm.h
5698 thread_file
='vxworks'
5700 powerpcle-
*-sysv* | powerpcle-
*-elf*)
5701 tm_file
=rs6000
/sysv4le.h
5702 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5703 xm_defines
="USG POSIX"
5704 if test x
$gas = xyes
5706 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5708 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5710 xmake_file
=rs6000
/x-sysv4
5711 extra_headers
=ppc-asm.h
5713 powerpcle-
*-eabisim*)
5714 tm_file
=rs6000
/eabilesim.h
5715 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5716 extra_headers
=ppc-asm.h
5719 tm_file
=rs6000
/eabile.h
5720 if test x
$gas = xyes
5722 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5724 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5726 extra_headers
=ppc-asm.h
5728 powerpcle-
*-winnt* )
5729 tm_file
=rs6000
/win-nt.h
5730 tmake_file
=rs6000
/t-winnt
5732 if test x
$enable_threads = xyes
; then
5735 extra_headers
=ppc-asm.h
5737 powerpcle-
*-pe | powerpcle-
*-cygwin*)
5738 tm_file
=rs6000
/cygwin.h
5739 xm_file
="rs6000/xm-cygwin.h ${xm_file}"
5740 tmake_file
=rs6000
/t-winnt
5741 xmake_file
=rs6000
/x-cygwin
5743 if test x
$enable_threads = xyes
; then
5747 extra_headers
=ppc-asm.h
5749 powerpcle-
*-solaris2*)
5750 tm_file
=rs6000
/sol2.h
5751 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5752 xm_defines
="USG POSIX"
5753 if test x
$gas = xyes
5755 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5757 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5759 xmake_file
=rs6000
/x-sysv4
5760 extra_headers
=ppc-asm.h
5762 rs6000-ibm-aix3.
[01]*)
5763 tm_file
=rs6000
/aix31.h
5764 xmake_file
=rs6000
/x-aix31
5768 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5769 tm_file
=rs6000
/aix3newas.h
5770 if test x
$host != x
$target
5772 tmake_file
=rs6000
/t-xnewas
5774 tmake_file
=rs6000
/t-newas
5779 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5780 tm_file
=rs6000
/aix41.h
5781 if test x
$host != x
$target
5783 tmake_file
=rs6000
/t-xnewas
5785 tmake_file
=rs6000
/t-newas
5787 if test "$gnu_ld" = yes
5789 xmake_file
=rs6000
/x-aix41-gld
5791 xmake_file
=rs6000
/x-aix41
5796 rs6000-ibm-aix4.
[3456789]* | powerpc-ibm-aix4.
[3456789]*)
5797 tm_file
=rs6000
/aix43.h
5798 if test x
$host != x
$target
5800 tmake_file
=rs6000
/t-xaix43
5802 tmake_file
=rs6000
/t-aix43
5804 xmake_file
=rs6000
/x-aix43
5808 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5809 tm_file
=rs6000
/aix43.h
5810 if test x
$host != x
$target
5812 tmake_file
=rs6000
/t-xaix43
5814 tmake_file
=rs6000
/t-aix43
5816 xmake_file
=rs6000
/x-aix43
5829 tm_file
=rs6000
/mach.h
5830 xm_file
="${xm_file} rs6000/xm-mach.h"
5831 xmake_file
=rs6000
/x-mach
5835 tm_file
=rs6000
/lynx.h
5836 xm_file
=rs6000
/xm-lynx.h
5837 tmake_file
=rs6000
/t-rs6000
5838 xmake_file
=rs6000
/x-lynx
5846 tmake_file
="sh/t-sh t-rtems"
5847 tm_file
=sh
/rtemself.h
5851 tmake_file
="sh/t-sh t-rtems"
5860 xm_file
="xm-alloca.h ${xm_file}"
5863 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5864 tm_file
=sparc
/vxsparc.h
5865 tmake_file
=sparc
/t-vxsparc
5867 thread_file
='vxworks'
5870 tmake_file
=sparc
/t-sparcbare
5871 tm_file
="sparc/aout.h libgloss.h"
5874 tm_file
=sparc
/netbsd.h
5879 # we need collect2 until our bug is fixed...
5887 tmake_file
=sparc
/t-elf
5888 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5892 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5893 xm_file
="${xm_file} sparc/xm-linux.h"
5894 tm_file
=sparc
/linux-aout.h
5898 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5899 xm_file
="${xm_file} sparc/xm-linux.h"
5901 tm_file
=sparc
/linux.h
5902 tmake_file
="t-linux t-linux-gnulibc1"
5903 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5907 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5908 xm_file
="${xm_file} sparc/xm-linux.h"
5910 tm_file
=sparc
/linux.h
5911 tmake_file
="t-linux"
5912 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5914 if test x
$enable_threads = xyes
; then
5920 if test x
$gas = xyes
5922 tm_file
=sparc
/lynx.h
5924 tm_file
=sparc
/lynx-ng.h
5926 xm_file
=sparc
/xm-lynx.h
5927 tmake_file
=sparc
/t-sunos41
5930 sparc-
*-rtems*|sparc-
*-rtemself*)
5931 tm_file
="sparc/rtemself.h"
5932 tmake_file
="sparc/t-elf t-rtems"
5933 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5938 tmake_file
="sparc/t-sparcbare t-rtems"
5939 tm_file
=sparc
/rtems.h
5941 sparcv9-
*-solaris2*)
5942 if test x
$gnu_ld = xyes
5944 tm_file
=sparc
/sol2-64.h
5946 tm_file
=sparc
/sol2-sld-64.h
5948 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5949 xm_defines
="USG POSIX"
5950 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5951 xmake_file
=sparc
/x-sysv4
5952 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5954 if test x
${enable_threads} = x
; then
5955 enable_threads
=$have_pthread_h
5956 if test x
${enable_threads} = x
; then
5957 enable_threads
=$have_thread_h
5960 if test x
${enable_threads} = xyes
; then
5961 if test x
${have_pthread_h} = xyes
; then
5964 thread_file
='solaris'
5968 sparc-hal-solaris2
*)
5969 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5970 xm_defines
="USG POSIX"
5971 tm_file
="sparc/sol2.h sparc/hal.h"
5972 tmake_file
="sparc/t-halos sparc/t-sol2"
5973 xmake_file
=sparc
/x-sysv4
5974 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5983 thread_file
='solaris'
5986 if test x
$gnu_ld = xyes
5988 tm_file
=sparc
/sol2.h
5990 tm_file
=sparc
/sol2-sld.h
5992 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5993 xm_defines
="USG POSIX"
5994 tmake_file
=sparc
/t-sol2
5995 xmake_file
=sparc
/x-sysv4
5996 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5998 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
6000 if test x
$gnu_ld = xyes
6002 tm_file
=sparc
/sol2-64.h
6004 tm_file
=sparc
/sol2-sld-64.h
6006 tmake_file
="$tmake_file sparc/t-sol2-64"
6017 if test x
${enable_threads} = x
; then
6018 enable_threads
=$have_pthread_h
6019 if test x
${enable_threads} = x
; then
6020 enable_threads
=$have_thread_h
6023 if test x
${enable_threads} = xyes
; then
6024 if test x
${have_pthread_h} = xyes
; then
6027 thread_file
='solaris'
6032 tm_file
=sparc
/sunos4.h
6033 tmake_file
=sparc
/t-sunos40
6037 tm_file
=sparc
/sunos4.h
6038 tmake_file
=sparc
/t-sunos41
6040 if test x
$gas = xyes
; then
6041 tm_file
="${tm_file} sparc/sun4gas.h"
6045 tm_file
=sparc
/sun4o3.h
6049 tm_file
=sparc
/sysv4.h
6050 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
6051 xm_defines
="USG POSIX"
6053 xmake_file
=sparc
/x-sysv4
6054 extra_parts
="crtbegin.o crtend.o"
6057 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
6058 xm_defines
="USG POSIX"
6059 tm_file
=sparc
/vxsim.h
6060 tmake_file
=sparc
/t-vxsparc
6061 xmake_file
=sparc
/x-sysv4
6064 tm_file
="sparc/splet.h libgloss.h"
6065 tmake_file
=sparc
/t-splet
6068 tm_file
="sparc/litecoff.h libgloss.h"
6069 tmake_file
=sparc
/t-sparclite
6072 tm_file
="sparc/lite.h aoutos.h libgloss.h"
6073 tmake_file
=sparc
/t-sparclite
6076 tm_file
="sparc/liteelf.h"
6077 tmake_file
=sparc
/t-sparclite
6078 extra_parts
="crtbegin.o crtend.o"
6081 tm_file
="sparc/sp86x-aout.h aoutos.h libgloss.h"
6082 tmake_file
=sparc
/t-sp86x
6085 tm_file
="sparc/sp86x-elf.h"
6086 tmake_file
=sparc
/t-sp86x
6087 extra_parts
="crtbegin.o crtend.o"
6090 tmake_file
=sparc
/t-sp64
6091 tm_file
=sparc
/sp64-aout.h
6094 tmake_file
=sparc
/t-sp64
6095 tm_file
=sparc
/sp64-elf.h
6096 extra_parts
="crtbegin.o crtend.o"
6098 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
6099 tmake_file
="t-linux sparc/t-linux64"
6100 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
6101 tm_file
=sparc
/linux64.h
6103 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
6105 if test x
$enable_threads = xyes
; then
6110 # This hasn't been upgraded to GCC 2.
6111 # tahoe-harris-*) # Harris tahoe, using COFF.
6112 # tm_file=tahoe/harris.h
6114 # tahoe-*-bsd*) # tahoe running BSD
6116 thumb-
*-coff* | thumbel-
*-coff*)
6118 out_file
=arm
/thumb.c
6119 xm_file
=arm
/xm-thumb.h
6120 md_file
=arm
/thumb.md
6121 tmake_file
=arm
/t-thumb
6123 thumb-
*-elf* | thumbel-
*-elf*)
6125 out_file
=arm
/thumb.c
6126 xm_file
=arm
/xm-thumb.h
6127 md_file
=arm
/thumb.md
6128 tmake_file
=arm
/t-thumb-elf
6131 tm_file
=arm
/linux-telf.h
6132 out_file
=arm
/thumb.c
6133 xm_file
=arm
/xm-thumb.h
6134 md_file
=arm
/thumb.md
6135 tmake_file
=arm
/t-thumb-linux
6138 tm_file
=arm
/uclinux-telf.h
6139 out_file
=arm
/thumb.c
6140 md_file
=arm
/thumb.md
6141 tmake_file
=arm
/t-thumb-linux
6142 xm_file
=arm
/xm-thumb.h
6146 out_file
=arm
/thumb.c
6147 xm_file
=arm
/xm-thumb.h
6148 md_file
=arm
/thumb.md
6149 tmake_file
=arm
/t-thumb
6150 thread_file
='vxworks'
6154 out_file
=arm
/thumb.c
6155 xm_file
=arm
/xm-thumb.h
6156 md_file
=arm
/thumb.md
6157 tmake_file
=arm
/t-pe-thumb
6160 # This hasn't been upgraded to GCC 2.
6166 target_cpu_default
="TARGET_CPU_generic"
6168 tm_file
="v850/v850.h"
6169 xm_file
="v850/xm-v850.h"
6170 tmake_file
=v850
/t-v850
6171 if test x
$stabs = xyes
6173 tm_file
="${tm_file} dbx.h"
6177 vax-
*-bsd*) # vaxen running BSD
6181 vax-
*-sysv*) # vaxen running system V
6182 tm_file
="${tm_file} vax/vaxv.h"
6187 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
6193 tmake_file
="${tmake_file} vax/t-openbsd"
6195 vax-
*-ultrix*) # vaxen running ultrix
6196 tm_file
="${tm_file} vax/ultrix.h"
6200 vax-
*-vms*) # vaxen running VMS
6201 xm_file
=vax
/xm-vms.h
6205 vax-
*-*) # vax default entry
6209 xm_file
="${xm_file} xm-svr3"
6213 echo "Configuration $machine not supported" 1>&2
6220 ;; # Existing GNU/Linux systems do not use the GNU setup.
6222 # On the GNU system, the setup is just about the same on
6223 # each different CPU. The specific machines that GNU
6224 # supports are matched above and just set $cpu_type.
6225 xm_file
="xm-gnu.h ${xm_file}"
6226 tm_file
=${cpu_type}/gnu.h
6227 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
6228 # GNU always uses ELF.
6230 # GNU tools are the only tools.
6233 xmake_file
=x-linux
# These details are the same as Linux.
6234 tmake_file
=t-gnu
# These are not.
6237 xmake_try_sysv
=x-sysv
6238 install_headers_dir
=install-headers-cpio
6241 install_headers_dir
=install-headers-cpio
6245 # Distinguish i[34567]86
6246 # Also, do not run mips-tfile on MIPS if using gas.
6247 # Process --with-cpu= for PowerPC/rs6000
6248 target_cpu_default2
=
6251 target_cpu_default2
=1
6254 case $target_alias in
6256 target_cpu_default2
=4
6259 target_cpu_default2
=2
6263 i686-
*-* | i786-
*-*)
6264 target_cpu_default2
=3
6269 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
6272 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
6275 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
6278 target_cpu_default2
="MASK_CPU_EV5"
6282 if test x
$gas = xyes
6284 if test "$target_cpu_default2" = ""
6286 target_cpu_default2
="MASK_GAS"
6288 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
6293 case "x$with_cpu" in
6296 target_cpu_default2
="TARGET_CPU_generic"
6299 # Distinguish cores, and major variants
6300 # arm7m doesn't exist, but D & I don't affect code
6301 xarm
[23678] | xarm250 | xarm
[67][01]0 \
6302 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
6303 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
6304 | xstrongarm | xstrongarm110 | xstrongarm1100
)
6305 target_cpu_default2
="TARGET_CPU_$with_cpu"
6309 echo "--with-cpu must be passed a value" 1>&2
6314 if test x
$pass2done = xyes
6316 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6323 mips
*-*-ecoff* | mips
*-*-elf*)
6324 if test x
$gas = xyes
6326 if test x
$gnu_ld = xyes
6328 target_cpu_default2
=20
6330 target_cpu_default2
=16
6335 if test x
$gas = xyes
6337 target_cpu_default2
=16
6340 powerpc
*-*-* | rs6000-
*-*)
6341 case "x$with_cpu" in
6345 xcommon | xpower | xpower2 | xpowerpc | xrios \
6346 | xrios1 | xrios2 | xrsc | xrsc1 \
6347 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
6348 | xec603e | x740 | x750 | x401 \
6349 | x403 | x505 | x801 | x821 | x823 | x860
)
6350 target_cpu_default2
="\"$with_cpu\""
6354 echo "--with-cpu must be passed a value" 1>&2
6359 if test x
$pass2done = xyes
6361 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6368 case ".$with_cpu" in
6370 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
6372 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
6373 target_cpu_default2
="TARGET_CPU_$with_cpu"
6376 if test x
$pass2done = xyes
6378 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
6386 if test "$target_cpu_default2" != ""
6388 if test "$target_cpu_default" != ""
6390 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
6392 target_cpu_default
=$target_cpu_default2
6396 # No need for collect2 if we have the GNU linker.
6397 # Actually, there is now; GNU ld doesn't handle the EH info or
6398 # collecting for shared libraries.
6405 # Save data on machine being used to compile GCC in build_xm_file.
6406 # Save data on host machine in vars host_xm_file and host_xmake_file.
6407 if test x
$pass1done = x
6409 if test x
"$xm_file" = x
6410 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
6411 else build_xm_file
=$xm_file
6413 build_xm_defines
=$xm_defines
6414 build_install_headers_dir
=$install_headers_dir
6415 build_exeext
=$exeext
6418 if test x
$pass2done = x
6420 if test x
"$xm_file" = x
6421 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
6422 else host_xm_file
=$xm_file
6424 host_xm_defines
=$xm_defines
6425 if test x
"$xmake_file" = x
6426 then xmake_file
=$cpu_type/x-
$cpu_type
6428 host_xmake_file
="$xmake_file"
6429 host_truncate_target
=$truncate_target
6430 host_extra_gcc_objs
=$extra_gcc_objs
6431 host_extra_objs
=$extra_host_objs
6438 extra_objs
="${host_extra_objs} ${extra_objs}"
6440 # Default the target-machine variables that were not explicitly set.
6441 if test x
"$tm_file" = x
6442 then tm_file
=$cpu_type/$cpu_type.h
; fi
6444 if test x
$extra_headers = x
6445 then extra_headers
=; fi
6447 if test x
"$xm_file" = x
6448 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
6450 if test x
$md_file = x
6451 then md_file
=$cpu_type/$cpu_type.md
; fi
6453 if test x
$out_file = x
6454 then out_file
=$cpu_type/$cpu_type.c
; fi
6456 if test x
"$tmake_file" = x
6457 then tmake_file
=$cpu_type/t-
$cpu_type
6460 if test x
"$dwarf2" = xyes
6461 then tm_file
="tm-dwarf2.h $tm_file"
6464 if test x
$float_format = x
6465 then float_format
=i64
6468 if test $float_format = none
6469 then float_h_file
=Makefile.
in
6470 else float_h_file
=float-
$float_format.h
6473 # Handle cpp installation.
6474 if test x
$enable_cpp != xno
6476 tmake_file
="$tmake_file t-install-cpp"
6479 # Say what files are being used for the output code and MD file.
6480 echo "Using \`$srcdir/config/$out_file' to output insns."
6481 echo "Using \`$srcdir/config/$md_file' as machine description file."
6484 for f
in $tm_file; do
6487 if test $count = ax
; then
6488 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
6490 echo "Using the following target machine macro files:"
6491 for f
in $tm_file; do
6492 echo " $srcdir/config/$f"
6497 for f
in $host_xm_file; do
6500 if test $count = ax
; then
6501 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
6503 echo "Using the following host machine macro files:"
6504 for f
in $host_xm_file; do
6505 echo " $srcdir/config/$f"
6509 if test "$host_xm_file" != "$build_xm_file"; then
6511 for f
in $build_xm_file; do
6514 if test $count = ax
; then
6515 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
6517 echo "Using the following build machine macro files:"
6518 for f
in $build_xm_file; do
6519 echo " $srcdir/config/$f"
6524 if test x
$thread_file = x
; then
6525 if test x
$target_thread_file != x
; then
6526 thread_file
=$target_thread_file
6528 thread_file
='single'
6532 # Set up the header files.
6533 # $links is the list of header files to create.
6534 # $vars is the list of shell variables with file names to include.
6535 # auto-host.h is the file containing items generated by autoconf and is
6536 # the first file included by config.h.
6538 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
6540 # If host=build, it is correct to have hconfig include auto-host.h
6541 # as well. If host!=build, we are in error and need to do more
6542 # work to find out the build config parameters.
6543 if test x
$host = x
$build
6545 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
6547 # We create a subdir, then run autoconf in the subdir.
6548 # To prevent recursion we set host and build for the new
6549 # invocation of configure to the build for this invocation
6556 /*) realsrcdir
=${srcdir};;
6557 *) realsrcdir
=..
/${srcdir};;
6559 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
6560 --target=$target --host=$build --build=$build
6562 # We just finished tests for the build machine, so rename
6563 # the file auto-build.h in the gcc directory.
6564 mv auto-host.h ..
/auto-build.h
6567 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
6570 xm_file
="gansidecl.h ${xm_file}"
6571 tm_file
="gansidecl.h ${tm_file}"
6573 vars
="host_xm_file tm_file tm_p_file xm_file build_xm_file"
6574 links
="config.h tm.h tm_p.h tconfig.h hconfig.h"
6575 defines
="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
6578 if test -f config.status
; then mv -f config.status config.bak
; fi
6581 while test -n "$vars"
6583 set $vars; var
=$1; shift; vars
=$
*
6584 set $links; link
=$1; shift; links
=$
*
6585 set $defines; define
=$1; shift; defines
=$
*
6588 # Make sure the file is created, even if it is empty.
6591 # Define TARGET_CPU_DEFAULT if the system wants one.
6592 # This substitutes for lots of *.h files.
6593 if test "$target_cpu_default" != "" -a $link = tm.h
6595 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
6598 for file in `eval echo '$'$var`; do
6603 echo '#ifdef IN_GCC' >>$link
6606 echo "#include \"$file\"" >>$link
6611 echo '#endif' >>$link
6616 for def
in `eval echo '$'$define`; do
6617 echo "#ifndef $def" >>$link
6618 echo "#define $def" >>$link
6619 echo "#endif" >>$link
6623 # Truncate the target if necessary
6624 if test x
$host_truncate_target != x
; then
6625 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
6628 # Get the version trigger filename from the toplevel
6629 if test "${with_gcc_version_trigger+set}" = set; then
6630 gcc_version_trigger
=$with_gcc_version_trigger
6632 gcc_version_trigger
=${srcdir}/version.c
6634 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
6636 # Internationalization
6638 VERSION
="$gcc_version"
6639 cat >> confdefs.h
<<EOF
6640 #define PACKAGE "$PACKAGE"
6643 cat >> confdefs.h
<<EOF
6644 #define VERSION "$VERSION"
6652 # NLS support is still experimental, so disable it by default for now.
6653 # Check whether --enable-nls or --disable-nls was given.
6654 if test "${enable_nls+set}" = set; then
6655 enableval
="$enable_nls"
6663 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6664 echo "configure:6665: checking for strerror in -lcposix" >&5
6665 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 ac_save_LIBS
="$LIBS"
6670 LIBS
="-lcposix $LIBS"
6671 cat > conftest.
$ac_ext <<EOF
6672 #line 6673 "configure"
6673 #include "confdefs.h"
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6683 if { (eval echo configure
:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6685 eval "ac_cv_lib_$ac_lib_var=yes"
6687 echo "configure: failed program was:" >&5
6688 cat conftest.
$ac_ext >&5
6690 eval "ac_cv_lib_$ac_lib_var=no"
6693 LIBS
="$ac_save_LIBS"
6696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6697 echo "$ac_t""yes" 1>&6
6698 LIBS
="$LIBS -lcposix"
6700 echo "$ac_t""no" 1>&6
6705 echo $ac_n "checking for working const""... $ac_c" 1>&6
6706 echo "configure:6707: checking for working const" >&5
6707 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6708 echo $ac_n "(cached) $ac_c" 1>&6
6710 cat > conftest.
$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6716 /* Ultrix mips cc rejects this. */
6717 typedef int charset[2]; const charset x;
6718 /* SunOS 4.1.1 cc rejects this. */
6719 char const *const *ccp;
6721 /* NEC SVR4.0.2 mips cc rejects this. */
6722 struct point {int x, y;};
6723 static struct point const zero = {0,0};
6724 /* AIX XL C 1.02.0.0 rejects this.
6725 It does not let you subtract one const X* pointer from another in an arm
6726 of an if-expression whose if-part is not a constant expression */
6727 const char *g = "string";
6728 ccp = &g + (g ? g-g : 0);
6729 /* HPUX 7.0 cc rejects these. */
6732 ccp = (char const *const *) p;
6733 { /* SCO 3.2v4 cc rejects this. */
6735 char const *s = 0 ? (char *) 0 : (char const *) 0;
6739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6741 const int *foo = &x[0];
6744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6745 typedef const int *iptr;
6749 { /* AIX XL C 1.02.0.0 rejects this saying
6750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6751 struct s { int j; const int *ap[3]; };
6752 struct s *b; b->j = 5;
6754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6760 if { (eval echo configure
:6761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6764 echo "configure: failed program was:" >&5
6765 cat conftest.
$ac_ext >&5
6772 echo "$ac_t""$ac_cv_c_const" 1>&6
6773 if test $ac_cv_c_const = no
; then
6774 cat >> confdefs.h
<<\EOF
6780 echo $ac_n "checking for inline""... $ac_c" 1>&6
6781 echo "configure:6782: checking for inline" >&5
6782 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6786 for ac_kw
in inline __inline__ __inline
; do
6787 cat > conftest.
$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6795 if { (eval echo configure
:6796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6797 ac_cv_c_inline
=$ac_kw; break
6799 echo "configure: failed program was:" >&5
6800 cat conftest.
$ac_ext >&5
6807 echo "$ac_t""$ac_cv_c_inline" 1>&6
6808 case "$ac_cv_c_inline" in
6810 no
) cat >> confdefs.h
<<\EOF
6814 *) cat >> confdefs.h
<<EOF
6815 #define inline $ac_cv_c_inline
6820 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6821 echo "configure:6822: checking for off_t" >&5
6822 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6825 cat > conftest.
$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6828 #include <sys/types.h>
6834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6837 ac_cv_type_off_t
=yes
6845 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6846 if test $ac_cv_type_off_t = no
; then
6847 cat >> confdefs.h
<<\EOF
6853 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6854 echo "configure:6855: checking for size_t" >&5
6855 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6858 cat > conftest.
$ac_ext <<EOF
6859 #line 6860 "configure"
6860 #include "confdefs.h"
6861 #include <sys/types.h>
6867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6870 ac_cv_type_size_t
=yes
6873 ac_cv_type_size_t
=no
6878 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6879 if test $ac_cv_type_size_t = no
; then
6880 cat >> confdefs.h
<<\EOF
6881 #define size_t unsigned
6886 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6887 # for constant arguments. Useless!
6888 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6889 echo "configure:6890: checking for working alloca.h" >&5
6890 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6893 cat > conftest.
$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6898 char *p = alloca(2 * sizeof(int));
6901 if { (eval echo configure
:6902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6903 ac_cv_header_alloca_h
=yes
6905 echo "configure: failed program was:" >&5
6906 cat conftest.
$ac_ext >&5
6908 ac_cv_header_alloca_h
=no
6913 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6914 if test $ac_cv_header_alloca_h = yes; then
6915 cat >> confdefs.h
<<\EOF
6916 #define HAVE_ALLOCA_H 1
6921 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6922 echo "configure:6923: checking for alloca" >&5
6923 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6926 cat > conftest.
$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6931 # define alloca __builtin_alloca
6934 # include <malloc.h>
6935 # define alloca _alloca
6938 # include <alloca.h>
6943 # ifndef alloca /* predefined by HP cc +Olibcalls */
6952 char *p = (char *) alloca(1);
6955 if { (eval echo configure
:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6957 ac_cv_func_alloca_works
=yes
6959 echo "configure: failed program was:" >&5
6960 cat conftest.
$ac_ext >&5
6962 ac_cv_func_alloca_works
=no
6967 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6968 if test $ac_cv_func_alloca_works = yes; then
6969 cat >> confdefs.h
<<\EOF
6970 #define HAVE_ALLOCA 1
6975 if test $ac_cv_func_alloca_works = no
; then
6976 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6977 # that cause trouble. Some versions do not even contain alloca or
6978 # contain a buggy version. If you still want to use their alloca,
6979 # use ar to extract alloca.o from them instead of compiling alloca.c.
6980 ALLOCA
=alloca.
${ac_objext}
6981 cat >> confdefs.h
<<\EOF
6986 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6987 echo "configure:6988: checking whether alloca needs Cray hooks" >&5
6988 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6989 echo $ac_n "(cached) $ac_c" 1>&6
6991 cat > conftest.
$ac_ext <<EOF
6992 #line 6993 "configure"
6993 #include "confdefs.h"
6994 #if defined(CRAY) && ! defined(CRAY2)
7001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7002 egrep "webecray" >/dev
/null
2>&1; then
7013 echo "$ac_t""$ac_cv_os_cray" 1>&6
7014 if test $ac_cv_os_cray = yes; then
7015 for ac_func
in _getb67 GETB67 getb67
; do
7016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7017 echo "configure:7018: checking for $ac_func" >&5
7018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7019 echo $ac_n "(cached) $ac_c" 1>&6
7021 cat > conftest.
$ac_ext <<EOF
7022 #line 7023 "configure"
7023 #include "confdefs.h"
7024 /* System header to define __stub macros and hopefully few prototypes,
7025 which can conflict with char $ac_func(); below. */
7027 /* Override any gcc2 internal prototype to avoid an error. */
7028 /* We use char because int might match the return type of a gcc2
7029 builtin and then its argument prototype would still apply. */
7034 /* The GNU C library defines this for functions which it implements
7035 to always fail with ENOSYS. Some functions are actually named
7036 something starting with __ and the normal name is an alias. */
7037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7045 if { (eval echo configure
:7046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7047 eval "ac_cv_func_$ac_func=yes"
7049 echo "configure: failed program was:" >&5
7050 cat conftest.
$ac_ext >&5
7052 eval "ac_cv_func_$ac_func=no"
7057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7058 echo "$ac_t""yes" 1>&6
7059 cat >> confdefs.h
<<EOF
7060 #define CRAY_STACKSEG_END $ac_func
7065 echo "$ac_t""no" 1>&6
7071 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7072 echo "configure:7073: checking stack direction for C alloca" >&5
7073 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7076 if test "$cross_compiling" = yes; then
7077 ac_cv_c_stack_direction
=0
7079 cat > conftest.
$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7082 find_stack_direction ()
7084 static char *addr = 0;
7089 return find_stack_direction ();
7092 return (&dummy > addr) ? 1 : -1;
7096 exit (find_stack_direction() < 0);
7099 if { (eval echo configure
:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7101 ac_cv_c_stack_direction
=1
7103 echo "configure: failed program was:" >&5
7104 cat conftest.
$ac_ext >&5
7106 ac_cv_c_stack_direction
=-1
7113 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7114 cat >> confdefs.h
<<EOF
7115 #define STACK_DIRECTION $ac_cv_c_stack_direction
7121 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7122 unistd.h sys
/param.h
7124 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7126 echo "configure:7127: checking for $ac_hdr" >&5
7127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7130 cat > conftest.
$ac_ext <<EOF
7131 #line 7132 "configure"
7132 #include "confdefs.h"
7135 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7136 { (eval echo configure
:7137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7137 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7138 if test -z "$ac_err"; then
7140 eval "ac_cv_header_$ac_safe=yes"
7143 echo "configure: failed program was:" >&5
7144 cat conftest.
$ac_ext >&5
7146 eval "ac_cv_header_$ac_safe=no"
7150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7151 echo "$ac_t""yes" 1>&6
7152 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7153 cat >> confdefs.h
<<EOF
7154 #define $ac_tr_hdr 1
7158 echo "$ac_t""no" 1>&6
7162 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7163 strdup __argz_count __argz_stringify __argz_next
7165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7166 echo "configure:7167: checking for $ac_func" >&5
7167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7168 echo $ac_n "(cached) $ac_c" 1>&6
7170 cat > conftest.
$ac_ext <<EOF
7171 #line 7172 "configure"
7172 #include "confdefs.h"
7173 /* System header to define __stub macros and hopefully few prototypes,
7174 which can conflict with char $ac_func(); below. */
7176 /* Override any gcc2 internal prototype to avoid an error. */
7177 /* We use char because int might match the return type of a gcc2
7178 builtin and then its argument prototype would still apply. */
7183 /* The GNU C library defines this for functions which it implements
7184 to always fail with ENOSYS. Some functions are actually named
7185 something starting with __ and the normal name is an alias. */
7186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7194 if { (eval echo configure
:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7196 eval "ac_cv_func_$ac_func=yes"
7198 echo "configure: failed program was:" >&5
7199 cat conftest.
$ac_ext >&5
7201 eval "ac_cv_func_$ac_func=no"
7206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7207 echo "$ac_t""yes" 1>&6
7208 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7209 cat >> confdefs.h
<<EOF
7210 #define $ac_tr_func 1
7214 echo "$ac_t""no" 1>&6
7219 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7220 for ac_func
in stpcpy
7222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7223 echo "configure:7224: checking for $ac_func" >&5
7224 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7225 echo $ac_n "(cached) $ac_c" 1>&6
7227 cat > conftest.
$ac_ext <<EOF
7228 #line 7229 "configure"
7229 #include "confdefs.h"
7230 /* System header to define __stub macros and hopefully few prototypes,
7231 which can conflict with char $ac_func(); below. */
7233 /* Override any gcc2 internal prototype to avoid an error. */
7234 /* We use char because int might match the return type of a gcc2
7235 builtin and then its argument prototype would still apply. */
7240 /* The GNU C library defines this for functions which it implements
7241 to always fail with ENOSYS. Some functions are actually named
7242 something starting with __ and the normal name is an alias. */
7243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7251 if { (eval echo configure
:7252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7253 eval "ac_cv_func_$ac_func=yes"
7255 echo "configure: failed program was:" >&5
7256 cat conftest.
$ac_ext >&5
7258 eval "ac_cv_func_$ac_func=no"
7263 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7264 echo "$ac_t""yes" 1>&6
7265 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7266 cat >> confdefs.h
<<EOF
7267 #define $ac_tr_func 1
7271 echo "$ac_t""no" 1>&6
7276 if test "${ac_cv_func_stpcpy}" = "yes"; then
7277 cat >> confdefs.h
<<\EOF
7278 #define HAVE_STPCPY 1
7283 if test $ac_cv_header_locale_h = yes; then
7284 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7285 echo "configure:7286: checking for LC_MESSAGES" >&5
7286 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7289 cat > conftest.
$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7297 if { (eval echo configure
:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7299 am_cv_val_LC_MESSAGES
=yes
7301 echo "configure: failed program was:" >&5
7302 cat conftest.
$ac_ext >&5
7304 am_cv_val_LC_MESSAGES
=no
7309 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7310 if test $am_cv_val_LC_MESSAGES = yes; then
7311 cat >> confdefs.h
<<\EOF
7312 #define HAVE_LC_MESSAGES 1
7317 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7318 echo "configure:7319: checking whether NLS is requested" >&5
7319 # Check whether --enable-nls or --disable-nls was given.
7320 if test "${enable_nls+set}" = set; then
7321 enableval
="$enable_nls"
7327 echo "$ac_t""$USE_NLS" 1>&6
7330 USE_INCLUDED_LIBINTL
=no
7332 if test "$USE_NLS" = "yes"; then
7333 cat >> confdefs.h
<<\EOF
7334 #define ENABLE_NLS 1
7337 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7338 echo "configure:7339: checking whether included gettext is requested" >&5
7339 # Check whether --with-included-gettext or --without-included-gettext was given.
7340 if test "${with_included_gettext+set}" = set; then
7341 withval
="$with_included_gettext"
7342 nls_cv_force_use_gnu_gettext
=$withval
7344 nls_cv_force_use_gnu_gettext
=no
7347 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7349 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
7350 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7352 nls_cv_header_libgt
=
7355 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7356 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7357 echo "configure:7358: checking for libintl.h" >&5
7358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7359 echo $ac_n "(cached) $ac_c" 1>&6
7361 cat > conftest.
$ac_ext <<EOF
7362 #line 7363 "configure"
7363 #include "confdefs.h"
7364 #include <libintl.h>
7366 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7367 { (eval echo configure
:7368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7368 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7369 if test -z "$ac_err"; then
7371 eval "ac_cv_header_$ac_safe=yes"
7374 echo "configure: failed program was:" >&5
7375 cat conftest.
$ac_ext >&5
7377 eval "ac_cv_header_$ac_safe=no"
7381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7382 echo "$ac_t""yes" 1>&6
7383 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7384 echo "configure:7385: checking for gettext in libc" >&5
7385 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7386 echo $ac_n "(cached) $ac_c" 1>&6
7388 cat > conftest.
$ac_ext <<EOF
7389 #line 7390 "configure"
7390 #include "confdefs.h"
7391 #include <libintl.h>
7393 return (int) gettext ("")
7396 if { (eval echo configure
:7397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7398 gt_cv_func_gettext_libc
=yes
7400 echo "configure: failed program was:" >&5
7401 cat conftest.
$ac_ext >&5
7403 gt_cv_func_gettext_libc
=no
7408 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7410 if test "$gt_cv_func_gettext_libc" != "yes"; then
7411 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7412 echo "configure:7413: checking for bindtextdomain in -lintl" >&5
7413 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
7417 ac_save_LIBS
="$LIBS"
7419 cat > conftest.
$ac_ext <<EOF
7420 #line 7421 "configure"
7421 #include "confdefs.h"
7422 /* Override any gcc2 internal prototype to avoid an error. */
7423 /* We use char because int might match the return type of a gcc2
7424 builtin and then its argument prototype would still apply. */
7425 char bindtextdomain();
7431 if { (eval echo configure
:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7433 eval "ac_cv_lib_$ac_lib_var=yes"
7435 echo "configure: failed program was:" >&5
7436 cat conftest.
$ac_ext >&5
7438 eval "ac_cv_lib_$ac_lib_var=no"
7441 LIBS
="$ac_save_LIBS"
7444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6
7446 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7447 echo "configure:7448: checking for gettext in libintl" >&5
7448 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7451 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7452 echo "configure:7453: checking for gettext in -lintl" >&5
7453 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7457 ac_save_LIBS
="$LIBS"
7459 cat > conftest.
$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7471 if { (eval echo configure
:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7473 eval "ac_cv_lib_$ac_lib_var=yes"
7475 echo "configure: failed program was:" >&5
7476 cat conftest.
$ac_ext >&5
7478 eval "ac_cv_lib_$ac_lib_var=no"
7481 LIBS
="$ac_save_LIBS"
7484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7486 gt_cv_func_gettext_libintl
=yes
7488 echo "$ac_t""no" 1>&6
7489 gt_cv_func_gettext_libintl
=no
7494 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7496 echo "$ac_t""no" 1>&6
7501 if test "$gt_cv_func_gettext_libc" = "yes" \
7502 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7503 cat >> confdefs.h
<<\EOF
7504 #define HAVE_GETTEXT 1
7507 # Extract the first word of "msgfmt", so it can be a program name with args.
7508 set dummy msgfmt
; ac_word
=$2
7509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7510 echo "configure:7511: checking for $ac_word" >&5
7511 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7512 echo $ac_n "(cached) $ac_c" 1>&6
7516 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7519 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7520 for ac_dir
in $PATH; do
7521 test -z "$ac_dir" && ac_dir
=.
7522 if test -f $ac_dir/$ac_word; then
7523 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7524 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7530 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7534 MSGFMT
="$ac_cv_path_MSGFMT"
7535 if test -n "$MSGFMT"; then
7536 echo "$ac_t""$MSGFMT" 1>&6
7538 echo "$ac_t""no" 1>&6
7540 if test "$MSGFMT" != "no"; then
7541 for ac_func
in dcgettext
7543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7544 echo "configure:7545: checking for $ac_func" >&5
7545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7548 cat > conftest.
$ac_ext <<EOF
7549 #line 7550 "configure"
7550 #include "confdefs.h"
7551 /* System header to define __stub macros and hopefully few prototypes,
7552 which can conflict with char $ac_func(); below. */
7554 /* Override any gcc2 internal prototype to avoid an error. */
7555 /* We use char because int might match the return type of a gcc2
7556 builtin and then its argument prototype would still apply. */
7561 /* The GNU C library defines this for functions which it implements
7562 to always fail with ENOSYS. Some functions are actually named
7563 something starting with __ and the normal name is an alias. */
7564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7572 if { (eval echo configure
:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7574 eval "ac_cv_func_$ac_func=yes"
7576 echo "configure: failed program was:" >&5
7577 cat conftest.
$ac_ext >&5
7579 eval "ac_cv_func_$ac_func=no"
7584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7585 echo "$ac_t""yes" 1>&6
7586 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7587 cat >> confdefs.h
<<EOF
7588 #define $ac_tr_func 1
7592 echo "$ac_t""no" 1>&6
7596 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7597 set dummy gmsgfmt
; ac_word
=$2
7598 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7599 echo "configure:7600: checking for $ac_word" >&5
7600 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7605 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7608 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7611 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7613 for ac_dir
in $ac_dummy; do
7614 test -z "$ac_dir" && ac_dir
=.
7615 if test -f $ac_dir/$ac_word; then
7616 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7621 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7625 GMSGFMT
="$ac_cv_path_GMSGFMT"
7626 if test -n "$GMSGFMT"; then
7627 echo "$ac_t""$GMSGFMT" 1>&6
7629 echo "$ac_t""no" 1>&6
7632 # Extract the first word of "xgettext", so it can be a program name with args.
7633 set dummy xgettext
; ac_word
=$2
7634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7635 echo "configure:7636: checking for $ac_word" >&5
7636 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7641 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7644 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7645 for ac_dir
in $PATH; do
7646 test -z "$ac_dir" && ac_dir
=.
7647 if test -f $ac_dir/$ac_word; then
7648 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7649 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7655 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7659 XGETTEXT
="$ac_cv_path_XGETTEXT"
7660 if test -n "$XGETTEXT"; then
7661 echo "$ac_t""$XGETTEXT" 1>&6
7663 echo "$ac_t""no" 1>&6
7666 cat > conftest.
$ac_ext <<EOF
7667 #line 7668 "configure"
7668 #include "confdefs.h"
7671 extern int _nl_msg_cat_cntr;
7672 return _nl_msg_cat_cntr
7675 if { (eval echo configure
:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7680 echo "configure: failed program was:" >&5
7681 cat conftest.
$ac_ext >&5
7692 echo "$ac_t""no" 1>&6
7696 if test "$CATOBJEXT" = "NONE"; then
7697 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7698 echo "configure:7699: checking whether catgets can be used" >&5
7699 # Check whether --with-catgets or --without-catgets was given.
7700 if test "${with_catgets+set}" = set; then
7701 withval
="$with_catgets"
7702 nls_cv_use_catgets
=$withval
7704 nls_cv_use_catgets
=no
7707 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7709 if test "$nls_cv_use_catgets" = "yes"; then
7710 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7711 echo "configure:7712: checking for main in -li" >&5
7712 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7714 echo $ac_n "(cached) $ac_c" 1>&6
7716 ac_save_LIBS
="$LIBS"
7718 cat > conftest.
$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7726 if { (eval echo configure
:7727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7728 eval "ac_cv_lib_$ac_lib_var=yes"
7730 echo "configure: failed program was:" >&5
7731 cat conftest.
$ac_ext >&5
7733 eval "ac_cv_lib_$ac_lib_var=no"
7736 LIBS
="$ac_save_LIBS"
7739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7740 echo "$ac_t""yes" 1>&6
7741 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7743 cat >> confdefs.h
<<EOF
7744 #define $ac_tr_lib 1
7750 echo "$ac_t""no" 1>&6
7753 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7754 echo "configure:7755: checking for catgets" >&5
7755 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7758 cat > conftest.
$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 /* System header to define __stub macros and hopefully few prototypes,
7762 which can conflict with char catgets(); below. */
7764 /* Override any gcc2 internal prototype to avoid an error. */
7765 /* We use char because int might match the return type of a gcc2
7766 builtin and then its argument prototype would still apply. */
7771 /* The GNU C library defines this for functions which it implements
7772 to always fail with ENOSYS. Some functions are actually named
7773 something starting with __ and the normal name is an alias. */
7774 #if defined (__stub_catgets) || defined (__stub___catgets)
7782 if { (eval echo configure
:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7784 eval "ac_cv_func_catgets=yes"
7786 echo "configure: failed program was:" >&5
7787 cat conftest.
$ac_ext >&5
7789 eval "ac_cv_func_catgets=no"
7794 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7795 echo "$ac_t""yes" 1>&6
7796 cat >> confdefs.h
<<\EOF
7797 #define HAVE_CATGETS 1
7800 INTLOBJS
="\$(CATOBJS)"
7801 # Extract the first word of "gencat", so it can be a program name with args.
7802 set dummy gencat
; ac_word
=$2
7803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7804 echo "configure:7805: checking for $ac_word" >&5
7805 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7810 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7813 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
7816 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7818 for ac_dir
in $ac_dummy; do
7819 test -z "$ac_dir" && ac_dir
=.
7820 if test -f $ac_dir/$ac_word; then
7821 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
7826 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7830 GENCAT
="$ac_cv_path_GENCAT"
7831 if test -n "$GENCAT"; then
7832 echo "$ac_t""$GENCAT" 1>&6
7834 echo "$ac_t""no" 1>&6
7836 if test "$GENCAT" != "no"; then
7837 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7838 set dummy gmsgfmt
; ac_word
=$2
7839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7840 echo "configure:7841: checking for $ac_word" >&5
7841 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7842 echo $ac_n "(cached) $ac_c" 1>&6
7846 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7849 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7852 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7854 for ac_dir
in $ac_dummy; do
7855 test -z "$ac_dir" && ac_dir
=.
7856 if test -f $ac_dir/$ac_word; then
7857 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7862 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7866 GMSGFMT
="$ac_cv_path_GMSGFMT"
7867 if test -n "$GMSGFMT"; then
7868 echo "$ac_t""$GMSGFMT" 1>&6
7870 echo "$ac_t""no" 1>&6
7873 if test "$GMSGFMT" = "no"; then
7874 # Extract the first word of "msgfmt", so it can be a program name with args.
7875 set dummy msgfmt
; ac_word
=$2
7876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7877 echo "configure:7878: checking for $ac_word" >&5
7878 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7883 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7886 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7887 for ac_dir
in $PATH; do
7888 test -z "$ac_dir" && ac_dir
=.
7889 if test -f $ac_dir/$ac_word; then
7890 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7891 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7897 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7901 GMSGFMT
="$ac_cv_path_GMSGFMT"
7902 if test -n "$GMSGFMT"; then
7903 echo "$ac_t""$GMSGFMT" 1>&6
7905 echo "$ac_t""no" 1>&6
7909 # Extract the first word of "xgettext", so it can be a program name with args.
7910 set dummy xgettext
; ac_word
=$2
7911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7912 echo "configure:7913: checking for $ac_word" >&5
7913 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7914 echo $ac_n "(cached) $ac_c" 1>&6
7918 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7921 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7922 for ac_dir
in $PATH; do
7923 test -z "$ac_dir" && ac_dir
=.
7924 if test -f $ac_dir/$ac_word; then
7925 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7926 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7932 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7936 XGETTEXT
="$ac_cv_path_XGETTEXT"
7937 if test -n "$XGETTEXT"; then
7938 echo "$ac_t""$XGETTEXT" 1>&6
7940 echo "$ac_t""no" 1>&6
7943 USE_INCLUDED_LIBINTL
=yes
7947 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7949 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7950 nls_cv_header_intl
=intl
/libintl.h
7951 nls_cv_header_libgt
=intl
/libgettext.h
7954 echo "$ac_t""no" 1>&6
7960 if test "$CATOBJEXT" = "NONE"; then
7961 nls_cv_use_gnu_gettext
=yes
7965 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7966 INTLOBJS
="\$(GETTOBJS)"
7967 # Extract the first word of "msgfmt", so it can be a program name with args.
7968 set dummy msgfmt
; ac_word
=$2
7969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7970 echo "configure:7971: checking for $ac_word" >&5
7971 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7976 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7979 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7980 for ac_dir
in $PATH; do
7981 test -z "$ac_dir" && ac_dir
=.
7982 if test -f $ac_dir/$ac_word; then
7983 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7984 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7990 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
7994 MSGFMT
="$ac_cv_path_MSGFMT"
7995 if test -n "$MSGFMT"; then
7996 echo "$ac_t""$MSGFMT" 1>&6
7998 echo "$ac_t""no" 1>&6
8001 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8002 set dummy gmsgfmt
; ac_word
=$2
8003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8004 echo "configure:8005: checking for $ac_word" >&5
8005 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8010 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8013 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
8016 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8018 for ac_dir
in $ac_dummy; do
8019 test -z "$ac_dir" && ac_dir
=.
8020 if test -f $ac_dir/$ac_word; then
8021 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
8026 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8030 GMSGFMT
="$ac_cv_path_GMSGFMT"
8031 if test -n "$GMSGFMT"; then
8032 echo "$ac_t""$GMSGFMT" 1>&6
8034 echo "$ac_t""no" 1>&6
8037 # Extract the first word of "xgettext", so it can be a program name with args.
8038 set dummy xgettext
; ac_word
=$2
8039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8040 echo "configure:8041: checking for $ac_word" >&5
8041 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8042 echo $ac_n "(cached) $ac_c" 1>&6
8046 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8049 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
8050 for ac_dir
in $PATH; do
8051 test -z "$ac_dir" && ac_dir
=.
8052 if test -f $ac_dir/$ac_word; then
8053 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8054 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
8060 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
8064 XGETTEXT
="$ac_cv_path_XGETTEXT"
8065 if test -n "$XGETTEXT"; then
8066 echo "$ac_t""$XGETTEXT" 1>&6
8068 echo "$ac_t""no" 1>&6
8072 USE_INCLUDED_LIBINTL
=yes
8076 INTLDEPS
='$(top_builddir)/intl/libintl.a'
8078 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
8079 nls_cv_header_intl
=intl
/libintl.h
8080 nls_cv_header_libgt
=intl
/libgettext.h
8083 if test "$XGETTEXT" != ":"; then
8084 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
8087 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8092 # We need to process the po/ directory.
8096 nls_cv_header_intl
=intl
/libintl.h
8097 nls_cv_header_libgt
=intl
/libgettext.h
8103 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8104 # because some of the sources are only built for this goal.
8105 if test "$PACKAGE" = gettext; then
8107 USE_INCLUDED_LIBINTL
=yes
8110 for lang
in $ALL_LINGUAS; do
8111 GMOFILES
="$GMOFILES $lang.gmo"
8112 POFILES
="$POFILES $lang.po"
8128 if test "x$CATOBJEXT" != "x"; then
8129 if test "x$ALL_LINGUAS" = "x"; then
8132 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8133 echo "configure:8134: checking for catalogs to be installed" >&5
8135 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
8136 case "$ALL_LINGUAS" in
8137 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
8140 LINGUAS
=$NEW_LINGUAS
8141 echo "$ac_t""$LINGUAS" 1>&6
8144 if test -n "$LINGUAS"; then
8145 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
8149 if test $ac_cv_header_locale_h = yes; then
8150 INCLUDE_LOCALE_H
="#include <locale.h>"
8153 /* The system does not provide the header <locale.h>. Take care yourself. */"
8157 test -d intl || mkdir intl
8158 if test "$CATOBJEXT" = ".cat"; then
8159 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
8160 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
8161 echo "configure:8162: checking for linux/version.h" >&5
8162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8163 echo $ac_n "(cached) $ac_c" 1>&6
8165 cat > conftest.
$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8168 #include <linux/version.h>
8170 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8171 { (eval echo configure
:8172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8172 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8173 if test -z "$ac_err"; then
8175 eval "ac_cv_header_$ac_safe=yes"
8178 echo "configure: failed program was:" >&5
8179 cat conftest.
$ac_ext >&5
8181 eval "ac_cv_header_$ac_safe=no"
8185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8186 echo "$ac_t""yes" 1>&6
8189 echo "$ac_t""no" 1>&6
8194 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
8196 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8197 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
8199 if test "$PACKAGE" = "gettext"; then
8210 if test -n "$ac_aux_dir"; then
8211 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
8213 if test -z "$MKINSTALLDIRS"; then
8214 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
8221 test -d po || mkdir po
8222 if test "x$srcdir" != "x."; then
8223 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8224 posrcprefix
="$srcdir/"
8226 posrcprefix
="../$srcdir/"
8232 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8233 < $srcdir/po
/POTFILES.
in > po
/POTFILES
8235 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
8237 # Windows32 Registry support for specifying GCC installation paths.
8238 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8239 if test "${enable_win32_registry+set}" = set; then
8240 enableval
="$enable_win32_registry"
8245 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6
8246 echo "configure:8247: checking whether windows registry support is requested" >&5
8247 if test x
$enable_win32_registry != xno
; then
8248 cat >> confdefs.h
<<\EOF
8249 #define ENABLE_WIN32_REGISTRY 1
8252 echo "$ac_t""yes" 1>&6
8254 echo "$ac_t""no" 1>&6
8257 # Check if user specified a different registry key.
8258 case x
${enable_win32_registry} in
8261 gcc_cv_win32_registry_key
="$VERSION"
8264 # no registry lookup.
8265 gcc_cv_win32_registry_key
=''
8268 # user-specified key.
8269 gcc_cv_win32_registry_key
="$enable_win32_registry"
8273 if test x
$enable_win32_registry != xno
; then
8274 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6
8275 echo "configure:8276: checking registry key on windows hosts" >&5
8276 cat >> confdefs.h
<<EOF
8277 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
8280 echo "$ac_t""$gcc_cv_win32_registry_key" 1>&6
8283 # Get an absolute path to the GCC top-level source directory
8289 # Conditionalize the makefile for this host machine.
8290 # Make-host contains the concatenation of all host makefile fragments
8291 # [there can be more than one]. This file is built by configure.frag.
8292 host_overrides
=Make-host
8293 dep_host_xmake_file
=
8294 for f
in ..
${host_xmake_file}
8296 if test -f ${srcdir}/config
/$f
8298 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
8302 # Conditionalize the makefile for this target machine.
8303 # Make-target contains the concatenation of all host makefile fragments
8304 # [there can be more than one]. This file is built by configure.frag.
8305 target_overrides
=Make-target
8307 for f
in ..
${tmake_file}
8309 if test -f ${srcdir}/config
/$f
8311 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
8315 # If the host doesn't support symlinks, modify CC in
8316 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
8317 # Otherwise, we can use "CC=$(CC)".
8319 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
8321 cc_set_by_configure
="\$(CC)"
8322 quoted_cc_set_by_configure
="\$(CC)"
8323 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
8326 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
8328 symbolic_link
="cp -p"
8332 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
8333 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
8334 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
8338 out_object_file
=`basename $out_file .c`.o
8341 for f
in $tm_file; do
8344 tm_file_list
="${tm_file_list} $f" ;;
8345 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
8350 for f
in $host_xm_file; do
8352 auto-host.h | gansidecl.h | hwint.h
)
8353 host_xm_file_list
="${host_xm_file_list} $f" ;;
8354 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
8359 for f
in $build_xm_file; do
8361 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
8362 build_xm_file_list
="${build_xm_file_list} $f" ;;
8363 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
8367 # Define macro CROSS_COMPILE in compilation
8368 # if this is a cross-compiler.
8369 # Also use all.cross instead of all.internal
8370 # and add cross-make to Makefile.
8371 cross_overrides
="/dev/null"
8372 if test x
$host != x
$target
8374 cross_defines
="CROSS=-DCROSS_COMPILE"
8375 cross_overrides
="${topdir}/cross-make"
8378 # When building gcc with a cross-compiler, we need to fix a few things.
8379 # This must come after cross-make as we want all.build to override
8381 build_overrides
="/dev/null"
8382 if test x
$build != x
$host
8384 build_overrides
="${topdir}/build-make"
8387 # Expand extra_headers to include complete path.
8388 # This substitutes for lots of t-* files.
8390 if test "x$extra_headers" = x
8393 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
8394 for file in $extra_headers;
8396 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
8400 if test x
$use_collect2 = xno
; then
8404 # Add a definition of USE_COLLECT2 if system wants one.
8405 # Also tell toplev.c what to do.
8406 # This substitutes for lots of t-* files.
8407 if test x
$use_collect2 = x
8412 will_use_collect2
="collect2"
8413 maybe_use_collect2
="-DUSE_COLLECT2"
8417 # Set MD_DEPS if the real md file is in md.pre-cpp.
8418 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
8419 # for line oriented comments, so we must always use a GNU cpp. If
8420 # building gcc with a cross compiler, use the cross compiler just
8421 # built. Otherwise, we can use the cpp just built.
8423 if test "x$md_cppflags" = x
8425 md_file_sub
=$srcdir/config
/$md_file
8430 # If we have gas in the build tree, make a link to it.
8431 if test -f ..
/gas
/Makefile
; then
8432 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8435 # If we have nm in the build tree, make a link to it.
8436 if test -f ..
/binutils
/Makefile
; then
8437 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8440 # If we have ld in the build tree, make a link to it.
8441 if test -f ..
/ld
/Makefile
; then
8442 # if test x$use_collect2 = x; then
8443 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8445 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8449 # Figure out what assembler alignment features are present.
8450 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8451 echo "configure:8452: checking assembler alignment features" >&5
8453 gcc_cv_as_alignment_features
=
8454 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8455 if test -x "$DEFAULT_ASSEMBLER"; then
8456 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8457 elif test -x "$AS"; then
8459 elif test -x as
$host_exeext; then
8460 # Build using assembler in the current directory.
8461 gcc_cv_as
=.
/as
$host_exeext
8462 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8463 # Single tree build which includes gas.
8464 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8466 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8467 if test x
$gcc_cv_gas_version != x
; then
8471 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8472 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8473 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8474 # Gas version 2.6 and later support for .balign and .p2align.
8475 # bytes to skip when using .p2align.
8476 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
8477 gcc_cv_as_alignment_features
=".balign and .p2align"
8478 cat >> confdefs.h
<<\EOF
8479 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8483 # Gas version 2.8 and later support specifying the maximum
8484 # bytes to skip when using .p2align.
8485 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
8486 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8487 cat >> confdefs.h
<<\EOF
8488 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8493 elif test x
$host = x
$target; then
8495 # Search the same directories that the installed compiler will
8496 # search. Else we may find the wrong assembler and lose. If we
8497 # do not find a suitable assembler binary, then try the user's
8500 # Also note we have to check MD_EXEC_PREFIX before checking the
8501 # user's path. Unfortunately, there is no good way to get at the
8502 # value of MD_EXEC_PREFIX here. So we do a brute force search
8503 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
8504 # to be fixed as part of the make/configure rewrite too.
8506 if test "x$exec_prefix" = xNONE
; then
8507 if test "x$prefix" = xNONE
; then
8508 test_prefix
=/usr
/local
8513 test_prefix
=$exec_prefix
8516 # If the loop below does not find an assembler, then use whatever
8517 # one we can find in the users's path.
8521 test_dirs
="$test_prefix/lib/gcc-lib/$target/$gcc_version \
8522 $test_prefix/lib/gcc-lib/$target \
8523 /usr/lib/gcc/$target/$gcc_version \
8524 /usr/lib/gcc/$target \
8525 $test_prefix/$target/bin/$target/$gcc_version \
8526 $test_prefix/$target/bin \
8531 /bsd43/usr/lib/cmplrs/cc \
8532 /usr/cross64/usr/bin \
8533 /usr/lib/cmplrs/cc \
8534 /sysv/usr/lib/cmplrs/cc \
8535 /svr4/usr/lib/cmplrs/cc \
8538 for dir
in $test_dirs; do
8539 if test -f $dir/as
$host_exeext; then
8540 gcc_cv_as
=$dir/as
$host_exeext
8545 if test x
$gcc_cv_as != x
; then
8546 # Check if we have .balign and .p2align
8547 echo ".balign 4" > conftest.s
8548 echo ".p2align 2" >> conftest.s
8549 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8550 gcc_cv_as_alignment_features
=".balign and .p2align"
8551 cat >> confdefs.h
<<\EOF
8552 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8556 rm -f conftest.s conftest.o
8557 # Check if specifying the maximum bytes to skip when
8558 # using .p2align is supported.
8559 echo ".p2align 4,,7" > conftest.s
8560 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8561 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8562 cat >> confdefs.h
<<\EOF
8563 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8567 rm -f conftest.s conftest.o
8569 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8571 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8572 echo "configure:8573: checking assembler subsection support" >&5
8573 gcc_cv_as_subsections
=
8574 if test x
$gcc_cv_as != x
; then
8575 # Check if we have .subsection
8576 echo ".subsection 1" > conftest.s
8577 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8578 gcc_cv_as_subsections
=".subsection"
8579 if test -x nm
$host_exeext; then
8580 gcc_cv_nm
=.
/nm
$host_exeext
8581 elif test x
$host = x
$target; then
8583 gcc_cv_nm
=nm
$host_exeext
8585 if test x
$gcc_cv_nm != x
; then
8586 cat > conftest.s
<<EOF
8587 conftest_label1: .word 0
8589 conftest_label2: .word 0
8592 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8593 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8594 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8595 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8598 gcc_cv_as_subsections
="working .subsection -1"
8599 cat >> confdefs.h
<<\EOF
8600 #define HAVE_GAS_SUBSECTION_ORDERING 1
8607 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8609 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8613 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6
8614 echo "configure:8615: checking assembler .register pseudo-op support" >&5
8615 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then
8616 echo $ac_n "(cached) $ac_c" 1>&6
8619 gcc_cv_as_register_pseudo_op
=unknown
8620 if test x
$gcc_cv_as != x
; then
8621 # Check if we have .register
8622 echo ".register %g2, #scratch" > conftest.s
8623 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8624 gcc_cv_as_register_pseudo_op
=yes
8626 gcc_cv_as_register_pseudo_op
=no
8628 rm -f conftest.s conftest.o
8633 echo "$ac_t""$gcc_cv_as_register_pseudo_op" 1>&6
8634 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
8635 cat >> confdefs.h
<<\EOF
8636 #define HAVE_AS_REGISTER_PSEUDO_OP 1
8643 echo $ac_n "checking for 64 bit support in assembler ($gcc_cv_as)""... $ac_c" 1>&6
8644 echo "configure:8645: checking for 64 bit support in assembler ($gcc_cv_as)" >&5
8645 if eval "test \"`echo '$''{'gcc_cv_as_flags64'+set}'`\" = set"; then
8646 echo $ac_n "(cached) $ac_c" 1>&6
8649 if test -n "$gcc_cv_as"; then
8650 echo ".xword foo" > conftest.s
8651 gcc_cv_as_flags64
=no
8652 for flag
in "-xarch=v9" "-64 -Av9"; do
8653 if $gcc_cv_as $flag -o conftest.o conftest.s \
8654 > /dev
/null
2>&1; then
8655 gcc_cv_as_flags64
=$flag
8659 rm -f conftest.s conftest.o
8661 if test "$gas" = yes; then
8662 gcc_cv_as_flags64
="-64 -Av9"
8664 gcc_cv_as_flags64
="-xarch=v9"
8670 echo "$ac_t""$gcc_cv_as_flags64" 1>&6
8671 if test "x$gcc_cv_as_flags64" = xno
; then
8673 tmake_file
=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8674 dep_tmake_file
=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
8677 cat >> confdefs.h
<<EOF
8678 #define AS_SPARC64_FLAG "$gcc_cv_as_flags64"
8683 *) gcc_cv_as_flags64
=${gcc_cv_as_flags64-no}
8687 if test "x$gcc_cv_as_flags64" != xno
; then
8688 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6
8689 echo "configure:8690: checking for assembler offsetable %lo() support" >&5
8690 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8694 gcc_cv_as_offsetable_lo10
=unknown
8695 if test "x$gcc_cv_as" != x
; then
8696 # Check if assembler has offsetable %lo()
8697 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
8698 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
8699 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
8701 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
8702 > /dev
/null
2>&1; then
8703 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
8704 gcc_cv_as_offsetable_lo10
=no
8706 gcc_cv_as_offsetable_lo10
=yes
8709 gcc_cv_as_offsetable_lo10
=no
8711 rm -f conftest.s conftest.o conftest1.s conftest1.o
8716 echo "$ac_t""$gcc_cv_as_offsetable_lo10" 1>&6
8717 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
8718 cat >> confdefs.h
<<\EOF
8719 #define HAVE_AS_OFFSETABLE_LO10 1
8727 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8728 echo "configure:8729: checking assembler instructions" >&5
8729 gcc_cv_as_instructions
=
8730 if test x
$gcc_cv_as != x
; then
8731 set "filds fists" "filds mem; fists mem"
8734 echo "$2" > conftest.s
8735 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8736 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8737 cat >> confdefs.h
<<EOF
8738 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8744 rm -f conftest.s conftest.o
8746 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8750 # Figure out what language subdirectories are present.
8751 # Look if the user specified --enable-languages="..."; if not, use
8752 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8754 if test x
"${enable_languages+set}" != xset
; then
8755 if test x
"${LANGUAGES+set}" = xset
; then
8756 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8758 enable_languages
=all
8762 for lang
in ${srcdir}/*/config-lang.
in ..
8766 # The odd quoting in the next line works around
8767 # an apparent bug in bash 1.12 on linux.
8768 ${srcdir}/[*]/config-lang.
in) ;;
8770 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8771 if test "x$lang_alias" = x
8773 echo "$lang doesn't set \$language." 1>&2
8776 if test x
"${enable_languages}" = xall
; then
8779 case "${enable_languages}" in
8780 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8788 if test x"${add_this_lang}" = xyes; then
8790 ${srcdir}/ada/config-lang.in)
8791 if test x$gnat = xyes ; then
8792 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8796 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8804 # Make gthr-default.h if we have a thread file.
8806 if test $thread_file != single; then
8807 rm -f gthr-default.h
8808 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8809 gthread_flags
=-DHAVE_GTHR_DEFAULT
8813 # Find out what GC implementation we want, or may, use.
8814 # Check whether --with-gc or --without-gc was given.
8815 if test "${with_gc+set}" = set; then
8822 { echo "configure: error: $withval is an invalid option to --with-gc" 1>&2; exit 1; }
8826 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8828 elif test $ac_cv_func_valloc = yes; then
8836 echo "Using $GGC for garbage collection."
8838 # Make empty files to contain the specs and options for each language.
8839 # Then add #include lines to for a compiler that has specs and/or options.
8844 rm -f specs.h options.h gencheck.h
8845 touch specs.h options.h gencheck.h
8846 for subdir
in .
$subdirs
8848 if test -f $srcdir/$subdir/lang-specs.h
; then
8849 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8850 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8852 if test -f $srcdir/$subdir/lang-options.h
; then
8853 echo "#include \"$subdir/lang-options.h\"" >>options.h
8854 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8856 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8857 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8858 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8862 # These (without "all_") are set in each config-lang.in.
8863 # `language' must be a single word so is spelled singularly.
8869 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8870 # List of language makefile fragments.
8875 # Add the language fragments.
8876 # Languages are added via two mechanisms. Some information must be
8877 # recorded in makefile variables, these are defined in config-lang.in.
8878 # We accumulate them and plug them into the main Makefile.
8879 # The other mechanism is a set of hooks for each of the main targets
8880 # like `clean', `install', etc.
8882 language_fragments
="Make-lang"
8883 language_hooks
="Make-hooks"
8886 for s
in ..
$subdirs
8898 .
${srcdir}/$s/config-lang.
in
8899 if test "x$language" = x
8901 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8904 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8905 all_languages
="$all_languages $language"
8906 if test "x$boot_language" = xyes
8908 all_boot_languages
="$all_boot_languages $language"
8910 all_compilers
="$all_compilers $compilers"
8911 all_stagestuff
="$all_stagestuff $stagestuff"
8912 all_diff_excludes
="$all_diff_excludes $diff_excludes"
8913 all_headers
="$all_headers $headers"
8914 all_outputs
="$all_outputs $outputs"
8915 if test x
$outputs = x
8917 oldstyle_subdirs
="$oldstyle_subdirs $s"
8919 all_lib2funcs
="$all_lib2funcs $lib2funcs"
8923 # Since we can't use `::' targets, we link each language in
8924 # with a set of hooks, reached indirectly via lang.${target}.
8928 target_list
="all.build all.cross start.encap rest.encap \
8930 install-normal install-common install-info install-man \
8932 mostlyclean clean distclean extraclean maintainer-clean \
8933 stage1 stage2 stage3 stage4"
8934 for t
in $target_list
8937 for lang
in ..
$all_languages
8939 if test $lang != ".."; then
8943 echo "lang.$t: $x" >> Make-hooks
8946 # If we're not building in srcdir, create .gdbinit.
8948 if test ! -f Makefile.
in; then
8949 echo "dir ." > .gdbinit
8950 echo "dir ${srcdir}" >> .gdbinit
8951 if test x
$gdb_needs_out_file_path = xyes
8953 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8955 if test "x$subdirs" != x
; then
8958 echo "dir ${srcdir}/$s" >> .gdbinit
8961 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8964 # Define variables host_canonical and build_canonical
8965 # because some Cygnus local changes in the Makefile depend on them.
8966 build_canonical
=${build}
8967 host_canonical
=${host}
8969 if test "${host}" != "${target}" ; then
8970 target_subdir
=${target}/
8976 # If this is using newlib, then define inhibit_libc in
8977 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8978 # libgcc.a, but that's OK because newib should have its own version of
8981 if test x
$with_newlib = xyes
; then
8982 inhibit_libc
=-Dinhibit_libc
8986 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8987 # absolute path for gcc_tooldir based on inserting the number of up-directory
8988 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8989 # $(libsubdir)/@(unlibsubdir) based path.
8990 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8991 # make and thus we'd get different behavior depending on where we built the
8993 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8994 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8996 # An explanation of the sed strings:
8997 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8998 # -e 's|/$||' match a trailing forward slash and eliminates it
8999 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
9000 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
9002 # (*) Note this pattern overwrites the first character of the string
9003 # with a forward slash if one is not already present. This is not a
9004 # problem because the exact names of the sub-directories concerned is
9005 # unimportant, just the number of them matters.
9007 # The practical upshot of these patterns is like this:
9009 # prefix exec_prefix result
9010 # ------ ----------- ------
9012 # /foo/ /foo/bar ../
9013 # /foo /foo/bar/ ../
9014 # /foo/ /foo/bar/ ../
9015 # /foo /foo/bar/ugg ../../
9018 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
9023 # Nothing to do for FLOAT_H, float_format already handled.
9027 # Process the language and host/target makefile fragments.
9028 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
9030 # Substitute configuration variables
9091 # Echo that links are built
9092 if test x
$host = x
$target
9100 if test x
$host != x
$build
9102 str3
=" on a $build system"
9105 if test "x$str2" != x ||
test "x$str3" != x
9110 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
9112 if test "x$str2" != x ||
test "x$str3" != x
9114 echo " ${str2}${str3}." 1>&2
9117 # Truncate the target if necessary
9118 if test x
$host_truncate_target != x
; then
9119 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9122 # Configure the subdirectories
9123 # AC_CONFIG_SUBDIRS($subdirs)
9125 # Create the Makefile
9126 # and configure language subdirectories
9128 cat > confcache
<<\EOF
9129 # This file is a shell script that caches the results of configure
9130 # tests run on this system so they can be shared between configure
9131 # scripts and configure runs. It is not useful on other systems.
9132 # If it contains results you don't want to keep, you may remove or edit it.
9134 # By default, configure uses ./config.cache as the cache file,
9135 # creating it if it does not exist already. You can give configure
9136 # the --cache-file=FILE option to use a different cache file; that is
9137 # what configure does when it calls configure scripts in
9138 # subdirectories, so they share the cache.
9139 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9140 # config.status only pays attention to the cache file if you give it the
9141 # --recheck option to rerun configure.
9144 # The following way of writing the cache mishandles newlines in values,
9145 # but we know of no workaround that is simple, portable, and efficient.
9146 # So, don't put newlines in cache variables' values.
9147 # Ultrix sh set writes to stderr and can't be redirected directly,
9148 # and sets the high bit in the cache file unless we assign to the vars.
9150 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9152 # `set' does not quote correctly, so add quotes (double-quote substitution
9153 # turns \\\\ into \\, and sed turns \\ into \).
9155 -e "s/'/'\\\\''/g" \
9156 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9159 # `set' quotes correctly as required by POSIX, so do not add quotes.
9160 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9163 if cmp -s $cache_file confcache
; then
9166 if test -w $cache_file; then
9167 echo "updating cache $cache_file"
9168 cat confcache
> $cache_file
9170 echo "not updating unwritable cache $cache_file"
9175 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9177 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9178 # Let make expand exec_prefix.
9179 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9181 # Any assignment to VPATH causes Sun make to only execute
9182 # the first set of double-colon rules, so remove it if not needed.
9183 # If there is a colon in the path, we need to keep it.
9184 if test "x$srcdir" = x.
; then
9185 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9188 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9190 DEFS
=-DHAVE_CONFIG_H
9192 # Without the "./", some shells look in PATH for config.status.
9193 : ${CONFIG_STATUS=./config.status}
9195 echo creating
$CONFIG_STATUS
9196 rm -f $CONFIG_STATUS
9197 cat > $CONFIG_STATUS <<EOF
9199 # Generated automatically by configure.
9200 # Run this file to recreate the current configuration.
9201 # This directory was configured as follows,
9202 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9204 # $0 $ac_configure_args
9206 # Compiler output produced by configure, useful for debugging
9207 # configure, is in ./config.log if it exists.
9209 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9212 case "\$ac_option" in
9213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9214 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9215 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9216 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9217 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9219 -help | --help | --hel | --he | --h)
9220 echo "\$ac_cs_usage"; exit 0 ;;
9221 *) echo "\$ac_cs_usage"; exit 1 ;;
9225 ac_given_srcdir=$srcdir
9227 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9229 cat >> $CONFIG_STATUS <<EOF
9231 # Protect against being on the right side of a sed subst in config.status.
9232 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9233 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9237 s%@CFLAGS@%$CFLAGS%g
9238 s%@CPPFLAGS@%$CPPFLAGS%g
9239 s%@CXXFLAGS@%$CXXFLAGS%g
9240 s%@FFLAGS@%$FFLAGS%g
9242 s%@LDFLAGS@%$LDFLAGS%g
9244 s%@exec_prefix@%$exec_prefix%g
9245 s%@prefix@%$prefix%g
9246 s%@program_transform_name@%$program_transform_name%g
9247 s%@bindir@%$bindir%g
9248 s%@sbindir@%$sbindir%g
9249 s%@libexecdir@%$libexecdir%g
9250 s%@datadir@%$datadir%g
9251 s%@sysconfdir@%$sysconfdir%g
9252 s%@sharedstatedir@%$sharedstatedir%g
9253 s%@localstatedir@%$localstatedir%g
9254 s%@libdir@%$libdir%g
9255 s%@includedir@%$includedir%g
9256 s%@oldincludedir@%$oldincludedir%g
9257 s%@infodir@%$infodir%g
9258 s%@mandir@%$mandir%g
9260 s%@host_alias@%$host_alias%g
9261 s%@host_cpu@%$host_cpu%g
9262 s%@host_vendor@%$host_vendor%g
9263 s%@host_os@%$host_os%g
9264 s%@target@%$target%g
9265 s%@target_alias@%$target_alias%g
9266 s%@target_cpu@%$target_cpu%g
9267 s%@target_vendor@%$target_vendor%g
9268 s%@target_os@%$target_os%g
9270 s%@build_alias@%$build_alias%g
9271 s%@build_cpu@%$build_cpu%g
9272 s%@build_vendor@%$build_vendor%g
9273 s%@build_os@%$build_os%g
9275 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
9276 s%@SET_MAKE@%$SET_MAKE%g
9279 s%@LEXLIB@%$LEXLIB%g
9282 s%@RANLIB@%$RANLIB%g
9284 s%@INSTALL@%$INSTALL%g
9285 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9286 s%@INSTALL_DATA@%$INSTALL_DATA%g
9289 s%@vfprintf@%$vfprintf%g
9290 s%@doprint@%$doprint%g
9291 s%@manext@%$manext%g
9292 s%@objext@%$objext%g
9293 s%@PACKAGE@%$PACKAGE%g
9294 s%@VERSION@%$VERSION%g
9295 s%@ALLOCA@%$ALLOCA%g
9296 s%@USE_NLS@%$USE_NLS%g
9297 s%@MSGFMT@%$MSGFMT%g
9298 s%@GMSGFMT@%$GMSGFMT%g
9299 s%@XGETTEXT@%$XGETTEXT%g
9300 s%@GENCAT@%$GENCAT%g
9301 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9302 s%@CATALOGS@%$CATALOGS%g
9303 s%@CATOBJEXT@%$CATOBJEXT%g
9304 s%@DATADIRNAME@%$DATADIRNAME%g
9305 s%@GMOFILES@%$GMOFILES%g
9306 s%@INSTOBJEXT@%$INSTOBJEXT%g
9307 s%@INTLDEPS@%$INTLDEPS%g
9308 s%@INTLLIBS@%$INTLLIBS%g
9309 s%@INTLOBJS@%$INTLOBJS%g
9310 s%@POFILES@%$POFILES%g
9312 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
9314 s%@GT_YES@%$GT_YES%g
9315 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9317 s%@gthread_flags@%$gthread_flags%g
9319 s%@build_canonical@%$build_canonical%g
9320 s%@host_canonical@%$host_canonical%g
9321 s%@target_subdir@%$target_subdir%g
9322 s%@inhibit_libc@%$inhibit_libc%g
9323 s%@gcc_tooldir@%$gcc_tooldir%g
9324 s%@dollar@%$dollar%g
9325 s%@objdir@%$objdir%g
9326 s%@subdirs@%$subdirs%g
9327 s%@all_boot_languages@%$all_boot_languages%g
9328 s%@all_compilers@%$all_compilers%g
9329 s%@all_diff_excludes@%$all_diff_excludes%g
9330 s%@all_headers@%$all_headers%g
9331 s%@all_lang_makefiles@%$all_lang_makefiles%g
9332 s%@all_languages@%$all_languages%g
9333 s%@all_lib2funcs@%$all_lib2funcs%g
9334 s%@all_stagestuff@%$all_stagestuff%g
9335 s%@build_exeext@%$build_exeext%g
9336 s%@build_install_headers_dir@%$build_install_headers_dir%g
9337 s%@build_xm_file_list@%$build_xm_file_list%g
9338 s%@cc_set_by_configure@%$cc_set_by_configure%g
9339 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
9340 s%@cpp_install_dir@%$cpp_install_dir%g
9341 s%@cpp_main@%$cpp_main%g
9342 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
9343 s%@dep_tmake_file@%$dep_tmake_file%g
9344 s%@extra_c_flags@%$extra_c_flags%g
9345 s%@extra_c_objs@%$extra_c_objs%g
9346 s%@extra_cpp_objs@%$extra_cpp_objs%g
9347 s%@extra_cxx_objs@%$extra_cxx_objs%g
9348 s%@extra_headers_list@%$extra_headers_list%g
9349 s%@extra_objs@%$extra_objs%g
9350 s%@extra_parts@%$extra_parts%g
9351 s%@extra_passes@%$extra_passes%g
9352 s%@extra_programs@%$extra_programs%g
9353 s%@fixinc_defs@%$fixinc_defs%g
9354 s%@float_h_file@%$float_h_file%g
9355 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
9356 s%@gcc_version@%$gcc_version%g
9357 s%@gcc_version_trigger@%$gcc_version_trigger%g
9358 s%@host_exeext@%$host_exeext%g
9359 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
9360 s%@host_xm_file_list@%$host_xm_file_list%g
9361 s%@install@%$install%g
9362 s%@lang_options_files@%$lang_options_files%g
9363 s%@lang_specs_files@%$lang_specs_files%g
9364 s%@lang_tree_files@%$lang_tree_files%g
9365 s%@local_prefix@%$local_prefix%g
9366 s%@maybe_use_collect2@%$maybe_use_collect2%g
9367 s%@md_file@%$md_file%g
9368 s%@objc_boehm_gc@%$objc_boehm_gc%g
9369 s%@out_file@%$out_file%g
9370 s%@out_object_file@%$out_object_file%g
9371 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
9372 s%@symbolic_link@%$symbolic_link%g
9373 s%@thread_file@%$thread_file%g
9374 s%@tm_file_list@%$tm_file_list%g
9375 s%@will_use_collect2@%$will_use_collect2%g
9376 /@target_overrides@/r $target_overrides
9377 s%@target_overrides@%%g
9378 /@host_overrides@/r $host_overrides
9379 s%@host_overrides@%%g
9380 s%@cross_defines@%$cross_defines%g
9381 /@cross_overrides@/r $cross_overrides
9382 s%@cross_overrides@%%g
9383 /@build_overrides@/r $build_overrides
9384 s%@build_overrides@%%g
9385 /@language_fragments@/r $language_fragments
9386 s%@language_fragments@%%g
9387 /@language_hooks@/r $language_hooks
9388 s%@language_hooks@%%g
9393 cat >> $CONFIG_STATUS <<\EOF
9395 # Split the substitutions into bite-sized pieces for seds with
9396 # small command number limits, like on Digital OSF/1 and HP-UX.
9397 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9398 ac_file
=1 # Number of current file.
9399 ac_beg
=1 # First line for current file.
9400 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9403 while $ac_more_lines; do
9404 if test $ac_beg -gt 1; then
9405 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9407 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9409 if test ! -s conftest.s
$ac_file; then
9411 rm -f conftest.s
$ac_file
9413 if test -z "$ac_sed_cmds"; then
9414 ac_sed_cmds
="sed -f conftest.s$ac_file"
9416 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9418 ac_file
=`expr $ac_file + 1`
9420 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9423 if test -z "$ac_sed_cmds"; then
9428 cat >> $CONFIG_STATUS <<EOF
9430 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
9432 cat >> $CONFIG_STATUS <<\EOF
9433 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9434 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9436 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9437 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9438 *) ac_file_in
="${ac_file}.in" ;;
9441 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9443 # Remove last slash and all that follows it. Not all systems have dirname.
9444 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9445 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9446 # The file is in a subdirectory.
9447 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9448 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9449 # A "../" for each directory in $ac_dir_suffix.
9450 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9452 ac_dir_suffix
= ac_dots
=
9455 case "$ac_given_srcdir" in
9457 if test -z "$ac_dots"; then top_srcdir
=.
9458 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9459 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9461 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9462 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9466 echo creating
"$ac_file"
9468 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9470 *Makefile
*) ac_comsub
="1i\\
9471 # $configure_input" ;;
9475 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9477 s%@configure_input@%$configure_input%g
9478 s%@srcdir@%$srcdir%g
9479 s%@top_srcdir@%$top_srcdir%g
9480 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9484 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9485 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9487 # ac_d sets the value in "#define NAME VALUE" lines.
9488 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9489 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9492 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9493 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9494 ac_uB
='\([ ]\)%\1#\2define\3'
9497 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9498 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9499 ac_eB
='$%\1#\2define\3'
9503 if test "${CONFIG_HEADERS+set}" != set; then
9505 cat >> $CONFIG_STATUS <<EOF
9506 CONFIG_HEADERS="auto-host.h:config.in"
9508 cat >> $CONFIG_STATUS <<\EOF
9510 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9513 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9514 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9515 *) ac_file_in
="${ac_file}.in" ;;
9518 echo creating
$ac_file
9520 rm -f conftest.frag conftest.
in conftest.out
9521 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9522 cat $ac_file_inputs > conftest.
in
9526 # Transform confdefs.h into a sed script conftest.vals that substitutes
9527 # the proper values into config.h.in to produce config.h. And first:
9528 # Protect against being on the right side of a sed subst in config.status.
9529 # Protect against being in an unquoted here document in config.status.
9531 cat > conftest.hdr
<<\EOF
9534 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9538 sed -n -f conftest.hdr confdefs.h > conftest.vals
9541 # This sed command replaces #undef with comments. This is necessary, for
9542 # example, in the case of _POSIX_SOURCE, which is predefined and required
9543 # on some systems where configure will not decide to define it.
9544 cat >> conftest.vals <<\EOF
9545 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9548 # Break up conftest.vals because some shells have a limit on
9549 # the size of here documents, and old seds have small limits too.
9554 ac_lines=`grep -c . conftest.vals
`
9555 # grep -c gives empty output for an empty file on some AIX systems.
9556 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9557 # Write a limited-size here document to conftest.frag.
9558 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9559 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9561 sed -f conftest.frag conftest.in > conftest.out
9563 mv conftest.out conftest.in
9565 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9567 mv conftest.tail conftest.vals
9571 cat >> $CONFIG_STATUS <<\EOF
9572 rm -f conftest.frag conftest.h
9573 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9574 cat conftest.in >> conftest.h
9576 if cmp -s $ac_file conftest.h 2>/dev/null; then
9577 echo "$ac_file is unchanged"
9580 # Remove last slash and all that follows it. Not all systems have dirname.
9581 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9582 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9583 # The file is in a subdirectory.
9584 test ! -d "$ac_dir" && mkdir "$ac_dir"
9587 mv conftest.h $ac_file
9593 cat >> $CONFIG_STATUS <<EOF
9594 ac_sources="$nls_cv_header_libgt"
9595 ac_dests="$nls_cv_header_intl"
9598 cat >> $CONFIG_STATUS <<\EOF
9599 srcdir=$ac_given_srcdir
9600 while test -n "$ac_sources"; do
9601 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9602 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9604 echo "linking $srcdir/$ac_source to $ac_dest"
9606 if test ! -r $srcdir/$ac_source; then
9607 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9611 # Make relative symlinks.
9612 # Remove last slash and all that follows it. Not all systems have dirname.
9613 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9614 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9615 # The dest file is in a subdirectory.
9616 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9617 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9618 # A "../" for each directory in $ac_dest_dir_suffix.
9619 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9621 ac_dest_dir_suffix= ac_dots=
9625 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9626 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9629 # Make a symlink if possible; otherwise try a hard link.
9630 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9631 ln $srcdir/$ac_source $ac_dest; then :
9633 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9637 cat >> $CONFIG_STATUS <<EOF
9643 target_alias='${target_alias}'
9645 subdirs='${subdirs}'
9646 oldstyle_subdirs='${oldstyle_subdirs}'
9647 symbolic_link='${symbolic_link}'
9648 program_transform_set='${program_transform_set}'
9649 program_transform_name='${program_transform_name}'
9650 dep_host_xmake_file='${dep_host_xmake_file}'
9651 host_xmake_file='${host_xmake_file}'
9652 dep_tmake_file='${dep_tmake_file}'
9653 tmake_file='${tmake_file}'
9654 thread_file='${thread_file}'
9655 gcc_version='${gcc_version}'
9656 gcc_version_trigger='${gcc_version_trigger}'
9657 local_prefix='${local_prefix}'
9658 build_install_headers_dir='${build_install_headers_dir}'
9659 build_exeext='${build_exeext}'
9660 host_exeext='${host_exeext}'
9661 out_file='${out_file}'
9662 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9663 SET_MAKE='${SET_MAKE}'
9664 target_list='${target_list}'
9665 target_overrides='${target_overrides}'
9666 host_overrides='${host_overrides}'
9667 cross_defines='${cross_defines}'
9668 cross_overrides='${cross_overrides}'
9669 build_overrides='${build_overrides}'
9670 cpp_install_dir='${cpp_install_dir}'
9673 cat >> $CONFIG_STATUS <<\EOF
9674 case "$CONFIG_FILES" in *po/Makefile.in*)
9675 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9678 . $srcdir/configure.lang
9679 case x$CONFIG_HEADERS in
9680 xauto-host.h:config.in)
9683 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9684 # bootstrapping and the installation procedure can still use
9685 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9686 # FLAGS_TO_PASS has been modified to solve the problem there.
9687 # This is virtually a duplicate of what happens in configure.lang; we do
9688 # an extra check to make sure this only happens if ln -s can be used.
9689 if test "$symbolic_link" = "ln -s"; then
9690 for d in .. ${subdirs} ; do
9691 if test $d != ..; then
9694 for t in stage1 stage2 stage3 stage4 include
9697 $symbolic_link ../$t $t 2>/dev/null
9703 # Avoid having to add intl to our include paths.
9704 if test -f intl/libintl.h; then
9705 echo creating libintl.h
9706 echo '#include "intl/libintl.h"' >libintl.h
9711 chmod +x $CONFIG_STATUS
9712 rm -fr confdefs* $ac_clean_files
9713 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1