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 --enable-cpplib use cpplib for the C preprocessor."
36 --enable-c-cpplib link cpplib directly into C and C++ compilers
37 (implies --enable-cpplib)."
39 --enable-c-mbchar enable multibyte characters for C and C++."
41 --disable-fast-fixincludes
42 Disable the new fast fixincludes.
43 Run the old fixincludes script unconditionally"
45 --enable-haifa use the experimental scheduler.
46 --disable-haifa don't use the experimental scheduler for the
47 targets which normally enable it."
49 --enable-threads enable thread usage for target GCC.
50 --enable-threads=LIB use LIB thread package for target GCC."
52 --enable-objc-gc enable the use of Boehm's garbage collector with
53 the GNU Objective-C runtime."
55 --enable-java-gc=TYPE choose garbage collector [boehm]"
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 # Initialize some variables set by options.
68 # The variables have the same names as the options, with
69 # dashes changed to underlines.
71 cache_file
=.
/config.cache
80 program_transform_name
=s
,x
,x
,
88 bindir
='${exec_prefix}/bin'
89 sbindir
='${exec_prefix}/sbin'
90 libexecdir
='${exec_prefix}/libexec'
91 datadir
='${prefix}/share'
92 sysconfdir
='${prefix}/etc'
93 sharedstatedir
='${prefix}/com'
94 localstatedir
='${prefix}/var'
95 libdir
='${exec_prefix}/lib'
96 includedir
='${prefix}/include'
97 oldincludedir
='/usr/include'
98 infodir
='${prefix}/info'
99 mandir
='${prefix}/man'
101 # Initialize some other variables.
104 SHELL
=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
130 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
131 bindir
="$ac_optarg" ;;
133 -build |
--build |
--buil |
--bui |
--bu)
135 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
136 build
="$ac_optarg" ;;
138 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
139 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
140 ac_prev
=cache_file
;;
141 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
142 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
143 cache_file
="$ac_optarg" ;;
145 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
147 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
149 datadir
="$ac_optarg" ;;
151 -disable-* |
--disable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* |
--enable-*)
161 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
174 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
175 |
--exec |
--exe |
--ex)
176 ac_prev
=exec_prefix
;;
177 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
178 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
179 |
--exec=* |
--exe=* |
--ex=*)
180 exec_prefix
="$ac_optarg" ;;
182 -gas |
--gas |
--ga |
--g)
183 # Obsolete; use --with-gas.
186 -help |
--help |
--hel |
--he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host |
--host |
--hos |
--ho)
243 -host=* |
--host=* |
--hos=* |
--ho=*)
246 -includedir |
--includedir |
--includedi |
--included |
--include \
247 |
--includ |
--inclu |
--incl |
--inc)
248 ac_prev
=includedir
;;
249 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
250 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
251 includedir
="$ac_optarg" ;;
253 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
255 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
256 infodir
="$ac_optarg" ;;
258 -libdir |
--libdir |
--libdi |
--libd)
260 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
261 libdir
="$ac_optarg" ;;
263 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
264 |
--libexe |
--libex |
--libe)
265 ac_prev
=libexecdir
;;
266 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
267 |
--libexe=* |
--libex=* |
--libe=*)
268 libexecdir
="$ac_optarg" ;;
270 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
271 |
--localstate |
--localstat |
--localsta |
--localst \
272 |
--locals |
--local |
--loca |
--loc |
--lo)
273 ac_prev
=localstatedir
;;
274 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
275 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
276 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
277 localstatedir
="$ac_optarg" ;;
279 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
281 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
282 mandir
="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
292 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
293 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
296 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
297 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
298 |
--oldin |
--oldi |
--old |
--ol |
--o)
299 ac_prev
=oldincludedir
;;
300 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
301 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
302 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
303 oldincludedir
="$ac_optarg" ;;
305 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
307 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
308 prefix
="$ac_optarg" ;;
310 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
311 |
--program-pre |
--program-pr |
--program-p)
312 ac_prev
=program_prefix
;;
313 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
314 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
315 program_prefix
="$ac_optarg" ;;
317 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
318 |
--program-suf |
--program-su |
--program-s)
319 ac_prev
=program_suffix
;;
320 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
321 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
322 program_suffix
="$ac_optarg" ;;
324 -program-transform-name |
--program-transform-name \
325 |
--program-transform-nam |
--program-transform-na \
326 |
--program-transform-n |
--program-transform- \
327 |
--program-transform |
--program-transfor \
328 |
--program-transfo |
--program-transf \
329 |
--program-trans |
--program-tran \
330 |
--progr-tra |
--program-tr |
--program-t)
331 ac_prev
=program_transform_name
;;
332 -program-transform-name=* |
--program-transform-name=* \
333 |
--program-transform-nam=* |
--program-transform-na=* \
334 |
--program-transform-n=* |
--program-transform-=* \
335 |
--program-transform=* |
--program-transfor=* \
336 |
--program-transfo=* |
--program-transf=* \
337 |
--program-trans=* |
--program-tran=* \
338 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
339 program_transform_name
="$ac_optarg" ;;
341 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
342 |
-silent |
--silent |
--silen |
--sile |
--sil)
345 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
347 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
349 sbindir
="$ac_optarg" ;;
351 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
352 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
353 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
355 ac_prev
=sharedstatedir
;;
356 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
357 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
358 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
360 sharedstatedir
="$ac_optarg" ;;
362 -site |
--site |
--sit)
364 -site=* |
--site=* |
--sit=*)
367 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
369 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
370 srcdir
="$ac_optarg" ;;
372 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
373 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
374 ac_prev
=sysconfdir
;;
375 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
376 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
377 sysconfdir
="$ac_optarg" ;;
379 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
381 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
382 target
="$ac_optarg" ;;
384 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
387 -version |
--version |
--versio |
--versi |
--vers)
388 echo "configure generated by autoconf version 2.13"
392 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package
=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* |
--without-*)
405 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package
=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
418 |
--x-incl |
--x-inc |
--x-in |
--x-i)
419 ac_prev
=x_includes
;;
420 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
421 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
422 x_includes
="$ac_optarg" ;;
424 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
425 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
426 ac_prev
=x_libraries
;;
427 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
428 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
429 x_libraries
="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE
; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
480 |
--no-cr |
--no-c) ;;
481 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
482 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
483 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest
* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file
=tree.c
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted
=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted
=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE
; then
534 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
536 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 for ac_site_file
in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
550 echo "creating cache $cache_file"
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp
='$CPP $CPPFLAGS'
557 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling
=$ac_cv_prog_cc_cross
563 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
572 ac_n
= ac_c
='\c' ac_t
=
580 symbolic_link
='ln -s'
583 # Check for bogus environment variables.
584 # Test if LIBRARY_PATH contains the notation for the current directory
585 # since this would lead to problems installing/building glibc.
586 # LIBRARY_PATH contains the current directory if one of the following
588 # - one of the terminals (":" and ";") is the first or last sign
589 # - two terminals occur directly after each other
590 # - the path contains an element with a dot in it
591 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6
592 echo "configure:593: checking LIBRARY_PATH variable" >&5
593 case ${LIBRARY_PATH} in
594 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
595 library_path_setting
="contains current directory"
598 library_path_setting
="ok"
601 echo "$ac_t""$library_path_setting" 1>&6
602 if test "$library_path_setting" != "ok"; then
603 { echo "configure: error:
604 *** LIBRARY_PATH shouldn't contain the current directory when
605 *** building egcs. Please change the environment variable
606 *** and run configure again." 1>&2; exit 1; }
609 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
610 # since this would lead to problems installing/building glibc.
611 # GCC_EXEC_PREFIX contains the current directory if one of the following
613 # - one of the terminals (":" and ";") is the first or last sign
614 # - two terminals occur directly after each other
615 # - the path contains an element with a dot in it
616 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6
617 echo "configure:618: checking GCC_EXEC_PREFIX variable" >&5
618 case ${GCC_EXEC_PREFIX} in
619 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
620 gcc_exec_prefix_setting
="contains current directory"
623 gcc_exec_prefix_setting
="ok"
626 echo "$ac_t""$gcc_exec_prefix_setting" 1>&6
627 if test "$gcc_exec_prefix_setting" != "ok"; then
628 { echo "configure: error:
629 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
630 *** building egcs. Please change the environment variable
631 *** and run configure again." 1>&2; exit 1; }
634 # Check for additional parameters
637 # Check whether --with-gnu-ld or --without-gnu-ld was given.
638 if test "${with_gnu_ld+set}" = set; then
639 withval
="$with_gnu_ld"
640 gnu_ld_flag
="$with_gnu_ld"
646 # With pre-defined ld
647 # Check whether --with-ld or --without-ld was given.
648 if test "${with_ld+set}" = set; then
650 DEFAULT_LINKER
="$with_ld"
653 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
654 if test ! -x "$DEFAULT_LINKER"; then
655 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
656 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
659 cat >> confdefs.h
<<EOF
660 #define DEFAULT_LINKER "$DEFAULT_LINKER"
666 # Check whether --with-gnu-as or --without-gnu-as was given.
667 if test "${with_gnu_as+set}" = set; then
668 withval
="$with_gnu_as"
669 gas_flag
="$with_gnu_as"
675 # Check whether --with-as or --without-as was given.
676 if test "${with_as+set}" = set; then
678 DEFAULT_ASSEMBLER
="$with_as"
681 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
682 if test ! -x "$DEFAULT_ASSEMBLER"; then
683 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
684 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
687 cat >> confdefs.h
<<EOF
688 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
694 # Check whether --with-stabs or --without-stabs was given.
695 if test "${with_stabs+set}" = set; then
696 withval
="$with_stabs"
704 # Check whether --with-elf or --without-elf was given.
705 if test "${with_elf+set}" = set; then
713 # Specify the local prefix
715 # Check whether --with-local-prefix or --without-local-prefix was given.
716 if test "${with_local_prefix+set}" = set; then
717 withval
="$with_local_prefix"
719 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
721 *) local_prefix
=$with_local_prefix ;;
726 # Default local prefix if it is empty
727 if test x
$local_prefix = x
; then
728 local_prefix
=/usr
/local
731 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
732 # passed in by the toplevel make and thus we'd get different behavior
733 # depending on where we built the sources.
735 # Specify the g++ header file directory
736 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
737 if test "${with_gxx_include_dir+set}" = set; then
738 withval
="$with_gxx_include_dir"
740 yes) { echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2; exit 1; } ;;
742 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
747 if test x
${gcc_gxx_include_dir} = x
; then
748 if test x
${enable_version_specific_runtime_libs} = xyes
; then
749 gcc_gxx_include_dir
='${libsubdir}/include/g++'
751 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
752 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
756 # Enable expensive internal checks
757 # Check whether --enable-checking or --disable-checking was given.
758 if test "${enable_checking+set}" = set; then
759 enableval
="$enable_checking"
760 case "${enableval}" in
761 yes) cat >> confdefs.h
<<\EOF
762 #define ENABLE_CHECKING 1
766 *) { echo "configure: error: bad value ${enableval} given for checking option" 1>&2; exit 1; } ;;
771 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
773 # Check whether --enable-cpplib or --disable-cpplib was given.
774 if test "${enable_cpplib+set}" = set; then
775 enableval
="$enable_cpplib"
776 if test x
$enable_cpplib != xno
; then
782 # Link cpplib into the compiler proper, for C/C++/ObjC.
783 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
784 if test "${enable_c_cpplib+set}" = set; then
785 enableval
="$enable_c_cpplib"
786 if test x
$enable_c_cpplib != xno
; then
787 extra_c_objs
="${extra_c_objs} libcpp.a"
788 extra_cxx_objs
="${extra_cxx_objs} ../libcpp.a"
789 extra_c_flags
="${extra_c_flags} -DUSE_CPPLIB=1"
795 # Enable Multibyte Characters for C/C++
796 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
797 if test "${enable_c_mbchar+set}" = set; then
798 enableval
="$enable_c_mbchar"
799 if test x
$enable_c_mbchar != xno
; then
800 extra_c_flags
=-DMULTIBYTE_CHARS=1
805 # Disable fast fixincludes
806 # Check whether --enable-fast-fixincludes or --disable-fast-fixincludes was given.
807 if test "${enable_fast_fixincludes+set}" = set; then
808 enableval
="$enable_fast_fixincludes"
809 if test x
$enable_fast_fixincludes = xno
; then
810 cp $srcdir/fixincludes .
/fixinc.sh
815 # Enable Haifa scheduler.
816 # Check whether --enable-haifa or --disable-haifa was given.
817 if test "${enable_haifa+set}" = set; then
818 enableval
="$enable_haifa"
824 # Pass with no value to take the default
825 # Pass with a value to specify a thread package
826 # Check whether --enable-threads or --disable-threads was given.
827 if test "${enable_threads+set}" = set; then
828 enableval
="$enable_threads"
829 if test x
$enable_threads = xno
; then
837 enable_threads_flag
=$enable_threads
838 # Check if a valid thread package
839 case x
${enable_threads_flag} in
842 target_thread_file
='single'
846 target_thread_file
=''
848 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
849 xsolaris | xwin32 | xdce | xvxworks
)
850 target_thread_file
=$enable_threads_flag
853 echo "$enable_threads is an unknown thread package" 1>&2
858 # Check whether --enable-objc-gc or --disable-objc-gc was given.
859 if test "${enable_objc_gc+set}" = set; then
860 enableval
="$enable_objc_gc"
861 if [ x
$enable_objc_gc = xno
]; then
871 # Check whether --enable-java-gc or --disable-java-gc was given.
872 if test "${enable_java_gc+set}" = set; then
873 enableval
="$enable_java_gc"
881 # Check whether --with-dwarf2 or --without-dwarf2 was given.
882 if test "${with_dwarf2+set}" = set; then
883 withval
="$with_dwarf2"
884 dwarf2
="$with_dwarf2"
890 # Determine the host, build, and target systems
892 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
893 if test -f $ac_dir/install-sh
; then
895 ac_install_sh
="$ac_aux_dir/install-sh -c"
897 elif test -f $ac_dir/install.sh
; then
899 ac_install_sh
="$ac_aux_dir/install.sh -c"
903 if test -z "$ac_aux_dir"; then
904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
906 ac_config_guess
=$ac_aux_dir/config.guess
907 ac_config_sub
=$ac_aux_dir/config.sub
908 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
911 # Do some error checking and defaulting for the host and target type.
913 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
916 # 1. You are not allowed to specify --host, --target, and nonopt at the
918 # 2. Host defaults to nonopt.
919 # 3. If nonopt is not specified, then host defaults to the current host,
920 # as determined by config.guess.
921 # 4. Target and build default to nonopt.
922 # 5. If nonopt is not specified, then target and build default to host.
924 # The aliases save the names the user supplied, while $host etc.
925 # will get canonicalized.
926 case $host---$target---$nonopt in
927 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
928 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
932 # Make sure we can run config.sub.
933 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
934 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937 echo $ac_n "checking host system type""... $ac_c" 1>&6
938 echo "configure:939: checking host system type" >&5
941 case "$host_alias" in
945 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
948 *) host_alias
=$nonopt ;;
952 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956 echo "$ac_t""$host" 1>&6
958 echo $ac_n "checking target system type""... $ac_c" 1>&6
959 echo "configure:960: checking target system type" >&5
962 case "$target_alias" in
965 NONE
) target_alias
=$host_alias ;;
966 *) target_alias
=$nonopt ;;
970 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
971 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974 echo "$ac_t""$target" 1>&6
976 echo $ac_n "checking build system type""... $ac_c" 1>&6
977 echo "configure:978: checking build system type" >&5
980 case "$build_alias" in
983 NONE
) build_alias
=$host_alias ;;
984 *) build_alias
=$nonopt ;;
988 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo "$ac_t""$build" 1>&6
994 test "$host_alias" != "$target_alias" &&
995 test "$program_prefix$program_suffix$program_transform_name" = \
997 program_prefix
=${target_alias}-
1000 # Find the native compiler
1001 # Extract the first word of "gcc", so it can be a program name with args.
1002 set dummy gcc
; ac_word
=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC
="$CC" # Let the user override the test.
1011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1013 for ac_dir
in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir
=.
1015 if test -f $ac_dir/$ac_word; then
1024 if test -n "$CC"; then
1025 echo "$ac_t""$CC" 1>&6
1027 echo "$ac_t""no" 1>&6
1030 if test -z "$CC"; then
1031 # Extract the first word of "cc", so it can be a program name with args.
1032 set dummy cc
; ac_word
=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC
="$CC" # Let the user override the test.
1041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1044 for ac_dir
in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir
=.
1046 if test -f $ac_dir/$ac_word; then
1047 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1048 ac_prog_rejected
=yes
1056 if test $ac_prog_rejected = yes; then
1057 # We found a bogon in the path, so make sure we never use it.
1058 set dummy
$ac_cv_prog_CC
1060 if test $# -gt 0; then
1061 # We chose a different compiler from the bogus one.
1062 # However, it has the same basename, so the bogon will be chosen
1063 # first if we set CC to just the basename; use the full file name.
1065 set dummy
"$ac_dir/$ac_word" "$@"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1076 echo "$ac_t""no" 1>&6
1079 if test -z "$CC"; then
1080 case "`uname -s`" in
1082 # Extract the first word of "cl", so it can be a program name with args.
1083 set dummy cl
; ac_word
=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC
="$CC" # Let the user override the test.
1092 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1094 for ac_dir
in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir
=.
1096 if test -f $ac_dir/$ac_word; then
1105 if test -n "$CC"; then
1106 echo "$ac_t""$CC" 1>&6
1108 echo "$ac_t""no" 1>&6
1113 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1121 ac_cpp
='$CPP $CPPFLAGS'
1122 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1123 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1124 cross_compiling
=$ac_cv_prog_cc_cross
1126 cat > conftest.
$ac_ext << EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1133 if { (eval echo configure
:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1134 ac_cv_prog_cc_works
=yes
1135 # If we can't run a trivial program, we are probably using a cross compiler.
1136 if (.
/conftest
; exit) 2>/dev
/null
; then
1137 ac_cv_prog_cc_cross
=no
1139 ac_cv_prog_cc_cross
=yes
1142 echo "configure: failed program was:" >&5
1143 cat conftest.
$ac_ext >&5
1144 ac_cv_prog_cc_works
=no
1148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149 ac_cpp
='$CPP $CPPFLAGS'
1150 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152 cross_compiling
=$ac_cv_prog_cc_cross
1154 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1155 if test $ac_cv_prog_cc_works = no
; then
1156 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1158 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1160 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1161 cross_compiling
=$ac_cv_prog_cc_cross
1163 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether we are using GNU C" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 cat > conftest.c
<<EOF
1173 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1180 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1182 if test $ac_cv_prog_gcc = yes; then
1188 ac_test_CFLAGS
="${CFLAGS+set}"
1189 ac_save_CFLAGS
="$CFLAGS"
1191 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ${CC-cc} accepts -g" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 echo 'void f(){}' > conftest.c
1197 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1207 if test "$ac_test_CFLAGS" = set; then
1208 CFLAGS
="$ac_save_CFLAGS"
1209 elif test $ac_cv_prog_cc_g = yes; then
1210 if test "$GCC" = yes; then
1216 if test "$GCC" = yes; then
1224 # If the native compiler is GCC, we can enable warnings even in stage1.
1225 # That's useful for people building cross-compilers, or just running a
1227 if test "x$GCC" = "xyes"; then
1228 stage1_warn_cflags
='$(WARN_CFLAGS)'
1230 stage1_warn_cflags
=""
1234 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1235 echo "configure:1236: checking whether ${MAKE-make} sets \${MAKE}" >&5
1236 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1237 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftestmake
<<\EOF
1242 @
echo 'ac_maketemp="${MAKE}"'
1244 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1245 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1246 if test -n "$ac_maketemp"; then
1247 eval ac_cv_prog_make_
${ac_make}_set
=yes
1249 eval ac_cv_prog_make_
${ac_make}_set
=no
1253 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1254 echo "$ac_t""yes" 1>&6
1257 echo "$ac_t""no" 1>&6
1258 SET_MAKE
="MAKE=${MAKE-make}"
1262 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether a default assembler was specified" >&5
1264 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1265 if test x
"$gas_flag" = x
"no"; then
1266 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1268 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1271 echo "$ac_t""no" 1>&6
1274 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1275 echo "configure:1276: checking whether a default linker was specified" >&5
1276 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1277 if test x
"$gnu_ld_flag" = x
"no"; then
1278 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1280 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1283 echo "$ac_t""no" 1>&6
1286 # Find some useful tools
1287 for ac_prog
in mawk gawk nawk
awk
1289 # Extract the first word of "$ac_prog", so it can be a program name with args.
1290 set dummy
$ac_prog; ac_word
=$2
1291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292 echo "configure:1293: checking for $ac_word" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if test -n "$AWK"; then
1297 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1299 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1301 for ac_dir
in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir
=.
1303 if test -f $ac_dir/$ac_word; then
1304 ac_cv_prog_AWK
="$ac_prog"
1311 AWK
="$ac_cv_prog_AWK"
1312 if test -n "$AWK"; then
1313 echo "$ac_t""$AWK" 1>&6
1315 echo "$ac_t""no" 1>&6
1318 test -n "$AWK" && break
1321 # Extract the first word of "flex", so it can be a program name with args.
1322 set dummy flex
; ac_word
=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 if test -n "$LEX"; then
1329 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1333 for ac_dir
in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir
=.
1335 if test -f $ac_dir/$ac_word; then
1336 ac_cv_prog_LEX
="flex"
1341 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1344 LEX
="$ac_cv_prog_LEX"
1345 if test -n "$LEX"; then
1346 echo "$ac_t""$LEX" 1>&6
1348 echo "$ac_t""no" 1>&6
1351 if test -z "$LEXLIB"
1357 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1358 echo "configure:1359: checking for yywrap in -l$ac_lib" >&5
1359 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 ac_save_LIBS
="$LIBS"
1364 LIBS
="-l$ac_lib $LIBS"
1365 cat > conftest.
$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1368 /* Override any gcc2 internal prototype to avoid an error. */
1369 /* We use char because int might match the return type of a gcc2
1370 builtin and then its argument prototype would still apply. */
1377 if { (eval echo configure
:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1379 eval "ac_cv_lib_$ac_lib_var=yes"
1381 echo "configure: failed program was:" >&5
1382 cat conftest.
$ac_ext >&5
1384 eval "ac_cv_lib_$ac_lib_var=no"
1387 LIBS
="$ac_save_LIBS"
1390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1394 echo "$ac_t""no" 1>&6
1399 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1400 echo "configure:1401: checking whether ln works" >&5
1401 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 rm -f conftestdata_t
1405 echo >conftestdata_f
1406 if ln conftestdata_f conftestdata_t
2>/dev
/null
1410 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1412 gcc_cv_prog_LN
="ln -s"
1417 rm -f conftestdata_f conftestdata_t
1420 LN
="$gcc_cv_prog_LN"
1421 if test "$gcc_cv_prog_LN" = "ln"; then
1422 echo "$ac_t""yes" 1>&6
1424 if test "$gcc_cv_prog_LN" = "ln -s"; then
1425 echo "$ac_t""no, using ln -s" 1>&6
1427 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1431 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1432 echo "configure:1433: checking whether ln -s works" >&5
1433 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 rm -f conftestdata_t
1437 echo >conftestdata_f
1438 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
1440 gcc_cv_prog_LN_S
="ln -s"
1442 if ln conftestdata_f conftestdata_t
2>/dev
/null
1449 rm -f conftestdata_f conftestdata_t
1452 LN_S
="$gcc_cv_prog_LN_S"
1453 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1454 echo "$ac_t""yes" 1>&6
1456 if test "$gcc_cv_prog_LN_S" = "ln"; then
1457 echo "$ac_t""no, using ln" 1>&6
1459 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1463 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1464 echo "configure:1465: checking for volatile" >&5
1465 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1468 cat > conftest.
$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1476 if { (eval echo configure
:1477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1478 gcc_cv_c_volatile
=yes
1480 echo "configure: failed program was:" >&5
1481 cat conftest.
$ac_ext >&5
1483 gcc_cv_c_volatile
=no
1488 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1489 if test $gcc_cv_c_volatile = yes ; then
1490 cat >> confdefs.h
<<\EOF
1491 #define HAVE_VOLATILE 1
1496 # Extract the first word of "ranlib", so it can be a program name with args.
1497 set dummy ranlib
; ac_word
=$2
1498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1499 echo "configure:1500: checking for $ac_word" >&5
1500 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 if test -n "$RANLIB"; then
1504 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1506 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1508 for ac_dir
in $ac_dummy; do
1509 test -z "$ac_dir" && ac_dir
=.
1510 if test -f $ac_dir/$ac_word; then
1511 ac_cv_prog_RANLIB
="ranlib"
1516 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1519 RANLIB
="$ac_cv_prog_RANLIB"
1520 if test -n "$RANLIB"; then
1521 echo "$ac_t""$RANLIB" 1>&6
1523 echo "$ac_t""no" 1>&6
1526 for ac_prog
in 'bison -y' byacc
1528 # Extract the first word of "$ac_prog", so it can be a program name with args.
1529 set dummy
$ac_prog; ac_word
=$2
1530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1531 echo "configure:1532: checking for $ac_word" >&5
1532 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 if test -n "$YACC"; then
1536 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1538 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1540 for ac_dir
in $ac_dummy; do
1541 test -z "$ac_dir" && ac_dir
=.
1542 if test -f $ac_dir/$ac_word; then
1543 ac_cv_prog_YACC
="$ac_prog"
1550 YACC
="$ac_cv_prog_YACC"
1551 if test -n "$YACC"; then
1552 echo "$ac_t""$YACC" 1>&6
1554 echo "$ac_t""no" 1>&6
1557 test -n "$YACC" && break
1559 test -n "$YACC" || YACC
="yacc"
1561 # Find a good install program. We prefer a C program (faster),
1562 # so one script is as good as another. But avoid the broken or
1563 # incompatible versions:
1564 # SysV /etc/install, /usr/sbin/install
1565 # SunOS /usr/etc/install
1566 # IRIX /sbin/install
1568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1570 # ./install, which can be erroneously created by make from ./install.sh.
1571 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1572 echo "configure:1573: checking for a BSD compatible install" >&5
1573 if test -z "$INSTALL"; then
1574 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1578 for ac_dir
in $PATH; do
1579 # Account for people who put trailing slashes in PATH elements.
1581 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1583 # OSF1 and SCO ODT 3.0 have their own names for install.
1584 for ac_prog
in ginstall scoinst
install; do
1585 if test -f $ac_dir/$ac_prog; then
1586 if test $ac_prog = install &&
1587 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1588 # AIX install. It has an incompatible calling convention.
1589 # OSF/1 installbsd also uses dspmsg, but is usable.
1592 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1603 if test "${ac_cv_path_install+set}" = set; then
1604 INSTALL
="$ac_cv_path_install"
1606 # As a last resort, use the slow shell script. We don't cache a
1607 # path for INSTALL within a source directory, because that will
1608 # break other packages using the cache if that directory is
1609 # removed, or if the path is relative.
1610 INSTALL
="$ac_install_sh"
1613 echo "$ac_t""$INSTALL" 1>&6
1615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616 # It thinks the first close brace ends the variable substitution.
1617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1619 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1622 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1623 echo "configure:1624: checking how to run the C preprocessor" >&5
1624 # On Suns, sometimes $CPP names a directory.
1625 if test -n "$CPP" && test -d "$CPP"; then
1628 if test -z "$CPP"; then
1629 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 # This must be in double quotes, not single quotes, because CPP may get
1633 # substituted into the Makefile and "${CC-cc}" will confuse make.
1635 # On the NeXT, cc -E runs the code through the compiler's parser,
1636 # not just through cpp.
1637 cat > conftest.
$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1643 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1644 { (eval echo configure
:1645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1645 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1646 if test -z "$ac_err"; then
1650 echo "configure: failed program was:" >&5
1651 cat conftest.
$ac_ext >&5
1653 CPP
="${CC-cc} -E -traditional-cpp"
1654 cat > conftest.
$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1660 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1661 { (eval echo configure
:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1662 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1663 if test -z "$ac_err"; then
1667 echo "configure: failed program was:" >&5
1668 cat conftest.
$ac_ext >&5
1670 CPP
="${CC-cc} -nologo -E"
1671 cat > conftest.
$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1677 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1678 { (eval echo configure
:1679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1679 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1680 if test -z "$ac_err"; then
1684 echo "configure: failed program was:" >&5
1685 cat conftest.
$ac_ext >&5
1694 ac_cv_prog_CPP
="$CPP"
1696 CPP
="$ac_cv_prog_CPP"
1698 ac_cv_prog_CPP
="$CPP"
1700 echo "$ac_t""$CPP" 1>&6
1702 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1703 echo "configure:1704: checking for ANSI C header files" >&5
1704 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1715 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1716 { (eval echo configure
:1717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1717 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1718 if test -z "$ac_err"; then
1720 ac_cv_header_stdc
=yes
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 ac_cv_header_stdc
=no
1730 if test $ac_cv_header_stdc = yes; then
1731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1732 cat > conftest.
$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1738 egrep "memchr" >/dev
/null
2>&1; then
1742 ac_cv_header_stdc
=no
1748 if test $ac_cv_header_stdc = yes; then
1749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1750 cat > conftest.
$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1756 egrep "free" >/dev
/null
2>&1; then
1760 ac_cv_header_stdc
=no
1766 if test $ac_cv_header_stdc = yes; then
1767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1768 if test "$cross_compiling" = yes; then
1771 cat > conftest.
$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1775 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1776 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1778 int main () { int i; for (i = 0; i < 256; i++)
1779 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1783 if { (eval echo configure
:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1787 echo "configure: failed program was:" >&5
1788 cat conftest.
$ac_ext >&5
1790 ac_cv_header_stdc
=no
1798 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1799 if test $ac_cv_header_stdc = yes; then
1800 cat >> confdefs.h
<<\EOF
1801 #define STDC_HEADERS 1
1806 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1807 echo "configure:1808: checking whether time.h and sys/time.h may both be included" >&5
1808 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 #include <sys/types.h>
1815 #include <sys/time.h>
1821 if { (eval echo configure
:1822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1823 ac_cv_header_time
=yes
1825 echo "configure: failed program was:" >&5
1826 cat conftest.
$ac_ext >&5
1828 ac_cv_header_time
=no
1833 echo "$ac_t""$ac_cv_header_time" 1>&6
1834 if test $ac_cv_header_time = yes; then
1835 cat >> confdefs.h
<<\EOF
1836 #define TIME_WITH_SYS_TIME 1
1841 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether string.h and strings.h may both be included" >&5
1843 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.
$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1850 #include <strings.h>
1855 if { (eval echo configure
:1856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1857 gcc_cv_header_string
=yes
1859 echo "configure: failed program was:" >&5
1860 cat conftest.
$ac_ext >&5
1862 gcc_cv_header_string
=no
1867 echo "$ac_t""$gcc_cv_header_string" 1>&6
1868 if test $gcc_cv_header_string = yes; then
1869 cat >> confdefs.h
<<\EOF
1870 #define STRING_WITH_STRINGS 1
1875 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1876 echo "configure:1877: checking for sys/wait.h that is POSIX.1 compatible" >&5
1877 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 cat > conftest.
$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1883 #include <sys/types.h>
1884 #include <sys/wait.h>
1886 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1889 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1894 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1897 if { (eval echo configure
:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1899 ac_cv_header_sys_wait_h
=yes
1901 echo "configure: failed program was:" >&5
1902 cat conftest.
$ac_ext >&5
1904 ac_cv_header_sys_wait_h
=no
1909 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1910 if test $ac_cv_header_sys_wait_h = yes; then
1911 cat >> confdefs.h
<<\EOF
1912 #define HAVE_SYS_WAIT_H 1
1917 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h fcntl.h unistd.h stab.h sys
/file.h sys
/time.h sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h direct.h
1919 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_hdr" >&5
1922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.
$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1930 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1931 { (eval echo configure
:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1932 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1933 if test -z "$ac_err"; then
1935 eval "ac_cv_header_$ac_safe=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.
$ac_ext >&5
1941 eval "ac_cv_header_$ac_safe=no"
1945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1948 cat >> confdefs.h
<<EOF
1949 #define $ac_tr_hdr 1
1953 echo "$ac_t""no" 1>&6
1958 # Check for thread headers.
1959 ac_safe
=`echo "thread.h" | sed 'y%./+-%__p_%'`
1960 echo $ac_n "checking for thread.h""... $ac_c" 1>&6
1961 echo "configure:1962: checking for thread.h" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.
$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1970 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure
:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1975 eval "ac_cv_header_$ac_safe=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.
$ac_ext >&5
1981 eval "ac_cv_header_$ac_safe=no"
1985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1989 echo "$ac_t""no" 1>&6
1993 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
1994 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
1995 echo "configure:1996: checking for pthread.h" >&5
1996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 cat > conftest.
$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2002 #include <pthread.h>
2004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2005 { (eval echo configure
:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2006 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2007 if test -z "$ac_err"; then
2009 eval "ac_cv_header_$ac_safe=yes"
2012 echo "configure: failed program was:" >&5
2013 cat conftest.
$ac_ext >&5
2015 eval "ac_cv_header_$ac_safe=no"
2019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2020 echo "$ac_t""yes" 1>&6
2023 echo "$ac_t""no" 1>&6
2028 # See if GNAT has been installed
2029 # Extract the first word of "gnatbind", so it can be a program name with args.
2030 set dummy gnatbind
; ac_word
=$2
2031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2032 echo "configure:2033: checking for $ac_word" >&5
2033 if eval "test \"`echo '$''{'ac_cv_prog_gnat'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 if test -n "$gnat"; then
2037 ac_cv_prog_gnat
="$gnat" # Let the user override the test.
2039 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2041 for ac_dir
in $ac_dummy; do
2042 test -z "$ac_dir" && ac_dir
=.
2043 if test -f $ac_dir/$ac_word; then
2044 ac_cv_prog_gnat
="yes"
2049 test -z "$ac_cv_prog_gnat" && ac_cv_prog_gnat
="no"
2052 gnat
="$ac_cv_prog_gnat"
2053 if test -n "$gnat"; then
2054 echo "$ac_t""$gnat" 1>&6
2056 echo "$ac_t""no" 1>&6
2060 # See if the system preprocessor understands the ANSI C preprocessor
2061 # stringification operator.
2062 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2063 echo "configure:2064: checking whether cpp understands the stringify operator" >&5
2064 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2073 char *test = S(foo);
2076 if { (eval echo configure
:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2078 gcc_cv_c_have_stringify
=yes
2080 echo "configure: failed program was:" >&5
2081 cat conftest.
$ac_ext >&5
2083 gcc_cv_c_have_stringify
=no
2088 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2089 if test $gcc_cv_c_have_stringify = yes; then
2090 cat >> confdefs.h
<<\EOF
2091 #define HAVE_CPP_STRINGIFY 1
2096 # Use <inttypes.h> only if it exists,
2097 # doesn't clash with <sys/types.h>, and declares intmax_t.
2098 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2099 echo "configure:2100: checking for inttypes.h" >&5
2100 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 cat > conftest.
$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2106 #include <sys/types.h>
2107 #include <inttypes.h>
2112 if { (eval echo configure
:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2114 gcc_cv_header_inttypes_h
=yes
2116 echo "configure: failed program was:" >&5
2117 cat conftest.
$ac_ext >&5
2119 gcc_cv_header_inttypes_h
=no
2124 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2125 if test $gcc_cv_header_inttypes_h = yes; then
2126 cat >> confdefs.h
<<\EOF
2127 #define HAVE_INTTYPES_H 1
2132 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp \
2133 index rindex strchr strrchr
kill getrlimit setrlimit atoll atoq \
2134 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
2137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_func" >&5
2139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.
$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145 /* System header to define __stub macros and hopefully few prototypes,
2146 which can conflict with char $ac_func(); below. */
2148 /* Override any gcc2 internal prototype to avoid an error. */
2149 /* We use char because int might match the return type of a gcc2
2150 builtin and then its argument prototype would still apply. */
2156 /* The GNU C library defines this for functions which it implements
2157 to always fail with ENOSYS. Some functions are actually named
2158 something starting with __ and the normal name is an alias. */
2159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2167 if { (eval echo configure
:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2169 eval "ac_cv_func_$ac_func=yes"
2171 echo "configure: failed program was:" >&5
2172 cat conftest.
$ac_ext >&5
2174 eval "ac_cv_func_$ac_func=no"
2179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2182 cat >> confdefs.h
<<EOF
2183 #define $ac_tr_func 1
2187 echo "$ac_t""no" 1>&6
2192 # Make sure wchar_t is available
2193 #AC_CHECK_TYPE(wchar_t, unsigned int)
2195 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2196 echo "configure:2197: checking for vprintf" >&5
2197 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 /* System header to define __stub macros and hopefully few prototypes,
2204 which can conflict with char vprintf(); below. */
2206 /* Override any gcc2 internal prototype to avoid an error. */
2207 /* We use char because int might match the return type of a gcc2
2208 builtin and then its argument prototype would still apply. */
2214 /* The GNU C library defines this for functions which it implements
2215 to always fail with ENOSYS. Some functions are actually named
2216 something starting with __ and the normal name is an alias. */
2217 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2225 if { (eval echo configure
:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2227 eval "ac_cv_func_vprintf=yes"
2229 echo "configure: failed program was:" >&5
2230 cat conftest.
$ac_ext >&5
2232 eval "ac_cv_func_vprintf=no"
2237 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2238 echo "$ac_t""yes" 1>&6
2239 cat >> confdefs.h
<<\EOF
2240 #define HAVE_VPRINTF 1
2244 echo "$ac_t""no" 1>&6
2247 if test "$ac_cv_func_vprintf" != yes; then
2248 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2249 echo "configure:2250: checking for _doprnt" >&5
2250 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 cat > conftest.
$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 /* System header to define __stub macros and hopefully few prototypes,
2257 which can conflict with char _doprnt(); below. */
2259 /* Override any gcc2 internal prototype to avoid an error. */
2260 /* We use char because int might match the return type of a gcc2
2261 builtin and then its argument prototype would still apply. */
2267 /* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2278 if { (eval echo configure
:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2280 eval "ac_cv_func__doprnt=yes"
2282 echo "configure: failed program was:" >&5
2283 cat conftest.
$ac_ext >&5
2285 eval "ac_cv_func__doprnt=no"
2290 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2291 echo "$ac_t""yes" 1>&6
2292 cat >> confdefs.h
<<\EOF
2293 #define HAVE_DOPRNT 1
2297 echo "$ac_t""no" 1>&6
2304 if test $ac_cv_func_vprintf != yes ; then
2306 if test $ac_cv_func__doprnt != yes ; then
2313 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
2314 echo "configure:2315: checking whether the printf functions support %p" >&5
2315 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 if test "$cross_compiling" = yes; then
2319 gcc_cv_func_printf_ptr
=no
2321 cat > conftest.
$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2329 char *p = buf, *q = NULL;
2330 sprintf(buf, "%p", p);
2331 sscanf(buf, "%p", &q);
2335 if { (eval echo configure
:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2337 gcc_cv_func_printf_ptr
=yes
2339 echo "configure: failed program was:" >&5
2340 cat conftest.
$ac_ext >&5
2342 gcc_cv_func_printf_ptr
=no
2347 rm -f core core.
* *.core
2350 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
2351 if test $gcc_cv_func_printf_ptr = yes ; then
2352 cat >> confdefs.h
<<\EOF
2353 #define HAVE_PRINTF_PTR 1
2361 # Under some versions of uwin, vfork is notoriously buggy and the test
2362 # can hang configure; on other versions, vfork exists just as a stub.
2363 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
2364 ac_cv_func_vfork_works
=no
2367 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2368 echo "configure:2369: checking for pid_t" >&5
2369 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 cat > conftest.
$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2375 #include <sys/types.h>
2381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2382 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2384 ac_cv_type_pid_t
=yes
2392 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2393 if test $ac_cv_type_pid_t = no
; then
2394 cat >> confdefs.h
<<\EOF
2400 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2401 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2402 echo "configure:2403: checking for vfork.h" >&5
2403 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 cat > conftest.
$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2411 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2412 { (eval echo configure
:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2413 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2414 if test -z "$ac_err"; then
2416 eval "ac_cv_header_$ac_safe=yes"
2419 echo "configure: failed program was:" >&5
2420 cat conftest.
$ac_ext >&5
2422 eval "ac_cv_header_$ac_safe=no"
2426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 cat >> confdefs.h
<<\EOF
2429 #define HAVE_VFORK_H 1
2433 echo "$ac_t""no" 1>&6
2436 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2437 echo "configure:2438: checking for working vfork" >&5
2438 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 if test "$cross_compiling" = yes; then
2442 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2443 echo "configure:2444: checking for vfork" >&5
2444 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 /* System header to define __stub macros and hopefully few prototypes,
2451 which can conflict with char vfork(); below. */
2453 /* Override any gcc2 internal prototype to avoid an error. */
2454 /* We use char because int might match the return type of a gcc2
2455 builtin and then its argument prototype would still apply. */
2461 /* The GNU C library defines this for functions which it implements
2462 to always fail with ENOSYS. Some functions are actually named
2463 something starting with __ and the normal name is an alias. */
2464 #if defined (__stub_vfork) || defined (__stub___vfork)
2472 if { (eval echo configure
:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2474 eval "ac_cv_func_vfork=yes"
2476 echo "configure: failed program was:" >&5
2477 cat conftest.
$ac_ext >&5
2479 eval "ac_cv_func_vfork=no"
2484 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2485 echo "$ac_t""yes" 1>&6
2488 echo "$ac_t""no" 1>&6
2491 ac_cv_func_vfork_works
=$ac_cv_func_vfork
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 /* Thanks to Paul Eggert for this test. */
2498 #include <sys/types.h>
2499 #include <sys/stat.h>
2500 #ifdef HAVE_UNISTD_H
2506 /* On some sparc systems, changes by the child to local and incoming
2507 argument registers are propagated back to the parent.
2508 The compiler is told about this with #include <vfork.h>,
2509 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2510 Test for this by using a static variable whose address
2511 is put into a register that is clobbered by the vfork. */
2514 sparc_address_test (int arg)
2516 sparc_address_test (arg) int arg;
2534 pid_t parent = getpid ();
2537 sparc_address_test ();
2542 /* Here is another test for sparc vfork register problems.
2543 This test uses lots of local variables, at least
2544 as many local variables as main has allocated so far
2545 including compiler temporaries. 4 locals are enough for
2546 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2547 A buggy compiler should reuse the register of parent
2548 for one of the local variables, since it will think that
2549 parent can't possibly be used any more in this routine.
2550 Assigning to the local variable will thus munge parent
2551 in the parent process. */
2553 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2554 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2555 /* Convince the compiler that p..p7 are live; otherwise, it might
2556 use the same hardware register for all 8 local variables. */
2557 if (p != p1 || p != p2 || p != p3 || p != p4
2558 || p != p5 || p != p6 || p != p7)
2561 /* On some systems (e.g. IRIX 3.3),
2562 vfork doesn't separate parent from child file descriptors.
2563 If the child closes a descriptor before it execs or exits,
2564 this munges the parent's descriptor as well.
2565 Test for this by closing stdout in the child. */
2566 _exit(close(fileno(stdout)) != 0);
2571 while (wait(&status) != child)
2574 /* Was there some problem with vforking? */
2577 /* Did the child fail? (This shouldn't happen.) */
2580 /* Did the vfork/compiler bug occur? */
2581 || parent != getpid()
2583 /* Did the file descriptor bug occur? */
2584 || fstat(fileno(stdout), &st) != 0
2589 if { (eval echo configure
:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2591 ac_cv_func_vfork_works
=yes
2593 echo "configure: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2596 ac_cv_func_vfork_works
=no
2603 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2604 if test $ac_cv_func_vfork_works = no
; then
2605 cat >> confdefs.h
<<\EOF
2612 for ac_func
in malloc realloc calloc free bcopy bzero bcmp \
2613 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
2614 strsignal putc_unlocked fputs_unlocked
2616 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2617 echo "configure:2618: checking whether $ac_func must be declared" >&5
2618 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.
$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2626 #ifdef STRING_WITH_STRINGS
2627 # include <string.h>
2628 # include <strings.h>
2630 # ifdef HAVE_STRING_H
2631 # include <string.h>
2633 # ifdef HAVE_STRINGS_H
2634 # include <strings.h>
2638 #ifdef HAVE_STDLIB_H
2641 #ifdef HAVE_UNISTD_H
2645 #define rindex strrchr
2648 #define index strchr
2652 char *(*pfn) = (char *(*)) $ac_func
2655 if { (eval echo configure
:2656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2657 eval "gcc_cv_decl_needed_$ac_func=no"
2659 echo "configure: failed program was:" >&5
2660 cat conftest.
$ac_ext >&5
2662 eval "gcc_cv_decl_needed_$ac_func=yes"
2667 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2669 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2670 cat >> confdefs.h
<<EOF
2671 #define $gcc_tr_decl 1
2675 echo "$ac_t""no" 1>&6
2681 for ac_func
in getrlimit setrlimit
2683 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2684 echo "configure:2685: checking whether $ac_func must be declared" >&5
2685 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2688 cat > conftest.
$ac_ext <<EOF
2689 #line 2690 "configure"
2690 #include "confdefs.h"
2693 #ifdef STRING_WITH_STRINGS
2694 # include <string.h>
2695 # include <strings.h>
2697 # ifdef HAVE_STRING_H
2698 # include <string.h>
2700 # ifdef HAVE_STRINGS_H
2701 # include <strings.h>
2705 #ifdef HAVE_STDLIB_H
2708 #ifdef HAVE_UNISTD_H
2712 #define rindex strrchr
2715 #define index strchr
2717 #include <sys/types.h>
2718 #ifdef HAVE_SYS_RESOURCE_H
2719 #include <sys/resource.h>
2723 char *(*pfn) = (char *(*)) $ac_func
2726 if { (eval echo configure
:2727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2728 eval "gcc_cv_decl_needed_$ac_func=no"
2730 echo "configure: failed program was:" >&5
2731 cat conftest.
$ac_ext >&5
2733 eval "gcc_cv_decl_needed_$ac_func=yes"
2738 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2739 echo "$ac_t""yes" 1>&6
2740 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2741 cat >> confdefs.h
<<EOF
2742 #define $gcc_tr_decl 1
2746 echo "$ac_t""no" 1>&6
2752 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2753 echo "configure:2754: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2754 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2757 cat > conftest.
$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2760 #include <sys/types.h>
2762 /* NetBSD declares sys_siglist in unistd.h. */
2763 #ifdef HAVE_UNISTD_H
2767 char *msg = *(sys_siglist + 1);
2770 if { (eval echo configure
:2771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2772 ac_cv_decl_sys_siglist
=yes
2774 echo "configure: failed program was:" >&5
2775 cat conftest.
$ac_ext >&5
2777 ac_cv_decl_sys_siglist
=no
2782 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2783 if test $ac_cv_decl_sys_siglist = yes; then
2784 cat >> confdefs.h
<<\EOF
2785 #define SYS_SIGLIST_DECLARED 1
2791 # mkdir takes a single argument on some systems.
2792 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2793 echo "configure:2794: checking if mkdir takes one argument" >&5
2794 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 cat > conftest.
$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2801 #include <sys/types.h>
2802 #ifdef HAVE_SYS_STAT_H
2803 # include <sys/stat.h>
2805 #ifdef HAVE_UNISTD_H
2806 # include <unistd.h>
2808 #ifdef HAVE_DIRECT_H
2809 # include <direct.h>
2815 if { (eval echo configure
:2816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2817 gcc_cv_mkdir_takes_one_arg
=no
2819 echo "configure: failed program was:" >&5
2820 cat conftest.
$ac_ext >&5
2822 gcc_cv_mkdir_takes_one_arg
=yes
2827 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2828 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2829 cat >> confdefs.h
<<\EOF
2830 #define MKDIR_TAKES_ONE_ARG 1
2844 build_install_headers_dir
=install-headers-tar
2849 host_truncate_target
=
2852 # It is relative to $prefix.
2855 # Decode the host machine, then the target machine.
2856 # For the host machine, we save the xm_file variable as host_xm_file;
2857 # then we decode the target machine and forget everything else
2858 # that came from the host machine.
2859 for machine
in $build $host $target; do
2873 # Set this to force installation and use of collect2.
2875 # Set this to override the default target model.
2877 # Set this to control how the header file directory is installed.
2878 install_headers_dir
=install-headers-tar
2879 # Set this to a non-empty list of args to pass to cpp if the target
2880 # wants its .md file passed through cpp.
2882 # Set this if directory names should be truncated to 14 characters.
2884 # Set this if gdb needs a dir command with `dirname $out_file`
2885 gdb_needs_out_file_path
=
2886 # Set this if the build machine requires executables to have a
2889 # Set this to control which thread package will be used.
2891 # Reinitialize these from the flag values every loop pass, since some
2892 # configure entries modify them.
2894 gnu_ld
="$gnu_ld_flag"
2895 enable_threads
=$enable_threads_flag
2897 # Set default cpu_type, tm_file and xm_file so it can be updated in
2898 # each machine entry.
2899 cpu_type
=`echo $machine | sed 's/-.*$//'`
2933 tm_file
=${cpu_type}/${cpu_type}.h
2934 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2936 # Common parts for linux-gnu and openbsd systems
2939 xm_defines
="HAVE_ATEXIT POSIX BSTRING"
2942 tm_file
=${cpu_type}/openbsd.h
2943 tmake_file
="t-libc-ok t-openbsd"
2944 # avoid surprises, always provide an xm-openbsd file
2945 xm_file
=${cpu_type}/xm-openbsd.h
2946 # don't depend on processor x-fragments as well
2948 if test x
$enable_threads = xyes
; then
2950 tmake_file
="${tmake_file} t-openbsd-thread"
2956 # Support site-specific machine types.
2958 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2959 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2960 xm_file
=${cpu_type}/xm-
$rest.h
2961 tm_file
=${cpu_type}/$rest.h
2962 if test -f $srcdir/config
/${cpu_type}/x-
$rest; \
2963 then xmake_file
=${cpu_type}/x-
$rest; \
2966 if test -f $srcdir/config
/${cpu_type}/t-
$rest; \
2967 then tmake_file
=${cpu_type}/t-
$rest; \
2973 a29k-
*-bsd* | a29k-
*-sym1*)
2974 tm_file
="${tm_file} a29k/unix.h"
2976 xmake_file
=a29k
/x-unix
2979 a29k-
*-udi | a29k-
*-coff)
2980 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2981 tmake_file
=a29k
/t-a29kbare
2984 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2985 tmake_file
=a29k
/t-vx29k
2986 extra_parts
="crtbegin.o crtend.o"
2987 thread_file
='vxworks'
2989 a29k-
*-*) # Default a29k environment.
2993 tm_file
="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
2995 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
2996 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
2998 # GAS + IEEE_CONFORMANT
2999 target_cpu_default
="MASK_GAS|MASK_IEEE_CONFORMANT"
3001 xm_file
="alpha/xm-alpha-interix.h xm-interix.h"
3002 xmake_file
="x-interix alpha/t-pe"
3003 tmake_file
="alpha/t-interix"
3004 if test x
$enable_threads = xyes
; then
3007 if test x
$stabs = xyes
; then
3008 tm_file
="${tm_file} dbxcoff.h"
3010 #prefix='$$INTERIX_ROOT'/usr/contrib
3011 #local_prefix='$$INTERIX_ROOT'/usr/contrib
3013 alpha
*-*-linux-gnuecoff*)
3014 tm_file
="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
3015 target_cpu_default
="MASK_GAS"
3020 alpha
*-*-linux-gnulibc1*)
3021 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3022 target_cpu_default
="MASK_GAS"
3023 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
3024 extra_parts
="crtbegin.o crtend.o"
3027 if test x
$enable_threads = xyes
; then
3031 alpha
*-*-linux-gnu*)
3032 tm_file
="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
3033 target_cpu_default
="MASK_GAS"
3034 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
3035 extra_parts
="crtbegin.o crtend.o"
3038 if test x
$enable_threads = xyes
; then
3043 tm_file
="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
3044 target_cpu_default
="MASK_GAS"
3045 tmake_file
="alpha/t-crtbe"
3046 extra_parts
="crtbegin.o crtend.o"
3052 # default x-alpha is only appropriate for dec-osf.
3053 target_cpu_default
="MASK_GAS"
3057 if test x
$stabs = xyes
3059 tm_file
="${tm_file} dbx.h"
3061 if test x
$gas != xyes
3063 extra_passes
="mips-tfile mips-tdump"
3068 tm_file
="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
3071 tm_file
="${tm_file} alpha/osf.h alpha/osf2or3.h"
3074 tm_file
="${tm_file} alpha/osf.h"
3075 # Some versions of OSF4 (specifically X4.0-9 296.7) have
3076 # a broken tar, so we use cpio instead.
3077 install_headers_dir
=install-headers-cpio
3081 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
3082 target_cpu_default
=MASK_SUPPORT_ARCH
3087 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
3090 extra_passes
="mips-tfile mips-tdump"
3093 thread_file
='vxworks'
3096 tm_file
="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
3097 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
3098 tmake_file
=t-libc-ok
3099 xmake_file
=winnt
/x-winnt
3100 extra_host_objs
=oldnames.o
3101 extra_gcc_objs
="spawnv.o oldnames.o"
3102 if test x
$gnu_ld != xyes
3104 extra_programs
=ld.exe
3106 if test x
$enable_threads = xyes
; then
3112 xm_file
="${xm_file} alpha/xm-vms.h"
3113 tmake_file
=alpha
/t-vms
3116 extra_parts
="crtinit.o crtfini.o"
3118 arm-
*-coff* | armel-
*-coff*)
3120 tmake_file
=arm
/t-bare
3124 tmake_file
=arm
/t-bare
3125 thread_file
='vxworks'
3127 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
3128 tm_file
=arm
/riscix1-1.h
3131 arm-
*-riscix*) # Acorn RISC machine
3132 if test x
$gas = xyes
3134 tm_file
=arm
/rix-gas.h
3136 tm_file
=arm
/riscix.h
3138 xmake_file
=arm
/x-riscix
3139 tmake_file
=arm
/t-riscix
3142 arm-semi-aout | armel-semi-aout
)
3144 tmake_file
=arm
/t-semi
3146 arm-semi-aof | armel-semi-aof
)
3147 tm_file
=arm
/semiaof.h
3148 tmake_file
=arm
/t-semiaof
3151 tm_file
=arm
/netbsd.h
3152 xm_file
="arm/xm-netbsd.h ${xm_file}"
3153 tmake_file
="t-netbsd arm/t-netbsd"
3155 arm
*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
3158 tm_file
=arm
/linux-aout.h
3159 tmake_file
=arm
/t-linux
3162 arm
*-*-linux-gnu*) # ARM GNU/Linux with ELF
3163 xm_file
=arm
/xm-linux.h
3167 tm_file
=arm
/linux-elf26.h
3170 tm_file
=arm
/linux-elf.h
3173 tmake_file
="t-linux arm/t-linux"
3174 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3176 case x
${enable_threads} in
3177 x | xyes | xpthreads | xposix
)
3184 tmake_file
=arm
/t-bare
3187 tm_file
=arm
/ecos-elf.h
3188 tmake_file
=arm
/t-elf
3191 tm_file
=arm
/unknown-elf.h
3192 tmake_file
=arm
/t-arm-elf
3195 tm_file
=arm
/unknown-elf-oabi.h
3196 tmake_file
=arm
/t-arm-elf
3198 c1-convex-
*) # Convex C1
3199 target_cpu_default
=1
3202 c2-convex-
*) # Convex C2
3203 target_cpu_default
=2
3207 target_cpu_default
=4
3211 target_cpu_default
=8
3215 target_cpu_default
=16
3220 tmake_file
=c4x
/t-c4x
3222 clipper-intergraph-clix
*)
3223 tm_file
="${tm_file} svr3.h clipper/clix.h"
3224 xm_file
=clipper
/xm-clix.h
3225 xmake_file
=clipper
/x-clix
3226 extra_headers
=va-clipper.h
3227 extra_parts
="crtbegin.o crtend.o"
3228 install_headers_dir
=install-headers-cpio
3235 # This hasn't been upgraded to GCC 2.
3236 # fx80-alliant-*) # Alliant FX/80
3242 target_cpu_default
="MASK_PA_11"
3243 tmake_file
=pa
/t-openbsd
3246 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
3247 xm_file
=pa
/xm-papro.h
3251 target_cpu_default
="MASK_PA_11"
3252 tm_file
="${tm_file} pa/pa-osf.h"
3256 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
3257 xm_file
=pa
/xm-papro.h
3261 tm_file
="${tm_file} pa/pa-osf.h"
3265 target_cpu_default
="MASK_PA_11"
3272 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
3273 xm_file
=pa
/xm-pahpux.h
3274 xmake_file
=pa
/x-pa-hpux
3275 if test x
$gas = xyes
3277 tm_file
="${tm_file} pa/gas.h"
3279 install_headers_dir
=install-headers-cpio
3282 hppa1.0
-*-hpux8.0
[0-2]*)
3283 tm_file
="${tm_file} pa/pa-hpux.h"
3284 xm_file
=pa
/xm-pahpux.h
3285 xmake_file
=pa
/x-pa-hpux
3286 if test x
$gas = xyes
3288 tm_file
="${tm_file} pa/pa-gas.h"
3290 tm_file
="pa/pa-oldas.h ${tm_file}"
3292 install_headers_dir
=install-headers-cpio
3295 hppa1.1
-*-hpux8.0
[0-2]*)
3296 target_cpu_default
="MASK_PA_11"
3297 tm_file
="${tm_file} pa/pa-hpux.h"
3298 xm_file
=pa
/xm-pahpux.h
3299 xmake_file
=pa
/x-pa-hpux
3300 if test x
$gas = xyes
3302 tm_file
="${tm_file} pa/pa-gas.h"
3304 tm_file
="pa/pa-oldas.h ${tm_file}"
3306 install_headers_dir
=install-headers-cpio
3310 target_cpu_default
="MASK_PA_11"
3311 tm_file
="${tm_file} pa/pa-hpux.h"
3312 xm_file
=pa
/xm-pahpux.h
3313 xmake_file
=pa
/x-pa-hpux
3314 if test x
$gas = xyes
3316 tm_file
="${tm_file} pa/pa-gas.h"
3318 install_headers_dir
=install-headers-cpio
3322 tm_file
="${tm_file} pa/pa-hpux.h"
3323 xm_file
=pa
/xm-pahpux.h
3324 xmake_file
=pa
/x-pa-hpux
3325 if test x
$gas = xyes
3327 tm_file
="${tm_file} pa/pa-gas.h"
3329 install_headers_dir
=install-headers-cpio
3332 hppa1.1
-*-hpux10* | hppa2
*-*-hpux10*)
3333 target_cpu_default
="MASK_PA_11"
3334 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3335 xm_file
=pa
/xm-pahpux.h
3336 xmake_file
=pa
/x-pa-hpux
3338 if test x
$gas = xyes
3340 tm_file
="${tm_file} pa/pa-gas.h"
3342 if test x
$enable_threads = x
; then
3343 enable_threads
=$have_pthread_h
3345 if test x
$enable_threads = xyes
; then
3347 tmake_file
="${tmake_file} pa/t-dce-thr"
3349 install_headers_dir
=install-headers-cpio
3353 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
3354 xm_file
=pa
/xm-pahpux.h
3355 xmake_file
=pa
/x-pa-hpux
3357 if test x
$gas = xyes
3359 tm_file
="${tm_file} pa/pa-gas.h"
3361 if test x
$enable_threads = x
; then
3362 enable_threads
=$have_pthread_h
3364 if test x
$enable_threads = xyes
; then
3366 tmake_file
="${tmake_file} pa/t-dce-thr"
3368 install_headers_dir
=install-headers-cpio
3371 hppa1.1
-*-hpux* | hppa2
*-*-hpux*)
3372 target_cpu_default
="MASK_PA_11"
3373 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3374 xm_file
=pa
/xm-pahpux.h
3375 xmake_file
=pa
/x-pa-hpux
3376 if test x
$gas = xyes
3378 tm_file
="${tm_file} pa/pa-gas.h"
3380 install_headers_dir
=install-headers-cpio
3384 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
3385 xm_file
=pa
/xm-pahpux.h
3386 xmake_file
=pa
/x-pa-hpux
3387 if test x
$gas = xyes
3389 tm_file
="${tm_file} pa/pa-gas.h"
3391 install_headers_dir
=install-headers-cpio
3394 hppa1.1
-*-hiux* | hppa2
*-*-hiux*)
3395 target_cpu_default
="MASK_PA_11"
3396 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3397 xm_file
=pa
/xm-pahpux.h
3398 xmake_file
=pa
/x-pa-hpux
3399 if test x
$gas = xyes
3401 tm_file
="${tm_file} pa/pa-gas.h"
3403 install_headers_dir
=install-headers-cpio
3407 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
3408 xm_file
=pa
/xm-pahpux.h
3409 xmake_file
=pa
/x-pa-hpux
3410 if test x
$gas = xyes
3412 tm_file
="${tm_file} pa/pa-gas.h"
3414 install_headers_dir
=install-headers-cpio
3418 target_cpu_default
="MASK_PA_11"
3423 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
3424 if test x
$gas = xyes
3426 tm_file
=i386
/aix386.h
3427 extra_parts
="crtbegin.o crtend.o"
3428 tmake_file
=i386
/t-crtstuff
3430 tm_file
=i386
/aix386ng.h
3433 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
3435 xmake_file
=i386
/x-aix
3437 i
[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
3438 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3439 xm_defines
="USG POSIX SMALL_ARG_MAX"
3440 xmake_file
=i386
/x-ncr3000
3441 if test x
$stabs = xyes
-a x
$gas = xyes
3443 tm_file
=i386
/sysv4gdb.h
3445 tm_file
=i386
/sysv4.h
3447 extra_parts
="crtbegin.o crtend.o"
3448 tmake_file
=i386
/t-crtpic
3452 xm_file
=i386
/xm-next.h
3453 tmake_file
=i386
/t-next
3454 xmake_file
=i386
/x-next
3455 extra_objs
=nextstep.o
3456 extra_parts
="crtbegin.o crtend.o"
3457 if test x
$enable_threads = xyes
; then
3461 i
[34567]86-sequent-bsd*) # 80386 from Sequent
3463 if test x
$gas = xyes
3465 tm_file
=i386
/seq-gas.h
3467 tm_file
=i386
/sequent.h
3470 i
[34567]86-sequent-ptx1*)
3471 xm_defines
="USG SVR3"
3472 xmake_file
=i386
/x-sysv3
3473 tm_file
=i386
/seq-sysv3.h
3474 tmake_file
=i386
/t-crtstuff
3475 extra_parts
="crtbegin.o crtend.o"
3476 install_headers_dir
=install-headers-cpio
3478 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
3479 xm_defines
="USG SVR3"
3480 xmake_file
=i386
/x-sysv3
3481 tm_file
=i386
/seq2-sysv3.h
3482 tmake_file
=i386
/t-crtstuff
3483 extra_parts
="crtbegin.o crtend.o"
3484 install_headers_dir
=install-headers-cpio
3486 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
3487 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3488 xm_defines
="USG POSIX SMALL_ARG_MAX"
3490 tm_file
=i386
/ptx4-i.h
3492 extra_parts
="crtbegin.o crtend.o"
3493 install_headers_dir
=install-headers-cpio
3495 i386-sun-sunos
*) # Sun i386 roadrunner
3500 i
[34567]86-wrs-vxworks*)
3501 tm_file
=i386
/vxi386.h
3502 tmake_file
=i386
/t-i386bare
3503 thread_file
='vxworks'
3506 tm_file
=i386
/i386-aout.h
3507 tmake_file
=i386
/t-i386bare
3509 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
3510 tm_file
=i386
/bsd386.h
3511 # tmake_file=t-libc-ok
3514 tm_file
=i386
/386bsd.h
3515 # tmake_file=t-libc-ok
3516 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
3519 i
[34567]86-*-freebsdelf*)
3520 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
3521 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3522 tmake_file
=i386
/t-freebsd
3527 i
[34567]86-*-freebsd*)
3528 tm_file
=i386
/freebsd.h
3529 tmake_file
=i386
/t-freebsd
3531 i
[34567]86-*-netbsd*)
3532 tm_file
=i386
/netbsd.h
3535 i
[34567]86-*-openbsd*)
3536 # we need collect2 until our bug is fixed...
3540 tm_file
=i386
/i386-coff.h
3541 tmake_file
=i386
/t-i386bare
3543 i
[34567]86-*-isc*) # 80386 running ISC system
3544 xm_file
="${xm_file} i386/xm-isc.h"
3545 xm_defines
="USG SVR3"
3547 i
[34567]86-*-isc[34]*)
3548 xmake_file
=i386
/x-isc3
3551 xmake_file
=i386
/x-isc
3554 if test x
$gas = xyes
-a x
$stabs = xyes
3556 tm_file
=i386
/iscdbx.h
3557 tmake_file
=i386
/t-svr3dbx
3558 extra_parts
="svr3.ifile svr3z.ifile"
3560 tm_file
=i386
/isccoff.h
3561 tmake_file
=i386
/t-crtstuff
3562 extra_parts
="crtbegin.o crtend.o"
3564 install_headers_dir
=install-headers-cpio
3566 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3568 xmake_file
=x-linux-aout
3569 tmake_file
="t-linux-aout i386/t-crtstuff"
3570 tm_file
=i386
/linux-oldld.h
3574 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3575 xmake_file
=x-linux-aout
3576 tmake_file
="t-linux-aout i386/t-crtstuff"
3577 tm_file
=i386
/linux-aout.h
3581 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3582 # GNU/Linux C library 5
3584 tm_file
=i386
/linux.h
3585 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3586 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3589 if test x
$enable_threads = xyes
; then
3590 thread_file
='single'
3593 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3594 # aka GNU/Linux C library 6
3596 tm_file
=i386
/linux.h
3597 tmake_file
="t-linux i386/t-crtstuff"
3598 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3601 if test x
$enable_threads = xyes
; then
3608 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
3609 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
3612 i
[34567]86-pc-msdosdjgpp*)
3613 xm_file
=i386
/xm-djgpp.h
3614 tm_file
=i386
/djgpp.h
3615 tmake_file
=i386
/t-djgpp
3616 xmake_file
=i386
/x-djgpp
3620 case $host in *pc-msdosdjgpp
*)
3625 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
3627 tmake_file
=t-libc-ok
3631 i
[34567]86-*-lynxos*)
3632 if test x
$gas = xyes
3636 tm_file
=i386
/lynx-ng.h
3638 xm_file
=i386
/xm-lynx.h
3639 tmake_file
=i386
/t-i386bare
3644 # tmake_file=t-libc-ok
3647 i
[34567]86-*-osfrose*) # 386 using OSF/rose
3648 if test x
$elf = xyes
3650 tm_file
=i386
/osfelf.h
3653 tm_file
=i386
/osfrose.h
3656 xm_file
="i386/xm-osf.h ${xm_file}"
3657 xmake_file
=i386
/x-osfrose
3658 tmake_file
=i386
/t-osf
3659 extra_objs
=halfpic.o
3661 i
[34567]86-go32-rtems*)
3663 xm_file
=i386
/xm-go32.h
3664 tm_file
=i386
/go32-rtems.h
3665 tmake_file
="i386/t-go32 t-rtems"
3667 i
[34567]86-*-rtemself*)
3669 tm_file
=i386
/rtemself.h
3670 tmake_file
="i386/t-i386bare t-rtems"
3672 i
[34567]86-*-rtems*)
3674 tm_file
=i386
/rtems.h
3675 tmake_file
="i386/t-i386bare t-rtems"
3677 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
3678 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3679 xm_defines
="USG SVR3"
3680 xmake_file
=i386
/x-sco5
3681 install_headers_dir
=install-headers-cpio
3683 if test x
$gas = xyes
3685 tm_file
="i386/sco5gas.h ${tm_file}"
3686 tmake_file
=i386
/t-sco5gas
3688 tmake_file
=i386
/t-sco5
3690 extra_parts
="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
3692 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
3693 xm_file
="${xm_file} i386/xm-sco.h"
3694 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3695 xmake_file
=i386
/x-sco4
3696 install_headers_dir
=install-headers-cpio
3697 if test x
$stabs = xyes
3699 tm_file
=i386
/sco4dbx.h
3700 tmake_file
=i386
/t-svr3dbx
3701 extra_parts
="svr3.ifile svr3z.rfile"
3704 tmake_file
=i386
/t-crtstuff
3705 extra_parts
="crtbegin.o crtend.o"
3709 i
[34567]86-*-sco*) # 80386 running SCO system
3710 xm_file
=i386
/xm-sco.h
3711 xmake_file
=i386
/x-sco
3712 install_headers_dir
=install-headers-cpio
3713 if test x
$stabs = xyes
3715 tm_file
=i386
/scodbx.h
3716 tmake_file
=i386
/t-svr3dbx
3717 extra_parts
="svr3.ifile svr3z.rfile"
3720 extra_parts
="crtbegin.o crtend.o"
3721 tmake_file
=i386
/t-crtstuff
3725 i
[34567]86-*-solaris2*)
3726 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3727 xm_defines
="USG POSIX SMALL_ARG_MAX"
3728 if test x
$stabs = xyes
3730 tm_file
=i386
/sol2dbg.h
3734 tmake_file
=i386
/t-sol2
3735 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3737 if test x
$enable_threads = xyes
; then
3738 thread_file
='solaris'
3741 i
[34567]86-*-sysv5*) # Intel x86 on System V Release 5
3742 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3743 xm_defines
="USG POSIX"
3744 tm_file
=i386
/sysv5.h
3745 if test x
$stabs = xyes
3747 tm_file
="${tm_file} dbx.h"
3749 tmake_file
=i386
/t-crtpic
3751 extra_parts
="crtbegin.o crtend.o"
3752 if test x
$enable_threads = xyes
; then
3756 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
3757 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3758 xm_defines
="USG POSIX SMALL_ARG_MAX"
3759 tm_file
=i386
/sysv4.h
3760 if test x
$stabs = xyes
3762 tm_file
="${tm_file} dbx.h"
3764 tmake_file
=i386
/t-crtpic
3766 extra_parts
="crtbegin.o crtend.o"
3768 i
[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
3769 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3770 xm_defines
="USG POSIX"
3772 tmake_file
="i386/t-crtpic i386/t-udk"
3774 extra_parts
="crtbegin.o crtend.o"
3776 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3778 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3779 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
3780 if test x
$stabs = xyes
3782 tm_file
=i386
/osf1elfgdb.h
3784 tm_file
=i386
/osf1elf.h
3786 tmake_file
=i386
/t-osf1elf
3787 xmake_file
=i386
/x-osf1elf
3788 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3790 i
[34567]86-*-sysv*) # Intel 80386's running system V
3791 xm_defines
="USG SVR3"
3792 xmake_file
=i386
/x-sysv3
3793 if test x
$gas = xyes
3795 if test x
$stabs = xyes
3797 tm_file
=i386
/svr3dbx.h
3798 tmake_file
=i386
/t-svr3dbx
3799 extra_parts
="svr3.ifile svr3z.rfile"
3801 tm_file
=i386
/svr3gas.h
3802 extra_parts
="crtbegin.o crtend.o"
3803 tmake_file
=i386
/t-crtstuff
3806 tm_file
=i386
/sysv3.h
3807 extra_parts
="crtbegin.o crtend.o"
3808 tmake_file
=i386
/t-crtstuff
3811 i386-
*-vsta) # Intel 80386's running VSTa kernel
3812 xm_file
="${xm_file} i386/xm-vsta.h"
3814 tmake_file
=i386
/t-vsta
3815 xmake_file
=i386
/x-vsta
3818 xm_file
="${xm_file} i386/xm-cygwin.h"
3819 tmake_file
=i386
/t-cygwin
3820 tm_file
=i386
/win32.h
3821 xmake_file
=i386
/x-cygwin
3823 if test x
$enable_threads = xyes
; then
3828 i
[34567]86-*-pe | i
[34567]86-*-cygwin*)
3829 xm_file
="${xm_file} i386/xm-cygwin.h"
3830 tmake_file
=i386
/t-cygwin
3831 tm_file
=i386
/cygwin.h
3832 xmake_file
=i386
/x-cygwin
3834 if test x
$enable_threads = xyes
; then
3839 i
[34567]86-*-mingw32*)
3840 tm_file
=i386
/mingw32.h
3841 xm_file
="${xm_file} i386/xm-mingw32.h"
3842 tmake_file
="i386/t-cygwin i386/t-mingw32"
3844 xmake_file
=i386
/x-cygwin
3845 if test x
$enable_threads = xyes
; then
3852 *minwg32crt
* |
*mingw32
*)
3853 tm_file
="${tm_file} i386/crtdll.h"
3859 xm_file
="${xm_file} i386/xm-uwin.h"
3860 xm_defines
="USG NO_STAB_H NO_SYS_SIGLIST"
3861 tmake_file
="i386/t-cygwin i386/t-uwin"
3863 xmake_file
=i386
/x-cygwin
3864 if test x
$enable_threads = xyes
; then
3869 i
[34567]86-*-interix*)
3870 tm_file
="i386/i386-interix.h interix.h"
3871 xm_file
="i386/xm-i386-interix.h xm-interix.h"
3872 xm_defines
="USG NO_SYS_SIGLIST"
3873 tmake_file
="i386/t-interix"
3874 extra_objs
=interix.o
3875 xmake_file
=x-interix
3876 if test x
$enable_threads = xyes
; then
3879 if test x
$stabs = xyes
; then
3880 tm_file
="${tm_file} dbxcoff.h"
3883 i
[34567]86-*-winnt3*)
3884 tm_file
=i386
/win-nt.h
3885 out_file
=i386
/i386.c
3886 xm_file
="xm-winnt.h ${xm_file}"
3887 xmake_file
=winnt
/x-winnt
3888 tmake_file
=i386
/t-winnt
3889 extra_host_objs
="winnt.o oldnames.o"
3890 extra_gcc_objs
="spawnv.o oldnames.o"
3891 if test x
$gnu_ld != xyes
3893 extra_programs
=ld.exe
3895 if test x
$enable_threads = xyes
; then
3899 i
[34567]86-dg-dgux*)
3900 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3901 xm_defines
="USG POSIX"
3902 out_file
=i386
/dgux.c
3904 tmake_file
=i386
/t-dgux
3905 xmake_file
=i386
/x-dgux
3906 install_headers_dir
=install-headers-cpio
3908 i860-alliant-
*) # Alliant FX/2800
3909 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3910 xm_file
="${xm_file}"
3911 xmake_file
=i860
/x-fx2800
3912 tmake_file
=i860
/t-fx2800
3913 extra_parts
="crtbegin.o crtend.o"
3916 tm_file
="${tm_file} i860/bsd.h"
3917 if test x
$gas = xyes
3919 tm_file
="${tm_file} i860/bsd-gas.h"
3924 tm_file
="${tm_file} i860/mach.h"
3925 tmake_file
=t-libc-ok
3927 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3928 tm_file
="${tm_file} svr3.h i860/paragon.h"
3929 xm_defines
="USG SVR3"
3933 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3934 xm_defines
="USG SVR3"
3935 xmake_file
=i860
/x-sysv3
3936 extra_parts
="crtbegin.o crtend.o"
3939 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3940 xm_defines
="USG SVR3"
3941 xmake_file
=i860
/x-sysv4
3943 extra_parts
="crtbegin.o crtend.o"
3945 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3946 tm_file
="${tm_file} i960/vx960.h"
3947 tmake_file
=i960
/t-vxworks960
3949 thread_file
='vxworks'
3951 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3952 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3953 tmake_file
=i960
/t-vxworks960
3955 thread_file
='vxworks'
3958 tm_file
="${tm_file} i960/vx960.h"
3959 tmake_file
=i960
/t-vxworks960
3961 thread_file
='vxworks'
3964 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3965 tmake_file
=i960
/t-960bare
3969 tmake_file
="i960/t-960bare t-rtems"
3970 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3973 i960-
*-*) # Default i960 environment.
3977 extra_parts
="crtinit.o crtfini.o"
3979 m68000-convergent-sysv
*)
3981 xm_file
="m68k/xm-3b1.h ${xm_file}"
3984 extra_headers
=math-68881.h
3986 m68000-hp-bsd
*) # HP 9000/200 running BSD
3987 tm_file
=m68k
/hp2bsd.h
3988 xmake_file
=m68k
/x-hp2bsd
3990 extra_headers
=math-68881.h
3992 m68000-hp-hpux
*) # HP 9000 series 300
3993 xm_file
="xm_alloca.h ${xm_file}"
3994 xm_defines
="USG NO_SYS_SIGLIST"
3995 if test x
$gas = xyes
3997 xmake_file
=m68k
/x-hp320g
3998 tm_file
=m68k
/hp310g.h
4000 xmake_file
=m68k
/x-hp320
4001 tm_file
=m68k
/hp310.h
4003 install_headers_dir
=install-headers-cpio
4005 extra_headers
=math-68881.h
4010 extra_headers
=math-68881.h
4013 tm_file
=m68k
/sun2o4.h
4015 extra_headers
=math-68881.h
4018 xm_file
="m68k/xm-3b1.h ${xm_file}"
4020 if test x
$gas = xyes
4027 extra_headers
=math-68881.h
4029 m68k-apple-aux
*) # Apple Macintosh running A/UX
4030 xm_defines
="USG AUX"
4031 tmake_file
=m68k
/t-aux
4032 install_headers_dir
=install-headers-cpio
4033 extra_headers
=math-68881.h
4034 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
4036 if test "$gnu_ld" = yes
4038 tm_file
="${tm_file} m68k/auxgld.h"
4040 tm_file
="${tm_file} m68k/auxld.h"
4042 if test "$gas" = yes
4044 tm_file
="${tm_file} m68k/auxgas.h"
4046 tm_file
="${tm_file} m68k/auxas.h"
4048 tm_file
="${tm_file} m68k/a-ux.h"
4052 tm_file
=m68k
/apollo68.h
4053 xmake_file
=m68k
/x-apollo68
4055 extra_headers
=math-68881.h
4058 m68k-altos-sysv
*) # Altos 3068
4059 if test x
$gas = xyes
4061 tm_file
=m68k
/altos3068.h
4064 echo "The Altos is supported only with the GNU assembler" 1>&2
4067 extra_headers
=math-68881.h
4069 m68k-bull-sysv
*) # Bull DPX/2
4070 if test x
$gas = xyes
4072 if test x
$stabs = xyes
4074 tm_file
=m68k
/dpx2cdbx.h
4076 tm_file
=m68k
/dpx2g.h
4081 xm_file
="xm-alloca.h ${xm_file}"
4083 xmake_file
=m68k
/x-dpx2
4085 extra_headers
=math-68881.h
4087 m68k-atari-sysv4
*) # Atari variant of V.4.
4088 tm_file
=m68k
/atari.h
4089 xm_file
="xm-alloca.h ${xm_file}"
4090 xm_defines
="USG FULL_PROTOTYPES"
4092 extra_parts
="crtbegin.o crtend.o"
4093 extra_headers
=math-68881.h
4096 m68k-motorola-sysv
*)
4097 tm_file
=m68k
/mot3300.h
4098 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
4099 xm_defines
=NO_SYS_SIGLIST
4100 if test x
$gas = xyes
4102 xmake_file
=m68k
/x-mot3300-gas
4103 if test x
$gnu_ld = xyes
4105 tmake_file
=m68k
/t-mot3300-gald
4107 tmake_file
=m68k
/t-mot3300-gas
4111 xmake_file
=m68k
/x-mot3300
4112 if test x
$gnu_ld = xyes
4114 tmake_file
=m68k
/t-mot3300-gld
4116 tmake_file
=m68k
/t-mot3300
4120 gdb_needs_out_file_path
=yes
4121 extra_parts
="crt0.o mcrt0.o"
4122 extra_headers
=math-68881.h
4125 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
4126 tm_file
=m68k
/tower-as.h
4127 xm_defines
="USG SVR3"
4128 xmake_file
=m68k
/x-tower
4129 extra_parts
="crtbegin.o crtend.o"
4130 extra_headers
=math-68881.h
4133 tm_file
=m68k
/plexus.h
4134 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
4137 extra_headers
=math-68881.h
4141 xm_file
="xm-alloca.h ${xm_file}"
4143 extra_headers
=math-68881.h
4146 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
4147 xm_defines
="USG unos"
4148 xmake_file
=m68k
/x-crds
4151 extra_headers
=math-68881.h
4153 m68k-cbm-sysv4
*) # Commodore variant of V.4.
4155 xm_file
="xm-alloca.h ${xm_file}"
4156 xm_defines
="USG FULL_PROTOTYPES"
4157 xmake_file
=m68k
/x-amix
4159 extra_parts
="crtbegin.o crtend.o"
4160 extra_headers
=math-68881.h
4164 tm_file
=m68k
/ccur-GAS.h
4165 xmake_file
=m68k
/x-ccur
4166 extra_headers
=math-68881.h
4170 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
4171 tm_file
=m68k
/hp3bsd44.h
4172 xmake_file
=m68k
/x-hp3bsd44
4174 extra_headers
=math-68881.h
4177 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
4178 tm_file
=m68k
/hp3bsd.h
4180 extra_headers
=math-68881.h
4184 if test x
$with_fp = xno
4186 tm_file
=m68k
/isi-nfp.h
4192 extra_headers
=math-68881.h
4194 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
4195 xm_file
="xm_alloca.h ${xm_file}"
4196 xm_defines
="USG NO_SYS_SIGLIST"
4197 if test x
$gas = xyes
4199 xmake_file
=m68k
/x-hp320g
4200 tm_file
=m68k
/hp320g.h
4202 xmake_file
=m68k
/x-hp320
4203 tm_file
=m68k
/hpux7.h
4205 install_headers_dir
=install-headers-cpio
4207 extra_headers
=math-68881.h
4210 m68k-hp-hpux
*) # HP 9000 series 300
4211 xm_file
="xm_alloca.h ${xm_file}"
4212 xm_defines
="USG NO_SYS_SIGLIST"
4213 if test x
$gas = xyes
4215 xmake_file
=m68k
/x-hp320g
4216 tm_file
=m68k
/hp320g.h
4218 xmake_file
=m68k
/x-hp320
4219 tm_file
=m68k
/hp320.h
4221 install_headers_dir
=install-headers-cpio
4223 extra_headers
=math-68881.h
4227 tm_file
=m68k
/sun3mach.h
4229 extra_headers
=math-68881.h
4233 if test x
$gas = xyes
4235 tm_file
=m68k
/news3gas.h
4237 tm_file
=m68k
/news3.h
4240 extra_headers
=math-68881.h
4243 m68k-sony-bsd
* | m68k-sony-newsos
*)
4244 if test x
$gas = xyes
4246 tm_file
=m68k
/newsgas.h
4251 extra_headers
=math-68881.h
4254 m68k-next-nextstep2
*)
4255 tm_file
=m68k
/next21.h
4256 xm_file
="m68k/xm-next.h ${xm_file}"
4257 tmake_file
=m68k
/t-next
4258 xmake_file
=m68k
/x-next
4259 extra_objs
=nextstep.o
4260 extra_headers
=math-68881.h
4264 m68k-next-nextstep3
*)
4266 xm_file
="m68k/xm-next.h ${xm_file}"
4267 tmake_file
=m68k
/t-next
4268 xmake_file
=m68k
/x-next
4269 extra_objs
=nextstep.o
4270 extra_parts
="crtbegin.o crtend.o"
4271 extra_headers
=math-68881.h
4273 if test x
$enable_threads = xyes
; then
4278 if test x
$with_fp = xno
4280 tm_file
=m68k
/sun3n3.h
4282 tm_file
=m68k
/sun3o3.h
4286 extra_headers
=math-68881.h
4288 m68k-sun-sunos
*) # For SunOS 4 (the default).
4289 if test x
$with_fp = xno
4291 tm_file
=m68k
/sun3n.h
4297 extra_headers
=math-68881.h
4300 tm_file
=m68k
/vxm68k.h
4301 tmake_file
=m68k
/t-vxworks68
4302 extra_headers
=math-68881.h
4303 thread_file
='vxworks'
4307 tmake_file
=m68k
/t-m68kbare
4308 tm_file
="m68k/m68k-aout.h libgloss.h"
4309 extra_headers
=math-68881.h
4313 tmake_file
=m68k
/t-m68kbare
4314 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
4315 extra_headers
=math-68881.h
4318 m68020-
*-elf* | m68k-
*-elf*)
4319 tm_file
="m68k/m68020-elf.h libgloss.h"
4320 xm_file
=m68k
/xm-m68kv.h
4321 tmake_file
=m68k
/t-m68kelf
4322 header_files
=math-68881.h
4325 if test x
$gas = xyes
4329 tm_file
=m68k
/lynx-ng.h
4331 xm_file
=m68k
/xm-lynx.h
4333 tmake_file
=m68k
/t-lynx
4334 extra_headers
=math-68881.h
4338 tm_file
=m68k
/netbsd.h
4344 # we need collect2 until our bug is fixed...
4347 m68k-
*-sysv3*) # Motorola m68k's running system V.3
4348 xm_file
="xm-alloca.h ${xm_file}"
4350 xmake_file
=m68k
/x-m68kv
4351 extra_parts
="crtbegin.o crtend.o"
4352 extra_headers
=math-68881.h
4355 m68k-
*-sysv4*) # Motorola m68k's running system V.4
4356 tm_file
=m68k
/m68kv4.h
4357 xm_file
="xm-alloca.h ${xm_file}"
4360 extra_parts
="crtbegin.o crtend.o"
4361 extra_headers
=math-68881.h
4364 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
4367 tm_file
=m68k
/linux-aout.h
4368 tmake_file
="t-linux-aout m68k/t-linux-aout"
4369 extra_headers
=math-68881.h
4373 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
4374 # with ELF format using the
4375 # GNU/Linux C library 5
4377 tm_file
=m68k
/linux.h
4378 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
4379 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4380 extra_headers
=math-68881.h
4384 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
4385 # with ELF format using glibc 2
4386 # aka the GNU/Linux C library 6.
4388 tm_file
=m68k
/linux.h
4389 tmake_file
="t-linux m68k/t-linux"
4390 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4391 extra_headers
=math-68881.h
4394 if test x
$enable_threads = xyes
; then
4399 tmake_file
=m68k
/t-m68kbare
4400 tm_file
=m68k
/m68k-psos.h
4401 extra_headers
=math-68881.h
4405 tmake_file
="m68k/t-m68kbare t-rtems"
4406 tm_file
=m68k
/rtems.h
4407 extra_headers
=math-68881.h
4414 tm_file
=m88k
/dguxbcs.h
4415 tmake_file
=m88k
/t-dguxbcs
4419 tmake_file
=m88k
/t-dgux
4422 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
4423 xmake_file
=m88k
/x-dgux
4424 if test x
$gas = xyes
4426 tmake_file
=m88k
/t-dgux-gas
4429 m88k-dolphin-sysv3
*)
4430 tm_file
=m88k
/dolph.h
4431 extra_parts
="crtbegin.o crtend.o"
4432 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4433 xmake_file
=m88k
/x-dolph
4434 if test x
$gas = xyes
4436 tmake_file
=m88k
/t-m88k-gas
4439 m88k-tektronix-sysv3
)
4440 tm_file
=m88k
/tekXD88.h
4441 extra_parts
="crtbegin.o crtend.o"
4442 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4443 xmake_file
=m88k
/x-tekXD88
4444 if test x
$gas = xyes
4446 tmake_file
=m88k
/t-m88k-gas
4450 tm_file
=m88k
/m88k-aout.h
4453 tm_file
=m88k
/m88k-coff.h
4454 tmake_file
=m88k
/t-bug
4458 extra_parts
="crtbegin.o crtend.o"
4459 if test x
$gas = xyes
4461 tmake_file
=m88k
/t-luna-gas
4463 tmake_file
=m88k
/t-luna
4467 tmake_file
="${tmake_file} m88k/t-luna-gas"
4470 tm_file
=m88k
/sysv3.h
4471 extra_parts
="crtbegin.o crtend.o"
4472 xm_file
="m88k/xm-sysv3.h ${xm_file}"
4473 xmake_file
=m88k
/x-sysv3
4474 if test x
$gas = xyes
4476 tmake_file
=m88k
/t-m88k-gas
4480 tm_file
=m88k
/sysv4.h
4481 extra_parts
="crtbegin.o crtend.o"
4482 xmake_file
=m88k
/x-sysv4
4483 tmake_file
=m88k
/t-sysv4
4485 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
4486 tm_file
=mips
/iris6.h
4487 xm_file
=mips
/xm-iris6.h
4488 xmake_file
=mips
/x-iris6
4489 tmake_file
=mips
/t-iris6
4490 # if test x$enable_threads = xyes; then
4491 # thread_file='irix'
4495 tm_file
="mips/elf.h libgloss.h mips/vxworks.h"
4496 tmake_file
=mips
/t-ecoff
4499 extra_parts
="crtbegin.o crtend.o"
4500 thread_file
='vxworks'
4502 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
4503 tm_file
="mips/iris6.h mips/cross64.h"
4505 xm_file
="mips/xm-iris5.h"
4506 xmake_file
=mips
/x-iris
4507 tmake_file
=mips
/t-cross64
4508 # See comment in mips/iris[56].h files.
4510 # if test x$enable_threads = xyes; then
4511 # thread_file='irix'
4515 if test x
$gas = xyes
4517 if test x
$stabs = xyes
4519 tm_file
=mips
/iris5gdb.h
4521 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
4524 tm_file
=mips
/sni-svr4.h
4527 xmake_file
=mips
/x-sni-svr4
4528 tmake_file
=mips
/t-mips-gas
4529 if test x
$gnu_ld != xyes
4534 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
4535 if test x
$gas = xyes
4537 tm_file
="mips/iris5.h mips/iris5gas.h"
4538 if test x
$stabs = xyes
4540 tm_file
="${tm_file} dbx.h"
4543 tm_file
=mips
/iris5.h
4546 xm_file
="mips/xm-iris5.h"
4547 xmake_file
=mips
/x-iris
4548 # mips-tfile doesn't work yet
4549 tmake_file
=mips
/t-mips-gas
4550 # See comment in mips/iris5.h file.
4552 # if test x$enable_threads = xyes; then
4553 # thread_file='irix'
4556 mips-sgi-irix4loser
*) # Mostly like a MIPS.
4557 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
4558 if test x
$stabs = xyes
; then
4559 tm_file
="${tm_file} dbx.h"
4562 xmake_file
=mips
/x-iris
4563 if test x
$gas = xyes
4565 tmake_file
=mips
/t-mips-gas
4567 extra_passes
="mips-tfile mips-tdump"
4569 if test x
$gnu_ld != xyes
4573 # if test x$enable_threads = xyes; then
4574 # thread_file='irix'
4577 mips-sgi-irix4
*) # Mostly like a MIPS.
4578 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
4579 if test x
$stabs = xyes
; then
4580 tm_file
="${tm_file} dbx.h"
4583 xmake_file
=mips
/x-iris
4584 if test x
$gas = xyes
4586 tmake_file
=mips
/t-mips-gas
4588 extra_passes
="mips-tfile mips-tdump"
4590 if test x
$gnu_ld != xyes
4594 # if test x$enable_threads = xyes; then
4595 # thread_file='irix'
4598 mips-sgi-
*) # Mostly like a MIPS.
4599 tm_file
="mips/iris3.h ${tm_file}"
4600 if test x
$stabs = xyes
; then
4601 tm_file
="${tm_file} dbx.h"
4604 xmake_file
=mips
/x-iris3
4605 if test x
$gas = xyes
4607 tmake_file
=mips
/t-mips-gas
4609 extra_passes
="mips-tfile mips-tdump"
4611 if test x
$gnu_ld != xyes
4616 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
4617 tm_file
="mips/osfrose.h ${tm_file}"
4618 xmake_file
=mips
/x-osfrose
4619 tmake_file
=mips
/t-osfrose
4620 extra_objs
=halfpic.o
4623 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
4624 tm_file
=mips
/dec-osf1.h
4625 if test x
$stabs = xyes
; then
4626 tm_file
="${tm_file} dbx.h"
4628 xmake_file
=mips
/x-dec-osf1
4629 if test x
$gas = xyes
4631 tmake_file
=mips
/t-mips-gas
4633 tmake_file
=mips
/t-ultrix
4634 extra_passes
="mips-tfile mips-tdump"
4636 if test x
$gnu_ld != xyes
4641 mips-dec-bsd
*) # Decstation running 4.4 BSD
4642 tm_file
=mips
/dec-bsd.h
4643 if test x
$gas = xyes
4645 tmake_file
=mips
/t-mips-gas
4647 tmake_file
=mips
/t-ultrix
4648 extra_passes
="mips-tfile mips-tdump"
4650 if test x
$gnu_ld != xyes
4655 mipsel-
*-netbsd* | mips-dec-netbsd
*) # Decstation running NetBSD
4656 tm_file
=mips
/netbsd.h
4657 # On NetBSD, the headers are already okay, except for math.h.
4660 mips
*-*-linux*) # Linux MIPS, either endian.
4662 xm_file
="xm-siglist.h ${xm_file}"
4664 mipsel-
*) tm_file
="mips/elfl.h mips/linux.h" ;;
4665 *) tm_file
="mips/elf.h mips/linux.h" ;;
4667 extra_parts
="crtbegin.o crtend.o"
4671 mips
*el-
*-openbsd*) # mips little endian
4672 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
4673 tm_file
=mips
/openbsd.h
4675 mips
*-*-openbsd*) # mips big endian
4676 target_cpu_default
="MASK_GAS|MASK_ABICALLS"
4677 tm_file
=mips
/openbsd-be.h
4679 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
4680 tm_file
="mips/news4.h ${tm_file}"
4681 if test x
$stabs = xyes
; then
4682 tm_file
="${tm_file} dbx.h"
4684 if test x
$gas = xyes
4686 tmake_file
=mips
/t-mips-gas
4688 extra_passes
="mips-tfile mips-tdump"
4690 if test x
$gnu_ld != xyes
4694 xmake_file
=mips
/x-sony
4696 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
4697 # That is based on svr4.
4698 # t-svr4 is not right because this system doesn't use ELF.
4699 tm_file
="mips/news5.h ${tm_file}"
4700 if test x
$stabs = xyes
; then
4701 tm_file
="${tm_file} dbx.h"
4703 xm_file
="xm-siglist.h ${xm_file}"
4705 if test x
$gas = xyes
4707 tmake_file
=mips
/t-mips-gas
4709 extra_passes
="mips-tfile mips-tdump"
4711 if test x
$gnu_ld != xyes
4716 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
4717 tm_file
="mips/svr4-5.h mips/svr4-t.h"
4718 if test x
$stabs = xyes
; then
4719 tm_file
="${tm_file} dbx.h"
4721 xm_file
="xm-siglist.h ${xm_file}"
4723 xmake_file
=mips
/x-sysv
4724 if test x
$gas = xyes
4726 tmake_file
=mips
/t-mips-gas
4727 extra_parts
="crtbegin.o crtend.o"
4729 tmake_file
=mips
/t-mips
4730 extra_passes
="mips-tfile mips-tdump"
4732 if test x
$gnu_ld != xyes
4737 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
4738 tm_file
="mips/ultrix.h ${tm_file}"
4739 if test x
$stabs = xyes
; then
4740 tm_file
="${tm_file} dbx.h"
4742 xmake_file
=mips
/x-ultrix
4743 if test x
$gas = xyes
4745 tmake_file
=mips
/t-mips-gas
4747 tmake_file
=mips
/t-ultrix
4748 extra_passes
="mips-tfile mips-tdump"
4750 if test x
$gnu_ld != xyes
4755 mips-
*-riscos[56789]bsd
*)
4756 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
4757 if test x
$stabs = xyes
; then
4758 tm_file
="${tm_file} dbx.h"
4760 if test x
$gas = xyes
4762 tmake_file
=mips
/t-bsd-gas
4764 tmake_file
=mips
/t-bsd
4765 extra_passes
="mips-tfile mips-tdump"
4767 if test x
$gnu_ld != xyes
4772 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
4773 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4774 if test x
$stabs = xyes
; then
4775 tm_file
="${tm_file} dbx.h"
4777 if test x
$gas = xyes
4779 tmake_file
=mips
/t-bsd-gas
4781 tmake_file
=mips
/t-bsd
4782 extra_passes
="mips-tfile mips-tdump"
4784 if test x
$gnu_ld != xyes
4789 mips-
*-riscos[56789]sysv4
*)
4790 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
4791 if test x
$stabs = xyes
; then
4792 tm_file
="${tm_file} dbx.h"
4794 xm_file
="xm-siglist.h ${xm_file}"
4795 xmake_file
=mips
/x-sysv
4796 if test x
$gas = xyes
4798 tmake_file
=mips
/t-svr4-gas
4800 tmake_file
=mips
/t-svr4
4801 extra_passes
="mips-tfile mips-tdump"
4803 if test x
$gnu_ld != xyes
4808 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
4809 tm_file
="mips/svr4-4.h ${tm_file}"
4810 if test x
$stabs = xyes
; then
4811 tm_file
="${tm_file} dbx.h"
4814 xmake_file
=mips
/x-sysv
4815 if test x
$gas = xyes
4817 tmake_file
=mips
/t-svr4-gas
4819 tmake_file
=mips
/t-svr4
4820 extra_passes
="mips-tfile mips-tdump"
4822 if test x
$gnu_ld != xyes
4827 mips-
*-riscos[56789]sysv
*)
4828 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
4829 if test x
$stabs = xyes
; then
4830 tm_file
="${tm_file} dbx.h"
4833 xmake_file
=mips
/x-sysv
4834 if test x
$gas = xyes
4836 tmake_file
=mips
/t-svr3-gas
4838 tmake_file
=mips
/t-svr3
4839 extra_passes
="mips-tfile mips-tdump"
4841 if test x
$gnu_ld != xyes
4846 mips-
*-sysv* | mips-
*-riscos*sysv
*)
4847 tm_file
="mips/svr3-4.h ${tm_file}"
4848 if test x
$stabs = xyes
; then
4849 tm_file
="${tm_file} dbx.h"
4852 xmake_file
=mips
/x-sysv
4853 if test x
$gas = xyes
4855 tmake_file
=mips
/t-svr3-gas
4857 tmake_file
=mips
/t-svr3
4858 extra_passes
="mips-tfile mips-tdump"
4860 if test x
$gnu_ld != xyes
4865 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4866 tm_file
=mips
/mips-5.h
4867 if test x
$stabs = xyes
; then
4868 tm_file
="${tm_file} dbx.h"
4870 if test x
$gas = xyes
4872 tmake_file
=mips
/t-mips-gas
4874 extra_passes
="mips-tfile mips-tdump"
4876 if test x
$gnu_ld != xyes
4884 tm_file
=mips
/ecoffl.h
4885 if test x
$stabs = xyes
; then
4886 tm_file
="${tm_file} dbx.h"
4888 tmake_file
=mips
/t-ecoff
4891 tm_file
="gofast.h mips/ecoff.h"
4892 if test x
$stabs = xyes
; then
4893 tm_file
="${tm_file} dbx.h"
4895 tmake_file
=mips
/t-ecoff
4898 tm_file
="mips/elfl.h libgloss.h"
4899 tmake_file
=mips
/t-elf
4902 tm_file
="mips/elf.h"
4903 tmake_file
=mips
/t-elf
4906 tm_file
="mips/elfl64.h"
4907 tmake_file
=mips
/t-elf
4909 mips64orionel-
*-elf*)
4910 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
4911 tmake_file
=mips
/t-elf
4914 tm_file
="mips/elf64.h"
4915 tmake_file
=mips
/t-elf
4918 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
4919 tmake_file
=mips
/t-elf
4921 mips64orion-
*-rtems*)
4922 tm_file
="mips/elforion.h mips/elf64.h mips/rtems64.h"
4923 tmake_file
="mips/t-ecoff t-rtems"
4926 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h"
4927 tmake_file
=mips
/t-r3900
4930 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h"
4931 tmake_file
=mips
/t-r3900
4933 mips-
*-*) # Default MIPS RISC-OS 4.0.
4934 if test x
$stabs = xyes
; then
4935 tm_file
="${tm_file} dbx.h"
4937 if test x
$gas = xyes
4939 tmake_file
=mips
/t-mips-gas
4941 extra_passes
="mips-tfile mips-tdump"
4943 if test x
$gnu_ld != xyes
4950 tm_file
="mn10200/mn10200.h"
4951 if test x
$stabs = xyes
4953 tm_file
="${tm_file} dbx.h"
4959 tm_file
="mn10300/mn10300.h"
4960 if test x
$stabs = xyes
4962 tm_file
="${tm_file} dbx.h"
4967 tm_file
=ns32k
/encore.h
4971 tm_file
=ns32k
/sequent.h
4975 tm_file
=ns32k
/tek6100.h
4979 tm_file
=ns32k
/tek6200.h
4982 # This has not been updated to GCC 2.
4985 # xmake_file=ns32k/x-genix
4986 # tm_file=ns32k/genix.h
4990 tm_file
=ns32k
/merlin.h
4994 tm_file
=ns32k
/pc532-mach.h
4998 tm_file
=ns32k
/pc532-min.h
4999 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
5004 tm_file
=ns32k
/netbsd.h
5005 xm_file
="ns32k/xm-netbsd.h ${xm_file}"
5006 # On NetBSD, the headers are already okay, except for math.h.
5010 tm_file
="${tm_file} pdp11/2bsd.h"
5019 xmake_file
=pyr
/x-pyr
5026 xmake_file
=romp
/x-mach
5033 tmake_file
="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
5037 tm_file
=rs6000
/beos.h
5038 xm_file
=rs6000
/xm-beos.h
5039 tmake_file
=rs6000
/t-beos
5040 xmake_file
=rs6000
/x-beos
5042 powerpc-
*-sysv* | powerpc-
*-elf*)
5043 tm_file
=rs6000
/sysv4.h
5044 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5045 xm_defines
="USG POSIX"
5046 extra_headers
=ppc-asm.h
5047 if test x
$gas = xyes
5049 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5051 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5053 xmake_file
=rs6000
/x-sysv4
5056 tm_file
=rs6000
/eabiaix.h
5057 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5058 extra_headers
=ppc-asm.h
5061 tm_file
=rs6000
/eabisim.h
5062 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5063 extra_headers
=ppc-asm.h
5066 tm_file
=rs6000
/eabi.h
5067 if test x
$gas = xyes
5069 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5071 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5073 extra_headers
=ppc-asm.h
5076 tm_file
=rs6000
/rtems.h
5077 if test x
$gas = xyes
5079 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
5081 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
5083 extra_headers
=ppc-asm.h
5085 powerpc-
*-linux-gnulibc1)
5086 tm_file
=rs6000
/linux.h
5087 xm_file
=rs6000
/xm-sysv4.h
5088 out_file
=rs6000
/rs6000.c
5089 if test x
$gas = xyes
5091 tmake_file
="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5093 tmake_file
="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
5096 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5097 extra_headers
=ppc-asm.h
5098 if test x
$enable_threads = xyes
; then
5102 powerpc-
*-linux-gnu*)
5103 tm_file
=rs6000
/linux.h
5104 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5105 xm_defines
="USG ${xm_defines}"
5106 out_file
=rs6000
/rs6000.c
5107 if test x
$gas = xyes
5109 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
5111 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
5114 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5115 extra_headers
=ppc-asm.h
5116 if test x
$enable_threads = xyes
; then
5120 powerpc-wrs-vxworks
*)
5122 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5123 xm_defines
="USG POSIX"
5124 tm_file
=rs6000
/vxppc.h
5125 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5126 extra_headers
=ppc-asm.h
5127 thread_file
='vxworks'
5129 powerpcle-
*-sysv* | powerpcle-
*-elf*)
5130 tm_file
=rs6000
/sysv4le.h
5131 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5132 xm_defines
="USG POSIX"
5133 if test x
$gas = xyes
5135 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5137 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5139 xmake_file
=rs6000
/x-sysv4
5140 extra_headers
=ppc-asm.h
5142 powerpcle-
*-eabisim*)
5143 tm_file
=rs6000
/eabilesim.h
5144 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5145 extra_headers
=ppc-asm.h
5148 tm_file
=rs6000
/eabile.h
5149 if test x
$gas = xyes
5151 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
5153 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5155 extra_headers
=ppc-asm.h
5157 powerpcle-
*-winnt* )
5158 tm_file
=rs6000
/win-nt.h
5159 tmake_file
=rs6000
/t-winnt
5161 if test x
$enable_threads = xyes
; then
5164 extra_headers
=ppc-asm.h
5166 powerpcle-
*-pe | powerpcle-
*-cygwin*)
5167 tm_file
=rs6000
/cygwin.h
5168 xm_file
="rs6000/xm-cygwin.h ${xm_file}"
5169 tmake_file
=rs6000
/t-winnt
5170 xmake_file
=rs6000
/x-cygwin
5172 if test x
$enable_threads = xyes
; then
5176 extra_headers
=ppc-asm.h
5178 powerpcle-
*-solaris2*)
5179 tm_file
=rs6000
/sol2.h
5180 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
5181 xm_defines
="USG POSIX"
5182 if test x
$gas = xyes
5184 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
5186 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
5188 xmake_file
=rs6000
/x-sysv4
5189 extra_headers
=ppc-asm.h
5191 rs6000-ibm-aix3.
[01]*)
5192 tm_file
=rs6000
/aix31.h
5193 xmake_file
=rs6000
/x-aix31
5197 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
5198 tm_file
=rs6000
/aix3newas.h
5199 if test x
$host != x
$target
5201 tmake_file
=rs6000
/t-xnewas
5203 tmake_file
=rs6000
/t-newas
5208 rs6000-ibm-aix4.
[12]* | powerpc-ibm-aix4.
[12]*)
5209 if test "$gnu_ld" = yes
5211 tm_file
=rs6000
/aix41-gld.h
5213 tm_file
=rs6000
/aix41.h
5215 if test x
$host != x
$target
5217 tmake_file
=rs6000
/t-xnewas
5219 tmake_file
=rs6000
/t-newas
5221 xmake_file
=rs6000
/x-aix41
5225 rs6000-ibm-aix4.
[3456789].
* | powerpc-ibm-aix4.
[3456789].
*)
5226 tm_file
=rs6000
/aix43.h
5227 if test x
$host != x
$target
5229 tmake_file
=rs6000
/t-xaix43
5231 tmake_file
=rs6000
/t-aix43
5233 xmake_file
=rs6000
/x-aix43
5237 rs6000-ibm-aix
[56789].
* | powerpc-ibm-aix
[56789].
*)
5238 tm_file
=rs6000
/aix43.h
5239 if test x
$host != x
$target
5241 tmake_file
=rs6000
/t-xaix43
5243 tmake_file
=rs6000
/t-aix43
5245 xmake_file
=rs6000
/x-aix43
5258 tm_file
=rs6000
/mach.h
5259 xm_file
="${xm_file} rs6000/xm-mach.h"
5260 xmake_file
=rs6000
/x-mach
5264 tm_file
=rs6000
/lynx.h
5265 xm_file
=rs6000
/xm-lynx.h
5266 tmake_file
=rs6000
/t-rs6000
5267 xmake_file
=rs6000
/x-lynx
5275 tmake_file
="sh/t-sh t-rtems"
5276 tm_file
=sh
/rtemself.h
5280 tmake_file
="sh/t-sh t-rtems"
5289 xm_file
="xm-alloca.h ${xm_file}"
5292 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
5293 tm_file
=sparc
/vxsparc.h
5294 tmake_file
=sparc
/t-vxsparc
5296 thread_file
='vxworks'
5299 tmake_file
=sparc
/t-sparcbare
5300 tm_file
="sparc/aout.h libgloss.h"
5303 tm_file
=sparc
/netbsd.h
5307 # we need collect2 until our bug is fixed...
5315 tmake_file
=sparc
/t-elf
5316 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
5320 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
5321 xm_file
="${xm_file} sparc/xm-linux.h"
5322 tm_file
=sparc
/linux-aout.h
5326 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
5327 xm_file
="${xm_file} sparc/xm-linux.h"
5329 tm_file
=sparc
/linux.h
5330 tmake_file
="t-linux t-linux-gnulibc1"
5331 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5334 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
5335 xm_file
="${xm_file} sparc/xm-linux.h"
5337 tm_file
=sparc
/linux.h
5338 tmake_file
="t-linux"
5339 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5341 if test x
$enable_threads = xyes
; then
5346 if test x
$gas = xyes
5348 tm_file
=sparc
/lynx.h
5350 tm_file
=sparc
/lynx-ng.h
5352 xm_file
=sparc
/xm-lynx.h
5353 tmake_file
=sparc
/t-sunos41
5357 tmake_file
="sparc/t-sparcbare t-rtems"
5358 tm_file
=sparc
/rtems.h
5360 sparcv9-
*-solaris2*)
5361 tm_file
=sparc
/sol2-sld-64.h
5362 xm_file
="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
5363 xm_defines
="USG POSIX"
5364 tmake_file
="sparc/t-sol2 sparc/t-sol2-64"
5365 xmake_file
=sparc
/x-sysv4
5366 extra_parts
="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
5368 if test x
${enable_threads} = x
; then
5369 enable_threads
=$have_pthread_h
5370 if test x
${enable_threads} = x
; then
5371 enable_threads
=$have_thread_h
5374 if test x
${enable_threads} = xyes
; then
5375 if test x
${have_pthread_h} = xyes
; then
5378 thread_file
='solaris'
5382 sparc-hal-solaris2
*)
5383 xm_file
=sparc
/xm-sol2.h
5384 tm_file
="sparc/sol2.h sparc/hal.h"
5385 tmake_file
="sparc/t-halos sparc/t-sol2"
5386 xmake_file
=sparc
/x-sysv4
5387 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
5391 if test x
$gnu_ld = xyes
5393 tm_file
=sparc
/sol2.h
5395 tm_file
=sparc
/sol2-sld.h
5397 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5398 xm_defines
="USG POSIX"
5399 tmake_file
=sparc
/t-sol2
5400 xmake_file
=sparc
/x-sysv4
5401 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
5410 if test x
${enable_threads} = x
; then
5411 enable_threads
=$have_pthread_h
5412 if test x
${enable_threads} = x
; then
5413 enable_threads
=$have_thread_h
5416 if test x
${enable_threads} = xyes
; then
5417 if test x
${have_pthread_h} = xyes
; then
5420 thread_file
='solaris'
5425 tm_file
=sparc
/sunos4.h
5426 tmake_file
=sparc
/t-sunos40
5430 tm_file
=sparc
/sunos4.h
5431 tmake_file
=sparc
/t-sunos41
5433 if test x
$gas = xyes
; then
5434 tm_file
="${tm_file} sparc/sun4gas.h"
5438 tm_file
=sparc
/sun4o3.h
5442 tm_file
=sparc
/sysv4.h
5443 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
5444 xm_defines
="USG POSIX"
5446 xmake_file
=sparc
/x-sysv4
5447 extra_parts
="crtbegin.o crtend.o"
5450 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
5451 xm_defines
="USG POSIX"
5452 tm_file
=sparc
/vxsim.h
5453 tmake_file
=sparc
/t-vxsparc
5454 xmake_file
=sparc
/x-sysv4
5457 tm_file
="sparc/splet.h libgloss.h"
5458 tmake_file
=sparc
/t-splet
5461 tm_file
="sparc/litecoff.h libgloss.h"
5462 tmake_file
=sparc
/t-sparclite
5465 tm_file
="sparc/lite.h aoutos.h libgloss.h"
5466 tmake_file
=sparc
/t-sparclite
5469 tmake_file
=sparc
/t-sp64
5470 tm_file
=sparc
/sp64-aout.h
5473 tmake_file
=sparc
/t-sp64
5474 tm_file
=sparc
/sp64-elf.h
5475 extra_parts
="crtbegin.o crtend.o"
5477 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
5478 tmake_file
="t-linux sparc/t-linux64"
5479 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
5480 tm_file
=sparc
/linux64.h
5482 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
5485 # This hasn't been upgraded to GCC 2.
5486 # tahoe-harris-*) # Harris tahoe, using COFF.
5487 # tm_file=tahoe/harris.h
5489 # tahoe-*-bsd*) # tahoe running BSD
5491 thumb-
*-coff* | thumbel-
*-coff*)
5493 out_file
=arm
/thumb.c
5494 xm_file
=arm
/xm-thumb.h
5495 md_file
=arm
/thumb.md
5496 tmake_file
=arm
/t-thumb
5500 out_file
=arm
/thumb.c
5501 xm_file
=arm
/xm-thumb.h
5502 md_file
=arm
/thumb.md
5503 tmake_file
=arm
/t-thumb
5504 thread_file
='vxworks'
5506 # This hasn't been upgraded to GCC 2.
5513 tm_file
="v850/v850.h"
5514 xm_file
="v850/xm-v850.h"
5515 tmake_file
=v850
/t-v850
5516 if test x
$stabs = xyes
5518 tm_file
="${tm_file} dbx.h"
5522 vax-
*-bsd*) # vaxen running BSD
5526 vax-
*-sysv*) # vaxen running system V
5527 tm_file
="${tm_file} vax/vaxv.h"
5532 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
5537 tmake_file
="${tmake_file} vax/t-openbsd"
5539 vax-
*-ultrix*) # vaxen running ultrix
5540 tm_file
="${tm_file} vax/ultrix.h"
5544 vax-
*-vms*) # vaxen running VMS
5545 xm_file
=vax
/xm-vms.h
5549 vax-
*-*) # vax default entry
5553 xm_file
="${xm_file} xm-svr3"
5557 echo "Configuration $machine not supported" 1>&2
5564 ;; # Existing GNU/Linux systems do not use the GNU setup.
5566 # On the GNU system, the setup is just about the same on
5567 # each different CPU. The specific machines that GNU
5568 # supports are matched above and just set $cpu_type.
5569 xm_file
="xm-gnu.h ${xm_file}"
5570 tm_file
=${cpu_type}/gnu.h
5571 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
5572 # GNU always uses ELF.
5574 # GNU tools are the only tools.
5577 xmake_file
=x-linux
# These details are the same as Linux.
5578 tmake_file
=t-gnu
# These are not.
5581 xmake_try_sysv
=x-sysv
5582 install_headers_dir
=install-headers-cpio
5585 install_headers_dir
=install-headers-cpio
5589 # Distinguish i[34567]86
5590 # Also, do not run mips-tfile on MIPS if using gas.
5591 # Process --with-cpu= for PowerPC/rs6000
5592 target_cpu_default2
=
5595 target_cpu_default2
=1
5598 case $target_alias in
5600 target_cpu_default2
=4
5603 target_cpu_default2
=2
5607 i686-
*-* | i786-
*-*)
5608 target_cpu_default2
=3
5613 target_cpu_default2
="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX"
5616 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
5619 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
5622 target_cpu_default2
="MASK_CPU_EV5"
5626 if test x
$gas = xyes
5628 if test "$target_cpu_default2" = ""
5630 target_cpu_default2
="MASK_GAS"
5632 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
5637 case "x$with_cpu" in
5640 target_cpu_default2
="TARGET_CPU_generic"
5643 # Distinguish cores, and major variants
5644 # arm7m doesn't exist, but D & I don't affect code
5645 xarm23678 | xarm250 | xarm67010 \
5646 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
5647 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
5648 | xstrongarm | xstrongarm110 | xstrongarm1100
)
5649 target_cpu_default2
="TARGET_CPU_$with_cpu"
5653 echo "--with-cpu must be passed a value" 1>&2
5658 if test x
$pass2done = xyes
5660 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5667 mips
*-*-ecoff* | mips
*-*-elf*)
5668 if test x
$gas = xyes
5670 if test x
$gnu_ld = xyes
5672 target_cpu_default2
=20
5674 target_cpu_default2
=16
5679 if test x
$gas = xyes
5681 target_cpu_default2
=16
5684 powerpc
*-*-* | rs6000-
*-*)
5685 case "x$with_cpu" in
5689 xcommon | xpower | xpower2 | xpowerpc | xrios \
5690 | xrios1 | xrios2 | xrsc | xrsc1 \
5691 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
5692 | xec603e | x740 | x750 | x401 \
5693 | x403 | x505 | x801 | x821 | x823 | x860
)
5694 target_cpu_default2
="\"$with_cpu\""
5698 echo "--with-cpu must be passed a value" 1>&2
5703 if test x
$pass2done = xyes
5705 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5712 case ".$with_cpu" in
5714 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
5716 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9
)
5717 target_cpu_default2
="TARGET_CPU_$with_cpu"
5720 if test x
$pass2done = xyes
5722 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5730 if test "$target_cpu_default2" != ""
5732 if test "$target_cpu_default" != ""
5734 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
5736 target_cpu_default
=$target_cpu_default2
5740 # No need for collect2 if we have the GNU linker.
5741 # Actually, there is now; GNU ld doesn't handle the EH info or
5742 # collecting for shared libraries.
5749 # Save data on machine being used to compile GCC in build_xm_file.
5750 # Save data on host machine in vars host_xm_file and host_xmake_file.
5751 if test x
$pass1done = x
5753 if test x
"$xm_file" = x
5754 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
5755 else build_xm_file
=$xm_file
5757 build_xm_defines
=$xm_defines
5758 build_install_headers_dir
=$install_headers_dir
5759 build_exeext
=$exeext
5762 if test x
$pass2done = x
5764 if test x
"$xm_file" = x
5765 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
5766 else host_xm_file
=$xm_file
5768 host_xm_defines
=$xm_defines
5769 if test x
"$xmake_file" = x
5770 then xmake_file
=$cpu_type/x-
$cpu_type
5772 host_xmake_file
="$xmake_file"
5773 host_truncate_target
=$truncate_target
5774 host_extra_gcc_objs
=$extra_gcc_objs
5775 host_extra_objs
=$extra_host_objs
5782 extra_objs
="${host_extra_objs} ${extra_objs}"
5784 # Default the target-machine variables that were not explicitly set.
5785 if test x
"$tm_file" = x
5786 then tm_file
=$cpu_type/$cpu_type.h
; fi
5788 if test x
$extra_headers = x
5789 then extra_headers
=; fi
5791 if test x
"$xm_file" = x
5792 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
5794 if test x
$md_file = x
5795 then md_file
=$cpu_type/$cpu_type.md
; fi
5797 if test x
$out_file = x
5798 then out_file
=$cpu_type/$cpu_type.c
; fi
5800 if test x
"$tmake_file" = x
5801 then tmake_file
=$cpu_type/t-
$cpu_type
5804 if test x
"$dwarf2" = xyes
5805 then tm_file
="tm-dwarf2.h $tm_file"
5808 if test x
$float_format = x
5809 then float_format
=i64
5812 if test $float_format = none
5813 then float_h_file
=Makefile.
in
5814 else float_h_file
=float-
$float_format.h
5817 if test x
$enable_haifa = x
5820 alpha
*-* | hppa
*-* | powerpc
*-* | rs6000-
* |
*sparc
*-* | m32r
*-*)
5825 # Handle cpp installation.
5826 if [ x
$enable_cpp != x
]
5828 tmake_file
="$tmake_file t-install-cpp"
5831 # Say what files are being used for the output code and MD file.
5832 echo "Using \`$srcdir/config/$out_file' to output insns."
5833 echo "Using \`$srcdir/config/$md_file' as machine description file."
5836 for f
in $tm_file; do
5839 if test $count = ax
; then
5840 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5842 echo "Using the following target machine macro files:"
5843 for f
in $tm_file; do
5844 echo " $srcdir/config/$f"
5849 for f
in $host_xm_file; do
5852 if test $count = ax
; then
5853 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5855 echo "Using the following host machine macro files:"
5856 for f
in $host_xm_file; do
5857 echo " $srcdir/config/$f"
5861 if test "$host_xm_file" != "$build_xm_file"; then
5863 for f
in $build_xm_file; do
5866 if test $count = ax
; then
5867 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5869 echo "Using the following build machine macro files:"
5870 for f
in $build_xm_file; do
5871 echo " $srcdir/config/$f"
5876 if test x
$thread_file = x
; then
5877 if test x
$target_thread_file != x
; then
5878 thread_file
=$target_thread_file
5880 thread_file
='single'
5884 # Set up the header files.
5885 # $links is the list of header files to create.
5886 # $vars is the list of shell variables with file names to include.
5887 # auto-host.h is the file containing items generated by autoconf and is
5888 # the first file included by config.h.
5890 host_xm_file
="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
5892 # If host=build, it is correct to have hconfig include auto-host.h
5893 # as well. If host!=build, we are in error and need to do more
5894 # work to find out the build config parameters.
5895 if test x
$host = x
$build
5897 build_xm_file
="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
5899 # We create a subdir, then run autoconf in the subdir.
5900 # To prevent recursion we set host and build for the new
5901 # invocation of configure to the build for this invocation
5908 /*) realsrcdir
=${srcdir};;
5909 *) realsrcdir
=..
/${srcdir};;
5911 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
5912 --target=$target --host=$build --build=$build
5914 # We just finished tests for the build machine, so rename
5915 # the file auto-build.h in the gcc directory.
5916 mv auto-host.h ..
/auto-build.h
5919 build_xm_file
="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
5922 xm_file
="gansidecl.h ${xm_file}"
5923 tm_file
="gansidecl.h ${tm_file}"
5925 vars
="host_xm_file tm_file xm_file build_xm_file"
5926 links
="config.h tm.h tconfig.h hconfig.h"
5927 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
5930 if test -f config.status
; then mv -f config.status config.bak
; fi
5933 while test -n "$vars"
5935 set $vars; var
=$1; shift; vars
=$
*
5936 set $links; link
=$1; shift; links
=$
*
5937 set $defines; define
=$1; shift; defines
=$
*
5941 # Define TARGET_CPU_DEFAULT if the system wants one.
5942 # This substitutes for lots of *.h files.
5943 if test "$target_cpu_default" != "" -a $link = tm.h
5945 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
5948 for file in `eval echo '$'$var`; do
5953 echo '#ifdef IN_GCC' >>$link
5956 echo "#include \"$file\"" >>$link
5961 echo '#endif' >>$link
5966 for def
in `eval echo '$'$define`; do
5967 echo "#ifndef $def" >>$link
5968 echo "#define $def" >>$link
5969 echo "#endif" >>$link
5973 # Truncate the target if necessary
5974 if test x
$host_truncate_target != x
; then
5975 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
5978 # Get the version trigger filename from the toplevel
5979 if test "${with_gcc_version_trigger+set}" = set; then
5980 gcc_version_trigger
=$with_gcc_version_trigger
5982 gcc_version_trigger
=${srcdir}/version.c
5984 gcc_version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
5986 # Internationalization
5988 VERSION
="$gcc_version"
5989 cat >> confdefs.h
<<EOF
5990 #define PACKAGE "$PACKAGE"
5993 cat >> confdefs.h
<<EOF
5994 #define VERSION "$VERSION"
6002 # NLS support is still experimental, so disable it by default for now.
6003 # Check whether --enable-nls or --disable-nls was given.
6004 if test "${enable_nls+set}" = set; then
6005 enableval
="$enable_nls"
6013 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
6014 echo "configure:6015: checking for strerror in -lcposix" >&5
6015 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
6016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6017 echo $ac_n "(cached) $ac_c" 1>&6
6019 ac_save_LIBS
="$LIBS"
6020 LIBS
="-lcposix $LIBS"
6021 cat > conftest.
$ac_ext <<EOF
6022 #line 6023 "configure"
6023 #include "confdefs.h"
6024 /* Override any gcc2 internal prototype to avoid an error. */
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6033 if { (eval echo configure
:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6035 eval "ac_cv_lib_$ac_lib_var=yes"
6037 echo "configure: failed program was:" >&5
6038 cat conftest.
$ac_ext >&5
6040 eval "ac_cv_lib_$ac_lib_var=no"
6043 LIBS
="$ac_save_LIBS"
6046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6047 echo "$ac_t""yes" 1>&6
6048 LIBS
="$LIBS -lcposix"
6050 echo "$ac_t""no" 1>&6
6055 echo $ac_n "checking for working const""... $ac_c" 1>&6
6056 echo "configure:6057: checking for working const" >&5
6057 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6060 cat > conftest.
$ac_ext <<EOF
6061 #line 6062 "configure"
6062 #include "confdefs.h"
6066 /* Ultrix mips cc rejects this. */
6067 typedef int charset[2]; const charset x;
6068 /* SunOS 4.1.1 cc rejects this. */
6069 char const *const *ccp;
6071 /* NEC SVR4.0.2 mips cc rejects this. */
6072 struct point {int x, y;};
6073 static struct point const zero = {0,0};
6074 /* AIX XL C 1.02.0.0 rejects this.
6075 It does not let you subtract one const X* pointer from another in an arm
6076 of an if-expression whose if-part is not a constant expression */
6077 const char *g = "string";
6078 ccp = &g + (g ? g-g : 0);
6079 /* HPUX 7.0 cc rejects these. */
6082 ccp = (char const *const *) p;
6083 { /* SCO 3.2v4 cc rejects this. */
6085 char const *s = 0 ? (char *) 0 : (char const *) 0;
6089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6091 const int *foo = &x[0];
6094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6095 typedef const int *iptr;
6099 { /* AIX XL C 1.02.0.0 rejects this saying
6100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6101 struct s { int j; const int *ap[3]; };
6102 struct s *b; b->j = 5;
6104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6110 if { (eval echo configure
:6111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6114 echo "configure: failed program was:" >&5
6115 cat conftest.
$ac_ext >&5
6122 echo "$ac_t""$ac_cv_c_const" 1>&6
6123 if test $ac_cv_c_const = no
; then
6124 cat >> confdefs.h
<<\EOF
6130 echo $ac_n "checking for inline""... $ac_c" 1>&6
6131 echo "configure:6132: checking for inline" >&5
6132 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6133 echo $ac_n "(cached) $ac_c" 1>&6
6136 for ac_kw
in inline __inline__ __inline
; do
6137 cat > conftest.
$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6145 if { (eval echo configure
:6146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6147 ac_cv_c_inline
=$ac_kw; break
6149 echo "configure: failed program was:" >&5
6150 cat conftest.
$ac_ext >&5
6157 echo "$ac_t""$ac_cv_c_inline" 1>&6
6158 case "$ac_cv_c_inline" in
6160 no
) cat >> confdefs.h
<<\EOF
6164 *) cat >> confdefs.h
<<EOF
6165 #define inline $ac_cv_c_inline
6170 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6171 echo "configure:6172: checking for off_t" >&5
6172 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6173 echo $ac_n "(cached) $ac_c" 1>&6
6175 cat > conftest.
$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 #include <sys/types.h>
6184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6185 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6187 ac_cv_type_off_t
=yes
6195 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6196 if test $ac_cv_type_off_t = no
; then
6197 cat >> confdefs.h
<<\EOF
6203 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6204 echo "configure:6205: checking for size_t" >&5
6205 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6208 cat > conftest.
$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 #include <sys/types.h>
6217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6220 ac_cv_type_size_t
=yes
6223 ac_cv_type_size_t
=no
6228 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6229 if test $ac_cv_type_size_t = no
; then
6230 cat >> confdefs.h
<<\EOF
6231 #define size_t unsigned
6236 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6237 # for constant arguments. Useless!
6238 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6239 echo "configure:6240: checking for working alloca.h" >&5
6240 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6241 echo $ac_n "(cached) $ac_c" 1>&6
6243 cat > conftest.
$ac_ext <<EOF
6244 #line 6245 "configure"
6245 #include "confdefs.h"
6248 char *p = alloca(2 * sizeof(int));
6251 if { (eval echo configure
:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6253 ac_cv_header_alloca_h
=yes
6255 echo "configure: failed program was:" >&5
6256 cat conftest.
$ac_ext >&5
6258 ac_cv_header_alloca_h
=no
6263 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6264 if test $ac_cv_header_alloca_h = yes; then
6265 cat >> confdefs.h
<<\EOF
6266 #define HAVE_ALLOCA_H 1
6271 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6272 echo "configure:6273: checking for alloca" >&5
6273 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6276 cat > conftest.
$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6281 # define alloca __builtin_alloca
6284 # include <malloc.h>
6285 # define alloca _alloca
6288 # include <alloca.h>
6293 # ifndef alloca /* predefined by HP cc +Olibcalls */
6302 char *p = (char *) alloca(1);
6305 if { (eval echo configure
:6306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6307 ac_cv_func_alloca_works
=yes
6309 echo "configure: failed program was:" >&5
6310 cat conftest.
$ac_ext >&5
6312 ac_cv_func_alloca_works
=no
6317 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6318 if test $ac_cv_func_alloca_works = yes; then
6319 cat >> confdefs.h
<<\EOF
6320 #define HAVE_ALLOCA 1
6325 if test $ac_cv_func_alloca_works = no
; then
6326 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6327 # that cause trouble. Some versions do not even contain alloca or
6328 # contain a buggy version. If you still want to use their alloca,
6329 # use ar to extract alloca.o from them instead of compiling alloca.c.
6330 ALLOCA
=alloca.
${ac_objext}
6331 cat >> confdefs.h
<<\EOF
6336 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6337 echo "configure:6338: checking whether alloca needs Cray hooks" >&5
6338 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.
$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 #if defined(CRAY) && ! defined(CRAY2)
6351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6352 egrep "webecray" >/dev
/null
2>&1; then
6363 echo "$ac_t""$ac_cv_os_cray" 1>&6
6364 if test $ac_cv_os_cray = yes; then
6365 for ac_func
in _getb67 GETB67 getb67
; do
6366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6367 echo "configure:6368: checking for $ac_func" >&5
6368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6369 echo $ac_n "(cached) $ac_c" 1>&6
6371 cat > conftest.
$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6374 /* System header to define __stub macros and hopefully few prototypes,
6375 which can conflict with char $ac_func(); below. */
6377 /* Override any gcc2 internal prototype to avoid an error. */
6378 /* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6385 /* The GNU C library defines this for functions which it implements
6386 to always fail with ENOSYS. Some functions are actually named
6387 something starting with __ and the normal name is an alias. */
6388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6396 if { (eval echo configure
:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6398 eval "ac_cv_func_$ac_func=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.
$ac_ext >&5
6403 eval "ac_cv_func_$ac_func=no"
6408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6409 echo "$ac_t""yes" 1>&6
6410 cat >> confdefs.h
<<EOF
6411 #define CRAY_STACKSEG_END $ac_func
6416 echo "$ac_t""no" 1>&6
6422 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6423 echo "configure:6424: checking stack direction for C alloca" >&5
6424 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 if test "$cross_compiling" = yes; then
6428 ac_cv_c_stack_direction
=0
6430 cat > conftest.
$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6433 find_stack_direction ()
6435 static char *addr = 0;
6440 return find_stack_direction ();
6443 return (&dummy > addr) ? 1 : -1;
6447 exit (find_stack_direction() < 0);
6450 if { (eval echo configure
:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6452 ac_cv_c_stack_direction
=1
6454 echo "configure: failed program was:" >&5
6455 cat conftest.
$ac_ext >&5
6457 ac_cv_c_stack_direction
=-1
6464 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6465 cat >> confdefs.h
<<EOF
6466 #define STACK_DIRECTION $ac_cv_c_stack_direction
6471 for ac_hdr
in unistd.h
6473 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6475 echo "configure:6476: checking for $ac_hdr" >&5
6476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6479 cat > conftest.
$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6484 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6485 { (eval echo configure
:6486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6486 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6487 if test -z "$ac_err"; then
6489 eval "ac_cv_header_$ac_safe=yes"
6492 echo "configure: failed program was:" >&5
6493 cat conftest.
$ac_ext >&5
6495 eval "ac_cv_header_$ac_safe=no"
6499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6500 echo "$ac_t""yes" 1>&6
6501 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6502 cat >> confdefs.h
<<EOF
6503 #define $ac_tr_hdr 1
6507 echo "$ac_t""no" 1>&6
6511 for ac_func
in getpagesize
6513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6514 echo "configure:6515: checking for $ac_func" >&5
6515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6518 cat > conftest.
$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* System header to define __stub macros and hopefully few prototypes,
6522 which can conflict with char $ac_func(); below. */
6524 /* Override any gcc2 internal prototype to avoid an error. */
6525 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6532 /* The GNU C library defines this for functions which it implements
6533 to always fail with ENOSYS. Some functions are actually named
6534 something starting with __ and the normal name is an alias. */
6535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6543 if { (eval echo configure
:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6545 eval "ac_cv_func_$ac_func=yes"
6547 echo "configure: failed program was:" >&5
6548 cat conftest.
$ac_ext >&5
6550 eval "ac_cv_func_$ac_func=no"
6555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6557 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6558 cat >> confdefs.h
<<EOF
6559 #define $ac_tr_func 1
6563 echo "$ac_t""no" 1>&6
6567 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6568 echo "configure:6569: checking for working mmap" >&5
6569 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6572 if test "$cross_compiling" = yes; then
6573 ac_cv_func_mmap_fixed_mapped
=no
6575 cat > conftest.
$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6579 /* Thanks to Mike Haertel and Jim Avera for this test.
6580 Here is a matrix of mmap possibilities:
6581 mmap private not fixed
6582 mmap private fixed at somewhere currently unmapped
6583 mmap private fixed at somewhere already mapped
6584 mmap shared not fixed
6585 mmap shared fixed at somewhere currently unmapped
6586 mmap shared fixed at somewhere already mapped
6587 For private mappings, we should verify that changes cannot be read()
6588 back from the file, nor mmap's back from the file at a different
6589 address. (There have been systems where private was not correctly
6590 implemented like the infamous i386 svr4.0, and systems where the
6591 VM page cache was not coherent with the filesystem buffer cache
6592 like early versions of FreeBSD and possibly contemporary NetBSD.)
6593 For shared mappings, we should conversely verify that changes get
6594 propogated back to all the places they're supposed to be.
6596 Grep wants private fixed already mapped.
6597 The main things grep needs to know about mmap are:
6598 * does it exist and is it safe to write into the mmap'd area
6599 * how to use it (BSD variants) */
6600 #include <sys/types.h>
6602 #include <sys/mman.h>
6604 /* This mess was copied from the GNU getpagesize.h. */
6605 #ifndef HAVE_GETPAGESIZE
6606 # ifdef HAVE_UNISTD_H
6607 # include <unistd.h>
6610 /* Assume that all systems that can run configure have sys/param.h. */
6611 # ifndef HAVE_SYS_PARAM_H
6612 # define HAVE_SYS_PARAM_H 1
6615 # ifdef _SC_PAGESIZE
6616 # define getpagesize() sysconf(_SC_PAGESIZE)
6617 # else /* no _SC_PAGESIZE */
6618 # ifdef HAVE_SYS_PARAM_H
6619 # include <sys/param.h>
6620 # ifdef EXEC_PAGESIZE
6621 # define getpagesize() EXEC_PAGESIZE
6622 # else /* no EXEC_PAGESIZE */
6624 # define getpagesize() NBPG * CLSIZE
6627 # endif /* no CLSIZE */
6628 # else /* no NBPG */
6630 # define getpagesize() NBPC
6631 # else /* no NBPC */
6633 # define getpagesize() PAGESIZE
6634 # endif /* PAGESIZE */
6635 # endif /* no NBPC */
6636 # endif /* no NBPG */
6637 # endif /* no EXEC_PAGESIZE */
6638 # else /* no HAVE_SYS_PARAM_H */
6639 # define getpagesize() 8192 /* punt totally */
6640 # endif /* no HAVE_SYS_PARAM_H */
6641 # endif /* no _SC_PAGESIZE */
6643 #endif /* no HAVE_GETPAGESIZE */
6646 extern "C" { void *malloc(unsigned); }
6654 char *data, *data2, *data3;
6658 pagesize = getpagesize();
6661 * First, make a file with some known garbage in it.
6663 data = malloc(pagesize);
6666 for (i = 0; i < pagesize; ++i)
6667 *(data + i) = rand();
6669 fd = creat("conftestmmap", 0600);
6672 if (write(fd, data, pagesize) != pagesize)
6677 * Next, try to mmap the file at a fixed address which
6678 * already has something else allocated at it. If we can,
6679 * also make sure that we see the same garbage.
6681 fd = open("conftestmmap", O_RDWR);
6684 data2 = malloc(2 * pagesize);
6687 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6688 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6689 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6691 for (i = 0; i < pagesize; ++i)
6692 if (*(data + i) != *(data2 + i))
6696 * Finally, make sure that changes to the mapped area
6697 * do not percolate back to the file as seen by read().
6698 * (This is a bug on some variants of i386 svr4.0.)
6700 for (i = 0; i < pagesize; ++i)
6701 *(data2 + i) = *(data2 + i) + 1;
6702 data3 = malloc(pagesize);
6705 if (read(fd, data3, pagesize) != pagesize)
6707 for (i = 0; i < pagesize; ++i)
6708 if (*(data + i) != *(data3 + i))
6711 unlink("conftestmmap");
6716 if { (eval echo configure
:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6718 ac_cv_func_mmap_fixed_mapped
=yes
6720 echo "configure: failed program was:" >&5
6721 cat conftest.
$ac_ext >&5
6723 ac_cv_func_mmap_fixed_mapped
=no
6730 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6731 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6732 cat >> confdefs.h
<<\EOF
6739 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6740 unistd.h sys
/param.h
6742 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6744 echo "configure:6745: checking for $ac_hdr" >&5
6745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 cat > conftest.
$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6753 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6754 { (eval echo configure
:6755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6755 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6756 if test -z "$ac_err"; then
6758 eval "ac_cv_header_$ac_safe=yes"
6761 echo "configure: failed program was:" >&5
6762 cat conftest.
$ac_ext >&5
6764 eval "ac_cv_header_$ac_safe=no"
6768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6770 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6771 cat >> confdefs.h
<<EOF
6772 #define $ac_tr_hdr 1
6776 echo "$ac_t""no" 1>&6
6780 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6781 strdup __argz_count __argz_stringify __argz_next
6783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6784 echo "configure:6785: checking for $ac_func" >&5
6785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6788 cat > conftest.
$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 /* System header to define __stub macros and hopefully few prototypes,
6792 which can conflict with char $ac_func(); below. */
6794 /* Override any gcc2 internal prototype to avoid an error. */
6795 /* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6802 /* The GNU C library defines this for functions which it implements
6803 to always fail with ENOSYS. Some functions are actually named
6804 something starting with __ and the normal name is an alias. */
6805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6813 if { (eval echo configure
:6814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6815 eval "ac_cv_func_$ac_func=yes"
6817 echo "configure: failed program was:" >&5
6818 cat conftest.
$ac_ext >&5
6820 eval "ac_cv_func_$ac_func=no"
6825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6828 cat >> confdefs.h
<<EOF
6829 #define $ac_tr_func 1
6833 echo "$ac_t""no" 1>&6
6838 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6839 for ac_func
in stpcpy
6841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6842 echo "configure:6843: checking for $ac_func" >&5
6843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6846 cat > conftest.
$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 /* System header to define __stub macros and hopefully few prototypes,
6850 which can conflict with char $ac_func(); below. */
6852 /* Override any gcc2 internal prototype to avoid an error. */
6853 /* We use char because int might match the return type of a gcc2
6854 builtin and then its argument prototype would still apply. */
6860 /* The GNU C library defines this for functions which it implements
6861 to always fail with ENOSYS. Some functions are actually named
6862 something starting with __ and the normal name is an alias. */
6863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6871 if { (eval echo configure
:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6873 eval "ac_cv_func_$ac_func=yes"
6875 echo "configure: failed program was:" >&5
6876 cat conftest.
$ac_ext >&5
6878 eval "ac_cv_func_$ac_func=no"
6883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6884 echo "$ac_t""yes" 1>&6
6885 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6886 cat >> confdefs.h
<<EOF
6887 #define $ac_tr_func 1
6891 echo "$ac_t""no" 1>&6
6896 if test "${ac_cv_func_stpcpy}" = "yes"; then
6897 cat >> confdefs.h
<<\EOF
6898 #define HAVE_STPCPY 1
6903 if test $ac_cv_header_locale_h = yes; then
6904 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6905 echo "configure:6906: checking for LC_MESSAGES" >&5
6906 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 cat > conftest.
$ac_ext <<EOF
6910 #line 6911 "configure"
6911 #include "confdefs.h"
6917 if { (eval echo configure
:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6919 am_cv_val_LC_MESSAGES
=yes
6921 echo "configure: failed program was:" >&5
6922 cat conftest.
$ac_ext >&5
6924 am_cv_val_LC_MESSAGES
=no
6929 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
6930 if test $am_cv_val_LC_MESSAGES = yes; then
6931 cat >> confdefs.h
<<\EOF
6932 #define HAVE_LC_MESSAGES 1
6937 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
6938 echo "configure:6939: checking whether NLS is requested" >&5
6939 # Check whether --enable-nls or --disable-nls was given.
6940 if test "${enable_nls+set}" = set; then
6941 enableval
="$enable_nls"
6947 echo "$ac_t""$USE_NLS" 1>&6
6950 USE_INCLUDED_LIBINTL
=no
6952 if test "$USE_NLS" = "yes"; then
6953 cat >> confdefs.h
<<\EOF
6954 #define ENABLE_NLS 1
6957 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
6958 echo "configure:6959: checking whether included gettext is requested" >&5
6959 # Check whether --with-included-gettext or --without-included-gettext was given.
6960 if test "${with_included_gettext+set}" = set; then
6961 withval
="$with_included_gettext"
6962 nls_cv_force_use_gnu_gettext
=$withval
6964 nls_cv_force_use_gnu_gettext
=no
6967 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6969 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6970 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6972 nls_cv_header_libgt
=
6975 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6976 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6977 echo "configure:6978: checking for libintl.h" >&5
6978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6979 echo $ac_n "(cached) $ac_c" 1>&6
6981 cat > conftest.
$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6984 #include <libintl.h>
6986 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6987 { (eval echo configure
:6988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6988 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6989 if test -z "$ac_err"; then
6991 eval "ac_cv_header_$ac_safe=yes"
6994 echo "configure: failed program was:" >&5
6995 cat conftest.
$ac_ext >&5
6997 eval "ac_cv_header_$ac_safe=no"
7001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7002 echo "$ac_t""yes" 1>&6
7003 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
7004 echo "configure:7005: checking for gettext in libc" >&5
7005 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7008 cat > conftest.
$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 #include <libintl.h>
7013 return (int) gettext ("")
7016 if { (eval echo configure
:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7018 gt_cv_func_gettext_libc
=yes
7020 echo "configure: failed program was:" >&5
7021 cat conftest.
$ac_ext >&5
7023 gt_cv_func_gettext_libc
=no
7028 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
7030 if test "$gt_cv_func_gettext_libc" != "yes"; then
7031 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
7032 echo "configure:7033: checking for bindtextdomain in -lintl" >&5
7033 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
7034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 ac_save_LIBS
="$LIBS"
7039 cat > conftest.
$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 /* Override any gcc2 internal prototype to avoid an error. */
7043 /* We use char because int might match the return type of a gcc2
7044 builtin and then its argument prototype would still apply. */
7045 char bindtextdomain();
7051 if { (eval echo configure
:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7053 eval "ac_cv_lib_$ac_lib_var=yes"
7055 echo "configure: failed program was:" >&5
7056 cat conftest.
$ac_ext >&5
7058 eval "ac_cv_lib_$ac_lib_var=no"
7061 LIBS
="$ac_save_LIBS"
7064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7065 echo "$ac_t""yes" 1>&6
7066 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
7067 echo "configure:7068: checking for gettext in libintl" >&5
7068 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7071 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
7072 echo "configure:7073: checking for gettext in -lintl" >&5
7073 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
7074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6
7077 ac_save_LIBS
="$LIBS"
7079 cat > conftest.
$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7091 if { (eval echo configure
:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7093 eval "ac_cv_lib_$ac_lib_var=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.
$ac_ext >&5
7098 eval "ac_cv_lib_$ac_lib_var=no"
7101 LIBS
="$ac_save_LIBS"
7104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7105 echo "$ac_t""yes" 1>&6
7106 gt_cv_func_gettext_libintl
=yes
7108 echo "$ac_t""no" 1>&6
7109 gt_cv_func_gettext_libintl
=no
7114 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
7116 echo "$ac_t""no" 1>&6
7121 if test "$gt_cv_func_gettext_libc" = "yes" \
7122 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
7123 cat >> confdefs.h
<<\EOF
7124 #define HAVE_GETTEXT 1
7127 # Extract the first word of "msgfmt", so it can be a program name with args.
7128 set dummy msgfmt
; ac_word
=$2
7129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7130 echo "configure:7131: checking for $ac_word" >&5
7131 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7136 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7139 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7140 for ac_dir
in $PATH; do
7141 test -z "$ac_dir" && ac_dir
=.
7142 if test -f $ac_dir/$ac_word; then
7143 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7144 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7150 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
7154 MSGFMT
="$ac_cv_path_MSGFMT"
7155 if test -n "$MSGFMT"; then
7156 echo "$ac_t""$MSGFMT" 1>&6
7158 echo "$ac_t""no" 1>&6
7160 if test "$MSGFMT" != "no"; then
7161 for ac_func
in dcgettext
7163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7164 echo "configure:7165: checking for $ac_func" >&5
7165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7168 cat > conftest.
$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7171 /* System header to define __stub macros and hopefully few prototypes,
7172 which can conflict with char $ac_func(); below. */
7174 /* Override any gcc2 internal prototype to avoid an error. */
7175 /* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7182 /* The GNU C library defines this for functions which it implements
7183 to always fail with ENOSYS. Some functions are actually named
7184 something starting with __ and the normal name is an alias. */
7185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7193 if { (eval echo configure
:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7195 eval "ac_cv_func_$ac_func=yes"
7197 echo "configure: failed program was:" >&5
7198 cat conftest.
$ac_ext >&5
7200 eval "ac_cv_func_$ac_func=no"
7205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7206 echo "$ac_t""yes" 1>&6
7207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7208 cat >> confdefs.h
<<EOF
7209 #define $ac_tr_func 1
7213 echo "$ac_t""no" 1>&6
7217 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7218 set dummy gmsgfmt
; ac_word
=$2
7219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7220 echo "configure:7221: checking for $ac_word" >&5
7221 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7222 echo $ac_n "(cached) $ac_c" 1>&6
7226 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7229 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7234 for ac_dir
in $ac_dummy; do
7235 test -z "$ac_dir" && ac_dir
=.
7236 if test -f $ac_dir/$ac_word; then
7237 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7242 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7246 GMSGFMT
="$ac_cv_path_GMSGFMT"
7247 if test -n "$GMSGFMT"; then
7248 echo "$ac_t""$GMSGFMT" 1>&6
7250 echo "$ac_t""no" 1>&6
7253 # Extract the first word of "xgettext", so it can be a program name with args.
7254 set dummy xgettext
; ac_word
=$2
7255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7256 echo "configure:7257: checking for $ac_word" >&5
7257 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7258 echo $ac_n "(cached) $ac_c" 1>&6
7262 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7265 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7266 for ac_dir
in $PATH; do
7267 test -z "$ac_dir" && ac_dir
=.
7268 if test -f $ac_dir/$ac_word; then
7269 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7270 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7276 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7280 XGETTEXT
="$ac_cv_path_XGETTEXT"
7281 if test -n "$XGETTEXT"; then
7282 echo "$ac_t""$XGETTEXT" 1>&6
7284 echo "$ac_t""no" 1>&6
7287 cat > conftest.
$ac_ext <<EOF
7288 #line 7289 "configure"
7289 #include "confdefs.h"
7292 extern int _nl_msg_cat_cntr;
7293 return _nl_msg_cat_cntr
7296 if { (eval echo configure
:7297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7301 echo "configure: failed program was:" >&5
7302 cat conftest.
$ac_ext >&5
7313 echo "$ac_t""no" 1>&6
7317 if test "$CATOBJEXT" = "NONE"; then
7318 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
7319 echo "configure:7320: checking whether catgets can be used" >&5
7320 # Check whether --with-catgets or --without-catgets was given.
7321 if test "${with_catgets+set}" = set; then
7322 withval
="$with_catgets"
7323 nls_cv_use_catgets
=$withval
7325 nls_cv_use_catgets
=no
7328 echo "$ac_t""$nls_cv_use_catgets" 1>&6
7330 if test "$nls_cv_use_catgets" = "yes"; then
7331 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
7332 echo "configure:7333: checking for main in -li" >&5
7333 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
7334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7337 ac_save_LIBS
="$LIBS"
7339 cat > conftest.
$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7347 if { (eval echo configure
:7348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7349 eval "ac_cv_lib_$ac_lib_var=yes"
7351 echo "configure: failed program was:" >&5
7352 cat conftest.
$ac_ext >&5
7354 eval "ac_cv_lib_$ac_lib_var=no"
7357 LIBS
="$ac_save_LIBS"
7360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7361 echo "$ac_t""yes" 1>&6
7362 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7364 cat >> confdefs.h
<<EOF
7365 #define $ac_tr_lib 1
7371 echo "$ac_t""no" 1>&6
7374 echo $ac_n "checking for catgets""... $ac_c" 1>&6
7375 echo "configure:7376: checking for catgets" >&5
7376 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
7377 echo $ac_n "(cached) $ac_c" 1>&6
7379 cat > conftest.
$ac_ext <<EOF
7380 #line 7381 "configure"
7381 #include "confdefs.h"
7382 /* System header to define __stub macros and hopefully few prototypes,
7383 which can conflict with char catgets(); below. */
7385 /* Override any gcc2 internal prototype to avoid an error. */
7386 /* We use char because int might match the return type of a gcc2
7387 builtin and then its argument prototype would still apply. */
7393 /* The GNU C library defines this for functions which it implements
7394 to always fail with ENOSYS. Some functions are actually named
7395 something starting with __ and the normal name is an alias. */
7396 #if defined (__stub_catgets) || defined (__stub___catgets)
7404 if { (eval echo configure
:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7406 eval "ac_cv_func_catgets=yes"
7408 echo "configure: failed program was:" >&5
7409 cat conftest.
$ac_ext >&5
7411 eval "ac_cv_func_catgets=no"
7416 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
7417 echo "$ac_t""yes" 1>&6
7418 cat >> confdefs.h
<<\EOF
7419 #define HAVE_CATGETS 1
7422 INTLOBJS
="\$(CATOBJS)"
7423 # Extract the first word of "gencat", so it can be a program name with args.
7424 set dummy gencat
; ac_word
=$2
7425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7426 echo "configure:7427: checking for $ac_word" >&5
7427 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
7428 echo $ac_n "(cached) $ac_c" 1>&6
7432 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
7435 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a dos path.
7438 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7440 for ac_dir
in $ac_dummy; do
7441 test -z "$ac_dir" && ac_dir
=.
7442 if test -f $ac_dir/$ac_word; then
7443 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
7448 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
7452 GENCAT
="$ac_cv_path_GENCAT"
7453 if test -n "$GENCAT"; then
7454 echo "$ac_t""$GENCAT" 1>&6
7456 echo "$ac_t""no" 1>&6
7458 if test "$GENCAT" != "no"; then
7459 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7460 set dummy gmsgfmt
; ac_word
=$2
7461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7462 echo "configure:7463: checking for $ac_word" >&5
7463 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7464 echo $ac_n "(cached) $ac_c" 1>&6
7468 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7471 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7474 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7476 for ac_dir
in $ac_dummy; do
7477 test -z "$ac_dir" && ac_dir
=.
7478 if test -f $ac_dir/$ac_word; then
7479 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7484 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7488 GMSGFMT
="$ac_cv_path_GMSGFMT"
7489 if test -n "$GMSGFMT"; then
7490 echo "$ac_t""$GMSGFMT" 1>&6
7492 echo "$ac_t""no" 1>&6
7495 if test "$GMSGFMT" = "no"; then
7496 # Extract the first word of "msgfmt", so it can be a program name with args.
7497 set dummy msgfmt
; ac_word
=$2
7498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_word" >&5
7500 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7505 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7508 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7509 for ac_dir
in $PATH; do
7510 test -z "$ac_dir" && ac_dir
=.
7511 if test -f $ac_dir/$ac_word; then
7512 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7513 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7519 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
7523 GMSGFMT
="$ac_cv_path_GMSGFMT"
7524 if test -n "$GMSGFMT"; then
7525 echo "$ac_t""$GMSGFMT" 1>&6
7527 echo "$ac_t""no" 1>&6
7531 # Extract the first word of "xgettext", so it can be a program name with args.
7532 set dummy xgettext
; ac_word
=$2
7533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7534 echo "configure:7535: checking for $ac_word" >&5
7535 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7536 echo $ac_n "(cached) $ac_c" 1>&6
7540 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7543 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7544 for ac_dir
in $PATH; do
7545 test -z "$ac_dir" && ac_dir
=.
7546 if test -f $ac_dir/$ac_word; then
7547 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7548 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7554 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7558 XGETTEXT
="$ac_cv_path_XGETTEXT"
7559 if test -n "$XGETTEXT"; then
7560 echo "$ac_t""$XGETTEXT" 1>&6
7562 echo "$ac_t""no" 1>&6
7565 USE_INCLUDED_LIBINTL
=yes
7569 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7571 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7572 nls_cv_header_intl
=intl
/libintl.h
7573 nls_cv_header_libgt
=intl
/libgettext.h
7576 echo "$ac_t""no" 1>&6
7582 if test "$CATOBJEXT" = "NONE"; then
7583 nls_cv_use_gnu_gettext
=yes
7587 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7588 INTLOBJS
="\$(GETTOBJS)"
7589 # Extract the first word of "msgfmt", so it can be a program name with args.
7590 set dummy msgfmt
; ac_word
=$2
7591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_word" >&5
7593 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6
7598 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
7601 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7602 for ac_dir
in $PATH; do
7603 test -z "$ac_dir" && ac_dir
=.
7604 if test -f $ac_dir/$ac_word; then
7605 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7606 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
7612 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
7616 MSGFMT
="$ac_cv_path_MSGFMT"
7617 if test -n "$MSGFMT"; then
7618 echo "$ac_t""$MSGFMT" 1>&6
7620 echo "$ac_t""no" 1>&6
7623 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7624 set dummy gmsgfmt
; ac_word
=$2
7625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7626 echo "configure:7627: checking for $ac_word" >&5
7627 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7632 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7635 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
7638 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7640 for ac_dir
in $ac_dummy; do
7641 test -z "$ac_dir" && ac_dir
=.
7642 if test -f $ac_dir/$ac_word; then
7643 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
7648 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7652 GMSGFMT
="$ac_cv_path_GMSGFMT"
7653 if test -n "$GMSGFMT"; then
7654 echo "$ac_t""$GMSGFMT" 1>&6
7656 echo "$ac_t""no" 1>&6
7659 # Extract the first word of "xgettext", so it can be a program name with args.
7660 set dummy xgettext
; ac_word
=$2
7661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7662 echo "configure:7663: checking for $ac_word" >&5
7663 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7664 echo $ac_n "(cached) $ac_c" 1>&6
7668 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7671 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
7672 for ac_dir
in $PATH; do
7673 test -z "$ac_dir" && ac_dir
=.
7674 if test -f $ac_dir/$ac_word; then
7675 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7676 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
7682 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7686 XGETTEXT
="$ac_cv_path_XGETTEXT"
7687 if test -n "$XGETTEXT"; then
7688 echo "$ac_t""$XGETTEXT" 1>&6
7690 echo "$ac_t""no" 1>&6
7694 USE_INCLUDED_LIBINTL
=yes
7698 INTLDEPS
='$(top_builddir)/intl/libintl.a'
7700 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
7701 nls_cv_header_intl
=intl
/libintl.h
7702 nls_cv_header_libgt
=intl
/libgettext.h
7705 if test "$XGETTEXT" != ":"; then
7706 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
7709 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7714 # We need to process the po/ directory.
7718 nls_cv_header_intl
=intl
/libintl.h
7719 nls_cv_header_libgt
=intl
/libgettext.h
7725 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7726 # because some of the sources are only built for this goal.
7727 if test "$PACKAGE" = gettext; then
7729 USE_INCLUDED_LIBINTL
=yes
7732 for lang
in $ALL_LINGUAS; do
7733 GMOFILES
="$GMOFILES $lang.gmo"
7734 POFILES
="$POFILES $lang.po"
7750 if test "x$CATOBJEXT" != "x"; then
7751 if test "x$ALL_LINGUAS" = "x"; then
7754 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7755 echo "configure:7756: checking for catalogs to be installed" >&5
7757 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
7758 case "$ALL_LINGUAS" in
7759 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
7762 LINGUAS
=$NEW_LINGUAS
7763 echo "$ac_t""$LINGUAS" 1>&6
7766 if test -n "$LINGUAS"; then
7767 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
7771 if test $ac_cv_header_locale_h = yes; then
7772 INCLUDE_LOCALE_H
="#include <locale.h>"
7775 /* The system does not provide the header <locale.h>. Take care yourself. */"
7779 test -d intl || mkdir intl
7780 if test "$CATOBJEXT" = ".cat"; then
7781 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7782 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7783 echo "configure:7784: checking for linux/version.h" >&5
7784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7787 cat > conftest.
$ac_ext <<EOF
7788 #line 7789 "configure"
7789 #include "confdefs.h"
7790 #include <linux/version.h>
7792 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7793 { (eval echo configure
:7794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7794 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7795 if test -z "$ac_err"; then
7797 eval "ac_cv_header_$ac_safe=yes"
7800 echo "configure: failed program was:" >&5
7801 cat conftest.
$ac_ext >&5
7803 eval "ac_cv_header_$ac_safe=no"
7807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7808 echo "$ac_t""yes" 1>&6
7811 echo "$ac_t""no" 1>&6
7816 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
7818 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7819 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
7821 if test "$PACKAGE" = "gettext"; then
7832 if test -n "$ac_aux_dir"; then
7833 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
7835 if test -z "$MKINSTALLDIRS"; then
7836 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
7843 test -d po || mkdir po
7844 if test "x$srcdir" != "x."; then
7845 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7846 posrcprefix
="$srcdir/"
7848 posrcprefix
="../$srcdir/"
7854 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7855 < $srcdir/po
/POTFILES.
in > po
/POTFILES
7857 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7859 # Get an absolute path to the GCC top-level source directory
7865 # Conditionalize the makefile for this host machine.
7866 # Make-host contains the concatenation of all host makefile fragments
7867 # [there can be more than one]. This file is built by configure.frag.
7868 host_overrides
=Make-host
7869 dep_host_xmake_file
=
7870 for f
in ..
${host_xmake_file}
7872 if test -f ${srcdir}/config
/$f
7874 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
7878 # Conditionalize the makefile for this target machine.
7879 # Make-target contains the concatenation of all host makefile fragments
7880 # [there can be more than one]. This file is built by configure.frag.
7881 target_overrides
=Make-target
7883 for f
in ..
${tmake_file}
7885 if test -f ${srcdir}/config
/$f
7887 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
7891 # If the host doesn't support symlinks, modify CC in
7892 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7893 # Otherwise, we can use "CC=$(CC)".
7895 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
7897 cc_set_by_configure
="\$(CC)"
7898 quoted_cc_set_by_configure
="\$(CC)"
7899 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
7902 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
7904 symbolic_link
="cp -p"
7908 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7909 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
7910 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7914 out_object_file
=`basename $out_file .c`.o
7917 for f
in $tm_file; do
7920 tm_file_list
="${tm_file_list} $f" ;;
7921 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
7926 for f
in $host_xm_file; do
7928 auto-host.h | gansidecl.h | hwint.h
)
7929 host_xm_file_list
="${host_xm_file_list} $f" ;;
7930 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
7935 for f
in $build_xm_file; do
7937 auto-build.h | auto-host.h | gansidecl.h | hwint.h
)
7938 build_xm_file_list
="${build_xm_file_list} $f" ;;
7939 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
7943 # Define macro CROSS_COMPILE in compilation
7944 # if this is a cross-compiler.
7945 # Also use all.cross instead of all.internal
7946 # and add cross-make to Makefile.
7947 cross_overrides
="/dev/null"
7948 if test x
$host != x
$target
7950 cross_defines
="CROSS=-DCROSS_COMPILE"
7951 cross_overrides
="${topdir}/cross-make"
7954 # When building gcc with a cross-compiler, we need to fix a few things.
7955 # This must come after cross-make as we want all.build to override
7957 build_overrides
="/dev/null"
7958 if test x
$build != x
$host
7960 build_overrides
="${topdir}/build-make"
7963 # Expand extra_headers to include complete path.
7964 # This substitutes for lots of t-* files.
7966 if test "x$extra_headers" = x
7969 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
7970 for file in $extra_headers;
7972 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
7976 if test x
$use_collect2 = xno
; then
7980 # Add a definition of USE_COLLECT2 if system wants one.
7981 # Also tell toplev.c what to do.
7982 # This substitutes for lots of t-* files.
7983 if test x
$use_collect2 = x
7988 will_use_collect2
="collect2"
7989 maybe_use_collect2
="-DUSE_COLLECT2"
7993 # Set MD_DEPS if the real md file is in md.pre-cpp.
7994 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
7995 # for line oriented comments, so we must always use a GNU cpp. If
7996 # building gcc with a cross compiler, use the cross compiler just
7997 # built. Otherwise, we can use the cpp just built.
7999 if test "x$md_cppflags" = x
8001 md_file_sub
=$srcdir/config
/$md_file
8006 # If we have gas in the build tree, make a link to it.
8007 if test -f ..
/gas
/Makefile
; then
8008 rm -f as
; $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
8011 # If we have nm in the build tree, make a link to it.
8012 if test -f ..
/binutils
/Makefile
; then
8013 rm -f nm
; $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
8016 # If we have ld in the build tree, make a link to it.
8017 if test -f ..
/ld
/Makefile
; then
8018 # if test x$use_collect2 = x; then
8019 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
8021 rm -f collect-ld
; $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext 2>/dev
/null
8025 # Figure out what assembler alignment features are present.
8026 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6
8027 echo "configure:8028: checking assembler alignment features" >&5
8029 gcc_cv_as_alignment_features
=
8030 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
8031 if test -x "$DEFAULT_ASSEMBLER"; then
8032 gcc_cv_as
="$DEFAULT_ASSEMBLER"
8033 elif test -x "$AS"; then
8035 elif test -x as
$host_exeext; then
8036 # Build using assembler in the current directory.
8037 gcc_cv_as
=.
/as
$host_exeext
8038 elif test -f $gcc_cv_as_gas_srcdir/configure.
in -a -f ..
/gas
/Makefile
; then
8039 # Single tree build which includes gas.
8040 for f
in $gcc_cv_as_gas_srcdir/configure
$gcc_cv_as_gas_srcdir/configure.
in $gcc_cv_as_gas_srcdir/Makefile.
in
8042 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
8043 if test x
$gcc_cv_gas_version != x
; then
8047 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
8048 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
8049 if test x
$gcc_cv_gas_major_version != x
-a x
$gcc_cv_gas_minor_version != x
; then
8050 # Gas version 2.6 and later support for .balign and .p2align.
8051 # bytes to skip when using .p2align.
8052 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
8053 gcc_cv_as_alignment_features
=".balign and .p2align"
8054 cat >> confdefs.h
<<\EOF
8055 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8059 # Gas version 2.8 and later support specifying the maximum
8060 # bytes to skip when using .p2align.
8061 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
8062 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8063 cat >> confdefs.h
<<\EOF
8064 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8069 elif test x
$host = x
$target; then
8071 gcc_cv_as
=as
$host_exeext
8073 if test x
$gcc_cv_as != x
; then
8074 # Check if we have .balign and .p2align
8075 echo ".balign 4" > conftest.s
8076 echo ".p2align 2" >> conftest.s
8077 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8078 gcc_cv_as_alignment_features
=".balign and .p2align"
8079 cat >> confdefs.h
<<\EOF
8080 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
8084 rm -f conftest.s conftest.o
8085 # Check if specifying the maximum bytes to skip when
8086 # using .p2align is supported.
8087 echo ".p2align 4,,7" > conftest.s
8088 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8089 gcc_cv_as_alignment_features
=".p2align including maximum skip"
8090 cat >> confdefs.h
<<\EOF
8091 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
8095 rm -f conftest.s conftest.o
8097 echo "$ac_t""$gcc_cv_as_alignment_features" 1>&6
8099 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6
8100 echo "configure:8101: checking assembler subsection support" >&5
8101 gcc_cv_as_subsections
=
8102 if test x
$gcc_cv_as != x
; then
8103 # Check if we have .subsection
8104 echo ".subsection 1" > conftest.s
8105 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8106 gcc_cv_as_subsections
=".subsection"
8107 if test -x nm
$host_exeext; then
8108 gcc_cv_nm
=.
/nm
$host_exeext
8109 elif test x
$host = x
$target; then
8111 gcc_cv_nm
=nm
$host_exeext
8113 if test x
$gcc_cv_nm != x
; then
8114 cat > conftest.s
<<EOF
8115 conftest_label1: .word 0
8117 conftest_label2: .word 0
8120 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8121 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
8122 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
8123 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
8126 gcc_cv_as_subsections
="working .subsection -1"
8127 cat >> confdefs.h
<<\EOF
8128 #define HAVE_GAS_SUBSECTION_ORDERING 1
8135 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
8137 echo "$ac_t""$gcc_cv_as_subsections" 1>&6
8139 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6
8140 echo "configure:8141: checking assembler instructions" >&5
8141 gcc_cv_as_instructions
=
8142 if test x
$gcc_cv_as != x
; then
8143 set "filds fists" "filds mem; fists mem"
8146 echo "$2" > conftest.s
8147 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
8148 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
8149 cat >> confdefs.h
<<EOF
8150 #define HAVE_GAS_`echo "$1" | tr 'a-z ' 'A-Z_'` 1
8156 rm -f conftest.s conftest.o
8158 echo "$ac_t""$gcc_cv_as_instructions" 1>&6
8160 # Figure out what language subdirectories are present.
8161 # Look if the user specified --enable-languages="..."; if not, use
8162 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8164 if test x
"${enable_languages+set}" != xset
; then
8165 if test x
"${LANGUAGES+set}" = xset
; then
8166 enable_languages
="`echo ${LANGUAGES} | tr ' ' ','`"
8168 enable_languages
=all
8172 for lang
in ${srcdir}/*/config-lang.
in ..
8176 # The odd quoting in the next line works around
8177 # an apparent bug in bash 1.12 on linux.
8178 ${srcdir}/[*]/config-lang.
in) ;;
8180 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
8181 if test "x$lang_alias" = x
8183 echo "$lang doesn't set \$language." 1>&2
8186 if test x
"${enable_languages}" = xall
; then
8189 case "${enable_languages}" in
8190 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
8198 if test x"${add_this_lang}" = xyes; then
8200 ${srcdir}/ada/config-lang.in)
8201 if test x$gnat = xyes ; then
8202 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8206 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
8214 # Make gthr-default.h if we have a thread file.
8216 if test $thread_file != single; then
8217 rm -f gthr-default.h
8218 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8219 gthread_flags
=-DHAVE_GTHR_DEFAULT
8223 # Make empty files to contain the specs and options for each language.
8224 # Then add #include lines to for a compiler that has specs and/or options.
8229 rm -f specs.h options.h gencheck.h
8230 touch specs.h options.h gencheck.h
8231 for subdir
in .
$subdirs
8233 if test -f $srcdir/$subdir/lang-specs.h
; then
8234 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
8235 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
8237 if test -f $srcdir/$subdir/lang-options.h
; then
8238 echo "#include \"$subdir/lang-options.h\"" >>options.h
8239 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
8241 if test -f $srcdir/$subdir/$subdir-tree.def
; then
8242 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
8243 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
8247 # These (without "all_") are set in each config-lang.in.
8248 # `language' must be a single word so is spelled singularly.
8254 all_outputs
='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
8255 # List of language makefile fragments.
8260 # Add the language fragments.
8261 # Languages are added via two mechanisms. Some information must be
8262 # recorded in makefile variables, these are defined in config-lang.in.
8263 # We accumulate them and plug them into the main Makefile.
8264 # The other mechanism is a set of hooks for each of the main targets
8265 # like `clean', `install', etc.
8267 language_fragments
="Make-lang"
8268 language_hooks
="Make-hooks"
8271 for s
in ..
$subdirs
8283 .
${srcdir}/$s/config-lang.
in
8284 if test "x$language" = x
8286 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
8289 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
8290 all_languages
="$all_languages $language"
8291 if test "x$boot_language" = xyes
8293 all_boot_languages
="$all_boot_languages $language"
8295 all_compilers
="$all_compilers $compilers"
8296 all_stagestuff
="$all_stagestuff $stagestuff"
8297 all_diff_excludes
="$all_diff_excludes $diff_excludes"
8298 all_headers
="$all_headers $headers"
8299 all_outputs
="$all_outputs $outputs"
8300 if test x
$outputs = x
8302 oldstyle_subdirs
="$oldstyle_subdirs $s"
8304 all_lib2funcs
="$all_lib2funcs $lib2funcs"
8308 # Since we can't use `::' targets, we link each language in
8309 # with a set of hooks, reached indirectly via lang.${target}.
8313 target_list
="all.build all.cross start.encap rest.encap \
8315 install-normal install-common install-info install-man \
8317 mostlyclean clean distclean extraclean maintainer-clean \
8318 stage1 stage2 stage3 stage4"
8319 for t
in $target_list
8322 for lang
in ..
$all_languages
8324 if test $lang != ".."; then
8328 echo "lang.$t: $x" >> Make-hooks
8331 # If we're not building in srcdir, create .gdbinit.
8333 if test ! -f Makefile.
in; then
8334 echo "dir ." > .gdbinit
8335 echo "dir ${srcdir}" >> .gdbinit
8336 if test x
$gdb_needs_out_file_path = xyes
8338 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
8340 if test "x$subdirs" != x
; then
8343 echo "dir ${srcdir}/$s" >> .gdbinit
8346 echo "source ${srcdir}/.gdbinit" >> .gdbinit
8349 # Define variables host_canonical and build_canonical
8350 # because some Cygnus local changes in the Makefile depend on them.
8351 build_canonical
=${build}
8352 host_canonical
=${host}
8354 if test "${host}" != "${target}" ; then
8355 target_subdir
=${target}/
8361 # If this is using newlib, then define inhibit_libc in
8362 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
8363 # libgcc.a, but that's OK because newib should have its own version of
8366 if test x
$with_newlib = xyes
; then
8367 inhibit_libc
=-Dinhibit_libc
8371 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
8374 if test x
$enable_haifa = xyes
; then
8375 echo "Using the Haifa scheduler."
8377 sched_cflags
=-DHAIFA
8381 if test x
$enable_haifa != x
; then
8382 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
8383 for x
in genattrtab.o toplev.o
*sched.o
; do
8391 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
8392 # absolute path for gcc_tooldir based on inserting the number of up-directory
8393 # movements required to get from $(exec_prefix) to $(prefix) into the basic
8394 # $(libsubdir)/@(unlibsubdir) based path.
8395 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
8396 # make and thus we'd get different behavior depending on where we built the
8398 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
8399 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
8401 # An explanation of the sed strings:
8402 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
8403 # -e 's|/$||' match a trailing forward slash and eliminates it
8404 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
8405 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
8407 # (*) Note this pattern overwrites the first character of the string
8408 # with a forward slash if one is not already present. This is not a
8409 # problem because the exact names of the sub-directories concerned is
8410 # unimportant, just the number of them matters.
8412 # The practical upshot of these patterns is like this:
8414 # prefix exec_prefix result
8415 # ------ ----------- ------
8417 # /foo/ /foo/bar ../
8418 # /foo /foo/bar/ ../
8419 # /foo/ /foo/bar/ ../
8420 # /foo /foo/bar/ugg ../../
8423 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
8428 # Nothing to do for FLOAT_H, float_format already handled.
8432 # Process the language and host/target makefile fragments.
8433 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
8435 # Substitute configuration variables
8497 # Echo that links are built
8498 if test x
$host = x
$target
8506 if test x
$host != x
$build
8508 str3
=" on a $build system"
8511 if test "x$str2" != x ||
test "x$str3" != x
8516 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
8518 if test "x$str2" != x ||
test "x$str3" != x
8520 echo " ${str2}${str3}." 1>&2
8523 # Truncate the target if necessary
8524 if test x
$host_truncate_target != x
; then
8525 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
8528 # Configure the subdirectories
8529 # AC_CONFIG_SUBDIRS($subdirs)
8531 # Create the Makefile
8532 # and configure language subdirectories
8534 cat > confcache
<<\EOF
8535 # This file is a shell script that caches the results of configure
8536 # tests run on this system so they can be shared between configure
8537 # scripts and configure runs. It is not useful on other systems.
8538 # If it contains results you don't want to keep, you may remove or edit it.
8540 # By default, configure uses ./config.cache as the cache file,
8541 # creating it if it does not exist already. You can give configure
8542 # the --cache-file=FILE option to use a different cache file; that is
8543 # what configure does when it calls configure scripts in
8544 # subdirectories, so they share the cache.
8545 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8546 # config.status only pays attention to the cache file if you give it the
8547 # --recheck option to rerun configure.
8550 # The following way of writing the cache mishandles newlines in values,
8551 # but we know of no workaround that is simple, portable, and efficient.
8552 # So, don't put newlines in cache variables' values.
8553 # Ultrix sh set writes to stderr and can't be redirected directly,
8554 # and sets the high bit in the cache file unless we assign to the vars.
8556 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8558 # `set' does not quote correctly, so add quotes (double-quote substitution
8559 # turns \\\\ into \\, and sed turns \\ into \).
8561 -e "s/'/'\\\\''/g" \
8562 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8565 # `set' quotes correctly as required by POSIX, so do not add quotes.
8566 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8569 if cmp -s $cache_file confcache
; then
8572 if test -w $cache_file; then
8573 echo "updating cache $cache_file"
8574 cat confcache
> $cache_file
8576 echo "not updating unwritable cache $cache_file"
8581 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8583 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8584 # Let make expand exec_prefix.
8585 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8587 # Any assignment to VPATH causes Sun make to only execute
8588 # the first set of double-colon rules, so remove it if not needed.
8589 # If there is a colon in the path, we need to keep it.
8590 if test "x$srcdir" = x.
; then
8591 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8594 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8596 DEFS
=-DHAVE_CONFIG_H
8598 # Without the "./", some shells look in PATH for config.status.
8599 : ${CONFIG_STATUS=./config.status}
8601 echo creating
$CONFIG_STATUS
8602 rm -f $CONFIG_STATUS
8603 cat > $CONFIG_STATUS <<EOF
8605 # Generated automatically by configure.
8606 # Run this file to recreate the current configuration.
8607 # This directory was configured as follows,
8608 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8610 # $0 $ac_configure_args
8612 # Compiler output produced by configure, useful for debugging
8613 # configure, is in ./config.log if it exists.
8615 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8618 case "\$ac_option" in
8619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8620 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8621 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8622 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8623 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8625 -help | --help | --hel | --he | --h)
8626 echo "\$ac_cs_usage"; exit 0 ;;
8627 *) echo "\$ac_cs_usage"; exit 1 ;;
8631 ac_given_srcdir=$srcdir
8633 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8635 cat >> $CONFIG_STATUS <<EOF
8637 # Protect against being on the right side of a sed subst in config.status.
8638 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8639 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8643 s%@CFLAGS@%$CFLAGS%g
8644 s%@CPPFLAGS@%$CPPFLAGS%g
8645 s%@CXXFLAGS@%$CXXFLAGS%g
8646 s%@FFLAGS@%$FFLAGS%g
8648 s%@LDFLAGS@%$LDFLAGS%g
8650 s%@exec_prefix@%$exec_prefix%g
8651 s%@prefix@%$prefix%g
8652 s%@program_transform_name@%$program_transform_name%g
8653 s%@bindir@%$bindir%g
8654 s%@sbindir@%$sbindir%g
8655 s%@libexecdir@%$libexecdir%g
8656 s%@datadir@%$datadir%g
8657 s%@sysconfdir@%$sysconfdir%g
8658 s%@sharedstatedir@%$sharedstatedir%g
8659 s%@localstatedir@%$localstatedir%g
8660 s%@libdir@%$libdir%g
8661 s%@includedir@%$includedir%g
8662 s%@oldincludedir@%$oldincludedir%g
8663 s%@infodir@%$infodir%g
8664 s%@mandir@%$mandir%g
8666 s%@host_alias@%$host_alias%g
8667 s%@host_cpu@%$host_cpu%g
8668 s%@host_vendor@%$host_vendor%g
8669 s%@host_os@%$host_os%g
8670 s%@target@%$target%g
8671 s%@target_alias@%$target_alias%g
8672 s%@target_cpu@%$target_cpu%g
8673 s%@target_vendor@%$target_vendor%g
8674 s%@target_os@%$target_os%g
8676 s%@build_alias@%$build_alias%g
8677 s%@build_cpu@%$build_cpu%g
8678 s%@build_vendor@%$build_vendor%g
8679 s%@build_os@%$build_os%g
8681 s%@stage1_warn_cflags@%$stage1_warn_cflags%g
8682 s%@SET_MAKE@%$SET_MAKE%g
8685 s%@LEXLIB@%$LEXLIB%g
8688 s%@RANLIB@%$RANLIB%g
8690 s%@INSTALL@%$INSTALL%g
8691 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8692 s%@INSTALL_DATA@%$INSTALL_DATA%g
8695 s%@vfprintf@%$vfprintf%g
8696 s%@doprint@%$doprint%g
8697 s%@manext@%$manext%g
8698 s%@objext@%$objext%g
8699 s%@PACKAGE@%$PACKAGE%g
8700 s%@VERSION@%$VERSION%g
8701 s%@ALLOCA@%$ALLOCA%g
8702 s%@USE_NLS@%$USE_NLS%g
8703 s%@MSGFMT@%$MSGFMT%g
8704 s%@GMSGFMT@%$GMSGFMT%g
8705 s%@XGETTEXT@%$XGETTEXT%g
8706 s%@GENCAT@%$GENCAT%g
8707 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8708 s%@CATALOGS@%$CATALOGS%g
8709 s%@CATOBJEXT@%$CATOBJEXT%g
8710 s%@DATADIRNAME@%$DATADIRNAME%g
8711 s%@GMOFILES@%$GMOFILES%g
8712 s%@INSTOBJEXT@%$INSTOBJEXT%g
8713 s%@INTLDEPS@%$INTLDEPS%g
8714 s%@INTLLIBS@%$INTLLIBS%g
8715 s%@INTLOBJS@%$INTLOBJS%g
8716 s%@POFILES@%$POFILES%g
8718 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
8720 s%@GT_YES@%$GT_YES%g
8721 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8723 s%@gthread_flags@%$gthread_flags%g
8724 s%@build_canonical@%$build_canonical%g
8725 s%@host_canonical@%$host_canonical%g
8726 s%@target_subdir@%$target_subdir%g
8727 s%@inhibit_libc@%$inhibit_libc%g
8728 s%@sched_prefix@%$sched_prefix%g
8729 s%@sched_cflags@%$sched_cflags%g
8730 s%@gcc_tooldir@%$gcc_tooldir%g
8731 s%@dollar@%$dollar%g
8732 s%@objdir@%$objdir%g
8733 s%@subdirs@%$subdirs%g
8734 s%@all_boot_languages@%$all_boot_languages%g
8735 s%@all_compilers@%$all_compilers%g
8736 s%@all_diff_excludes@%$all_diff_excludes%g
8737 s%@all_headers@%$all_headers%g
8738 s%@all_lang_makefiles@%$all_lang_makefiles%g
8739 s%@all_languages@%$all_languages%g
8740 s%@all_lib2funcs@%$all_lib2funcs%g
8741 s%@all_stagestuff@%$all_stagestuff%g
8742 s%@build_exeext@%$build_exeext%g
8743 s%@build_install_headers_dir@%$build_install_headers_dir%g
8744 s%@build_xm_file_list@%$build_xm_file_list%g
8745 s%@cc_set_by_configure@%$cc_set_by_configure%g
8746 s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g
8747 s%@cpp_install_dir@%$cpp_install_dir%g
8748 s%@cpp_main@%$cpp_main%g
8749 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
8750 s%@dep_tmake_file@%$dep_tmake_file%g
8751 s%@extra_c_flags@%$extra_c_flags%g
8752 s%@extra_c_objs@%$extra_c_objs%g
8753 s%@extra_cpp_objs@%$extra_cpp_objs%g
8754 s%@extra_cxx_objs@%$extra_cxx_objs%g
8755 s%@extra_headers_list@%$extra_headers_list%g
8756 s%@extra_objs@%$extra_objs%g
8757 s%@extra_parts@%$extra_parts%g
8758 s%@extra_passes@%$extra_passes%g
8759 s%@extra_programs@%$extra_programs%g
8760 s%@fixinc_defs@%$fixinc_defs%g
8761 s%@float_h_file@%$float_h_file%g
8762 s%@gcc_gxx_include_dir@%$gcc_gxx_include_dir%g
8763 s%@gcc_version@%$gcc_version%g
8764 s%@gcc_version_trigger@%$gcc_version_trigger%g
8765 s%@host_exeext@%$host_exeext%g
8766 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
8767 s%@host_xm_file_list@%$host_xm_file_list%g
8768 s%@install@%$install%g
8769 s%@JAVAGC@%$JAVAGC%g
8770 s%@lang_options_files@%$lang_options_files%g
8771 s%@lang_specs_files@%$lang_specs_files%g
8772 s%@lang_tree_files@%$lang_tree_files%g
8773 s%@local_prefix@%$local_prefix%g
8774 s%@maybe_use_collect2@%$maybe_use_collect2%g
8775 s%@md_file@%$md_file%g
8776 s%@objc_boehm_gc@%$objc_boehm_gc%g
8777 s%@out_file@%$out_file%g
8778 s%@out_object_file@%$out_object_file%g
8779 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
8780 s%@symbolic_link@%$symbolic_link%g
8781 s%@thread_file@%$thread_file%g
8782 s%@tm_file_list@%$tm_file_list%g
8783 s%@will_use_collect2@%$will_use_collect2%g
8784 /@target_overrides@/r $target_overrides
8785 s%@target_overrides@%%g
8786 /@host_overrides@/r $host_overrides
8787 s%@host_overrides@%%g
8788 s%@cross_defines@%$cross_defines%g
8789 /@cross_overrides@/r $cross_overrides
8790 s%@cross_overrides@%%g
8791 /@build_overrides@/r $build_overrides
8792 s%@build_overrides@%%g
8793 /@language_fragments@/r $language_fragments
8794 s%@language_fragments@%%g
8795 /@language_hooks@/r $language_hooks
8796 s%@language_hooks@%%g
8801 cat >> $CONFIG_STATUS <<\EOF
8803 # Split the substitutions into bite-sized pieces for seds with
8804 # small command number limits, like on Digital OSF/1 and HP-UX.
8805 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8806 ac_file
=1 # Number of current file.
8807 ac_beg
=1 # First line for current file.
8808 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8811 while $ac_more_lines; do
8812 if test $ac_beg -gt 1; then
8813 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8815 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8817 if test ! -s conftest.s
$ac_file; then
8819 rm -f conftest.s
$ac_file
8821 if test -z "$ac_sed_cmds"; then
8822 ac_sed_cmds
="sed -f conftest.s$ac_file"
8824 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8826 ac_file
=`expr $ac_file + 1`
8828 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8831 if test -z "$ac_sed_cmds"; then
8836 cat >> $CONFIG_STATUS <<EOF
8838 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
8840 cat >> $CONFIG_STATUS <<\EOF
8841 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8842 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8844 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8845 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8846 *) ac_file_in
="${ac_file}.in" ;;
8849 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8851 # Remove last slash and all that follows it. Not all systems have dirname.
8852 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8853 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8854 # The file is in a subdirectory.
8855 test ! -d "$ac_dir" && mkdir
"$ac_dir"
8856 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8857 # A "../" for each directory in $ac_dir_suffix.
8858 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8860 ac_dir_suffix
= ac_dots
=
8863 case "$ac_given_srcdir" in
8865 if test -z "$ac_dots"; then top_srcdir
=.
8866 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8867 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8869 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8870 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8874 echo creating
"$ac_file"
8876 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8878 *Makefile
*) ac_comsub
="1i\\
8879 # $configure_input" ;;
8883 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8885 s%@configure_input@%$configure_input%g
8886 s%@srcdir@%$srcdir%g
8887 s%@top_srcdir@%$top_srcdir%g
8888 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8892 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8893 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8895 # ac_d sets the value in "#define NAME VALUE" lines.
8896 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8897 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8900 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8901 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8902 ac_uB
='\([ ]\)%\1#\2define\3'
8905 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8906 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8907 ac_eB
='$%\1#\2define\3'
8911 if test "${CONFIG_HEADERS+set}" != set; then
8913 cat >> $CONFIG_STATUS <<EOF
8914 CONFIG_HEADERS="auto-host.h:config.in"
8916 cat >> $CONFIG_STATUS <<\EOF
8918 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8921 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8922 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8923 *) ac_file_in
="${ac_file}.in" ;;
8926 echo creating
$ac_file
8928 rm -f conftest.frag conftest.
in conftest.out
8929 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8930 cat $ac_file_inputs > conftest.
in
8934 # Transform confdefs.h into a sed script conftest.vals that substitutes
8935 # the proper values into config.h.in to produce config.h. And first:
8936 # Protect against being on the right side of a sed subst in config.status.
8937 # Protect against being in an unquoted here document in config.status.
8939 cat > conftest.hdr
<<\EOF
8942 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8946 sed -n -f conftest.hdr confdefs.h > conftest.vals
8949 # This sed command replaces #undef with comments. This is necessary, for
8950 # example, in the case of _POSIX_SOURCE, which is predefined and required
8951 # on some systems where configure will not decide to define it.
8952 cat >> conftest.vals <<\EOF
8953 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8956 # Break up conftest.vals because some shells have a limit on
8957 # the size of here documents, and old seds have small limits too.
8962 ac_lines=`grep -c . conftest.vals
`
8963 # grep -c gives empty output for an empty file on some AIX systems.
8964 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8965 # Write a limited-size here document to conftest.frag.
8966 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8967 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8969 sed -f conftest.frag conftest.in > conftest.out
8971 mv conftest.out conftest.in
8973 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8975 mv conftest.tail conftest.vals
8979 cat >> $CONFIG_STATUS <<\EOF
8980 rm -f conftest.frag conftest.h
8981 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8982 cat conftest.in >> conftest.h
8984 if cmp -s $ac_file conftest.h 2>/dev/null; then
8985 echo "$ac_file is unchanged"
8988 # Remove last slash and all that follows it. Not all systems have dirname.
8989 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
8990 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8991 # The file is in a subdirectory.
8992 test ! -d "$ac_dir" && mkdir "$ac_dir"
8995 mv conftest.h $ac_file
9001 cat >> $CONFIG_STATUS <<EOF
9002 ac_sources="$nls_cv_header_libgt"
9003 ac_dests="$nls_cv_header_intl"
9006 cat >> $CONFIG_STATUS <<\EOF
9007 srcdir=$ac_given_srcdir
9008 while test -n "$ac_sources"; do
9009 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9010 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9012 echo "linking $srcdir/$ac_source to $ac_dest"
9014 if test ! -r $srcdir/$ac_source; then
9015 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9019 # Make relative symlinks.
9020 # Remove last slash and all that follows it. Not all systems have dirname.
9021 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9022 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9023 # The dest file is in a subdirectory.
9024 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9025 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9026 # A "../" for each directory in $ac_dest_dir_suffix.
9027 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9029 ac_dest_dir_suffix= ac_dots=
9033 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9034 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9037 # Make a symlink if possible; otherwise try a hard link.
9038 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9039 ln $srcdir/$ac_source $ac_dest; then :
9041 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9045 cat >> $CONFIG_STATUS <<EOF
9051 target_alias='${target_alias}'
9053 subdirs='${subdirs}'
9054 oldstyle_subdirs='${oldstyle_subdirs}'
9055 symbolic_link='${symbolic_link}'
9056 program_transform_set='${program_transform_set}'
9057 program_transform_name='${program_transform_name}'
9058 dep_host_xmake_file='${dep_host_xmake_file}'
9059 host_xmake_file='${host_xmake_file}'
9060 dep_tmake_file='${dep_tmake_file}'
9061 tmake_file='${tmake_file}'
9062 thread_file='${thread_file}'
9063 gcc_version='${gcc_version}'
9064 gcc_version_trigger='${gcc_version_trigger}'
9065 local_prefix='${local_prefix}'
9066 build_install_headers_dir='${build_install_headers_dir}'
9067 build_exeext='${build_exeext}'
9068 host_exeext='${host_exeext}'
9069 out_file='${out_file}'
9070 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
9071 SET_MAKE='${SET_MAKE}'
9072 target_list='${target_list}'
9073 target_overrides='${target_overrides}'
9074 host_overrides='${host_overrides}'
9075 cross_defines='${cross_defines}'
9076 cross_overrides='${cross_overrides}'
9077 build_overrides='${build_overrides}'
9078 cpp_install_dir='${cpp_install_dir}'
9081 cat >> $CONFIG_STATUS <<\EOF
9082 case "$CONFIG_FILES" in *po/Makefile.in*)
9083 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9086 . $srcdir/configure.lang
9087 case x$CONFIG_HEADERS in
9088 xauto-host.h:config.in)
9091 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
9092 # bootstrapping and the installation procedure can still use
9093 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
9094 # FLAGS_TO_PASS has been modified to solve the problem there.
9095 # This is virtually a duplicate of what happens in configure.lang; we do
9096 # an extra check to make sure this only happens if ln -s can be used.
9097 if test "$symbolic_link" = "ln -s"; then
9098 for d in .. ${subdirs} ; do
9099 if test $d != ..; then
9102 for t in stage1 stage2 stage3 stage4 include
9105 $symbolic_link ../$t $t 2>/dev/null
9111 # Avoid having to add intl to our include paths.
9112 if test -f intl/libintl.h; then
9113 echo creating libintl.h
9114 echo '#include "intl/libintl.h"' >libintl.h
9119 chmod +x $CONFIG_STATUS
9120 rm -fr confdefs* $ac_clean_files
9121 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1