Import final gcc2 snapshot (990109)
[official-gcc.git] / gcc / configure
blob94ea0416ffc8a51d7764a5440fe4e69e04166083
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-gnu-ld arrange to work with GNU ld."
16 ac_help="$ac_help
17 --with-gnu-as arrange to work with GNU as."
18 ac_help="$ac_help
19 --with-stabs arrange to use stabs instead of host debug format."
20 ac_help="$ac_help
21 --with-elf arrange to use ELF instead of host debug format."
22 ac_help="$ac_help
23 --with-local-prefix=DIR specifies directory to put local include."
24 ac_help="$ac_help
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
27 ac_help="$ac_help
28 --enable-checking enable expensive run-time checks."
29 ac_help="$ac_help
30 --enable-c-cpplib Use cpplib for C."
31 ac_help="$ac_help
32 --enable-c-mbchar Enable multibyte characters for C and C++."
33 ac_help="$ac_help
34 --enable-threads enable thread usage for target GCC.
35 --enable-threads=LIB use LIB thread package for target GCC."
36 ac_help="$ac_help
37 --enable-nls use Native Language Support (disabled by default)"
38 ac_help="$ac_help
39 --disable-nls do not use Native Language Support"
40 ac_help="$ac_help
41 --with-included-gettext use the GNU gettext library included here"
42 ac_help="$ac_help
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.
48 build=NONE
49 cache_file=./config.cache
50 exec_prefix=NONE
51 host=NONE
52 no_create=
53 nonopt=NONE
54 no_recursion=
55 prefix=NONE
56 program_prefix=NONE
57 program_suffix=NONE
58 program_transform_name=s,x,x,
59 silent=
60 site=
61 srcdir=
62 target=NONE
63 verbose=
64 x_includes=NONE
65 x_libraries=NONE
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.
80 subdirs=
81 MFLAGS= MAKEFLAGS=
82 # Maximum number of lines to put in a shell here document.
83 ac_max_here_lines=12
85 ac_prev=
86 for ac_option
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
92 ac_prev=
93 continue
96 case "$ac_option" in
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 *) ac_optarg= ;;
99 esac
101 # Accept the important Cygnus configure options, so we can diagnose typos.
103 case "$ac_option" in
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 ac_prev=bindir ;;
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
111 ac_prev=build ;;
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)
123 ac_prev=datadir ;;
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 | --da=*)
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'`
144 case "$ac_option" in
145 *=*) ;;
146 *) ac_optarg=yes ;;
147 esac
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.
161 with_gas=yes ;;
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.
166 cat << EOF
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
169 Configuration:
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
177 [$ac_default_prefix]
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 [same as prefix]
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
184 [PREFIX/share]
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 [PREFIX/com]
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
200 cat << EOF
201 Host type:
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"
216 exit 0 ;;
218 -host | --host | --hos | --ho)
219 ac_prev=host ;;
220 -host=* | --host=* | --hos=* | --ho=*)
221 host="$ac_optarg" ;;
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)
231 ac_prev=infodir ;;
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
236 ac_prev=libdir ;;
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)
257 ac_prev=mandir ;;
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
261 -nfp | --nfp | --nf)
262 # Obsolete; use --without-fp.
263 with_fp=no ;;
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 | --no-cr | --no-c)
267 no_create=yes ;;
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 no_recursion=yes ;;
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)
283 ac_prev=prefix ;;
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)
320 silent=yes ;;
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 ac_prev=sbindir ;;
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 | --sbi=* | --sb=*)
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
331 | --sha | --sh)
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 | --sha=* | --sh=*)
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
340 ac_prev=site ;;
341 -site=* | --site=* | --sit=*)
342 site="$ac_optarg" ;;
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 ac_prev=srcdir ;;
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)
357 ac_prev=target ;;
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 verbose=yes ;;
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.12"
366 exit 0 ;;
368 -with-* | --with-*)
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'`
375 case "$ac_option" in
376 *=*) ;;
377 *) ac_optarg=yes ;;
378 esac
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" ;;
390 --x)
391 # Obsolete; use --with-x.
392 with_x=yes ;;
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; }
418 nonopt="$ac_option"
421 esac
422 done
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:
431 # 0 standard input
432 # 1 file creation
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
439 exec 6>/dev/null
440 else
441 exec 6>&1
443 exec 5>./config.log
445 echo "\
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
448 " 1>&5
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
452 ac_configure_args=
453 for ac_arg
455 case "$ac_arg" in
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" ;;
463 esac
464 done
466 # NLS nuisances.
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.
479 echo > confdefs.h
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.
489 ac_prog=$0
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 srcdir=$ac_confdir
493 if test ! -r $srcdir/$ac_unique_file; then
494 srcdir=..
496 else
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; }
502 else
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"
512 else
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"
519 . "$ac_site_file"
521 done
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
525 . $cache_file
526 else
527 echo "creating cache $cache_file"
528 > $cache_file
531 ac_ext=c
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
541 ac_n= ac_c='
542 ' ac_t=' '
543 else
544 ac_n=-n ac_c= ac_t=
546 else
547 ac_n= ac_c='\c' ac_t=
553 native_prefix=/usr
554 remove=rm
555 hard_link=ln
556 symbolic_link='ln -s'
557 copy=cp
559 # Check for additional parameters
561 # With GNU ld
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"
565 gnu_ld=yes
566 else
567 gnu_ld=no
571 # With GNU as
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"
575 gas=yes
576 else
577 gas=no
581 # With stabs
582 # Check whether --with-stabs or --without-stabs was given.
583 if test "${with_stabs+set}" = set; then
584 withval="$with_stabs"
585 stabs=yes
586 else
587 stabs=no
591 # With ELF
592 # Check whether --with-elf or --without-elf was given.
593 if test "${with_elf+set}" = set; then
594 withval="$with_elf"
595 elf=yes
596 else
597 elf=no
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
606 else
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
621 else
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
664 # Enable threads
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
671 enable_threads=''
673 else
674 enable_threads=''
678 # Check if a valid thread package
679 case x${enable_threads} in
680 x | xno)
681 # No threads
682 thread_file='single'
684 xyes)
685 # default
686 thread_file=''
688 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
689 xsolaris | xwin32)
690 thread_file=$enable_threads
693 echo "$enable_threads is an unknown thread package" 1>&2
694 exit 1
696 esac
698 # Determine the host, build, and target systems
699 ac_aux_dir=
700 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
701 if test -f $ac_dir/install-sh; then
702 ac_aux_dir=$ac_dir
703 ac_install_sh="$ac_aux_dir/install-sh -c"
704 break
705 elif test -f $ac_dir/install.sh; then
706 ac_aux_dir=$ac_dir
707 ac_install_sh="$ac_aux_dir/install.sh -c"
708 break
710 done
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.
720 # The inputs are:
721 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
723 # The rules are:
724 # 1. You are not allowed to specify --host, --target, and nonopt at the
725 # same time.
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; } ;;
737 esac
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
748 host_alias=$host
749 case "$host_alias" in
750 NONE)
751 case $nonopt in
752 NONE)
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; }
755 fi ;;
756 *) host_alias=$nonopt ;;
757 esac ;;
758 esac
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
769 target_alias=$target
770 case "$target_alias" in
771 NONE)
772 case $nonopt in
773 NONE) target_alias=$host_alias ;;
774 *) target_alias=$nonopt ;;
775 esac ;;
776 esac
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
787 build_alias=$build
788 case "$build_alias" in
789 NONE)
790 case $nonopt in
791 NONE) build_alias=$host_alias ;;
792 *) build_alias=$nonopt ;;
793 esac ;;
794 esac
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" = \
804 NONENONEs,x,x, &&
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
815 else
816 if test -n "$CC"; then
817 ac_cv_prog_CC="$CC" # Let the user override the test.
818 else
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
823 ac_cv_prog_CC="gcc"
824 break
826 done
827 IFS="$ac_save_ifs"
830 CC="$ac_cv_prog_CC"
831 if test -n "$CC"; then
832 echo "$ac_t""$CC" 1>&6
833 else
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
844 else
845 if test -n "$CC"; then
846 ac_cv_prog_CC="$CC" # Let the user override the test.
847 else
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
849 ac_prog_rejected=no
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
854 ac_prog_rejected=yes
855 continue
857 ac_cv_prog_CC="cc"
858 break
860 done
861 IFS="$ac_save_ifs"
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
865 shift
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.
870 shift
871 set dummy "$ac_dir/$ac_word" "$@"
872 shift
873 ac_cv_prog_CC="$@"
878 CC="$ac_cv_prog_CC"
879 if test -n "$CC"; then
880 echo "$ac_t""$CC" 1>&6
881 else
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
891 ac_ext=c
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"
901 main(){return(0);}
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
908 else
909 ac_cv_prog_cc_cross=yes
911 else
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
914 ac_cv_prog_cc_works=no
916 rm -fr conftest*
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
931 else
932 cat > conftest.c <<EOF
933 #ifdef __GNUC__
934 yes;
935 #endif
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
938 ac_cv_prog_gcc=yes
939 else
940 ac_cv_prog_gcc=no
944 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
946 if test $ac_cv_prog_gcc = yes; then
947 GCC=yes
948 ac_test_CFLAGS="${CFLAGS+set}"
949 ac_save_CFLAGS="$CFLAGS"
950 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
955 else
956 echo 'void f(){}' > conftest.c
957 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
958 ac_cv_prog_cc_g=yes
959 else
960 ac_cv_prog_cc_g=no
962 rm -f conftest*
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
970 CFLAGS="-g -O2"
971 else
972 CFLAGS="-O2"
974 else
975 GCC=
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
984 else
985 cat > conftestmake <<\EOF
986 all:
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
993 else
994 eval ac_cv_prog_make_${ac_make}_set=no
996 rm -f conftestmake
998 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
999 echo "$ac_t""yes" 1>&6
1000 SET_MAKE=
1001 else
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
1016 else
1017 if test -n "$AWK"; then
1018 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1019 else
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"
1025 break
1027 done
1028 IFS="$ac_save_ifs"
1031 AWK="$ac_cv_prog_AWK"
1032 if test -n "$AWK"; then
1033 echo "$ac_t""$AWK" 1>&6
1034 else
1035 echo "$ac_t""no" 1>&6
1038 test -n "$AWK" && break
1039 done
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
1047 else
1048 if test -n "$LEX"; then
1049 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1050 else
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"
1056 break
1058 done
1059 IFS="$ac_save_ifs"
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
1066 else
1067 echo "$ac_t""no" 1>&6
1070 if test -z "$LEXLIB"
1071 then
1072 case "$LEX" in
1073 flex*) ac_lib=fl ;;
1074 *) ac_lib=l ;;
1075 esac
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
1081 else
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. */
1090 char yywrap();
1092 int main() {
1093 yywrap()
1094 ; return 0; }
1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1097 rm -rf conftest*
1098 eval "ac_cv_lib_$ac_lib_var=yes"
1099 else
1100 echo "configure: failed program was:" >&5
1101 cat conftest.$ac_ext >&5
1102 rm -rf conftest*
1103 eval "ac_cv_lib_$ac_lib_var=no"
1105 rm -f conftest*
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
1111 LEXLIB="-l$ac_lib"
1112 else
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
1122 else
1123 cat > conftest.$ac_ext <<EOF
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1127 int main() {
1128 volatile int foo;
1129 ; return 0; }
1131 if { (eval echo configure:1132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1132 rm -rf conftest*
1133 gcc_cv_c_volatile=yes
1134 else
1135 echo "configure: failed program was:" >&5
1136 cat conftest.$ac_ext >&5
1137 rm -rf conftest*
1138 gcc_cv_c_volatile=no
1140 rm -f conftest*
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
1157 else
1158 if test -n "$RANLIB"; then
1159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1160 else
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"
1166 break
1168 done
1169 IFS="$ac_save_ifs"
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
1176 else
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
1188 else
1189 if test -n "$YACC"; then
1190 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1191 else
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"
1197 break
1199 done
1200 IFS="$ac_save_ifs"
1203 YACC="$ac_cv_prog_YACC"
1204 if test -n "$YACC"; then
1205 echo "$ac_t""$YACC" 1>&6
1206 else
1207 echo "$ac_t""no" 1>&6
1210 test -n "$YACC" && break
1211 done
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
1220 # AIX /bin/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
1229 else
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.
1233 case "$ac_dir/" in
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.
1244 else
1245 ac_cv_path_install="$ac_dir/$ac_prog -c"
1246 break 2
1249 done
1251 esac
1252 done
1253 IFS="$ac_save_IFS"
1256 if test "${ac_cv_path_install+set}" = set; then
1257 INSTALL="$ac_cv_path_install"
1258 else
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
1279 CPP=
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
1284 else
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.
1287 CPP="${CC-cc} -E"
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"
1293 #include <assert.h>
1294 Syntax Error
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
1301 else
1302 echo "$ac_err" >&5
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1305 rm -rf conftest*
1306 CPP="${CC-cc} -E -traditional-cpp"
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1310 #include <assert.h>
1311 Syntax Error
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
1318 else
1319 echo "$ac_err" >&5
1320 echo "configure: failed program was:" >&5
1321 cat conftest.$ac_ext >&5
1322 rm -rf conftest*
1323 CPP=/lib/cpp
1325 rm -f conftest*
1327 rm -f conftest*
1328 ac_cv_prog_CPP="$CPP"
1330 CPP="$ac_cv_prog_CPP"
1331 else
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
1340 else
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1344 #include <stdlib.h>
1345 #include <stdarg.h>
1346 #include <string.h>
1347 #include <float.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
1353 rm -rf conftest*
1354 ac_cv_header_stdc=yes
1355 else
1356 echo "$ac_err" >&5
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1359 rm -rf conftest*
1360 ac_cv_header_stdc=no
1362 rm -f conftest*
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"
1369 #include <string.h>
1371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1372 egrep "memchr" >/dev/null 2>&1; then
1374 else
1375 rm -rf conftest*
1376 ac_cv_header_stdc=no
1378 rm -f conftest*
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"
1387 #include <stdlib.h>
1389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1390 egrep "free" >/dev/null 2>&1; then
1392 else
1393 rm -rf conftest*
1394 ac_cv_header_stdc=no
1396 rm -f conftest*
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
1404 else
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1408 #include <ctype.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);
1414 exit (0); }
1417 if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1418 then
1420 else
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1423 rm -fr conftest*
1424 ac_cv_header_stdc=no
1426 rm -fr conftest*
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
1444 else
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1448 #include <sys/types.h>
1449 #include <sys/time.h>
1450 #include <time.h>
1451 int main() {
1452 struct tm *tp;
1453 ; return 0; }
1455 if { (eval echo configure:1456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1456 rm -rf conftest*
1457 ac_cv_header_time=yes
1458 else
1459 echo "configure: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1461 rm -rf conftest*
1462 ac_cv_header_time=no
1464 rm -f conftest*
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
1479 else
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1483 #include <string.h>
1484 #include <strings.h>
1485 int main() {
1487 ; return 0; }
1489 if { (eval echo configure:1490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1490 rm -rf conftest*
1491 gcc_cv_header_string=yes
1492 else
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 rm -rf conftest*
1496 gcc_cv_header_string=no
1498 rm -f conftest*
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
1513 else
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1517 #include <sys/types.h>
1518 #include <inttypes.h>
1519 int main() {
1520 intmax_t i = -1;
1521 ; return 0; }
1523 if { (eval echo configure:1524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1524 rm -rf conftest*
1525 gcc_cv_header_inttypes_h=yes
1526 else
1527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
1529 rm -rf conftest*
1530 gcc_cv_header_inttypes_h=no
1532 rm -f conftest*
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
1547 else
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1551 #include <sys/types.h>
1552 #include <sys/wait.h>
1553 #ifndef WEXITSTATUS
1554 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1555 #endif
1556 #ifndef WIFEXITED
1557 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1558 #endif
1559 int main() {
1560 int s;
1561 wait (&s);
1562 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1563 ; return 0; }
1565 if { (eval echo configure:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1566 rm -rf conftest*
1567 ac_cv_header_sys_wait_h=yes
1568 else
1569 echo "configure: failed program was:" >&5
1570 cat conftest.$ac_ext >&5
1571 rm -rf conftest*
1572 ac_cv_header_sys_wait_h=no
1574 rm -f conftest*
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
1594 else
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1598 #include <$ac_hdr>
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
1604 rm -rf conftest*
1605 eval "ac_cv_header_$ac_safe=yes"
1606 else
1607 echo "$ac_err" >&5
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1610 rm -rf conftest*
1611 eval "ac_cv_header_$ac_safe=no"
1613 rm -f conftest*
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
1622 else
1623 echo "$ac_t""no" 1>&6
1625 done
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
1636 else
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. */
1642 #include <assert.h>
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. */
1646 char $ac_func();
1648 int main() {
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)
1654 choke me
1655 #else
1656 $ac_func();
1657 #endif
1659 ; return 0; }
1661 if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1662 rm -rf conftest*
1663 eval "ac_cv_func_$ac_func=yes"
1664 else
1665 echo "configure: failed program was:" >&5
1666 cat conftest.$ac_ext >&5
1667 rm -rf conftest*
1668 eval "ac_cv_func_$ac_func=no"
1670 rm -f conftest*
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
1680 else
1681 echo "$ac_t""no" 1>&6
1683 done
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
1691 else
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. */
1697 #include <assert.h>
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. */
1701 char vprintf();
1703 int main() {
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)
1709 choke me
1710 #else
1711 vprintf();
1712 #endif
1714 ; return 0; }
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1717 rm -rf conftest*
1718 eval "ac_cv_func_vprintf=yes"
1719 else
1720 echo "configure: failed program was:" >&5
1721 cat conftest.$ac_ext >&5
1722 rm -rf conftest*
1723 eval "ac_cv_func_vprintf=no"
1725 rm -f conftest*
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
1734 else
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
1743 else
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. */
1749 #include <assert.h>
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. */
1753 char _doprnt();
1755 int main() {
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)
1761 choke me
1762 #else
1763 _doprnt();
1764 #endif
1766 ; return 0; }
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1769 rm -rf conftest*
1770 eval "ac_cv_func__doprnt=yes"
1771 else
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1774 rm -rf conftest*
1775 eval "ac_cv_func__doprnt=no"
1777 rm -f conftest*
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
1786 else
1787 echo "$ac_t""no" 1>&6
1792 vfprintf=
1793 doprint=
1794 if test $ac_cv_func_vprintf != yes ; then
1795 vfprintf=vfprintf.o
1796 if test $ac_cv_func__doprnt != yes ; then
1797 doprint=doprint.o
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
1807 else
1808 if test "$cross_compiling" = yes; then
1809 gcc_cv_func_printf_ptr=no
1810 else
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 #include <stdio.h>
1816 main()
1818 char buf[64];
1819 char *p = buf, *q = NULL;
1820 sprintf(buf, "%p", p);
1821 sscanf(buf, "%p", &q);
1822 exit (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
1826 then
1827 gcc_cv_func_printf_ptr=yes
1828 else
1829 echo "configure: failed program was:" >&5
1830 cat conftest.$ac_ext >&5
1831 rm -fr conftest*
1832 gcc_cv_func_printf_ptr=no
1834 rm -fr conftest*
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
1852 else
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1856 #include <sys/types.h>
1857 #if STDC_HEADERS
1858 #include <stdlib.h>
1859 #include <stddef.h>
1860 #endif
1862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1863 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1864 rm -rf conftest*
1865 ac_cv_type_pid_t=yes
1866 else
1867 rm -rf conftest*
1868 ac_cv_type_pid_t=no
1870 rm -f conftest*
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
1876 #define pid_t int
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
1886 else
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 #include <vfork.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
1896 rm -rf conftest*
1897 eval "ac_cv_header_$ac_safe=yes"
1898 else
1899 echo "$ac_err" >&5
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 rm -rf conftest*
1903 eval "ac_cv_header_$ac_safe=no"
1905 rm -f conftest*
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
1913 else
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
1921 else
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
1927 else
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. */
1933 #include <assert.h>
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. */
1937 char vfork();
1939 int main() {
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)
1945 choke me
1946 #else
1947 vfork();
1948 #endif
1950 ; return 0; }
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1953 rm -rf conftest*
1954 eval "ac_cv_func_vfork=yes"
1955 else
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1958 rm -rf conftest*
1959 eval "ac_cv_func_vfork=no"
1961 rm -f conftest*
1964 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
1965 echo "$ac_t""yes" 1>&6
1967 else
1968 echo "$ac_t""no" 1>&6
1971 else
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 /* Thanks to Paul Eggert for this test. */
1976 #include <stdio.h>
1977 #include <sys/types.h>
1978 #include <sys/stat.h>
1979 #ifdef HAVE_UNISTD_H
1980 #include <unistd.h>
1981 #endif
1982 #ifdef HAVE_VFORK_H
1983 #include <vfork.h>
1984 #endif
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. */
1991 static
1992 #ifdef __cplusplus
1993 sparc_address_test (int arg)
1994 #else
1995 sparc_address_test (arg) int arg;
1996 #endif
1998 static pid_t child;
1999 if (!child) {
2000 child = vfork ();
2001 if (child < 0) {
2002 perror ("vfork");
2003 _exit(2);
2005 if (!child) {
2006 arg = getpid();
2007 write(-1, "", 0);
2008 _exit (arg);
2012 main() {
2013 pid_t parent = getpid ();
2014 pid_t child;
2016 sparc_address_test ();
2018 child = vfork ();
2020 if (child == 0) {
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. */
2031 pid_t
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)
2038 _exit(1);
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);
2046 } else {
2047 int status;
2048 struct stat st;
2050 while (wait(&status) != child)
2052 exit(
2053 /* Was there some problem with vforking? */
2054 child < 0
2056 /* Did the child fail? (This shouldn't happen.) */
2057 || status
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
2069 then
2070 ac_cv_func_vfork_works=yes
2071 else
2072 echo "configure: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2074 rm -fr conftest*
2075 ac_cv_func_vfork_works=no
2077 rm -fr conftest*
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
2085 #define vfork fork
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
2098 else
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2103 #include <stdio.h>
2104 #ifdef STRING_WITH_STRINGS
2105 # include <string.h>
2106 # include <strings.h>
2107 #else
2108 # ifdef HAVE_STRING_H
2109 # include <string.h>
2110 # else
2111 # ifdef HAVE_STRINGS_H
2112 # include <strings.h>
2113 # endif
2114 # endif
2115 #endif
2116 #ifdef HAVE_STDLIB_H
2117 #include <stdlib.h>
2118 #endif
2119 #ifdef HAVE_UNISTD_H
2120 #include <unistd.h>
2121 #endif
2122 #ifndef HAVE_RINDEX
2123 #define rindex strrchr
2124 #endif
2125 #ifndef HAVE_INDEX
2126 #define index strchr
2127 #endif
2129 int main() {
2130 char *(*pfn) = (char *(*)) $ac_func
2131 ; return 0; }
2133 if { (eval echo configure:2134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2134 rm -rf conftest*
2135 eval "gcc_cv_decl_needed_$ac_func=no"
2136 else
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2139 rm -rf conftest*
2140 eval "gcc_cv_decl_needed_$ac_func=yes"
2142 rm -f conftest*
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
2152 else
2153 echo "$ac_t""no" 1>&6
2156 done
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
2165 else
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2170 #include <stdio.h>
2171 #ifdef STRING_WITH_STRINGS
2172 # include <string.h>
2173 # include <strings.h>
2174 #else
2175 # ifdef HAVE_STRING_H
2176 # include <string.h>
2177 # else
2178 # ifdef HAVE_STRINGS_H
2179 # include <strings.h>
2180 # endif
2181 # endif
2182 #endif
2183 #ifdef HAVE_STDLIB_H
2184 #include <stdlib.h>
2185 #endif
2186 #ifdef HAVE_UNISTD_H
2187 #include <unistd.h>
2188 #endif
2189 #ifndef HAVE_RINDEX
2190 #define rindex strrchr
2191 #endif
2192 #ifndef HAVE_INDEX
2193 #define index strchr
2194 #endif
2195 #include <sys/types.h>
2196 #ifdef HAVE_SYS_RESOURCE_H
2197 #include <sys/resource.h>
2198 #endif
2200 int main() {
2201 char *(*pfn) = (char *(*)) $ac_func
2202 ; return 0; }
2204 if { (eval echo configure:2205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2205 rm -rf conftest*
2206 eval "gcc_cv_decl_needed_$ac_func=no"
2207 else
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2210 rm -rf conftest*
2211 eval "gcc_cv_decl_needed_$ac_func=yes"
2213 rm -f conftest*
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
2223 else
2224 echo "$ac_t""no" 1>&6
2227 done
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
2236 else
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2241 #include <stdio.h>
2242 #ifdef STRING_WITH_STRINGS
2243 # include <string.h>
2244 # include <strings.h>
2245 #else
2246 # ifdef HAVE_STRING_H
2247 # include <string.h>
2248 # else
2249 # ifdef HAVE_STRINGS_H
2250 # include <strings.h>
2251 # endif
2252 # endif
2253 #endif
2254 #ifdef HAVE_STDLIB_H
2255 #include <stdlib.h>
2256 #endif
2257 #ifdef HAVE_UNISTD_H
2258 #include <unistd.h>
2259 #endif
2260 #ifndef HAVE_RINDEX
2261 #define rindex strrchr
2262 #endif
2263 #ifndef HAVE_INDEX
2264 #define index strchr
2265 #endif
2266 #ifdef HAVE_MALLOC_H
2267 #include <malloc.h>
2268 #endif
2270 int main() {
2271 char *(*pfn) = (char *(*)) $ac_func
2272 ; return 0; }
2274 if { (eval echo configure:2275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2275 rm -rf conftest*
2276 eval "gcc_cv_decl_needed_$ac_func=no"
2277 else
2278 echo "configure: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2280 rm -rf conftest*
2281 eval "gcc_cv_decl_needed_$ac_func=yes"
2283 rm -f conftest*
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
2293 else
2294 echo "$ac_t""no" 1>&6
2297 done
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
2304 else
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2309 int main() {
2310 #define S(x) #x
2311 char *test = S(foo);
2312 ; return 0; }
2314 if { (eval echo configure:2315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2315 rm -rf conftest*
2316 gcc_cv_c_have_stringify=yes
2317 else
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2320 rm -rf conftest*
2321 gcc_cv_c_have_stringify=no
2323 rm -f conftest*
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
2338 else
2339 cat > conftest.$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 #include <sys/types.h>
2343 #include <signal.h>
2344 /* NetBSD declares sys_siglist in unistd.h. */
2345 #ifdef HAVE_UNISTD_H
2346 #include <unistd.h>
2347 #endif
2348 int main() {
2349 char *msg = *(sys_siglist + 1);
2350 ; return 0; }
2352 if { (eval echo configure:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2353 rm -rf conftest*
2354 ac_cv_decl_sys_siglist=yes
2355 else
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 rm -rf conftest*
2359 ac_cv_decl_sys_siglist=no
2361 rm -f conftest*
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
2373 # File extensions
2374 manext='.1'
2375 objext='.o'
2379 build_xm_file=
2380 build_xm_defines=
2381 build_broken_install=
2382 build_install_headers_dir=install-headers-tar
2383 build_exeext=
2384 host_xm_file=
2385 host_xm_defines=
2386 host_xmake_file=
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
2395 out_file=
2396 xmake_file=
2397 tmake_file=
2398 extra_headers=
2399 extra_passes=
2400 extra_parts=
2401 extra_programs=
2402 extra_objs=
2403 extra_host_objs=
2404 extra_gcc_objs=
2405 xm_defines=
2406 float_format=
2407 # Set this to force installation and use of collect2.
2408 use_collect2=
2409 # Set this to override the default target model.
2410 target_cpu_default=
2411 # Set this to force use of install.sh.
2412 broken_install=
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.
2419 md_cppflags=
2420 # Set this if directory names should be truncated to 14 characters.
2421 truncate_target=
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
2425 # file name suffix.
2426 exeext=
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/-.*$//'`
2431 case $machine in
2432 alpha*-*-*)
2433 cpu_type=alpha
2435 arm*-*-*)
2436 cpu_type=arm
2438 c*-convex-*)
2439 cpu_type=convex
2441 i[34567]86-*-*)
2442 cpu_type=i386
2444 hppa*-*-*)
2445 cpu_type=pa
2447 m68000-*-*)
2448 cpu_type=m68k
2450 mips*-*-*)
2451 cpu_type=mips
2453 powerpc*-*-*)
2454 cpu_type=rs6000
2456 pyramid-*-*)
2457 cpu_type=pyr
2459 sparc*-*-*)
2460 cpu_type=sparc
2462 esac
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.
2468 case $machine in
2469 *-*-linux-gnu*)
2470 xm_defines="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
2472 esac
2474 case $machine in
2475 # Support site-specific machine types.
2476 *local*)
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; \
2483 else true; \
2485 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
2486 then tmake_file=${cpu_type}/t-$rest; \
2487 else true; \
2490 1750a-*-*)
2492 a29k-*-bsd* | a29k-*-sym1*)
2493 tm_file="${tm_file} a29k/unix.h"
2494 xm_defines=USG
2495 xmake_file=a29k/x-unix
2496 use_collect2=yes
2498 a29k-*-udi | a29k-*-coff)
2499 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
2500 tmake_file=a29k/t-a29kbare
2502 a29k-*-vxworks*)
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.
2508 use_collect2=yes
2510 alpha*-*-linux-gnuecoff*)
2511 tm_file="${tm_file} alpha/linux.h"
2512 xm_defines=USE_BFD
2513 target_cpu_default="MASK_GAS"
2514 gas=no
2515 xmake_file=none
2516 fixincludes=Makefile.in
2517 gas=yes gnu_ld=yes
2519 alpha*-*-linux-gnulibc1*)
2520 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
2521 xm_defines=USE_BFD
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"
2525 xmake_file=none
2526 fixincludes=Makefile.in
2527 gas=yes gnu_ld=yes
2528 if [ x$enable_threads = xyes ]; then
2529 thread_file='posix'
2532 alpha*-*-linux-gnu*)
2533 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
2534 xm_defines=USE_BFD
2535 target_cpu_default="MASK_GAS"
2536 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
2537 extra_parts="crtbegin.o crtend.o"
2538 xmake_file=none
2539 fixincludes=Makefile.in
2540 gas=yes gnu_ld=yes
2541 if [ x$enable_threads = xyes ]; then
2542 thread_file='posix'
2545 alpha*-dec-osf*)
2546 if [ x$stabs = xyes ]
2547 then
2548 tm_file="${tm_file} dbx.h"
2550 if [ x$gas != xyes ]
2551 then
2552 extra_passes="mips-tfile mips-tdump"
2554 broken_install=yes
2555 use_collect2=yes
2556 case $machine in
2557 *-*-osf1.2)
2558 tm_file="${tm_file} alpha/osf12.h alpha/osf2or3.h"
2560 *-*-osf[23]*)
2561 tm_file="${tm_file} alpha/osf2or3.h"
2563 *-*-osf4*)
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
2568 esac
2569 case $machine in
2570 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2571 target_cpu_default=MASK_SUPPORT_ARCH
2573 esac
2575 alpha*-*-vxworks*)
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.
2579 case $host in
2580 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
2581 target_cpu_default=MASK_SUPPORT_ARCH
2583 esac
2584 if x$gas != xyes
2585 then
2586 extra_passes="mips-tfile mips-tdump"
2588 broken_install=yes
2589 use_collect2=yes
2591 alpha*-*-winnt3*)
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 ]
2601 then
2602 extra_programs=ld.exe
2604 if [ x$enable_threads = xyes ]; then
2605 thread_file='win32'
2608 alpha*-dec-vms*)
2609 tm_file=alpha/vms.h
2610 xm_file="${xm_file} alpha/xm-vms.h"
2611 tmake_file=alpha/t-vms
2612 fixincludes=Makefile.in
2614 arc-*-elf*)
2615 extra_parts="crtinit.o crtfini.o"
2617 arm-*-coff* | armel-*-coff*)
2618 tm_file=arm/coff.h
2619 tmake_file=arm/t-bare
2621 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
2622 tm_file=arm/riscix1-1.h
2623 use_collect2=yes
2625 arm-*-riscix*) # Acorn RISC machine
2626 if [ x$gas = xyes ]
2627 then
2628 tm_file=arm/rix-gas.h
2629 else
2630 tm_file=arm/riscix.h
2632 xmake_file=arm/x-riscix
2633 tmake_file=arm/t-riscix
2634 use_collect2=yes
2636 arm-semi-aout | armel-semi-aout)
2637 tm_file=arm/semi.h
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
2646 arm-*-netbsd*)
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
2654 cpu_type=arm
2655 xmake_file=x-linux
2656 tm_file=arm/linux-gas.h
2657 tmake_file=arm/t-linux
2658 fixincludes=Makefile.in
2659 broken_install=yes
2660 gnu_ld=yes
2662 arm-*-aout)
2663 tm_file=arm/aout.h
2664 tmake_file=arm/t-bare
2666 c1-convex-*) # Convex C1
2667 target_cpu_default=1
2668 use_collect2=yes
2669 fixincludes=Makefile.in
2671 c2-convex-*) # Convex C2
2672 target_cpu_default=2
2673 use_collect2=yes
2674 fixincludes=Makefile.in
2676 c32-convex-*)
2677 target_cpu_default=4
2678 use_collect2=yes
2679 fixincludes=Makefile.in
2681 c34-convex-*)
2682 target_cpu_default=8
2683 use_collect2=yes
2684 fixincludes=Makefile.in
2686 c38-convex-*)
2687 target_cpu_default=16
2688 use_collect2=yes
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
2698 broken_install=yes
2700 dsp16xx-*)
2702 elxsi-elxsi-*)
2703 use_collect2=yes
2705 # This hasn't been upgraded to GCC 2.
2706 # fx80-alliant-*) # Alliant FX/80
2707 # ;;
2708 h8300-*-*)
2709 float_format=i32
2711 hppa1.1-*-pro*)
2712 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
2713 xm_file=pa/xm-papro.h
2714 tmake_file=pa/t-pro
2716 hppa1.1-*-osf*)
2717 target_cpu_default=1
2718 tm_file="${tm_file} pa/pa-osf.h"
2719 use_collect2=yes
2720 fixincludes=Makefile.in
2722 hppa1.1-*-rtems*)
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
2725 tmake_file=pa/t-pro
2727 hppa1.0-*-osf*)
2728 tm_file="${tm_file} pa/pa-osf.h"
2729 use_collect2=yes
2730 fixincludes=Makefile.in
2732 hppa1.1-*-bsd*)
2733 target_cpu_default=1
2734 use_collect2=yes
2735 fixincludes=Makefile.in
2737 hppa1.0-*-bsd*)
2738 use_collect2=yes
2739 fixincludes=Makefile.in
2741 hppa1.0-*-hpux7*)
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
2745 if [ x$gas = xyes ]
2746 then
2747 tm_file="${tm_file} pa/gas.h"
2749 broken_install=yes
2750 install_headers_dir=install-headers-cpio
2751 use_collect2=yes
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
2757 if [ x$gas = xyes ]
2758 then
2759 tm_file="${tm_file} pa/pa-gas.h"
2760 else
2761 tm_file="pa/pa-oldas.h ${tm_file}"
2763 broken_install=yes
2764 install_headers_dir=install-headers-cpio
2765 use_collect2=yes
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
2772 if [ x$gas = xyes ]
2773 then
2774 tm_file="${tm_file} pa/pa-gas.h"
2775 else
2776 tm_file="pa/pa-oldas.h ${tm_file}"
2778 broken_install=yes
2779 install_headers_dir=install-headers-cpio
2780 use_collect2=yes
2782 hppa1.1-*-hpux8*)
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
2787 if [ x$gas = xyes ]
2788 then
2789 tm_file="${tm_file} pa/pa-gas.h"
2791 broken_install=yes
2792 install_headers_dir=install-headers-cpio
2793 use_collect2=yes
2795 hppa1.0-*-hpux8*)
2796 tm_file="${tm_file} pa/pa-hpux.h"
2797 xm_file=pa/xm-pahpux.h
2798 xmake_file=pa/x-pa-hpux
2799 if [ x$gas = xyes ]
2800 then
2801 tm_file="${tm_file} pa/pa-gas.h"
2803 broken_install=yes
2804 install_headers_dir=install-headers-cpio
2805 use_collect2=yes
2807 hppa1.1-*-hpux10*)
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
2812 if [ x$gas = xyes ]
2813 then
2814 tm_file="${tm_file} pa/pa-gas.h"
2816 broken_install=yes
2817 install_headers_dir=install-headers-cpio
2818 use_collect2=yes
2820 hppa1.0-*-hpux10*)
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
2824 if [ x$gas = xyes ]
2825 then
2826 tm_file="${tm_file} pa/pa-gas.h"
2828 broken_install=yes
2829 install_headers_dir=install-headers-cpio
2830 use_collect2=yes
2832 hppa1.1-*-hpux*)
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
2837 if [ x$gas = xyes ]
2838 then
2839 tm_file="${tm_file} pa/pa-gas.h"
2841 broken_install=yes
2842 install_headers_dir=install-headers-cpio
2843 use_collect2=yes
2845 hppa1.0-*-hpux*)
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
2849 if [ x$gas = xyes ]
2850 then
2851 tm_file="${tm_file} pa/pa-gas.h"
2853 broken_install=yes
2854 install_headers_dir=install-headers-cpio
2855 use_collect2=yes
2857 hppa1.1-*-hiux*)
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
2862 if [ x$gas = xyes ]
2863 then
2864 tm_file="${tm_file} pa/pa-gas.h"
2866 broken_install=yes
2867 install_headers_dir=install-headers-cpio
2868 use_collect2=yes
2870 hppa1.0-*-hiux*)
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
2874 if [ x$gas = xyes ]
2875 then
2876 tm_file="${tm_file} pa/pa-gas.h"
2878 broken_install=yes
2879 install_headers_dir=install-headers-cpio
2880 use_collect2=yes
2882 hppa*-*-lites*)
2883 target_cpu_default=1
2884 use_collect2=yes
2885 fixincludes=Makefile.in
2887 i370-*-mvs*)
2889 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
2890 if [ x$gas = xyes ]
2891 then
2892 tm_file=i386/aix386.h
2893 extra_parts="crtbegin.o crtend.o"
2894 tmake_file=i386/t-crtstuff
2895 else
2896 tm_file=i386/aix386ng.h
2897 use_collect2=yes
2899 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
2900 xm_defines=USG
2901 xmake_file=i386/x-aix
2902 broken_install=yes
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 ]
2909 then
2910 tm_file=i386/sysv4gdb.h
2911 else
2912 tm_file=i386/sysv4.h
2914 extra_parts="crtbegin.o crtend.o"
2915 tmake_file=i386/t-crtpic
2917 i[34567]86-next-*)
2918 tm_file=i386/next.h
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
2924 thread_file='mach'
2927 i[34567]86-sequent-bsd*) # 80386 from Sequent
2928 use_collect2=yes
2929 if [ x$gas = xyes ]
2930 then
2931 tm_file=i386/seq-gas.h
2932 else
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
2944 broken_install=yes
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
2954 broken_install=yes
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"
2959 xmake_file=x-svr4
2960 tm_file=i386/ptx4-i.h
2961 tmake_file=t-svr4
2962 extra_parts="crtbegin.o crtend.o"
2963 fixincludes=fixinc.ptx
2964 install_headers_dir=install-headers-cpio
2965 broken_install=yes
2967 i386-sun-sunos*) # Sun i386 roadrunner
2968 xm_defines=USG
2969 tm_file=i386/sun.h
2970 use_collect2=yes
2972 i[34567]86-*-aout*)
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
2980 i[34567]86-*-bsd*)
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.
2984 # use_collect2=yes
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
2991 gas=yes
2992 gnu_ld=yes
2993 stabs=yes
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
3005 tmake_file=t-netbsd
3007 i[34567]86-*-coff*)
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"
3014 case $machine in
3015 i[34567]86-*-isc[34]*)
3016 xmake_file=i386/x-isc3
3019 xmake_file=i386/x-isc
3021 esac
3022 if [ x$gas = xyes -a x$stabs = xyes ]
3023 then
3024 tm_file=i386/iscdbx.h
3025 tmake_file=i386/t-svr3dbx
3026 extra_parts="svr3.ifile svr3z.ifile"
3027 else
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
3033 broken_install=yes
3035 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
3036 # with a.out format using
3037 # pre BFD linkers
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
3042 broken_install=yes
3043 gnu_ld=yes
3045 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
3046 # with a.out format
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.
3051 broken_install=yes
3052 gnu_ld=yes
3054 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
3055 # with ELF format using the
3056 # GNU/Linux C library 5
3057 xmake_file=x-linux
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.
3062 broken_install=yes
3063 gnu_ld=yes
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
3071 xmake_file=x-linux
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.
3076 broken_install=yes
3077 gnu_ld=yes
3078 if [ x$enable_threads = xyes ]; then
3079 thread_file='posix'
3082 i[34567]86-*-gnu*)
3084 i[34567]86-go32-msdos | i[34567]86-*-go32*)
3085 xm_file=i386/xm-go32.h
3086 tm_file=i386/go32.h
3087 tmake_file=i386/t-go32
3089 i[34567]86-pc-msdosdjgpp*)
3090 xm_file=i386/xm-go32.h
3091 tm_file=i386/go32.h
3092 tmake_file=i386/t-go32
3093 gnu_ld=yes
3094 gas=yes
3096 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
3097 tm_file=i386/moss.h
3098 tmake_file=t-libc-ok
3099 fixincludes=Makefile.in
3100 gnu_ld=yes
3101 gas=yes
3103 i[34567]86-*-lynxos*)
3104 if [ x$gas = xyes ]
3105 then
3106 tm_file=i386/lynx.h
3107 else
3108 tm_file=i386/lynx-ng.h
3110 xm_file=i386/xm-lynx.h
3111 tmake_file=i386/t-i386bare
3112 xmake_file=x-lynx
3114 i[34567]86-*-mach*)
3115 tm_file=i386/mach.h
3116 # tmake_file=t-libc-ok
3117 use_collect2=yes
3119 i[34567]86-*-osfrose*) # 386 using OSF/rose
3120 if [ x$elf = xyes ]
3121 then
3122 tm_file=i386/osfelf.h
3123 use_collect2=
3124 else
3125 tm_file=i386/osfrose.h
3126 use_collect2=yes
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*)
3134 cpu_type=i386
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*)
3140 cpu_type=i386
3141 tm_file=i386/rtemself.h
3142 tmake_file="i386/t-i386bare t-rtems"
3144 i[34567]86-*-rtems*)
3145 cpu_type=i386
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
3154 broken_install=yes
3155 install_headers_dir=install-headers-cpio
3156 tm_file=i386/sco5.h
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
3165 broken_install=yes
3166 install_headers_dir=install-headers-cpio
3167 if [ x$stabs = xyes ]
3168 then
3169 tm_file=i386/sco4dbx.h
3170 tmake_file=i386/t-svr3dbx
3171 extra_parts="svr3.ifile svr3z.rfile"
3172 else
3173 tm_file=i386/sco4.h
3174 tmake_file=i386/t-crtstuff
3175 extra_parts="crtbegin.o crtend.o"
3177 truncate_target=yes
3179 i[34567]86-*-sco*) # 80386 running SCO system
3180 xm_file=i386/xm-sco.h
3181 xmake_file=i386/x-sco
3182 broken_install=yes
3183 install_headers_dir=install-headers-cpio
3184 if [ x$stabs = xyes ]
3185 then
3186 tm_file=i386/scodbx.h
3187 tmake_file=i386/t-svr3dbx
3188 extra_parts="svr3.ifile svr3z.rfile"
3189 else
3190 tm_file=i386/sco.h
3191 extra_parts="crtbegin.o crtend.o"
3192 tmake_file=i386/t-crtstuff
3194 truncate_target=yes
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 ]
3200 then
3201 tm_file=i386/sol2dbg.h
3202 else
3203 tm_file=i386/sol2.h
3205 tmake_file=i386/t-sol2
3206 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3207 xmake_file=x-svr4
3208 case $machine in
3209 *-*-solaris2.[0-4])
3210 fixincludes=fixinc.svr4;;
3212 fixincludes=fixinc.wrap;;
3213 esac
3214 broken_install=yes
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 ]
3224 then
3225 tm_file="${tm_file} dbx.h"
3227 tmake_file=i386/t-crtpic
3228 xmake_file=x-svr4
3229 extra_parts="crtbegin.o crtend.o"
3231 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
3232 cpu_type=i386
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 ]
3237 then
3238 tm_file=i386/osf1elfgdb.h
3239 else
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
3249 if [ x$gas = xyes ]
3250 then
3251 if [ x$stabs = xyes ]
3252 then
3253 tm_file=i386/svr3dbx.h
3254 tmake_file=i386/t-svr3dbx
3255 extra_parts="svr3.ifile svr3z.rfile"
3256 else
3257 tm_file=i386/svr3gas.h
3258 extra_parts="crtbegin.o crtend.o"
3259 tmake_file=i386/t-crtstuff
3261 else
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"
3269 tm_file=i386/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
3278 extra_objs=winnt.o
3279 fixincludes=Makefile.in
3280 if [ x$enable_threads = xyes ]; then
3281 thread_file='win32'
3283 exeext=.exe
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
3289 extra_objs=winnt.o
3290 xmake_file=i386/x-cygwin32
3291 fixincludes=Makefile.in
3292 if [ x$enable_threads = xyes ]; then
3293 thread_file='win32'
3295 exeext=.exe
3296 case $machine in
3297 *mingw32msv*)
3299 *minwg32crt* | *mingw32*)
3300 tm_file="${tm_file} i386/crtdll.h"
3302 esac
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 ]
3314 then
3315 extra_programs=ld.exe
3317 if [ x$enable_threads = xyes ]; then
3318 thread_file='win32'
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
3325 tm_file=i386/dgux.h
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"
3338 i860-*-bsd*)
3339 tm_file="${tm_file} i860/bsd.h"
3340 if [ x$gas = xyes ]
3341 then
3342 tm_file="${tm_file} i860/bsd-gas.h"
3344 use_collect2=yes
3346 i860-*-mach*)
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"
3353 tmake_file=t-osf
3354 broken_install=yes
3356 i860-*-sysv3*)
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"
3362 i860-*-sysv4*)
3363 tm_file="${tm_file} svr4.h i860/sysv4.h"
3364 xm_defines="USG SVR3"
3365 xmake_file=i860/x-sysv4
3366 tmake_file=t-svr4
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
3372 use_collect2=yes
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
3377 use_collect2=yes
3379 i960-wrs-vxworks*)
3380 tm_file="${tm_file} i960/vx960.h"
3381 tmake_file=i960/t-vxworks960
3382 use_collect2=yes
3384 i960-*-coff*)
3385 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
3386 tmake_file=i960/t-960bare
3387 use_collect2=yes
3389 i960-*-rtems)
3390 tmake_file="i960/t-960bare t-rtems"
3391 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
3392 use_collect2=yes
3394 i960-*-*) # Default i960 environment.
3395 use_collect2=yes
3397 m32r-*-elf*)
3398 extra_parts="crtinit.o crtfini.o"
3400 m68000-convergent-sysv*)
3401 tm_file=m68k/ctix.h
3402 xm_file="m68k/xm-3b1.h ${xm_file}"
3403 xm_defines=USG
3404 use_collect2=yes
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
3410 use_collect2=yes
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"
3416 if [ x$gas = xyes ]
3417 then
3418 xmake_file=m68k/x-hp320g
3419 tm_file=m68k/hp310g.h
3420 else
3421 xmake_file=m68k/x-hp320
3422 tm_file=m68k/hp310.h
3424 broken_install=yes
3425 install_headers_dir=install-headers-cpio
3426 use_collect2=yes
3427 extra_headers=math-68881.h
3429 m68000-sun-sunos3*)
3430 tm_file=m68k/sun2.h
3431 use_collect2=yes
3432 extra_headers=math-68881.h
3434 m68000-sun-sunos4*)
3435 tm_file=m68k/sun2o4.h
3436 use_collect2=yes
3437 extra_headers=math-68881.h
3439 m68000-att-sysv*)
3440 xm_file="m68k/xm-3b1.h ${xm_file}"
3441 xm_defines=USG
3442 if [ x$gas = xyes ]
3443 then
3444 tm_file=m68k/3b1g.h
3445 else
3446 tm_file=m68k/3b1.h
3448 use_collect2=yes
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
3454 broken_install=yes
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"
3458 tm_file=
3459 if [ "$gnu_ld" = yes ]
3460 then
3461 tm_file="${tm_file} m68k/auxgld.h"
3462 else
3463 tm_file="${tm_file} m68k/auxld.h"
3465 if [ "$gas" = yes ]
3466 then
3467 tm_file="${tm_file} m68k/auxgas.h"
3468 else
3469 tm_file="${tm_file} m68k/auxas.h"
3471 tm_file="${tm_file} m68k/a-ux.h"
3473 m68k-apollo-*)
3474 tm_file=m68k/apollo68.h
3475 xmake_file=m68k/x-apollo68
3476 use_collect2=yes
3477 extra_headers=math-68881.h
3479 m68k-altos-sysv*) # Altos 3068
3480 if [ x$gas = xyes ]
3481 then
3482 tm_file=m68k/altos3068.h
3483 xm_defines=USG
3484 else
3485 echo "The Altos is supported only with the GNU assembler" 1>&2
3486 exit 1
3488 extra_headers=math-68881.h
3490 m68k-bull-sysv*) # Bull DPX/2
3491 if [ x$gas = xyes ]
3492 then
3493 if [ x$stabs = xyes ]
3494 then
3495 tm_file=m68k/dpx2cdbx.h
3496 else
3497 tm_file=m68k/dpx2g.h
3499 else
3500 tm_file=m68k/dpx2.h
3502 xm_file="xm-alloca.h ${xm_file}"
3503 xm_defines=USG
3504 xmake_file=m68k/x-dpx2
3505 use_collect2=yes
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"
3512 tmake_file=t-svr4
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
3520 if [ x$gas = xyes ]
3521 then
3522 xmake_file=m68k/x-mot3300-gas
3523 if [ x$gnu_ld = xyes ]
3524 then
3525 tmake_file=m68k/t-mot3300-gald
3526 else
3527 tmake_file=m68k/t-mot3300-gas
3528 use_collect2=yes
3530 else
3531 xmake_file=m68k/x-mot3300
3532 if [ x$gnu_ld = xyes ]
3533 then
3534 tmake_file=m68k/t-mot3300-gld
3535 else
3536 tmake_file=m68k/t-mot3300
3537 use_collect2=yes
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
3551 m68k-plexus-sysv*)
3552 tm_file=m68k/plexus.h
3553 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
3554 xm_defines=USG
3555 use_collect2=yes
3556 extra_headers=math-68881.h
3558 m68k-tti-*)
3559 tm_file=m68k/pbb.h
3560 xm_file="xm-alloca.h ${xm_file}"
3561 xm_defines=USG
3562 extra_headers=math-68881.h
3564 m68k-crds-unos*)
3565 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
3566 xm_defines="USG unos"
3567 xmake_file=m68k/x-crds
3568 tm_file=m68k/crds.h
3569 broken_install=yes
3570 use_collect2=yes
3571 extra_headers=math-68881.h
3573 m68k-cbm-sysv4*) # Commodore variant of V.4.
3574 tm_file=m68k/amix.h
3575 xm_file="xm-alloca.h ${xm_file}"
3576 xm_defines="USG FULL_PROTOTYPES"
3577 xmake_file=m68k/x-amix
3578 tmake_file=t-svr4
3579 extra_parts="crtbegin.o crtend.o"
3580 extra_headers=math-68881.h
3582 m68k-ccur-rtu)
3583 tm_file=m68k/ccur-GAS.h
3584 xmake_file=m68k/x-ccur
3585 extra_headers=math-68881.h
3586 use_collect2=yes
3587 broken_install=yes
3589 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
3590 tm_file=m68k/hp3bsd44.h
3591 xmake_file=m68k/x-hp3bsd44
3592 use_collect2=yes
3593 extra_headers=math-68881.h
3595 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
3596 tm_file=m68k/hp3bsd.h
3597 use_collect2=yes
3598 extra_headers=math-68881.h
3600 m68k-isi-bsd*)
3601 if [ x$with_fp = xno ]
3602 then
3603 tm_file=m68k/isi-nfp.h
3604 else
3605 tm_file=m68k/isi.h
3607 use_collect2=yes
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"
3613 if [ x$gas = xyes ]
3614 then
3615 xmake_file=m68k/x-hp320g
3616 tm_file=m68k/hp320g.h
3617 else
3618 xmake_file=m68k/x-hp320
3619 tm_file=m68k/hpux7.h
3621 broken_install=yes
3622 install_headers_dir=install-headers-cpio
3623 use_collect2=yes
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"
3629 if [ x$gas = xyes ]
3630 then
3631 xmake_file=m68k/x-hp320g
3632 tm_file=m68k/hp320g.h
3633 else
3634 xmake_file=m68k/x-hp320
3635 tm_file=m68k/hp320.h
3637 broken_install=yes
3638 install_headers_dir=install-headers-cpio
3639 use_collect2=yes
3640 extra_headers=math-68881.h
3642 m68k-sun-mach*)
3643 tm_file=m68k/sun3mach.h
3644 use_collect2=yes
3645 extra_headers=math-68881.h
3647 m68k-sony-newsos3*)
3648 if [ x$gas = xyes ]
3649 then
3650 tm_file=m68k/news3gas.h
3651 else
3652 tm_file=m68k/news3.h
3654 use_collect2=yes
3655 extra_headers=math-68881.h
3657 m68k-sony-bsd* | m68k-sony-newsos*)
3658 if [ x$gas = xyes ]
3659 then
3660 tm_file=m68k/newsgas.h
3661 else
3662 tm_file=m68k/news.h
3664 use_collect2=yes
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
3674 use_collect2=yes
3676 m68k-next-nextstep3*)
3677 tm_file=m68k/next.h
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
3684 thread_file='mach'
3687 m68k-sun-sunos3*)
3688 if [ x$with_fp = xno ]
3689 then
3690 tm_file=m68k/sun3n3.h
3691 else
3692 tm_file=m68k/sun3o3.h
3694 use_collect2=yes
3695 extra_headers=math-68881.h
3697 m68k-sun-sunos*) # For SunOS 4 (the default).
3698 if [ x$with_fp = xno ]
3699 then
3700 tm_file=m68k/sun3n.h
3701 else
3702 tm_file=m68k/sun3.h
3704 use_collect2=yes
3705 extra_headers=math-68881.h
3707 m68k-wrs-vxworks*)
3708 tm_file=m68k/vxm68k.h
3709 tmake_file=m68k/t-vxworks68
3710 extra_headers=math-68881.h
3712 m68k-*-aout*)
3713 tmake_file=m68k/t-m68kbare
3714 tm_file="m68k/m68k-aout.h libgloss.h"
3715 extra_headers=math-68881.h
3717 m68k-*-coff*)
3718 tmake_file=m68k/t-m68kbare
3719 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
3720 extra_headers=math-68881.h
3722 m68k-*-lynxos*)
3723 if [ x$gas = xyes ]
3724 then
3725 tm_file=m68k/lynx.h
3726 else
3727 tm_file=m68k/lynx-ng.h
3729 xm_file=m68k/xm-lynx.h
3730 xmake_file=x-lynx
3731 tmake_file=m68k/t-lynx
3732 extra_headers=math-68881.h
3734 m68k-*-netbsd*)
3735 tm_file=m68k/netbsd.h
3736 # On NetBSD, the headers are already okay, except for math.h.
3737 fixincludes=fixinc.wrap
3738 tmake_file=t-netbsd
3740 m68k-*-sysv3*) # Motorola m68k's running system V.3
3741 xm_file="xm-alloca.h ${xm_file}"
3742 xm_defines=USG
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}"
3750 xm_defines=USG
3751 tmake_file=t-svr4
3752 extra_parts="crtbegin.o crtend.o"
3753 extra_headers=math-68881.h
3755 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
3756 # with a.out format
3757 xmake_file=x-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
3762 gnu_ld=yes
3764 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
3765 # with ELF format using the
3766 # GNU/Linux C library 5
3767 xmake_file=x-linux
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
3773 gnu_ld=yes
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.
3778 xmake_file=x-linux
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
3784 gnu_ld=yes
3785 if [ x$enable_threads = xyes ]; then
3786 thread_file='posix'
3789 m68k-*-psos*)
3790 tmake_file=m68k/t-m68kbare
3791 tm_file=m68k/m68k-psos.h
3792 extra_headers=math-68881.h
3794 m68k-*-rtems*)
3795 tmake_file="m68k/t-m68kbare t-rtems"
3796 tm_file=m68k/rtems.h
3797 extra_headers=math-68881.h
3800 m88k-dg-dgux*)
3801 case $machine in
3802 m88k-dg-dguxbcs*)
3803 tm_file=m88k/dguxbcs.h
3804 tmake_file=m88k/t-dguxbcs
3807 tm_file=m88k/dgux.h
3808 tmake_file=m88k/t-dgux
3810 esac
3811 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3812 broken_install=yes
3813 xmake_file=m88k/x-dgux
3814 if [ x$gas = xyes ]
3815 then
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
3825 if [ x$gas = xyes ]
3826 then
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
3835 if [ x$gas = xyes ]
3836 then
3837 tmake_file=m88k/t-m88k-gas
3840 m88k-*-aout*)
3841 tm_file=m88k/m88k-aout.h
3843 m88k-*-coff*)
3844 tm_file=m88k/m88k-coff.h
3845 tmake_file=m88k/t-bug
3847 m88k-*-luna*)
3848 tm_file=m88k/luna.h
3849 extra_parts="crtbegin.o crtend.o"
3850 if [ x$gas = xyes ]
3851 then
3852 tmake_file=m88k/t-luna-gas
3853 else
3854 tmake_file=m88k/t-luna
3857 m88k-*-sysv3*)
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
3862 if [ x$gas = xyes ]
3863 then
3864 tmake_file=m88k/t-m88k-gas
3867 m88k-*-sysv4*)
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
3876 broken_install=yes
3877 fixincludes=fixinc.irix
3878 xmake_file=mips/x-iris6
3879 tmake_file=mips/t-iris6
3880 if [ x$enable_threads = xyes ]; then
3881 thread_file='irix'
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"
3887 broken_install=yes
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.
3892 use_collect2=yes
3893 if [ x$enable_threads = xyes ]; then
3894 thread_file='irix'
3897 mips-sni-sysv4)
3898 if [ x$gas = xyes ]
3899 then
3900 if [ x$stabs = xyes ]
3901 then
3902 tm_file=mips/iris5gdb.h
3903 else
3904 tm_file="mips/sni-svr4.h mips/sni-gas.h"
3906 else
3907 tm_file=mips/sni-svr4.h
3909 xm_defines=USG
3910 xmake_file=mips/x-sni-svr4
3911 tmake_file=mips/t-mips-gas
3912 if [ x$gnu_ld != xyes ]
3913 then
3914 use_collect2=yes
3916 broken_install=yes
3918 mips-sgi-irix5*) # SGI System V.4., IRIX 5
3919 if [ x$gas = xyes ]
3920 then
3921 tm_file="mips/iris5.h mips/iris5gas.h"
3922 if [ x$stabs = xyes ]
3923 then
3924 tm_file="${tm_file} dbx.h"
3926 else
3927 tm_file=mips/iris5.h
3929 xm_defines="USG HAVE_INTTYPES_H"
3930 broken_install=yes
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.
3936 use_collect2=yes
3937 if [ x$enable_threads = xyes ]; then
3938 thread_file='irix'
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"
3946 xm_defines=USG
3947 broken_install=yes
3948 xmake_file=mips/x-iris
3949 if [ x$gas = xyes ]
3950 then
3951 tmake_file=mips/t-mips-gas
3952 else
3953 extra_passes="mips-tfile mips-tdump"
3955 if [ x$gnu_ld != xyes ]
3956 then
3957 use_collect2=yes
3959 if [ x$enable_threads = xyes ]; then
3960 thread_file='irix'
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"
3968 xm_defines=USG
3969 broken_install=yes
3970 xmake_file=mips/x-iris
3971 if [ x$gas = xyes ]
3972 then
3973 tmake_file=mips/t-mips-gas
3974 else
3975 extra_passes="mips-tfile mips-tdump"
3977 if [ x$gnu_ld != xyes ]
3978 then
3979 use_collect2=yes
3981 if [ x$enable_threads = xyes ]; then
3982 thread_file='irix'
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"
3990 xm_defines=USG
3991 broken_install=yes
3992 xmake_file=mips/x-iris3
3993 if [ x$gas = xyes ]
3994 then
3995 tmake_file=mips/t-mips-gas
3996 else
3997 extra_passes="mips-tfile mips-tdump"
3999 if [ x$gnu_ld != xyes ]
4000 then
4001 use_collect2=yes
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
4009 use_collect2=yes
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
4017 if [ x$gas = xyes ]
4018 then
4019 tmake_file=mips/t-mips-gas
4020 else
4021 tmake_file=mips/t-ultrix
4022 extra_passes="mips-tfile mips-tdump"
4024 if [ x$gnu_ld != xyes ]
4025 then
4026 use_collect2=yes
4029 mips-dec-bsd*) # Decstation running 4.4 BSD
4030 tm_file=mips/dec-bsd.h
4031 fixincludes=
4032 if [ x$gas = xyes ]
4033 then
4034 tmake_file=mips/t-mips-gas
4035 else
4036 tmake_file=mips/t-ultrix
4037 extra_passes="mips-tfile mips-tdump"
4039 if [ x$gnu_ld != xyes ]
4040 then
4041 use_collect2=yes
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
4048 tmake_file=t-netbsd
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"
4058 if [ x$gas = xyes ]
4059 then
4060 tmake_file=mips/t-mips-gas
4061 else
4062 extra_passes="mips-tfile mips-tdump"
4064 if [ x$gnu_ld != xyes ]
4065 then
4066 use_collect2=yes
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}"
4078 xm_defines=USG
4079 if [ x$gas = xyes ]
4080 then
4081 tmake_file=mips/t-mips-gas
4082 else
4083 extra_passes="mips-tfile mips-tdump"
4085 if [ x$gnu_ld != xyes ]
4086 then
4087 use_collect2=yes
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}"
4096 xm_defines=USG
4097 xmake_file=mips/x-sysv
4098 if [ x$gas = xyes ]
4099 then
4100 tmake_file=mips/t-mips-gas
4101 extra_parts="crtbegin.o crtend.o"
4102 else
4103 tmake_file=mips/t-mips
4104 extra_passes="mips-tfile mips-tdump"
4106 if [ x$gnu_ld != xyes ]
4107 then
4108 use_collect2=yes
4110 broken_install=yes
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
4118 if [ x$gas = xyes ]
4119 then
4120 tmake_file=mips/t-mips-gas
4121 else
4122 tmake_file=mips/t-ultrix
4123 extra_passes="mips-tfile mips-tdump"
4125 if [ x$gnu_ld != xyes ]
4126 then
4127 use_collect2=yes
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"
4135 if [ x$gas = xyes ]
4136 then
4137 tmake_file=mips/t-bsd-gas
4138 else
4139 tmake_file=mips/t-bsd
4140 extra_passes="mips-tfile mips-tdump"
4142 if [ x$gnu_ld != xyes ]
4143 then
4144 use_collect2=yes
4146 broken_install=yes
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"
4153 if [ x$gas = xyes ]
4154 then
4155 tmake_file=mips/t-bsd-gas
4156 else
4157 tmake_file=mips/t-bsd
4158 extra_passes="mips-tfile mips-tdump"
4160 if [ x$gnu_ld != xyes ]
4161 then
4162 use_collect2=yes
4164 broken_install=yes
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
4173 if [ x$gas = xyes ]
4174 then
4175 tmake_file=mips/t-svr4-gas
4176 else
4177 tmake_file=mips/t-svr4
4178 extra_passes="mips-tfile mips-tdump"
4180 if [ x$gnu_ld != xyes ]
4181 then
4182 use_collect2=yes
4184 broken_install=yes
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"
4191 xm_defines=USG
4192 xmake_file=mips/x-sysv
4193 if [ x$gas = xyes ]
4194 then
4195 tmake_file=mips/t-svr4-gas
4196 else
4197 tmake_file=mips/t-svr4
4198 extra_passes="mips-tfile mips-tdump"
4200 if [ x$gnu_ld != xyes ]
4201 then
4202 use_collect2=yes
4204 broken_install=yes
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"
4211 xm_defines=USG
4212 xmake_file=mips/x-sysv
4213 if [ x$gas = xyes ]
4214 then
4215 tmake_file=mips/t-svr3-gas
4216 else
4217 tmake_file=mips/t-svr3
4218 extra_passes="mips-tfile mips-tdump"
4220 if [ x$gnu_ld != xyes ]
4221 then
4222 use_collect2=yes
4224 broken_install=yes
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"
4231 xm_defines=USG
4232 xmake_file=mips/x-sysv
4233 if [ x$gas = xyes ]
4234 then
4235 tmake_file=mips/t-svr3-gas
4236 else
4237 tmake_file=mips/t-svr3
4238 extra_passes="mips-tfile mips-tdump"
4240 if [ x$gnu_ld != xyes ]
4241 then
4242 use_collect2=yes
4244 broken_install=yes
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"
4251 if [ x$gas = xyes ]
4252 then
4253 tmake_file=mips/t-mips-gas
4254 else
4255 extra_passes="mips-tfile mips-tdump"
4257 if [ x$gnu_ld != xyes ]
4258 then
4259 use_collect2=yes
4261 broken_install=yes
4263 mips-*-gnu*)
4265 mipsel-*-ecoff*)
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
4272 mips-*-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
4278 broken_install=yes
4280 mipsel-*-elf*)
4281 tm_file="mips/elfl.h libgloss.h"
4282 tmake_file=mips/t-ecoff
4284 mips-*-elf*)
4285 tm_file="mips/elf.h libgloss.h"
4286 tmake_file=mips/t-ecoff
4288 mips64el-*-elf*)
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
4296 mips64-*-elf*)
4297 tm_file="mips/elf64.h libgloss.h"
4298 tmake_file=mips/t-ecoff
4300 mips64orion-*-elf*)
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"
4308 mipstx39el-*-elf*)
4309 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
4310 tmake_file=mips/t-ecoff
4312 mipstx39-*-elf*)
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"
4320 if [ x$gas = xyes ]
4321 then
4322 tmake_file=mips/t-mips-gas
4323 else
4324 extra_passes="mips-tfile mips-tdump"
4326 if [ x$gnu_ld != xyes ]
4327 then
4328 use_collect2=yes
4331 mn10200-*-*)
4332 cpu_type=mn10200
4333 tm_file="mn10200/mn10200.h"
4334 if [ x$stabs = xyes ]
4335 then
4336 tm_file="${tm_file} dbx.h"
4338 use_collect2=no
4340 mn10300-*-*)
4341 cpu_type=mn10300
4342 tm_file="mn10300/mn10300.h"
4343 if [ x$stabs = xyes ]
4344 then
4345 tm_file="${tm_file} dbx.h"
4347 use_collect2=no
4349 ns32k-encore-bsd*)
4350 tm_file=ns32k/encore.h
4351 use_collect2=yes
4353 ns32k-sequent-bsd*)
4354 tm_file=ns32k/sequent.h
4355 use_collect2=yes
4357 ns32k-tek6100-bsd*)
4358 tm_file=ns32k/tek6100.h
4359 broken_install=yes
4360 use_collect2=yes
4362 ns32k-tek6200-bsd*)
4363 tm_file=ns32k/tek6200.h
4364 broken_install=yes
4365 use_collect2=yes
4367 # This has not been updated to GCC 2.
4368 # ns32k-ns-genix*)
4369 # xm_defines=USG
4370 # xmake_file=ns32k/x-genix
4371 # tm_file=ns32k/genix.h
4372 # broken_install=yes
4373 # use_collect2=yes
4374 # ;;
4375 ns32k-merlin-*)
4376 tm_file=ns32k/merlin.h
4377 use_collect2=yes
4379 ns32k-pc532-mach*)
4380 tm_file=ns32k/pc532-mach.h
4381 use_collect2=yes
4383 ns32k-pc532-minix*)
4384 tm_file=ns32k/pc532-min.h
4385 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
4386 xm_defines=USG
4387 use_collect2=yes
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
4393 tmake_file=t-netbsd
4395 pdp11-*-bsd)
4396 tm_file="${tm_file} pdp11/2bsd.h"
4398 pdp11-*-*)
4400 pyramid-*-*)
4401 cpu_type=pyr
4402 xmake_file=pyr/x-pyr
4403 use_collect2=yes
4405 romp-*-aos*)
4406 use_collect2=yes
4408 romp-*-mach*)
4409 xmake_file=romp/x-mach
4410 use_collect2=yes
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
4417 if [ x$gas = xyes ]
4418 then
4419 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4420 else
4421 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4423 xmake_file=rs6000/x-sysv4
4425 powerpc-*-eabiaix*)
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
4431 powerpc-*-eabisim*)
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
4437 powerpc-*-eabi*)
4438 tm_file=rs6000/eabi.h
4439 if [ x$gas = xyes ]
4440 then
4441 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4442 else
4443 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4445 fixincludes=Makefile.in
4446 extra_headers=ppc-asm.h
4448 powerpc-*-rtems*)
4449 tm_file=rs6000/rtems.h
4450 if [ x$gas = xyes ]
4451 then
4452 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
4453 else
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
4464 if [ x$gas = xyes ]
4465 then
4466 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
4467 else
4468 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
4470 xmake_file=x-linux
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
4475 thread_file='posix'
4478 powerpc-*-vxworks*)
4479 cpu_type=rs6000
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"
4490 if [ x$gas = xyes ]
4491 then
4492 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4493 else
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
4505 powerpcle-*-eabi*)
4506 tm_file=rs6000/eabile.h
4507 if [ x$gas = xyes ]
4508 then
4509 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
4510 else
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
4519 # extra_objs=pe.o
4520 fixincludes=Makefile.in
4521 if [ x$enable_threads = xyes ]; then
4522 thread_file='win32'
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
4532 # extra_objs=pe.o
4533 fixincludes=Makefile.in
4534 if [ x$enable_threads = xyes ]; then
4535 thread_file='win32'
4537 exeext=.exe
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"
4544 if [ x$gas = xyes ]
4545 then
4546 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
4547 else
4548 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
4550 xmake_file=rs6000/x-sysv4
4551 case $machine in
4552 *-*-solaris2.[0-4])
4553 fixincludes=fixinc.svr4;;
4555 fixincludes=fixinc.wrap;;
4556 esac
4557 extra_headers=ppc-asm.h
4559 rs6000-ibm-aix3.[01]*)
4560 tm_file=rs6000/aix31.h
4561 xmake_file=rs6000/x-aix31
4562 use_collect2=yes
4564 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
4565 tm_file=rs6000/aix3newas.h
4566 if [ x$host != x$target ]
4567 then
4568 tmake_file=rs6000/t-xnewas
4569 else
4570 tmake_file=rs6000/t-newas
4572 use_collect2=yes
4574 rs6000-ibm-aix[456789].* | powerpc-ibm-aix[456789].*)
4575 tm_file=rs6000/aix41.h
4576 if [ x$host != x$target ]
4577 then
4578 tmake_file=rs6000/t-xnewas
4579 else
4580 tmake_file=rs6000/t-newas
4582 xmake_file=rs6000/x-aix31
4583 use_collect2=yes
4585 rs6000-ibm-aix*)
4586 use_collect2=yes
4588 rs6000-bull-bosx)
4589 use_collect2=yes
4591 rs6000-*-mach*)
4592 tm_file=rs6000/mach.h
4593 xm_file="${xm_file} rs6000/xm-mach.h"
4594 xmake_file=rs6000/x-mach
4595 use_collect2=yes
4597 rs6000-*-lynxos*)
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
4602 use_collect2=yes
4604 sh-*-elf*)
4605 tm_file=sh/elf.h
4606 float_format=sh
4608 sh-*-rtems*)
4609 tmake_file="sh/t-sh t-rtems"
4610 tm_file=sh/rtems.h
4611 float_format=sh
4613 sh-*-*)
4614 float_format=sh
4616 sparc-tti-*)
4617 tm_file=sparc/pbd.h
4618 xm_file="xm-alloca.h ${xm_file}"
4619 xm_defines=USG
4621 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
4622 tm_file=sparc/vxsparc.h
4623 tmake_file=sparc/t-vxsparc
4624 use_collect2=yes
4626 sparc-*-aout*)
4627 tmake_file=sparc/t-sparcbare
4628 tm_file="sparc/aout.h libgloss.h"
4630 sparc-*-netbsd*)
4631 tm_file=sparc/netbsd.h
4632 # On NetBSD, the headers are already okay, except for math.h.
4633 fixincludes=fixinc.wrap
4634 tmake_file=t-netbsd
4636 sparc-*-bsd*)
4637 tm_file=sparc/bsd.h
4639 sparc-*-elf*)
4640 tm_file=sparc/elf.h
4641 tmake_file=sparc/t-elf
4642 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
4643 #float_format=i128
4644 float_format=i64
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
4649 xmake_file=x-linux
4650 fixincludes=Makefile.in # The headers are ok already.
4651 broken_install=yes
4652 gnu_ld=yes
4654 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
4655 xm_file="${xm_file} sparc/xm-linux.h"
4656 xmake_file=x-linux
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.
4661 broken_install=yes
4662 gnu_ld=yes
4664 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
4665 xm_file="${xm_file} sparc/xm-linux.h"
4666 xmake_file=x-linux
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.
4671 broken_install=yes
4672 gnu_ld=yes
4673 if [ x$enable_threads = xyes ]; then
4674 thread_file='posix'
4677 sparc-*-lynxos*)
4678 if [ x$gas = xyes ]
4679 then
4680 tm_file=sparc/lynx.h
4681 else
4682 tm_file=sparc/lynx-ng.h
4684 xm_file=sparc/xm-lynx.h
4685 tmake_file=sparc/t-sunos41
4686 xmake_file=x-lynx
4688 sparc-*-rtems*)
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
4699 broken_install=yes
4701 sparc-*-solaris2*)
4702 if [ x$gnu_ld = xyes ]
4703 then
4704 tm_file=sparc/sol2.h
4705 else
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"
4713 case $machine in
4714 *-*-solaris2.[0-4])
4715 fixincludes=fixinc.svr4;;
4717 fixincludes=fixinc.wrap;;
4718 esac
4719 float_format=i128
4720 broken_install=yes
4721 if [ x$enable_threads = xyes ]; then
4722 thread_file='solaris'
4725 sparc-*-sunos4.0*)
4726 tm_file=sparc/sunos4.h
4727 tmake_file=sparc/t-sunos40
4728 use_collect2=yes
4730 sparc-*-sunos4*)
4731 tm_file=sparc/sunos4.h
4732 tmake_file=sparc/t-sunos41
4733 use_collect2=yes
4734 if [ x$gas = xyes ]; then
4735 tm_file="${tm_file} sparc/sun4gas.h"
4738 sparc-*-sunos3*)
4739 tm_file=sparc/sun4o3.h
4740 use_collect2=yes
4742 sparc-*-sysv4*)
4743 tm_file=sparc/sysv4.h
4744 xm_file="xm-siglist.h sparc/xm-sysv4.h"
4745 xm_defines="USG POSIX"
4746 tmake_file=t-svr4
4747 xmake_file=sparc/x-sysv4
4748 extra_parts="crtbegin.o crtend.o"
4750 sparc-*-vxsim*)
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
4757 sparclet-*-aout*)
4758 tm_file="sparc/splet.h libgloss.h"
4759 tmake_file=sparc/t-splet
4761 sparclite-*-coff*)
4762 tm_file="sparc/litecoff.h libgloss.h"
4763 tmake_file=sparc/t-sparclite
4765 sparclite-*-aout*)
4766 tm_file="sparc/lite.h aoutos.h libgloss.h"
4767 tmake_file=sparc/t-sparclite
4769 sparc64-*-aout*)
4770 tmake_file=sparc/t-sp64
4771 tm_file=sparc/sp64-aout.h
4773 sparc64-*-elf*)
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
4782 xmake_file=x-linux
4783 fixincludes=Makefile.in # The headers are ok already.
4784 gnu_ld=yes
4786 # This hasn't been upgraded to GCC 2.
4787 # tahoe-harris-*) # Harris tahoe, using COFF.
4788 # tm_file=tahoe/harris.h
4789 # ;;
4790 # tahoe-*-bsd*) # tahoe running BSD
4791 # ;;
4792 # This hasn't been upgraded to GCC 2.
4793 # tron-*-*)
4794 # cpu_type=gmicro
4795 # use_collect2=yes
4796 # ;;
4797 v850-*-*)
4798 cpu_type=v850
4799 tm_file="v850/v850.h"
4800 xm_file="v850/xm-v850.h"
4801 if [ x$stabs = xyes ]
4802 then
4803 tm_file="${tm_file} dbx.h"
4805 use_collect2=no
4807 vax-*-bsd*) # vaxen running BSD
4808 use_collect2=yes
4809 float_format=vax
4811 vax-*-sysv*) # vaxen running system V
4812 tm_file="${tm_file} vax/vaxv.h"
4813 xm_defines=USG
4814 float_format=vax
4816 vax-*-netbsd*)
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
4820 tmake_file=t-netbsd
4821 float_format=vax
4823 vax-*-ultrix*) # vaxen running ultrix
4824 tm_file="${tm_file} vax/ultrix.h"
4825 use_collect2=yes
4826 float_format=vax
4828 vax-*-vms*) # vaxen running VMS
4829 xm_file=vax/xm-vms.h
4830 tm_file=vax/vms.h
4831 float_format=vax
4833 vax-*-*) # vax default entry
4834 float_format=vax
4836 we32k-att-sysv*)
4837 xm_file="${xm_file} xm-svr3"
4838 use_collect2=yes
4841 echo "Configuration $machine not supported" 1>&2
4842 exit 1
4844 esac
4846 case $machine in
4847 *-*-linux-gnu*)
4848 ;; # Existing GNU/Linux systems do not use the GNU setup.
4849 *-*-gnu*)
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.
4857 elf=yes
4858 # GNU tools are the only tools.
4859 gnu_ld=yes
4860 gas=yes
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.
4866 *-*-sysv4*)
4867 fixincludes=fixinc.svr4
4868 xmake_try_sysv=x-sysv
4869 broken_install=yes
4870 install_headers_dir=install-headers-cpio
4872 *-*-sysv*)
4873 broken_install=yes
4874 install_headers_dir=install-headers-cpio
4876 esac
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=
4882 case $machine in
4883 i486-*-*)
4884 target_cpu_default2=1
4886 i586-*-*)
4887 target_cpu_default2=2
4889 i686-*-* | i786-*-*)
4890 target_cpu_default2=3
4892 alpha*-*-*)
4893 case $machine in
4894 alphaev6*)
4895 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
4897 alphapca56*)
4898 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|TASK_MAX"
4900 alphaev56*)
4901 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
4903 alphaev5*)
4904 target_cpu_default2="MASK_CPU_EV5"
4906 esac
4908 if [ x$gas = xyes ]
4909 then
4910 if [ x$target_cpu_default2 = x ]
4911 then
4912 target_cpu_default2="MASK_GAS"
4913 else
4914 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
4918 arm*-*-*)
4919 case "x$with_cpu" in
4921 # The most generic
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"
4934 xyes | xno)
4935 echo "--with-cpu must be passed a value" 1>&2
4936 exit 1
4940 if [ x$pass2done = xyes ]
4941 then
4942 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4943 exit 1
4946 esac
4949 mips*-*-ecoff* | mips*-*-elf*)
4950 if [ x$gas = xyes ]
4951 then
4952 if [ x$gnu_ld = xyes ]
4953 then
4954 target_cpu_default2=20
4955 else
4956 target_cpu_default2=16
4960 mips*-*-*)
4961 if [ x$gas = xyes ]
4962 then
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\""
4978 xyes | xno)
4979 echo "--with-cpu must be passed a value" 1>&2
4980 exit 1
4984 if [ x$pass2done = xyes ]
4985 then
4986 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4987 exit 1
4990 esac
4992 sparc*-*-*)
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 ]
5002 then
5003 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
5004 exit 1
5007 esac
5009 esac
5011 if [ x$target_cpu_default2 != x ]
5012 then
5013 if [ x$target_cpu_default != x ]
5014 then
5015 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
5016 else
5017 target_cpu_default=$target_cpu_default2
5021 # No need for collect2 if we have the GNU linker.
5022 case x$gnu_ld in
5023 xyes)
5024 use_collect2=
5026 esac
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 ]
5031 then
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
5040 pass1done=yes
5041 else
5042 if [ x$pass2done = x ]
5043 then
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
5056 pass2done=yes
5059 done
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."
5090 count=a
5091 for f in $tm_file; do
5092 count=${count}x
5093 done
5094 if [ $count = ax ]; then
5095 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
5096 else
5097 echo "Using the following target machine macro files:"
5098 for f in $tm_file; do
5099 echo " $srcdir/config/$f"
5100 done
5103 count=a
5104 for f in $host_xm_file; do
5105 count=${count}x
5106 done
5107 if [ $count = ax ]; then
5108 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
5109 else
5110 echo "Using the following host machine macro files:"
5111 for f in $host_xm_file; do
5112 echo " $srcdir/config/$f"
5113 done
5116 if [ "$host_xm_file" != "$build_xm_file" ]; then
5117 count=a
5118 for f in $build_xm_file; do
5119 count=${count}x
5120 done
5121 if [ $count = ax ]; then
5122 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
5123 else
5124 echo "Using the following build machine macro files:"
5125 for f in $build_xm_file; do
5126 echo " $srcdir/config/$f"
5127 done
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.
5140 null_defines=
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
5147 then
5148 build_xm_file="auto-config.h ${build_xm_file}"
5149 else
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
5153 # of configure.
5154 tempdir=build.$$
5155 rm -rf $tempdir
5156 mkdir $tempdir
5157 cd $tempdir
5158 case ${srcdir} in
5159 /*) realsrcdir=${srcdir};;
5160 *) realsrcdir=../${srcdir};;
5161 esac
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
5168 cd ..
5169 rm -rf $tempdir
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"
5177 rm -f config.bak
5178 if [ -f config.status ]; then mv -f config.status config.bak; fi
5180 # Make the links.
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=$*
5187 rm -f $link
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 ]
5192 then
5193 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
5196 for file in `eval echo '$'$var`; do
5197 case $file in
5198 auto-config.h)
5201 echo '#ifdef IN_GCC' >>$link
5203 esac
5204 echo "#include \"$file\"" >>$link
5205 case $file in
5206 auto-config.h)
5209 echo '#endif' >>$link
5211 esac
5212 done
5214 for def in `eval echo '$'$define`; do
5215 echo "#ifndef $def" >>$link
5216 echo "#define $def" >>$link
5217 echo "#endif" >>$link
5218 done
5219 done
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.
5225 version_dep=
5226 if [ -d $srcdir/CVS ]; then
5227 version_dep=ChangeLog
5230 if [ ! -f $srcdir/version.c -a -d $srcdir/CVS ]
5231 then
5232 version=unknown
5233 else
5234 # Get the version number from the toplevel
5235 version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
5238 # Internationalization
5239 PACKAGE=gcc
5240 VERSION="$version"
5241 cat >> confdefs.h <<EOF
5242 #define PACKAGE "$PACKAGE"
5245 cat >> confdefs.h <<EOF
5246 #define VERSION "$VERSION"
5252 ALL_LINGUAS="en_UK"
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"
5259 else
5260 enable_nls=no
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
5270 else
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. */
5279 char strerror();
5281 int main() {
5282 strerror()
5283 ; return 0; }
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5286 rm -rf conftest*
5287 eval "ac_cv_lib_$ac_lib_var=yes"
5288 else
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 rm -rf conftest*
5292 eval "ac_cv_lib_$ac_lib_var=no"
5294 rm -f conftest*
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"
5301 else
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
5311 else
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5316 int main() {
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;
5322 char **p;
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. */
5332 ++ccp;
5333 p = (char**) ccp;
5334 ccp = (char const *const *) p;
5335 { /* SCO 3.2v4 cc rejects this. */
5336 char *t;
5337 char const *s = 0 ? (char *) 0 : (char const *) 0;
5339 *t++ = 0;
5341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5342 int x[] = {25, 17};
5343 const int *foo = &x[0];
5344 ++foo;
5346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5347 typedef const int *iptr;
5348 iptr p = 0;
5349 ++p;
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 */
5357 const int foo = 10;
5360 ; return 0; }
5362 if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5363 rm -rf conftest*
5364 ac_cv_c_const=yes
5365 else
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5368 rm -rf conftest*
5369 ac_cv_c_const=no
5371 rm -f conftest*
5374 echo "$ac_t""$ac_cv_c_const" 1>&6
5375 if test $ac_cv_c_const = no; then
5376 cat >> confdefs.h <<\EOF
5377 #define const
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
5386 else
5387 ac_cv_c_inline=no
5388 for ac_kw in inline __inline__ __inline; do
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5393 int main() {
5394 } $ac_kw foo() {
5395 ; return 0; }
5397 if { (eval echo configure:5398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5398 rm -rf conftest*
5399 ac_cv_c_inline=$ac_kw; break
5400 else
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5404 rm -f conftest*
5405 done
5409 echo "$ac_t""$ac_cv_c_inline" 1>&6
5410 case "$ac_cv_c_inline" in
5411 inline | yes) ;;
5412 no) cat >> confdefs.h <<\EOF
5413 #define inline
5416 *) cat >> confdefs.h <<EOF
5417 #define inline $ac_cv_c_inline
5420 esac
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
5426 else
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 #include <sys/types.h>
5431 #if STDC_HEADERS
5432 #include <stdlib.h>
5433 #include <stddef.h>
5434 #endif
5436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5437 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5438 rm -rf conftest*
5439 ac_cv_type_off_t=yes
5440 else
5441 rm -rf conftest*
5442 ac_cv_type_off_t=no
5444 rm -f conftest*
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
5450 #define off_t long
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
5459 else
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 #include <sys/types.h>
5464 #if STDC_HEADERS
5465 #include <stdlib.h>
5466 #include <stddef.h>
5467 #endif
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5471 rm -rf conftest*
5472 ac_cv_type_size_t=yes
5473 else
5474 rm -rf conftest*
5475 ac_cv_type_size_t=no
5477 rm -f conftest*
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
5494 else
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5498 #include <alloca.h>
5499 int main() {
5500 char *p = alloca(2 * sizeof(int));
5501 ; return 0; }
5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5504 rm -rf conftest*
5505 ac_cv_header_alloca_h=yes
5506 else
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5509 rm -rf conftest*
5510 ac_cv_header_alloca_h=no
5512 rm -f conftest*
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
5527 else
5528 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5532 #ifdef __GNUC__
5533 # define alloca __builtin_alloca
5534 #else
5535 # if HAVE_ALLOCA_H
5536 # include <alloca.h>
5537 # else
5538 # ifdef _AIX
5539 #pragma alloca
5540 # else
5541 # ifndef alloca /* predefined by HP cc +Olibcalls */
5542 char *alloca ();
5543 # endif
5544 # endif
5545 # endif
5546 #endif
5548 int main() {
5549 char *p = (char *) alloca(1);
5550 ; return 0; }
5552 if { (eval echo configure:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5553 rm -rf conftest*
5554 ac_cv_func_alloca_works=yes
5555 else
5556 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5558 rm -rf conftest*
5559 ac_cv_func_alloca_works=no
5561 rm -f conftest*
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.
5577 ALLOCA=alloca.o
5578 cat >> confdefs.h <<\EOF
5579 #define C_ALLOCA 1
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
5587 else
5588 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 #if defined(CRAY) && ! defined(CRAY2)
5592 webecray
5593 #else
5594 wenotbecray
5595 #endif
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 egrep "webecray" >/dev/null 2>&1; then
5600 rm -rf conftest*
5601 ac_cv_os_cray=yes
5602 else
5603 rm -rf conftest*
5604 ac_cv_os_cray=no
5606 rm -f conftest*
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
5617 else
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. */
5623 #include <assert.h>
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. */
5627 char $ac_func();
5629 int main() {
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)
5635 choke me
5636 #else
5637 $ac_func();
5638 #endif
5640 ; return 0; }
5642 if { (eval echo configure:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5643 rm -rf conftest*
5644 eval "ac_cv_func_$ac_func=yes"
5645 else
5646 echo "configure: failed program was:" >&5
5647 cat conftest.$ac_ext >&5
5648 rm -rf conftest*
5649 eval "ac_cv_func_$ac_func=no"
5651 rm -f conftest*
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
5660 break
5661 else
5662 echo "$ac_t""no" 1>&6
5665 done
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
5672 else
5673 if test "$cross_compiling" = yes; then
5674 ac_cv_c_stack_direction=0
5675 else
5676 cat > conftest.$ac_ext <<EOF
5677 #line 5678 "configure"
5678 #include "confdefs.h"
5679 find_stack_direction ()
5681 static char *addr = 0;
5682 auto char dummy;
5683 if (addr == 0)
5685 addr = &dummy;
5686 return find_stack_direction ();
5688 else
5689 return (&dummy > addr) ? 1 : -1;
5691 main ()
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
5697 then
5698 ac_cv_c_stack_direction=1
5699 else
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5702 rm -fr conftest*
5703 ac_cv_c_stack_direction=-1
5705 rm -fr conftest*
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
5724 else
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 #include <$ac_hdr>
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
5734 rm -rf conftest*
5735 eval "ac_cv_header_$ac_safe=yes"
5736 else
5737 echo "$ac_err" >&5
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5740 rm -rf conftest*
5741 eval "ac_cv_header_$ac_safe=no"
5743 rm -f conftest*
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
5752 else
5753 echo "$ac_t""no" 1>&6
5755 done
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
5763 else
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. */
5769 #include <assert.h>
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. */
5773 char $ac_func();
5775 int main() {
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)
5781 choke me
5782 #else
5783 $ac_func();
5784 #endif
5786 ; return 0; }
5788 if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5789 rm -rf conftest*
5790 eval "ac_cv_func_$ac_func=yes"
5791 else
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5794 rm -rf conftest*
5795 eval "ac_cv_func_$ac_func=no"
5797 rm -f conftest*
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
5807 else
5808 echo "$ac_t""no" 1>&6
5810 done
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
5816 else
5817 if test "$cross_compiling" = yes; then
5818 ac_cv_func_mmap_fixed_mapped=no
5819 else
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>
5846 #include <fcntl.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>
5853 # endif
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
5858 # endif
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 */
5868 # ifdef NBPG
5869 # define getpagesize() NBPG * CLSIZE
5870 # ifndef CLSIZE
5871 # define CLSIZE 1
5872 # endif /* no CLSIZE */
5873 # else /* no NBPG */
5874 # ifdef NBPC
5875 # define getpagesize() NBPC
5876 # else /* no NBPC */
5877 # ifdef PAGESIZE
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 */
5890 #ifdef __cplusplus
5891 extern "C" { void *malloc(unsigned); }
5892 #else
5893 char *malloc();
5894 #endif
5897 main()
5899 char *data, *data2, *data3;
5900 int i, pagesize;
5901 int fd;
5903 pagesize = getpagesize();
5906 * First, make a file with some known garbage in it.
5908 data = malloc(pagesize);
5909 if (!data)
5910 exit(1);
5911 for (i = 0; i < pagesize; ++i)
5912 *(data + i) = rand();
5913 umask(0);
5914 fd = creat("conftestmmap", 0600);
5915 if (fd < 0)
5916 exit(1);
5917 if (write(fd, data, pagesize) != pagesize)
5918 exit(1);
5919 close(fd);
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);
5927 if (fd < 0)
5928 exit(1);
5929 data2 = malloc(2 * pagesize);
5930 if (!data2)
5931 exit(1);
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))
5935 exit(1);
5936 for (i = 0; i < pagesize; ++i)
5937 if (*(data + i) != *(data2 + i))
5938 exit(1);
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);
5948 if (!data3)
5949 exit(1);
5950 if (read(fd, data3, pagesize) != pagesize)
5951 exit(1);
5952 for (i = 0; i < pagesize; ++i)
5953 if (*(data + i) != *(data3 + i))
5954 exit(1);
5955 close(fd);
5956 unlink("conftestmmap");
5957 exit(0);
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5962 then
5963 ac_cv_func_mmap_fixed_mapped=yes
5964 else
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 rm -fr conftest*
5968 ac_cv_func_mmap_fixed_mapped=no
5970 rm -fr conftest*
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
5978 #define HAVE_MMAP 1
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
5992 else
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 #include <$ac_hdr>
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
6002 rm -rf conftest*
6003 eval "ac_cv_header_$ac_safe=yes"
6004 else
6005 echo "$ac_err" >&5
6006 echo "configure: failed program was:" >&5
6007 cat conftest.$ac_ext >&5
6008 rm -rf conftest*
6009 eval "ac_cv_header_$ac_safe=no"
6011 rm -f conftest*
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
6020 else
6021 echo "$ac_t""no" 1>&6
6023 done
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
6032 else
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. */
6038 #include <assert.h>
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. */
6042 char $ac_func();
6044 int main() {
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)
6050 choke me
6051 #else
6052 $ac_func();
6053 #endif
6055 ; return 0; }
6057 if { (eval echo configure:6058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6058 rm -rf conftest*
6059 eval "ac_cv_func_$ac_func=yes"
6060 else
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6063 rm -rf conftest*
6064 eval "ac_cv_func_$ac_func=no"
6066 rm -f conftest*
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
6076 else
6077 echo "$ac_t""no" 1>&6
6079 done
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
6089 else
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. */
6095 #include <assert.h>
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. */
6099 char $ac_func();
6101 int main() {
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)
6107 choke me
6108 #else
6109 $ac_func();
6110 #endif
6112 ; return 0; }
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6115 rm -rf conftest*
6116 eval "ac_cv_func_$ac_func=yes"
6117 else
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 rm -rf conftest*
6121 eval "ac_cv_func_$ac_func=no"
6123 rm -f conftest*
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
6133 else
6134 echo "$ac_t""no" 1>&6
6136 done
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
6151 else
6152 cat > conftest.$ac_ext <<EOF
6153 #line 6154 "configure"
6154 #include "confdefs.h"
6155 #include <locale.h>
6156 int main() {
6157 return LC_MESSAGES
6158 ; return 0; }
6160 if { (eval echo configure:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6161 rm -rf conftest*
6162 am_cv_val_LC_MESSAGES=yes
6163 else
6164 echo "configure: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6166 rm -rf conftest*
6167 am_cv_val_LC_MESSAGES=no
6169 rm -f conftest*
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"
6185 USE_NLS=$enableval
6186 else
6187 USE_NLS=yes
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
6206 else
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
6214 nls_cv_header_intl=
6215 nls_cv_header_libgt=
6216 CATOBJEXT=NONE
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
6223 else
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
6233 rm -rf conftest*
6234 eval "ac_cv_header_$ac_safe=yes"
6235 else
6236 echo "$ac_err" >&5
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6239 rm -rf conftest*
6240 eval "ac_cv_header_$ac_safe=no"
6242 rm -f conftest*
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
6250 else
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 #include <libintl.h>
6255 int main() {
6256 return (int) gettext ("")
6257 ; return 0; }
6259 if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6260 rm -rf conftest*
6261 gt_cv_func_gettext_libc=yes
6262 else
6263 echo "configure: failed program was:" >&5
6264 cat conftest.$ac_ext >&5
6265 rm -rf conftest*
6266 gt_cv_func_gettext_libc=no
6268 rm -f conftest*
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
6279 else
6280 ac_save_LIBS="$LIBS"
6281 LIBS="-lintl $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();
6290 int main() {
6291 bindtextdomain()
6292 ; return 0; }
6294 if { (eval echo configure:6295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6295 rm -rf conftest*
6296 eval "ac_cv_lib_$ac_lib_var=yes"
6297 else
6298 echo "configure: failed program was:" >&5
6299 cat conftest.$ac_ext >&5
6300 rm -rf conftest*
6301 eval "ac_cv_lib_$ac_lib_var=no"
6303 rm -f conftest*
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
6313 else
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
6319 else
6320 ac_save_LIBS="$LIBS"
6321 LIBS="-lintl $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. */
6328 char gettext();
6330 int main() {
6331 gettext()
6332 ; return 0; }
6334 if { (eval echo configure:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6335 rm -rf conftest*
6336 eval "ac_cv_lib_$ac_lib_var=yes"
6337 else
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6340 rm -rf conftest*
6341 eval "ac_cv_lib_$ac_lib_var=no"
6343 rm -f conftest*
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
6350 else
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
6358 else
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
6376 else
6377 case "$MSGFMT" in
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"
6388 break
6391 done
6392 IFS="$ac_save_ifs"
6393 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6395 esac
6397 MSGFMT="$ac_cv_path_MSGFMT"
6398 if test -n "$MSGFMT"; then
6399 echo "$ac_t""$MSGFMT" 1>&6
6400 else
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
6410 else
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. */
6416 #include <assert.h>
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. */
6420 char $ac_func();
6422 int main() {
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)
6428 choke me
6429 #else
6430 $ac_func();
6431 #endif
6433 ; return 0; }
6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6436 rm -rf conftest*
6437 eval "ac_cv_func_$ac_func=yes"
6438 else
6439 echo "configure: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6441 rm -rf conftest*
6442 eval "ac_cv_func_$ac_func=no"
6444 rm -f conftest*
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
6454 else
6455 echo "$ac_t""no" 1>&6
6457 done
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
6465 else
6466 case "$GMSGFMT" in
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"
6476 break
6478 done
6479 IFS="$ac_save_ifs"
6480 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6482 esac
6484 GMSGFMT="$ac_cv_path_GMSGFMT"
6485 if test -n "$GMSGFMT"; then
6486 echo "$ac_t""$GMSGFMT" 1>&6
6487 else
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
6497 else
6498 case "$XGETTEXT" in
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"
6509 break
6512 done
6513 IFS="$ac_save_ifs"
6514 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6516 esac
6518 XGETTEXT="$ac_cv_path_XGETTEXT"
6519 if test -n "$XGETTEXT"; then
6520 echo "$ac_t""$XGETTEXT" 1>&6
6521 else
6522 echo "$ac_t""no" 1>&6
6525 cat > conftest.$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6529 int main() {
6530 extern int _nl_msg_cat_cntr;
6531 return _nl_msg_cat_cntr
6532 ; return 0; }
6534 if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6535 rm -rf conftest*
6536 CATOBJEXT=.gmo
6537 DATADIRNAME=share
6538 else
6539 echo "configure: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6541 rm -rf conftest*
6542 CATOBJEXT=.mo
6543 DATADIRNAME=lib
6545 rm -f conftest*
6546 INSTOBJEXT=.mo
6550 else
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
6562 else
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
6574 else
6575 ac_save_LIBS="$LIBS"
6576 LIBS="-li $LIBS"
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6581 int main() {
6582 main()
6583 ; return 0; }
6585 if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6586 rm -rf conftest*
6587 eval "ac_cv_lib_$ac_lib_var=yes"
6588 else
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6591 rm -rf conftest*
6592 eval "ac_cv_lib_$ac_lib_var=no"
6594 rm -f conftest*
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
6606 LIBS="-li $LIBS"
6608 else
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
6616 else
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. */
6622 #include <assert.h>
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. */
6626 char catgets();
6628 int main() {
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)
6634 choke me
6635 #else
6636 catgets();
6637 #endif
6639 ; return 0; }
6641 if { (eval echo configure:6642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6642 rm -rf conftest*
6643 eval "ac_cv_func_catgets=yes"
6644 else
6645 echo "configure: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 rm -rf conftest*
6648 eval "ac_cv_func_catgets=no"
6650 rm -f conftest*
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
6666 else
6667 case "$GENCAT" in
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"
6677 break
6679 done
6680 IFS="$ac_save_ifs"
6681 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
6683 esac
6685 GENCAT="$ac_cv_path_GENCAT"
6686 if test -n "$GENCAT"; then
6687 echo "$ac_t""$GENCAT" 1>&6
6688 else
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
6698 else
6699 case "$GMSGFMT" in
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"
6709 break
6711 done
6712 IFS="$ac_save_ifs"
6713 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
6715 esac
6717 GMSGFMT="$ac_cv_path_GMSGFMT"
6718 if test -n "$GMSGFMT"; then
6719 echo "$ac_t""$GMSGFMT" 1>&6
6720 else
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
6731 else
6732 case "$GMSGFMT" in
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"
6743 break
6746 done
6747 IFS="$ac_save_ifs"
6748 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
6750 esac
6752 GMSGFMT="$ac_cv_path_GMSGFMT"
6753 if test -n "$GMSGFMT"; then
6754 echo "$ac_t""$GMSGFMT" 1>&6
6755 else
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
6766 else
6767 case "$XGETTEXT" in
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"
6778 break
6781 done
6782 IFS="$ac_save_ifs"
6783 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6785 esac
6787 XGETTEXT="$ac_cv_path_XGETTEXT"
6788 if test -n "$XGETTEXT"; then
6789 echo "$ac_t""$XGETTEXT" 1>&6
6790 else
6791 echo "$ac_t""no" 1>&6
6794 USE_INCLUDED_LIBINTL=yes
6795 CATOBJEXT=.cat
6796 INSTOBJEXT=.cat
6797 DATADIRNAME=lib
6798 INTLDEPS='$(top_builddir)/intl/libintl.a'
6799 INTLLIBS=$INTLDEPS
6800 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
6801 nls_cv_header_intl=intl/libintl.h
6802 nls_cv_header_libgt=intl/libgettext.h
6804 else
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
6824 else
6825 case "$MSGFMT" in
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"
6836 break
6839 done
6840 IFS="$ac_save_ifs"
6841 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
6843 esac
6845 MSGFMT="$ac_cv_path_MSGFMT"
6846 if test -n "$MSGFMT"; then
6847 echo "$ac_t""$MSGFMT" 1>&6
6848 else
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
6858 else
6859 case "$GMSGFMT" in
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"
6869 break
6871 done
6872 IFS="$ac_save_ifs"
6873 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6875 esac
6877 GMSGFMT="$ac_cv_path_GMSGFMT"
6878 if test -n "$GMSGFMT"; then
6879 echo "$ac_t""$GMSGFMT" 1>&6
6880 else
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
6890 else
6891 case "$XGETTEXT" in
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"
6902 break
6905 done
6906 IFS="$ac_save_ifs"
6907 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6909 esac
6911 XGETTEXT="$ac_cv_path_XGETTEXT"
6912 if test -n "$XGETTEXT"; then
6913 echo "$ac_t""$XGETTEXT" 1>&6
6914 else
6915 echo "$ac_t""no" 1>&6
6919 USE_INCLUDED_LIBINTL=yes
6920 CATOBJEXT=.gmo
6921 INSTOBJEXT=.mo
6922 DATADIRNAME=share
6923 INTLDEPS='$(top_builddir)/intl/libintl.a'
6924 INTLLIBS=$INTLDEPS
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
6933 else
6934 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
6935 XGETTEXT=":"
6939 # We need to process the po/ directory.
6940 POSUB=po
6941 else
6942 DATADIRNAME=share
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
6953 USE_NLS=yes
6954 USE_INCLUDED_LIBINTL=yes
6957 for lang in $ALL_LINGUAS; do
6958 GMOFILES="$GMOFILES $lang.gmo"
6959 POFILES="$POFILES $lang.po"
6960 done
6975 if test "x$CATOBJEXT" != "x"; then
6976 if test "x$ALL_LINGUAS" = "x"; then
6977 LINGUAS=
6978 else
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
6981 NEW_LINGUAS=
6982 for lang in ${LINGUAS=$ALL_LINGUAS}; do
6983 case "$ALL_LINGUAS" in
6984 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
6985 esac
6986 done
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>"
6998 else
6999 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
7011 else
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
7021 rm -rf conftest*
7022 eval "ac_cv_header_$ac_safe=yes"
7023 else
7024 echo "$ac_err" >&5
7025 echo "configure: failed program was:" >&5
7026 cat conftest.$ac_ext >&5
7027 rm -rf conftest*
7028 eval "ac_cv_header_$ac_safe=no"
7030 rm -f conftest*
7032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7033 echo "$ac_t""yes" 1>&6
7034 msgformat=linux
7035 else
7036 echo "$ac_t""no" 1>&6
7037 msgformat=xopen
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
7047 GT_NO="#NO#"
7048 GT_YES=
7049 else
7050 GT_NO=
7051 GT_YES="#YES#"
7056 MKINSTALLDIRS=
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/"
7072 else
7073 posrcprefix="../$srcdir/"
7075 else
7076 posrcprefix="../"
7078 rm -f po/POTFILES
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?
7085 case $host in
7086 *linux* | *cygwin32* | *mingw32*)
7087 if [ x$prefix = xNONE ]; then
7088 prefix=$native_prefix
7091 esac
7093 # Get an absolute path to the GCC top-level source directory
7094 holddir=`pwd`
7095 cd $srcdir
7096 topdir=`pwd`
7097 cd $holddir
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 ]
7107 then
7108 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
7110 done
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
7116 dep_tmake_file=
7117 for f in .. ${tmake_file}
7119 if [ -f ${srcdir}/config/$f ]
7120 then
7121 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
7123 done
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)".
7128 rm -f symtest.tem
7129 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
7130 then
7131 cc_set_by_configure="\$(CC)"
7132 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
7133 else
7134 rm -f symtest.tem
7135 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
7136 then
7137 symbolic_link="cp -p"
7138 else
7139 symbolic_link="cp"
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\`"
7144 rm -f symtest.tem
7146 out_object_file=`basename $out_file .c`.o
7148 tm_file_list=
7149 for f in $tm_file; do
7150 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
7151 done
7153 host_xm_file_list=
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"
7157 else
7158 host_xm_file_list="${host_xm_file_list} $f"
7160 done
7162 build_xm_file_list=
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"
7166 else
7167 build_xm_file_list="${build_xm_file_list} $f"
7169 done
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 ]
7177 then
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
7184 # all.cross.
7185 build_overrides="/dev/null"
7186 if [ x$build != x$host ]
7187 then
7188 build_overrides="${topdir}/build-make"
7191 # Expand extra_headers to include complete path.
7192 # This substitutes for lots of t-* files.
7193 extra_headers_list=
7194 if [ "x$extra_headers" = x ]
7195 then true
7196 else
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}"
7201 done
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 ]
7208 then
7209 will_use_collect2=
7210 maybe_use_collect2=
7211 else
7212 will_use_collect2="ld"
7213 maybe_use_collect2="-DUSE_COLLECT2"
7216 # NEED TO CONVERT
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.
7222 md_file_sub=
7223 if [ "x$md_cppflags" = x ]
7224 then
7225 md_file_sub=$srcdir/config/$md_file
7226 else
7227 md_file=md
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
7239 else
7240 rm -f collect-ld; $symbolic_link ../ld/ld.new collect-ld 2>/dev/null
7244 # Figure out what language subdirectories are present.
7245 subdirs=
7246 for lang in ${srcdir}/*/config-lang.in ..
7248 case $lang in
7249 ..) ;;
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,'`" ;;
7254 esac
7255 done
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.
7260 lang_specs_files=
7261 lang_options_files=
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"
7274 done
7276 # These (without "all_") are set in each config-lang.in.
7277 # `language' must be a single word so is spelled singularly.
7278 all_languages=
7279 all_boot_languages=
7280 all_compilers=
7281 all_stagestuff=
7282 all_diff_excludes=
7283 all_outputs='Makefile intl/Makefile po/Makefile.in'
7284 # List of language makefile fragments.
7285 all_lang_makefiles=
7286 all_headers=
7287 all_lib2funcs=
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"
7298 oldstyle_subdirs=
7300 for s in .. $subdirs
7302 if [ $s != ".." ]
7303 then
7304 language=
7305 boot_language=
7306 compilers=
7307 stagestuff=
7308 diff_excludes=
7309 headers=
7310 outputs=
7311 lib2funcs=
7312 . ${srcdir}/$s/config-lang.in
7313 if [ "x$language" = x ]
7314 then
7315 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
7316 exit 1
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 ]
7321 then
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 ]
7330 then
7331 oldstyle_subdirs="$oldstyle_subdirs $s"
7333 all_lib2funcs="$all_lib2funcs $lib2funcs"
7335 done
7337 # Since we can't use `::' targets, we link each language in
7338 # with a set of hooks, reached indirectly via lang.${target}.
7340 rm -f Make-hooks
7341 touch Make-hooks
7342 target_list="all.build all.cross start.encap rest.encap \
7343 info dvi \
7344 install-normal install-common install-info install-man \
7345 uninstall distdir \
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
7354 x="$x $lang.$t"
7356 done
7357 echo "lang.$t: $x" >> Make-hooks
7358 done
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 ]
7366 then
7367 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
7369 if [ "x$subdirs" != x ]; then
7370 for s in $subdirs
7372 echo "dir ${srcdir}/$s" >> .gdbinit
7373 done
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 ]
7434 then
7435 str1="native "
7436 else
7437 str1="cross-"
7438 str2=" from $host"
7441 if [ x$host != x$build ]
7442 then
7443 str3=" on a $build system"
7446 if [ "x$str2" != x ] || [ "x$str3" != x ]
7447 then
7448 str4=
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 ]
7454 then
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
7468 trap '' 1 2 15
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.
7490 (set) 2>&1 |
7491 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7492 *ac_space=\ *)
7493 # `set' does not quote correctly, so add quotes (double-quote substitution
7494 # turns \\\\ into \\, and sed turns \\ into \).
7495 sed -n \
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'
7503 esac >> confcache
7504 if cmp -s $cache_file confcache; then
7506 else
7507 if test -w $cache_file; then
7508 echo "updating cache $cache_file"
7509 cat confcache > $cache_file
7510 else
7511 echo "not updating unwritable cache $cache_file"
7514 rm -f confcache
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
7539 #! /bin/sh
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]"
7551 for ac_option
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"
7559 exit 0 ;;
7560 -help | --help | --hel | --he | --h)
7561 echo "\$ac_cs_usage"; exit 0 ;;
7562 *) echo "\$ac_cs_usage"; exit 1 ;;
7563 esac
7564 done
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
7576 $ac_vpsub
7577 $extrasub
7578 s%@CFLAGS@%$CFLAGS%g
7579 s%@CPPFLAGS@%$CPPFLAGS%g
7580 s%@CXXFLAGS@%$CXXFLAGS%g
7581 s%@DEFS@%$DEFS%g
7582 s%@LDFLAGS@%$LDFLAGS%g
7583 s%@LIBS@%$LIBS%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
7599 s%@host@%$host%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
7609 s%@build@%$build%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
7614 s%@CC@%$CC%g
7615 s%@SET_MAKE@%$SET_MAKE%g
7616 s%@AWK@%$AWK%g
7617 s%@LEX@%$LEX%g
7618 s%@LEXLIB@%$LEXLIB%g
7619 s%@RANLIB@%$RANLIB%g
7620 s%@YACC@%$YACC%g
7621 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7622 s%@INSTALL_DATA@%$INSTALL_DATA%g
7623 s%@CPP@%$CPP%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
7646 s%@POSUB@%$POSUB%g
7647 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7648 s%@GT_NO@%$GT_NO%g
7649 s%@GT_YES@%$GT_YES%g
7650 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7651 s%@l@%$l%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
7707 CEOF
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.
7718 ac_more_lines=:
7719 ac_sed_cmds=""
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
7723 else
7724 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7726 if test ! -s conftest.s$ac_file; then
7727 ac_more_lines=false
7728 rm -f conftest.s$ac_file
7729 else
7730 if test -z "$ac_sed_cmds"; then
7731 ac_sed_cmds="sed -f conftest.s$ac_file"
7732 else
7733 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7735 ac_file=`expr $ac_file + 1`
7736 ac_beg=$ac_end
7737 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7739 done
7740 if test -z "$ac_sed_cmds"; then
7741 ac_sed_cmds=cat
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".
7752 case "$ac_file" 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" ;;
7756 esac
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'`
7768 else
7769 ac_dir_suffix= ac_dots=
7772 case "$ac_given_srcdir" in
7773 .) srcdir=.
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" ;;
7777 *) # Relative path.
7778 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7779 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7780 esac
7782 case "$ac_given_INSTALL" in
7783 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7784 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7785 esac
7787 echo creating "$ac_file"
7788 rm -f "$ac_file"
7789 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7790 case "$ac_file" in
7791 *Makefile*) ac_comsub="1i\\
7792 # $configure_input" ;;
7793 *) ac_comsub= ;;
7794 esac
7796 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7797 sed -e "$ac_comsub
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
7803 fi; done
7804 rm -f conftest.s*
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'
7812 ac_dC='\3'
7813 ac_dD='%g'
7814 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7815 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7816 ac_uB='\([ ]\)%\1#\2define\3'
7817 ac_uC=' '
7818 ac_uD='\4%g'
7819 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7820 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7821 ac_eB='$%\1#\2define\3'
7822 ac_eC=' '
7823 ac_eD='%g'
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".
7834 case "$ac_file" 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" ;;
7838 esac
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.
7852 rm -f conftest.vals
7853 cat > conftest.hdr <<\EOF
7854 s/[\\&%]/\\&/g
7855 s%[\\$`]%\\&%g
7856 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7857 s%ac_d%ac_u%gp
7858 s%ac_u%ac_e%gp
7860 sed -n -f conftest.hdr confdefs.h > conftest.vals
7861 rm -f conftest.hdr
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.
7873 rm -f conftest.tail
7874 while :
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
7882 echo 'CEOF
7883 sed -f conftest.frag conftest.in > conftest.out
7884 rm -f conftest.in
7885 mv conftest.out conftest.in
7886 ' >> $CONFIG_STATUS
7887 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7888 rm -f conftest.vals
7889 mv conftest.tail conftest.vals
7890 done
7891 rm -f 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
7897 rm -f conftest.in
7898 if cmp -s $ac_file conftest.h 2>/dev/null; then
7899 echo "$ac_file is unchanged"
7900 rm -f conftest.h
7901 else
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"
7908 rm -f $ac_file
7909 mv conftest.h $ac_file
7911 fi; done
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; }
7931 rm -f $ac_dest
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'`
7942 else
7943 ac_dest_dir_suffix= ac_dots=
7946 case "$srcdir" in
7947 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7948 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7949 esac
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 :
7954 else
7955 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7957 done
7959 cat >> $CONFIG_STATUS <<EOF
7962 host='${host}'
7963 build='${build}'
7964 target='${target}'
7965 target_alias='${target_alias}'
7966 srcdir='${srcdir}'
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
7997 esac
7999 . $srcdir/configure.lang
8000 case x$CONFIG_HEADERS in
8001 xauto-config.h:config.in)
8002 echo > cstamp-h ;;
8003 esac
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
8013 STARTDIR=`pwd`
8014 cd $d
8015 for t in stage1 stage2 stage3 stage4 include
8017 rm -f $t
8018 $symbolic_link ../$t $t 2>/dev/null
8019 done
8020 cd $STARTDIR
8022 done
8023 else true ; fi
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
8030 exit 0
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