3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-gnu-as arrange to work with GNU as."
19 --with-stabs arrange to use stabs instead of host debug format."
21 --with-elf arrange to use ELF instead of host debug format."
23 --with-local-prefix=DIR specifies directory to put local include."
25 --with-gxx-include-dir=DIR
26 specifies directory to put g++ header files."
28 --enable-c-cpplib Use cpplib for C."
30 --enable-threads enable thread usage for target GCC.
31 --enable-threads=LIB use LIB thread package for target GCC."
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.12"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=tree.c
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
544 symbolic_link='ln -s'
547 # Check for additional parameters
550 # Check whether --with-gnu-ld or --without-gnu-ld was given.
551 if test "${with_gnu_ld+set}" = set; then
552 withval="$with_gnu_ld"
560 # Check whether --with-gnu-as or --without-gnu-as was given.
561 if test "${with_gnu_as+set}" = set; then
562 withval="$with_gnu_as"
570 # Check whether --with-stabs or --without-stabs was given.
571 if test "${with_stabs+set}" = set; then
572 withval="$with_stabs"
580 # Check whether --with-elf or --without-elf was given.
581 if test "${with_elf+set}" = set; then
589 # Specify the local prefix
590 # Check whether --with-local-prefix or --without-local-prefix was given.
591 if test "${with_local_prefix+set}" = set; then
592 withval="$with_local_prefix"
593 local_prefix=$with_local_prefix
595 local_prefix=/usr/local
599 # Default local prefix if it is empty
600 if [ x$local_prefix = x ]; then
601 local_prefix=/usr/local
604 # Specify the g++ header file directory
605 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
606 if test "${with_gxx_include_dir+set}" = set; then
607 withval="$with_gxx_include_dir"
608 gxx_include_dir=$with_gxx_include_dir
610 gxx_include_dir='${prefix}/include/g++'
614 # Default g++ header file directory if it is empty
615 if [ x$gxx_include_dir = x ]; then
616 gxx_include_dir='${prefix}/include/g++'
619 # Enable use of cpplib for C.
620 # Check whether --enable-c-cpplib or --disable-c-cpplib was given.
621 if test "${enable_c_cpplib+set}" = set; then
622 enableval="$enable_c_cpplib"
623 if [ x$enable_c_cpplib != xno ]; then
624 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
625 extra_c_flags=-DUSE_CPPLIB=1
631 # Pass with no value to take the default
632 # Pass with a value to specify a thread package
633 # Check whether --enable-threads or --disable-threads was given.
634 if test "${enable_threads+set}" = set; then
635 enableval="$enable_threads"
636 if [ x$enable_threads = xno ]; then
644 # Check if a valid thread package
645 case x${enable_threads} in
654 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
656 thread_file=$enable_threads
659 echo "$enable_threads is an unknown thread package" 1>&2
664 # Determine the host, build, and target systems
666 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
667 if test -f $ac_dir/install-sh; then
669 ac_install_sh="$ac_aux_dir/install-sh -c"
671 elif test -f $ac_dir/install.sh; then
673 ac_install_sh="$ac_aux_dir/install.sh -c"
677 if test -z "$ac_aux_dir"; then
678 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
680 ac_config_guess=$ac_aux_dir/config.guess
681 ac_config_sub=$ac_aux_dir/config.sub
682 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
685 # Do some error checking and defaulting for the host and target type.
687 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
690 # 1. You are not allowed to specify --host, --target, and nonopt at the
692 # 2. Host defaults to nonopt.
693 # 3. If nonopt is not specified, then host defaults to the current host,
694 # as determined by config.guess.
695 # 4. Target and build default to nonopt.
696 # 5. If nonopt is not specified, then target and build default to host.
698 # The aliases save the names the user supplied, while $host etc.
699 # will get canonicalized.
700 case $host---$target---$nonopt in
701 NONE---*---* | *---NONE---* | *---*---NONE) ;;
702 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
706 # Make sure we can run config.sub.
707 if $ac_config_sub sun4 >/dev/null 2>&1; then :
708 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
711 echo $ac_n "checking host system type""... $ac_c" 1>&6
712 echo "configure:713: checking host system type" >&5
715 case "$host_alias" in
719 if host_alias=`$ac_config_guess`; then :
720 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
722 *) host_alias=$nonopt ;;
726 host=`$ac_config_sub $host_alias`
727 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$host" 1>&6
732 echo $ac_n "checking target system type""... $ac_c" 1>&6
733 echo "configure:734: checking target system type" >&5
736 case "$target_alias" in
739 NONE) target_alias=$host_alias ;;
740 *) target_alias=$nonopt ;;
744 target=`$ac_config_sub $target_alias`
745 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$target" 1>&6
750 echo $ac_n "checking build system type""... $ac_c" 1>&6
751 echo "configure:752: checking build system type" >&5
754 case "$build_alias" in
757 NONE) build_alias=$host_alias ;;
758 *) build_alias=$nonopt ;;
762 build=`$ac_config_sub $build_alias`
763 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
764 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
765 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
766 echo "$ac_t""$build" 1>&6
768 test "$host_alias" != "$target_alias" &&
769 test "$program_prefix$program_suffix$program_transform_name" = \
771 program_prefix=${target_alias}-
774 # Find some useful tools
775 for ac_prog in mawk gawk nawk awk
777 # Extract the first word of "$ac_prog", so it can be a program name with args.
778 set dummy $ac_prog; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 if test -n "$AWK"; then
785 ac_cv_prog_AWK="$AWK" # Let the user override the test.
787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
788 for ac_dir in $PATH; do
789 test -z "$ac_dir" && ac_dir=.
790 if test -f $ac_dir/$ac_word; then
791 ac_cv_prog_AWK="$ac_prog"
798 AWK="$ac_cv_prog_AWK"
799 if test -n "$AWK"; then
800 echo "$ac_t""$AWK" 1>&6
802 echo "$ac_t""no" 1>&6
805 test -n "$AWK" && break
808 # Extract the first word of "flex", so it can be a program name with args.
809 set dummy flex; ac_word=$2
810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
811 echo "configure:812: checking for $ac_word" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 if test -n "$LEX"; then
816 ac_cv_prog_LEX="$LEX" # Let the user override the test.
818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
819 for ac_dir in $PATH; do
820 test -z "$ac_dir" && ac_dir=.
821 if test -f $ac_dir/$ac_word; then
822 ac_cv_prog_LEX="flex"
827 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
830 LEX="$ac_cv_prog_LEX"
831 if test -n "$LEX"; then
832 echo "$ac_t""$LEX" 1>&6
834 echo "$ac_t""no" 1>&6
843 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
844 echo "configure:845: checking for yywrap in -l$ac_lib" >&5
845 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
850 LIBS="-l$ac_lib $LIBS"
851 cat > conftest.$ac_ext <<EOF
852 #line 853 "configure"
853 #include "confdefs.h"
854 /* Override any gcc2 internal prototype to avoid an error. */
855 /* We use char because int might match the return type of a gcc2
856 builtin and then its argument prototype would still apply. */
863 if { (eval echo configure:864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
865 eval "ac_cv_lib_$ac_lib_var=yes"
867 echo "configure: failed program was:" >&5
868 cat conftest.$ac_ext >&5
870 eval "ac_cv_lib_$ac_lib_var=no"
876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
877 echo "$ac_t""yes" 1>&6
880 echo "$ac_t""no" 1>&6
885 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
886 echo "configure:887: checking whether ln -s works" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
891 if ln -s X conftestdata 2>/dev/null
894 ac_cv_prog_LN_S="ln -s"
899 LN_S="$ac_cv_prog_LN_S"
900 if test "$ac_cv_prog_LN_S" = "ln -s"; then
901 echo "$ac_t""yes" 1>&6
903 echo "$ac_t""no" 1>&6
906 # Extract the first word of "ranlib", so it can be a program name with args.
907 set dummy ranlib; ac_word=$2
908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
909 echo "configure:910: checking for $ac_word" >&5
910 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 if test -n "$RANLIB"; then
914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
917 for ac_dir in $PATH; do
918 test -z "$ac_dir" && ac_dir=.
919 if test -f $ac_dir/$ac_word; then
920 ac_cv_prog_RANLIB="ranlib"
925 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
928 RANLIB="$ac_cv_prog_RANLIB"
929 if test -n "$RANLIB"; then
930 echo "$ac_t""$RANLIB" 1>&6
932 echo "$ac_t""no" 1>&6
935 for ac_prog in 'bison -y' byacc
937 # Extract the first word of "$ac_prog", so it can be a program name with args.
938 set dummy $ac_prog; ac_word=$2
939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
940 echo "configure:941: checking for $ac_word" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
944 if test -n "$YACC"; then
945 ac_cv_prog_YACC="$YACC" # Let the user override the test.
947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
948 for ac_dir in $PATH; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
951 ac_cv_prog_YACC="$ac_prog"
958 YACC="$ac_cv_prog_YACC"
959 if test -n "$YACC"; then
960 echo "$ac_t""$YACC" 1>&6
962 echo "$ac_t""no" 1>&6
965 test -n "$YACC" && break
967 test -n "$YACC" || YACC="yacc"
969 # Find a good install program. We prefer a C program (faster),
970 # so one script is as good as another. But avoid the broken or
971 # incompatible versions:
972 # SysV /etc/install, /usr/sbin/install
973 # SunOS /usr/etc/install
976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
978 # ./install, which can be erroneously created by make from ./install.sh.
979 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
980 echo "configure:981: checking for a BSD compatible install" >&5
981 if test -z "$INSTALL"; then
982 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
986 for ac_dir in $PATH; do
987 # Account for people who put trailing slashes in PATH elements.
989 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
991 # OSF1 and SCO ODT 3.0 have their own names for install.
992 for ac_prog in ginstall installbsd scoinst install; do
993 if test -f $ac_dir/$ac_prog; then
994 if test $ac_prog = install &&
995 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
996 # AIX install. It has an incompatible calling convention.
997 # OSF/1 installbsd also uses dspmsg, but is usable.
1000 ac_cv_path_install="$ac_dir/$ac_prog -c"
1011 if test "${ac_cv_path_install+set}" = set; then
1012 INSTALL="$ac_cv_path_install"
1014 # As a last resort, use the slow shell script. We don't cache a
1015 # path for INSTALL within a source directory, because that will
1016 # break other packages using the cache if that directory is
1017 # removed, or if the path is relative.
1018 INSTALL="$ac_install_sh"
1021 echo "$ac_t""$INSTALL" 1>&6
1023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1024 # It thinks the first close brace ends the variable substitution.
1025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1030 # Find the native compiler
1031 # Extract the first word of "gcc", so it can be a program name with args.
1032 set dummy gcc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC="$CC" # Let the user override the test.
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1042 for ac_dir in $PATH; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1053 if test -n "$CC"; then
1054 echo "$ac_t""$CC" 1>&6
1056 echo "$ac_t""no" 1>&6
1059 if test -z "$CC"; then
1060 # Extract the first word of "cc", so it can be a program name with args.
1061 set dummy cc; ac_word=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC="$CC" # Let the user override the test.
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1072 for ac_dir in $PATH; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1076 ac_prog_rejected=yes
1084 if test $ac_prog_rejected = yes; then
1085 # We found a bogon in the path, so make sure we never use it.
1086 set dummy $ac_cv_prog_CC
1088 if test $# -gt 0; then
1089 # We chose a different compiler from the bogus one.
1090 # However, it has the same basename, so the bogon will be chosen
1091 # first if we set CC to just the basename; use the full file name.
1093 set dummy "$ac_dir/$ac_word" "$@"
1101 if test -n "$CC"; then
1102 echo "$ac_t""$CC" 1>&6
1104 echo "$ac_t""no" 1>&6
1107 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1110 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1114 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1115 ac_cpp='$CPP $CPPFLAGS'
1116 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1117 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1118 cross_compiling=$ac_cv_prog_cc_cross
1120 cat > conftest.$ac_ext <<EOF
1121 #line 1122 "configure"
1122 #include "confdefs.h"
1125 if { (eval echo configure:1126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1126 ac_cv_prog_cc_works=yes
1127 # If we can't run a trivial program, we are probably using a cross compiler.
1128 if (./conftest; exit) 2>/dev/null; then
1129 ac_cv_prog_cc_cross=no
1131 ac_cv_prog_cc_cross=yes
1134 echo "configure: failed program was:" >&5
1135 cat conftest.$ac_ext >&5
1136 ac_cv_prog_cc_works=no
1140 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1141 if test $ac_cv_prog_cc_works = no; then
1142 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1144 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1146 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1147 cross_compiling=$ac_cv_prog_cc_cross
1149 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1150 echo "configure:1151: checking whether we are using GNU C" >&5
1151 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 cat > conftest.c <<EOF
1159 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1166 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1168 if test $ac_cv_prog_gcc = yes; then
1170 ac_test_CFLAGS="${CFLAGS+set}"
1171 ac_save_CFLAGS="$CFLAGS"
1173 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether ${CC-cc} accepts -g" >&5
1175 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 echo 'void f(){}' > conftest.c
1179 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1188 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1189 if test "$ac_test_CFLAGS" = set; then
1190 CFLAGS="$ac_save_CFLAGS"
1191 elif test $ac_cv_prog_cc_g = yes; then
1198 test "${CFLAGS+set}" = set || CFLAGS="-g"
1201 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether ${MAKE-make} sets \${MAKE}" >&5
1203 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1204 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 cat > conftestmake <<\EOF
1209 @echo 'ac_maketemp="${MAKE}"'
1211 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1212 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1213 if test -n "$ac_maketemp"; then
1214 eval ac_cv_prog_make_${ac_make}_set=yes
1216 eval ac_cv_prog_make_${ac_make}_set=no
1220 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1221 echo "$ac_t""yes" 1>&6
1224 echo "$ac_t""no" 1>&6
1225 SET_MAKE="MAKE=${MAKE-make}"
1229 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1230 echo "configure:1231: checking how to run the C preprocessor" >&5
1231 # On Suns, sometimes $CPP names a directory.
1232 if test -n "$CPP" && test -d "$CPP"; then
1235 if test -z "$CPP"; then
1236 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 # This must be in double quotes, not single quotes, because CPP may get
1240 # substituted into the Makefile and "${CC-cc}" will confuse make.
1242 # On the NeXT, cc -E runs the code through the compiler's parser,
1243 # not just through cpp.
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1251 { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1252 ac_err=`grep -v '^ *+' conftest.out`
1253 if test -z "$ac_err"; then
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1260 CPP="${CC-cc} -E -traditional-cpp"
1261 cat > conftest.$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1268 { (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1269 ac_err=`grep -v '^ *+' conftest.out`
1270 if test -z "$ac_err"; then
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1282 ac_cv_prog_CPP="$CPP"
1284 CPP="$ac_cv_prog_CPP"
1286 ac_cv_prog_CPP="$CPP"
1288 echo "$ac_t""$CPP" 1>&6
1290 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
1292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_hdr" >&5
1295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1304 { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1305 ac_err=`grep -v '^ *+' conftest.out`
1306 if test -z "$ac_err"; then
1308 eval "ac_cv_header_$ac_safe=yes"
1311 echo "configure: failed program was:" >&5
1312 cat conftest.$ac_ext >&5
1314 eval "ac_cv_header_$ac_safe=no"
1318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1319 echo "$ac_t""yes" 1>&6
1320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1321 cat >> confdefs.h <<EOF
1322 #define $ac_tr_hdr 1
1326 echo "$ac_t""no" 1>&6
1331 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether malloc must be declared" >&5
1333 if eval "test \"`echo '$''{'gcc_cv_decl_needed_malloc'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 cat > conftest.$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1341 #ifdef HAVE_STRING_H
1344 #ifdef HAVE_STRINGS_H
1345 #include <strings.h>
1348 #ifdef HAVE_STDLIB_H
1351 #ifdef HAVE_UNISTD_H
1355 char *(*pfn) = (char *(*)) malloc
1358 if { (eval echo configure:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 gcc_cv_decl_needed_malloc=no
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1365 gcc_cv_decl_needed_malloc=yes
1370 echo "$ac_t""$gcc_cv_decl_needed_malloc" 1>&6
1371 if test $gcc_cv_decl_needed_malloc = yes; then
1372 gcc_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1373 cat >> confdefs.h <<EOF
1374 #define $gcc_tr_decl 1
1379 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
1380 echo "configure:1381: checking whether realloc must be declared" >&5
1381 if eval "test \"`echo '$''{'gcc_cv_decl_needed_realloc'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1389 #ifdef HAVE_STRING_H
1392 #ifdef HAVE_STRINGS_H
1393 #include <strings.h>
1396 #ifdef HAVE_STDLIB_H
1399 #ifdef HAVE_UNISTD_H
1403 char *(*pfn) = (char *(*)) realloc
1406 if { (eval echo configure:1407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1408 gcc_cv_decl_needed_realloc=no
1410 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5
1413 gcc_cv_decl_needed_realloc=yes
1418 echo "$ac_t""$gcc_cv_decl_needed_realloc" 1>&6
1419 if test $gcc_cv_decl_needed_realloc = yes; then
1420 gcc_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1421 cat >> confdefs.h <<EOF
1422 #define $gcc_tr_decl 1
1427 echo $ac_n "checking whether calloc must be declared""... $ac_c" 1>&6
1428 echo "configure:1429: checking whether calloc must be declared" >&5
1429 if eval "test \"`echo '$''{'gcc_cv_decl_needed_calloc'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1437 #ifdef HAVE_STRING_H
1440 #ifdef HAVE_STRINGS_H
1441 #include <strings.h>
1444 #ifdef HAVE_STDLIB_H
1447 #ifdef HAVE_UNISTD_H
1451 char *(*pfn) = (char *(*)) calloc
1454 if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1456 gcc_cv_decl_needed_calloc=no
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1461 gcc_cv_decl_needed_calloc=yes
1466 echo "$ac_t""$gcc_cv_decl_needed_calloc" 1>&6
1467 if test $gcc_cv_decl_needed_calloc = yes; then
1468 gcc_tr_decl=NEED_DECLARATION_`echo calloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1469 cat >> confdefs.h <<EOF
1470 #define $gcc_tr_decl 1
1475 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
1476 echo "configure:1477: checking whether free must be declared" >&5
1477 if eval "test \"`echo '$''{'gcc_cv_decl_needed_free'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1485 #ifdef HAVE_STRING_H
1488 #ifdef HAVE_STRINGS_H
1489 #include <strings.h>
1492 #ifdef HAVE_STDLIB_H
1495 #ifdef HAVE_UNISTD_H
1499 char *(*pfn) = (char *(*)) free
1502 if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1504 gcc_cv_decl_needed_free=no
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1509 gcc_cv_decl_needed_free=yes
1514 echo "$ac_t""$gcc_cv_decl_needed_free" 1>&6
1515 if test $gcc_cv_decl_needed_free = yes; then
1516 gcc_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1517 cat >> confdefs.h <<EOF
1518 #define $gcc_tr_decl 1
1524 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
1525 echo "configure:1526: checking for sys_siglist declaration in signal.h or unistd.h" >&5
1526 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 #include <sys/types.h>
1534 /* NetBSD declares sys_siglist in unistd.h. */
1535 #ifdef HAVE_UNISTD_H
1539 char *msg = *(sys_siglist + 1);
1542 if { (eval echo configure:1543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1544 ac_cv_decl_sys_siglist=yes
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1549 ac_cv_decl_sys_siglist=no
1554 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
1555 if test $ac_cv_decl_sys_siglist = yes; then
1556 cat >> confdefs.h <<\EOF
1557 #define SYS_SIGLIST_DECLARED 1
1563 for ac_func in strerror
1565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1566 echo "configure:1567: checking for $ac_func" >&5
1567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 /* System header to define __stub macros and hopefully few prototypes,
1574 which can conflict with char $ac_func(); below. */
1576 /* Override any gcc2 internal prototype to avoid an error. */
1577 /* We use char because int might match the return type of a gcc2
1578 builtin and then its argument prototype would still apply. */
1583 /* The GNU C library defines this for functions which it implements
1584 to always fail with ENOSYS. Some functions are actually named
1585 something starting with __ and the normal name is an alias. */
1586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1594 if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1596 eval "ac_cv_func_$ac_func=yes"
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 eval "ac_cv_func_$ac_func=no"
1606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1609 cat >> confdefs.h <<EOF
1610 #define $ac_tr_func 1
1614 echo "$ac_t""no" 1>&6
1626 build_install_headers_dir=install-headers-tar
1630 host_truncate_target=
1632 # Decode the host machine, then the target machine.
1633 # For the host machine, we save the xm_file variable as host_xm_file;
1634 # then we decode the target machine and forget everything else
1635 # that came from the host machine.
1636 for machine in $build $host $target; do
1649 # Set this to force installation and use of collect2.
1651 # Set this to override the default target model.
1653 # Set this to control which fixincludes program to use.
1654 fixincludes=fixincludes
1655 # Set this to control how the header file directory is installed.
1656 install_headers_dir=install-headers-tar
1657 # Set this to a non-empty list of args to pass to cpp if the target
1658 # wants its .md file passed through cpp.
1660 # Set this if directory names should be truncated to 14 characters.
1662 # Set this if gdb needs a dir command with `dirname $out_file`
1663 gdb_needs_out_file_path=
1664 # Set this if the build machine requires executables to have a
1668 # Set default cpu_type, tm_file and xm_file so it can be updated in
1669 # each machine entry.
1670 cpu_type=`echo $machine | sed 's/-.*$//'`
1704 tm_file=${cpu_type}/${cpu_type}.h
1705 xm_file=${cpu_type}/xm-${cpu_type}.h
1708 # Support site-specific machine types.
1710 cpu_type=`echo $machine | sed -e 's/-.*//'`
1711 rest=`echo $machine | sed -e "s/$cpu_type-//"`
1712 xm_file=${cpu_type}/xm-$rest.h
1713 tm_file=${cpu_type}/$rest.h
1714 if [ -f $srcdir/config/${cpu_type}/x-$rest ] ; \
1715 then xmake_file=${cpu_type}/x-$rest; \
1718 if [ -f $srcdir/config/${cpu_type}/t-$rest ] ; \
1719 then tmake_file=${cpu_type}/t-$rest; \
1725 a29k-*-bsd* | a29k-*-sym1*)
1726 tm_file="${tm_file} a29k/unix.h"
1727 xm_file=a29k/xm-unix.h
1728 xmake_file=a29k/x-unix
1731 a29k-*-udi | a29k-*-coff)
1732 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
1733 tmake_file=a29k/t-a29kbare
1736 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
1737 tmake_file=a29k/t-vx29k
1738 extra_parts="crtbegin.o crtend.o"
1740 a29k-*-*) # Default a29k environment.
1743 alpha*-*-linux-gnuecoff*)
1744 tm_file="${tm_file} alpha/linux.h"
1745 xm_file="${xm_file} alpha/xm-linux.h"
1746 target_cpu_default="MASK_GAS"
1749 fixincludes=Makefile.in
1752 alpha*-*-linux-gnulibc1*)
1753 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
1754 xm_file="${xm_file} alpha/xm-linux.h"
1755 target_cpu_default="MASK_GAS"
1756 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
1758 fixincludes=Makefile.in
1760 if [ x$enable_threads = xyes ]; then
1764 alpha*-*-linux-gnu*)
1765 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
1766 xm_file="${xm_file} alpha/xm-linux.h"
1767 target_cpu_default="MASK_GAS"
1768 tmake_file="t-linux alpha/t-linux"
1770 fixincludes=Makefile.in
1772 if [ x$enable_threads = xyes ]; then
1776 alpha*-dec-osf[456789]*)
1777 if [ x$stabs = xyes ]
1779 tm_file="${tm_file} dbx.h"
1781 if [ x$gas != xyes ]
1783 extra_passes="mips-tfile mips-tdump"
1786 # Some versions of OSF4 (specifically X4.0-9 296.7) have
1787 # a broken tar, so we use cpio instead.
1790 install_headers_dir=install-headers-cpio
1794 alpha*-dec-osf[23]*)
1795 tm_file="${tm_file} alpha/osf2or3.h"
1796 if [ x$stabs = xyes ]
1798 tm_file="${tm_file} dbx.h"
1800 if [ x$gas != xyes ]
1802 extra_passes="mips-tfile mips-tdump"
1807 tm_file="${tm_file} alpha/osf12.h"
1808 if [ x$stabs = xyes ]
1810 tm_file="${tm_file} dbx.h"
1812 if [ x$gas != xyes ]
1814 extra_passes="mips-tfile mips-tdump"
1819 if [ x$stabs = xyes ]
1821 tm_file="${tm_file} dbx.h"
1823 if [ x$gas != xyes ]
1825 extra_passes="mips-tfile mips-tdump"
1830 tm_file="${tm_file} alpha/win-nt.h"
1831 target_cpu_default=MASK_WINDOWS_NT
1832 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
1833 tmake_file=t-libc-ok
1834 xmake_file=winnt/x-winnt
1835 extra_host_objs=oldnames.o
1836 extra_gcc_objs="spawnv.o oldnames.o"
1837 fixincludes=fixinc.winnt
1838 if [ x$gnu_ld != xyes ]
1840 extra_programs=ld.exe
1842 if [ x$enable_threads = xyes ]; then
1848 xm_file="${xm_file} alpha/xm-vms.h"
1849 tmake_file=alpha/t-vms
1850 fixincludes=Makefile.in
1852 arm-*-coff* | armel-*-coff*)
1854 tmake_file=arm/t-bare
1856 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
1857 tm_file=arm/riscix1-1.h
1860 arm-*-riscix*) # Acorn RISC machine
1863 tm_file=arm/rix-gas.h
1865 tm_file=arm/riscix.h
1867 xmake_file=arm/x-riscix
1868 tmake_file=arm/t-riscix
1871 arm-semi-aout | armel-semi-aout)
1873 tmake_file=arm/t-semi
1874 fixincludes=Makefile.in # There is nothing to fix
1876 arm-semi-aof | armel-semi-aof)
1877 tm_file=arm/semiaof.h
1878 tmake_file=arm/t-semiaof
1879 fixincludes=Makefile.in # There is nothing to fix
1882 tm_file=arm/netbsd.h
1883 xm_file=arm/xm-netbsd.h
1884 tmake_file=arm/t-netbsd
1885 # On NetBSD, the headers are already okay.
1886 fixincludes=Makefile.in
1889 arm-*-linux-gnuaout*) # ARM Linux
1891 xm_file=arm/xm-linux.h
1893 tm_file=arm/linux-gas.h
1894 tmake_file=arm/t-linux
1895 fixincludes=Makefile.in
1901 c1-convex-*) # Convex C1
1902 target_cpu_default=1
1904 fixincludes=Makefile.in
1906 c2-convex-*) # Convex C2
1907 target_cpu_default=2
1909 fixincludes=Makefile.in
1912 target_cpu_default=4
1914 fixincludes=Makefile.in
1917 target_cpu_default=8
1919 fixincludes=Makefile.in
1922 target_cpu_default=16
1924 fixincludes=Makefile.in
1926 clipper-intergraph-clix*)
1927 tm_file="${tm_file} svr3.h clipper/clix.h"
1928 xm_file=clipper/xm-clix.h
1929 xmake_file=clipper/x-clix
1930 extra_headers=va-clipper.h
1931 extra_parts="crtbegin.o crtend.o"
1932 install_headers_dir=install-headers-cpio
1939 # This hasn't been upgraded to GCC 2.
1940 # fx80-alliant-*) # Alliant FX/80
1946 if [ x$enable_haifa != xno ]; then
1949 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
1950 xm_file=pa/xm-papro.h
1954 if [ x$enable_haifa != xno ]; then
1957 target_cpu_default=1
1958 tm_file="${tm_file} pa/pa-osf.h"
1960 fixincludes=Makefile.in
1963 if [ x$enable_haifa != xno ]; then
1966 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
1967 xm_file=pa/xm-papro.h
1971 if [ x$enable_haifa != xno ]; then
1974 tm_file="${tm_file} pa/pa-osf.h"
1976 fixincludes=Makefile.in
1979 if [ x$enable_haifa != xno ]; then
1982 target_cpu_default=1
1984 fixincludes=Makefile.in
1987 if [ x$enable_haifa != xno ]; then
1991 fixincludes=Makefile.in
1994 if [ x$enable_haifa != xno ]; then
1997 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
1998 xm_file=pa/xm-pahpux.h
1999 xmake_file=pa/x-pa-hpux
2002 tm_file="${tm_file} pa/gas.h"
2004 install_headers_dir=install-headers-cpio
2007 hppa1.0-*-hpux8.0[0-2]*)
2008 if [ x$enable_haifa != xno ]; then
2011 tm_file="${tm_file} pa/pa-hpux.h"
2012 xm_file=pa/xm-pahpux.h
2013 xmake_file=pa/x-pa-hpux
2016 tm_file="${tm_file} pa/pa-gas.h"
2018 tm_file="pa/pa-oldas.h ${tm_file}"
2020 install_headers_dir=install-headers-cpio
2023 hppa1.1-*-hpux8.0[0-2]*)
2024 if [ x$enable_haifa != xno ]; then
2027 target_cpu_default=1
2028 tm_file="${tm_file} pa/pa-hpux.h"
2029 xm_file=pa/xm-pahpux.h
2030 xmake_file=pa/x-pa-hpux
2033 tm_file="${tm_file} pa/pa-gas.h"
2035 tm_file="pa/pa-oldas.h ${tm_file}"
2037 install_headers_dir=install-headers-cpio
2041 if [ x$enable_haifa != xno ]; then
2044 target_cpu_default=1
2045 tm_file="${tm_file} pa/pa-hpux.h"
2046 xm_file=pa/xm-pahpux.h
2047 xmake_file=pa/x-pa-hpux
2050 tm_file="${tm_file} pa/pa-gas.h"
2052 install_headers_dir=install-headers-cpio
2056 if [ x$enable_haifa != xno ]; then
2059 tm_file="${tm_file} pa/pa-hpux.h"
2060 xm_file=pa/xm-pahpux.h
2061 xmake_file=pa/x-pa-hpux
2064 tm_file="${tm_file} pa/pa-gas.h"
2066 install_headers_dir=install-headers-cpio
2070 if [ x$enable_haifa != xno ]; then
2073 target_cpu_default=1
2074 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2075 xm_file=pa/xm-pahpux.h
2076 xmake_file=pa/x-pa-hpux
2079 tm_file="${tm_file} pa/pa-gas.h"
2081 install_headers_dir=install-headers-cpio
2085 if [ x$enable_haifa != xno ]; then
2088 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
2089 xm_file=pa/xm-pahpux.h
2090 xmake_file=pa/x-pa-hpux
2093 tm_file="${tm_file} pa/pa-gas.h"
2095 install_headers_dir=install-headers-cpio
2099 if [ x$enable_haifa != xno ]; then
2102 target_cpu_default=1
2103 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2104 xm_file=pa/xm-pahpux.h
2105 xmake_file=pa/x-pa-hpux
2108 tm_file="${tm_file} pa/pa-gas.h"
2110 install_headers_dir=install-headers-cpio
2114 if [ x$enable_haifa != xno ]; then
2117 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
2118 xm_file=pa/xm-pahpux.h
2119 xmake_file=pa/x-pa-hpux
2122 tm_file="${tm_file} pa/pa-gas.h"
2124 install_headers_dir=install-headers-cpio
2128 if [ x$enable_haifa != xno ]; then
2131 target_cpu_default=1
2132 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2133 xm_file=pa/xm-pahpux.h
2134 xmake_file=pa/x-pa-hpux
2137 tm_file="${tm_file} pa/pa-gas.h"
2139 install_headers_dir=install-headers-cpio
2143 if [ x$enable_haifa != xno ]; then
2146 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
2147 xm_file=pa/xm-pahpux.h
2148 xmake_file=pa/x-pa-hpux
2151 tm_file="${tm_file} pa/pa-gas.h"
2153 install_headers_dir=install-headers-cpio
2157 if [ x$enable_haifa != xno ]; then
2160 target_cpu_default=1
2162 fixincludes=Makefile.in
2166 i[3456]86-ibm-aix*) # IBM PS/2 running AIX
2169 tm_file=i386/aix386.h
2170 extra_parts="crtbegin.o crtend.o"
2171 tmake_file=i386/t-crtstuff
2173 tm_file=i386/aix386ng.h
2176 xm_file=i386/xm-aix.h
2177 xmake_file=i386/x-aix
2179 i486-ncr-sysv4*) # NCR 3000 - i486 running system V.4
2180 xm_file=i386/xm-sysv4.h
2181 xmake_file=i386/x-ncr3000
2182 if [ x$stabs = xyes -a x$gas = xyes ]
2184 tm_file=i386/sysv4gdb.h
2186 tm_file=i386/sysv4.h
2188 extra_parts="crtbegin.o crtend.o"
2189 tmake_file=i386/t-crtpic
2193 xm_file=i386/xm-next.h
2194 tmake_file=i386/t-next
2195 xmake_file=i386/x-next
2196 extra_objs=nextstep.o
2197 if [ x$enable_threads = xyes ]; then
2201 i[3456]86-sequent-bsd*) # 80386 from Sequent
2205 tm_file=i386/seq-gas.h
2207 tm_file=i386/sequent.h
2210 i[3456]86-sequent-ptx1*)
2211 xm_file=i386/xm-sysv3.h
2212 xmake_file=i386/x-sysv3
2213 tm_file=i386/seq-sysv3.h
2214 tmake_file=i386/t-crtstuff
2215 fixincludes=fixinc.ptx
2216 extra_parts="crtbegin.o crtend.o"
2217 install_headers_dir=install-headers-cpio
2219 i[3456]86-sequent-ptx2* | i[3456]86-sequent-sysv3*)
2220 xm_file=i386/xm-sysv3.h
2221 xmake_file=i386/x-sysv3
2222 tm_file=i386/seq2-sysv3.h
2223 tmake_file=i386/t-crtstuff
2224 extra_parts="crtbegin.o crtend.o"
2225 fixincludes=fixinc.ptx
2226 install_headers_dir=install-headers-cpio
2228 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4*)
2229 xm_file=i386/xm-sysv4.h
2231 tm_file=i386/ptx4-i.h
2233 extra_parts="crtbegin.o crtend.o"
2234 fixincludes=fixinc.ptx
2235 install_headers_dir=install-headers-cpio
2237 i386-sun-sunos*) # Sun i386 roadrunner
2238 xm_file=i386/xm-sun.h
2243 tm_file=i386/i386-aout.h
2244 tmake_file=i386/t-i386bare
2246 i[3456]86-*-bsdi* | i[345]86-*-bsd386*)
2247 tm_file=i386/bsd386.h
2248 xm_file=i386/xm-bsd386.h
2249 # tmake_file=t-libc-ok
2252 tm_file=i386/386bsd.h
2253 xm_file=i386/xm-bsd386.h
2254 # tmake_file=t-libc-ok
2255 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
2258 i[3456]86-*-freebsdelf*)
2259 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
2260 xm_file=i386/xm-freebsd.h
2261 # On FreeBSD, the headers are already ok.
2262 fixincludes=Makefile.in
2263 tmake_file=i386/t-freebsd
2268 i[3456]86-*-freebsd*)
2269 tm_file=i386/freebsd.h
2270 xm_file=i386/xm-freebsd.h
2271 # On FreeBSD, the headers are already ok.
2272 fixincludes=Makefile.in
2273 tmake_file=i386/t-freebsd
2275 i[3456]86-*-netbsd*)
2276 tm_file=i386/netbsd.h
2277 xm_file=i386/xm-netbsd.h
2278 # On NetBSD, the headers are already okay.
2279 fixincludes=Makefile.in
2283 tm_file=i386/i386-coff.h
2284 tmake_file=i386/t-i386bare
2286 i[3456]86-*-isc*) # 80386 running ISC system
2287 xm_file=i386/xm-isc.h
2289 i[345]86-*-isc[34]*)
2290 xmake_file=i386/x-isc3
2293 xmake_file=i386/x-isc
2296 if [ x$gas = xyes -a x$stabs = xyes ]
2298 tm_file=i386/iscdbx.h
2299 tmake_file=i386/t-svr3dbx
2300 extra_parts="svr3.ifile svr3z.ifile"
2302 tm_file=i386/isccoff.h
2303 tmake_file=i386/t-crtstuff
2304 extra_parts="crtbegin.o crtend.o"
2306 install_headers_dir=install-headers-cpio
2308 i[3456]86-*-linux-gnuoldld*) # Intel 80386's running Linux
2309 xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
2310 xmake_file=x-linux-aout
2311 tmake_file="t-linux-aout i386/t-crtstuff"
2312 tm_file=i386/linux-oldld.h
2313 fixincludes=Makefile.in #On Linux, the headers are ok already.
2316 i[3456]86-*-linux-gnuaout*) # Intel 80386's running Linux
2317 xm_file=i386/xm-linux.h # with a.out format
2318 xmake_file=x-linux-aout
2319 tmake_file="t-linux-aout i386/t-crtstuff"
2320 tm_file=i386/linux-aout.h
2321 fixincludes=Makefile.in #On Linux, the headers are ok already.
2324 i[3456]86-*-linux-gnulibc1)
2325 xm_file=i386/xm-linux.h # Intel 80386's running Linux
2326 xmake_file=x-linux # with ELF format using the
2327 tm_file=i386/linux.h # Linux C library 5
2328 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
2329 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2330 fixincludes=Makefile.in #On Linux, the headers are ok already.
2332 if [ x$enable_threads = xyes ]; then
2333 thread_file='single'
2336 i[3456]86-*-linux-gnu*) # Intel 80386's running Linux
2337 xm_file=i386/xm-linux.h # with ELF format using glibc 2
2338 xmake_file=x-linux # aka Linux C library 6
2339 tm_file=i386/linux.h
2340 tmake_file="t-linux i386/t-crtstuff"
2341 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2342 fixincludes=Makefile.in #On Linux, the headers are ok already.
2344 if [ x$enable_threads = xyes ]; then
2350 i[3456]86-go32-msdos | i[3456]86-*-go32*)
2351 xm_file=i386/xm-go32.h
2353 tmake_file=i386/t-go32
2355 i[3456]86-moss-msdos* | i[3456]86-*-moss*)
2357 tmake_file=t-libc-ok
2358 fixincludes=Makefile.in
2362 i[3456]86-*-lynxos*)
2367 tm_file=i386/lynx-ng.h
2369 xm_file=i386/xm-lynx.h
2370 tmake_file=i386/t-i386bare
2375 # tmake_file=t-libc-ok
2378 i[3456]86-*-osfrose*) # 386 using OSF/rose
2381 tm_file=i386/osfelf.h
2384 tm_file=i386/osfrose.h
2387 xm_file=i386/xm-osf.h
2388 xmake_file=i386/x-osfrose
2389 tmake_file=i386/t-osf
2390 extra_objs=halfpic.o
2392 i[345]86-go32-rtems*)
2394 xm_file=i386/xm-go32.h
2395 tm_file=i386/go32-rtems.h
2396 tmake_file="i386/t-go32 t-rtems"
2400 tm_file=i386/rtems.h
2401 tmake_file="i386/t-i386bare t-rtems"
2403 i[3456]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
2404 xm_file=i386/xm-sco5.h
2405 xmake_file=i386/x-sco5
2406 fixincludes=fixinc.sco
2408 tmake_file=i386/t-sco5
2409 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2411 i[3456]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
2412 xm_file=i386/xm-sco.h
2413 xmake_file=i386/x-sco4
2414 fixincludes=fixinc.sco
2415 install_headers_dir=install-headers-cpio
2416 if [ x$stabs = xyes ]
2418 tm_file=i386/sco4dbx.h
2419 tmake_file=i386/t-svr3dbx
2420 extra_parts="svr3.ifile svr3z.rfile"
2423 tmake_file=i386/t-crtstuff
2424 extra_parts="crtbegin.o crtend.o"
2428 i[3456]86-*-sco*) # 80386 running SCO system
2429 xm_file=i386/xm-sco.h
2430 xmake_file=i386/x-sco
2431 install_headers_dir=install-headers-cpio
2432 if [ x$stabs = xyes ]
2434 tm_file=i386/scodbx.h
2435 tmake_file=i386/t-svr3dbx
2436 extra_parts="svr3.ifile svr3z.rfile"
2439 extra_parts="crtbegin.o crtend.o"
2440 tmake_file=i386/t-crtstuff
2444 i[3456]86-*-solaris2*)
2445 xm_file=i386/xm-sysv4.h
2446 if [ x$stabs = xyes ]
2448 tm_file=i386/sol2dbg.h
2452 tmake_file=i386/t-sol2
2453 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
2455 fixincludes=fixinc.svr4
2456 if [ x$enable_threads = xyes ]; then
2457 thread_file='solaris'
2460 i[3456]86-*-sysv4*) # Intel 80386's running system V.4
2461 xm_file=i386/xm-sysv4.h
2462 tm_file=i386/sysv4.h
2463 if [ x$stabs = xyes ]
2465 tm_file="${tm_file} dbx.h"
2467 tmake_file=i386/t-crtpic
2469 extra_parts="crtbegin.o crtend.o"
2471 i[3456]86-*-sysv*) # Intel 80386's running system V
2472 xm_file=i386/xm-sysv3.h
2473 xmake_file=i386/x-sysv3
2476 if [ x$stabs = xyes ]
2478 tm_file=i386/svr3dbx.h
2479 tmake_file=i386/t-svr3dbx
2480 extra_parts="svr3.ifile svr3z.rfile"
2482 tm_file=i386/svr3gas.h
2483 extra_parts="crtbegin.o crtend.o"
2484 tmake_file=i386/t-crtstuff
2487 tm_file=i386/sysv3.h
2488 extra_parts="crtbegin.o crtend.o"
2489 tmake_file=i386/t-crtstuff
2492 i386-*-vsta) # Intel 80386's running VSTa kernel
2493 xm_file=i386/xm-vsta.h
2495 tmake_file=i386/t-vsta
2496 xmake_file=i386/x-vsta
2498 i[3456]86-*-pe | i[3456]86-*-cygwin32)
2499 xm_file="${xm_file} i386/xm-cygwin32.h"
2500 tmake_file=i386/t-cygwin32
2501 tm_file=i386/cygwin32.h
2502 xmake_file=i386/x-cygwin32
2504 fixincludes=Makefile.in
2505 if [ x$enable_threads = xyes ]; then
2510 i[3456]86-*-mingw32)
2511 tm_file=i386/mingw32.h
2512 xm_file="${xm_file} i386/xm-mingw32.h"
2513 tmake_file=i386/t-cygwin32
2515 xmake_file=i386/x-cygwin32
2516 fixincludes=Makefile.in
2517 if [ x$enable_threads = xyes ]; then
2522 i[3456]86-*-winnt3*)
2523 tm_file=i386/win-nt.h
2524 out_file=i386/i386.c
2525 xm_file=i386/xm-winnt.h
2526 xmake_file=winnt/x-winnt
2527 tmake_file=i386/t-winnt
2528 extra_host_objs="winnt.o oldnames.o"
2529 extra_gcc_objs="spawnv.o oldnames.o"
2530 fixincludes=fixinc.winnt
2531 if [ x$gnu_ld != xyes ]
2533 extra_programs=ld.exe
2535 if [ x$enable_threads = xyes ]; then
2540 xm_file=i386/xm-dgux.h
2541 out_file=i386/dgux.c
2543 tmake_file=i386/t-dgux
2544 xmake_file=i386/x-dgux
2545 fixincludes=fixinc.dgux
2546 install_headers_dir=install-headers-cpio
2548 i860-alliant-*) # Alliant FX/2800
2549 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
2550 xm_file="${xm_file} i860/xm-fx2800.h"
2551 xmake_file=i860/x-fx2800
2552 tmake_file=i860/t-fx2800
2553 extra_parts="crtbegin.o crtend.o"
2556 tm_file="${tm_file} i860/bsd.h"
2559 tm_file="${tm_file} i860/bsd-gas.h"
2564 tm_file="${tm_file} i860/mach.h"
2565 tmake_file=t-libc-ok
2567 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
2568 tm_file="${tm_file} svr3.h i860/paragon.h"
2569 xm_file="${xm_file} xm-svr3.h"
2573 tm_file="${tm_file} svr3.h i860/sysv3.h"
2574 xm_file="${tm_file} xm-svr3.h"
2575 xmake_file=i860/x-sysv3
2576 extra_parts="crtbegin.o crtend.o"
2579 tm_file="${tm_file} svr4.h i860/sysv4.h"
2580 xm_file="${xm_file} xm-svr3.h"
2581 xmake_file=i860/x-sysv4
2583 extra_parts="crtbegin.o crtend.o"
2585 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2586 tm_file="${tm_file} i960/vx960.h"
2587 tmake_file=i960/t-vxworks960
2591 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2592 tmake_file=i960/t-vxworks960
2596 tm_file="${tm_file} i960/vx960.h"
2597 tmake_file=i960/t-vxworks960
2601 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2602 tmake_file=i960/t-960bare
2606 tmake_file="i960/t-960bare t-rtems"
2607 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2610 i960-*-*) # Default i960 environment.
2614 extra_parts="crtinit.o crtfini.o"
2616 m68000-convergent-sysv*)
2618 xm_file=m68k/xm-3b1.h
2620 extra_headers=math-68881.h
2622 m68000-hp-bsd*) # HP 9000/200 running BSD
2623 tm_file=m68k/hp2bsd.h
2624 xmake_file=m68k/x-hp2bsd
2626 extra_headers=math-68881.h
2628 m68000-hp-hpux*) # HP 9000 series 300
2629 xm_file=m68k/xm-hp320.h
2632 xmake_file=m68k/x-hp320g
2633 tm_file=m68k/hp310g.h
2635 xmake_file=m68k/x-hp320
2636 tm_file=m68k/hp310.h
2638 install_headers_dir=install-headers-cpio
2640 extra_headers=math-68881.h
2645 extra_headers=math-68881.h
2648 tm_file=m68k/sun2o4.h
2650 extra_headers=math-68881.h
2653 xm_file=m68k/xm-3b1.h
2661 extra_headers=math-68881.h
2663 m68k-apple-aux*) # Apple Macintosh running A/UX
2664 xm_file=m68k/xm-aux.h
2665 tmake_file=m68k/t-aux
2666 install_headers_dir=install-headers-cpio
2667 extra_headers=math-68881.h
2668 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2670 if [ "$gnu_ld" = yes ]
2672 tm_file="${tm_file} m68k/auxgld.h"
2674 tm_file="${tm_file} m68k/auxld.h"
2678 tm_file="${tm_file} m68k/auxgas.h"
2680 tm_file="${tm_file} m68k/auxas.h"
2682 tm_file="${tm_file} m68k/a-ux.h"
2685 tm_file=m68k/apollo68.h
2686 xmake_file=m68k/x-apollo68
2688 extra_headers=math-68881.h
2690 m68k-altos-sysv*) # Altos 3068
2693 tm_file=m68k/altos3068.h
2694 xm_file=m68k/xm-altos3068.h
2696 echo "The Altos is supported only with the GNU assembler" 1>&2
2699 extra_headers=math-68881.h
2701 m68k-bull-sysv*) # Bull DPX/2
2704 if [ x$stabs = xyes ]
2706 tm_file=m68k/dpx2cdbx.h
2708 tm_file=m68k/dpx2g.h
2713 xm_file=m68k/xm-m68kv.h
2714 xmake_file=m68k/x-dpx2
2716 extra_headers=math-68881.h
2718 m68k-atari-sysv4*) # Atari variant of V.4.
2719 tm_file=m68k/atari.h
2720 xm_file=m68k/xm-atari.h
2722 extra_parts="crtbegin.o crtend.o"
2723 extra_headers=math-68881.h
2725 m68k-motorola-sysv*)
2726 tm_file=m68k/mot3300.h
2727 xm_file=m68k/xm-mot3300.h
2730 xmake_file=m68k/x-mot3300-gas
2731 if [ x$gnu_ld = xyes ]
2733 tmake_file=m68k/t-mot3300-gald
2735 tmake_file=m68k/t-mot3300-gas
2739 xmake_file=m68k/x-mot3300
2740 if [ x$gnu_ld = xyes ]
2742 tmake_file=m68k/t-mot3300-gld
2744 tmake_file=m68k/t-mot3300
2748 gdb_needs_out_file_path=yes
2749 extra_parts="crt0.o mcrt0.o"
2750 extra_headers=math-68881.h
2752 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2753 tm_file=m68k/tower-as.h
2754 xm_file=m68k/xm-tower.h
2755 xmake_file=m68k/x-tower
2756 extra_parts="crtbegin.o crtend.o"
2757 extra_headers=math-68881.h
2760 tm_file=m68k/plexus.h
2761 xm_file=m68k/xm-plexus.h
2763 extra_headers=math-68881.h
2767 xm_file=m68k/xm-m68kv.h
2768 extra_headers=math-68881.h
2771 xm_file=m68k/xm-crds.h
2772 xmake_file=m68k/x-crds
2775 extra_headers=math-68881.h
2777 m68k-cbm-sysv4*) # Commodore variant of V.4.
2779 xm_file=m68k/xm-amix.h
2780 xmake_file=m68k/x-amix
2782 extra_parts="crtbegin.o crtend.o"
2783 extra_headers=math-68881.h
2786 tm_file=m68k/ccur-GAS.h
2787 xmake_file=m68k/x-ccur
2788 extra_headers=math-68881.h
2791 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2792 tm_file=m68k/hp3bsd44.h
2793 xmake_file=m68k/x-hp3bsd44
2795 extra_headers=math-68881.h
2797 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2798 tm_file=m68k/hp3bsd.h
2800 extra_headers=math-68881.h
2803 if [ x$with_fp = xno ]
2805 tm_file=m68k/isi-nfp.h
2810 extra_headers=math-68881.h
2812 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2813 xm_file=m68k/xm-hp320.h
2816 xmake_file=m68k/x-hp320g
2817 tm_file=m68k/hp320g.h
2819 xmake_file=m68k/x-hp320
2820 tm_file=m68k/hpux7.h
2822 install_headers_dir=install-headers-cpio
2824 extra_headers=math-68881.h
2826 m68k-hp-hpux*) # HP 9000 series 300
2827 xm_file=m68k/xm-hp320.h
2830 xmake_file=m68k/x-hp320g
2831 tm_file=m68k/hp320g.h
2833 xmake_file=m68k/x-hp320
2834 tm_file=m68k/hp320.h
2836 install_headers_dir=install-headers-cpio
2838 extra_headers=math-68881.h
2841 tm_file=m68k/sun3mach.h
2843 extra_headers=math-68881.h
2848 tm_file=m68k/news3gas.h
2850 tm_file=m68k/news3.h
2853 extra_headers=math-68881.h
2855 m68k-sony-bsd* | m68k-sony-newsos*)
2858 tm_file=m68k/newsgas.h
2863 extra_headers=math-68881.h
2865 m68k-next-nextstep2*)
2866 tm_file=m68k/next21.h
2867 xm_file=m68k/xm-next.h
2868 tmake_file=m68k/t-next
2869 xmake_file=m68k/x-next
2870 extra_objs=nextstep.o
2871 extra_headers=math-68881.h
2874 m68k-next-nextstep3*)
2876 xm_file=m68k/xm-next.h
2877 tmake_file=m68k/t-next
2878 xmake_file=m68k/x-next
2879 extra_objs=nextstep.o
2880 extra_headers=math-68881.h
2881 if [ x$enable_threads = xyes ]; then
2886 if [ x$with_fp = xno ]
2888 tm_file=m68k/sun3n3.h
2890 tm_file=m68k/sun3o3.h
2893 extra_headers=math-68881.h
2895 m68k-sun-sunos*) # For SunOS 4 (the default).
2896 if [ x$with_fp = xno ]
2898 tm_file=m68k/sun3n.h
2902 xm_file=m68k/xm-sun3.h
2904 extra_headers=math-68881.h
2907 tm_file=m68k/vxm68k.h
2908 tmake_file=m68k/t-vxworks68
2909 extra_headers=math-68881.h
2912 tmake_file=m68k/t-m68kbare
2913 tm_file="m68k/m68k-aout.h libgloss.h"
2914 extra_headers=math-68881.h
2917 tmake_file=m68k/t-m68kbare
2918 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2919 extra_headers=math-68881.h
2926 tm_file=m68k/lynx-ng.h
2928 xm_file=m68k/xm-lynx.h
2930 tmake_file=m68k/t-lynx
2931 extra_headers=math-68881.h
2934 tm_file=m68k/netbsd.h
2935 xm_file=m68k/xm-netbsd.h
2936 # On NetBSD, the headers are already okay.
2937 fixincludes=Makefile.in
2940 m68k-*-sysv3*) # Motorola m68k's running system V.3
2941 xm_file=m68k/xm-m68kv.h
2942 xmake_file=m68k/x-m68kv
2943 extra_parts="crtbegin.o crtend.o"
2944 extra_headers=math-68881.h
2946 m68k-*-sysv4*) # Motorola m68k's running system V.4
2947 tm_file=m68k/m68kv4.h
2948 xm_file=m68k/xm-m68kv.h
2950 extra_parts="crtbegin.o crtend.o"
2951 extra_headers=math-68881.h
2953 m68k-*-linux-gnuaout*) # Motorola m68k's running Linux
2954 xm_file=m68k/xm-linux.h # with a.out format
2956 tm_file=m68k/linux-aout.h
2957 tmake_file="t-linux-aout m68k/t-linux-aout"
2958 fixincludes=Makefile.in #On Linux, the headers are ok already.
2959 extra_headers=math-68881.h
2962 m68k-*-linux-gnulibc1) # Motorola m68k's running Linux
2963 xm_file=m68k/xm-linux.h # with ELF format using the
2964 xmake_file=x-linux # Linux C library 5
2965 tm_file=m68k/linux.h
2966 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2967 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2968 fixincludes=Makefile.in #On Linux, the headers are ok already.
2969 extra_headers=math-68881.h
2972 m68k-*-linux-gnu*) # Motorola m68k's running Linux
2973 xm_file=m68k/xm-linux.h # with ELF format using glibc 2
2974 xmake_file=x-linux # aka the Linux C library 6.
2975 tm_file=m68k/linux.h
2976 tmake_file="t-linux m68k/t-linux"
2977 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2978 fixincludes=Makefile.in #On Linux, the headers are ok already.
2979 extra_headers=math-68881.h
2981 if [ x$enable_threads = xyes ]; then
2986 tmake_file=m68k/t-m68kbare
2987 tm_file=m68k/m68k-psos.h
2988 extra_headers=math-68881.h
2991 tmake_file="m68k/t-m68kbare t-rtems"
2992 tm_file=m68k/rtems.h
2993 extra_headers=math-68881.h
2999 tm_file=m88k/dguxbcs.h
3000 tmake_file=m88k/t-dguxbcs
3004 tmake_file=m88k/t-dgux
3007 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
3008 xmake_file=m88k/x-dgux
3011 tmake_file=m88k/t-dgux-gas
3013 fixincludes=fixinc.dgux
3015 m88k-dolphin-sysv3*)
3016 tm_file=m88k/dolph.h
3017 extra_parts="crtbegin.o crtend.o"
3018 xm_file=m88k/xm-sysv3.h
3019 xmake_file=m88k/x-dolph
3022 tmake_file=m88k/t-m88k-gas
3025 m88k-tektronix-sysv3)
3026 tm_file=m88k/tekXD88.h
3027 extra_parts="crtbegin.o crtend.o"
3028 xm_file=m88k/xm-sysv3.h
3029 xmake_file=m88k/x-tekXD88
3032 tmake_file=m88k/t-m88k-gas
3036 tm_file=m88k/m88k-aout.h
3039 tm_file=m88k/m88k-coff.h
3040 tmake_file=m88k/t-bug
3044 extra_parts="crtbegin.o crtend.o"
3047 tmake_file=m88k/t-luna-gas
3049 tmake_file=m88k/t-luna
3053 tm_file=m88k/sysv3.h
3054 extra_parts="crtbegin.o crtend.o"
3055 xm_file=m88k/xm-sysv3.h
3056 xmake_file=m88k/x-sysv3
3059 tmake_file=m88k/t-m88k-gas
3063 tm_file=m88k/sysv4.h
3064 extra_parts="crtbegin.o crtend.o"
3065 xmake_file=m88k/x-sysv4
3066 tmake_file=m88k/t-sysv4
3068 mips-sgi-irix6*) # SGI System V.4., IRIX 6
3069 tm_file=mips/iris6.h
3070 xm_file=mips/xm-iris6.h
3071 fixincludes=fixinc.irix
3072 xmake_file=mips/x-iris6
3073 tmake_file=mips/t-iris6
3074 if [ x$enable_threads = xyes ]; then
3078 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
3079 tm_file=mips/cross64.h
3080 xm_file=mips/xm-iris5.h
3081 fixincludes=Makefile.in
3082 xmake_file=mips/x-iris
3083 tmake_file=mips/t-cross64
3084 # See comment in mips/iris[56].h files.
3086 if [ x$enable_threads = xyes ]; then
3093 if [ x$stabs = xyes ]
3095 tm_file=mips/iris5gdb.h
3097 tm_file=mips/sni-gas.h
3100 tm_file=mips/sni-svr4.h
3102 xm_file=mips/xm-sysv.h
3103 xmake_file=mips/x-sni-svr4
3104 tmake_file=mips/t-mips-gas
3105 if [ x$gnu_ld != xyes ]
3110 mips-sgi-irix5*) # SGI System V.4., IRIX 5
3113 tm_file=mips/iris5gas.h
3114 if [ x$stabs = xyes ]
3116 tm_file="${tm_file} dbx.h"
3119 tm_file=mips/iris5.h
3121 xm_file=mips/xm-iris5.h
3122 fixincludes=fixinc.irix
3123 xmake_file=mips/x-iris
3124 # mips-tfile doesn't work yet
3125 tmake_file=mips/t-mips-gas
3126 # See comment in mips/iris5.h file.
3128 if [ x$enable_threads = xyes ]; then
3132 mips-sgi-irix4loser*) # Mostly like a MIPS.
3133 tm_file=mips/iris4loser.h
3134 if [ x$stabs = xyes ]; then
3135 tm_file="${tm_file} dbx.h"
3137 xm_file=mips/xm-iris4.h
3138 xmake_file=mips/x-iris
3141 tmake_file=mips/t-mips-gas
3143 extra_passes="mips-tfile mips-tdump"
3145 if [ x$gnu_ld != xyes ]
3149 if [ x$enable_threads = xyes ]; then
3153 mips-sgi-irix4*) # Mostly like a MIPS.
3154 tm_file=mips/iris4.h
3155 if [ x$stabs = xyes ]; then
3156 tm_file="${tm_file} dbx.h"
3158 xm_file=mips/xm-iris4.h
3159 xmake_file=mips/x-iris
3162 tmake_file=mips/t-mips-gas
3164 extra_passes="mips-tfile mips-tdump"
3166 if [ x$gnu_ld != xyes ]
3170 if [ x$enable_threads = xyes ]; then
3174 mips-sgi-*) # Mostly like a MIPS.
3175 tm_file=mips/iris3.h
3176 if [ x$stabs = xyes ]; then
3177 tm_file="${tm_file} dbx.h"
3179 xm_file=mips/xm-iris3.h
3180 xmake_file=mips/x-iris3
3183 tmake_file=mips/t-mips-gas
3185 extra_passes="mips-tfile mips-tdump"
3187 if [ x$gnu_ld != xyes ]
3192 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
3193 tm_file=mips/osfrose.h
3194 xmake_file=mips/x-osfrose
3195 tmake_file=mips/t-osfrose
3196 extra_objs=halfpic.o
3199 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
3200 tm_file=mips/dec-osf1.h
3201 if [ x$stabs = xyes ]; then
3202 tm_file="${tm_file} dbx.h"
3204 xmake_file=mips/x-dec-osf1
3207 tmake_file=mips/t-mips-gas
3209 tmake_file=mips/t-ultrix
3210 extra_passes="mips-tfile mips-tdump"
3212 if [ x$gnu_ld != xyes ]
3217 mips-dec-bsd*) # Decstation running 4.4 BSD
3218 tm_file=mips/dec-bsd.h
3222 tmake_file=mips/t-mips-gas
3224 tmake_file=mips/t-ultrix
3225 extra_passes="mips-tfile mips-tdump"
3227 if [ x$gnu_ld != xyes ]
3232 mips-dec-netbsd*) # Decstation running NetBSD
3233 tm_file=mips/netbsd.h
3234 xm_file=mips/xm-netbsd.h
3235 # On NetBSD, the headers are already okay.
3236 fixincludes=Makefile.in
3238 if [ x$prefix = xNONE ]; then
3239 prefix=$native_prefix
3241 prefix=$native_prefix
3243 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
3244 tm_file=mips/news4.h
3245 if [ x$stabs = xyes ]; then
3246 tm_file="${tm_file} dbx.h"
3250 tmake_file=mips/t-mips-gas
3252 extra_passes="mips-tfile mips-tdump"
3254 if [ x$gnu_ld != xyes ]
3258 xmake_file=mips/x-sony
3260 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
3261 # That is based on svr4.
3262 # t-svr4 is not right because this system doesn't use ELF.
3263 tm_file=mips/news5.h
3264 if [ x$stabs = xyes ]; then
3265 tm_file="${tm_file} dbx.h"
3267 xm_file=mips/xm-news.h
3270 tmake_file=mips/t-mips-gas
3272 extra_passes="mips-tfile mips-tdump"
3274 if [ x$gnu_ld != xyes ]
3279 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
3280 tm_file=mips/svr4-t.h
3281 if [ x$stabs = xyes ]; then
3282 tm_file="${tm_file} dbx.h"
3284 xm_file=mips/xm-sysv4.h
3285 xmake_file=mips/x-sysv
3288 tmake_file=mips/t-mips-gas
3289 extra_parts="crtbegin.o crtend.o"
3291 tmake_file=mips/t-mips
3292 extra_passes="mips-tfile mips-tdump"
3294 if [ x$gnu_ld != xyes ]
3299 mips-*-ultrix* | mips-dec-mach3) # Decstation.
3300 tm_file=mips/ultrix.h
3301 if [ x$stabs = xyes ]; then
3302 tm_file="${tm_file} dbx.h"
3304 xmake_file=mips/x-ultrix
3307 tmake_file=mips/t-mips-gas
3309 tmake_file=mips/t-ultrix
3310 extra_passes="mips-tfile mips-tdump"
3312 if [ x$gnu_ld != xyes ]
3317 mips-*-riscos[56789]bsd*)
3318 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
3319 if [ x$stabs = xyes ]; then
3320 tm_file="${tm_file} dbx.h"
3324 tmake_file=mips/t-bsd-gas
3326 tmake_file=mips/t-bsd
3327 extra_passes="mips-tfile mips-tdump"
3329 if [ x$gnu_ld != xyes ]
3334 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
3335 tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0
3336 if [ x$stabs = xyes ]; then
3337 tm_file="${tm_file} dbx.h"
3341 tmake_file=mips/t-bsd-gas
3343 tmake_file=mips/t-bsd
3344 extra_passes="mips-tfile mips-tdump"
3346 if [ x$gnu_ld != xyes ]
3351 mips-*-riscos[56789]sysv4*)
3352 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
3353 if [ x$stabs = xyes ]; then
3354 tm_file="${tm_file} dbx.h"
3356 xm_file=mips/xm-sysv4.h
3357 xmake_file=mips/x-sysv
3360 tmake_file=mips/t-svr4-gas
3362 tmake_file=mips/t-svr4
3363 extra_passes="mips-tfile mips-tdump"
3365 if [ x$gnu_ld != xyes ]
3370 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
3371 tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0
3372 if [ x$stabs = xyes ]; then
3373 tm_file="${tm_file} dbx.h"
3375 xm_file=mips/xm-sysv.h
3376 xmake_file=mips/x-sysv
3379 tmake_file=mips/t-svr4-gas
3381 tmake_file=mips/t-svr4
3382 extra_passes="mips-tfile mips-tdump"
3384 if [ x$gnu_ld != xyes ]
3389 mips-*-riscos[56789]sysv*)
3390 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
3391 if [ x$stabs = xyes ]; then
3392 tm_file="${tm_file} dbx.h"
3394 xm_file=mips/xm-sysv.h
3395 xmake_file=mips/x-sysv
3398 tmake_file=mips/t-svr3-gas
3400 tmake_file=mips/t-svr3
3401 extra_passes="mips-tfile mips-tdump"
3403 if [ x$gnu_ld != xyes ]
3408 mips-*-sysv* | mips-*-riscos*sysv*)
3409 tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0
3410 if [ x$stabs = xyes ]; then
3411 tm_file="${tm_file} dbx.h"
3413 xm_file=mips/xm-sysv.h
3414 xmake_file=mips/x-sysv
3417 tmake_file=mips/t-svr3-gas
3419 tmake_file=mips/t-svr3
3420 extra_passes="mips-tfile mips-tdump"
3422 if [ x$gnu_ld != xyes ]
3427 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3428 tm_file=mips/mips-5.h
3429 if [ x$stabs = xyes ]; then
3430 tm_file="${tm_file} dbx.h"
3434 tmake_file=mips/t-mips-gas
3436 extra_passes="mips-tfile mips-tdump"
3438 if [ x$gnu_ld != xyes ]
3446 tm_file=mips/ecoffl.h
3447 if [ x$stabs = xyes ]; then
3448 tm_file="${tm_file} dbx.h"
3450 tmake_file=mips/t-ecoff
3453 tm_file=mips/ecoff.h
3454 if [ x$stabs = xyes ]; then
3455 tm_file="${tm_file} dbx.h"
3457 tmake_file=mips/t-ecoff
3460 tm_file="mips/elfl.h libgloss.h"
3461 tmake_file=mips/t-ecoff
3464 tm_file="mips/elf.h libgloss.h"
3465 tmake_file=mips/t-ecoff
3468 tm_file="mips/elfl64.h libgloss.h"
3469 tmake_file=mips/t-ecoff
3471 mips64orionel-*-elf*)
3472 tm_file="mips/elflorion.h libgloss.h"
3473 tmake_file=mips/t-ecoff
3476 tm_file="mips/elf64.h libgloss.h"
3477 tmake_file=mips/t-ecoff
3480 tm_file="mips/elforion.h libgloss.h"
3481 tmake_file=mips/t-ecoff
3483 mips64orion-*-rtems*)
3484 tm_file=mips/rtems64.h
3485 tmake_file="mips/t-ecoff t-rtems"
3487 mips-*-*) # Default MIPS RISC-OS 4.0.
3488 if [ x$stabs = xyes ]; then
3489 tm_file="${tm_file} dbx.h"
3493 tmake_file=mips/t-mips-gas
3495 extra_passes="mips-tfile mips-tdump"
3497 if [ x$gnu_ld != xyes ]
3504 tm_file="mn10200/mn10200.h"
3505 if [ x$stabs = xyes ]
3507 tm_file="${tm_file} dbx.h"
3513 tm_file="mn10300/mn10300.h"
3514 if [ x$stabs = xyes ]
3516 tm_file="${tm_file} dbx.h"
3521 tm_file=ns32k/encore.h
3525 tm_file=ns32k/sequent.h
3529 tm_file=ns32k/tek6100.h
3533 tm_file=ns32k/tek6200.h
3536 # This has not been updated to GCC 2.
3538 # xm_file=ns32k/xm-genix.h
3539 # xmake_file=ns32k/x-genix
3540 # tm_file=ns32k/genix.h
3544 tm_file=ns32k/merlin.h
3548 tm_file=ns32k/pc532-mach.h
3552 tm_file=ns32k/pc532-min.h
3553 xm_file=ns32k/xm-pc532-min.h
3556 ns32k-pc532-netbsd*)
3557 tm_file=ns32k/netbsd.h
3558 xm_file=ns32k/xm-netbsd.h
3559 # On NetBSD, the headers are already okay.
3560 fixincludes=Makefile.in
3564 tm_file="${tm_file} pdp11/2bsd.h"
3570 xmake_file=pyr/x-pyr
3577 xmake_file=romp/x-mach
3580 powerpc-*-sysv* | powerpc-*-elf*)
3581 tm_file=rs6000/sysv4.h
3582 xm_file=rs6000/xm-sysv4.h
3583 extra_headers=ppc-asm.h
3586 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3588 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3590 xmake_file=rs6000/x-sysv4
3593 tm_file=rs6000/eabiaix.h
3594 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3595 fixincludes=Makefile.in
3596 extra_headers=ppc-asm.h
3599 tm_file=rs6000/eabisim.h
3600 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3601 fixincludes=Makefile.in
3602 extra_headers=ppc-asm.h
3605 tm_file=rs6000/eabi.h
3608 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3610 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3612 fixincludes=Makefile.in
3613 extra_headers=ppc-asm.h
3616 tm_file=rs6000/rtems.h
3619 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3621 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
3623 fixincludes=Makefile.in
3624 extra_headers=ppc-asm.h
3626 powerpc-*-linux-gnu*)
3627 tm_file=rs6000/linux.h
3628 xm_file=rs6000/xm-sysv4.h
3629 out_file=rs6000/rs6000.c
3632 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3634 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
3637 fixincludes=Makefile.in
3638 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3639 extra_headers=ppc-asm.h
3640 if [ x$enable_threads = xyes ]; then
3646 xm_file=rs6000/xm-sysv4.h
3647 tm_file=rs6000/vxppc.h
3648 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3649 extra_headers=ppc-asm.h
3651 powerpcle-*-sysv* | powerpcle-*-elf*)
3652 tm_file=rs6000/sysv4le.h
3653 xm_file=rs6000/xm-sysv4.h
3656 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3658 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3660 xmake_file=rs6000/x-sysv4
3661 extra_headers=ppc-asm.h
3663 powerpcle-*-eabisim*)
3664 tm_file=rs6000/eabilesim.h
3665 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3666 fixincludes=Makefile.in
3667 extra_headers=ppc-asm.h
3670 tm_file=rs6000/eabile.h
3673 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3675 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3677 fixincludes=Makefile.in
3678 extra_headers=ppc-asm.h
3680 powerpcle-*-winnt* )
3681 tm_file=rs6000/win-nt.h
3682 tmake_file=rs6000/t-winnt
3684 fixincludes=Makefile.in
3685 if [ x$enable_threads = xyes ]; then
3688 extra_headers=ppc-asm.h
3690 powerpcle-*-pe | powerpcle-*-cygwin32)
3691 tm_file=rs6000/cygwin32.h
3692 xm_file=rs6000/xm-cygwin32.h
3693 tmake_file=rs6000/t-winnt
3694 xmake_file=rs6000/x-cygwin32
3696 fixincludes=Makefile.in
3697 if [ x$enable_threads = xyes ]; then
3701 extra_headers=ppc-asm.h
3703 powerpcle-*-solaris2*)
3704 tm_file=rs6000/sol2.h
3705 xm_file=rs6000/xm-sysv4.h
3708 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3710 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3712 xmake_file=rs6000/x-sysv4
3713 fixincludes=fixinc.svr4
3714 extra_headers=ppc-asm.h
3716 rs6000-ibm-aix3.[01]*)
3717 tm_file=rs6000/aix31.h
3718 xmake_file=rs6000/x-aix31
3721 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3722 tm_file=rs6000/aix3newas.h
3723 if [ x$host != x$target ]
3725 tmake_file=rs6000/t-xnewas
3727 tmake_file=rs6000/t-newas
3731 rs6000-ibm-aix[456789].* | powerpc-ibm-aix[456789].*)
3732 tm_file=rs6000/aix41.h
3733 if [ x$host != x$target ]
3735 tmake_file=rs6000/t-xnewas
3737 tmake_file=rs6000/t-newas
3739 xmake_file=rs6000/x-aix31
3749 tm_file=rs6000/mach.h
3750 xm_file=rs6000/xm-mach.h
3751 xmake_file=rs6000/x-mach
3755 tm_file=rs6000/lynx.h
3756 xm_file=rs6000/xm-lynx.h
3757 tmake_file=rs6000/t-rs6000
3758 xmake_file=rs6000/x-lynx
3766 tmake_file="sh/t-sh t-rtems"
3775 xm_file=sparc/xm-pbd.h
3777 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3778 tm_file=sparc/vxsparc.h
3779 tmake_file=sparc/t-vxsparc
3783 tmake_file=sparc/t-sparcbare
3784 tm_file="sparc/aout.h libgloss.h"
3787 tm_file=sparc/netbsd.h
3788 xm_file=sparc/xm-netbsd.h
3789 # On NetBSD, the headers are already okay.
3790 fixincludes=Makefile.in
3796 sparc-*-linux-gnuaout*) # Sparc's running Linux, a.out
3797 xm_file=sparc/xm-linux.h
3798 tm_file=sparc/linux-aout.h
3800 fixincludes=Makefile.in #On Linux, the headers are ok already.
3803 sparc-*-linux-gnulibc1*) # Sparc's running Linux
3804 xm_file=sparc/xm-linux.h # with ELF format using the
3805 xmake_file=x-linux # Linux C library 5.
3806 tm_file=sparc/linux.h
3807 tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
3808 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3809 fixincludes=Makefile.in #On Linux, the headers are ok already.
3812 sparc-*-linux-gnu*) # Sparc's running Linux
3813 xm_file=sparc/xm-linux.h # with ELF format using glibc 2
3814 xmake_file=x-linux # aka the Linux C library 6.
3815 tm_file=sparc/linux.h
3816 tmake_file="t-linux sparc/t-linux"
3817 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3818 fixincludes=Makefile.in #On Linux, the headers are ok already.
3820 if [ x$enable_threads = xyes ]; then
3827 tm_file=sparc/lynx.h
3829 tm_file=sparc/lynx-ng.h
3831 xm_file=sparc/xm-lynx.h
3832 tmake_file=sparc/t-sunos41
3836 tmake_file="sparc/t-sparcbare t-rtems"
3837 tm_file=sparc/rtems.h
3840 tm_file=sparc/sol2.h
3841 xm_file=sparc/xm-sol2.h
3842 tmake_file=sparc/t-sol2
3843 xmake_file=sparc/x-sysv4
3844 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3845 fixincludes=fixinc.svr4
3846 if [ x$enable_threads = xyes ]; then
3847 thread_file='solaris'
3851 tm_file=sparc/sunos4.h
3852 tmake_file=sparc/t-sunos40
3856 tm_file=sparc/sunos4.h
3857 tmake_file=sparc/t-sunos41
3861 tm_file=sparc/sun4o3.h
3865 tm_file=sparc/sysv4.h
3866 xm_file=sparc/xm-sysv4.h
3868 xmake_file=sparc/x-sysv4
3869 extra_parts="crtbegin.o crtend.o"
3872 xm_file=sparc/xm-sol2.h
3873 tm_file=sparc/vxsim.h
3874 tmake_file=sparc/t-vxsparc
3875 xmake_file=sparc/x-sysv4
3878 tm_file="sparc/splet.h libgloss.h"
3879 tmake_file=sparc/t-splet
3882 tm_file="sparc/litecoff.h libgloss.h"
3883 tmake_file=sparc/t-sparclite
3886 tm_file="sparc/lite.h aoutos.h libgloss.h"
3887 tmake_file=sparc/t-sparclite
3890 tmake_file=sparc/t-sp64
3891 tm_file=sparc/sp64-aout.h
3894 tmake_file=sparc/t-sp64
3895 tm_file=sparc/sp64-elf.h
3896 extra_parts="crtbegin.o crtend.o"
3898 # This hasn't been upgraded to GCC 2.
3899 # tahoe-harris-*) # Harris tahoe, using COFF.
3900 # tm_file=tahoe/harris.h
3902 # tahoe-*-bsd*) # tahoe running BSD
3904 # This hasn't been upgraded to GCC 2.
3909 vax-*-bsd*) # vaxen running BSD
3913 vax-*-sysv*) # vaxen running system V
3914 tm_file="${tm_file} vax/vaxv.h"
3915 xm_file="${tm_file} vax/xm-vaxv.h"
3919 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3920 xm_file="${xm_file} xm-netbsd.h"
3921 # On NetBSD, the headers are already okay.
3922 fixincludes=Makefile.in
3926 vax-*-ultrix*) # vaxen running ultrix
3927 tm_file="${tm_file} vax/ultrix.h"
3931 vax-*-vms*) # vaxen running VMS
3932 xm_file=vax/xm-vms.h
3936 vax-*-*) # vax default entry
3940 xm_file="${xm_file} xm-svr3"
3944 echo "Configuration $machine not supported" 1>&2
3951 ;; # Existing Linux/GNU systems do not use the GNU setup.
3953 # On the GNU system, the setup is just about the same on
3954 # each different CPU. The specific machines that GNU
3955 # supports are matched above and just set $cpu_type.
3956 xm_file=${cpu_type}/xm-gnu.h
3957 tm_file=${cpu_type}/gnu.h
3958 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3959 # GNU always uses ELF.
3961 # GNU tools are the only tools.
3964 # On GNU, the headers are already okay.
3965 fixincludes=Makefile.in
3966 xmake_file=x-linux # These details are the same as Linux.
3967 tmake_file=t-gnu # These are not.
3970 fixincludes=fixinc.svr4
3971 xmake_try_sysv=x-sysv
3972 install_headers_dir=install-headers-cpio
3975 install_headers_dir=install-headers-cpio
3979 # Distinguish i[3456]86
3980 # Also, do not run mips-tfile on MIPS if using gas.
3981 # Process --with-cpu= for PowerPC/rs6000
3982 target_cpu_default2=
3985 target_cpu_default2=1
3988 target_cpu_default2=2
3991 target_cpu_default2=3
3996 target_cpu_default2="MASK_CPU_EV5|MASK_BYTE_OPS"
3999 target_cpu_default2="MASK_CPU_EV5"
4005 if [ x$target_cpu_default2 = x ]
4007 target_cpu_default2="MASK_GAS"
4009 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
4013 mips*-*-ecoff* | mips*-*-elf*)
4016 if [ x$gnu_ld = xyes ]
4018 target_cpu_default2=20
4020 target_cpu_default2=16
4027 target_cpu_default2=16
4030 powerpc*-*-* | rs6000-*-*)
4031 case "x$with_cpu" in
4035 xcommon | xpower | xpower2 | xpowerpc | xrios \
4036 | xrios1 | xrios2 | xrsc | xrsc1 \
4037 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
4038 | x403 | x505 | x801 | x821 | x823 | x860)
4039 target_cpu_default2="\"$with_cpu\""
4043 echo "--with-cpu must be passed a value" 1>&2
4048 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4054 case ".$with_cpu" in
4056 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
4058 .supersparc | .ultrasparc | .v7 | .v8)
4059 target_cpu_default2="TARGET_CPU_$with_cpu"
4062 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
4069 if [ x$target_cpu_default2 != x ]
4071 if [ x$target_cpu_default != x ]
4073 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
4075 target_cpu_default=$target_cpu_default2
4079 # No need for collect2 if we have the GNU linker.
4086 # Save data on machine being used to compile GCC in build_xm_file.
4087 # Save data on host machine in vars host_xm_file and host_xmake_file.
4088 if [ x$pass1done = x ]
4090 if [ x"$xm_file" = x ]
4091 then build_xm_file=$cpu_type/xm-$cpu_type.h
4092 else build_xm_file=$xm_file
4094 build_install_headers_dir=$install_headers_dir
4095 build_exeext=$exeext
4098 if [ x$pass2done = x ]
4100 if [ x"$xm_file" = x ]
4101 then host_xm_file=$cpu_type/xm-$cpu_type.h
4102 else host_xm_file=$xm_file
4104 if [ x"$xmake_file" = x ]
4105 then xmake_file=$cpu_type/x-$cpu_type
4107 host_xmake_file="$xmake_file"
4108 host_truncate_target=$truncate_target
4109 host_extra_gcc_objs=$extra_gcc_objs
4110 host_extra_objs=$extra_host_objs
4116 extra_objs="${host_extra_objs} ${extra_objs}"
4118 # Default the target-machine variables that were not explicitly set.
4119 if [ x"$tm_file" = x ]
4120 then tm_file=$cpu_type/$cpu_type.h; fi
4122 if [ x$extra_headers = x ]
4123 then extra_headers=; fi
4125 if [ x"$xm_file" = x ]
4126 then xm_file=$cpu_type/xm-$cpu_type.h; fi
4128 md_file=$cpu_type/$cpu_type.md
4130 if [ x$out_file = x ]
4131 then out_file=$cpu_type/$cpu_type.c; fi
4133 if [ x"$tmake_file" = x ]
4134 then tmake_file=$cpu_type/t-$cpu_type
4137 if [ x$float_format = x ]
4138 then float_format=i64
4141 # Say what files are being used for the output code and MD file.
4142 echo "Using \`$srcdir/config/$out_file' to output insns."
4143 echo "Using \`$srcdir/config/$md_file' as machine description file."
4146 for f in $tm_file; do
4149 if [ $count = ax ]; then
4150 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4152 echo "Using the following target machine macro files:"
4153 for f in $tm_file; do
4154 echo " $srcdir/config/$f"
4159 for f in $host_xm_file; do
4162 if [ $count = ax ]; then
4163 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4165 echo "Using the following host machine macro files:"
4166 for f in $host_xm_file; do
4167 echo " $srcdir/config/$f"
4171 if [ "$host_xm_file" != "$build_xm_file" ]; then
4173 for f in $build_xm_file; do
4176 if [ $count = ax ]; then
4177 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4179 echo "Using the following build machine macro files:"
4180 for f in $build_xm_file; do
4181 echo " $srcdir/config/$f"
4186 if [ x$thread_file = x ]
4187 then thread_file='single'
4190 # Set up the header files.
4191 # $links is the list of header files to create.
4192 # $vars is the list of shell variables with file names to include.
4193 # config2.h is the old config.h. It is included by the new config.h which
4194 # created from config.in. The goal is to simplify the transition to autoconf.
4195 vars="host_xm_file tm_file xm_file build_xm_file"
4196 links="config2.h tm.h tconfig.h hconfig.h"
4199 if [ -f config.status ]; then mv -f config.status config.bak; fi
4202 while [ -n "$vars" ]
4204 # set file to car of files, files to cdr of files
4205 set $vars; var=$1; shift; vars=$*
4206 set $links; link=$1; shift; links=$*
4210 # Define TARGET_CPU_DEFAULT if the system wants one.
4211 # This substitutes for lots of *.h files.
4212 if [ x$target_cpu_default != x -a $link = tm.h ]
4214 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
4217 for file in `eval echo '$'$var`; do
4218 echo "#include \"$file\"" >>$link
4222 # Truncate the target if necessary
4223 if [ x$host_truncate_target != x ]; then
4224 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4227 # Get the version number from the toplevel
4228 version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${srcdir}/version.c`
4230 # Are we using gcc as the native compiler?
4232 *linux*) # All Linux's use gcc as the native compiler.
4233 if [ x$prefix = xNONE ]; then
4234 prefix=$native_prefix
4239 # Get an absolute path to the GCC top-level source directory
4245 # Conditionalize the makefile for this host machine.
4246 # Make-host contains the concatenation of all host makefile fragments
4247 # [there can be more than one]. This file is built by configure.frag.
4248 host_overrides=Make-host
4249 dep_host_xmake_file=
4250 for f in .. ${host_xmake_file}
4252 if [ -f ${srcdir}/config/$f ]
4254 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4258 # Conditionalize the makefile for this target machine.
4259 # Make-target contains the concatenation of all host makefile fragments
4260 # [there can be more than one]. This file is built by configure.frag.
4261 target_overrides=Make-target
4263 for f in .. ${tmake_file}
4265 if [ -f ${srcdir}/config/$f ]
4267 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4271 # If the host doesn't support symlinks, modify CC in
4272 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4273 # Otherwise, we can use "CC=$(CC)".
4275 if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
4277 cc_set_by_configure="\$(CC)"
4278 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4280 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4281 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4285 out_object_file=`basename $out_file .c`.o
4288 for f in $tm_file; do
4289 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
4293 for f in $host_xm_file; do
4294 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
4298 for f in $build_xm_file; do
4299 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
4302 # Define macro CROSS_COMPILE in compilation
4303 # if this is a cross-compiler.
4304 # Also use all.cross instead of all.internal
4305 # and add cross-make to Makefile.
4306 cross_overrides="/dev/null"
4307 if [ x$host != x$target ]
4309 cross_defines="CROSS=-DCROSS_COMPILE"
4310 cross_overrides="${topdir}/cross-make"
4313 # When building gcc with a cross-compiler, we need to fix a few things.
4314 # This must come after cross-make as we want all.build to override
4316 build_overrides="/dev/null"
4317 if [ x$build != x$host ]
4319 build_overrides="${topdir}/build-make"
4322 # Expand extra_headers to include complete path.
4323 # This substitutes for lots of t-* files.
4325 if [ "x$extra_headers" = x ]
4328 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4329 for file in $extra_headers;
4331 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4335 # Add a definition of USE_COLLECT2 if system wants one.
4336 # Also tell toplev.c what to do.
4337 # This substitutes for lots of t-* files.
4338 if [ x$use_collect2 = x ]
4343 will_use_collect2="ld"
4344 maybe_use_collect2="-DUSE_COLLECT2"
4348 # Set MD_DEPS if the real md file is in md.pre-cpp.
4349 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4350 # for line oriented comments, so we must always use a GNU cpp. If
4351 # building gcc with a cross compiler, use the cross compiler just
4352 # built. Otherwise, we can use the cpp just built.
4354 if [ "x$md_cppflags" = x ]
4356 md_file_sub=$srcdir/config/$md_file
4361 # If we have gas in the build tree, make a link to it.
4362 if [ -f ../gas/Makefile ]; then
4363 rm -f as; $symbolic_link ../gas/as.new as 2>/dev/null
4366 # If we have ld in the build tree, make a link to it.
4367 if [ -f ../ld/Makefile ]; then
4368 # if [[ x$use_collect2 = x ]]; then
4369 # rm -f ld; $symbolic_link ../ld/ld.new ld 2>/dev/null
4371 rm -f collect-ld; $symbolic_link ../ld/ld.new collect-ld 2>/dev/null
4375 # Figure out what language subdirectories are present.
4377 for lang in ${srcdir}/*/config-lang.in ..
4381 # The odd quoting in the next line works around
4382 # an apparent bug in bash 1.12 on linux.
4383 ${srcdir}/[*]/config-lang.in) ;;
4384 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4388 # Make empty files to contain the specs and options for each language.
4389 # Then add #include lines to for a compiler that has specs and/or options.
4393 rm -f specs.h options.h
4394 touch specs.h options.h
4395 for subdir in . $subdirs
4397 if [ -f $srcdir/$subdir/lang-specs.h ]; then
4398 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4399 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4401 if [ -f $srcdir/$subdir/lang-options.h ]; then
4402 echo "#include \"$subdir/lang-options.h\"" >>options.h
4403 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4407 # These (without "all_") are set in each config-lang.in.
4408 # `language' must be a single word so is spelled singularly.
4414 all_outputs=Makefile
4415 # List of language makefile fragments.
4420 # Add the language fragments.
4421 # Languages are added via two mechanisms. Some information must be
4422 # recorded in makefile variables, these are defined in config-lang.in.
4423 # We accumulate them and plug them into the main Makefile.
4424 # The other mechanism is a set of hooks for each of the main targets
4425 # like `clean', `install', etc.
4427 language_fragments="Make-lang"
4428 language_hooks="Make-hooks"
4431 for s in .. $subdirs
4443 . ${srcdir}/$s/config-lang.in
4444 if [ "x$language" = x ]
4446 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4449 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4450 all_languages="$all_languages $language"
4451 if [ "x$boot_language" = xyes ]
4453 all_boot_languages="$all_boot_languages $language"
4455 all_compilers="$all_compilers $compilers"
4456 all_stagestuff="$all_stagestuff $stagestuff"
4457 all_diff_excludes="$all_diff_excludes $diff_excludes"
4458 all_headers="$all_headers $headers"
4459 all_outputs="$all_outputs $outputs"
4460 if [ x$outputs = x ]
4462 oldstyle_subdirs="$oldstyle_subdirs $s"
4464 all_lib2funcs="$all_lib2funcs $lib2funcs"
4468 # Since we can't use `::' targets, we link each language in
4469 # with a set of hooks, reached indirectly via lang.${target}.
4473 target_list="all.build all.cross start.encap rest.encap \
4475 install-normal install-common install-info install-man \
4477 mostlyclean clean distclean extraclean maintainer-clean \
4478 stage1 stage2 stage3 stage4"
4479 for t in $target_list
4482 for l in .. $all_languages
4484 if [ $l != ".." ]; then
4488 echo "lang.$t: $x" >> Make-hooks
4491 # If we're not building in srcdir, create .gdbinit.
4493 if [ ! -f Makefile.in ]; then
4494 echo "dir ." > .gdbinit
4495 echo "dir ${srcdir}" >> .gdbinit
4496 if [ x$gdb_needs_out_file_path = xyes ]
4498 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4500 if [ "x$subdirs" != x ]; then
4503 echo "dir ${srcdir}/$s" >> .gdbinit
4506 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4509 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4512 if [ x$enable_haifa = xyes ]; then
4513 echo "Using the Haifa scheduler."
4515 sched_cflags=-DHAIFA
4519 if [ x$enable_haifa != x ]; then
4520 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4521 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4529 # Process the language and host/target makefile fragments.
4530 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4532 # Substitute configuration variables
4581 # Echo that links are built
4582 if [ x$host = x$target ]
4590 if [ x$host != x$build ]
4592 str3=" on a $build system"
4595 if [ "x$str2" != x ] || [ "x$str3" != x ]
4600 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4602 if [ "x$str2" != x ] || [ "x$str3" != x ]
4604 echo " ${str2}${str3}." 1>&2
4607 # Configure the subdirectories
4608 # AC_CONFIG_SUBDIRS($subdirs)
4610 # Create the Makefile
4611 # and configure language subdirectories
4613 cat > confcache <<\EOF
4614 # This file is a shell script that caches the results of configure
4615 # tests run on this system so they can be shared between configure
4616 # scripts and configure runs. It is not useful on other systems.
4617 # If it contains results you don't want to keep, you may remove or edit it.
4619 # By default, configure uses ./config.cache as the cache file,
4620 # creating it if it does not exist already. You can give configure
4621 # the --cache-file=FILE option to use a different cache file; that is
4622 # what configure does when it calls configure scripts in
4623 # subdirectories, so they share the cache.
4624 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4625 # config.status only pays attention to the cache file if you give it the
4626 # --recheck option to rerun configure.
4629 # The following way of writing the cache mishandles newlines in values,
4630 # but we know of no workaround that is simple, portable, and efficient.
4631 # So, don't put newlines in cache variables' values.
4632 # Ultrix sh set writes to stderr and can't be redirected directly,
4633 # and sets the high bit in the cache file unless we assign to the vars.
4635 case `(ac_space=' '; set) 2>&1` in
4637 # `set' does not quote correctly, so add quotes (double-quote substitution
4638 # turns \\\\ into \\, and sed turns \\ into \).
4640 -e "s/'/'\\\\''/g" \
4641 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4644 # `set' quotes correctly as required by POSIX, so do not add quotes.
4645 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4648 if cmp -s $cache_file confcache; then
4651 if test -w $cache_file; then
4652 echo "updating cache $cache_file"
4653 cat confcache > $cache_file
4655 echo "not updating unwritable cache $cache_file"
4660 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4663 # Let make expand exec_prefix.
4664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4666 # Any assignment to VPATH causes Sun make to only execute
4667 # the first set of double-colon rules, so remove it if not needed.
4668 # If there is a colon in the path, we need to keep it.
4669 if test "x$srcdir" = x.; then
4670 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4673 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4675 DEFS=-DHAVE_CONFIG_H
4677 # Without the "./", some shells look in PATH for config.status.
4678 : ${CONFIG_STATUS=./config.status}
4680 echo creating $CONFIG_STATUS
4681 rm -f $CONFIG_STATUS
4682 cat > $CONFIG_STATUS <<EOF
4684 # Generated automatically by configure.
4685 # Run this file to recreate the current configuration.
4686 # This directory was configured as follows,
4687 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4689 # $0 $ac_configure_args
4691 # Compiler output produced by configure, useful for debugging
4692 # configure, is in ./config.log if it exists.
4694 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4697 case "\$ac_option" in
4698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4699 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4700 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4701 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4702 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4704 -help | --help | --hel | --he | --h)
4705 echo "\$ac_cs_usage"; exit 0 ;;
4706 *) echo "\$ac_cs_usage"; exit 1 ;;
4710 ac_given_srcdir=$srcdir
4711 ac_given_INSTALL="$INSTALL"
4713 trap 'rm -fr `echo "$all_outputs config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4715 cat >> $CONFIG_STATUS <<EOF
4717 # Protect against being on the right side of a sed subst in config.status.
4718 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4719 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4722 s%@CFLAGS@%$CFLAGS%g
4723 s%@CPPFLAGS@%$CPPFLAGS%g
4724 s%@CXXFLAGS@%$CXXFLAGS%g
4726 s%@LDFLAGS@%$LDFLAGS%g
4728 s%@exec_prefix@%$exec_prefix%g
4729 s%@prefix@%$prefix%g
4730 s%@program_transform_name@%$program_transform_name%g
4731 s%@bindir@%$bindir%g
4732 s%@sbindir@%$sbindir%g
4733 s%@libexecdir@%$libexecdir%g
4734 s%@datadir@%$datadir%g
4735 s%@sysconfdir@%$sysconfdir%g
4736 s%@sharedstatedir@%$sharedstatedir%g
4737 s%@localstatedir@%$localstatedir%g
4738 s%@libdir@%$libdir%g
4739 s%@includedir@%$includedir%g
4740 s%@oldincludedir@%$oldincludedir%g
4741 s%@infodir@%$infodir%g
4742 s%@mandir@%$mandir%g
4744 s%@host_alias@%$host_alias%g
4745 s%@host_cpu@%$host_cpu%g
4746 s%@host_vendor@%$host_vendor%g
4747 s%@host_os@%$host_os%g
4748 s%@target@%$target%g
4749 s%@target_alias@%$target_alias%g
4750 s%@target_cpu@%$target_cpu%g
4751 s%@target_vendor@%$target_vendor%g
4752 s%@target_os@%$target_os%g
4754 s%@build_alias@%$build_alias%g
4755 s%@build_cpu@%$build_cpu%g
4756 s%@build_vendor@%$build_vendor%g
4757 s%@build_os@%$build_os%g
4760 s%@LEXLIB@%$LEXLIB%g
4762 s%@RANLIB@%$RANLIB%g
4764 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4765 s%@INSTALL_DATA@%$INSTALL_DATA%g
4767 s%@SET_MAKE@%$SET_MAKE%g
4769 s%@manext@%$manext%g
4770 s%@objext@%$objext%g
4771 s%@sched_prefix@%$sched_prefix%g
4772 s%@sched_cflags@%$sched_cflags%g
4773 s%@subdirs@%$subdirs%g
4774 s%@all_languages@%$all_languages%g
4775 s%@all_boot_languages@%$all_boot_languages%g
4776 s%@all_compilers@%$all_compilers%g
4777 s%@all_lang_makefiles@%$all_lang_makefiles%g
4778 s%@all_stagestuff@%$all_stagestuff%g
4779 s%@all_diff_excludes@%$all_diff_excludes%g
4780 s%@all_lib2funcs@%$all_lib2funcs%g
4781 s%@all_headers@%$all_headers%g
4782 s%@extra_passes@%$extra_passes%g
4783 s%@extra_programs@%$extra_programs%g
4784 s%@extra_parts@%$extra_parts%g
4785 s%@extra_c_objs@%$extra_c_objs%g
4786 s%@extra_c_flags@%$extra_c_flags%g
4787 s%@extra_objs@%$extra_objs%g
4788 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
4789 s%@extra_headers_list@%$extra_headers_list%g
4790 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
4791 s%@dep_tmake_file@%$dep_tmake_file%g
4792 s%@out_file@%$out_file%g
4793 s%@out_object_file@%$out_object_file%g
4794 s%@md_file@%$md_file%g
4795 s%@tm_file_list@%$tm_file_list%g
4796 s%@build_xm_file_list@%$build_xm_file_list%g
4797 s%@host_xm_file_list@%$host_xm_file_list%g
4798 s%@lang_specs_files@%$lang_specs_files%g
4799 s%@lang_options_files@%$lang_options_files%g
4800 s%@thread_file@%$thread_file%g
4801 s%@version@%$version%g
4802 s%@local_prefix@%$local_prefix%g
4803 s%@gxx_include_dir@%$gxx_include_dir%g
4804 s%@fixincludes@%$fixincludes%g
4805 s%@build_install_headers_dir@%$build_install_headers_dir%g
4806 s%@build_exeext@%$build_exeext%g
4807 s%@float_format@%$float_format%g
4808 s%@will_use_collect2@%$will_use_collect2%g
4809 s%@maybe_use_collect2@%$maybe_use_collect2%g
4810 s%@cc_set_by_configure@%$cc_set_by_configure%g
4811 s%@stage_prefix_set_by_configure@%$stage_prefix_set_by_configure%g
4812 /@target_overrides@/r $target_overrides
4813 s%@target_overrides@%%g
4814 /@host_overrides@/r $host_overrides
4815 s%@host_overrides@%%g
4816 s%@cross_defines@%$cross_defines%g
4817 /@cross_overrides@/r $cross_overrides
4818 s%@cross_overrides@%%g
4819 /@build_overrides@/r $build_overrides
4820 s%@build_overrides@%%g
4821 /@language_fragments@/r $language_fragments
4822 s%@language_fragments@%%g
4823 /@language_hooks@/r $language_hooks
4824 s%@language_hooks@%%g
4829 cat >> $CONFIG_STATUS <<\EOF
4831 # Split the substitutions into bite-sized pieces for seds with
4832 # small command number limits, like on Digital OSF/1 and HP-UX.
4833 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4834 ac_file=1 # Number of current file.
4835 ac_beg=1 # First line for current file.
4836 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4839 while $ac_more_lines; do
4840 if test $ac_beg -gt 1; then
4841 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4843 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4845 if test ! -s conftest.s$ac_file; then
4847 rm -f conftest.s$ac_file
4849 if test -z "$ac_sed_cmds"; then
4850 ac_sed_cmds="sed -f conftest.s$ac_file"
4852 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4854 ac_file=`expr $ac_file + 1`
4856 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4859 if test -z "$ac_sed_cmds"; then
4864 cat >> $CONFIG_STATUS <<EOF
4866 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
4868 cat >> $CONFIG_STATUS <<\EOF
4869 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4870 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4872 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4873 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4874 *) ac_file_in="${ac_file}.in" ;;
4877 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4879 # Remove last slash and all that follows it. Not all systems have dirname.
4880 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4881 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4882 # The file is in a subdirectory.
4883 test ! -d "$ac_dir" && mkdir "$ac_dir"
4884 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4885 # A "../" for each directory in $ac_dir_suffix.
4886 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4888 ac_dir_suffix= ac_dots=
4891 case "$ac_given_srcdir" in
4893 if test -z "$ac_dots"; then top_srcdir=.
4894 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4895 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4897 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4898 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4901 case "$ac_given_INSTALL" in
4902 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4903 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4906 echo creating "$ac_file"
4908 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4910 *Makefile*) ac_comsub="1i\\
4911 # $configure_input" ;;
4915 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4917 s%@configure_input@%$configure_input%g
4918 s%@srcdir@%$srcdir%g
4919 s%@top_srcdir@%$top_srcdir%g
4920 s%@INSTALL@%$INSTALL%g
4921 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4925 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4926 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4928 # ac_d sets the value in "#define NAME VALUE" lines.
4929 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4930 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4933 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4934 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4935 ac_uB='\([ ]\)%\1#\2define\3'
4938 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4939 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4940 ac_eB='$%\1#\2define\3'
4944 if test "${CONFIG_HEADERS+set}" != set; then
4946 cat >> $CONFIG_STATUS <<EOF
4947 CONFIG_HEADERS="config.h:config.in"
4949 cat >> $CONFIG_STATUS <<\EOF
4951 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4952 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4954 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4955 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4956 *) ac_file_in="${ac_file}.in" ;;
4959 echo creating $ac_file
4961 rm -f conftest.frag conftest.in conftest.out
4962 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4963 cat $ac_file_inputs > conftest.in
4967 # Transform confdefs.h into a sed script conftest.vals that substitutes
4968 # the proper values into config.h.in to produce config.h. And first:
4969 # Protect against being on the right side of a sed subst in config.status.
4970 # Protect against being in an unquoted here document in config.status.
4972 cat > conftest.hdr <<\EOF
4975 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4979 sed -n -f conftest.hdr confdefs.h > conftest.vals
4982 # This sed command replaces #undef with comments. This is necessary, for
4983 # example, in the case of _POSIX_SOURCE, which is predefined and required
4984 # on some systems where configure will not decide to define it.
4985 cat >> conftest.vals <<\EOF
4986 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4989 # Break up conftest.vals because some shells have a limit on
4990 # the size of here documents, and old seds have small limits too.
4995 ac_lines=`grep -c . conftest.vals`
4996 # grep -c gives empty output for an empty file on some AIX systems.
4997 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4998 # Write a limited-size here document to conftest.frag.
4999 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5000 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5002 sed -f conftest.frag conftest.in > conftest.out
5004 mv conftest.out conftest.in
5006 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5008 mv conftest.tail conftest.vals
5012 cat >> $CONFIG_STATUS <<\EOF
5013 rm -f conftest.frag conftest.h
5014 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5015 cat conftest.in >> conftest.h
5017 if cmp -s $ac_file conftest.h 2>/dev/null; then
5018 echo "$ac_file is unchanged"
5021 # Remove last slash and all that follows it. Not all systems have dirname.
5022 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5023 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5024 # The file is in a subdirectory.
5025 test ! -d "$ac_dir" && mkdir "$ac_dir"
5028 mv conftest.h $ac_file
5033 cat >> $CONFIG_STATUS <<EOF
5038 target_alias='${target_alias}'
5040 subdirs='${subdirs}'
5041 oldstyle_subdirs='${oldstyle_subdirs}'
5042 symbolic_link='${symbolic_link}'
5043 program_transform_set='${program_transform_set}'
5044 program_transform_name='${program_transform_name}'
5045 dep_host_xmake_file='${dep_host_xmake_file}'
5046 host_xmake_file='${host_xmake_file}'
5047 dep_tmake_file='${dep_tmake_file}'
5048 tmake_file='${tmake_file}'
5049 thread_file='${thread_file}'
5050 version='${version}'
5051 local_prefix='${local_prefix}'
5052 build_install_headers_dir='${build_install_headers_dir}'
5053 build_exeext='${build_exeext}'
5054 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5055 SET_MAKE='${SET_MAKE}'
5056 target_list='${target_list}'
5057 target_overrides='${target_overrides}'
5058 host_overrides='${host_overrides}'
5059 cross_defines='${cross_defines}'
5060 cross_overrides='${cross_overrides}'
5061 build_overrides='${build_overrides}'
5064 cat >> $CONFIG_STATUS <<\EOF
5066 . $srcdir/configure.lang
5067 case x$CONFIG_HEADERS in
5068 xconfig.h:config.in)
5074 chmod +x $CONFIG_STATUS
5075 rm -fr confdefs* $ac_clean_files
5076 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1