3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-gnu-ld arrange to work with GNU ld."
17 --with-ld arrange to use the specified ld (full pathname)"
19 --with-gnu-as arrange to work with GNU as"
21 --with-as arrange to use the specified as (full pathname)"
23 --with-stabs arrange to use stabs instead of host debug format"
25 --with-elf arrange to use ELF instead of host debug format"
27 --with-local-prefix=DIR specifies directory to put local include"
29 --enable-c-mbchar enable multibyte characters for C and C++"
31 --enable-maintainer-mode
32 enable make rules and dependencies not useful
33 (and sometimes confusing) to the casual installer"
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
39 cache_file=./config.cache
48 program_transform_name=s,x,x,
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
69 # Initialize some other variables.
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
80 # If the previous option needs an argument, assign it.
81 if test -n "$ac_prev"; then
82 eval "$ac_prev=\$ac_option"
88 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
92 # Accept the important Cygnus configure options, so we can diagnose typos.
96 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99 bindir="$ac_optarg" ;;
101 -build | --build | --buil | --bui | --bu)
103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104 build="$ac_optarg" ;;
106 -cache-file | --cache-file | --cache-fil | --cache-fi \
107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108 ac_prev=cache_file ;;
109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111 cache_file="$ac_optarg" ;;
113 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 datadir="$ac_optarg" ;;
119 -disable-* | --disable-*)
120 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121 # Reject names that are not valid shell variable names.
122 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}=no" ;;
128 -enable-* | --enable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 eval "enable_${ac_feature}='$ac_optarg'" ;;
141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143 | --exec | --exe | --ex)
144 ac_prev=exec_prefix ;;
145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147 | --exec=* | --exe=* | --ex=*)
148 exec_prefix="$ac_optarg" ;;
150 -gas | --gas | --ga | --g)
151 # Obsolete; use --with-gas.
154 -help | --help | --hel | --he)
155 # Omit some internal or obsolete options to make the list less imposing.
156 # This message is too long to be a string in the A/UX 3.1 sh.
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
161 --cache-file=FILE cache test results in FILE
162 --help print this message
163 --no-create do not create output files
164 --quiet, --silent do not print \`checking...' messages
165 --version print the version of autoconf that created configure
166 Directory and file names:
167 --prefix=PREFIX install architecture-independent files in PREFIX
169 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 --bindir=DIR user executables in DIR [EPREFIX/bin]
172 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
173 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
174 --datadir=DIR read-only architecture-independent data in DIR
176 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
177 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
180 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
181 --includedir=DIR C header files in DIR [PREFIX/include]
182 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
183 --infodir=DIR info documentation in DIR [PREFIX/info]
184 --mandir=DIR man documentation in DIR [PREFIX/man]
185 --srcdir=DIR find the sources in DIR [configure dir or ..]
186 --program-prefix=PREFIX prepend PREFIX to installed program names
187 --program-suffix=SUFFIX append SUFFIX to installed program names
188 --program-transform-name=PROGRAM
189 run sed PROGRAM on installed program names
193 --build=BUILD configure for building on BUILD [BUILD=HOST]
194 --host=HOST configure for HOST [guessed]
195 --target=TARGET configure for TARGET [TARGET=HOST]
196 Features and packages:
197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
199 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
200 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
201 --x-includes=DIR X include files are in DIR
202 --x-libraries=DIR X library files are in DIR
204 if test -n "$ac_help"; then
205 echo "--enable and --with options recognized:$ac_help"
209 -host | --host | --hos | --ho)
211 -host=* | --host=* | --hos=* | --ho=*)
214 -includedir | --includedir | --includedi | --included | --include \
215 | --includ | --inclu | --incl | --inc)
216 ac_prev=includedir ;;
217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218 | --includ=* | --inclu=* | --incl=* | --inc=*)
219 includedir="$ac_optarg" ;;
221 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224 infodir="$ac_optarg" ;;
226 -libdir | --libdir | --libdi | --libd)
228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
229 libdir="$ac_optarg" ;;
231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232 | --libexe | --libex | --libe)
233 ac_prev=libexecdir ;;
234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235 | --libexe=* | --libex=* | --libe=*)
236 libexecdir="$ac_optarg" ;;
238 -localstatedir | --localstatedir | --localstatedi | --localstated \
239 | --localstate | --localstat | --localsta | --localst \
240 | --locals | --local | --loca | --loc | --lo)
241 ac_prev=localstatedir ;;
242 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245 localstatedir="$ac_optarg" ;;
247 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250 mandir="$ac_optarg" ;;
253 # Obsolete; use --without-fp.
256 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
260 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266 | --oldin | --oldi | --old | --ol | --o)
267 ac_prev=oldincludedir ;;
268 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271 oldincludedir="$ac_optarg" ;;
273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276 prefix="$ac_optarg" ;;
278 -program-prefix | --program-prefix | --program-prefi | --program-pref \
279 | --program-pre | --program-pr | --program-p)
280 ac_prev=program_prefix ;;
281 -program-prefix=* | --program-prefix=* | --program-prefi=* \
282 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283 program_prefix="$ac_optarg" ;;
285 -program-suffix | --program-suffix | --program-suffi | --program-suff \
286 | --program-suf | --program-su | --program-s)
287 ac_prev=program_suffix ;;
288 -program-suffix=* | --program-suffix=* | --program-suffi=* \
289 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290 program_suffix="$ac_optarg" ;;
292 -program-transform-name | --program-transform-name \
293 | --program-transform-nam | --program-transform-na \
294 | --program-transform-n | --program-transform- \
295 | --program-transform | --program-transfor \
296 | --program-transfo | --program-transf \
297 | --program-trans | --program-tran \
298 | --progr-tra | --program-tr | --program-t)
299 ac_prev=program_transform_name ;;
300 -program-transform-name=* | --program-transform-name=* \
301 | --program-transform-nam=* | --program-transform-na=* \
302 | --program-transform-n=* | --program-transform-=* \
303 | --program-transform=* | --program-transfor=* \
304 | --program-transfo=* | --program-transf=* \
305 | --program-trans=* | --program-tran=* \
306 | --progr-tra=* | --program-tr=* | --program-t=*)
307 program_transform_name="$ac_optarg" ;;
309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310 | -silent | --silent | --silen | --sile | --sil)
313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 sbindir="$ac_optarg" ;;
319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321 | --sharedst | --shareds | --shared | --share | --shar \
323 ac_prev=sharedstatedir ;;
324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 sharedstatedir="$ac_optarg" ;;
330 -site | --site | --sit)
332 -site=* | --site=* | --sit=*)
335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338 srcdir="$ac_optarg" ;;
340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341 | --syscon | --sysco | --sysc | --sys | --sy)
342 ac_prev=sysconfdir ;;
343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345 sysconfdir="$ac_optarg" ;;
347 -target | --target | --targe | --targ | --tar | --ta | --t)
349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350 target="$ac_optarg" ;;
352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
355 -version | --version | --versio | --versi | --vers)
356 echo "configure generated by autoconf version 2.13"
360 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
370 eval "with_${ac_package}='$ac_optarg'" ;;
372 -without-* | --without-*)
373 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374 # Reject names that are not valid shell variable names.
375 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}=no" ;;
382 # Obsolete; use --with-x.
385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386 | --x-incl | --x-inc | --x-in | --x-i)
387 ac_prev=x_includes ;;
388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390 x_includes="$ac_optarg" ;;
392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394 ac_prev=x_libraries ;;
395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397 x_libraries="$ac_optarg" ;;
399 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
403 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 if test "x$nonopt" != xNONE; then
407 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 if test -n "$ac_prev"; then
416 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421 # File descriptor usage:
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c) ;;
449 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
458 # Only set these to C if already set. These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=cppmain.c
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478 ac_srcdir_defaulted=yes
479 # Try the directory containing this script, then its parent.
481 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 if test ! -r $srcdir/$ac_unique_file; then
488 ac_srcdir_defaulted=no
490 if test ! -r $srcdir/$ac_unique_file; then
491 if test "$ac_srcdir_defaulted" = yes; then
492 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501 if test "x$prefix" != xNONE; then
502 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507 for ac_site_file in $CONFIG_SITE; do
508 if test -r "$ac_site_file"; then
509 echo "loading site script $ac_site_file"
514 if test -r "$cache_file"; then
515 echo "loading cache $cache_file"
518 echo "creating cache $cache_file"
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='\c' ac_t=
548 symbolic_link='ln -s'
551 # Check for additional parameters
554 # Check whether --with-gnu-ld or --without-gnu-ld was given.
555 if test "${with_gnu_ld+set}" = set; then
556 withval="$with_gnu_ld"
557 gnu_ld_flag="$with_gnu_ld"
563 # With pre-defined ld
564 # Check whether --with-ld or --without-ld was given.
565 if test "${with_ld+set}" = set; then
567 DEFAULT_LINKER="$with_ld"
570 if test x"${DEFAULT_LINKER+set}" = x"set"; then
571 if test ! -x "$DEFAULT_LINKER"; then
572 echo "configure: warning: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" 1>&2
573 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
576 cat >> confdefs.h <<EOF
577 #define DEFAULT_LINKER "$DEFAULT_LINKER"
583 # Check whether --with-gnu-as or --without-gnu-as was given.
584 if test "${with_gnu_as+set}" = set; then
585 withval="$with_gnu_as"
586 gas_flag="$with_gnu_as"
592 # Check whether --with-as or --without-as was given.
593 if test "${with_as+set}" = set; then
595 DEFAULT_ASSEMBLER="$with_as"
598 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
599 if test ! -x "$DEFAULT_ASSEMBLER"; then
600 echo "configure: warning: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" 1>&2
601 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
604 cat >> confdefs.h <<EOF
605 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
611 # Check whether --with-stabs or --without-stabs was given.
612 if test "${with_stabs+set}" = set; then
613 withval="$with_stabs"
621 # Check whether --with-elf or --without-elf was given.
622 if test "${with_elf+set}" = set; then
630 # Specify the local prefix
632 # Check whether --with-local-prefix or --without-local-prefix was given.
633 if test "${with_local_prefix+set}" = set; then
634 withval="$with_local_prefix"
636 yes) { echo "configure: error: bad value ${withval} given for local include directory prefix" 1>&2; exit 1; } ;;
638 *) local_prefix=$with_local_prefix ;;
643 # Default local prefix if it is empty
644 if test x$local_prefix = x; then
645 local_prefix=/usr/local
648 # Enable Multibyte Characters for C/C++
649 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
650 if test "${enable_c_mbchar+set}" = set; then
651 enableval="$enable_c_mbchar"
652 if test x$enable_c_mbchar != xno; then
653 cat >> confdefs.h <<\EOF
654 #define MULTIBYTE_CHARS 1
661 # Find the native compiler
662 # Extract the first word of "gcc", so it can be a program name with args.
663 set dummy gcc; ac_word=$2
664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
665 echo "configure:666: checking for $ac_word" >&5
666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
669 if test -n "$CC"; then
670 ac_cv_prog_CC="$CC" # Let the user override the test.
672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
674 for ac_dir in $ac_dummy; do
675 test -z "$ac_dir" && ac_dir=.
676 if test -f $ac_dir/$ac_word; then
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
692 # Extract the first word of "cc", so it can be a program name with args.
693 set dummy cc; ac_word=$2
694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
695 echo "configure:696: checking for $ac_word" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 if test -n "$CC"; then
700 ac_cv_prog_CC="$CC" # Let the user override the test.
702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
705 for ac_dir in $ac_dummy; do
706 test -z "$ac_dir" && ac_dir=.
707 if test -f $ac_dir/$ac_word; then
708 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
717 if test $ac_prog_rejected = yes; then
718 # We found a bogon in the path, so make sure we never use it.
719 set dummy $ac_cv_prog_CC
721 if test $# -gt 0; then
722 # We chose a different compiler from the bogus one.
723 # However, it has the same basename, so the bogon will be chosen
724 # first if we set CC to just the basename; use the full file name.
726 set dummy "$ac_dir/$ac_word" "$@"
734 if test -n "$CC"; then
735 echo "$ac_t""$CC" 1>&6
737 echo "$ac_t""no" 1>&6
740 if test -z "$CC"; then
743 # Extract the first word of "cl", so it can be a program name with args.
744 set dummy cl; ac_word=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
748 echo $ac_n "(cached) $ac_c" 1>&6
750 if test -n "$CC"; then
751 ac_cv_prog_CC="$CC" # Let the user override the test.
753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
755 for ac_dir in $ac_dummy; do
756 test -z "$ac_dir" && ac_dir=.
757 if test -f $ac_dir/$ac_word; then
766 if test -n "$CC"; then
767 echo "$ac_t""$CC" 1>&6
769 echo "$ac_t""no" 1>&6
774 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
777 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
778 echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
781 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
782 ac_cpp='$CPP $CPPFLAGS'
783 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
784 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
785 cross_compiling=$ac_cv_prog_cc_cross
787 cat > conftest.$ac_ext << EOF
789 #line 790 "configure"
790 #include "confdefs.h"
794 if { (eval echo configure:795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795 ac_cv_prog_cc_works=yes
796 # If we can't run a trivial program, we are probably using a cross compiler.
797 if (./conftest; exit) 2>/dev/null; then
798 ac_cv_prog_cc_cross=no
800 ac_cv_prog_cc_cross=yes
803 echo "configure: failed program was:" >&5
804 cat conftest.$ac_ext >&5
805 ac_cv_prog_cc_works=no
809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
810 ac_cpp='$CPP $CPPFLAGS'
811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
813 cross_compiling=$ac_cv_prog_cc_cross
815 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
816 if test $ac_cv_prog_cc_works = no; then
817 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
819 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
820 echo "configure:821: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
821 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
822 cross_compiling=$ac_cv_prog_cc_cross
824 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
825 echo "configure:826: checking whether we are using GNU C" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 cat > conftest.c <<EOF
834 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
841 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
843 if test $ac_cv_prog_gcc = yes; then
849 ac_test_CFLAGS="${CFLAGS+set}"
850 ac_save_CFLAGS="$CFLAGS"
852 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
853 echo "configure:854: checking whether ${CC-cc} accepts -g" >&5
854 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 echo 'void f(){}' > conftest.c
858 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
867 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
868 if test "$ac_test_CFLAGS" = set; then
869 CFLAGS="$ac_save_CFLAGS"
870 elif test $ac_cv_prog_cc_g = yes; then
871 if test "$GCC" = yes; then
877 if test "$GCC" = yes; then
884 if test "x$CC" != xcc; then
885 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
886 echo "configure:887: checking whether $CC and cc understand -c and -o together" >&5
888 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
889 echo "configure:890: checking whether cc understands -c and -o together" >&5
891 set dummy $CC; ac_cc="`echo $2 |
892 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
893 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 echo 'foo(){}' > conftest.c
897 # Make sure it works both with $CC and with simple cc.
898 # We do the test twice because some compilers refuse to overwrite an
899 # existing .o file with -o, though they will create one.
900 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
901 if { (eval echo configure:902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
902 test -f conftest.o && { (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
904 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
905 if test "x$CC" != xcc; then
906 # Test first that cc exists at all.
907 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
908 ac_try='cc -c conftest.c -o conftest.o 1>&5'
909 if { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
910 test -f conftest.o && { (eval echo configure:911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
915 # cc exists but doesn't like -o.
916 eval ac_cv_prog_cc_${ac_cc}_c_o=no
921 eval ac_cv_prog_cc_${ac_cc}_c_o=no
926 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
927 echo "$ac_t""yes" 1>&6
929 echo "$ac_t""no" 1>&6
930 cat >> confdefs.h <<\EOF
931 #define NO_MINUS_C_MINUS_O 1
936 # autoconf is lame and doesn't give us any substitution variable for this.
937 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
938 NO_MINUS_C_MINUS_O=yes
940 OUTPUT_OPTION='-o $@'
945 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
946 echo "configure:947: checking how to run the C preprocessor" >&5
947 # On Suns, sometimes $CPP names a directory.
948 if test -n "$CPP" && test -d "$CPP"; then
951 if test -z "$CPP"; then
952 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 # This must be in double quotes, not single quotes, because CPP may get
956 # substituted into the Makefile and "${CC-cc}" will confuse make.
958 # On the NeXT, cc -E runs the code through the compiler's parser,
959 # not just through cpp.
960 cat > conftest.$ac_ext <<EOF
961 #line 962 "configure"
962 #include "confdefs.h"
966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
967 { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
969 if test -z "$ac_err"; then
973 echo "configure: failed program was:" >&5
974 cat conftest.$ac_ext >&5
976 CPP="${CC-cc} -E -traditional-cpp"
977 cat > conftest.$ac_ext <<EOF
978 #line 979 "configure"
979 #include "confdefs.h"
983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
984 { (eval echo configure:985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
986 if test -z "$ac_err"; then
990 echo "configure: failed program was:" >&5
991 cat conftest.$ac_ext >&5
993 CPP="${CC-cc} -nologo -E"
994 cat > conftest.$ac_ext <<EOF
995 #line 996 "configure"
996 #include "confdefs.h"
1000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1001 { (eval echo configure:1002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1003 if test -z "$ac_err"; then
1007 echo "configure: failed program was:" >&5
1008 cat conftest.$ac_ext >&5
1017 ac_cv_prog_CPP="$CPP"
1019 CPP="$ac_cv_prog_CPP"
1021 ac_cv_prog_CPP="$CPP"
1023 echo "$ac_t""$CPP" 1>&6
1025 echo $ac_n "checking for inline""... $ac_c" 1>&6
1026 echo "configure:1027: checking for inline" >&5
1027 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1031 for ac_kw in inline __inline__ __inline; do
1032 cat > conftest.$ac_ext <<EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1040 if { (eval echo configure:1041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1042 ac_cv_c_inline=$ac_kw; break
1044 echo "configure: failed program was:" >&5
1045 cat conftest.$ac_ext >&5
1052 echo "$ac_t""$ac_cv_c_inline" 1>&6
1053 case "$ac_cv_c_inline" in
1055 no) cat >> confdefs.h <<\EOF
1059 *) cat >> confdefs.h <<EOF
1060 #define inline $ac_cv_c_inline
1066 # sizeof(char) is 1 by definition.
1067 echo $ac_n "checking size of short""... $ac_c" 1>&6
1068 echo "configure:1069: checking size of short" >&5
1069 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1073 cat > conftest.$ac_ext <<EOF
1074 #line 1075 "configure"
1075 #include "confdefs.h"
1076 #include "confdefs.h"
1077 #include <sys/types.h>
1081 switch (0) case 0: case (sizeof (short) == $ac_size):;
1084 if { (eval echo configure:1085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1086 ac_cv_sizeof_short=$ac_size
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1092 if test x$ac_cv_sizeof_short != x ; then break; fi
1097 if test x$ac_cv_sizeof_short = x ; then
1098 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
1100 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1101 cat >> confdefs.h <<EOF
1102 #define SIZEOF_SHORT $ac_cv_sizeof_short
1106 echo $ac_n "checking size of int""... $ac_c" 1>&6
1107 echo "configure:1108: checking size of int" >&5
1108 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1112 cat > conftest.$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1115 #include "confdefs.h"
1116 #include <sys/types.h>
1120 switch (0) case 0: case (sizeof (int) == $ac_size):;
1123 if { (eval echo configure:1124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1125 ac_cv_sizeof_int=$ac_size
1127 echo "configure: failed program was:" >&5
1128 cat conftest.$ac_ext >&5
1131 if test x$ac_cv_sizeof_int != x ; then break; fi
1136 if test x$ac_cv_sizeof_int = x ; then
1137 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
1139 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1140 cat >> confdefs.h <<EOF
1141 #define SIZEOF_INT $ac_cv_sizeof_int
1145 echo $ac_n "checking size of long""... $ac_c" 1>&6
1146 echo "configure:1147: checking size of long" >&5
1147 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1154 #include "confdefs.h"
1155 #include <sys/types.h>
1159 switch (0) case 0: case (sizeof (long) == $ac_size):;
1162 if { (eval echo configure:1163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1164 ac_cv_sizeof_long=$ac_size
1166 echo "configure: failed program was:" >&5
1167 cat conftest.$ac_ext >&5
1170 if test x$ac_cv_sizeof_long != x ; then break; fi
1175 if test x$ac_cv_sizeof_long = x ; then
1176 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
1178 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1179 cat >> confdefs.h <<EOF
1180 #define SIZEOF_LONG $ac_cv_sizeof_long
1185 echo $ac_n "checking execution character set""... $ac_c" 1>&6
1186 echo "configure:1187: checking execution character set" >&5
1187 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 cat > conftest.$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1193 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
1194 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
1198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1199 egrep "ASCII" >/dev/null 2>&1; then
1201 ac_cv_c_charset=ASCII
1205 if test x${ac_cv_c_charset+set} != xset; then
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1209 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
1210 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
1214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1215 egrep "EBCDIC" >/dev/null 2>&1; then
1217 ac_cv_c_charset=EBCDIC
1222 if test x${ac_cv_c_charset+set} != xset; then
1223 ac_cv_c_charset=unknown
1227 echo "$ac_t""$ac_cv_c_charset" 1>&6
1228 if test $ac_cv_c_charset = unknown; then
1229 { echo "configure: error: *** Cannot determine host character set." 1>&2; exit 1; }
1230 elif test $ac_cv_c_charset = EBCDIC; then
1231 cat >> confdefs.h <<\EOF
1232 #define HOST_EBCDIC 1
1237 # If the native compiler is GCC, we can enable warnings even in stage1.
1238 # That's useful for people building cross-compilers, or just running a
1241 if test "x$GCC" = "xyes"; then
1242 warn_cflags='$(GCC_WARN_CFLAGS)'
1246 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1247 echo "configure:1248: checking whether ${MAKE-make} sets \${MAKE}" >&5
1248 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1249 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 cat > conftestmake <<\EOF
1254 @echo 'ac_maketemp="${MAKE}"'
1256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1257 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1258 if test -n "$ac_maketemp"; then
1259 eval ac_cv_prog_make_${ac_make}_set=yes
1261 eval ac_cv_prog_make_${ac_make}_set=no
1265 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1266 echo "$ac_t""yes" 1>&6
1269 echo "$ac_t""no" 1>&6
1270 SET_MAKE="MAKE=${MAKE-make}"
1274 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6
1275 echo "configure:1276: checking whether a default assembler was specified" >&5
1276 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1277 if test x"$gas_flag" = x"no"; then
1278 echo "$ac_t""yes ($DEFAULT_ASSEMBLER)" 1>&6
1280 echo "$ac_t""yes ($DEFAULT_ASSEMBLER - GNU as)" 1>&6
1283 echo "$ac_t""no" 1>&6
1286 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6
1287 echo "configure:1288: checking whether a default linker was specified" >&5
1288 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1289 if test x"$gnu_ld_flag" = x"no"; then
1290 echo "$ac_t""yes ($DEFAULT_LINKER)" 1>&6
1292 echo "$ac_t""yes ($DEFAULT_LINKER - GNU ld)" 1>&6
1295 echo "$ac_t""no" 1>&6
1298 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6
1299 echo "configure:1300: checking for GNU C library" >&5
1300 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1303 cat > conftest.$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1306 #include <features.h>
1309 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
1310 #error Not a GNU C library system
1314 if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1326 echo "$ac_t""$gcc_cv_glibc" 1>&6
1327 if test $gcc_cv_glibc = yes; then
1328 cat >> confdefs.h <<\EOF
1329 #define _GNU_SOURCE 1
1334 # Find some useful tools
1335 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether ln works" >&5
1337 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 rm -f conftestdata_t
1341 echo >conftestdata_f
1342 if ln conftestdata_f conftestdata_t 2>/dev/null
1346 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1348 gcc_cv_prog_LN="ln -s"
1353 rm -f conftestdata_f conftestdata_t
1356 LN="$gcc_cv_prog_LN"
1357 if test "$gcc_cv_prog_LN" = "ln"; then
1358 echo "$ac_t""yes" 1>&6
1360 if test "$gcc_cv_prog_LN" = "ln -s"; then
1361 echo "$ac_t""no, using ln -s" 1>&6
1363 echo "$ac_t""no, and neither does ln -s, so using cp" 1>&6
1367 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1368 echo "configure:1369: checking whether ln -s works" >&5
1369 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 rm -f conftestdata_t
1373 echo >conftestdata_f
1374 if ln -s conftestdata_f conftestdata_t 2>/dev/null
1376 gcc_cv_prog_LN_S="ln -s"
1378 if ln conftestdata_f conftestdata_t 2>/dev/null
1385 rm -f conftestdata_f conftestdata_t
1388 LN_S="$gcc_cv_prog_LN_S"
1389 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
1390 echo "$ac_t""yes" 1>&6
1392 if test "$gcc_cv_prog_LN_S" = "ln"; then
1393 echo "$ac_t""no, using ln" 1>&6
1395 echo "$ac_t""no, and neither does ln, so using cp" 1>&6
1399 # Extract the first word of "ranlib", so it can be a program name with args.
1400 set dummy ranlib; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 if test -n "$RANLIB"; then
1407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_RANLIB="ranlib"
1419 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1422 RANLIB="$ac_cv_prog_RANLIB"
1423 if test -n "$RANLIB"; then
1424 echo "$ac_t""$RANLIB" 1>&6
1426 echo "$ac_t""no" 1>&6
1430 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1431 if test -f $ac_dir/install-sh; then
1433 ac_install_sh="$ac_aux_dir/install-sh -c"
1435 elif test -f $ac_dir/install.sh; then
1437 ac_install_sh="$ac_aux_dir/install.sh -c"
1441 if test -z "$ac_aux_dir"; then
1442 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1444 ac_config_guess=$ac_aux_dir/config.guess
1445 ac_config_sub=$ac_aux_dir/config.sub
1446 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1448 # Find a good install program. We prefer a C program (faster),
1449 # so one script is as good as another. But avoid the broken or
1450 # incompatible versions:
1451 # SysV /etc/install, /usr/sbin/install
1452 # SunOS /usr/etc/install
1453 # IRIX /sbin/install
1455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1457 # ./install, which can be erroneously created by make from ./install.sh.
1458 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1459 echo "configure:1460: checking for a BSD compatible install" >&5
1460 if test -z "$INSTALL"; then
1461 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1465 for ac_dir in $PATH; do
1466 # Account for people who put trailing slashes in PATH elements.
1468 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1470 # OSF1 and SCO ODT 3.0 have their own names for install.
1471 for ac_prog in ginstall scoinst install; do
1472 if test -f $ac_dir/$ac_prog; then
1473 if test $ac_prog = install &&
1474 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1475 # AIX install. It has an incompatible calling convention.
1476 # OSF/1 installbsd also uses dspmsg, but is usable.
1479 ac_cv_path_install="$ac_dir/$ac_prog -c"
1490 if test "${ac_cv_path_install+set}" = set; then
1491 INSTALL="$ac_cv_path_install"
1493 # As a last resort, use the slow shell script. We don't cache a
1494 # path for INSTALL within a source directory, because that will
1495 # break other packages using the cache if that directory is
1496 # removed, or if the path is relative.
1497 INSTALL="$ac_install_sh"
1500 echo "$ac_t""$INSTALL" 1>&6
1502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1503 # It thinks the first close brace ends the variable substitution.
1504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1506 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1509 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1510 echo "configure:1511: checking for ANSI C header files" >&5
1511 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1523 { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1525 if test -z "$ac_err"; then
1527 ac_cv_header_stdc=yes
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1533 ac_cv_header_stdc=no
1537 if test $ac_cv_header_stdc = yes; then
1538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1545 egrep "memchr" >/dev/null 2>&1; then
1549 ac_cv_header_stdc=no
1555 if test $ac_cv_header_stdc = yes; then
1556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1563 egrep "free" >/dev/null 2>&1; then
1567 ac_cv_header_stdc=no
1573 if test $ac_cv_header_stdc = yes; then
1574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1575 if test "$cross_compiling" = yes; then
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1582 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1583 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1584 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1585 int main () { int i; for (i = 0; i < 256; i++)
1586 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1590 if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1597 ac_cv_header_stdc=no
1605 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1606 if test $ac_cv_header_stdc = yes; then
1607 cat >> confdefs.h <<\EOF
1608 #define STDC_HEADERS 1
1613 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether time.h and sys/time.h may both be included" >&5
1615 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621 #include <sys/types.h>
1622 #include <sys/time.h>
1628 if { (eval echo configure:1629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1630 ac_cv_header_time=yes
1632 echo "configure: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1635 ac_cv_header_time=no
1640 echo "$ac_t""$ac_cv_header_time" 1>&6
1641 if test $ac_cv_header_time = yes; then
1642 cat >> confdefs.h <<\EOF
1643 #define TIME_WITH_SYS_TIME 1
1648 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1649 echo "configure:1650: checking whether string.h and strings.h may both be included" >&5
1650 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 cat > conftest.$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1657 #include <strings.h>
1662 if { (eval echo configure:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1664 gcc_cv_header_string=yes
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1669 gcc_cv_header_string=no
1674 echo "$ac_t""$gcc_cv_header_string" 1>&6
1675 if test $gcc_cv_header_string = yes; then
1676 cat >> confdefs.h <<\EOF
1677 #define STRING_WITH_STRINGS 1
1682 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1683 echo "configure:1684: checking for sys/wait.h that is POSIX.1 compatible" >&5
1684 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 #include <sys/types.h>
1691 #include <sys/wait.h>
1693 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1696 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1701 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1704 if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1706 ac_cv_header_sys_wait_h=yes
1708 echo "configure: failed program was:" >&5
1709 cat conftest.$ac_ext >&5
1711 ac_cv_header_sys_wait_h=no
1716 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1717 if test $ac_cv_header_sys_wait_h = yes; then
1718 cat >> confdefs.h <<\EOF
1719 #define HAVE_SYS_WAIT_H 1
1724 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \
1725 fcntl.h unistd.h sys/file.h sys/time.h \
1726 sys/resource.h sys/param.h sys/times.h sys/stat.h \
1727 direct.h malloc.h langinfo.h
1729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_hdr" >&5
1732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1741 { (eval echo configure:1742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1743 if test -z "$ac_err"; then
1745 eval "ac_cv_header_$ac_safe=yes"
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 eval "ac_cv_header_$ac_safe=no"
1755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1756 echo "$ac_t""yes" 1>&6
1757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1758 cat >> confdefs.h <<EOF
1759 #define $ac_tr_hdr 1
1763 echo "$ac_t""no" 1>&6
1768 # Check for thread headers.
1770 # These tests can't be done till we know if we have limits.h.
1771 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6
1772 echo "configure:1773: checking for CHAR_BIT" >&5
1773 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1779 #ifdef HAVE_LIMITS_H
1786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1787 egrep "found" >/dev/null 2>&1; then
1789 gcc_cv_decl_char_bit=yes
1792 gcc_cv_decl_char_bit=no
1799 echo "$ac_t""$gcc_cv_decl_char_bit" 1>&6
1800 if test $gcc_cv_decl_char_bit = no; then
1801 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6
1802 echo "configure:1803: checking number of bits in a byte" >&5
1803 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1808 while test $i -lt 65; do
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1815 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
1816 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
1820 if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1822 gcc_cv_c_nbby=$i; break
1824 echo "configure: failed program was:" >&5
1825 cat conftest.$ac_ext >&5
1830 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
1834 echo "$ac_t""$gcc_cv_c_nbby" 1>&6
1835 if test $gcc_cv_c_nbby = failed; then
1836 { echo "configure: error: cannot determine number of bits in a byte" 1>&2; exit 1; }
1838 cat >> confdefs.h <<EOF
1839 #define CHAR_BIT $gcc_cv_c_nbby
1844 echo $ac_n "checking byte ordering""... $ac_c" 1>&6
1845 echo "configure:1846: checking byte ordering" >&5
1846 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 ac_cv_c_compile_endian=unknown
1852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1853 ac_cpp='$CPP $CPPFLAGS'
1854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1856 cross_compiling=$ac_cv_prog_cc_cross
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1862 #ifdef HAVE_LIMITS_H
1863 # include <limits.h>
1865 /* This structure must have no internal padding. */
1867 char prefix[sizeof "\nendian:" - 1];
1872 #if SIZEOF_SHORT == 4
1873 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
1875 ('A' << CHAR_BIT) | 'B',
1879 if { (eval echo configure:1880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1881 sed 's/^[0-7]*[ ]*/ /
1884 s/ [0-9][0-9][0-9]/./g
1890 if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
1891 ac_cv_c_compile_endian=big-endian
1892 elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
1893 ac_cv_c_compile_endian=little-endian
1898 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1901 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1902 cross_compiling=$ac_cv_prog_cc_cross
1907 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
1908 if test $ac_cv_c_compile_endian = unknown; then
1909 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
1910 elif test $ac_cv_c_compile_endian = big-endian; then
1911 cat >> confdefs.h <<\EOF
1912 #define HOST_WORDS_BIG_ENDIAN 1
1918 # See if we have the mktemp command.
1919 # Extract the first word of "mktemp", so it can be a program name with args.
1920 set dummy mktemp; ac_word=$2
1921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1922 echo "configure:1923: checking for $ac_word" >&5
1923 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 if test -n "$have_mktemp_command"; then
1927 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
1929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1931 for ac_dir in $ac_dummy; do
1932 test -z "$ac_dir" && ac_dir=.
1933 if test -f $ac_dir/$ac_word; then
1934 ac_cv_prog_have_mktemp_command="yes"
1939 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
1942 have_mktemp_command="$ac_cv_prog_have_mktemp_command"
1943 if test -n "$have_mktemp_command"; then
1944 echo "$ac_t""$have_mktemp_command" 1>&6
1946 echo "$ac_t""no" 1>&6
1950 # Extract the first word of "strip", so it can be a program name with args.
1951 set dummy strip; ac_word=$2
1952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_word" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 if test -n "$STRIP"; then
1958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1962 for ac_dir in $ac_dummy; do
1963 test -z "$ac_dir" && ac_dir=.
1964 if test -f $ac_dir/$ac_word; then
1965 ac_cv_prog_STRIP="strip"
1970 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1973 STRIP="$ac_cv_prog_STRIP"
1974 if test -n "$STRIP"; then
1975 echo "$ac_t""$STRIP" 1>&6
1977 echo "$ac_t""no" 1>&6
1981 # See if the stage1 system preprocessor understands the ANSI C
1982 # preprocessor stringification operator. (Used by symcat.h.)
1985 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
1986 echo "configure:1987: checking for preprocessor stringizing operator" >&5
1987 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 cat > conftest.$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1996 char *s = x(teststring);
1999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2000 egrep "#teststring" >/dev/null 2>&1; then
2002 ac_cv_c_stringize=no
2005 ac_cv_c_stringize=yes
2011 if test "${ac_cv_c_stringize}" = yes
2013 cat >> confdefs.h <<\EOF
2014 #define HAVE_STRINGIZE 1
2018 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
2021 # Use <inttypes.h> only if it exists,
2022 # doesn't clash with <sys/types.h>, and declares intmax_t.
2023 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
2024 echo "configure:2025: checking for inttypes.h" >&5
2025 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 #include <sys/types.h>
2032 #include <inttypes.h>
2037 if { (eval echo configure:2038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2039 gcc_cv_header_inttypes_h=yes
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 gcc_cv_header_inttypes_h=no
2049 echo "$ac_t""$gcc_cv_header_inttypes_h" 1>&6
2050 if test $gcc_cv_header_inttypes_h = yes; then
2051 cat >> confdefs.h <<\EOF
2052 #define HAVE_INTTYPES_H 1
2058 for ac_func in times clock strchr strrchr lstat
2060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_func" >&5
2062 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 /* System header to define __stub macros and hopefully few prototypes,
2069 which can conflict with char $ac_func(); below. */
2071 /* Override any gcc2 internal prototype to avoid an error. */
2072 /* We use char because int might match the return type of a gcc2
2073 builtin and then its argument prototype would still apply. */
2078 /* The GNU C library defines this for functions which it implements
2079 to always fail with ENOSYS. Some functions are actually named
2080 something starting with __ and the normal name is an alias. */
2081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2089 if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2091 eval "ac_cv_func_$ac_func=yes"
2093 echo "configure: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2096 eval "ac_cv_func_$ac_func=no"
2101 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2102 echo "$ac_t""yes" 1>&6
2103 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2104 cat >> confdefs.h <<EOF
2105 #define $ac_tr_func 1
2109 echo "$ac_t""no" 1>&6
2114 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2115 echo "configure:2116: checking for ssize_t" >&5
2116 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2122 #include <sys/types.h>
2128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2129 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2131 ac_cv_type_ssize_t=yes
2134 ac_cv_type_ssize_t=no
2139 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2140 if test $ac_cv_type_ssize_t = no; then
2141 cat >> confdefs.h <<\EOF
2148 for ac_func in getpagesize
2150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2151 echo "configure:2152: checking for $ac_func" >&5
2152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 /* System header to define __stub macros and hopefully few prototypes,
2159 which can conflict with char $ac_func(); below. */
2161 /* Override any gcc2 internal prototype to avoid an error. */
2162 /* We use char because int might match the return type of a gcc2
2163 builtin and then its argument prototype would still apply. */
2168 /* The GNU C library defines this for functions which it implements
2169 to always fail with ENOSYS. Some functions are actually named
2170 something starting with __ and the normal name is an alias. */
2171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2179 if { (eval echo configure:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2181 eval "ac_cv_func_$ac_func=yes"
2183 echo "configure: failed program was:" >&5
2184 cat conftest.$ac_ext >&5
2186 eval "ac_cv_func_$ac_func=no"
2191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2192 echo "$ac_t""yes" 1>&6
2193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2194 cat >> confdefs.h <<EOF
2195 #define $ac_tr_func 1
2199 echo "$ac_t""no" 1>&6
2203 # The test program for the next two tests is the same except for one
2205 cat >ct-mmap.inc <<'EOF'
2206 #include <sys/types.h>
2207 #include <sys/mman.h>
2213 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
2214 # define MAP_ANONYMOUS MAP_ANON
2217 /* This mess was copied from the GNU getpagesize.h. */
2218 #ifndef HAVE_GETPAGESIZE
2219 # ifdef HAVE_UNISTD_H
2220 # include <unistd.h>
2223 /* Assume that all systems that can run configure have sys/param.h. */
2224 # ifndef HAVE_SYS_PARAM_H
2225 # define HAVE_SYS_PARAM_H 1
2228 # ifdef _SC_PAGESIZE
2229 # define getpagesize() sysconf(_SC_PAGESIZE)
2230 # else /* no _SC_PAGESIZE */
2231 # ifdef HAVE_SYS_PARAM_H
2232 # include <sys/param.h>
2233 # ifdef EXEC_PAGESIZE
2234 # define getpagesize() EXEC_PAGESIZE
2235 # else /* no EXEC_PAGESIZE */
2237 # define getpagesize() NBPG * CLSIZE
2240 # endif /* no CLSIZE */
2241 # else /* no NBPG */
2243 # define getpagesize() NBPC
2244 # else /* no NBPC */
2246 # define getpagesize() PAGESIZE
2247 # endif /* PAGESIZE */
2248 # endif /* no NBPC */
2249 # endif /* no NBPG */
2250 # endif /* no EXEC_PAGESIZE */
2251 # else /* no HAVE_SYS_PARAM_H */
2252 # define getpagesize() 8192 /* punt totally */
2253 # endif /* no HAVE_SYS_PARAM_H */
2254 # endif /* no _SC_PAGESIZE */
2256 #endif /* no HAVE_GETPAGESIZE */
2259 # define MAP_FAILED -1
2263 #define perror_exit(str, val) \
2264 do { perror(str); exit(val); } while (0)
2266 /* Some versions of cygwin mmap require that munmap is called with the
2267 same parameters as mmap. GCC expects that this is not the case.
2268 Test for various forms of this problem. Warning - icky signal games. */
2270 static sigset_t unblock_sigsegv;
2280 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
2281 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
2283 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
2284 MAP_PRIVATE, devzero, 0);
2292 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
2296 /* Basic functionality test. */
2300 char *x = anonmap (pg);
2301 if (x == (char *) MAP_FAILED)
2302 perror_exit("test 0 mmap", 2);
2306 if (munmap(x, pg) < 0)
2307 perror_exit("test 0 munmap", 3);
2310 /* 1. If we map a 2-page region and unmap its second page, the first page
2315 char *x = anonmap (pg * 2);
2316 if (x == (char *)MAP_FAILED)
2317 perror_exit ("test 1 mmap", 4);
2319 signal (SIGSEGV, sigsegv);
2321 perror_exit ("test 1 fault", 5);
2326 if (munmap (x + pg, pg) < 0)
2327 perror_exit ("test 1 munmap 1", 6);
2330 if (setjmp (r) == 0)
2333 perror_exit ("test 1 no fault", 7);
2335 if (munmap (x, pg) < 0)
2336 perror_exit ("test 1 munmap 2", 8);
2339 /* 2. If we map a 2-page region and unmap its first page, the second
2340 page must remain. */
2344 char *x = anonmap (pg * 2);
2345 if (x == (char *)MAP_FAILED)
2346 perror_exit ("test 2 mmap", 9);
2348 signal (SIGSEGV, sigsegv);
2350 perror_exit ("test 2 fault", 10);
2355 if (munmap (x, pg) < 0)
2356 perror_exit ("test 2 munmap 1", 11);
2360 if (setjmp (r) == 0)
2363 perror_exit ("test 2 no fault", 12);
2366 if (munmap (x+pg, pg) < 0)
2367 perror_exit ("test 2 munmap 2", 13);
2370 /* 3. If we map two adjacent 1-page regions and unmap them both with
2371 one munmap, both must go away.
2373 Getting two adjacent 1-page regions with two mmap calls is slightly
2374 tricky. All OS's tested skip over already-allocated blocks; therefore
2375 we have been careful to unmap all allocated regions in previous tests.
2376 HP/UX allocates pages backward in memory. No OS has yet been observed
2377 to be so perverse as to leave unmapped space between consecutive calls
2386 if (x == (char *)MAP_FAILED)
2387 perror_exit ("test 3 mmap 1", 14);
2389 if (y == (char *)MAP_FAILED)
2390 perror_exit ("test 3 mmap 2", 15);
2395 z = y, y = x, x = z;
2398 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
2399 (unsigned long)x, (unsigned long)y);
2404 signal (SIGSEGV, sigsegv);
2406 perror_exit ("test 3 fault", 17);
2411 if (munmap (x, pg*2) < 0)
2412 perror_exit ("test 3 munmap", 18);
2414 if (setjmp (r) == 0)
2417 perror_exit ("test 3 no fault 1", 19);
2420 signal (SIGSEGV, sigsegv);
2421 if (setjmp (r) == 0)
2424 perror_exit ("test 3 no fault 2", 20);
2431 sigemptyset (&unblock_sigsegv);
2432 sigaddset (&unblock_sigsegv, SIGSEGV);
2433 pg = getpagesize ();
2434 #ifndef USE_MAP_ANON
2435 devzero = open ("/dev/zero", O_RDWR);
2437 perror_exit ("open /dev/zero", 1);
2449 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&6
2450 echo "configure:2451: checking for working mmap from /dev/zero" >&5
2451 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 if test "$cross_compiling" = yes; then
2455 # If this is not cygwin, and /dev/zero is a character device, it's probably
2456 # safe to assume it works.
2458 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
2459 * ) if test -c /dev/zero
2460 then ac_cv_func_mmap_dev_zero=yes
2461 else ac_cv_func_mmap_dev_zero=no
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include "ct-mmap.inc"
2470 if { (eval echo configure:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2472 ac_cv_func_mmap_dev_zero=yes
2474 echo "configure: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2478 then ac_cv_func_mmap_dev_zero=no
2479 else ac_cv_func_mmap_dev_zero=buggy
2488 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&6
2489 if test $ac_cv_func_mmap_dev_zero = yes; then
2490 cat >> confdefs.h <<\EOF
2491 #define HAVE_MMAP_DEV_ZERO 1
2496 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&6
2497 echo "configure:2498: checking for working mmap with MAP_ANON(YMOUS)" >&5
2498 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 if test "$cross_compiling" = yes; then
2502 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
2503 # just because it's there. Some SCO Un*xen define it but don't implement it.
2504 ac_cv_func_mmap_anon=no
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 #define USE_MAP_ANON
2510 #include "ct-mmap.inc"
2512 if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2514 ac_cv_func_mmap_anon=yes
2516 echo "configure: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2520 then ac_cv_func_mmap_anon=no
2521 else ac_cv_func_mmap_anon=buggy
2530 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&6
2531 if test $ac_cv_func_mmap_anon = yes; then
2532 cat >> confdefs.h <<\EOF
2533 #define HAVE_MMAP_ANON 1
2539 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&6
2540 echo "configure:2541: checking for working mmap of a file" >&5
2541 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 # Create a file one thousand bytes long.
2545 for i in 1 2 3 4 5 6 7 8 9 0
2546 do for j in 1 2 3 4 5 6 7 8 9 0
2549 done > conftestdata$$
2551 if test "$cross_compiling" = yes; then
2552 ac_cv_func_mmap_file=no
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2558 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
2559 Richard Henderson and Alexandre Oliva.
2560 Check whether read-only mmap of a plain file works. */
2561 #include <sys/types.h>
2562 #include <sys/stat.h>
2564 #include <sys/mman.h>
2572 fd = open("conftestdata$$", O_RDONLY);
2576 if (fstat (fd, &st))
2579 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
2580 if (x == (char *) -1)
2583 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
2586 if (munmap(x, st.st_size) < 0)
2592 if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2594 ac_cv_func_mmap_file=yes
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2599 ac_cv_func_mmap_file=no
2606 echo "$ac_t""$ac_cv_func_mmap_file" 1>&6
2607 if test $ac_cv_func_mmap_file = yes; then
2608 cat >> confdefs.h <<\EOF
2609 #define HAVE_MMAP_FILE 1
2615 # We will need to find libiberty.h and ansidecl.h
2616 saved_CFLAGS="$CFLAGS"
2617 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
2618 for ac_func in getenv abort errno \
2619 malloc realloc calloc free getopt clock
2621 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2622 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
2623 echo "configure:2624: checking whether $ac_func is declared" >&5
2624 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 cat > conftest.$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2631 #define $ac_tr_decl 1
2633 #include "ansidecl.h"
2638 char *(*pfn) = (char *(*)) $ac_func ;
2642 if { (eval echo configure:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2644 eval "gcc_cv_have_decl_$ac_func=yes"
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2649 eval "gcc_cv_have_decl_$ac_func=no"
2654 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
2656 #define $ac_tr_decl 1
2660 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
2661 #define $ac_tr_decl 0
2667 if test x = y ; then
2668 cat >> confdefs.h <<\EOF
2669 #define HAVE_DECL_GETENV 1
2671 cat >> confdefs.h <<\EOF
2672 #define HAVE_DECL_ABORT 1
2674 cat >> confdefs.h <<\EOF
2675 #define HAVE_DECL_ERRNO 1
2678 cat >> confdefs.h <<\EOF
2679 #define HAVE_DECL_MALLOC 1
2681 cat >> confdefs.h <<\EOF
2682 #define HAVE_DECL_REALLOC 1
2684 cat >> confdefs.h <<\EOF
2685 #define HAVE_DECL_CALLOC 1
2687 cat >> confdefs.h <<\EOF
2688 #define HAVE_DECL_FREE 1
2690 cat >> confdefs.h <<\EOF
2691 #define HAVE_DECL_GETOPT 1
2693 cat >> confdefs.h <<\EOF
2694 #define HAVE_DECL_CLOCK 1
2699 for ac_func in times
2701 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2702 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6
2703 echo "configure:2704: checking whether $ac_func is declared" >&5
2704 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2711 #define $ac_tr_decl 1
2713 #include "ansidecl.h"
2715 #ifdef HAVE_SYS_TIMES_H
2716 #include <sys/times.h>
2722 char *(*pfn) = (char *(*)) $ac_func ;
2726 if { (eval echo configure:2727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2728 eval "gcc_cv_have_decl_$ac_func=yes"
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2733 eval "gcc_cv_have_decl_$ac_func=no"
2738 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
2739 echo "$ac_t""yes" 1>&6 ; cat >> confdefs.h <<EOF
2740 #define $ac_tr_decl 1
2744 echo "$ac_t""no" 1>&6 ; cat >> confdefs.h <<EOF
2745 #define $ac_tr_decl 0
2751 if test x = y ; then
2752 cat >> confdefs.h <<\EOF
2753 #define HAVE_DECL_TIMES 1
2758 # More time-related stuff.
2759 echo $ac_n "checking for struct tms""... $ac_c" 1>&6
2760 echo "configure:2761: checking for struct tms" >&5
2761 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2769 #include "ansidecl.h"
2771 #ifdef HAVE_SYS_TIMES_H
2772 #include <sys/times.h>
2779 if { (eval echo configure:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2781 ac_cv_struct_tms=yes
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2791 echo "$ac_t""$ac_cv_struct_tms" 1>&6
2792 if test $ac_cv_struct_tms = yes; then
2793 cat >> confdefs.h <<\EOF
2794 #define HAVE_STRUCT_TMS 1
2799 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
2800 # revisit after autoconf 2.50.
2801 echo $ac_n "checking for clock_t""... $ac_c" 1>&6
2802 echo "configure:2803: checking for clock_t" >&5
2803 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2807 cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2811 #include "ansidecl.h"
2818 if { (eval echo configure:2819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2820 gcc_cv_type_clock_t=yes
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2825 gcc_cv_type_clock_t=no
2830 echo "$ac_t""$gcc_cv_type_clock_t" 1>&6
2831 if test $gcc_cv_type_clock_t = yes; then
2832 cat >> confdefs.h <<\EOF
2833 #define HAVE_CLOCK_T 1
2838 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
2839 CFLAGS="$saved_CFLAGS"
2841 # mkdir takes a single argument on some systems.
2842 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
2843 echo "configure:2844: checking if mkdir takes one argument" >&5
2844 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 cat > conftest.$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2851 #include <sys/types.h>
2852 #ifdef HAVE_SYS_STAT_H
2853 # include <sys/stat.h>
2855 #ifdef HAVE_UNISTD_H
2856 # include <unistd.h>
2858 #ifdef HAVE_DIRECT_H
2859 # include <direct.h>
2865 if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2867 gcc_cv_mkdir_takes_one_arg=no
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2872 gcc_cv_mkdir_takes_one_arg=yes
2877 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
2878 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
2879 cat >> confdefs.h <<\EOF
2880 #define MKDIR_TAKES_ONE_ARG 1
2894 build_install_headers_dir=install-headers-tar
2899 host_truncate_target=
2902 # Decode the host machine, then the target machine.
2903 # For the host machine, we save the xm_file variable as host_xm_file;
2904 # then we decode the target machine and forget everything else
2905 # that came from the host machine.
2906 #for machine in $build $host $target; do
2907 # . ${srcdir}/config.gcc
2910 extra_objs="${host_extra_objs} ${extra_objs}"
2912 # Default the target-machine variables that were not explicitly set.
2913 if test x"$tm_file" = x
2914 then tm_file=$cpu_type/$cpu_type.h; fi
2916 if test x"$extra_headers" = x
2917 then extra_headers=; fi
2919 if test x$md_file = x
2920 then md_file=$cpu_type/$cpu_type.md; fi
2922 if test x$out_file = x
2923 then out_file=$cpu_type/$cpu_type.c; fi
2925 if test x"$tmake_file" = x
2926 then tmake_file=$cpu_type/t-$cpu_type
2929 if test x"$dwarf2" = xyes
2930 then tm_file="$tm_file tm-dwarf2.h"
2933 # Handle cpp installation.
2934 if test x$enable_cpp != xno
2936 tmake_file="$tmake_file t-install-cpp"
2939 # auto-host.h is the file containing items generated by autoconf and is
2940 # the first file included by config.h.
2941 # If host=build, it is correct to have hconfig include auto-host.h
2942 # as well. If host!=build, we are in error and need to do more
2943 # work to find out the build config parameters.
2944 if test x$host = x$build
2946 build_auto=auto-host.h
2948 # We create a subdir, then run autoconf in the subdir.
2949 # To prevent recursion we set host and build for the new
2950 # invocation of configure to the build for this invocation
2957 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
2958 *) realsrcdir=../${srcdir};;
2960 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
2961 --target=$target --host=$build --build=$build
2963 # We just finished tests for the build machine, so rename
2964 # the file auto-build.h in the gcc directory.
2965 mv auto-host.h ../auto-build.h
2968 build_auto=auto-build.h
2971 tm_file="${tm_file} defaults.h"
2972 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
2973 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
2974 xm_file="ansidecl.h ${xm_file} ${tm_file}"
2976 # Truncate the target if necessary
2977 if test x$host_truncate_target != x; then
2978 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
2981 # Get the version trigger filename from the toplevel
2982 if test "${with_gcc_version_trigger+set}" = set; then
2983 gcc_version_trigger=$with_gcc_version_trigger
2985 gcc_version_trigger=${srcdir}/version.c
2987 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
2988 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
2990 # Compile in configure arguments.
2991 if test -f configargs.h ; then
2992 # Being re-configured.
2993 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
2994 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
2996 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
2998 cat > configargs.h <<EOF
2999 /* Generated automatically. */
3000 static const char configuration_arguments[] = "$gcc_config_arguments";
3001 static const char thread_model[] = "$thread_file";
3004 # Internationalization
3006 VERSION="$gcc_version"
3007 cat >> confdefs.h <<EOF
3008 #define PACKAGE "$PACKAGE"
3011 cat >> confdefs.h <<EOF
3012 #define VERSION "$VERSION"
3020 # Get an absolute path to the GCC top-level source directory
3026 out_object_file=`basename $out_file .c`.o
3028 # Figure out what assembler we will be using.
3029 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6
3030 echo "configure:3031: checking what assembler to use" >&5
3032 gcc_cv_gas_major_version=
3033 gcc_cv_gas_minor_version=
3034 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3035 if test -x "$DEFAULT_ASSEMBLER"; then
3036 gcc_cv_as="$DEFAULT_ASSEMBLER"
3037 elif test -x "$AS"; then
3039 elif test -x as$host_exeext; then
3040 # Build using assembler in the current directory.
3041 gcc_cv_as=./as$host_exeext
3042 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3043 # Single tree build which includes gas.
3044 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3046 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3047 if test x$gcc_cv_gas_version != x; then
3051 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3052 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3055 if test "x$gcc_cv_as" = x -a x$host = x$target; then
3057 # Search the same directories that the installed compiler will
3058 # search. Else we may find the wrong assembler and lose. If we
3059 # do not find a suitable assembler binary, then try the user's
3062 # Also note we have to check MD_EXEC_PREFIX before checking the
3063 # user's path. Unfortunately, there is no good way to get at the
3064 # value of MD_EXEC_PREFIX here. So we do a brute force search
3065 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
3066 # to be fixed as part of the make/configure rewrite too.
3068 if test "x$exec_prefix" = xNONE; then
3069 if test "x$prefix" = xNONE; then
3070 test_prefix=/usr/local
3075 test_prefix=$exec_prefix
3078 # If the loop below does not find an assembler, then use whatever
3079 # one we can find in the users's path.
3081 gcc_cv_as=as$host_exeext
3083 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
3084 $test_prefix/lib/gcc-lib/$target \
3085 /usr/lib/gcc/$target/$gcc_version \
3086 /usr/lib/gcc/$target \
3087 $test_prefix/$target/bin/$target/$gcc_version \
3088 $test_prefix/$target/bin \
3093 /bsd43/usr/lib/cmplrs/cc \
3094 /usr/cross64/usr/bin \
3095 /usr/lib/cmplrs/cc \
3096 /sysv/usr/lib/cmplrs/cc \
3097 /svr4/usr/lib/cmplrs/cc \
3100 for dir in $test_dirs; do
3101 if test -f $dir/as$host_exeext; then
3102 gcc_cv_as=$dir/as$host_exeext
3107 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3108 echo "$ac_t"""newly built gas"" 1>&6
3110 echo "$ac_t""$gcc_cv_as" 1>&6
3113 # Figure out what nm we will be using.
3114 echo $ac_n "checking what nm to use""... $ac_c" 1>&6
3115 echo "configure:3116: checking what nm to use" >&5
3116 if test -x nm$host_exeext; then
3117 gcc_cv_nm=./nm$host_exeext
3118 elif test x$host = x$target; then
3120 gcc_cv_nm=nm$host_exeext
3122 echo "$ac_t""$gcc_cv_nm" 1>&6
3125 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
3126 echo "configure:3127: checking whether to enable maintainer-specific portions of Makefiles" >&5
3127 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3128 if test "${enable_maintainer_mode+set}" = set; then
3129 enableval="$enable_maintainer_mode"
3130 maintainer_mode=$enableval
3136 echo "$ac_t""$maintainer_mode" 1>&6
3138 if test "$maintainer_mode" = "yes"; then
3144 # These (without "all_") are set in each config-lang.in.
3145 # `language' must be a single word so is spelled singularly.
3147 all_outputs='Makefile'
3148 # List of language makefile fragments.
3150 # Add the language fragments.
3151 # Languages are added via two mechanisms. Some information must be
3152 # recorded in makefile variables, these are defined in config-lang.in.
3153 # We accumulate them and plug them into the main Makefile.
3154 # The other mechanism is a set of hooks for each of the main targets
3155 # like `clean', `install', etc.
3157 language_fragments="Make-lang"
3159 # Define variables host_canonical and build_canonical
3160 # because some Cygnus local changes in the Makefile depend on them.
3161 build_canonical=${build}
3162 host_canonical=${host}
3164 if test "${host}" != "${target}" ; then
3165 target_subdir=${target_alias}/
3171 # Nothing to do for FLOAT_H, float_format already handled.
3175 # Substitute configuration variables
3213 # Create the Makefile
3214 # and configure language subdirectories
3216 cat > confcache <<\EOF
3217 # This file is a shell script that caches the results of configure
3218 # tests run on this system so they can be shared between configure
3219 # scripts and configure runs. It is not useful on other systems.
3220 # If it contains results you don't want to keep, you may remove or edit it.
3222 # By default, configure uses ./config.cache as the cache file,
3223 # creating it if it does not exist already. You can give configure
3224 # the --cache-file=FILE option to use a different cache file; that is
3225 # what configure does when it calls configure scripts in
3226 # subdirectories, so they share the cache.
3227 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3228 # config.status only pays attention to the cache file if you give it the
3229 # --recheck option to rerun configure.
3232 # The following way of writing the cache mishandles newlines in values,
3233 # but we know of no workaround that is simple, portable, and efficient.
3234 # So, don't put newlines in cache variables' values.
3235 # Ultrix sh set writes to stderr and can't be redirected directly,
3236 # and sets the high bit in the cache file unless we assign to the vars.
3238 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3240 # `set' does not quote correctly, so add quotes (double-quote substitution
3241 # turns \\\\ into \\, and sed turns \\ into \).
3243 -e "s/'/'\\\\''/g" \
3244 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3247 # `set' quotes correctly as required by POSIX, so do not add quotes.
3248 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3251 if cmp -s $cache_file confcache; then
3254 if test -w $cache_file; then
3255 echo "updating cache $cache_file"
3256 cat confcache > $cache_file
3258 echo "not updating unwritable cache $cache_file"
3263 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3266 # Let make expand exec_prefix.
3267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3269 # Any assignment to VPATH causes Sun make to only execute
3270 # the first set of double-colon rules, so remove it if not needed.
3271 # If there is a colon in the path, we need to keep it.
3272 if test "x$srcdir" = x.; then
3273 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3276 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3278 DEFS=-DHAVE_CONFIG_H
3280 # Without the "./", some shells look in PATH for config.status.
3281 : ${CONFIG_STATUS=./config.status}
3283 echo creating $CONFIG_STATUS
3284 rm -f $CONFIG_STATUS
3285 cat > $CONFIG_STATUS <<EOF
3287 # Generated automatically by configure.
3288 # Run this file to recreate the current configuration.
3289 # This directory was configured as follows,
3290 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3292 # $0 $ac_configure_args
3294 # Compiler output produced by configure, useful for debugging
3295 # configure, is in ./config.log if it exists.
3297 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3300 case "\$ac_option" in
3301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3302 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3303 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3304 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3305 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3307 -help | --help | --hel | --he | --h)
3308 echo "\$ac_cs_usage"; exit 0 ;;
3309 *) echo "\$ac_cs_usage"; exit 1 ;;
3313 ac_given_srcdir=$srcdir
3315 trap 'rm -fr `echo "$all_outputs auto-host.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3317 cat >> $CONFIG_STATUS <<EOF
3319 # Protect against being on the right side of a sed subst in config.status.
3320 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3321 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3325 s%@CFLAGS@%$CFLAGS%g
3326 s%@CPPFLAGS@%$CPPFLAGS%g
3327 s%@CXXFLAGS@%$CXXFLAGS%g
3328 s%@FFLAGS@%$FFLAGS%g
3330 s%@LDFLAGS@%$LDFLAGS%g
3332 s%@exec_prefix@%$exec_prefix%g
3333 s%@prefix@%$prefix%g
3334 s%@program_transform_name@%$program_transform_name%g
3335 s%@bindir@%$bindir%g
3336 s%@sbindir@%$sbindir%g
3337 s%@libexecdir@%$libexecdir%g
3338 s%@datadir@%$datadir%g
3339 s%@sysconfdir@%$sysconfdir%g
3340 s%@sharedstatedir@%$sharedstatedir%g
3341 s%@localstatedir@%$localstatedir%g
3342 s%@libdir@%$libdir%g
3343 s%@includedir@%$includedir%g
3344 s%@oldincludedir@%$oldincludedir%g
3345 s%@infodir@%$infodir%g
3346 s%@mandir@%$mandir%g
3348 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g
3349 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g
3351 s%@warn_cflags@%$warn_cflags%g
3352 s%@SET_MAKE@%$SET_MAKE%g
3355 s%@RANLIB@%$RANLIB%g
3356 s%@INSTALL@%$INSTALL%g
3357 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3358 s%@INSTALL_DATA@%$INSTALL_DATA%g
3359 s%@have_mktemp_command@%$have_mktemp_command%g
3361 s%@manext@%$manext%g
3362 s%@objext@%$objext%g
3363 s%@PACKAGE@%$PACKAGE%g
3364 s%@VERSION@%$VERSION%g
3366 s%@build_canonical@%$build_canonical%g
3367 s%@host_canonical@%$host_canonical%g
3368 s%@target_subdir@%$target_subdir%g
3369 s%@objdir@%$objdir%g
3370 s%@all_stagestuff@%$all_stagestuff%g
3371 s%@build_exeext@%$build_exeext%g
3372 s%@build_install_headers_dir@%$build_install_headers_dir%g
3373 s%@build_xm_file_list@%$build_xm_file_list%g
3374 s%@build_xm_file@%$build_xm_file%g
3375 s%@build_xm_defines@%$build_xm_defines%g
3376 s%@check_languages@%$check_languages%g
3377 s%@dep_host_xmake_file@%$dep_host_xmake_file%g
3378 s%@dep_tmake_file@%$dep_tmake_file%g
3379 s%@extra_c_flags@%$extra_c_flags%g
3380 s%@extra_headers_list@%$extra_headers_list%g
3381 s%@extra_objs@%$extra_objs%g
3382 s%@extra_parts@%$extra_parts%g
3383 s%@extra_passes@%$extra_passes%g
3384 s%@extra_programs@%$extra_programs%g
3385 s%@gcc_config_arguments@%$gcc_config_arguments%g
3386 s%@gcc_version@%$gcc_version%g
3387 s%@gcc_version_full@%$gcc_version_full%g
3388 s%@gcc_version_trigger@%$gcc_version_trigger%g
3389 s%@host_exeext@%$host_exeext%g
3390 s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g
3391 s%@install@%$install%g
3392 s%@lang_tree_files@%$lang_tree_files%g
3393 s%@local_prefix@%$local_prefix%g
3394 s%@md_file@%$md_file%g
3395 s%@out_file@%$out_file%g
3396 s%@out_object_file@%$out_object_file%g
3397 s%@symbolic_link@%$symbolic_link%g
3398 s%@thread_file@%$thread_file%g
3399 s%@c_target_objs@%$c_target_objs%g
3400 /@target_overrides@/r $target_overrides
3401 s%@target_overrides@%%g
3402 /@host_overrides@/r $host_overrides
3403 s%@host_overrides@%%g
3404 s%@cross_defines@%$cross_defines%g
3405 /@cross_overrides@/r $cross_overrides
3406 s%@cross_overrides@%%g
3407 /@build_overrides@/r $build_overrides
3408 s%@build_overrides@%%g
3413 cat >> $CONFIG_STATUS <<\EOF
3415 # Split the substitutions into bite-sized pieces for seds with
3416 # small command number limits, like on Digital OSF/1 and HP-UX.
3417 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3418 ac_file=1 # Number of current file.
3419 ac_beg=1 # First line for current file.
3420 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3423 while $ac_more_lines; do
3424 if test $ac_beg -gt 1; then
3425 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3427 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3429 if test ! -s conftest.s$ac_file; then
3431 rm -f conftest.s$ac_file
3433 if test -z "$ac_sed_cmds"; then
3434 ac_sed_cmds="sed -f conftest.s$ac_file"
3436 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3438 ac_file=`expr $ac_file + 1`
3440 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3443 if test -z "$ac_sed_cmds"; then
3448 cat >> $CONFIG_STATUS <<EOF
3450 CONFIG_FILES=\${CONFIG_FILES-"$all_outputs"}
3452 cat >> $CONFIG_STATUS <<\EOF
3453 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3456 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3457 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3458 *) ac_file_in="${ac_file}.in" ;;
3461 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3463 # Remove last slash and all that follows it. Not all systems have dirname.
3464 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3465 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3466 # The file is in a subdirectory.
3467 test ! -d "$ac_dir" && mkdir "$ac_dir"
3468 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3469 # A "../" for each directory in $ac_dir_suffix.
3470 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3472 ac_dir_suffix= ac_dots=
3475 case "$ac_given_srcdir" in
3477 if test -z "$ac_dots"; then top_srcdir=.
3478 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3479 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3481 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3482 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3486 echo creating "$ac_file"
3488 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3490 *Makefile*) ac_comsub="1i\\
3491 # $configure_input" ;;
3495 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3497 s%@configure_input@%$configure_input%g
3498 s%@srcdir@%$srcdir%g
3499 s%@top_srcdir@%$top_srcdir%g
3500 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3504 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3505 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3507 # ac_d sets the value in "#define NAME VALUE" lines.
3508 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3509 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3512 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3513 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3514 ac_uB='\([ ]\)%\1#\2define\3'
3517 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3518 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3519 ac_eB='$%\1#\2define\3'
3523 if test "${CONFIG_HEADERS+set}" != set; then
3525 cat >> $CONFIG_STATUS <<EOF
3526 CONFIG_HEADERS="auto-host.h:config.in"
3528 cat >> $CONFIG_STATUS <<\EOF
3530 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3533 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3534 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3535 *) ac_file_in="${ac_file}.in" ;;
3538 echo creating $ac_file
3540 rm -f conftest.frag conftest.in conftest.out
3541 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3542 cat $ac_file_inputs > conftest.in
3546 # Transform confdefs.h into a sed script conftest.vals that substitutes
3547 # the proper values into config.h.in to produce config.h. And first:
3548 # Protect against being on the right side of a sed subst in config.status.
3549 # Protect against being in an unquoted here document in config.status.
3551 cat > conftest.hdr <<\EOF
3554 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3558 sed -n -f conftest.hdr confdefs.h > conftest.vals
3561 # This sed command replaces #undef with comments. This is necessary, for
3562 # example, in the case of _POSIX_SOURCE, which is predefined and required
3563 # on some systems where configure will not decide to define it.
3564 cat >> conftest.vals <<\EOF
3565 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3568 # Break up conftest.vals because some shells have a limit on
3569 # the size of here documents, and old seds have small limits too.
3574 ac_lines=`grep -c . conftest.vals`
3575 # grep -c gives empty output for an empty file on some AIX systems.
3576 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3577 # Write a limited-size here document to conftest.frag.
3578 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3579 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3581 sed -f conftest.frag conftest.in > conftest.out
3583 mv conftest.out conftest.in
3585 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3587 mv conftest.tail conftest.vals
3591 cat >> $CONFIG_STATUS <<\EOF
3592 rm -f conftest.frag conftest.h
3593 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3594 cat conftest.in >> conftest.h
3596 if cmp -s $ac_file conftest.h 2>/dev/null; then
3597 echo "$ac_file is unchanged"
3600 # Remove last slash and all that follows it. Not all systems have dirname.
3601 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3602 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3603 # The file is in a subdirectory.
3604 test ! -d "$ac_dir" && mkdir "$ac_dir"
3607 mv conftest.h $ac_file
3612 cat >> $CONFIG_STATUS <<EOF
3617 target_alias='${target_alias}'
3619 symbolic_link='${symbolic_link}'
3620 program_transform_set='${program_transform_set}'
3621 program_transform_name='${program_transform_name}'
3622 dep_host_xmake_file='${dep_host_xmake_file}'
3623 host_xmake_file='${host_xmake_file}'
3624 dep_tmake_file='${dep_tmake_file}'
3625 tmake_file='${tmake_file}'
3626 thread_file='${thread_file}'
3627 gcc_config_arguments='${gcc_config_arguments}'
3628 gcc_version='${gcc_version}'
3629 gcc_version_full='${gcc_version_full}'
3630 gcc_version_trigger='${gcc_version_trigger}'
3631 local_prefix='${local_prefix}'
3632 build_install_headers_dir='${build_install_headers_dir}'
3633 build_exeext='${build_exeext}'
3634 host_exeext='${host_exeext}'
3635 out_file='${out_file}'
3636 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3637 SET_MAKE='${SET_MAKE}'
3638 target_list='${target_list}'
3639 target_overrides='${target_overrides}'
3640 host_overrides='${host_overrides}'
3641 cross_defines='${cross_defines}'
3642 cross_overrides='${cross_overrides}'
3643 build_overrides='${build_overrides}'
3644 cpp_install_dir='${cpp_install_dir}'
3647 cat >> $CONFIG_STATUS <<\EOF
3649 case x$CONFIG_HEADERS in
3650 xauto-host.h:config.in)
3654 # Avoid having to add intl to our include paths.
3655 if test -f intl/libintl.h; then
3656 echo creating libintl.h
3657 echo '#include "intl/libintl.h"' >libintl.h
3662 chmod +x $CONFIG_STATUS
3663 rm -fr confdefs* $ac_clean_files
3664 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1