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 --enable-multilib build many library versions (default)"
17 --enable-target-optspace optimize for space"
19 --enable-malloc-debugging indicate malloc debugging requested"
21 --enable-newlib-mb enable multibyte support"
23 --disable-newlib-io-float disable printf/scanf family float support"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file=./config.cache
41 program_transform_name=s,x,x,
50 bindir='${exec_prefix}/bin'
51 sbindir='${exec_prefix}/sbin'
52 libexecdir='${exec_prefix}/libexec'
53 datadir='${prefix}/share'
54 sysconfdir='${prefix}/etc'
55 sharedstatedir='${prefix}/com'
56 localstatedir='${prefix}/var'
57 libdir='${exec_prefix}/lib'
58 includedir='${prefix}/include'
59 oldincludedir='/usr/include'
60 infodir='${prefix}/info'
61 mandir='${prefix}/man'
63 # Initialize some other variables.
66 SHELL=${CONFIG_SHELL-/bin/sh}
67 # Maximum number of lines to put in a shell here document.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
93 bindir="$ac_optarg" ;;
95 -build | --build | --buil | --bui | --bu)
97 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 -cache-file | --cache-file | --cache-fil | --cache-fi \
101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
102 ac_prev=cache_file ;;
103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
105 cache_file="$ac_optarg" ;;
107 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 datadir="$ac_optarg" ;;
113 -disable-* | --disable-*)
114 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* | --enable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
137 | --exec | --exe | --ex)
138 ac_prev=exec_prefix ;;
139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
141 | --exec=* | --exe=* | --ex=*)
142 exec_prefix="$ac_optarg" ;;
144 -gas | --gas | --ga | --g)
145 # Obsolete; use --with-gas.
148 -help | --help | --hel | --he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --site-file=FILE use FILE as the site file
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host | --host | --hos | --ho)
206 -host=* | --host=* | --hos=* | --ho=*)
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
327 -site=* | --site=* | --sit=*)
330 -site-file | --site-file | --site-fil | --site-fi | --site-f)
332 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
333 sitefile="$ac_optarg" ;;
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.
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 "$sitefile"; then
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 CONFIG_SITE="$sitefile"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
522 echo "creating cache $cache_file"
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='\c' ac_t=
550 for ac_dir in ../../../.. $srcdir/../../../..; do
551 if test -f $ac_dir/install-sh; then
553 ac_install_sh="$ac_aux_dir/install-sh -c"
555 elif test -f $ac_dir/install.sh; then
557 ac_install_sh="$ac_aux_dir/install.sh -c"
561 if test -z "$ac_aux_dir"; then
562 { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
564 ac_config_guess=$ac_aux_dir/config.guess
565 ac_config_sub=$ac_aux_dir/config.sub
566 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
569 # Find a good install program. We prefer a C program (faster),
570 # so one script is as good as another. But avoid the broken or
571 # incompatible versions:
572 # SysV /etc/install, /usr/sbin/install
573 # SunOS /usr/etc/install
576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
579 # ./install, which can be erroneously created by make from ./install.sh.
580 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
581 echo "configure:582: checking for a BSD compatible install" >&5
582 if test -z "$INSTALL"; then
583 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
587 for ac_dir in $PATH; do
588 # Account for people who put trailing slashes in PATH elements.
590 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
592 # OSF1 and SCO ODT 3.0 have their own names for install.
593 # Don't use installbsd from OSF since it installs stuff as root
595 for ac_prog in ginstall scoinst install; do
596 if test -f $ac_dir/$ac_prog; then
597 if test $ac_prog = install &&
598 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
599 # AIX install. It has an incompatible calling convention.
602 ac_cv_path_install="$ac_dir/$ac_prog -c"
613 if test "${ac_cv_path_install+set}" = set; then
614 INSTALL="$ac_cv_path_install"
616 # As a last resort, use the slow shell script. We don't cache a
617 # path for INSTALL within a source directory, because that will
618 # break other packages using the cache if that directory is
619 # removed, or if the path is relative.
620 INSTALL="$ac_install_sh"
623 echo "$ac_t""$INSTALL" 1>&6
625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
626 # It thinks the first close brace ends the variable substitution.
627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
633 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
634 echo "configure:635: checking whether build environment is sane" >&5
637 echo timestamp > conftestfile
638 # Do `set' in a subshell so we don't clobber the current shell's
639 # arguments. Must try -L first in case configure is actually a
640 # symlink; some systems play weird games with the mod time of symlinks
641 # (eg FreeBSD returns the mod time of the symlink's containing
644 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
645 if test "$*" = "X"; then
647 set X `ls -t $srcdir/configure conftestfile`
649 if test "$*" != "X $srcdir/configure conftestfile" \
650 && test "$*" != "X conftestfile $srcdir/configure"; then
652 # If neither matched, then we have a broken ls. This can happen
653 # if, for instance, CONFIG_SHELL is bash and it inherits a
654 # broken ls alias from the environment. This has actually
655 # happened. Such a system could not be considered "sane".
656 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
657 alias in your environment" 1>&2; exit 1; }
660 test "$2" = conftestfile
666 { echo "configure: error: newly created file is older than distributed files!
667 Check your system clock" 1>&2; exit 1; }
670 echo "$ac_t""yes" 1>&6
671 if test "$program_transform_name" = s,x,x,; then
672 program_transform_name=
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED > conftestsed
676 s,\\,\\\\,g; s,\$,$$,g
678 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
681 test "$program_prefix" != NONE &&
682 program_transform_name="s,^,${program_prefix},; $program_transform_name"
683 # Use a double $ so make ignores it.
684 test "$program_suffix" != NONE &&
685 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
687 # sed with no file args requires a program.
688 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
690 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${MAKE-make} sets \${MAKE}" >&5
692 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
693 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 cat > conftestmake <<\EOF
698 @echo 'ac_maketemp="${MAKE}"'
700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
701 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
702 if test -n "$ac_maketemp"; then
703 eval ac_cv_prog_make_${ac_make}_set=yes
705 eval ac_cv_prog_make_${ac_make}_set=no
709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
710 echo "$ac_t""yes" 1>&6
713 echo "$ac_t""no" 1>&6
714 SET_MAKE="MAKE=${MAKE-make}"
717 if test $host != $build; then
718 ac_tool_prefix=${host_alias}-
723 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
724 echo "configure:725: checking for Cygwin environment" >&5
725 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 cat > conftest.$ac_ext <<EOF
729 #line 730 "configure"
730 #include "confdefs.h"
735 #define __CYGWIN__ __CYGWIN32__
740 if { (eval echo configure:741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
744 echo "configure: failed program was:" >&5
745 cat conftest.$ac_ext >&5
753 echo "$ac_t""$ac_cv_cygwin" 1>&6
755 test "$ac_cv_cygwin" = yes && CYGWIN=yes
756 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
757 echo "configure:758: checking for mingw32 environment" >&5
758 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 cat > conftest.$ac_ext <<EOF
762 #line 763 "configure"
763 #include "confdefs.h"
769 if { (eval echo configure:770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
773 echo "configure: failed program was:" >&5
774 cat conftest.$ac_ext >&5
782 echo "$ac_t""$ac_cv_mingw32" 1>&6
784 test "$ac_cv_mingw32" = yes && MINGW32=yes
786 # Check whether --enable-multilib or --disable-multilib was given.
787 if test "${enable_multilib+set}" = set; then
788 enableval="$enable_multilib"
789 case "${enableval}" in
792 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
798 # Check whether --enable-target-optspace or --disable-target-optspace was given.
799 if test "${enable_target_optspace+set}" = set; then
800 enableval="$enable_target_optspace"
801 case "${enableval}" in
802 yes) target_optspace=yes ;;
803 no) target_optspace=no ;;
804 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
810 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
811 if test "${enable_malloc_debugging+set}" = set; then
812 enableval="$enable_malloc_debugging"
813 case "${enableval}" in
814 yes) malloc_debugging=yes ;;
815 no) malloc_debugging=no ;;
816 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
822 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
823 if test "${enable_newlib_mb+set}" = set; then
824 enableval="$enable_newlib_mb"
825 case "${enableval}" in
826 yes) newlib_mb=yes ;;
828 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
834 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
835 if test "${enable_newlib_io_float+set}" = set; then
836 enableval="$enable_newlib_io_float"
837 case "${enableval}" in
838 yes) newlib_io_float=yes ;;
839 no) newlib_io_float=no ;;
840 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
848 test -z "${with_target_subdir}" && with_target_subdir=.
850 if test "${srcdir}" = "."; then
851 if test "${with_target_subdir}" != "."; then
852 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
854 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
857 newlib_basedir="${srcdir}/../../.."
862 # Make sure we can run config.sub.
863 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
864 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
867 echo $ac_n "checking host system type""... $ac_c" 1>&6
868 echo "configure:869: checking host system type" >&5
871 case "$host_alias" in
875 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
876 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
878 *) host_alias=$nonopt ;;
882 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
883 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
884 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
885 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
886 echo "$ac_t""$host" 1>&6
894 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
895 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
897 cat >> confdefs.h <<EOF
898 #define PACKAGE "$PACKAGE"
901 cat >> confdefs.h <<EOF
902 #define VERSION "$VERSION"
907 missing_dir=`cd $ac_aux_dir && pwd`
908 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
909 echo "configure:910: checking for working aclocal" >&5
910 # Run test in a subshell; some versions of sh will print an error if
911 # an executable is not found, even if stderr is redirected.
912 # Redirect stdin to placate older versions of autoconf. Sigh.
913 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
915 echo "$ac_t""found" 1>&6
917 ACLOCAL="$missing_dir/missing aclocal"
918 echo "$ac_t""missing" 1>&6
921 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
922 echo "configure:923: checking for working autoconf" >&5
923 # Run test in a subshell; some versions of sh will print an error if
924 # an executable is not found, even if stderr is redirected.
925 # Redirect stdin to placate older versions of autoconf. Sigh.
926 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
928 echo "$ac_t""found" 1>&6
930 AUTOCONF="$missing_dir/missing autoconf"
931 echo "$ac_t""missing" 1>&6
934 echo $ac_n "checking for working automake""... $ac_c" 1>&6
935 echo "configure:936: checking for working automake" >&5
936 # Run test in a subshell; some versions of sh will print an error if
937 # an executable is not found, even if stderr is redirected.
938 # Redirect stdin to placate older versions of autoconf. Sigh.
939 if (automake --version) < /dev/null > /dev/null 2>&1; then
941 echo "$ac_t""found" 1>&6
943 AUTOMAKE="$missing_dir/missing automake"
944 echo "$ac_t""missing" 1>&6
947 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
948 echo "configure:949: checking for working autoheader" >&5
949 # Run test in a subshell; some versions of sh will print an error if
950 # an executable is not found, even if stderr is redirected.
951 # Redirect stdin to placate older versions of autoconf. Sigh.
952 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
953 AUTOHEADER=autoheader
954 echo "$ac_t""found" 1>&6
956 AUTOHEADER="$missing_dir/missing autoheader"
957 echo "$ac_t""missing" 1>&6
960 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
961 echo "configure:962: checking for working makeinfo" >&5
962 # Run test in a subshell; some versions of sh will print an error if
963 # an executable is not found, even if stderr is redirected.
964 # Redirect stdin to placate older versions of autoconf. Sigh.
965 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
967 echo "$ac_t""found" 1>&6
969 MAKEINFO="$missing_dir/missing makeinfo"
970 echo "$ac_t""missing" 1>&6
975 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
976 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
977 # are probably using a cross compiler, which will not be able to fully
978 # link an executable. This should really be fixed in autoconf
983 # Extract the first word of "gcc", so it can be a program name with args.
984 set dummy gcc; ac_word=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
990 if test -n "$CC"; then
991 ac_cv_prog_CC="$CC" # Let the user override the test.
993 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
995 for ac_dir in $ac_dummy; do
996 test -z "$ac_dir" && ac_dir=.
997 if test -f $ac_dir/$ac_word; then
1006 if test -n "$CC"; then
1007 echo "$ac_t""$CC" 1>&6
1009 echo "$ac_t""no" 1>&6
1012 if test -z "$CC"; then
1013 # Extract the first word of "cc", so it can be a program name with args.
1014 set dummy cc; ac_word=$2
1015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1016 echo "configure:1017: checking for $ac_word" >&5
1017 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1018 echo $ac_n "(cached) $ac_c" 1>&6
1020 if test -n "$CC"; then
1021 ac_cv_prog_CC="$CC" # Let the user override the test.
1023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1026 for ac_dir in $ac_dummy; do
1027 test -z "$ac_dir" && ac_dir=.
1028 if test -f $ac_dir/$ac_word; then
1029 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1030 ac_prog_rejected=yes
1038 if test $ac_prog_rejected = yes; then
1039 # We found a bogon in the path, so make sure we never use it.
1040 set dummy $ac_cv_prog_CC
1042 if test $# -gt 0; then
1043 # We chose a different compiler from the bogus one.
1044 # However, it has the same basename, so the bogon will be chosen
1045 # first if we set CC to just the basename; use the full file name.
1047 set dummy "$ac_dir/$ac_word" "$@"
1055 if test -n "$CC"; then
1056 echo "$ac_t""$CC" 1>&6
1058 echo "$ac_t""no" 1>&6
1061 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1064 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1065 echo "configure:1066: checking whether we are using GNU C" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1069 cat > conftest.c <<EOF
1074 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1081 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1083 if test $ac_cv_prog_gcc = yes; then
1085 ac_test_CFLAGS="${CFLAGS+set}"
1086 ac_save_CFLAGS="$CFLAGS"
1088 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether ${CC-cc} accepts -g" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 echo 'void f(){}' > conftest.c
1094 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1103 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1104 if test "$ac_test_CFLAGS" = set; then
1105 CFLAGS="$ac_save_CFLAGS"
1106 elif test $ac_cv_prog_cc_g = yes; then
1113 test "${CFLAGS+set}" = set || CFLAGS="-g"
1117 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1118 # run it explicitly here, it will be run implicitly before
1119 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1120 # be run before AC_CANONICAL_HOST.
1121 echo $ac_n "checking build system type""... $ac_c" 1>&6
1122 echo "configure:1123: checking build system type" >&5
1125 case "$build_alias" in
1128 NONE) build_alias=$host_alias ;;
1129 *) build_alias=$nonopt ;;
1133 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1134 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1135 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1136 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1137 echo "$ac_t""$build" 1>&6
1140 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1141 set dummy ${ac_tool_prefix}as; ac_word=$2
1142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1143 echo "configure:1144: checking for $ac_word" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 if test -n "$AS"; then
1148 ac_cv_prog_AS="$AS" # Let the user override the test.
1150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1152 for ac_dir in $ac_dummy; do
1153 test -z "$ac_dir" && ac_dir=.
1154 if test -f $ac_dir/$ac_word; then
1155 ac_cv_prog_AS="${ac_tool_prefix}as"
1160 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1164 if test -n "$AS"; then
1165 echo "$ac_t""$AS" 1>&6
1167 echo "$ac_t""no" 1>&6
1172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1173 set dummy ${ac_tool_prefix}ar; ac_word=$2
1174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175 echo "configure:1176: checking for $ac_word" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 if test -n "$AR"; then
1180 ac_cv_prog_AR="$AR" # Let the user override the test.
1182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1184 for ac_dir in $ac_dummy; do
1185 test -z "$ac_dir" && ac_dir=.
1186 if test -f $ac_dir/$ac_word; then
1187 ac_cv_prog_AR="${ac_tool_prefix}ar"
1192 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1196 if test -n "$AR"; then
1197 echo "$ac_t""$AR" 1>&6
1199 echo "$ac_t""no" 1>&6
1204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_word" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 if test -n "$RANLIB"; then
1212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1216 for ac_dir in $ac_dummy; do
1217 test -z "$ac_dir" && ac_dir=.
1218 if test -f $ac_dir/$ac_word; then
1219 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1226 RANLIB="$ac_cv_prog_RANLIB"
1227 if test -n "$RANLIB"; then
1228 echo "$ac_t""$RANLIB" 1>&6
1230 echo "$ac_t""no" 1>&6
1234 if test -z "$ac_cv_prog_RANLIB"; then
1235 if test -n "$ac_tool_prefix"; then
1236 # Extract the first word of "ranlib", so it can be a program name with args.
1237 set dummy ranlib; ac_word=$2
1238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1239 echo "configure:1240: checking for $ac_word" >&5
1240 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 if test -n "$RANLIB"; then
1244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1248 for ac_dir in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir=.
1250 if test -f $ac_dir/$ac_word; then
1251 ac_cv_prog_RANLIB="ranlib"
1256 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1259 RANLIB="$ac_cv_prog_RANLIB"
1260 if test -n "$RANLIB"; then
1261 echo "$ac_t""$RANLIB" 1>&6
1263 echo "$ac_t""no" 1>&6
1272 # Find a good install program. We prefer a C program (faster),
1273 # so one script is as good as another. But avoid the broken or
1274 # incompatible versions:
1275 # SysV /etc/install, /usr/sbin/install
1276 # SunOS /usr/etc/install
1277 # IRIX /sbin/install
1279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1282 # ./install, which can be erroneously created by make from ./install.sh.
1283 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1284 echo "configure:1285: checking for a BSD compatible install" >&5
1285 if test -z "$INSTALL"; then
1286 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1290 for ac_dir in $PATH; do
1291 # Account for people who put trailing slashes in PATH elements.
1293 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1295 # OSF1 and SCO ODT 3.0 have their own names for install.
1296 # Don't use installbsd from OSF since it installs stuff as root
1298 for ac_prog in ginstall scoinst install; do
1299 if test -f $ac_dir/$ac_prog; then
1300 if test $ac_prog = install &&
1301 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1302 # AIX install. It has an incompatible calling convention.
1305 ac_cv_path_install="$ac_dir/$ac_prog -c"
1316 if test "${ac_cv_path_install+set}" = set; then
1317 INSTALL="$ac_cv_path_install"
1319 # As a last resort, use the slow shell script. We don't cache a
1320 # path for INSTALL within a source directory, because that will
1321 # break other packages using the cache if that directory is
1322 # removed, or if the path is relative.
1323 INSTALL="$ac_install_sh"
1326 echo "$ac_t""$INSTALL" 1>&6
1328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1329 # It thinks the first close brace ends the variable substitution.
1330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1337 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1338 echo "configure:1339: checking whether to enable maintainer-specific portions of Makefiles" >&5
1339 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1340 if test "${enable_maintainer_mode+set}" = set; then
1341 enableval="$enable_maintainer_mode"
1342 USE_MAINTAINER_MODE=$enableval
1344 USE_MAINTAINER_MODE=no
1347 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1350 if test $USE_MAINTAINER_MODE = yes; then
1351 MAINTAINER_MODE_TRUE=
1352 MAINTAINER_MODE_FALSE='#'
1354 MAINTAINER_MODE_TRUE='#'
1355 MAINTAINER_MODE_FALSE=
1357 MAINT=$MAINTAINER_MODE_TRUE
1361 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1362 # at least currently, we never actually build a program, so we never
1363 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1364 # fails, because we are probably configuring with a cross compiler
1365 # which can't create executables. So we include AC_EXEEXT to keep
1366 # automake happy, but we don't execute it, since we don't care about
1371 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1372 echo "configure:1373: checking for executable suffix" >&5
1373 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1380 echo 'int main () { return 0; }' > conftest.$ac_ext
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1383 for file in conftest.*; do
1385 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1386 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1390 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1393 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1398 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1399 echo "$ac_t""${ac_cv_exeext}" 1>&6
1404 . ${newlib_basedir}/configure.host
1406 newlib_cflags="${newlib_cflags} -fno-builtin"
1408 NEWLIB_CFLAGS=${newlib_cflags}
1416 if test x${use_libtool} = xyes; then
1418 USE_LIBTOOL_FALSE='#'
1420 USE_LIBTOOL_TRUE='#'
1431 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1432 echo "configure:1433: checking how to run the C preprocessor" >&5
1433 # On Suns, sometimes $CPP names a directory.
1434 if test -n "$CPP" && test -d "$CPP"; then
1437 if test -z "$CPP"; then
1438 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 # This must be in double quotes, not single quotes, because CPP may get
1442 # substituted into the Makefile and "${CC-cc}" will confuse make.
1444 # On the NeXT, cc -E runs the code through the compiler's parser,
1445 # not just through cpp.
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1453 { (eval echo configure:1454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1455 if test -z "$ac_err"; then
1459 echo "configure: failed program was:" >&5
1460 cat conftest.$ac_ext >&5
1462 CPP="${CC-cc} -E -traditional-cpp"
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1470 { (eval echo configure:1471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1472 if test -z "$ac_err"; then
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1479 CPP="${CC-cc} -nologo -E"
1480 cat > conftest.$ac_ext <<EOF
1481 #line 1482 "configure"
1482 #include "confdefs.h"
1486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1487 { (eval echo configure:1488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1489 if test -z "$ac_err"; then
1493 echo "configure: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1503 ac_cv_prog_CPP="$CPP"
1505 CPP="$ac_cv_prog_CPP"
1507 ac_cv_prog_CPP="$CPP"
1509 echo "$ac_t""$CPP" 1>&6
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1521 egrep "sh5" >/dev/null 2>&1; then
1532 if test $have_sh64 = yes; then
1541 cat > confcache <<\EOF
1542 # This file is a shell script that caches the results of configure
1543 # tests run on this system so they can be shared between configure
1544 # scripts and configure runs. It is not useful on other systems.
1545 # If it contains results you don't want to keep, you may remove or edit it.
1547 # By default, configure uses ./config.cache as the cache file,
1548 # creating it if it does not exist already. You can give configure
1549 # the --cache-file=FILE option to use a different cache file; that is
1550 # what configure does when it calls configure scripts in
1551 # subdirectories, so they share the cache.
1552 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1553 # config.status only pays attention to the cache file if you give it the
1554 # --recheck option to rerun configure.
1557 # The following way of writing the cache mishandles newlines in values,
1558 # but we know of no workaround that is simple, portable, and efficient.
1559 # So, don't put newlines in cache variables' values.
1560 # Ultrix sh set writes to stderr and can't be redirected directly,
1561 # and sets the high bit in the cache file unless we assign to the vars.
1563 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1565 # `set' does not quote correctly, so add quotes (double-quote substitution
1566 # turns \\\\ into \\, and sed turns \\ into \).
1568 -e "s/'/'\\\\''/g" \
1569 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1572 # `set' quotes correctly as required by POSIX, so do not add quotes.
1573 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1576 if cmp -s $cache_file confcache; then
1579 if test -w $cache_file; then
1580 echo "updating cache $cache_file"
1581 cat confcache > $cache_file
1583 echo "not updating unwritable cache $cache_file"
1588 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1591 # Let make expand exec_prefix.
1592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1594 # Any assignment to VPATH causes Sun make to only execute
1595 # the first set of double-colon rules, so remove it if not needed.
1596 # If there is a colon in the path, we need to keep it.
1597 if test "x$srcdir" = x.; then
1598 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1601 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1603 # Transform confdefs.h into DEFS.
1604 # Protect against shell expansion while executing Makefile rules.
1605 # Protect against Makefile macro expansion.
1606 cat > conftest.defs <<\EOF
1607 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1608 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1613 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1617 # Without the "./", some shells look in PATH for config.status.
1618 : ${CONFIG_STATUS=./config.status}
1620 echo creating $CONFIG_STATUS
1621 rm -f $CONFIG_STATUS
1622 cat > $CONFIG_STATUS <<EOF
1624 # Generated automatically by configure.
1625 # Run this file to recreate the current configuration.
1626 # This directory was configured as follows,
1627 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1629 # $0 $ac_configure_args
1631 # Compiler output produced by configure, useful for debugging
1632 # configure, is in ./config.log if it exists.
1634 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1637 case "\$ac_option" in
1638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1639 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1640 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1641 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1642 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1644 -help | --help | --hel | --he | --h)
1645 echo "\$ac_cs_usage"; exit 0 ;;
1646 *) echo "\$ac_cs_usage"; exit 1 ;;
1650 ac_given_srcdir=$srcdir
1651 ac_given_INSTALL="$INSTALL"
1653 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1655 cat >> $CONFIG_STATUS <<EOF
1657 # Protect against being on the right side of a sed subst in config.status.
1658 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1659 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1663 s%@CFLAGS@%$CFLAGS%g
1664 s%@CPPFLAGS@%$CPPFLAGS%g
1665 s%@CXXFLAGS@%$CXXFLAGS%g
1666 s%@FFLAGS@%$FFLAGS%g
1668 s%@LDFLAGS@%$LDFLAGS%g
1670 s%@exec_prefix@%$exec_prefix%g
1671 s%@prefix@%$prefix%g
1672 s%@program_transform_name@%$program_transform_name%g
1673 s%@bindir@%$bindir%g
1674 s%@sbindir@%$sbindir%g
1675 s%@libexecdir@%$libexecdir%g
1676 s%@datadir@%$datadir%g
1677 s%@sysconfdir@%$sysconfdir%g
1678 s%@sharedstatedir@%$sharedstatedir%g
1679 s%@localstatedir@%$localstatedir%g
1680 s%@libdir@%$libdir%g
1681 s%@includedir@%$includedir%g
1682 s%@oldincludedir@%$oldincludedir%g
1683 s%@infodir@%$infodir%g
1684 s%@mandir@%$mandir%g
1685 s%@newlib_basedir@%$newlib_basedir%g
1687 s%@host_alias@%$host_alias%g
1688 s%@host_cpu@%$host_cpu%g
1689 s%@host_vendor@%$host_vendor%g
1690 s%@host_os@%$host_os%g
1691 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1692 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1693 s%@INSTALL_DATA@%$INSTALL_DATA%g
1694 s%@PACKAGE@%$PACKAGE%g
1695 s%@VERSION@%$VERSION%g
1696 s%@ACLOCAL@%$ACLOCAL%g
1697 s%@AUTOCONF@%$AUTOCONF%g
1698 s%@AUTOMAKE@%$AUTOMAKE%g
1699 s%@AUTOHEADER@%$AUTOHEADER%g
1700 s%@MAKEINFO@%$MAKEINFO%g
1701 s%@SET_MAKE@%$SET_MAKE%g
1704 s%@build_alias@%$build_alias%g
1705 s%@build_cpu@%$build_cpu%g
1706 s%@build_vendor@%$build_vendor%g
1707 s%@build_os@%$build_os%g
1710 s%@RANLIB@%$RANLIB%g
1711 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1712 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1714 s%@EXEEXT@%$EXEEXT%g
1715 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1716 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
1717 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
1720 s%@libm_machine_dir@%$libm_machine_dir%g
1721 s%@machine_dir@%$machine_dir%g
1722 s%@sys_dir@%$sys_dir%g
1724 s%@SH64_TRUE@%$SH64_TRUE%g
1725 s%@SH64_FALSE@%$SH64_FALSE%g
1730 cat >> $CONFIG_STATUS <<\EOF
1732 # Split the substitutions into bite-sized pieces for seds with
1733 # small command number limits, like on Digital OSF/1 and HP-UX.
1734 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
1735 ac_file=1 # Number of current file.
1736 ac_beg=1 # First line for current file.
1737 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1740 while $ac_more_lines; do
1741 if test $ac_beg -gt 1; then
1742 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1744 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1746 if test ! -s conftest.s$ac_file; then
1748 rm -f conftest.s$ac_file
1750 if test -z "$ac_sed_cmds"; then
1751 ac_sed_cmds="sed -f conftest.s$ac_file"
1753 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1755 ac_file=`expr $ac_file + 1`
1757 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1760 if test -z "$ac_sed_cmds"; then
1765 cat >> $CONFIG_STATUS <<EOF
1767 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1769 cat >> $CONFIG_STATUS <<\EOF
1770 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1771 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1773 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1774 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1775 *) ac_file_in="${ac_file}.in" ;;
1778 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1780 # Remove last slash and all that follows it. Not all systems have dirname.
1781 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1782 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1783 # The file is in a subdirectory.
1784 test ! -d "$ac_dir" && mkdir "$ac_dir"
1785 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1786 # A "../" for each directory in $ac_dir_suffix.
1787 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1789 ac_dir_suffix= ac_dots=
1792 case "$ac_given_srcdir" in
1794 if test -z "$ac_dots"; then top_srcdir=.
1795 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1796 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1798 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1799 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1802 case "$ac_given_INSTALL" in
1803 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1804 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1807 echo creating "$ac_file"
1809 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1811 *Makefile*) ac_comsub="1i\\
1812 # $configure_input" ;;
1816 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1818 s%@configure_input@%$configure_input%g
1819 s%@srcdir@%$srcdir%g
1820 s%@top_srcdir@%$top_srcdir%g
1821 s%@INSTALL@%$INSTALL%g
1822 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1827 cat >> $CONFIG_STATUS <<EOF
1830 cat >> $CONFIG_STATUS <<\EOF
1834 chmod +x $CONFIG_STATUS
1835 rm -fr confdefs* $ac_clean_files
1836 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1