3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-gnu-as arrange to work with GNU as."
19 --with-stabs arrange to use stabs instead of host debug format."
21 --with-elf arrange to use ELF instead of host debug format."
23 --with-local-prefix=DIR specifies directory to put local include."
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
28 --enable-checking enable expensive run-time checks."
30 --enable-c-cpplib Use cpplib for C."
32 --enable-c-mbchar Enable multibyte characters for C and C++."
34 --enable-threads enable thread usage for target GCC.
35 --enable-threads=LIB use LIB thread package for target GCC."
37 --enable-nls use Native Language Support (disabled by default)"
39 --disable-nls do not use Native Language Support"
41 --with-included-gettext use the GNU gettext library included here"
43 --with-catgets use catgets functions if available"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
49 cache_file
=.
/config.cache
58 program_transform_name
=s
,x
,x
,
66 bindir
='${exec_prefix}/bin'
67 sbindir
='${exec_prefix}/sbin'
68 libexecdir
='${exec_prefix}/libexec'
69 datadir
='${prefix}/share'
70 sysconfdir
='${prefix}/etc'
71 sharedstatedir
='${prefix}/com'
72 localstatedir
='${prefix}/var'
73 libdir
='${exec_prefix}/lib'
74 includedir
='${prefix}/include'
75 oldincludedir
='/usr/include'
76 infodir
='${prefix}/info'
77 mandir
='${prefix}/man'
79 # Initialize some other variables.
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
107 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
108 bindir
="$ac_optarg" ;;
110 -build |
--build |
--buil |
--bui |
--bu)
112 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
113 build
="$ac_optarg" ;;
115 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
116 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
117 ac_prev
=cache_file
;;
118 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
119 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
120 cache_file
="$ac_optarg" ;;
122 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
124 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
126 datadir
="$ac_optarg" ;;
128 -disable-* |
--disable-*)
129 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* |
--enable-*)
138 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
151 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
152 |
--exec |
--exe |
--ex)
153 ac_prev
=exec_prefix
;;
154 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
155 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
156 |
--exec=* |
--exe=* |
--ex=*)
157 exec_prefix
="$ac_optarg" ;;
159 -gas |
--gas |
--ga |
--g)
160 # Obsolete; use --with-gas.
163 -help |
--help |
--hel |
--he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host |
--host |
--hos |
--ho)
220 -host=* |
--host=* |
--hos=* |
--ho=*)
223 -includedir |
--includedir |
--includedi |
--included |
--include \
224 |
--includ |
--inclu |
--incl |
--inc)
225 ac_prev
=includedir
;;
226 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
227 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
228 includedir
="$ac_optarg" ;;
230 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
232 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
233 infodir
="$ac_optarg" ;;
235 -libdir |
--libdir |
--libdi |
--libd)
237 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
238 libdir
="$ac_optarg" ;;
240 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
241 |
--libexe |
--libex |
--libe)
242 ac_prev
=libexecdir
;;
243 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
244 |
--libexe=* |
--libex=* |
--libe=*)
245 libexecdir
="$ac_optarg" ;;
247 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
248 |
--localstate |
--localstat |
--localsta |
--localst \
249 |
--locals |
--local |
--loca |
--loc |
--lo)
250 ac_prev
=localstatedir
;;
251 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
252 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
253 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
254 localstatedir
="$ac_optarg" ;;
256 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
258 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
259 mandir
="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
269 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
270 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
273 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
274 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
275 |
--oldin |
--oldi |
--old |
--ol |
--o)
276 ac_prev
=oldincludedir
;;
277 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
278 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
279 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
280 oldincludedir
="$ac_optarg" ;;
282 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
284 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
285 prefix
="$ac_optarg" ;;
287 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
288 |
--program-pre |
--program-pr |
--program-p)
289 ac_prev
=program_prefix
;;
290 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
291 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
292 program_prefix
="$ac_optarg" ;;
294 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
295 |
--program-suf |
--program-su |
--program-s)
296 ac_prev
=program_suffix
;;
297 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
298 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
299 program_suffix
="$ac_optarg" ;;
301 -program-transform-name |
--program-transform-name \
302 |
--program-transform-nam |
--program-transform-na \
303 |
--program-transform-n |
--program-transform- \
304 |
--program-transform |
--program-transfor \
305 |
--program-transfo |
--program-transf \
306 |
--program-trans |
--program-tran \
307 |
--progr-tra |
--program-tr |
--program-t)
308 ac_prev
=program_transform_name
;;
309 -program-transform-name=* |
--program-transform-name=* \
310 |
--program-transform-nam=* |
--program-transform-na=* \
311 |
--program-transform-n=* |
--program-transform-=* \
312 |
--program-transform=* |
--program-transfor=* \
313 |
--program-transfo=* |
--program-transf=* \
314 |
--program-trans=* |
--program-tran=* \
315 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
316 program_transform_name
="$ac_optarg" ;;
318 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
319 |
-silent |
--silent |
--silen |
--sile |
--sil)
322 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
324 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
326 sbindir
="$ac_optarg" ;;
328 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
329 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
330 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
332 ac_prev
=sharedstatedir
;;
333 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
334 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
335 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
337 sharedstatedir
="$ac_optarg" ;;
339 -site |
--site |
--sit)
341 -site=* |
--site=* |
--sit=*)
344 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
346 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
347 srcdir
="$ac_optarg" ;;
349 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
350 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
351 ac_prev
=sysconfdir
;;
352 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
353 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
354 sysconfdir
="$ac_optarg" ;;
356 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
358 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
359 target
="$ac_optarg" ;;
361 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
364 -version |
--version |
--versio |
--versi |
--vers)
365 echo "configure generated by autoconf version 2.12"
369 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package
=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* |
--without-*)
382 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package
=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
395 |
--x-incl |
--x-inc |
--x-in |
--x-i)
396 ac_prev
=x_includes
;;
397 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
398 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
399 x_includes
="$ac_optarg" ;;
401 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
402 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
403 ac_prev
=x_libraries
;;
404 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
405 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
406 x_libraries
="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE
; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
457 |
--no-cr |
--no-c) ;;
458 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
459 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
460 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest
* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file
=tree.c
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted
=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted
=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE
; then
511 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file
in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp
='$CPP $CPPFLAGS'
534 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling
=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
547 ac_n
= ac_c
='\c' ac_t
=
556 symbolic_link
='ln -s'
559 # Check for additional parameters
562 # Check whether --with-gnu-ld or --without-gnu-ld was given.
563 if test "${with_gnu_ld+set}" = set; then
564 withval
="$with_gnu_ld"
572 # Check whether --with-gnu-as or --without-gnu-as was given.
573 if test "${with_gnu_as+set}" = set; then
574 withval
="$with_gnu_as"
582 # Check whether --with-stabs or --without-stabs was given.
583 if test "${with_stabs+set}" = set; then
584 withval
="$with_stabs"
592 # Check whether --with-elf or --without-elf was given.
593 if test "${with_elf+set}" = set; then
601 # Specify the local prefix
602 # Check whether --with-local-prefix or --without-local-prefix was given.
603 if test "${with_local_prefix+set}" = set; then
604 withval
="$with_local_prefix"
605 local_prefix
=$with_local_prefix
607 local_prefix
=/usr
/local
611 # Default local prefix if it is empty
612 if [ x
$local_prefix = x
]; then
613 local_prefix
=/usr
/local
616 # Specify the g++ header file directory
617 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
618 if test "${with_gxx_include_dir+set}" = set; then
619 withval
="$with_gxx_include_dir"
620 gxx_include_dir
=$with_gxx_include_dir
622 gxx_include_dir
='${prefix}/include/g++'
626 # Default g++ header file directory if it is empty
627 if [ x
$gxx_include_dir = x
]; then
628 gxx_include_dir
='${prefix}/include/g++'
631 # Enable expensive internal checks
632 # Check whether --enable-checking or --disable-checking was given.
633 if test "${enable_checking+set}" = set; then
634 enableval
="$enable_checking"
635 cat >> confdefs.h
<<\EOF
636 #define ENABLE_CHECKING 1
643 # Enable use of cpplib for C.
644 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
645 if test "${enable_c_cpplib+set}" = set; then
646 enableval
="$enable_c_cpplib"
647 if [ x
$enable_c_cpplib != xno
]; then
648 extra_c_objs
="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
649 extra_c_flags
=-DUSE_CPPLIB=1
654 # Enable Multibyte Characters for C/C++
655 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
656 if test "${enable_c_mbchar+set}" = set; then
657 enableval
="$enable_c_mbchar"
658 if [ x
$enable_c_mbchar != xno
]; then
659 extra_c_flags
=-DMULTIBYTE_CHARS=1
665 # Pass with no value to take the default
666 # Pass with a value to specify a thread package
667 # Check whether --enable-threads or --disable-threads was given.
668 if test "${enable_threads+set}" = set; then
669 enableval
="$enable_threads"
670 if [ x
$enable_threads = xno
]; then
678 # Check if a valid thread package
679 case x
${enable_threads} in
688 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
690 thread_file
=$enable_threads
693 echo "$enable_threads is an unknown thread package" 1>&2
698 # Determine the host, build, and target systems
700 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
701 if test -f $ac_dir/install-sh
; then
703 ac_install_sh
="$ac_aux_dir/install-sh -c"
705 elif test -f $ac_dir/install.sh
; then
707 ac_install_sh
="$ac_aux_dir/install.sh -c"
711 if test -z "$ac_aux_dir"; then
712 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
714 ac_config_guess
=$ac_aux_dir/config.guess
715 ac_config_sub
=$ac_aux_dir/config.sub
716 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
719 # Do some error checking and defaulting for the host and target type.
721 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
724 # 1. You are not allowed to specify --host, --target, and nonopt at the
726 # 2. Host defaults to nonopt.
727 # 3. If nonopt is not specified, then host defaults to the current host,
728 # as determined by config.guess.
729 # 4. Target and build default to nonopt.
730 # 5. If nonopt is not specified, then target and build default to host.
732 # The aliases save the names the user supplied, while $host etc.
733 # will get canonicalized.
734 case $host---$target---$nonopt in
735 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
736 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
740 # Make sure we can run config.sub.
741 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
742 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
745 echo $ac_n "checking host system type""... $ac_c" 1>&6
746 echo "configure:747: checking host system type" >&5
749 case "$host_alias" in
753 if host_alias
=`$ac_config_guess`; then :
754 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
756 *) host_alias
=$nonopt ;;
760 host=`$ac_config_sub $host_alias`
761 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
762 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
763 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
764 echo "$ac_t""$host" 1>&6
766 echo $ac_n "checking target system type""... $ac_c" 1>&6
767 echo "configure:768: checking target system type" >&5
770 case "$target_alias" in
773 NONE
) target_alias
=$host_alias ;;
774 *) target_alias
=$nonopt ;;
778 target
=`$ac_config_sub $target_alias`
779 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
780 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
781 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
782 echo "$ac_t""$target" 1>&6
784 echo $ac_n "checking build system type""... $ac_c" 1>&6
785 echo "configure:786: checking build system type" >&5
788 case "$build_alias" in
791 NONE
) build_alias
=$host_alias ;;
792 *) build_alias
=$nonopt ;;
796 build
=`$ac_config_sub $build_alias`
797 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
798 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
799 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
800 echo "$ac_t""$build" 1>&6
802 test "$host_alias" != "$target_alias" &&
803 test "$program_prefix$program_suffix$program_transform_name" = \
805 program_prefix
=${target_alias}-
808 # Find the native compiler
809 # Extract the first word of "gcc", so it can be a program name with args.
810 set dummy gcc
; ac_word
=$2
811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
812 echo "configure:813: checking for $ac_word" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 if test -n "$CC"; then
817 ac_cv_prog_CC
="$CC" # Let the user override the test.
819 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
820 for ac_dir
in $PATH; do
821 test -z "$ac_dir" && ac_dir
=.
822 if test -f $ac_dir/$ac_word; then
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
834 echo "$ac_t""no" 1>&6
837 if test -z "$CC"; then
838 # Extract the first word of "cc", so it can be a program name with args.
839 set dummy cc
; ac_word
=$2
840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841 echo "configure:842: checking for $ac_word" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 if test -n "$CC"; then
846 ac_cv_prog_CC
="$CC" # Let the user override the test.
848 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
850 for ac_dir
in $PATH; do
851 test -z "$ac_dir" && ac_dir
=.
852 if test -f $ac_dir/$ac_word; then
853 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
862 if test $ac_prog_rejected = yes; then
863 # We found a bogon in the path, so make sure we never use it.
864 set dummy
$ac_cv_prog_CC
866 if test $# -gt 0; then
867 # We chose a different compiler from the bogus one.
868 # However, it has the same basename, so the bogon will be chosen
869 # first if we set CC to just the basename; use the full file name.
871 set dummy
"$ac_dir/$ac_word" "$@"
879 if test -n "$CC"; then
880 echo "$ac_t""$CC" 1>&6
882 echo "$ac_t""no" 1>&6
885 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
888 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
889 echo "configure:890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
893 ac_cpp
='$CPP $CPPFLAGS'
894 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
895 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
896 cross_compiling
=$ac_cv_prog_cc_cross
898 cat > conftest.
$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
903 if { (eval echo configure
:904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
904 ac_cv_prog_cc_works
=yes
905 # If we can't run a trivial program, we are probably using a cross compiler.
906 if (.
/conftest
; exit) 2>/dev
/null
; then
907 ac_cv_prog_cc_cross
=no
909 ac_cv_prog_cc_cross
=yes
912 echo "configure: failed program was:" >&5
913 cat conftest.
$ac_ext >&5
914 ac_cv_prog_cc_works
=no
918 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
919 if test $ac_cv_prog_cc_works = no
; then
920 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
922 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
923 echo "configure:924: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
924 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
925 cross_compiling
=$ac_cv_prog_cc_cross
927 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
928 echo "configure:929: checking whether we are using GNU C" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 cat > conftest.c
<<EOF
937 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
944 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
946 if test $ac_cv_prog_gcc = yes; then
948 ac_test_CFLAGS
="${CFLAGS+set}"
949 ac_save_CFLAGS
="$CFLAGS"
951 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
952 echo "configure:953: checking whether ${CC-cc} accepts -g" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 echo 'void f(){}' > conftest.c
957 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
966 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
967 if test "$ac_test_CFLAGS" = set; then
968 CFLAGS
="$ac_save_CFLAGS"
969 elif test $ac_cv_prog_cc_g = yes; then
976 test "${CFLAGS+set}" = set || CFLAGS
="-g"
979 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
980 echo "configure:981: checking whether ${MAKE-make} sets \${MAKE}" >&5
981 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
982 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 cat > conftestmake
<<\EOF
987 @
echo 'ac_maketemp="${MAKE}"'
989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
990 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
991 if test -n "$ac_maketemp"; then
992 eval ac_cv_prog_make_
${ac_make}_set
=yes
994 eval ac_cv_prog_make_
${ac_make}_set
=no
998 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
999 echo "$ac_t""yes" 1>&6
1002 echo "$ac_t""no" 1>&6
1003 SET_MAKE
="MAKE=${MAKE-make}"
1007 # Find some useful tools
1008 for ac_prog
in mawk gawk nawk
awk
1010 # Extract the first word of "$ac_prog", so it can be a program name with args.
1011 set dummy
$ac_prog; ac_word
=$2
1012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1013 echo "configure:1014: checking for $ac_word" >&5
1014 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 if test -n "$AWK"; then
1018 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1020 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1021 for ac_dir
in $PATH; do
1022 test -z "$ac_dir" && ac_dir
=.
1023 if test -f $ac_dir/$ac_word; then
1024 ac_cv_prog_AWK
="$ac_prog"
1031 AWK
="$ac_cv_prog_AWK"
1032 if test -n "$AWK"; then
1033 echo "$ac_t""$AWK" 1>&6
1035 echo "$ac_t""no" 1>&6
1038 test -n "$AWK" && break
1041 # Extract the first word of "flex", so it can be a program name with args.
1042 set dummy flex
; ac_word
=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 if test -n "$LEX"; then
1049 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1051 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1052 for ac_dir
in $PATH; do
1053 test -z "$ac_dir" && ac_dir
=.
1054 if test -f $ac_dir/$ac_word; then
1055 ac_cv_prog_LEX
="flex"
1060 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1063 LEX
="$ac_cv_prog_LEX"
1064 if test -n "$LEX"; then
1065 echo "$ac_t""$LEX" 1>&6
1067 echo "$ac_t""no" 1>&6
1070 if test -z "$LEXLIB"
1076 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1077 echo "configure:1078: checking for yywrap in -l$ac_lib" >&5
1078 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1082 ac_save_LIBS
="$LIBS"
1083 LIBS
="-l$ac_lib $LIBS"
1084 cat > conftest.
$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1087 /* Override any gcc2 internal prototype to avoid an error. */
1088 /* We use char because int might match the return type of a gcc2
1089 builtin and then its argument prototype would still apply. */
1096 if { (eval echo configure
:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1098 eval "ac_cv_lib_$ac_lib_var=yes"
1100 echo "configure: failed program was:" >&5
1101 cat conftest.
$ac_ext >&5
1103 eval "ac_cv_lib_$ac_lib_var=no"
1106 LIBS
="$ac_save_LIBS"
1109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1110 echo "$ac_t""yes" 1>&6
1113 echo "$ac_t""no" 1>&6
1118 echo $ac_n "checking for volatile""... $ac_c" 1>&6
1119 echo "configure:1120: checking for volatile" >&5
1120 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 cat > conftest.
$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1131 if { (eval echo configure
:1132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1133 gcc_cv_c_volatile
=yes
1135 echo "configure: failed program was:" >&5
1136 cat conftest.
$ac_ext >&5
1138 gcc_cv_c_volatile
=no
1143 echo "$ac_t""$gcc_cv_c_volatile" 1>&6
1144 if test $gcc_cv_c_volatile = yes ; then
1145 cat >> confdefs.h
<<\EOF
1146 #define HAVE_VOLATILE 1
1151 # Extract the first word of "ranlib", so it can be a program name with args.
1152 set dummy ranlib
; ac_word
=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 if test -n "$RANLIB"; then
1159 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1161 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1162 for ac_dir
in $PATH; do
1163 test -z "$ac_dir" && ac_dir
=.
1164 if test -f $ac_dir/$ac_word; then
1165 ac_cv_prog_RANLIB
="ranlib"
1170 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1173 RANLIB
="$ac_cv_prog_RANLIB"
1174 if test -n "$RANLIB"; then
1175 echo "$ac_t""$RANLIB" 1>&6
1177 echo "$ac_t""no" 1>&6
1180 for ac_prog
in 'bison -y' byacc
1182 # Extract the first word of "$ac_prog", so it can be a program name with args.
1183 set dummy
$ac_prog; ac_word
=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 if test -n "$YACC"; then
1190 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1192 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1193 for ac_dir
in $PATH; do
1194 test -z "$ac_dir" && ac_dir
=.
1195 if test -f $ac_dir/$ac_word; then
1196 ac_cv_prog_YACC
="$ac_prog"
1203 YACC
="$ac_cv_prog_YACC"
1204 if test -n "$YACC"; then
1205 echo "$ac_t""$YACC" 1>&6
1207 echo "$ac_t""no" 1>&6
1210 test -n "$YACC" && break
1212 test -n "$YACC" || YACC
="yacc"
1214 # Find a good install program. We prefer a C program (faster),
1215 # so one script is as good as another. But avoid the broken or
1216 # incompatible versions:
1217 # SysV /etc/install, /usr/sbin/install
1218 # SunOS /usr/etc/install
1219 # IRIX /sbin/install
1221 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1222 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1223 # ./install, which can be erroneously created by make from ./install.sh.
1224 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1225 echo "configure:1226: checking for a BSD compatible install" >&5
1226 if test -z "$INSTALL"; then
1227 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1231 for ac_dir
in $PATH; do
1232 # Account for people who put trailing slashes in PATH elements.
1234 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1236 # OSF1 and SCO ODT 3.0 have their own names for install.
1237 for ac_prog
in ginstall installbsd scoinst
install; do
1238 if test -f $ac_dir/$ac_prog; then
1239 if test $ac_prog = install &&
1240 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1241 # AIX install. It has an incompatible calling convention.
1242 # OSF/1 installbsd also uses dspmsg, but is usable.
1245 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1256 if test "${ac_cv_path_install+set}" = set; then
1257 INSTALL
="$ac_cv_path_install"
1259 # As a last resort, use the slow shell script. We don't cache a
1260 # path for INSTALL within a source directory, because that will
1261 # break other packages using the cache if that directory is
1262 # removed, or if the path is relative.
1263 INSTALL
="$ac_install_sh"
1266 echo "$ac_t""$INSTALL" 1>&6
1268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1269 # It thinks the first close brace ends the variable substitution.
1270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1272 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1275 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1276 echo "configure:1277: checking how to run the C preprocessor" >&5
1277 # On Suns, sometimes $CPP names a directory.
1278 if test -n "$CPP" && test -d "$CPP"; then
1281 if test -z "$CPP"; then
1282 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 # This must be in double quotes, not single quotes, because CPP may get
1286 # substituted into the Makefile and "${CC-cc}" will confuse make.
1288 # On the NeXT, cc -E runs the code through the compiler's parser,
1289 # not just through cpp.
1290 cat > conftest.
$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1296 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1297 { (eval echo configure
:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1298 ac_err
=`grep -v '^ *+' conftest.out`
1299 if test -z "$ac_err"; then
1303 echo "configure: failed program was:" >&5
1304 cat conftest.
$ac_ext >&5
1306 CPP
="${CC-cc} -E -traditional-cpp"
1307 cat > conftest.
$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1313 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1314 { (eval echo configure
:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1315 ac_err
=`grep -v '^ *+' conftest.out`
1316 if test -z "$ac_err"; then
1320 echo "configure: failed program was:" >&5
1321 cat conftest.
$ac_ext >&5
1328 ac_cv_prog_CPP
="$CPP"
1330 CPP
="$ac_cv_prog_CPP"
1332 ac_cv_prog_CPP
="$CPP"
1334 echo "$ac_t""$CPP" 1>&6
1336 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1337 echo "configure:1338: checking for ANSI C header files" >&5
1338 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 cat > conftest.
$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1349 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1350 { (eval echo configure
:1351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1351 ac_err
=`grep -v '^ *+' conftest.out`
1352 if test -z "$ac_err"; then
1354 ac_cv_header_stdc
=yes
1357 echo "configure: failed program was:" >&5
1358 cat conftest.
$ac_ext >&5
1360 ac_cv_header_stdc
=no
1364 if test $ac_cv_header_stdc = yes; then
1365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1366 cat > conftest.
$ac_ext <<EOF
1367 #line 1368 "configure"
1368 #include "confdefs.h"
1371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1372 egrep "memchr" >/dev
/null
2>&1; then
1376 ac_cv_header_stdc
=no
1382 if test $ac_cv_header_stdc = yes; then
1383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1384 cat > conftest.
$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1390 egrep "free" >/dev
/null
2>&1; then
1394 ac_cv_header_stdc
=no
1400 if test $ac_cv_header_stdc = yes; then
1401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1402 if test "$cross_compiling" = yes; then
1405 cat > conftest.
$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1409 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1410 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1412 int main () { int i; for (i = 0; i < 256; i++)
1413 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1417 if { (eval echo configure
:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1421 echo "configure: failed program was:" >&5
1422 cat conftest.
$ac_ext >&5
1424 ac_cv_header_stdc
=no
1432 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1433 if test $ac_cv_header_stdc = yes; then
1434 cat >> confdefs.h
<<\EOF
1435 #define STDC_HEADERS 1
1440 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1441 echo "configure:1442: checking whether time.h and sys/time.h may both be included" >&5
1442 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 cat > conftest.
$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 #include <sys/types.h>
1449 #include <sys/time.h>
1455 if { (eval echo configure
:1456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1457 ac_cv_header_time
=yes
1459 echo "configure: failed program was:" >&5
1460 cat conftest.
$ac_ext >&5
1462 ac_cv_header_time
=no
1467 echo "$ac_t""$ac_cv_header_time" 1>&6
1468 if test $ac_cv_header_time = yes; then
1469 cat >> confdefs.h
<<\EOF
1470 #define TIME_WITH_SYS_TIME 1
1475 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1476 echo "configure:1477: checking whether string.h and strings.h may both be included" >&5
1477 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 cat > conftest.
$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1484 #include <strings.h>
1489 if { (eval echo configure
:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1491 gcc_cv_header_string
=yes
1493 echo "configure: failed program was:" >&5
1494 cat conftest.
$ac_ext >&5
1496 gcc_cv_header_string
=no
1501 echo "$ac_t""$gcc_cv_header_string" 1>&6
1502 if test $gcc_cv_header_string = yes; then
1503 cat >> confdefs.h
<<\EOF
1504 #define STRING_WITH_STRINGS 1
1509 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
1510 echo "configure:1511: checking for inttypes.h" >&5
1511 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1514 cat > conftest.
$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1517 #include <sys/types.h>
1518 #include <inttypes.h>
1523 if { (eval echo configure
:1524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1525 gcc_cv_header_inttypes_h
=yes
1527 echo "configure: failed program was:" >&5
1528 cat conftest.
$ac_ext >&5
1530 gcc_cv_header_inttypes_h
=no
1535 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
1536 if test $gcc_cv_header_inttypes_h = yes; then
1537 cat >> confdefs.h
<<\EOF
1538 #define HAVE_INTTYPES_H 1
1543 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1544 echo "configure:1545: checking for sys/wait.h that is POSIX.1 compatible" >&5
1545 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1548 cat > conftest.
$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 #include <sys/types.h>
1552 #include <sys/wait.h>
1554 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1557 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1562 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1565 if { (eval echo configure
:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1567 ac_cv_header_sys_wait_h
=yes
1569 echo "configure: failed program was:" >&5
1570 cat conftest.
$ac_ext >&5
1572 ac_cv_header_sys_wait_h
=no
1577 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1578 if test $ac_cv_header_sys_wait_h = yes; then
1579 cat >> confdefs.h
<<\EOF
1580 #define HAVE_SYS_WAIT_H 1
1585 for ac_hdr
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
1586 fcntl.h unistd.h stab.h sys
/file.h sys
/time.h malloc.h \
1587 sys
/resource.h sys
/param.h sys
/times.h sys
/types.h sys
/stat.h
1589 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_hdr" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.
$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure
:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err
=`grep -v '^ *+' conftest.out`
1603 if test -z "$ac_err"; then
1605 eval "ac_cv_header_$ac_safe=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.
$ac_ext >&5
1611 eval "ac_cv_header_$ac_safe=no"
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1618 cat >> confdefs.h
<<EOF
1619 #define $ac_tr_hdr 1
1623 echo "$ac_t""no" 1>&6
1628 for ac_func
in strtoul bsearch strerror putenv popen bcopy bzero bcmp index \
1629 rindex
kill getrlimit setrlimit atoll atoq sysconf isascii \
1630 gettimeofday strsignal
1632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1633 echo "configure:1634: checking for $ac_func" >&5
1634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 cat > conftest.
$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1640 /* System header to define __stub macros and hopefully few prototypes,
1641 which can conflict with char $ac_func(); below. */
1643 /* Override any gcc2 internal prototype to avoid an error. */
1644 /* We use char because int might match the return type of a gcc2
1645 builtin and then its argument prototype would still apply. */
1650 /* The GNU C library defines this for functions which it implements
1651 to always fail with ENOSYS. Some functions are actually named
1652 something starting with __ and the normal name is an alias. */
1653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1661 if { (eval echo configure
:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1663 eval "ac_cv_func_$ac_func=yes"
1665 echo "configure: failed program was:" >&5
1666 cat conftest.
$ac_ext >&5
1668 eval "ac_cv_func_$ac_func=no"
1673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1674 echo "$ac_t""yes" 1>&6
1675 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1676 cat >> confdefs.h
<<EOF
1677 #define $ac_tr_func 1
1681 echo "$ac_t""no" 1>&6
1687 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1688 echo "configure:1689: checking for vprintf" >&5
1689 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 cat > conftest.
$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1695 /* System header to define __stub macros and hopefully few prototypes,
1696 which can conflict with char vprintf(); below. */
1698 /* Override any gcc2 internal prototype to avoid an error. */
1699 /* We use char because int might match the return type of a gcc2
1700 builtin and then its argument prototype would still apply. */
1705 /* The GNU C library defines this for functions which it implements
1706 to always fail with ENOSYS. Some functions are actually named
1707 something starting with __ and the normal name is an alias. */
1708 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1716 if { (eval echo configure
:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1718 eval "ac_cv_func_vprintf=yes"
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1723 eval "ac_cv_func_vprintf=no"
1728 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1729 echo "$ac_t""yes" 1>&6
1730 cat >> confdefs.h
<<\EOF
1731 #define HAVE_VPRINTF 1
1735 echo "$ac_t""no" 1>&6
1738 if test "$ac_cv_func_vprintf" != yes; then
1739 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1740 echo "configure:1741: checking for _doprnt" >&5
1741 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 cat > conftest.
$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char _doprnt(); below. */
1750 /* Override any gcc2 internal prototype to avoid an error. */
1751 /* We use char because int might match the return type of a gcc2
1752 builtin and then its argument prototype would still apply. */
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1768 if { (eval echo configure
:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1770 eval "ac_cv_func__doprnt=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.
$ac_ext >&5
1775 eval "ac_cv_func__doprnt=no"
1780 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1782 cat >> confdefs.h
<<\EOF
1783 #define HAVE_DOPRNT 1
1787 echo "$ac_t""no" 1>&6
1794 if test $ac_cv_func_vprintf != yes ; then
1796 if test $ac_cv_func__doprnt != yes ; then
1803 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6
1804 echo "configure:1805: checking whether the printf functions support %p" >&5
1805 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 if test "$cross_compiling" = yes; then
1809 gcc_cv_func_printf_ptr
=no
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1819 char *p = buf, *q = NULL;
1820 sprintf(buf, "%p", p);
1821 sscanf(buf, "%p", &q);
1825 if { (eval echo configure
:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1827 gcc_cv_func_printf_ptr
=yes
1829 echo "configure: failed program was:" >&5
1830 cat conftest.
$ac_ext >&5
1832 gcc_cv_func_printf_ptr
=no
1837 rm -f core core.
* *.core
1840 echo "$ac_t""$gcc_cv_func_printf_ptr" 1>&6
1841 if test $gcc_cv_func_printf_ptr = yes ; then
1842 cat >> confdefs.h
<<\EOF
1843 #define HAVE_PRINTF_PTR 1
1848 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1849 echo "configure:1850: checking for pid_t" >&5
1850 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 cat > conftest.
$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1856 #include <sys/types.h>
1862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1863 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1865 ac_cv_type_pid_t
=yes
1873 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1874 if test $ac_cv_type_pid_t = no
; then
1875 cat >> confdefs.h
<<\EOF
1881 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
1882 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
1883 echo "configure:1884: checking for vfork.h" >&5
1884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 cat > conftest.
$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1892 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure
:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err
=`grep -v '^ *+' conftest.out`
1895 if test -z "$ac_err"; then
1897 eval "ac_cv_header_$ac_safe=yes"
1900 echo "configure: failed program was:" >&5
1901 cat conftest.
$ac_ext >&5
1903 eval "ac_cv_header_$ac_safe=no"
1907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 cat >> confdefs.h
<<\EOF
1910 #define HAVE_VFORK_H 1
1914 echo "$ac_t""no" 1>&6
1917 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
1918 echo "configure:1919: checking for working vfork" >&5
1919 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 if test "$cross_compiling" = yes; then
1923 echo $ac_n "checking for vfork""... $ac_c" 1>&6
1924 echo "configure:1925: checking for vfork" >&5
1925 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 /* System header to define __stub macros and hopefully few prototypes,
1932 which can conflict with char vfork(); below. */
1934 /* Override any gcc2 internal prototype to avoid an error. */
1935 /* We use char because int might match the return type of a gcc2
1936 builtin and then its argument prototype would still apply. */
1941 /* The GNU C library defines this for functions which it implements
1942 to always fail with ENOSYS. Some functions are actually named
1943 something starting with __ and the normal name is an alias. */
1944 #if defined (__stub_vfork) || defined (__stub___vfork)
1952 if { (eval echo configure
:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1954 eval "ac_cv_func_vfork=yes"
1956 echo "configure: failed program was:" >&5
1957 cat conftest.
$ac_ext >&5
1959 eval "ac_cv_func_vfork=no"
1964 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
1965 echo "$ac_t""yes" 1>&6
1968 echo "$ac_t""no" 1>&6
1972 cat > conftest.
$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 /* Thanks to Paul Eggert for this test. */
1977 #include <sys/types.h>
1978 #include <sys/stat.h>
1979 #ifdef HAVE_UNISTD_H
1985 /* On some sparc systems, changes by the child to local and incoming
1986 argument registers are propagated back to the parent.
1987 The compiler is told about this with #include <vfork.h>,
1988 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
1989 Test for this by using a static variable whose address
1990 is put into a register that is clobbered by the vfork. */
1993 sparc_address_test (int arg)
1995 sparc_address_test (arg) int arg;
2013 pid_t parent = getpid ();
2016 sparc_address_test ();
2021 /* Here is another test for sparc vfork register problems.
2022 This test uses lots of local variables, at least
2023 as many local variables as main has allocated so far
2024 including compiler temporaries. 4 locals are enough for
2025 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2026 A buggy compiler should reuse the register of parent
2027 for one of the local variables, since it will think that
2028 parent can't possibly be used any more in this routine.
2029 Assigning to the local variable will thus munge parent
2030 in the parent process. */
2032 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2033 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2034 /* Convince the compiler that p..p7 are live; otherwise, it might
2035 use the same hardware register for all 8 local variables. */
2036 if (p != p1 || p != p2 || p != p3 || p != p4
2037 || p != p5 || p != p6 || p != p7)
2040 /* On some systems (e.g. IRIX 3.3),
2041 vfork doesn't separate parent from child file descriptors.
2042 If the child closes a descriptor before it execs or exits,
2043 this munges the parent's descriptor as well.
2044 Test for this by closing stdout in the child. */
2045 _exit(close(fileno(stdout)) != 0);
2050 while (wait(&status) != child)
2053 /* Was there some problem with vforking? */
2056 /* Did the child fail? (This shouldn't happen.) */
2059 /* Did the vfork/compiler bug occur? */
2060 || parent != getpid()
2062 /* Did the file descriptor bug occur? */
2063 || fstat(fileno(stdout), &st) != 0
2068 if { (eval echo configure
:2069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2070 ac_cv_func_vfork_works
=yes
2072 echo "configure: failed program was:" >&5
2073 cat conftest.
$ac_ext >&5
2075 ac_cv_func_vfork_works
=no
2082 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2083 if test $ac_cv_func_vfork_works = no
; then
2084 cat >> confdefs.h
<<\EOF
2091 for ac_func
in bcopy bzero bcmp index rindex getenv atol sbrk abort \
2092 strerror getcwd getwd strsignal
2094 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2095 echo "configure:2096: checking whether $ac_func must be declared" >&5
2096 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.
$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2104 #ifdef STRING_WITH_STRINGS
2105 # include <string.h>
2106 # include <strings.h>
2108 # ifdef HAVE_STRING_H
2109 # include <string.h>
2111 # ifdef HAVE_STRINGS_H
2112 # include <strings.h>
2116 #ifdef HAVE_STDLIB_H
2119 #ifdef HAVE_UNISTD_H
2123 #define rindex strrchr
2126 #define index strchr
2130 char *(*pfn) = (char *(*)) $ac_func
2133 if { (eval echo configure
:2134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2135 eval "gcc_cv_decl_needed_$ac_func=no"
2137 echo "configure: failed program was:" >&5
2138 cat conftest.
$ac_ext >&5
2140 eval "gcc_cv_decl_needed_$ac_func=yes"
2145 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2148 cat >> confdefs.h
<<EOF
2149 #define $gcc_tr_decl 1
2153 echo "$ac_t""no" 1>&6
2159 for ac_func
in getrlimit setrlimit
2161 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2162 echo "configure:2163: checking whether $ac_func must be declared" >&5
2163 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.
$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2171 #ifdef STRING_WITH_STRINGS
2172 # include <string.h>
2173 # include <strings.h>
2175 # ifdef HAVE_STRING_H
2176 # include <string.h>
2178 # ifdef HAVE_STRINGS_H
2179 # include <strings.h>
2183 #ifdef HAVE_STDLIB_H
2186 #ifdef HAVE_UNISTD_H
2190 #define rindex strrchr
2193 #define index strchr
2195 #include <sys/types.h>
2196 #ifdef HAVE_SYS_RESOURCE_H
2197 #include <sys/resource.h>
2201 char *(*pfn) = (char *(*)) $ac_func
2204 if { (eval echo configure
:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2206 eval "gcc_cv_decl_needed_$ac_func=no"
2208 echo "configure: failed program was:" >&5
2209 cat conftest.
$ac_ext >&5
2211 eval "gcc_cv_decl_needed_$ac_func=yes"
2216 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2218 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2219 cat >> confdefs.h
<<EOF
2220 #define $gcc_tr_decl 1
2224 echo "$ac_t""no" 1>&6
2230 for ac_func
in malloc realloc calloc free
2232 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
2233 echo "configure:2234: checking whether $ac_func must be declared" >&5
2234 if eval "test \"`echo '$''{'gcc_cv_decl_needed_$ac_func'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2242 #ifdef STRING_WITH_STRINGS
2243 # include <string.h>
2244 # include <strings.h>
2246 # ifdef HAVE_STRING_H
2247 # include <string.h>
2249 # ifdef HAVE_STRINGS_H
2250 # include <strings.h>
2254 #ifdef HAVE_STDLIB_H
2257 #ifdef HAVE_UNISTD_H
2261 #define rindex strrchr
2264 #define index strchr
2266 #ifdef HAVE_MALLOC_H
2271 char *(*pfn) = (char *(*)) $ac_func
2274 if { (eval echo configure
:2275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2276 eval "gcc_cv_decl_needed_$ac_func=no"
2278 echo "configure: failed program was:" >&5
2279 cat conftest.
$ac_ext >&5
2281 eval "gcc_cv_decl_needed_$ac_func=yes"
2286 if eval "test \"`echo '$gcc_cv_decl_needed_'$ac_func`\" = yes"; then
2287 echo "$ac_t""yes" 1>&6
2288 gcc_tr_decl
=NEED_DECLARATION_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2289 cat >> confdefs.h
<<EOF
2290 #define $gcc_tr_decl 1
2294 echo "$ac_t""no" 1>&6
2300 echo $ac_n "checking whether cpp understands the stringify operator""... $ac_c" 1>&6
2301 echo "configure:2302: checking whether cpp understands the stringify operator" >&5
2302 if eval "test \"`echo '$''{'gcc_cv_c_have_stringify'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2311 char *test = S(foo);
2314 if { (eval echo configure
:2315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2316 gcc_cv_c_have_stringify
=yes
2318 echo "configure: failed program was:" >&5
2319 cat conftest.
$ac_ext >&5
2321 gcc_cv_c_have_stringify
=no
2326 echo "$ac_t""$gcc_cv_c_have_stringify" 1>&6
2327 if test $gcc_cv_c_have_stringify = yes; then
2328 cat >> confdefs.h
<<\EOF
2329 #define HAVE_CPP_STRINGIFY 1
2334 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2335 echo "configure:2336: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2336 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 cat > conftest.
$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 #include <sys/types.h>
2344 /* NetBSD declares sys_siglist in unistd.h. */
2345 #ifdef HAVE_UNISTD_H
2349 char *msg = *(sys_siglist + 1);
2352 if { (eval echo configure
:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2354 ac_cv_decl_sys_siglist
=yes
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 ac_cv_decl_sys_siglist
=no
2364 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2365 if test $ac_cv_decl_sys_siglist = yes; then
2366 cat >> confdefs.h
<<\EOF
2367 #define SYS_SIGLIST_DECLARED 1
2381 build_broken_install
=
2382 build_install_headers_dir
=install-headers-tar
2387 host_truncate_target
=
2389 # Decode the host machine, then the target machine.
2390 # For the host machine, we save the xm_file variable as host_xm_file;
2391 # then we decode the target machine and forget everything else
2392 # that came from the host machine.
2393 for machine
in $build $host $target; do
2407 # Set this to force installation and use of collect2.
2409 # Set this to override the default target model.
2411 # Set this to force use of install.sh.
2413 # Set this to control which fixincludes program to use.
2414 fixincludes
=fixincludes
2415 # Set this to control how the header file directory is installed.
2416 install_headers_dir
=install-headers-tar
2417 # Set this to a non-empty list of args to pass to cpp if the target
2418 # wants its .md file passed through cpp.
2420 # Set this if directory names should be truncated to 14 characters.
2422 # Set this if gdb needs a dir command with `dirname $out_file`
2423 gdb_needs_out_file_path
=
2424 # Set this if the build machine requires executables to have a
2428 # Set default cpu_type, tm_file and xm_file so it can be updated in
2429 # each machine entry.
2430 cpu_type
=`echo $machine | sed 's/-.*$//'`
2464 tm_file
=${cpu_type}/${cpu_type}.h
2465 xm_file
=${cpu_type}/xm-
${cpu_type}.h
2467 # Set the default macros to define for GNU/Linux systems.
2470 xm_defines
="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
2475 # Support site-specific machine types.
2477 cpu_type
=`echo $machine | sed -e 's/-.*//'`
2478 rest
=`echo $machine | sed -e "s/$cpu_type-//"`
2479 xm_file
=${cpu_type}/xm-
$rest.h
2480 tm_file
=${cpu_type}/$rest.h
2481 if [ -f $srcdir/config
/${cpu_type}/x-
$rest ] ; \
2482 then xmake_file
=${cpu_type}/x-
$rest; \
2485 if [ -f $srcdir/config
/${cpu_type}/t-
$rest ] ; \
2486 then tmake_file
=${cpu_type}/t-
$rest; \
2492 a29k-
*-bsd* | a29k-
*-sym1*)
2493 tm_file
="${tm_file} a29k/unix.h"
2495 xmake_file
=a29k
/x-unix
2498 a29k-
*-udi | a29k-
*-coff)
2499 tm_file
="${tm_file} dbxcoff.h a29k/udi.h"
2500 tmake_file
=a29k
/t-a29kbare
2503 tm_file
="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
2504 tmake_file
=a29k
/t-vx29k
2505 extra_parts
="crtbegin.o crtend.o"
2507 a29k-
*-*) # Default a29k environment.
2510 alpha
*-*-linux-gnuecoff*)
2511 tm_file
="${tm_file} alpha/linux.h"
2513 target_cpu_default
="MASK_GAS"
2516 fixincludes
=Makefile.
in
2519 alpha
*-*-linux-gnulibc1*)
2520 tm_file
="${tm_file} alpha/linux.h alpha/elf.h"
2522 target_cpu_default
="MASK_GAS"
2523 tmake_file
="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
2524 extra_parts
="crtbegin.o crtend.o"
2526 fixincludes
=Makefile.
in
2528 if [ x
$enable_threads = xyes
]; then
2532 alpha
*-*-linux-gnu*)
2533 tm_file
="${tm_file} alpha/linux.h alpha/elf.h"
2535 target_cpu_default
="MASK_GAS"
2536 tmake_file
="t-linux alpha/t-linux alpha/t-crtbe"
2537 extra_parts
="crtbegin.o crtend.o"
2539 fixincludes
=Makefile.
in
2541 if [ x
$enable_threads = xyes
]; then
2546 if [ x
$stabs = xyes
]
2548 tm_file
="${tm_file} dbx.h"
2550 if [ x
$gas != xyes
]
2552 extra_passes
="mips-tfile mips-tdump"
2558 tm_file
="${tm_file} alpha/osf12.h alpha/osf2or3.h"
2561 tm_file
="${tm_file} alpha/osf2or3.h"
2564 # Some versions of OSF4 (specifically X4.0-9 296.7) have
2565 # a broken tar, so we use cpio instead.
2566 install_headers_dir
=install-headers-cpio
2570 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2571 target_cpu_default
=MASK_SUPPORT_ARCH
2576 tm_file
="${tm_file} dbx.h alpha/vxworks.h"
2577 # If we're on an Alpha, we assume we use the system assembler,
2578 # so check it to see if we should put in .arch lines.
2580 *-*-osf4.0
[b-z
] |
*-*-osf4.
[1-9]*)
2581 target_cpu_default
=MASK_SUPPORT_ARCH
2586 extra_passes
="mips-tfile mips-tdump"
2592 tm_file
="${tm_file} alpha/win-nt.h"
2593 target_cpu_default
=MASK_WINDOWS_NT
2594 xm_file
="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
2595 tmake_file
=t-libc-ok
2596 xmake_file
=winnt
/x-winnt
2597 extra_host_objs
=oldnames.o
2598 extra_gcc_objs
="spawnv.o oldnames.o"
2599 fixincludes
=fixinc.winnt
2600 if [ x
$gnu_ld != xyes
]
2602 extra_programs
=ld.exe
2604 if [ x
$enable_threads = xyes
]; then
2610 xm_file
="${xm_file} alpha/xm-vms.h"
2611 tmake_file
=alpha
/t-vms
2612 fixincludes
=Makefile.
in
2615 extra_parts
="crtinit.o crtfini.o"
2617 arm-
*-coff* | armel-
*-coff*)
2619 tmake_file
=arm
/t-bare
2621 arm-
*-riscix1.
[01]*) # Acorn RISC machine (early versions)
2622 tm_file
=arm
/riscix1-1.h
2625 arm-
*-riscix*) # Acorn RISC machine
2628 tm_file
=arm
/rix-gas.h
2630 tm_file
=arm
/riscix.h
2632 xmake_file
=arm
/x-riscix
2633 tmake_file
=arm
/t-riscix
2636 arm-semi-aout | armel-semi-aout
)
2638 tmake_file
=arm
/t-semi
2639 fixincludes
=Makefile.
in # There is nothing to fix
2641 arm-semi-aof | armel-semi-aof
)
2642 tm_file
=arm
/semiaof.h
2643 tmake_file
=arm
/t-semiaof
2644 fixincludes
=Makefile.
in # There is nothing to fix
2647 tm_file
=arm
/netbsd.h
2648 xm_file
="xm-siglist.h ${xm_file}"
2649 tmake_file
="t-netbsd arm/t-netbsd"
2650 # On NetBSD, the headers are already okay, except for math.h.
2651 fixincludes
=fixinc.wrap
2653 arm-
*-linux-gnuaout*) # ARM GNU/Linux
2656 tm_file
=arm
/linux-gas.h
2657 tmake_file
=arm
/t-linux
2658 fixincludes
=Makefile.
in
2664 tmake_file
=arm
/t-bare
2666 c1-convex-
*) # Convex C1
2667 target_cpu_default
=1
2669 fixincludes
=Makefile.
in
2671 c2-convex-
*) # Convex C2
2672 target_cpu_default
=2
2674 fixincludes
=Makefile.
in
2677 target_cpu_default
=4
2679 fixincludes
=Makefile.
in
2682 target_cpu_default
=8
2684 fixincludes
=Makefile.
in
2687 target_cpu_default
=16
2689 fixincludes
=Makefile.
in
2691 clipper-intergraph-clix
*)
2692 tm_file
="${tm_file} svr3.h clipper/clix.h"
2693 xm_file
=clipper
/xm-clix.h
2694 xmake_file
=clipper
/x-clix
2695 extra_headers
=va-clipper.h
2696 extra_parts
="crtbegin.o crtend.o"
2697 install_headers_dir
=install-headers-cpio
2705 # This hasn't been upgraded to GCC 2.
2706 # fx80-alliant-*) # Alliant FX/80
2712 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2713 xm_file
=pa
/xm-papro.h
2717 target_cpu_default
=1
2718 tm_file
="${tm_file} pa/pa-osf.h"
2720 fixincludes
=Makefile.
in
2723 tm_file
="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
2724 xm_file
=pa
/xm-papro.h
2728 tm_file
="${tm_file} pa/pa-osf.h"
2730 fixincludes
=Makefile.
in
2733 target_cpu_default
=1
2735 fixincludes
=Makefile.
in
2739 fixincludes
=Makefile.
in
2742 tm_file
="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
2743 xm_file
=pa
/xm-pahpux.h
2744 xmake_file
=pa
/x-pa-hpux
2747 tm_file
="${tm_file} pa/gas.h"
2750 install_headers_dir
=install-headers-cpio
2753 hppa1.0
-*-hpux8.0
[0-2]*)
2754 tm_file
="${tm_file} pa/pa-hpux.h"
2755 xm_file
=pa
/xm-pahpux.h
2756 xmake_file
=pa
/x-pa-hpux
2759 tm_file
="${tm_file} pa/pa-gas.h"
2761 tm_file
="pa/pa-oldas.h ${tm_file}"
2764 install_headers_dir
=install-headers-cpio
2767 hppa1.1
-*-hpux8.0
[0-2]*)
2768 target_cpu_default
=1
2769 tm_file
="${tm_file} pa/pa-hpux.h"
2770 xm_file
=pa
/xm-pahpux.h
2771 xmake_file
=pa
/x-pa-hpux
2774 tm_file
="${tm_file} pa/pa-gas.h"
2776 tm_file
="pa/pa-oldas.h ${tm_file}"
2779 install_headers_dir
=install-headers-cpio
2783 target_cpu_default
=1
2784 tm_file
="${tm_file} pa/pa-hpux.h"
2785 xm_file
=pa
/xm-pahpux.h
2786 xmake_file
=pa
/x-pa-hpux
2789 tm_file
="${tm_file} pa/pa-gas.h"
2792 install_headers_dir
=install-headers-cpio
2796 tm_file
="${tm_file} pa/pa-hpux.h"
2797 xm_file
=pa
/xm-pahpux.h
2798 xmake_file
=pa
/x-pa-hpux
2801 tm_file
="${tm_file} pa/pa-gas.h"
2804 install_headers_dir
=install-headers-cpio
2808 target_cpu_default
=1
2809 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2810 xm_file
=pa
/xm-pahpux.h
2811 xmake_file
=pa
/x-pa-hpux
2814 tm_file
="${tm_file} pa/pa-gas.h"
2817 install_headers_dir
=install-headers-cpio
2821 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2822 xm_file
=pa
/xm-pahpux.h
2823 xmake_file
=pa
/x-pa-hpux
2826 tm_file
="${tm_file} pa/pa-gas.h"
2829 install_headers_dir
=install-headers-cpio
2833 target_cpu_default
=1
2834 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2835 xm_file
=pa
/xm-pahpux.h
2836 xmake_file
=pa
/x-pa-hpux
2839 tm_file
="${tm_file} pa/pa-gas.h"
2842 install_headers_dir
=install-headers-cpio
2846 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2847 xm_file
=pa
/xm-pahpux.h
2848 xmake_file
=pa
/x-pa-hpux
2851 tm_file
="${tm_file} pa/pa-gas.h"
2854 install_headers_dir
=install-headers-cpio
2858 target_cpu_default
=1
2859 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2860 xm_file
=pa
/xm-pahpux.h
2861 xmake_file
=pa
/x-pa-hpux
2864 tm_file
="${tm_file} pa/pa-gas.h"
2867 install_headers_dir
=install-headers-cpio
2871 tm_file
="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2872 xm_file
=pa
/xm-pahpux.h
2873 xmake_file
=pa
/x-pa-hpux
2876 tm_file
="${tm_file} pa/pa-gas.h"
2879 install_headers_dir
=install-headers-cpio
2883 target_cpu_default
=1
2885 fixincludes
=Makefile.
in
2889 i
[34567]86-ibm-aix*) # IBM PS/2 running AIX
2892 tm_file
=i386
/aix386.h
2893 extra_parts
="crtbegin.o crtend.o"
2894 tmake_file
=i386
/t-crtstuff
2896 tm_file
=i386
/aix386ng.h
2899 xm_file
="xm-alloca.h i386/xm-aix.h ${xm_file}"
2901 xmake_file
=i386
/x-aix
2904 i486-ncr-sysv4
*) # NCR 3000 - i486 running system V.4
2905 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2906 xm_defines
="USG POSIX SMALL_ARG_MAX"
2907 xmake_file
=i386
/x-ncr3000
2908 if [ x
$stabs = xyes
-a x
$gas = xyes
]
2910 tm_file
=i386
/sysv4gdb.h
2912 tm_file
=i386
/sysv4.h
2914 extra_parts
="crtbegin.o crtend.o"
2915 tmake_file
=i386
/t-crtpic
2919 xm_file
=i386
/xm-next.h
2920 tmake_file
=i386
/t-next
2921 xmake_file
=i386
/x-next
2922 extra_objs
=nextstep.o
2923 if [ x
$enable_threads = xyes
]; then
2927 i
[34567]86-sequent-bsd*) # 80386 from Sequent
2931 tm_file
=i386
/seq-gas.h
2933 tm_file
=i386
/sequent.h
2936 i
[34567]86-sequent-ptx1*)
2937 xm_defines
="USG SVR3"
2938 xmake_file
=i386
/x-sysv3
2939 tm_file
=i386
/seq-sysv3.h
2940 tmake_file
=i386
/t-crtstuff
2941 fixincludes
=fixinc.
ptx
2942 extra_parts
="crtbegin.o crtend.o"
2943 install_headers_dir
=install-headers-cpio
2946 i
[34567]86-sequent-ptx2* | i
[34567]86-sequent-sysv3*)
2947 xm_defines
="USG SVR3"
2948 xmake_file
=i386
/x-sysv3
2949 tm_file
=i386
/seq2-sysv3.h
2950 tmake_file
=i386
/t-crtstuff
2951 extra_parts
="crtbegin.o crtend.o"
2952 fixincludes
=fixinc.
ptx
2953 install_headers_dir
=install-headers-cpio
2956 i
[34567]86-sequent-ptx4* | i
[34567]86-sequent-sysv4*)
2957 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
2958 xm_defines
="USG POSIX SMALL_ARG_MAX"
2960 tm_file
=i386
/ptx4-i.h
2962 extra_parts
="crtbegin.o crtend.o"
2963 fixincludes
=fixinc.
ptx
2964 install_headers_dir
=install-headers-cpio
2967 i386-sun-sunos
*) # Sun i386 roadrunner
2973 tm_file
=i386
/i386-aout.h
2974 tmake_file
=i386
/t-i386bare
2976 i
[34567]86-*-bsdi* | i
[34567]86-*-bsd386*)
2977 tm_file
=i386
/bsd386.h
2978 # tmake_file=t-libc-ok
2981 tm_file
=i386
/386bsd.h
2982 # tmake_file=t-libc-ok
2983 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2986 i
[34567]86-*-freebsdelf*)
2987 tm_file
="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2988 # On FreeBSD, the headers are already ok, except for math.h.
2989 fixincludes
=fixinc.wrap
2990 tmake_file
=i386
/t-freebsd
2995 i
[34567]86-*-freebsd*)
2996 tm_file
=i386
/freebsd.h
2997 # On FreeBSD, the headers are already ok, except for math.h.
2998 fixincludes
=fixinc.wrap
2999 tmake_file
=i386
/t-freebsd
3001 i
[34567]86-*-netbsd*)
3002 tm_file
=i386
/netbsd.h
3003 # On NetBSD, the headers are already okay, except for math.h.
3004 fixincludes
=fixinc.wrap
3008 tm_file
=i386
/i386-coff.h
3009 tmake_file
=i386
/t-i386bare
3011 i
[34567]86-*-isc*) # 80386 running ISC system
3012 xm_file
="${xm_file} i386/xm-isc.h"
3013 xm_defines
="USG SVR3"
3015 i
[34567]86-*-isc[34]*)
3016 xmake_file
=i386
/x-isc3
3019 xmake_file
=i386
/x-isc
3022 if [ x
$gas = xyes
-a x
$stabs = xyes
]
3024 tm_file
=i386
/iscdbx.h
3025 tmake_file
=i386
/t-svr3dbx
3026 extra_parts
="svr3.ifile svr3z.ifile"
3028 tm_file
=i386
/isccoff.h
3029 tmake_file
=i386
/t-crtstuff
3030 extra_parts
="crtbegin.o crtend.o"
3032 install_headers_dir
=install-headers-cpio
3035 i
[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3036 # with a.out format using
3038 xmake_file
=x-linux-aout
3039 tmake_file
="t-linux-aout i386/t-crtstuff"
3040 tm_file
=i386
/linux-oldld.h
3041 fixincludes
=Makefile.
in
3045 i
[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3047 xmake_file
=x-linux-aout
3048 tmake_file
="t-linux-aout i386/t-crtstuff"
3049 tm_file
=i386
/linux-aout.h
3050 fixincludes
=Makefile.
in #The headers are ok already.
3054 i
[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3055 # with ELF format using the
3056 # GNU/Linux C library 5
3058 tm_file
=i386
/linux.h
3059 tmake_file
="t-linux t-linux-gnulibc1 i386/t-crtstuff"
3060 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3061 fixincludes
=Makefile.
in # The headers are ok already.
3064 if [ x
$enable_threads = xyes
]; then
3065 thread_file
='single'
3068 i
[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
3069 # with ELF format using glibc 2
3070 # aka GNU/Linux C library 6
3072 tm_file
=i386
/linux.h
3073 tmake_file
="t-linux i386/t-crtstuff"
3074 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3075 fixincludes
=Makefile.
in # The headers are ok already.
3078 if [ x
$enable_threads = xyes
]; then
3084 i
[34567]86-go32-msdos | i
[34567]86-*-go32*)
3085 xm_file
=i386
/xm-go32.h
3087 tmake_file
=i386
/t-go32
3089 i
[34567]86-pc-msdosdjgpp*)
3090 xm_file
=i386
/xm-go32.h
3092 tmake_file
=i386
/t-go32
3096 i
[34567]86-moss-msdos* | i
[34567]86-*-moss*)
3098 tmake_file
=t-libc-ok
3099 fixincludes
=Makefile.
in
3103 i
[34567]86-*-lynxos*)
3108 tm_file
=i386
/lynx-ng.h
3110 xm_file
=i386
/xm-lynx.h
3111 tmake_file
=i386
/t-i386bare
3116 # tmake_file=t-libc-ok
3119 i
[34567]86-*-osfrose*) # 386 using OSF/rose
3122 tm_file
=i386
/osfelf.h
3125 tm_file
=i386
/osfrose.h
3128 xm_file
="i386/xm-osf.h ${xm_file}"
3129 xmake_file
=i386
/x-osfrose
3130 tmake_file
=i386
/t-osf
3131 extra_objs
=halfpic.o
3133 i
[34567]86-go32-rtems*)
3135 xm_file
=i386
/xm-go32.h
3136 tm_file
=i386
/go32-rtems.h
3137 tmake_file
="i386/t-go32 t-rtems"
3139 i
[34567]86-*-rtemself*)
3141 tm_file
=i386
/rtemself.h
3142 tmake_file
="i386/t-i386bare t-rtems"
3144 i
[34567]86-*-rtems*)
3146 tm_file
=i386
/rtems.h
3147 tmake_file
="i386/t-i386bare t-rtems"
3149 i
[34567]86-*-sco3.2v5
*) # 80386 running SCO Open Server 5
3150 xm_file
="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
3151 xm_defines
="USG SVR3"
3152 xmake_file
=i386
/x-sco5
3153 fixincludes
=fixinc.sco
3155 install_headers_dir
=install-headers-cpio
3157 tmake_file
=i386
/t-sco5
3158 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3160 i
[34567]86-*-sco3.2v4
*) # 80386 running SCO 3.2v4 system
3161 xm_file
="${xm_file} i386/xm-sco.h"
3162 xm_defines
="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
3163 xmake_file
=i386
/x-sco4
3164 fixincludes
=fixinc.sco
3166 install_headers_dir
=install-headers-cpio
3167 if [ x
$stabs = xyes
]
3169 tm_file
=i386
/sco4dbx.h
3170 tmake_file
=i386
/t-svr3dbx
3171 extra_parts
="svr3.ifile svr3z.rfile"
3174 tmake_file
=i386
/t-crtstuff
3175 extra_parts
="crtbegin.o crtend.o"
3179 i
[34567]86-*-sco*) # 80386 running SCO system
3180 xm_file
=i386
/xm-sco.h
3181 xmake_file
=i386
/x-sco
3183 install_headers_dir
=install-headers-cpio
3184 if [ x
$stabs = xyes
]
3186 tm_file
=i386
/scodbx.h
3187 tmake_file
=i386
/t-svr3dbx
3188 extra_parts
="svr3.ifile svr3z.rfile"
3191 extra_parts
="crtbegin.o crtend.o"
3192 tmake_file
=i386
/t-crtstuff
3196 i
[34567]86-*-solaris2*)
3197 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3198 xm_defines
="USG POSIX SMALL_ARG_MAX"
3199 if [ x
$stabs = xyes
]
3201 tm_file
=i386
/sol2dbg.h
3205 tmake_file
=i386
/t-sol2
3206 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3210 fixincludes
=fixinc.svr4
;;
3212 fixincludes
=fixinc.wrap
;;
3215 if [ x
$enable_threads = xyes
]; then
3216 thread_file
='solaris'
3219 i
[34567]86-*-sysv4*) # Intel 80386's running system V.4
3220 xm_file
="xm-siglist.h xm-alloca.h ${xm_file}"
3221 xm_defines
="USG POSIX SMALL_ARG_MAX"
3222 tm_file
=i386
/sysv4.h
3223 if [ x
$stabs = xyes
]
3225 tm_file
="${tm_file} dbx.h"
3227 tmake_file
=i386
/t-crtpic
3229 extra_parts
="crtbegin.o crtend.o"
3231 i
[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3233 xm_file
="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
3234 xm_defines
="USE_C_ALLOCA SMALL_ARG_MAX"
3235 fixincludes
=Makefile.
in #Don't do it on OSF/1
3236 if [ x
$stabs = xyes
]
3238 tm_file
=i386
/osf1elfgdb.h
3240 tm_file
=i386
/osf1elf.h
3242 tmake_file
=i386
/t-osf1elf
3243 xmake_file
=i386
/x-osf1elf
3244 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
3246 i
[34567]86-*-sysv*) # Intel 80386's running system V
3247 xm_defines
="USG SVR3"
3248 xmake_file
=i386
/x-sysv3
3251 if [ x
$stabs = xyes
]
3253 tm_file
=i386
/svr3dbx.h
3254 tmake_file
=i386
/t-svr3dbx
3255 extra_parts
="svr3.ifile svr3z.rfile"
3257 tm_file
=i386
/svr3gas.h
3258 extra_parts
="crtbegin.o crtend.o"
3259 tmake_file
=i386
/t-crtstuff
3262 tm_file
=i386
/sysv3.h
3263 extra_parts
="crtbegin.o crtend.o"
3264 tmake_file
=i386
/t-crtstuff
3267 i386-
*-vsta) # Intel 80386's running VSTa kernel
3268 xm_file
="${xm_file} i386/xm-vsta.h"
3270 tmake_file
=i386
/t-vsta
3271 xmake_file
=i386
/x-vsta
3273 i
[34567]86-*-pe | i
[34567]86-*-cygwin32)
3274 xm_file
="${xm_file} i386/xm-cygwin32.h"
3275 tmake_file
=i386
/t-cygwin32
3276 tm_file
=i386
/cygwin32.h
3277 xmake_file
=i386
/x-cygwin32
3279 fixincludes
=Makefile.
in
3280 if [ x
$enable_threads = xyes
]; then
3285 i
[34567]86-*-mingw32*)
3286 tm_file
=i386
/mingw32.h
3287 xm_file
="${xm_file} i386/xm-mingw32.h"
3288 tmake_file
=i386
/t-cygwin32
3290 xmake_file
=i386
/x-cygwin32
3291 fixincludes
=Makefile.
in
3292 if [ x
$enable_threads = xyes
]; then
3299 *minwg32crt
* |
*mingw32
*)
3300 tm_file
="${tm_file} i386/crtdll.h"
3304 i
[34567]86-*-winnt3*)
3305 tm_file
=i386
/win-nt.h
3306 out_file
=i386
/i386.c
3307 xm_file
="xm-winnt.h ${xm_file}"
3308 xmake_file
=winnt
/x-winnt
3309 tmake_file
=i386
/t-winnt
3310 extra_host_objs
="winnt.o oldnames.o"
3311 extra_gcc_objs
="spawnv.o oldnames.o"
3312 fixincludes
=fixinc.winnt
3313 if [ x
$gnu_ld != xyes
]
3315 extra_programs
=ld.exe
3317 if [ x
$enable_threads = xyes
]; then
3321 i
[34567]86-dg-dgux*)
3322 xm_file
="xm-alloca.h xm-siglist.h ${xm_file}"
3323 xm_defines
="USG POSIX"
3324 out_file
=i386
/dgux.c
3326 tmake_file
=i386
/t-dgux
3327 xmake_file
=i386
/x-dgux
3328 fixincludes
=Makefile.
in # There is nothing to fix
3329 install_headers_dir
=install-headers-cpio
3331 i860-alliant-
*) # Alliant FX/2800
3332 tm_file
="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
3333 xm_file
="${xm_file}"
3334 xmake_file
=i860
/x-fx2800
3335 tmake_file
=i860
/t-fx2800
3336 extra_parts
="crtbegin.o crtend.o"
3339 tm_file
="${tm_file} i860/bsd.h"
3342 tm_file
="${tm_file} i860/bsd-gas.h"
3347 tm_file
="${tm_file} i860/mach.h"
3348 tmake_file
=t-libc-ok
3350 i860-
*-osf*) # Intel Paragon XP/S, OSF/1AD
3351 tm_file
="${tm_file} svr3.h i860/paragon.h"
3352 xm_defines
="USG SVR3"
3357 tm_file
="${tm_file} svr3.h i860/sysv3.h"
3358 xm_defines
="USG SVR3"
3359 xmake_file
=i860
/x-sysv3
3360 extra_parts
="crtbegin.o crtend.o"
3363 tm_file
="${tm_file} svr4.h i860/sysv4.h"
3364 xm_defines
="USG SVR3"
3365 xmake_file
=i860
/x-sysv4
3367 extra_parts
="crtbegin.o crtend.o"
3369 i960-wrs-vxworks5 | i960-wrs-vxworks5.0
*)
3370 tm_file
="${tm_file} i960/vx960.h"
3371 tmake_file
=i960
/t-vxworks960
3374 i960-wrs-vxworks5
* | i960-wrs-vxworks
)
3375 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
3376 tmake_file
=i960
/t-vxworks960
3380 tm_file
="${tm_file} i960/vx960.h"
3381 tmake_file
=i960
/t-vxworks960
3385 tm_file
="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3386 tmake_file
=i960
/t-960bare
3390 tmake_file
="i960/t-960bare t-rtems"
3391 tm_file
="${tm_file} dbxcoff.h i960/rtems.h"
3394 i960-
*-*) # Default i960 environment.
3398 extra_parts
="crtinit.o crtfini.o"
3400 m68000-convergent-sysv
*)
3402 xm_file
="m68k/xm-3b1.h ${xm_file}"
3405 extra_headers
=math-68881.h
3407 m68000-hp-bsd
*) # HP 9000/200 running BSD
3408 tm_file
=m68k
/hp2bsd.h
3409 xmake_file
=m68k
/x-hp2bsd
3411 extra_headers
=math-68881.h
3413 m68000-hp-hpux
*) # HP 9000 series 300
3414 xm_file
="xm_alloca.h ${xm_file}"
3415 xm_defines
="USG NO_SYS_SIGLIST"
3418 xmake_file
=m68k
/x-hp320g
3419 tm_file
=m68k
/hp310g.h
3421 xmake_file
=m68k
/x-hp320
3422 tm_file
=m68k
/hp310.h
3425 install_headers_dir
=install-headers-cpio
3427 extra_headers
=math-68881.h
3432 extra_headers
=math-68881.h
3435 tm_file
=m68k
/sun2o4.h
3437 extra_headers
=math-68881.h
3440 xm_file
="m68k/xm-3b1.h ${xm_file}"
3449 extra_headers
=math-68881.h
3451 m68k-apple-aux
*) # Apple Macintosh running A/UX
3452 xm_defines
="USG AUX"
3453 tmake_file
=m68k
/t-aux
3455 install_headers_dir
=install-headers-cpio
3456 extra_headers
=math-68881.h
3457 extra_parts
="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
3459 if [ "$gnu_ld" = yes ]
3461 tm_file
="${tm_file} m68k/auxgld.h"
3463 tm_file
="${tm_file} m68k/auxld.h"
3467 tm_file
="${tm_file} m68k/auxgas.h"
3469 tm_file
="${tm_file} m68k/auxas.h"
3471 tm_file
="${tm_file} m68k/a-ux.h"
3474 tm_file
=m68k
/apollo68.h
3475 xmake_file
=m68k
/x-apollo68
3477 extra_headers
=math-68881.h
3479 m68k-altos-sysv
*) # Altos 3068
3482 tm_file
=m68k
/altos3068.h
3485 echo "The Altos is supported only with the GNU assembler" 1>&2
3488 extra_headers
=math-68881.h
3490 m68k-bull-sysv
*) # Bull DPX/2
3493 if [ x
$stabs = xyes
]
3495 tm_file
=m68k
/dpx2cdbx.h
3497 tm_file
=m68k
/dpx2g.h
3502 xm_file
="xm-alloca.h ${xm_file}"
3504 xmake_file
=m68k
/x-dpx2
3506 extra_headers
=math-68881.h
3508 m68k-atari-sysv4
*) # Atari variant of V.4.
3509 tm_file
=m68k
/atari.h
3510 xm_file
="xm-alloca.h ${xm_file}"
3511 xm_defines
="USG FULL_PROTOTYPES"
3513 extra_parts
="crtbegin.o crtend.o"
3514 extra_headers
=math-68881.h
3516 m68k-motorola-sysv
*)
3517 tm_file
=m68k
/mot3300.h
3518 xm_file
="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
3519 xm_defines
=NO_SYS_SIGLIST
3522 xmake_file
=m68k
/x-mot3300-gas
3523 if [ x
$gnu_ld = xyes
]
3525 tmake_file
=m68k
/t-mot3300-gald
3527 tmake_file
=m68k
/t-mot3300-gas
3531 xmake_file
=m68k
/x-mot3300
3532 if [ x
$gnu_ld = xyes
]
3534 tmake_file
=m68k
/t-mot3300-gld
3536 tmake_file
=m68k
/t-mot3300
3540 gdb_needs_out_file_path
=yes
3541 extra_parts
="crt0.o mcrt0.o"
3542 extra_headers
=math-68881.h
3544 m68k-ncr-sysv
*) # NCR Tower 32 SVR3
3545 tm_file
=m68k
/tower-as.h
3546 xm_defines
="USG SVR3"
3547 xmake_file
=m68k
/x-tower
3548 extra_parts
="crtbegin.o crtend.o"
3549 extra_headers
=math-68881.h
3552 tm_file
=m68k
/plexus.h
3553 xm_file
="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3556 extra_headers
=math-68881.h
3560 xm_file
="xm-alloca.h ${xm_file}"
3562 extra_headers
=math-68881.h
3565 xm_file
="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3566 xm_defines
="USG unos"
3567 xmake_file
=m68k
/x-crds
3571 extra_headers
=math-68881.h
3573 m68k-cbm-sysv4
*) # Commodore variant of V.4.
3575 xm_file
="xm-alloca.h ${xm_file}"
3576 xm_defines
="USG FULL_PROTOTYPES"
3577 xmake_file
=m68k
/x-amix
3579 extra_parts
="crtbegin.o crtend.o"
3580 extra_headers
=math-68881.h
3583 tm_file
=m68k
/ccur-GAS.h
3584 xmake_file
=m68k
/x-ccur
3585 extra_headers
=math-68881.h
3589 m68k-hp-bsd4.4
*) # HP 9000/3xx running 4.4bsd
3590 tm_file
=m68k
/hp3bsd44.h
3591 xmake_file
=m68k
/x-hp3bsd44
3593 extra_headers
=math-68881.h
3595 m68k-hp-bsd
*) # HP 9000/3xx running Berkeley Unix
3596 tm_file
=m68k
/hp3bsd.h
3598 extra_headers
=math-68881.h
3601 if [ x
$with_fp = xno
]
3603 tm_file
=m68k
/isi-nfp.h
3608 extra_headers
=math-68881.h
3610 m68k-hp-hpux7
*) # HP 9000 series 300 running HPUX version 7.
3611 xm_file
="xm_alloca.h ${xm_file}"
3612 xm_defines
="USG NO_SYS_SIGLIST"
3615 xmake_file
=m68k
/x-hp320g
3616 tm_file
=m68k
/hp320g.h
3618 xmake_file
=m68k
/x-hp320
3619 tm_file
=m68k
/hpux7.h
3622 install_headers_dir
=install-headers-cpio
3624 extra_headers
=math-68881.h
3626 m68k-hp-hpux
*) # HP 9000 series 300
3627 xm_file
="xm_alloca.h ${xm_file}"
3628 xm_defines
="USG NO_SYS_SIGLIST"
3631 xmake_file
=m68k
/x-hp320g
3632 tm_file
=m68k
/hp320g.h
3634 xmake_file
=m68k
/x-hp320
3635 tm_file
=m68k
/hp320.h
3638 install_headers_dir
=install-headers-cpio
3640 extra_headers
=math-68881.h
3643 tm_file
=m68k
/sun3mach.h
3645 extra_headers
=math-68881.h
3650 tm_file
=m68k
/news3gas.h
3652 tm_file
=m68k
/news3.h
3655 extra_headers
=math-68881.h
3657 m68k-sony-bsd
* | m68k-sony-newsos
*)
3660 tm_file
=m68k
/newsgas.h
3665 extra_headers
=math-68881.h
3667 m68k-next-nextstep2
*)
3668 tm_file
=m68k
/next21.h
3669 xm_file
="m68k/xm-next.h ${xm_file}"
3670 tmake_file
=m68k
/t-next
3671 xmake_file
=m68k
/x-next
3672 extra_objs
=nextstep.o
3673 extra_headers
=math-68881.h
3676 m68k-next-nextstep3
*)
3678 xm_file
="m68k/xm-next.h ${xm_file}"
3679 tmake_file
=m68k
/t-next
3680 xmake_file
=m68k
/x-next
3681 extra_objs
=nextstep.o
3682 extra_headers
=math-68881.h
3683 if [ x
$enable_threads = xyes
]; then
3688 if [ x
$with_fp = xno
]
3690 tm_file
=m68k
/sun3n3.h
3692 tm_file
=m68k
/sun3o3.h
3695 extra_headers
=math-68881.h
3697 m68k-sun-sunos
*) # For SunOS 4 (the default).
3698 if [ x
$with_fp = xno
]
3700 tm_file
=m68k
/sun3n.h
3705 extra_headers
=math-68881.h
3708 tm_file
=m68k
/vxm68k.h
3709 tmake_file
=m68k
/t-vxworks68
3710 extra_headers
=math-68881.h
3713 tmake_file
=m68k
/t-m68kbare
3714 tm_file
="m68k/m68k-aout.h libgloss.h"
3715 extra_headers
=math-68881.h
3718 tmake_file
=m68k
/t-m68kbare
3719 tm_file
="m68k/m68k-coff.h dbx.h libgloss.h"
3720 extra_headers
=math-68881.h
3727 tm_file
=m68k
/lynx-ng.h
3729 xm_file
=m68k
/xm-lynx.h
3731 tmake_file
=m68k
/t-lynx
3732 extra_headers
=math-68881.h
3735 tm_file
=m68k
/netbsd.h
3736 # On NetBSD, the headers are already okay, except for math.h.
3737 fixincludes
=fixinc.wrap
3740 m68k-
*-sysv3*) # Motorola m68k's running system V.3
3741 xm_file
="xm-alloca.h ${xm_file}"
3743 xmake_file
=m68k
/x-m68kv
3744 extra_parts
="crtbegin.o crtend.o"
3745 extra_headers
=math-68881.h
3747 m68k-
*-sysv4*) # Motorola m68k's running system V.4
3748 tm_file
=m68k
/m68kv4.h
3749 xm_file
="xm-alloca.h ${xm_file}"
3752 extra_parts
="crtbegin.o crtend.o"
3753 extra_headers
=math-68881.h
3755 m68k-
*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3758 tm_file
=m68k
/linux-aout.h
3759 tmake_file
="t-linux-aout m68k/t-linux-aout"
3760 fixincludes
=Makefile.
in # The headers are ok already.
3761 extra_headers
=math-68881.h
3764 m68k-
*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3765 # with ELF format using the
3766 # GNU/Linux C library 5
3768 tm_file
=m68k
/linux.h
3769 tmake_file
="t-linux t-linux-gnulibc1 m68k/t-linux"
3770 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3771 fixincludes
=Makefile.
in # The headers are ok already.
3772 extra_headers
=math-68881.h
3775 m68k-
*-linux-gnu*) # Motorola m68k's running GNU/Linux
3776 # with ELF format using glibc 2
3777 # aka the GNU/Linux C library 6.
3779 tm_file
=m68k
/linux.h
3780 tmake_file
="t-linux m68k/t-linux"
3781 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3782 fixincludes
=Makefile.
in # The headers are ok already.
3783 extra_headers
=math-68881.h
3785 if [ x
$enable_threads = xyes
]; then
3790 tmake_file
=m68k
/t-m68kbare
3791 tm_file
=m68k
/m68k-psos.h
3792 extra_headers
=math-68881.h
3795 tmake_file
="m68k/t-m68kbare t-rtems"
3796 tm_file
=m68k
/rtems.h
3797 extra_headers
=math-68881.h
3803 tm_file
=m88k
/dguxbcs.h
3804 tmake_file
=m88k
/t-dguxbcs
3808 tmake_file
=m88k
/t-dgux
3811 extra_parts
="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3813 xmake_file
=m88k
/x-dgux
3816 tmake_file
=m88k
/t-dgux-gas
3818 fixincludes
=fixinc.dgux
3820 m88k-dolphin-sysv3
*)
3821 tm_file
=m88k
/dolph.h
3822 extra_parts
="crtbegin.o crtend.o"
3823 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3824 xmake_file
=m88k
/x-dolph
3827 tmake_file
=m88k
/t-m88k-gas
3830 m88k-tektronix-sysv3
)
3831 tm_file
=m88k
/tekXD88.h
3832 extra_parts
="crtbegin.o crtend.o"
3833 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3834 xmake_file
=m88k
/x-tekXD88
3837 tmake_file
=m88k
/t-m88k-gas
3841 tm_file
=m88k
/m88k-aout.h
3844 tm_file
=m88k
/m88k-coff.h
3845 tmake_file
=m88k
/t-bug
3849 extra_parts
="crtbegin.o crtend.o"
3852 tmake_file
=m88k
/t-luna-gas
3854 tmake_file
=m88k
/t-luna
3858 tm_file
=m88k
/sysv3.h
3859 extra_parts
="crtbegin.o crtend.o"
3860 xm_file
="m88k/xm-sysv3.h ${xm_file}"
3861 xmake_file
=m88k
/x-sysv3
3864 tmake_file
=m88k
/t-m88k-gas
3868 tm_file
=m88k
/sysv4.h
3869 extra_parts
="crtbegin.o crtend.o"
3870 xmake_file
=m88k
/x-sysv4
3871 tmake_file
=m88k
/t-sysv4
3873 mips-sgi-irix6
*) # SGI System V.4., IRIX 6
3874 tm_file
=mips
/iris6.h
3875 xm_file
=mips
/xm-iris6.h
3877 fixincludes
=fixinc.irix
3878 xmake_file
=mips
/x-iris6
3879 tmake_file
=mips
/t-iris6
3880 if [ x
$enable_threads = xyes
]; then
3884 mips-sgi-irix5cross64
) # Irix5 host, Irix 6 target, cross64
3885 tm_file
="mips/iris6.h mips/cross64.h"
3886 xm_defines
="USG HAVE_INTTYPES_H"
3888 fixincludes
=Makefile.
in
3889 xmake_file
=mips
/x-iris
3890 tmake_file
=mips
/t-cross64
3891 # See comment in mips/iris[56].h files.
3893 if [ x
$enable_threads = xyes
]; then
3900 if [ x
$stabs = xyes
]
3902 tm_file
=mips
/iris5gdb.h
3904 tm_file
="mips/sni-svr4.h mips/sni-gas.h"
3907 tm_file
=mips
/sni-svr4.h
3910 xmake_file
=mips
/x-sni-svr4
3911 tmake_file
=mips
/t-mips-gas
3912 if [ x
$gnu_ld != xyes
]
3918 mips-sgi-irix5
*) # SGI System V.4., IRIX 5
3921 tm_file
="mips/iris5.h mips/iris5gas.h"
3922 if [ x
$stabs = xyes
]
3924 tm_file
="${tm_file} dbx.h"
3927 tm_file
=mips
/iris5.h
3929 xm_defines
="USG HAVE_INTTYPES_H"
3931 fixincludes
=fixinc.irix
3932 xmake_file
=mips
/x-iris
3933 # mips-tfile doesn't work yet
3934 tmake_file
=mips
/t-mips-gas
3935 # See comment in mips/iris5.h file.
3937 if [ x
$enable_threads = xyes
]; then
3941 mips-sgi-irix4loser
*) # Mostly like a MIPS.
3942 tm_file
="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
3943 if [ x
$stabs = xyes
]; then
3944 tm_file
="${tm_file} dbx.h"
3948 xmake_file
=mips
/x-iris
3951 tmake_file
=mips
/t-mips-gas
3953 extra_passes
="mips-tfile mips-tdump"
3955 if [ x
$gnu_ld != xyes
]
3959 if [ x
$enable_threads = xyes
]; then
3963 mips-sgi-irix4
*) # Mostly like a MIPS.
3964 tm_file
="mips/iris3.h ${tm_file} mips/iris4.h"
3965 if [ x
$stabs = xyes
]; then
3966 tm_file
="${tm_file} dbx.h"
3970 xmake_file
=mips
/x-iris
3973 tmake_file
=mips
/t-mips-gas
3975 extra_passes
="mips-tfile mips-tdump"
3977 if [ x
$gnu_ld != xyes
]
3981 if [ x
$enable_threads = xyes
]; then
3985 mips-sgi-
*) # Mostly like a MIPS.
3986 tm_file
="mips/iris3.h ${tm_file}"
3987 if [ x
$stabs = xyes
]; then
3988 tm_file
="${tm_file} dbx.h"
3992 xmake_file
=mips
/x-iris3
3995 tmake_file
=mips
/t-mips-gas
3997 extra_passes
="mips-tfile mips-tdump"
3999 if [ x
$gnu_ld != xyes
]
4004 mips-dec-osfrose
*) # Decstation running OSF/1 reference port with OSF/rose.
4005 tm_file
="mips/osfrose.h ${tm_file}"
4006 xmake_file
=mips
/x-osfrose
4007 tmake_file
=mips
/t-osfrose
4008 extra_objs
=halfpic.o
4011 mips-dec-osf
*) # Decstation running OSF/1 as shipped by DIGITAL
4012 tm_file
=mips
/dec-osf1.h
4013 if [ x
$stabs = xyes
]; then
4014 tm_file
="${tm_file} dbx.h"
4016 xmake_file
=mips
/x-dec-osf1
4019 tmake_file
=mips
/t-mips-gas
4021 tmake_file
=mips
/t-ultrix
4022 extra_passes
="mips-tfile mips-tdump"
4024 if [ x
$gnu_ld != xyes
]
4029 mips-dec-bsd
*) # Decstation running 4.4 BSD
4030 tm_file
=mips
/dec-bsd.h
4034 tmake_file
=mips
/t-mips-gas
4036 tmake_file
=mips
/t-ultrix
4037 extra_passes
="mips-tfile mips-tdump"
4039 if [ x
$gnu_ld != xyes
]
4044 mips-dec-netbsd
*) # Decstation running NetBSD
4045 tm_file
=mips
/netbsd.h
4046 # On NetBSD, the headers are already okay, except for math.h.
4047 fixincludes
=fixinc.wrap
4049 if [ x
$prefix = xNONE
]; then
4050 prefix
=$native_prefix
4053 mips-sony-bsd
* | mips-sony-newsos
*) # Sony NEWS 3600 or risc/news.
4054 tm_file
="mips/news4.h ${tm_file}"
4055 if [ x
$stabs = xyes
]; then
4056 tm_file
="${tm_file} dbx.h"
4060 tmake_file
=mips
/t-mips-gas
4062 extra_passes
="mips-tfile mips-tdump"
4064 if [ x
$gnu_ld != xyes
]
4068 xmake_file
=mips
/x-sony
4070 mips-sony-sysv
*) # Sony NEWS 3800 with NEWSOS5.0.
4071 # That is based on svr4.
4072 # t-svr4 is not right because this system doesn't use ELF.
4073 tm_file
="mips/news5.h ${tm_file}"
4074 if [ x
$stabs = xyes
]; then
4075 tm_file
="${tm_file} dbx.h"
4077 xm_file
="xm-siglist.h ${xm_file}"
4081 tmake_file
=mips
/t-mips-gas
4083 extra_passes
="mips-tfile mips-tdump"
4085 if [ x
$gnu_ld != xyes
]
4090 mips-tandem-sysv4
*) # Tandem S2 running NonStop UX
4091 tm_file
="mips/svr4-5.h mips/svr4-t.h"
4092 if [ x
$stabs = xyes
]; then
4093 tm_file
="${tm_file} dbx.h"
4095 xm_file
="xm-siglist.h ${xm_file}"
4097 xmake_file
=mips
/x-sysv
4100 tmake_file
=mips
/t-mips-gas
4101 extra_parts
="crtbegin.o crtend.o"
4103 tmake_file
=mips
/t-mips
4104 extra_passes
="mips-tfile mips-tdump"
4106 if [ x
$gnu_ld != xyes
]
4112 mips-
*-ultrix* | mips-dec-mach3
) # Decstation.
4113 tm_file
="mips/ultrix.h ${tm_file}"
4114 if [ x
$stabs = xyes
]; then
4115 tm_file
="${tm_file} dbx.h"
4117 xmake_file
=mips
/x-ultrix
4120 tmake_file
=mips
/t-mips-gas
4122 tmake_file
=mips
/t-ultrix
4123 extra_passes
="mips-tfile mips-tdump"
4125 if [ x
$gnu_ld != xyes
]
4130 mips-
*-riscos[56789]bsd
*)
4131 tm_file
=mips
/bsd-5.h
# MIPS BSD 4.3, RISC-OS 5.0
4132 if [ x
$stabs = xyes
]; then
4133 tm_file
="${tm_file} dbx.h"
4137 tmake_file
=mips
/t-bsd-gas
4139 tmake_file
=mips
/t-bsd
4140 extra_passes
="mips-tfile mips-tdump"
4142 if [ x
$gnu_ld != xyes
]
4148 mips-
*-bsd* | mips-
*-riscosbsd* | mips-
*-riscos[1234]bsd
*)
4149 tm_file
="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
4150 if [ x
$stabs = xyes
]; then
4151 tm_file
="${tm_file} dbx.h"
4155 tmake_file
=mips
/t-bsd-gas
4157 tmake_file
=mips
/t-bsd
4158 extra_passes
="mips-tfile mips-tdump"
4160 if [ x
$gnu_ld != xyes
]
4166 mips-
*-riscos[56789]sysv4
*)
4167 tm_file
=mips
/svr4-5.h
# MIPS System V.4., RISC-OS 5.0
4168 if [ x
$stabs = xyes
]; then
4169 tm_file
="${tm_file} dbx.h"
4171 xm_file
="xm-siglist.h ${xm_file}"
4172 xmake_file
=mips
/x-sysv
4175 tmake_file
=mips
/t-svr4-gas
4177 tmake_file
=mips
/t-svr4
4178 extra_passes
="mips-tfile mips-tdump"
4180 if [ x
$gnu_ld != xyes
]
4186 mips-
*-sysv4* | mips-
*-riscos[1234]sysv4
* | mips-
*-riscossysv4*)
4187 tm_file
="mips/svr4-4.h ${tm_file}"
4188 if [ x
$stabs = xyes
]; then
4189 tm_file
="${tm_file} dbx.h"
4192 xmake_file
=mips
/x-sysv
4195 tmake_file
=mips
/t-svr4-gas
4197 tmake_file
=mips
/t-svr4
4198 extra_passes
="mips-tfile mips-tdump"
4200 if [ x
$gnu_ld != xyes
]
4206 mips-
*-riscos[56789]sysv
*)
4207 tm_file
=mips
/svr3-5.h
# MIPS System V.3, RISC-OS 5.0
4208 if [ x
$stabs = xyes
]; then
4209 tm_file
="${tm_file} dbx.h"
4212 xmake_file
=mips
/x-sysv
4215 tmake_file
=mips
/t-svr3-gas
4217 tmake_file
=mips
/t-svr3
4218 extra_passes
="mips-tfile mips-tdump"
4220 if [ x
$gnu_ld != xyes
]
4226 mips-
*-sysv* | mips-
*-riscos*sysv
*)
4227 tm_file
="mips/svr3-4.h ${tm_file}"
4228 if [ x
$stabs = xyes
]; then
4229 tm_file
="${tm_file} dbx.h"
4232 xmake_file
=mips
/x-sysv
4235 tmake_file
=mips
/t-svr3-gas
4237 tmake_file
=mips
/t-svr3
4238 extra_passes
="mips-tfile mips-tdump"
4240 if [ x
$gnu_ld != xyes
]
4246 mips-
*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
4247 tm_file
=mips
/mips-5.h
4248 if [ x
$stabs = xyes
]; then
4249 tm_file
="${tm_file} dbx.h"
4253 tmake_file
=mips
/t-mips-gas
4255 extra_passes
="mips-tfile mips-tdump"
4257 if [ x
$gnu_ld != xyes
]
4266 tm_file
=mips
/ecoffl.h
4267 if [ x
$stabs = xyes
]; then
4268 tm_file
="${tm_file} dbx.h"
4270 tmake_file
=mips
/t-ecoff
4273 tm_file
="${tm_file} gofast.h mips/ecoff.h"
4274 if [ x
$stabs = xyes
]; then
4275 tm_file
="${tm_file} dbx.h"
4277 tmake_file
=mips
/t-ecoff
4281 tm_file
="mips/elfl.h libgloss.h"
4282 tmake_file
=mips
/t-ecoff
4285 tm_file
="mips/elf.h libgloss.h"
4286 tmake_file
=mips
/t-ecoff
4289 tm_file
="mips/elfl64.h libgloss.h"
4290 tmake_file
=mips
/t-ecoff
4292 mips64orionel-
*-elf*)
4293 tm_file
="mips/elforion.h mips/elfl64.h libgloss.h"
4294 tmake_file
=mips
/t-ecoff
4297 tm_file
="mips/elf64.h libgloss.h"
4298 tmake_file
=mips
/t-ecoff
4301 tm_file
="mips/elforion.h mips/elf64.h libgloss.h"
4302 tmake_file
=mips
/t-ecoff
4304 mips64orion-
*-rtems*)
4305 tm_file
="mips/elforion.h mips/elfl64.h mips/rtems64.h"
4306 tmake_file
="mips/t-ecoff t-rtems"
4309 tm_file
="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4310 tmake_file
=mips
/t-ecoff
4313 tm_file
="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
4314 tmake_file
=mips
/t-ecoff
4316 mips-
*-*) # Default MIPS RISC-OS 4.0.
4317 if [ x
$stabs = xyes
]; then
4318 tm_file
="${tm_file} dbx.h"
4322 tmake_file
=mips
/t-mips-gas
4324 extra_passes
="mips-tfile mips-tdump"
4326 if [ x
$gnu_ld != xyes
]
4333 tm_file
="mn10200/mn10200.h"
4334 if [ x
$stabs = xyes
]
4336 tm_file
="${tm_file} dbx.h"
4342 tm_file
="mn10300/mn10300.h"
4343 if [ x
$stabs = xyes
]
4345 tm_file
="${tm_file} dbx.h"
4350 tm_file
=ns32k
/encore.h
4354 tm_file
=ns32k
/sequent.h
4358 tm_file
=ns32k
/tek6100.h
4363 tm_file
=ns32k
/tek6200.h
4367 # This has not been updated to GCC 2.
4370 # xmake_file=ns32k/x-genix
4371 # tm_file=ns32k/genix.h
4372 # broken_install=yes
4376 tm_file
=ns32k
/merlin.h
4380 tm_file
=ns32k
/pc532-mach.h
4384 tm_file
=ns32k
/pc532-min.h
4385 xm_file
="ns32k/xm-pc532-min.h ${xm-file}"
4389 ns32k-pc532-netbsd
*)
4390 tm_file
=ns32k
/netbsd.h
4391 # On NetBSD, the headers are already okay, except for math.h.
4392 fixincludes
=fixinc.wrap
4396 tm_file
="${tm_file} pdp11/2bsd.h"
4402 xmake_file
=pyr
/x-pyr
4409 xmake_file
=romp
/x-mach
4412 powerpc-
*-sysv* | powerpc-
*-elf*)
4413 tm_file
=rs6000
/sysv4.h
4414 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4415 xm_defines
="USG POSIX"
4416 extra_headers
=ppc-asm.h
4419 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4421 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4423 xmake_file
=rs6000
/x-sysv4
4426 tm_file
=rs6000
/eabiaix.h
4427 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4428 fixincludes
=Makefile.
in
4429 extra_headers
=ppc-asm.h
4432 tm_file
=rs6000
/eabisim.h
4433 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4434 fixincludes
=Makefile.
in
4435 extra_headers
=ppc-asm.h
4438 tm_file
=rs6000
/eabi.h
4441 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4443 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4445 fixincludes
=Makefile.
in
4446 extra_headers
=ppc-asm.h
4449 tm_file
=rs6000
/rtems.h
4452 tmake_file
="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4454 tmake_file
="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
4456 fixincludes
=Makefile.
in
4457 extra_headers
=ppc-asm.h
4459 powerpc-
*-linux-gnu*)
4460 tm_file
=rs6000
/linux.h
4461 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4462 xm_defines
="USG ${xm_defines}"
4463 out_file
=rs6000
/rs6000.c
4466 tmake_file
="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4468 tmake_file
="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4471 fixincludes
=Makefile.
in
4472 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4473 extra_headers
=ppc-asm.h
4474 if [ x
$enable_threads = xyes
]; then
4480 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4481 xm_defines
="USG POSIX"
4482 tm_file
=rs6000
/vxppc.h
4483 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4484 extra_headers
=ppc-asm.h
4486 powerpcle-
*-sysv* | powerpcle-
*-elf*)
4487 tm_file
=rs6000
/sysv4le.h
4488 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4489 xm_defines
="USG POSIX"
4492 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4494 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4496 xmake_file
=rs6000
/x-sysv4
4497 extra_headers
=ppc-asm.h
4499 powerpcle-
*-eabisim*)
4500 tm_file
=rs6000
/eabilesim.h
4501 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4502 fixincludes
=Makefile.
in
4503 extra_headers
=ppc-asm.h
4506 tm_file
=rs6000
/eabile.h
4509 tmake_file
="rs6000/t-ppcgas rs6000/t-ppccomm"
4511 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4513 fixincludes
=Makefile.
in
4514 extra_headers
=ppc-asm.h
4516 powerpcle-
*-winnt* )
4517 tm_file
=rs6000
/win-nt.h
4518 tmake_file
=rs6000
/t-winnt
4520 fixincludes
=Makefile.
in
4521 if [ x
$enable_threads = xyes
]; then
4524 extra_headers
=ppc-asm.h
4526 powerpcle-
*-pe | powerpcle-
*-cygwin32)
4527 tm_file
=rs6000
/cygwin32.h
4528 xm_file
="rs6000/xm-cygwin32.h ${xm_file}"
4529 xm_defines
=NO_STAB_H
4530 tmake_file
=rs6000
/t-winnt
4531 xmake_file
=rs6000
/x-cygwin32
4533 fixincludes
=Makefile.
in
4534 if [ x
$enable_threads = xyes
]; then
4538 extra_headers
=ppc-asm.h
4540 powerpcle-
*-solaris2*)
4541 tm_file
=rs6000
/sol2.h
4542 xm_file
="xm-siglist.h rs6000/xm-sysv4.h"
4543 xm_defines
="USG POSIX"
4546 tmake_file
="rs6000/t-ppcos rs6000/t-ppccomm"
4548 tmake_file
="rs6000/t-ppc rs6000/t-ppccomm"
4550 xmake_file
=rs6000
/x-sysv4
4553 fixincludes
=fixinc.svr4
;;
4555 fixincludes
=fixinc.wrap
;;
4557 extra_headers
=ppc-asm.h
4559 rs6000-ibm-aix3.
[01]*)
4560 tm_file
=rs6000
/aix31.h
4561 xmake_file
=rs6000
/x-aix31
4564 rs6000-ibm-aix3.2.
[456789]* | powerpc-ibm-aix3.2.
[456789]*)
4565 tm_file
=rs6000
/aix3newas.h
4566 if [ x
$host != x
$target ]
4568 tmake_file
=rs6000
/t-xnewas
4570 tmake_file
=rs6000
/t-newas
4574 rs6000-ibm-aix
[456789].
* | powerpc-ibm-aix
[456789].
*)
4575 tm_file
=rs6000
/aix41.h
4576 if [ x
$host != x
$target ]
4578 tmake_file
=rs6000
/t-xnewas
4580 tmake_file
=rs6000
/t-newas
4582 xmake_file
=rs6000
/x-aix31
4592 tm_file
=rs6000
/mach.h
4593 xm_file
="${xm_file} rs6000/xm-mach.h"
4594 xmake_file
=rs6000
/x-mach
4598 tm_file
=rs6000
/lynx.h
4599 xm_file
=rs6000
/xm-lynx.h
4600 tmake_file
=rs6000
/t-rs6000
4601 xmake_file
=rs6000
/x-lynx
4609 tmake_file
="sh/t-sh t-rtems"
4618 xm_file
="xm-alloca.h ${xm_file}"
4621 sparc-wrs-vxworks
* | sparclite-wrs-vxworks
*)
4622 tm_file
=sparc
/vxsparc.h
4623 tmake_file
=sparc
/t-vxsparc
4627 tmake_file
=sparc
/t-sparcbare
4628 tm_file
="sparc/aout.h libgloss.h"
4631 tm_file
=sparc
/netbsd.h
4632 # On NetBSD, the headers are already okay, except for math.h.
4633 fixincludes
=fixinc.wrap
4641 tmake_file
=sparc
/t-elf
4642 extra_parts
="crti.o crtn.o crtbegin.o crtend.o"
4646 sparc-
*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
4647 xm_file
="${xm_file} sparc/xm-linux.h"
4648 tm_file
=sparc
/linux-aout.h
4650 fixincludes
=Makefile.
in # The headers are ok already.
4654 sparc-
*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4655 xm_file
="${xm_file} sparc/xm-linux.h"
4657 tm_file
=sparc
/linux.h
4658 tmake_file
="t-linux t-linux-gnulibc1 sparc/t-linux"
4659 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4660 fixincludes
=Makefile.
in # The headers are ok already.
4664 sparc-
*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4665 xm_file
="${xm_file} sparc/xm-linux.h"
4667 tm_file
=sparc
/linux.h
4668 tmake_file
="t-linux sparc/t-linux"
4669 extra_parts
="crtbegin.o crtbeginS.o crtend.o crtendS.o"
4670 fixincludes
=Makefile.
in # The headers are ok already.
4673 if [ x
$enable_threads = xyes
]; then
4680 tm_file
=sparc
/lynx.h
4682 tm_file
=sparc
/lynx-ng.h
4684 xm_file
=sparc
/xm-lynx.h
4685 tmake_file
=sparc
/t-sunos41
4689 tmake_file
="sparc/t-sparcbare t-rtems"
4690 tm_file
=sparc
/rtems.h
4692 sparc-hal-solaris2
*)
4693 xm_file
=sparc
/xm-sol2.h
4694 tm_file
="sparc/sol2.h sparc/hal.h"
4695 tmake_file
="sparc/t-halos sparc/t-sol2"
4696 xmake_file
=sparc
/x-sysv4
4697 extra_parts
="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
4698 fixincludes
=fixinc.svr4
4702 if [ x
$gnu_ld = xyes
]
4704 tm_file
=sparc
/sol2.h
4706 tm_file
=sparc
/sol2-sld.h
4708 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4709 xm_defines
="USG POSIX"
4710 tmake_file
=sparc
/t-sol2
4711 xmake_file
=sparc
/x-sysv4
4712 extra_parts
="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
4715 fixincludes
=fixinc.svr4
;;
4717 fixincludes
=fixinc.wrap
;;
4721 if [ x
$enable_threads = xyes
]; then
4722 thread_file
='solaris'
4726 tm_file
=sparc
/sunos4.h
4727 tmake_file
=sparc
/t-sunos40
4731 tm_file
=sparc
/sunos4.h
4732 tmake_file
=sparc
/t-sunos41
4734 if [ x
$gas = xyes
]; then
4735 tm_file
="${tm_file} sparc/sun4gas.h"
4739 tm_file
=sparc
/sun4o3.h
4743 tm_file
=sparc
/sysv4.h
4744 xm_file
="xm-siglist.h sparc/xm-sysv4.h"
4745 xm_defines
="USG POSIX"
4747 xmake_file
=sparc
/x-sysv4
4748 extra_parts
="crtbegin.o crtend.o"
4751 xm_file
="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
4752 xm_defines
="USG POSIX"
4753 tm_file
=sparc
/vxsim.h
4754 tmake_file
=sparc
/t-vxsparc
4755 xmake_file
=sparc
/x-sysv4
4758 tm_file
="sparc/splet.h libgloss.h"
4759 tmake_file
=sparc
/t-splet
4762 tm_file
="sparc/litecoff.h libgloss.h"
4763 tmake_file
=sparc
/t-sparclite
4766 tm_file
="sparc/lite.h aoutos.h libgloss.h"
4767 tmake_file
=sparc
/t-sparclite
4770 tmake_file
=sparc
/t-sp64
4771 tm_file
=sparc
/sp64-aout.h
4774 tmake_file
=sparc
/t-sp64
4775 tm_file
=sparc
/sp64-elf.h
4776 extra_parts
="crtbegin.o crtend.o"
4778 sparc64-
*-linux*) # 64-bit Sparc's running GNU/Linux
4779 tmake_file
=sparc
/t-sp64
4780 xm_file
="sparc/xm-sp64.h sparc/xm-linux.h"
4781 tm_file
=sparc
/linux64.h
4783 fixincludes
=Makefile.
in # The headers are ok already.
4786 # This hasn't been upgraded to GCC 2.
4787 # tahoe-harris-*) # Harris tahoe, using COFF.
4788 # tm_file=tahoe/harris.h
4790 # tahoe-*-bsd*) # tahoe running BSD
4792 # This hasn't been upgraded to GCC 2.
4799 tm_file
="v850/v850.h"
4800 xm_file
="v850/xm-v850.h"
4801 if [ x
$stabs = xyes
]
4803 tm_file
="${tm_file} dbx.h"
4807 vax-
*-bsd*) # vaxen running BSD
4811 vax-
*-sysv*) # vaxen running system V
4812 tm_file
="${tm_file} vax/vaxv.h"
4817 tm_file
="${tm_file} netbsd.h vax/netbsd.h"
4818 # On NetBSD, the headers are already okay, except for math.h.
4819 fixincludes
=fixinc.wrap
4823 vax-
*-ultrix*) # vaxen running ultrix
4824 tm_file
="${tm_file} vax/ultrix.h"
4828 vax-
*-vms*) # vaxen running VMS
4829 xm_file
=vax
/xm-vms.h
4833 vax-
*-*) # vax default entry
4837 xm_file
="${xm_file} xm-svr3"
4841 echo "Configuration $machine not supported" 1>&2
4848 ;; # Existing GNU/Linux systems do not use the GNU setup.
4850 # On the GNU system, the setup is just about the same on
4851 # each different CPU. The specific machines that GNU
4852 # supports are matched above and just set $cpu_type.
4853 xm_file
="xm-gnu.h ${xm_file}"
4854 tm_file
=${cpu_type}/gnu.h
4855 extra_parts
="crtbegin.o crtend.o crtbeginS.o crtendS.o"
4856 # GNU always uses ELF.
4858 # GNU tools are the only tools.
4861 # On GNU, the headers are already okay.
4862 fixincludes
=Makefile.
in
4863 xmake_file
=x-linux
# These details are the same as Linux.
4864 tmake_file
=t-gnu
# These are not.
4867 fixincludes
=fixinc.svr4
4868 xmake_try_sysv
=x-sysv
4870 install_headers_dir
=install-headers-cpio
4874 install_headers_dir
=install-headers-cpio
4878 # Distinguish i[34567]86
4879 # Also, do not run mips-tfile on MIPS if using gas.
4880 # Process --with-cpu= for PowerPC/rs6000
4881 target_cpu_default2
=
4884 target_cpu_default2
=1
4887 target_cpu_default2
=2
4889 i686-
*-* | i786-
*-*)
4890 target_cpu_default2
=3
4895 target_cpu_default2
="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4898 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX|TASK_MAX"
4901 target_cpu_default2
="MASK_CPU_EV5|MASK_BWX"
4904 target_cpu_default2
="MASK_CPU_EV5"
4910 if [ x
$target_cpu_default2 = x
]
4912 target_cpu_default2
="MASK_GAS"
4914 target_cpu_default2
="${target_cpu_default2}|MASK_GAS"
4919 case "x$with_cpu" in
4922 target_cpu_default2
="TARGET_CPU_generic"
4925 # Distinguish cores, and major variants
4926 # arm7m doesn't exist, but D & I don't affect code
4927 xarm23678 | xarm250 | xarm67010 \
4928 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
4929 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
4930 | xstrongarm | xstrongarm110
)
4931 target_cpu_default2
="TARGET_CPU_$with_cpu"
4935 echo "--with-cpu must be passed a value" 1>&2
4940 if [ x
$pass2done = xyes
]
4942 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4949 mips
*-*-ecoff* | mips
*-*-elf*)
4952 if [ x
$gnu_ld = xyes
]
4954 target_cpu_default2
=20
4956 target_cpu_default2
=16
4963 target_cpu_default2
=16
4966 powerpc
*-*-* | rs6000-
*-*)
4967 case "x$with_cpu" in
4971 xcommon | xpower | xpower2 | xpowerpc | xrios \
4972 | xrios1 | xrios2 | xrsc | xrsc1 \
4973 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4974 | x403 | x505 | x801 | x821 | x823 | x860
)
4975 target_cpu_default2
="\"$with_cpu\""
4979 echo "--with-cpu must be passed a value" 1>&2
4984 if [ x
$pass2done = xyes
]
4986 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4993 case ".$with_cpu" in
4995 target_cpu_default2
=TARGET_CPU_
"`echo $machine | sed 's/-.*$//'`"
4997 .supersparc | .ultrasparc | .v7 | .v8 | .v9
)
4998 target_cpu_default2
="TARGET_CPU_$with_cpu"
5001 if [ x
$pass2done = xyes
]
5003 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5011 if [ x
$target_cpu_default2 != x
]
5013 if [ x
$target_cpu_default != x
]
5015 target_cpu_default
="(${target_cpu_default}|${target_cpu_default2})"
5017 target_cpu_default
=$target_cpu_default2
5021 # No need for collect2 if we have the GNU linker.
5028 # Save data on machine being used to compile GCC in build_xm_file.
5029 # Save data on host machine in vars host_xm_file and host_xmake_file.
5030 if [ x
$pass1done = x
]
5032 if [ x
"$xm_file" = x
]
5033 then build_xm_file
=$cpu_type/xm-
$cpu_type.h
5034 else build_xm_file
=$xm_file
5036 build_xm_defines
=$xm_defines
5037 build_broken_install
=$broken_install
5038 build_install_headers_dir
=$install_headers_dir
5039 build_exeext
=$exeext
5042 if [ x
$pass2done = x
]
5044 if [ x
"$xm_file" = x
]
5045 then host_xm_file
=$cpu_type/xm-
$cpu_type.h
5046 else host_xm_file
=$xm_file
5048 host_xm_defines
=$xm_defines
5049 if [ x
"$xmake_file" = x
]
5050 then xmake_file
=$cpu_type/x-
$cpu_type
5052 host_xmake_file
="$xmake_file"
5053 host_truncate_target
=$truncate_target
5054 host_extra_gcc_objs
=$extra_gcc_objs
5055 host_extra_objs
=$extra_host_objs
5061 extra_objs
="${host_extra_objs} ${extra_objs}"
5063 # Default the target-machine variables that were not explicitly set.
5064 if [ x
"$tm_file" = x
]
5065 then tm_file
=$cpu_type/$cpu_type.h
; fi
5067 if [ x
$extra_headers = x
]
5068 then extra_headers
=; fi
5070 if [ x
"$xm_file" = x
]
5071 then xm_file
=$cpu_type/xm-
$cpu_type.h
; fi
5073 md_file
=$cpu_type/$cpu_type.md
5075 if [ x
$out_file = x
]
5076 then out_file
=$cpu_type/$cpu_type.c
; fi
5078 if [ x
"$tmake_file" = x
]
5079 then tmake_file
=$cpu_type/t-
$cpu_type
5082 if [ x
$float_format = x
]
5083 then float_format
=i64
5086 # Say what files are being used for the output code and MD file.
5087 echo "Using \`$srcdir/config/$out_file' to output insns."
5088 echo "Using \`$srcdir/config/$md_file' as machine description file."
5091 for f
in $tm_file; do
5094 if [ $count = ax
]; then
5095 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5097 echo "Using the following target machine macro files:"
5098 for f
in $tm_file; do
5099 echo " $srcdir/config/$f"
5104 for f
in $host_xm_file; do
5107 if [ $count = ax
]; then
5108 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5110 echo "Using the following host machine macro files:"
5111 for f
in $host_xm_file; do
5112 echo " $srcdir/config/$f"
5116 if [ "$host_xm_file" != "$build_xm_file" ]; then
5118 for f
in $build_xm_file; do
5121 if [ $count = ax
]; then
5122 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5124 echo "Using the following build machine macro files:"
5125 for f
in $build_xm_file; do
5126 echo " $srcdir/config/$f"
5131 if [ x
$thread_file = x
]
5132 then thread_file
='single'
5135 # Set up the header files.
5136 # $links is the list of header files to create.
5137 # $vars is the list of shell variables with file names to include.
5138 # auto-config.h is the file containing items generated by autoconf and is
5139 # the first file included by config.h.
5141 host_xm_file
="auto-config.h ${host_xm_file}"
5143 # If host=build, it is correct to have hconfig include auto-config.h
5144 # as well. If host!=build, we are in error and need to do more
5145 # work to find out the build config parameters.
5146 if test x
$host = x
$build
5148 build_xm_file
="auto-config.h ${build_xm_file}"
5150 # We create a subdir, then run autoconf in the subdir.
5151 # To prevent recursion we set host and build for the new
5152 # invocation of configure to the build for this invocation
5159 /*) realsrcdir
=${srcdir};;
5160 *) realsrcdir
=..
/${srcdir};;
5162 CC
=${CC_FOR_BUILD} ${realsrcdir}/configure \
5163 --target=$target --host=$build --build=$build
5165 # We just finished tests for the build machine, so rename
5166 # the file auto-build.h in the gcc directory.
5167 mv auto-config.h ..
/auto-build.h
5170 build_xm_file
="auto-build.h ${build_xm_file}"
5173 vars
="host_xm_file tm_file xm_file build_xm_file"
5174 links
="config.h tm.h tconfig.h hconfig.h"
5175 defines
="host_xm_defines null_defines xm_defines build_xm_defines"
5178 if [ -f config.status
]; then mv -f config.status config.bak
; fi
5181 while [ -n "$vars" ]
5183 set $vars; var
=$1; shift; vars
=$
*
5184 set $links; link
=$1; shift; links
=$
*
5185 set $defines; define
=$1; shift; defines
=$
*
5189 # Define TARGET_CPU_DEFAULT if the system wants one.
5190 # This substitutes for lots of *.h files.
5191 if [ x
$target_cpu_default != x
-a $link = tm.h
]
5193 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
5196 for file in `eval echo '$'$var`; do
5201 echo '#ifdef IN_GCC' >>$link
5204 echo "#include \"$file\"" >>$link
5209 echo '#endif' >>$link
5214 for def
in `eval echo '$'$define`; do
5215 echo "#ifndef $def" >>$link
5216 echo "#define $def" >>$link
5217 echo "#endif" >>$link
5221 # If we have a CVS directory, set up a rule so verion.c will be made
5222 # from CVS tag information and use a dummy version number here if we
5223 # don't have version.c.
5226 if [ -d $srcdir/CVS
]; then
5227 version_dep
=ChangeLog
5230 if [ ! -f $srcdir/version.c
-a -d $srcdir/CVS
]
5234 # Get the version number from the toplevel
5235 version
=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
5238 # Internationalization
5241 cat >> confdefs.h
<<EOF
5242 #define PACKAGE "$PACKAGE"
5245 cat >> confdefs.h
<<EOF
5246 #define VERSION "$VERSION"
5254 # NLS support is still experimental, so disable it by default for now.
5255 # Check whether --enable-nls or --disable-nls was given.
5256 if test "${enable_nls+set}" = set; then
5257 enableval
="$enable_nls"
5265 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
5266 echo "configure:5267: checking for strerror in -lcposix" >&5
5267 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
5268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 ac_save_LIBS
="$LIBS"
5272 LIBS
="-lcposix $LIBS"
5273 cat > conftest.
$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5285 if { (eval echo configure
:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5287 eval "ac_cv_lib_$ac_lib_var=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.
$ac_ext >&5
5292 eval "ac_cv_lib_$ac_lib_var=no"
5295 LIBS
="$ac_save_LIBS"
5298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 LIBS
="$LIBS -lcposix"
5302 echo "$ac_t""no" 1>&6
5307 echo $ac_n "checking for working const""... $ac_c" 1>&6
5308 echo "configure:5309: checking for working const" >&5
5309 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5312 cat > conftest.
$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5318 /* Ultrix mips cc rejects this. */
5319 typedef int charset[2]; const charset x;
5320 /* SunOS 4.1.1 cc rejects this. */
5321 char const *const *ccp;
5323 /* NEC SVR4.0.2 mips cc rejects this. */
5324 struct point {int x, y;};
5325 static struct point const zero = {0,0};
5326 /* AIX XL C 1.02.0.0 rejects this.
5327 It does not let you subtract one const X* pointer from another in an arm
5328 of an if-expression whose if-part is not a constant expression */
5329 const char *g = "string";
5330 ccp = &g + (g ? g-g : 0);
5331 /* HPUX 7.0 cc rejects these. */
5334 ccp = (char const *const *) p;
5335 { /* SCO 3.2v4 cc rejects this. */
5337 char const *s = 0 ? (char *) 0 : (char const *) 0;
5341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5343 const int *foo = &x[0];
5346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5347 typedef const int *iptr;
5351 { /* AIX XL C 1.02.0.0 rejects this saying
5352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5353 struct s { int j; const int *ap[3]; };
5354 struct s *b; b->j = 5;
5356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5362 if { (eval echo configure
:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5366 echo "configure: failed program was:" >&5
5367 cat conftest.
$ac_ext >&5
5374 echo "$ac_t""$ac_cv_c_const" 1>&6
5375 if test $ac_cv_c_const = no
; then
5376 cat >> confdefs.h
<<\EOF
5382 echo $ac_n "checking for inline""... $ac_c" 1>&6
5383 echo "configure:5384: checking for inline" >&5
5384 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5388 for ac_kw
in inline __inline__ __inline
; do
5389 cat > conftest.
$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5397 if { (eval echo configure
:5398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5399 ac_cv_c_inline
=$ac_kw; break
5401 echo "configure: failed program was:" >&5
5402 cat conftest.
$ac_ext >&5
5409 echo "$ac_t""$ac_cv_c_inline" 1>&6
5410 case "$ac_cv_c_inline" in
5412 no
) cat >> confdefs.h
<<\EOF
5416 *) cat >> confdefs.h
<<EOF
5417 #define inline $ac_cv_c_inline
5422 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5423 echo "configure:5424: checking for off_t" >&5
5424 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 cat > conftest.
$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 #include <sys/types.h>
5436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5437 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5439 ac_cv_type_off_t
=yes
5447 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5448 if test $ac_cv_type_off_t = no
; then
5449 cat >> confdefs.h
<<\EOF
5455 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5456 echo "configure:5457: checking for size_t" >&5
5457 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5460 cat > conftest.
$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 #include <sys/types.h>
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5472 ac_cv_type_size_t
=yes
5475 ac_cv_type_size_t
=no
5480 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5481 if test $ac_cv_type_size_t = no
; then
5482 cat >> confdefs.h
<<\EOF
5483 #define size_t unsigned
5488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5489 # for constant arguments. Useless!
5490 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5491 echo "configure:5492: checking for working alloca.h" >&5
5492 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6
5495 cat > conftest.
$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5500 char *p = alloca(2 * sizeof(int));
5503 if { (eval echo configure
:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5505 ac_cv_header_alloca_h
=yes
5507 echo "configure: failed program was:" >&5
5508 cat conftest.
$ac_ext >&5
5510 ac_cv_header_alloca_h
=no
5515 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5516 if test $ac_cv_header_alloca_h = yes; then
5517 cat >> confdefs.h
<<\EOF
5518 #define HAVE_ALLOCA_H 1
5523 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5524 echo "configure:5525: checking for alloca" >&5
5525 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5526 echo $ac_n "(cached) $ac_c" 1>&6
5528 cat > conftest.
$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5533 # define alloca __builtin_alloca
5536 # include <alloca.h>
5541 # ifndef alloca /* predefined by HP cc +Olibcalls */
5549 char *p = (char *) alloca(1);
5552 if { (eval echo configure
:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5554 ac_cv_func_alloca_works
=yes
5556 echo "configure: failed program was:" >&5
5557 cat conftest.
$ac_ext >&5
5559 ac_cv_func_alloca_works
=no
5564 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5565 if test $ac_cv_func_alloca_works = yes; then
5566 cat >> confdefs.h
<<\EOF
5567 #define HAVE_ALLOCA 1
5572 if test $ac_cv_func_alloca_works = no
; then
5573 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5574 # that cause trouble. Some versions do not even contain alloca or
5575 # contain a buggy version. If you still want to use their alloca,
5576 # use ar to extract alloca.o from them instead of compiling alloca.c.
5578 cat >> confdefs.h
<<\EOF
5583 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5584 echo "configure:5585: checking whether alloca needs Cray hooks" >&5
5585 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 cat > conftest.
$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 #if defined(CRAY) && ! defined(CRAY2)
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 egrep "webecray" >/dev
/null
2>&1; then
5610 echo "$ac_t""$ac_cv_os_cray" 1>&6
5611 if test $ac_cv_os_cray = yes; then
5612 for ac_func
in _getb67 GETB67 getb67
; do
5613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5614 echo "configure:5615: checking for $ac_func" >&5
5615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 cat > conftest.
$ac_ext <<EOF
5619 #line 5620 "configure"
5620 #include "confdefs.h"
5621 /* System header to define __stub macros and hopefully few prototypes,
5622 which can conflict with char $ac_func(); below. */
5624 /* Override any gcc2 internal prototype to avoid an error. */
5625 /* We use char because int might match the return type of a gcc2
5626 builtin and then its argument prototype would still apply. */
5631 /* The GNU C library defines this for functions which it implements
5632 to always fail with ENOSYS. Some functions are actually named
5633 something starting with __ and the normal name is an alias. */
5634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5642 if { (eval echo configure
:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5644 eval "ac_cv_func_$ac_func=yes"
5646 echo "configure: failed program was:" >&5
5647 cat conftest.
$ac_ext >&5
5649 eval "ac_cv_func_$ac_func=no"
5654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5655 echo "$ac_t""yes" 1>&6
5656 cat >> confdefs.h
<<EOF
5657 #define CRAY_STACKSEG_END $ac_func
5662 echo "$ac_t""no" 1>&6
5668 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5669 echo "configure:5670: checking stack direction for C alloca" >&5
5670 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5673 if test "$cross_compiling" = yes; then
5674 ac_cv_c_stack_direction
=0
5676 cat > conftest.
$ac_ext <<EOF
5677 #line 5678 "configure"
5678 #include "confdefs.h"
5679 find_stack_direction ()
5681 static char *addr = 0;
5686 return find_stack_direction ();
5689 return (&dummy > addr) ? 1 : -1;
5693 exit (find_stack_direction() < 0);
5696 if { (eval echo configure
:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5698 ac_cv_c_stack_direction
=1
5700 echo "configure: failed program was:" >&5
5701 cat conftest.
$ac_ext >&5
5703 ac_cv_c_stack_direction
=-1
5710 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5711 cat >> confdefs.h
<<EOF
5712 #define STACK_DIRECTION $ac_cv_c_stack_direction
5717 for ac_hdr
in unistd.h
5719 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5721 echo "configure:5722: checking for $ac_hdr" >&5
5722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.
$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5730 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5731 { (eval echo configure
:5732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5732 ac_err
=`grep -v '^ *+' conftest.out`
5733 if test -z "$ac_err"; then
5735 eval "ac_cv_header_$ac_safe=yes"
5738 echo "configure: failed program was:" >&5
5739 cat conftest.
$ac_ext >&5
5741 eval "ac_cv_header_$ac_safe=no"
5745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5746 echo "$ac_t""yes" 1>&6
5747 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5748 cat >> confdefs.h
<<EOF
5749 #define $ac_tr_hdr 1
5753 echo "$ac_t""no" 1>&6
5757 for ac_func
in getpagesize
5759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5760 echo "configure:5761: checking for $ac_func" >&5
5761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5764 cat > conftest.
$ac_ext <<EOF
5765 #line 5766 "configure"
5766 #include "confdefs.h"
5767 /* System header to define __stub macros and hopefully few prototypes,
5768 which can conflict with char $ac_func(); below. */
5770 /* Override any gcc2 internal prototype to avoid an error. */
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5777 /* The GNU C library defines this for functions which it implements
5778 to always fail with ENOSYS. Some functions are actually named
5779 something starting with __ and the normal name is an alias. */
5780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5788 if { (eval echo configure
:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5790 eval "ac_cv_func_$ac_func=yes"
5792 echo "configure: failed program was:" >&5
5793 cat conftest.
$ac_ext >&5
5795 eval "ac_cv_func_$ac_func=no"
5800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5801 echo "$ac_t""yes" 1>&6
5802 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5803 cat >> confdefs.h
<<EOF
5804 #define $ac_tr_func 1
5808 echo "$ac_t""no" 1>&6
5812 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
5813 echo "configure:5814: checking for working mmap" >&5
5814 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 if test "$cross_compiling" = yes; then
5818 ac_cv_func_mmap_fixed_mapped
=no
5820 cat > conftest.
$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5824 /* Thanks to Mike Haertel and Jim Avera for this test.
5825 Here is a matrix of mmap possibilities:
5826 mmap private not fixed
5827 mmap private fixed at somewhere currently unmapped
5828 mmap private fixed at somewhere already mapped
5829 mmap shared not fixed
5830 mmap shared fixed at somewhere currently unmapped
5831 mmap shared fixed at somewhere already mapped
5832 For private mappings, we should verify that changes cannot be read()
5833 back from the file, nor mmap's back from the file at a different
5834 address. (There have been systems where private was not correctly
5835 implemented like the infamous i386 svr4.0, and systems where the
5836 VM page cache was not coherent with the filesystem buffer cache
5837 like early versions of FreeBSD and possibly contemporary NetBSD.)
5838 For shared mappings, we should conversely verify that changes get
5839 propogated back to all the places they're supposed to be.
5841 Grep wants private fixed already mapped.
5842 The main things grep needs to know about mmap are:
5843 * does it exist and is it safe to write into the mmap'd area
5844 * how to use it (BSD variants) */
5845 #include <sys/types.h>
5847 #include <sys/mman.h>
5849 /* This mess was copied from the GNU getpagesize.h. */
5850 #ifndef HAVE_GETPAGESIZE
5851 # ifdef HAVE_UNISTD_H
5852 # include <unistd.h>
5855 /* Assume that all systems that can run configure have sys/param.h. */
5856 # ifndef HAVE_SYS_PARAM_H
5857 # define HAVE_SYS_PARAM_H 1
5860 # ifdef _SC_PAGESIZE
5861 # define getpagesize() sysconf(_SC_PAGESIZE)
5862 # else /* no _SC_PAGESIZE */
5863 # ifdef HAVE_SYS_PARAM_H
5864 # include <sys/param.h>
5865 # ifdef EXEC_PAGESIZE
5866 # define getpagesize() EXEC_PAGESIZE
5867 # else /* no EXEC_PAGESIZE */
5869 # define getpagesize() NBPG * CLSIZE
5872 # endif /* no CLSIZE */
5873 # else /* no NBPG */
5875 # define getpagesize() NBPC
5876 # else /* no NBPC */
5878 # define getpagesize() PAGESIZE
5879 # endif /* PAGESIZE */
5880 # endif /* no NBPC */
5881 # endif /* no NBPG */
5882 # endif /* no EXEC_PAGESIZE */
5883 # else /* no HAVE_SYS_PARAM_H */
5884 # define getpagesize() 8192 /* punt totally */
5885 # endif /* no HAVE_SYS_PARAM_H */
5886 # endif /* no _SC_PAGESIZE */
5888 #endif /* no HAVE_GETPAGESIZE */
5891 extern "C" { void *malloc(unsigned); }
5899 char *data, *data2, *data3;
5903 pagesize = getpagesize();
5906 * First, make a file with some known garbage in it.
5908 data = malloc(pagesize);
5911 for (i = 0; i < pagesize; ++i)
5912 *(data + i) = rand();
5914 fd = creat("conftestmmap", 0600);
5917 if (write(fd, data, pagesize) != pagesize)
5922 * Next, try to mmap the file at a fixed address which
5923 * already has something else allocated at it. If we can,
5924 * also make sure that we see the same garbage.
5926 fd = open("conftestmmap", O_RDWR);
5929 data2 = malloc(2 * pagesize);
5932 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5933 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
5934 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5936 for (i = 0; i < pagesize; ++i)
5937 if (*(data + i) != *(data2 + i))
5941 * Finally, make sure that changes to the mapped area
5942 * do not percolate back to the file as seen by read().
5943 * (This is a bug on some variants of i386 svr4.0.)
5945 for (i = 0; i < pagesize; ++i)
5946 *(data2 + i) = *(data2 + i) + 1;
5947 data3 = malloc(pagesize);
5950 if (read(fd, data3, pagesize) != pagesize)
5952 for (i = 0; i < pagesize; ++i)
5953 if (*(data + i) != *(data3 + i))
5956 unlink("conftestmmap");
5961 if { (eval echo configure
:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5963 ac_cv_func_mmap_fixed_mapped
=yes
5965 echo "configure: failed program was:" >&5
5966 cat conftest.
$ac_ext >&5
5968 ac_cv_func_mmap_fixed_mapped
=no
5975 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
5976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5977 cat >> confdefs.h
<<\EOF
5984 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
5985 unistd.h sys
/param.h
5987 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_hdr" >&5
5990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 cat > conftest.
$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5998 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5999 { (eval echo configure
:6000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6000 ac_err
=`grep -v '^ *+' conftest.out`
6001 if test -z "$ac_err"; then
6003 eval "ac_cv_header_$ac_safe=yes"
6006 echo "configure: failed program was:" >&5
6007 cat conftest.
$ac_ext >&5
6009 eval "ac_cv_header_$ac_safe=no"
6013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6016 cat >> confdefs.h
<<EOF
6017 #define $ac_tr_hdr 1
6021 echo "$ac_t""no" 1>&6
6025 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6026 strdup __argz_count __argz_stringify __argz_next
6028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6029 echo "configure:6030: checking for $ac_func" >&5
6030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6031 echo $ac_n "(cached) $ac_c" 1>&6
6033 cat > conftest.
$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6036 /* System header to define __stub macros and hopefully few prototypes,
6037 which can conflict with char $ac_func(); below. */
6039 /* Override any gcc2 internal prototype to avoid an error. */
6040 /* We use char because int might match the return type of a gcc2
6041 builtin and then its argument prototype would still apply. */
6046 /* The GNU C library defines this for functions which it implements
6047 to always fail with ENOSYS. Some functions are actually named
6048 something starting with __ and the normal name is an alias. */
6049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6057 if { (eval echo configure
:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6059 eval "ac_cv_func_$ac_func=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.
$ac_ext >&5
6064 eval "ac_cv_func_$ac_func=no"
6069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6070 echo "$ac_t""yes" 1>&6
6071 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6072 cat >> confdefs.h
<<EOF
6073 #define $ac_tr_func 1
6077 echo "$ac_t""no" 1>&6
6082 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6083 for ac_func
in stpcpy
6085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_func" >&5
6087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6090 cat > conftest.
$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 /* System header to define __stub macros and hopefully few prototypes,
6094 which can conflict with char $ac_func(); below. */
6096 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6103 /* The GNU C library defines this for functions which it implements
6104 to always fail with ENOSYS. Some functions are actually named
6105 something starting with __ and the normal name is an alias. */
6106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6114 if { (eval echo configure
:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6116 eval "ac_cv_func_$ac_func=yes"
6118 echo "configure: failed program was:" >&5
6119 cat conftest.
$ac_ext >&5
6121 eval "ac_cv_func_$ac_func=no"
6126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6128 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6129 cat >> confdefs.h
<<EOF
6130 #define $ac_tr_func 1
6134 echo "$ac_t""no" 1>&6
6139 if test "${ac_cv_func_stpcpy}" = "yes"; then
6140 cat >> confdefs.h
<<\EOF
6141 #define HAVE_STPCPY 1
6146 if test $ac_cv_header_locale_h = yes; then
6147 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
6148 echo "configure:6149: checking for LC_MESSAGES" >&5
6149 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
6150 echo $ac_n "(cached) $ac_c" 1>&6
6152 cat > conftest.
$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6160 if { (eval echo configure
:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6162 am_cv_val_LC_MESSAGES
=yes
6164 echo "configure: failed program was:" >&5
6165 cat conftest.
$ac_ext >&5
6167 am_cv_val_LC_MESSAGES
=no
6172 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
6173 if test $am_cv_val_LC_MESSAGES = yes; then
6174 cat >> confdefs.h
<<\EOF
6175 #define HAVE_LC_MESSAGES 1
6180 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
6181 echo "configure:6182: checking whether NLS is requested" >&5
6182 # Check whether --enable-nls or --disable-nls was given.
6183 if test "${enable_nls+set}" = set; then
6184 enableval
="$enable_nls"
6190 echo "$ac_t""$USE_NLS" 1>&6
6193 USE_INCLUDED_LIBINTL
=no
6195 if test "$USE_NLS" = "yes"; then
6196 cat >> confdefs.h
<<\EOF
6197 #define ENABLE_NLS 1
6200 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
6201 echo "configure:6202: checking whether included gettext is requested" >&5
6202 # Check whether --with-included-gettext or --without-included-gettext was given.
6203 if test "${with_included_gettext+set}" = set; then
6204 withval
="$with_included_gettext"
6205 nls_cv_force_use_gnu_gettext
=$withval
6207 nls_cv_force_use_gnu_gettext
=no
6210 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
6212 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
6213 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6215 nls_cv_header_libgt
=
6218 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
6219 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
6220 echo "configure:6221: checking for libintl.h" >&5
6221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6224 cat > conftest.
$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6227 #include <libintl.h>
6229 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6230 { (eval echo configure
:6231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6231 ac_err
=`grep -v '^ *+' conftest.out`
6232 if test -z "$ac_err"; then
6234 eval "ac_cv_header_$ac_safe=yes"
6237 echo "configure: failed program was:" >&5
6238 cat conftest.
$ac_ext >&5
6240 eval "ac_cv_header_$ac_safe=no"
6244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
6247 echo "configure:6248: checking for gettext in libc" >&5
6248 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 cat > conftest.
$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 #include <libintl.h>
6256 return (int) gettext ("")
6259 if { (eval echo configure
:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6261 gt_cv_func_gettext_libc
=yes
6263 echo "configure: failed program was:" >&5
6264 cat conftest.
$ac_ext >&5
6266 gt_cv_func_gettext_libc
=no
6271 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
6273 if test "$gt_cv_func_gettext_libc" != "yes"; then
6274 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
6275 echo "configure:6276: checking for bindtextdomain in -lintl" >&5
6276 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
6277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6280 ac_save_LIBS
="$LIBS"
6282 cat > conftest.
$ac_ext <<EOF
6283 #line 6284 "configure"
6284 #include "confdefs.h"
6285 /* Override any gcc2 internal prototype to avoid an error. */
6286 /* We use char because int might match the return type of a gcc2
6287 builtin and then its argument prototype would still apply. */
6288 char bindtextdomain();
6294 if { (eval echo configure
:6295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6296 eval "ac_cv_lib_$ac_lib_var=yes"
6298 echo "configure: failed program was:" >&5
6299 cat conftest.
$ac_ext >&5
6301 eval "ac_cv_lib_$ac_lib_var=no"
6304 LIBS
="$ac_save_LIBS"
6307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6308 echo "$ac_t""yes" 1>&6
6309 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
6310 echo "configure:6311: checking for gettext in libintl" >&5
6311 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
6315 echo "configure:6316: checking for gettext in -lintl" >&5
6316 ac_lib_var
=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
6317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6320 ac_save_LIBS
="$LIBS"
6322 cat > conftest.
$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6325 /* Override any gcc2 internal prototype to avoid an error. */
6326 /* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6334 if { (eval echo configure
:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6336 eval "ac_cv_lib_$ac_lib_var=yes"
6338 echo "configure: failed program was:" >&5
6339 cat conftest.
$ac_ext >&5
6341 eval "ac_cv_lib_$ac_lib_var=no"
6344 LIBS
="$ac_save_LIBS"
6347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6349 gt_cv_func_gettext_libintl
=yes
6351 echo "$ac_t""no" 1>&6
6352 gt_cv_func_gettext_libintl
=no
6357 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
6359 echo "$ac_t""no" 1>&6
6364 if test "$gt_cv_func_gettext_libc" = "yes" \
6365 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
6366 cat >> confdefs.h
<<\EOF
6367 #define HAVE_GETTEXT 1
6370 # Extract the first word of "msgfmt", so it can be a program name with args.
6371 set dummy msgfmt
; ac_word
=$2
6372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6373 echo "configure:6374: checking for $ac_word" >&5
6374 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6379 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6382 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6383 for ac_dir
in $PATH; do
6384 test -z "$ac_dir" && ac_dir
=.
6385 if test -f $ac_dir/$ac_word; then
6386 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6387 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6393 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
6397 MSGFMT
="$ac_cv_path_MSGFMT"
6398 if test -n "$MSGFMT"; then
6399 echo "$ac_t""$MSGFMT" 1>&6
6401 echo "$ac_t""no" 1>&6
6403 if test "$MSGFMT" != "no"; then
6404 for ac_func
in dcgettext
6406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6407 echo "configure:6408: checking for $ac_func" >&5
6408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6409 echo $ac_n "(cached) $ac_c" 1>&6
6411 cat > conftest.
$ac_ext <<EOF
6412 #line 6413 "configure"
6413 #include "confdefs.h"
6414 /* System header to define __stub macros and hopefully few prototypes,
6415 which can conflict with char $ac_func(); below. */
6417 /* Override any gcc2 internal prototype to avoid an error. */
6418 /* We use char because int might match the return type of a gcc2
6419 builtin and then its argument prototype would still apply. */
6424 /* The GNU C library defines this for functions which it implements
6425 to always fail with ENOSYS. Some functions are actually named
6426 something starting with __ and the normal name is an alias. */
6427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6435 if { (eval echo configure
:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6437 eval "ac_cv_func_$ac_func=yes"
6439 echo "configure: failed program was:" >&5
6440 cat conftest.
$ac_ext >&5
6442 eval "ac_cv_func_$ac_func=no"
6447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6448 echo "$ac_t""yes" 1>&6
6449 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6450 cat >> confdefs.h
<<EOF
6451 #define $ac_tr_func 1
6455 echo "$ac_t""no" 1>&6
6459 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6460 set dummy gmsgfmt
; ac_word
=$2
6461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6462 echo "configure:6463: checking for $ac_word" >&5
6463 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6464 echo $ac_n "(cached) $ac_c" 1>&6
6468 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6471 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6472 for ac_dir
in $PATH; do
6473 test -z "$ac_dir" && ac_dir
=.
6474 if test -f $ac_dir/$ac_word; then
6475 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6480 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6484 GMSGFMT
="$ac_cv_path_GMSGFMT"
6485 if test -n "$GMSGFMT"; then
6486 echo "$ac_t""$GMSGFMT" 1>&6
6488 echo "$ac_t""no" 1>&6
6491 # Extract the first word of "xgettext", so it can be a program name with args.
6492 set dummy xgettext
; ac_word
=$2
6493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6494 echo "configure:6495: checking for $ac_word" >&5
6495 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6500 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6503 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6504 for ac_dir
in $PATH; do
6505 test -z "$ac_dir" && ac_dir
=.
6506 if test -f $ac_dir/$ac_word; then
6507 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6508 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6514 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6518 XGETTEXT
="$ac_cv_path_XGETTEXT"
6519 if test -n "$XGETTEXT"; then
6520 echo "$ac_t""$XGETTEXT" 1>&6
6522 echo "$ac_t""no" 1>&6
6525 cat > conftest.
$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6530 extern int _nl_msg_cat_cntr;
6531 return _nl_msg_cat_cntr
6534 if { (eval echo configure
:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6539 echo "configure: failed program was:" >&5
6540 cat conftest.
$ac_ext >&5
6551 echo "$ac_t""no" 1>&6
6555 if test "$CATOBJEXT" = "NONE"; then
6556 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
6557 echo "configure:6558: checking whether catgets can be used" >&5
6558 # Check whether --with-catgets or --without-catgets was given.
6559 if test "${with_catgets+set}" = set; then
6560 withval
="$with_catgets"
6561 nls_cv_use_catgets
=$withval
6563 nls_cv_use_catgets
=no
6566 echo "$ac_t""$nls_cv_use_catgets" 1>&6
6568 if test "$nls_cv_use_catgets" = "yes"; then
6569 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
6570 echo "configure:6571: checking for main in -li" >&5
6571 ac_lib_var
=`echo i'_'main | sed 'y%./+-%__p_%'`
6572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6573 echo $ac_n "(cached) $ac_c" 1>&6
6575 ac_save_LIBS
="$LIBS"
6577 cat > conftest.
$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6585 if { (eval echo configure
:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6587 eval "ac_cv_lib_$ac_lib_var=yes"
6589 echo "configure: failed program was:" >&5
6590 cat conftest.
$ac_ext >&5
6592 eval "ac_cv_lib_$ac_lib_var=no"
6595 LIBS
="$ac_save_LIBS"
6598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6600 ac_tr_lib
=HAVE_LIB
`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6601 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6602 cat >> confdefs.h
<<EOF
6603 #define $ac_tr_lib 1
6609 echo "$ac_t""no" 1>&6
6612 echo $ac_n "checking for catgets""... $ac_c" 1>&6
6613 echo "configure:6614: checking for catgets" >&5
6614 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 cat > conftest.
$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6620 /* System header to define __stub macros and hopefully few prototypes,
6621 which can conflict with char catgets(); below. */
6623 /* Override any gcc2 internal prototype to avoid an error. */
6624 /* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6630 /* The GNU C library defines this for functions which it implements
6631 to always fail with ENOSYS. Some functions are actually named
6632 something starting with __ and the normal name is an alias. */
6633 #if defined (__stub_catgets) || defined (__stub___catgets)
6641 if { (eval echo configure
:6642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6643 eval "ac_cv_func_catgets=yes"
6645 echo "configure: failed program was:" >&5
6646 cat conftest.
$ac_ext >&5
6648 eval "ac_cv_func_catgets=no"
6653 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
6654 echo "$ac_t""yes" 1>&6
6655 cat >> confdefs.h
<<\EOF
6656 #define HAVE_CATGETS 1
6659 INTLOBJS
="\$(CATOBJS)"
6660 # Extract the first word of "gencat", so it can be a program name with args.
6661 set dummy gencat
; ac_word
=$2
6662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_word" >&5
6664 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6669 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
6672 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6673 for ac_dir
in $PATH; do
6674 test -z "$ac_dir" && ac_dir
=.
6675 if test -f $ac_dir/$ac_word; then
6676 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
6681 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
6685 GENCAT
="$ac_cv_path_GENCAT"
6686 if test -n "$GENCAT"; then
6687 echo "$ac_t""$GENCAT" 1>&6
6689 echo "$ac_t""no" 1>&6
6691 if test "$GENCAT" != "no"; then
6692 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6693 set dummy gmsgfmt
; ac_word
=$2
6694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6695 echo "configure:6696: checking for $ac_word" >&5
6696 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6701 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6704 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6705 for ac_dir
in $PATH; do
6706 test -z "$ac_dir" && ac_dir
=.
6707 if test -f $ac_dir/$ac_word; then
6708 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6713 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
6717 GMSGFMT
="$ac_cv_path_GMSGFMT"
6718 if test -n "$GMSGFMT"; then
6719 echo "$ac_t""$GMSGFMT" 1>&6
6721 echo "$ac_t""no" 1>&6
6724 if test "$GMSGFMT" = "no"; then
6725 # Extract the first word of "msgfmt", so it can be a program name with args.
6726 set dummy msgfmt
; ac_word
=$2
6727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6728 echo "configure:6729: checking for $ac_word" >&5
6729 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6734 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6737 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6738 for ac_dir
in $PATH; do
6739 test -z "$ac_dir" && ac_dir
=.
6740 if test -f $ac_dir/$ac_word; then
6741 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6742 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6748 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
6752 GMSGFMT
="$ac_cv_path_GMSGFMT"
6753 if test -n "$GMSGFMT"; then
6754 echo "$ac_t""$GMSGFMT" 1>&6
6756 echo "$ac_t""no" 1>&6
6760 # Extract the first word of "xgettext", so it can be a program name with args.
6761 set dummy xgettext
; ac_word
=$2
6762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6763 echo "configure:6764: checking for $ac_word" >&5
6764 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6765 echo $ac_n "(cached) $ac_c" 1>&6
6769 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6773 for ac_dir
in $PATH; do
6774 test -z "$ac_dir" && ac_dir
=.
6775 if test -f $ac_dir/$ac_word; then
6776 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6777 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6783 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6787 XGETTEXT
="$ac_cv_path_XGETTEXT"
6788 if test -n "$XGETTEXT"; then
6789 echo "$ac_t""$XGETTEXT" 1>&6
6791 echo "$ac_t""no" 1>&6
6794 USE_INCLUDED_LIBINTL
=yes
6798 INTLDEPS
='$(top_builddir)/intl/libintl.a'
6800 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
6801 nls_cv_header_intl
=intl
/libintl.h
6802 nls_cv_header_libgt
=intl
/libgettext.h
6805 echo "$ac_t""no" 1>&6
6811 if test "$CATOBJEXT" = "NONE"; then
6812 nls_cv_use_gnu_gettext
=yes
6816 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6817 INTLOBJS
="\$(GETTOBJS)"
6818 # Extract the first word of "msgfmt", so it can be a program name with args.
6819 set dummy msgfmt
; ac_word
=$2
6820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6821 echo "configure:6822: checking for $ac_word" >&5
6822 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6827 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6830 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6831 for ac_dir
in $PATH; do
6832 test -z "$ac_dir" && ac_dir
=.
6833 if test -f $ac_dir/$ac_word; then
6834 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6835 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
6841 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
6845 MSGFMT
="$ac_cv_path_MSGFMT"
6846 if test -n "$MSGFMT"; then
6847 echo "$ac_t""$MSGFMT" 1>&6
6849 echo "$ac_t""no" 1>&6
6852 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6853 set dummy gmsgfmt
; ac_word
=$2
6854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6855 echo "configure:6856: checking for $ac_word" >&5
6856 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6861 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6864 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6865 for ac_dir
in $PATH; do
6866 test -z "$ac_dir" && ac_dir
=.
6867 if test -f $ac_dir/$ac_word; then
6868 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
6873 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6877 GMSGFMT
="$ac_cv_path_GMSGFMT"
6878 if test -n "$GMSGFMT"; then
6879 echo "$ac_t""$GMSGFMT" 1>&6
6881 echo "$ac_t""no" 1>&6
6884 # Extract the first word of "xgettext", so it can be a program name with args.
6885 set dummy xgettext
; ac_word
=$2
6886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6887 echo "configure:6888: checking for $ac_word" >&5
6888 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
6889 echo $ac_n "(cached) $ac_c" 1>&6
6893 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6897 for ac_dir
in $PATH; do
6898 test -z "$ac_dir" && ac_dir
=.
6899 if test -f $ac_dir/$ac_word; then
6900 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6901 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
6907 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6911 XGETTEXT
="$ac_cv_path_XGETTEXT"
6912 if test -n "$XGETTEXT"; then
6913 echo "$ac_t""$XGETTEXT" 1>&6
6915 echo "$ac_t""no" 1>&6
6919 USE_INCLUDED_LIBINTL
=yes
6923 INTLDEPS
='$(top_builddir)/intl/libintl.a'
6925 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
6926 nls_cv_header_intl
=intl
/libintl.h
6927 nls_cv_header_libgt
=intl
/libgettext.h
6930 if test "$XGETTEXT" != ":"; then
6931 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
6934 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6939 # We need to process the po/ directory.
6943 nls_cv_header_intl
=intl
/libintl.h
6944 nls_cv_header_libgt
=intl
/libgettext.h
6950 # If this is used in GNU gettext we have to set USE_NLS to `yes'
6951 # because some of the sources are only built for this goal.
6952 if test "$PACKAGE" = gettext; then
6954 USE_INCLUDED_LIBINTL
=yes
6957 for lang
in $ALL_LINGUAS; do
6958 GMOFILES
="$GMOFILES $lang.gmo"
6959 POFILES
="$POFILES $lang.po"
6975 if test "x$CATOBJEXT" != "x"; then
6976 if test "x$ALL_LINGUAS" = "x"; then
6979 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
6980 echo "configure:6981: checking for catalogs to be installed" >&5
6982 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
6983 case "$ALL_LINGUAS" in
6984 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
6987 LINGUAS
=$NEW_LINGUAS
6988 echo "$ac_t""$LINGUAS" 1>&6
6991 if test -n "$LINGUAS"; then
6992 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
6996 if test $ac_cv_header_locale_h = yes; then
6997 INCLUDE_LOCALE_H
="#include <locale.h>"
7000 /* The system does not provide the header <locale.h>. Take care yourself. */"
7004 test -d intl || mkdir intl
7005 if test "$CATOBJEXT" = ".cat"; then
7006 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
7007 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
7008 echo "configure:7009: checking for linux/version.h" >&5
7009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7010 echo $ac_n "(cached) $ac_c" 1>&6
7012 cat > conftest.
$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7015 #include <linux/version.h>
7017 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7018 { (eval echo configure
:7019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7019 ac_err
=`grep -v '^ *+' conftest.out`
7020 if test -z "$ac_err"; then
7022 eval "ac_cv_header_$ac_safe=yes"
7025 echo "configure: failed program was:" >&5
7026 cat conftest.
$ac_ext >&5
7028 eval "ac_cv_header_$ac_safe=no"
7032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7033 echo "$ac_t""yes" 1>&6
7036 echo "$ac_t""no" 1>&6
7041 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
7043 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7044 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
7046 if test "$PACKAGE" = "gettext"; then
7057 if test -n "$ac_aux_dir"; then
7058 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
7060 if test -z "$MKINSTALLDIRS"; then
7061 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
7068 test -d po || mkdir po
7069 if test "x$srcdir" != "x."; then
7070 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7071 posrcprefix
="$srcdir/"
7073 posrcprefix
="../$srcdir/"
7079 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7080 < $srcdir/po
/POTFILES.
in > po
/POTFILES
7082 XGETTEXT
="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
7084 # Are we using gcc as the native compiler?
7086 *linux
* |
*cygwin32
* |
*mingw32
*)
7087 if [ x
$prefix = xNONE
]; then
7088 prefix
=$native_prefix
7093 # Get an absolute path to the GCC top-level source directory
7099 # Conditionalize the makefile for this host machine.
7100 # Make-host contains the concatenation of all host makefile fragments
7101 # [there can be more than one]. This file is built by configure.frag.
7102 host_overrides
=Make-host
7103 dep_host_xmake_file
=
7104 for f
in ..
${host_xmake_file}
7106 if [ -f ${srcdir}/config
/$f ]
7108 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
7112 # Conditionalize the makefile for this target machine.
7113 # Make-target contains the concatenation of all host makefile fragments
7114 # [there can be more than one]. This file is built by configure.frag.
7115 target_overrides
=Make-target
7117 for f
in ..
${tmake_file}
7119 if [ -f ${srcdir}/config
/$f ]
7121 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
7125 # If the host doesn't support symlinks, modify CC in
7126 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
7127 # Otherwise, we can use "CC=$(CC)".
7129 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
7131 cc_set_by_configure
="\$(CC)"
7132 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
7135 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
7137 symbolic_link
="cp -p"
7141 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
7142 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
7146 out_object_file
=`basename $out_file .c`.o
7149 for f
in $tm_file; do
7150 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
7154 for f
in $host_xm_file; do
7155 if [ $f != "auto-config.h" ]; then
7156 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
7158 host_xm_file_list
="${host_xm_file_list} $f"
7163 for f
in $build_xm_file; do
7164 if [ $f != "auto-config.h" -a $f != "auto-build.h" ]; then
7165 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
7167 build_xm_file_list
="${build_xm_file_list} $f"
7171 # Define macro CROSS_COMPILE in compilation
7172 # if this is a cross-compiler.
7173 # Also use all.cross instead of all.internal
7174 # and add cross-make to Makefile.
7175 cross_overrides
="/dev/null"
7176 if [ x
$host != x
$target ]
7178 cross_defines
="CROSS=-DCROSS_COMPILE"
7179 cross_overrides
="${topdir}/cross-make"
7182 # When building gcc with a cross-compiler, we need to fix a few things.
7183 # This must come after cross-make as we want all.build to override
7185 build_overrides
="/dev/null"
7186 if [ x
$build != x
$host ]
7188 build_overrides
="${topdir}/build-make"
7191 # Expand extra_headers to include complete path.
7192 # This substitutes for lots of t-* files.
7194 if [ "x$extra_headers" = x
]
7197 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
7198 for file in $extra_headers;
7200 extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/${file}"
7204 # Add a definition of USE_COLLECT2 if system wants one.
7205 # Also tell toplev.c what to do.
7206 # This substitutes for lots of t-* files.
7207 if [ x
$use_collect2 = x
]
7212 will_use_collect2
="ld"
7213 maybe_use_collect2
="-DUSE_COLLECT2"
7217 # Set MD_DEPS if the real md file is in md.pre-cpp.
7218 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
7219 # for line oriented comments, so we must always use a GNU cpp. If
7220 # building gcc with a cross compiler, use the cross compiler just
7221 # built. Otherwise, we can use the cpp just built.
7223 if [ "x$md_cppflags" = x
]
7225 md_file_sub
=$srcdir/config
/$md_file
7230 # If we have gas in the build tree, make a link to it.
7231 if [ -f ..
/gas
/Makefile
]; then
7232 rm -f as
; $symbolic_link ..
/gas
/as.new as
2>/dev
/null
7235 # If we have ld in the build tree, make a link to it.
7236 if [ -f ..
/ld
/Makefile
]; then
7237 if [ x
$use_collect2 = x
]; then
7238 rm -f ld
; $symbolic_link ..
/ld
/ld.new ld
2>/dev
/null
7240 rm -f collect-ld
; $symbolic_link ..
/ld
/ld.new collect-ld
2>/dev
/null
7244 # Figure out what language subdirectories are present.
7246 for lang
in ${srcdir}/*/config-lang.
in ..
7250 # The odd quoting in the next line works around
7251 # an apparent bug in bash 1.12 on linux.
7252 ${srcdir}/[*]/config-lang.
in) ;;
7253 *) subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7257 # Make empty files to contain the specs and options for each language.
7258 # Then add #include lines to for a compiler that has specs and/or options.
7262 rm -f specs.h options.h
7263 touch specs.h options.h
7264 for subdir
in .
$subdirs
7266 if [ -f $srcdir/$subdir/lang-specs.h
]; then
7267 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
7268 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
7270 if [ -f $srcdir/$subdir/lang-options.h
]; then
7271 echo "#include \"$subdir/lang-options.h\"" >>options.h
7272 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
7276 # These (without "all_") are set in each config-lang.in.
7277 # `language' must be a single word so is spelled singularly.
7283 all_outputs
='Makefile intl/Makefile po/Makefile.in'
7284 # List of language makefile fragments.
7289 # Add the language fragments.
7290 # Languages are added via two mechanisms. Some information must be
7291 # recorded in makefile variables, these are defined in config-lang.in.
7292 # We accumulate them and plug them into the main Makefile.
7293 # The other mechanism is a set of hooks for each of the main targets
7294 # like `clean', `install', etc.
7296 language_fragments
="Make-lang"
7297 language_hooks
="Make-hooks"
7300 for s
in ..
$subdirs
7312 .
${srcdir}/$s/config-lang.
in
7313 if [ "x$language" = x
]
7315 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7318 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
7319 all_languages
="$all_languages $language"
7320 if [ "x$boot_language" = xyes
]
7322 all_boot_languages
="$all_boot_languages $language"
7324 all_compilers
="$all_compilers $compilers"
7325 all_stagestuff
="$all_stagestuff $stagestuff"
7326 all_diff_excludes
="$all_diff_excludes $diff_excludes"
7327 all_headers
="$all_headers $headers"
7328 all_outputs
="$all_outputs $outputs"
7329 if [ x
$outputs = x
]
7331 oldstyle_subdirs
="$oldstyle_subdirs $s"
7333 all_lib2funcs
="$all_lib2funcs $lib2funcs"
7337 # Since we can't use `::' targets, we link each language in
7338 # with a set of hooks, reached indirectly via lang.${target}.
7342 target_list
="all.build all.cross start.encap rest.encap \
7344 install-normal install-common install-info install-man \
7346 mostlyclean clean distclean extraclean maintainer-clean \
7347 stage1 stage2 stage3 stage4"
7348 for t
in $target_list
7351 for lang
in ..
$all_languages
7353 if [ $lang != ".." ]; then
7357 echo "lang.$t: $x" >> Make-hooks
7360 # If we're not building in srcdir, create .gdbinit.
7362 if [ ! -f Makefile.
in ]; then
7363 echo "dir ." > .gdbinit
7364 echo "dir ${srcdir}" >> .gdbinit
7365 if [ x
$gdb_needs_out_file_path = xyes
]
7367 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7369 if [ "x$subdirs" != x
]; then
7372 echo "dir ${srcdir}/$s" >> .gdbinit
7375 echo "source ${srcdir}/.gdbinit" >> .gdbinit
7378 # Process the language and host/target makefile fragments.
7379 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
7381 # Substitute configuration variables
7432 # Echo that links are built
7433 if [ x
$host = x
$target ]
7441 if [ x
$host != x
$build ]
7443 str3
=" on a $build system"
7446 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
7451 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
7453 if [ "x$str2" != x
] ||
[ "x$str3" != x
]
7455 echo " ${str2}${str3}." 1>&2
7458 # Truncate the target if necessary
7459 if [ x
$host_truncate_target != x
]; then
7460 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
7463 # Configure the subdirectories
7464 # AC_CONFIG_SUBDIRS($subdirs)
7466 # Create the Makefile
7467 # and configure language subdirectories
7469 cat > confcache
<<\EOF
7470 # This file is a shell script that caches the results of configure
7471 # tests run on this system so they can be shared between configure
7472 # scripts and configure runs. It is not useful on other systems.
7473 # If it contains results you don't want to keep, you may remove or edit it.
7475 # By default, configure uses ./config.cache as the cache file,
7476 # creating it if it does not exist already. You can give configure
7477 # the --cache-file=FILE option to use a different cache file; that is
7478 # what configure does when it calls configure scripts in
7479 # subdirectories, so they share the cache.
7480 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7481 # config.status only pays attention to the cache file if you give it the
7482 # --recheck option to rerun configure.
7485 # The following way of writing the cache mishandles newlines in values,
7486 # but we know of no workaround that is simple, portable, and efficient.
7487 # So, don't put newlines in cache variables' values.
7488 # Ultrix sh set writes to stderr and can't be redirected directly,
7489 # and sets the high bit in the cache file unless we assign to the vars.
7491 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7493 # `set' does not quote correctly, so add quotes (double-quote substitution
7494 # turns \\\\ into \\, and sed turns \\ into \).
7496 -e "s/'/'\\\\''/g" \
7497 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7500 # `set' quotes correctly as required by POSIX, so do not add quotes.
7501 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7504 if cmp -s $cache_file confcache
; then
7507 if test -w $cache_file; then
7508 echo "updating cache $cache_file"
7509 cat confcache
> $cache_file
7511 echo "not updating unwritable cache $cache_file"
7516 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7518 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7519 # Let make expand exec_prefix.
7520 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7522 # Any assignment to VPATH causes Sun make to only execute
7523 # the first set of double-colon rules, so remove it if not needed.
7524 # If there is a colon in the path, we need to keep it.
7525 if test "x$srcdir" = x.
; then
7526 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7529 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7531 DEFS
=-DHAVE_CONFIG_H
7533 # Without the "./", some shells look in PATH for config.status.
7534 : ${CONFIG_STATUS=./config.status}
7536 echo creating
$CONFIG_STATUS
7537 rm -f $CONFIG_STATUS
7538 cat > $CONFIG_STATUS <<EOF
7540 # Generated automatically by configure.
7541 # Run this file to recreate the current configuration.
7542 # This directory was configured as follows,
7543 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7545 # $0 $ac_configure_args
7547 # Compiler output produced by configure, useful for debugging
7548 # configure, is in ./config.log if it exists.
7550 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7553 case "\$ac_option" in
7554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7555 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7556 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7557 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7558 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7560 -help | --help | --hel | --he | --h)
7561 echo "\$ac_cs_usage"; exit 0 ;;
7562 *) echo "\$ac_cs_usage"; exit 1 ;;
7566 ac_given_srcdir=$srcdir
7567 ac_given_INSTALL="$INSTALL"
7569 trap 'rm -fr `echo "$all_outputs auto-config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7571 cat >> $CONFIG_STATUS <<EOF
7573 # Protect against being on the right side of a sed subst in config.status.
7574 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7575 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7578 s%@CFLAGS@%$CFLAGS%g
7579 s%@CPPFLAGS@%$CPPFLAGS%g
7580 s%@CXXFLAGS@%$CXXFLAGS%g
7582 s%@LDFLAGS@%$LDFLAGS%g
7584 s%@exec_prefix@%$exec_prefix%g
7585 s%@prefix@%$prefix%g
7586 s%@program_transform_name@%$program_transform_name%g
7587 s%@bindir@%$bindir%g
7588 s%@sbindir@%$sbindir%g
7589 s%@libexecdir@%$libexecdir%g
7590 s%@datadir@%$datadir%g
7591 s%@sysconfdir@%$sysconfdir%g
7592 s%@sharedstatedir@%$sharedstatedir%g
7593 s%@localstatedir@%$localstatedir%g
7594 s%@libdir@%$libdir%g
7595 s%@includedir@%$includedir%g
7596 s%@oldincludedir@%$oldincludedir%g
7597 s%@infodir@%$infodir%g
7598 s%@mandir@%$mandir%g
7600 s%@host_alias@%$host_alias%g
7601 s%@host_cpu@%$host_cpu%g
7602 s%@host_vendor@%$host_vendor%g
7603 s%@host_os@%$host_os%g
7604 s%@target@%$target%g
7605 s%@target_alias@%$target_alias%g
7606 s%@target_cpu@%$target_cpu%g
7607 s%@target_vendor@%$target_vendor%g
7608 s%@target_os@%$target_os%g
7610 s%@build_alias@%$build_alias%g
7611 s%@build_cpu@%$build_cpu%g
7612 s%@build_vendor@%$build_vendor%g
7613 s%@build_os@%$build_os%g
7615 s%@SET_MAKE@%$SET_MAKE%g
7618 s%@LEXLIB@%$LEXLIB%g
7619 s%@RANLIB@%$RANLIB%g
7621 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7622 s%@INSTALL_DATA@%$INSTALL_DATA%g
7624 s%@vfprintf@%$vfprintf%g
7625 s%@doprint@%$doprint%g
7626 s%@manext@%$manext%g
7627 s%@objext@%$objext%g
7628 s%@PACKAGE@%$PACKAGE%g
7629 s%@VERSION@%$VERSION%g
7630 s%@ALLOCA@%$ALLOCA%g
7631 s%@USE_NLS@%$USE_NLS%g
7632 s%@MSGFMT@%$MSGFMT%g
7633 s%@GMSGFMT@%$GMSGFMT%g
7634 s%@XGETTEXT@%$XGETTEXT%g
7635 s%@GENCAT@%$GENCAT%g
7636 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7637 s%@CATALOGS@%$CATALOGS%g
7638 s%@CATOBJEXT@%$CATOBJEXT%g
7639 s%@DATADIRNAME@%$DATADIRNAME%g
7640 s%@GMOFILES@%$GMOFILES%g
7641 s%@INSTOBJEXT@%$INSTOBJEXT%g
7642 s%@INTLDEPS@%$INTLDEPS%g
7643 s%@INTLLIBS@%$INTLLIBS%g
7644 s%@INTLOBJS@%$INTLOBJS%g
7645 s%@POFILES@%$POFILES%g
7647 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7649 s%@GT_YES@%$GT_YES%g
7650 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7652 s%@subdirs@%$subdirs%g
7653 s%@all_languages@%$all_languages%g
7654 s%@all_boot_languages@%$all_boot_languages%g
7655 s%@all_compilers@%$all_compilers%g
7656 s%@all_lang_makefiles@%$all_lang_makefiles%g
7657 s%@all_stagestuff@%$all_stagestuff%g
7658 s%@all_diff_excludes@%$all_diff_excludes%g
7659 s%@all_lib2funcs@%$all_lib2funcs%g
7660 s%@all_headers@%$all_headers%g
7661 s%@extra_passes@%$extra_passes%g
7662 s%@extra_programs@%$extra_programs%g
7663 s%@extra_parts@%$extra_parts%g
7664 s%@extra_c_objs@%$extra_c_objs%g
7665 s%@extra_c_flags@%$extra_c_flags%g
7666 s%@extra_objs@%$extra_objs%g
7667 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
7668 s%@extra_headers_list@%$extra_headers_list%g
7669 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
7670 s%@dep_tmake_file@%$dep_tmake_file%g
7671 s%@out_file@%$out_file%g
7672 s%@out_object_file@%$out_object_file%g
7673 s%@md_file@%$md_file%g
7674 s%@tm_file_list@%$tm_file_list%g
7675 s%@build_xm_file_list@%$build_xm_file_list%g
7676 s%@host_xm_file_list@%$host_xm_file_list%g
7677 s%@lang_specs_files@%$lang_specs_files%g
7678 s%@lang_options_files@%$lang_options_files%g
7679 s%@thread_file@%$thread_file%g
7680 s%@version@%$version%g
7681 s%@local_prefix@%$local_prefix%g
7682 s%@gxx_include_dir@%$gxx_include_dir%g
7683 s%@fixincludes@%$fixincludes%g
7684 s%@build_install_headers_dir@%$build_install_headers_dir%g
7685 s%@build_exeext@%$build_exeext%g
7686 s%@float_format@%$float_format%g
7687 s%@will_use_collect2@%$will_use_collect2%g
7688 s%@maybe_use_collect2@%$maybe_use_collect2%g
7689 s%@cc_set_by_configure@%$cc_set_by_configure%g
7690 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
7691 s%@symbolic_link@%$symbolic_link%g
7692 s%@version_dep@%$version_dep%g
7693 /@target_overrides@/r $target_overrides
7694 s%@target_overrides@%%g
7695 /@host_overrides@/r $host_overrides
7696 s%@host_overrides@%%g
7697 s%@cross_defines@%$cross_defines%g
7698 /@cross_overrides@/r $cross_overrides
7699 s%@cross_overrides@%%g
7700 /@build_overrides@/r $build_overrides
7701 s%@build_overrides@%%g
7702 /@language_fragments@/r $language_fragments
7703 s%@language_fragments@%%g
7704 /@language_hooks@/r $language_hooks
7705 s%@language_hooks@%%g
7710 cat >> $CONFIG_STATUS <<\EOF
7712 # Split the substitutions into bite-sized pieces for seds with
7713 # small command number limits, like on Digital OSF/1 and HP-UX.
7714 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7715 ac_file
=1 # Number of current file.
7716 ac_beg
=1 # First line for current file.
7717 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7720 while $ac_more_lines; do
7721 if test $ac_beg -gt 1; then
7722 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7724 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7726 if test ! -s conftest.s
$ac_file; then
7728 rm -f conftest.s
$ac_file
7730 if test -z "$ac_sed_cmds"; then
7731 ac_sed_cmds
="sed -f conftest.s$ac_file"
7733 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7735 ac_file
=`expr $ac_file + 1`
7737 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7740 if test -z "$ac_sed_cmds"; then
7745 cat >> $CONFIG_STATUS <<EOF
7747 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
7749 cat >> $CONFIG_STATUS <<\EOF
7750 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7753 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7754 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7755 *) ac_file_in
="${ac_file}.in" ;;
7758 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7760 # Remove last slash and all that follows it. Not all systems have dirname.
7761 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7762 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7763 # The file is in a subdirectory.
7764 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7765 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7766 # A "../" for each directory in $ac_dir_suffix.
7767 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7769 ac_dir_suffix
= ac_dots
=
7772 case "$ac_given_srcdir" in
7774 if test -z "$ac_dots"; then top_srcdir
=.
7775 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7776 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7778 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7779 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7782 case "$ac_given_INSTALL" in
7783 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7784 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7787 echo creating
"$ac_file"
7789 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7791 *Makefile
*) ac_comsub
="1i\\
7792 # $configure_input" ;;
7796 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7798 s%@configure_input@%$configure_input%g
7799 s%@srcdir@%$srcdir%g
7800 s%@top_srcdir@%$top_srcdir%g
7801 s%@INSTALL@%$INSTALL%g
7802 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7809 # ac_d sets the value in "#define NAME VALUE" lines.
7810 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7811 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7814 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7815 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7816 ac_uB
='\([ ]\)%\1#\2define\3'
7819 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7820 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7821 ac_eB
='$%\1#\2define\3'
7825 if test "${CONFIG_HEADERS+set}" != set; then
7827 cat >> $CONFIG_STATUS <<EOF
7828 CONFIG_HEADERS="auto-config.h:config.in"
7830 cat >> $CONFIG_STATUS <<\EOF
7832 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7835 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7836 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7837 *) ac_file_in
="${ac_file}.in" ;;
7840 echo creating
$ac_file
7842 rm -f conftest.frag conftest.
in conftest.out
7843 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7844 cat $ac_file_inputs > conftest.
in
7848 # Transform confdefs.h into a sed script conftest.vals that substitutes
7849 # the proper values into config.h.in to produce config.h. And first:
7850 # Protect against being on the right side of a sed subst in config.status.
7851 # Protect against being in an unquoted here document in config.status.
7853 cat > conftest.hdr
<<\EOF
7856 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7860 sed -n -f conftest.hdr confdefs.h > conftest.vals
7863 # This sed command replaces #undef with comments. This is necessary, for
7864 # example, in the case of _POSIX_SOURCE, which is predefined and required
7865 # on some systems where configure will not decide to define it.
7866 cat >> conftest.vals <<\EOF
7867 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7870 # Break up conftest.vals because some shells have a limit on
7871 # the size of here documents, and old seds have small limits too.
7876 ac_lines=`grep -c . conftest.vals
`
7877 # grep -c gives empty output for an empty file on some AIX systems.
7878 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7879 # Write a limited-size here document to conftest.frag.
7880 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7881 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7883 sed -f conftest.frag conftest.in > conftest.out
7885 mv conftest.out conftest.in
7887 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7889 mv conftest.tail conftest.vals
7893 cat >> $CONFIG_STATUS <<\EOF
7894 rm -f conftest.frag conftest.h
7895 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7896 cat conftest.in >> conftest.h
7898 if cmp -s $ac_file conftest.h 2>/dev/null; then
7899 echo "$ac_file is unchanged"
7902 # Remove last slash and all that follows it. Not all systems have dirname.
7903 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7904 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7905 # The file is in a subdirectory.
7906 test ! -d "$ac_dir" && mkdir "$ac_dir"
7909 mv conftest.h $ac_file
7915 cat >> $CONFIG_STATUS <<EOF
7916 ac_sources="$nls_cv_header_libgt"
7917 ac_dests="$nls_cv_header_intl"
7920 cat >> $CONFIG_STATUS <<\EOF
7921 srcdir=$ac_given_srcdir
7922 while test -n "$ac_sources"; do
7923 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7924 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7926 echo "linking $srcdir/$ac_source to $ac_dest"
7928 if test ! -r $srcdir/$ac_source; then
7929 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7933 # Make relative symlinks.
7934 # Remove last slash and all that follows it. Not all systems have dirname.
7935 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7936 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7937 # The dest file is in a subdirectory.
7938 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7939 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7940 # A "../" for each directory in $ac_dest_dir_suffix.
7941 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7943 ac_dest_dir_suffix= ac_dots=
7947 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7948 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7951 # Make a symlink if possible; otherwise try a hard link.
7952 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7953 ln $srcdir/$ac_source $ac_dest; then :
7955 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7959 cat >> $CONFIG_STATUS <<EOF
7965 target_alias='${target_alias}'
7967 subdirs='${subdirs}'
7968 oldstyle_subdirs='${oldstyle_subdirs}'
7969 symbolic_link='${symbolic_link}'
7970 version_dep='${version_dep}'
7971 program_transform_set='${program_transform_set}'
7972 program_transform_name='${program_transform_name}'
7973 dep_host_xmake_file='${dep_host_xmake_file}'
7974 host_xmake_file='${host_xmake_file}'
7975 dep_tmake_file='${dep_tmake_file}'
7976 tmake_file='${tmake_file}'
7977 thread_file='${thread_file}'
7978 version='${version}'
7979 local_prefix='${local_prefix}'
7980 build_install_headers_dir='${build_install_headers_dir}'
7981 build_exeext='${build_exeext}'
7982 out_file='${out_file}'
7983 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7984 SET_MAKE='${SET_MAKE}'
7985 build_broken_install='${build_broken_install}'
7986 target_list='${target_list}'
7987 target_overrides='${target_overrides}'
7988 host_overrides='${host_overrides}'
7989 cross_defines='${cross_defines}'
7990 cross_overrides='${cross_overrides}'
7991 build_overrides='${build_overrides}'
7994 cat >> $CONFIG_STATUS <<\EOF
7995 case "$CONFIG_FILES" in *po/Makefile.in*)
7996 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7999 . $srcdir/configure.lang
8000 case x$CONFIG_HEADERS in
8001 xauto-config.h:config.in)
8004 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
8005 # bootstrapping and the installation procedure can still use
8006 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
8007 # FLAGS_TO_PASS has been modified to solve the problem there.
8008 # This is virtually a duplicate of what happens in configure.lang; we do
8009 # an extra check to make sure this only happens if ln -s can be used.
8010 if [ "$symbolic_link" = "ln -s" ]; then
8011 for d in .. ${subdirs} ; do
8012 if [ $d != .. ]; then
8015 for t in stage1 stage2 stage3 stage4 include
8018 $symbolic_link ../$t $t 2>/dev/null
8024 # Avoid having to add intl to our include paths.
8025 if test -f intl/libintl.h; then
8026 echo creating libintl.h
8027 echo '#include "intl/libintl.h"' >libintl.h
8032 chmod +x $CONFIG_STATUS
8033 rm -fr confdefs* $ac_clean_files
8034 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1