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 --enable-newlib-iconv enable iconv library support"
25 --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in"
27 --enable-newlib-multithread enable support for multiple threads"
29 --enable-newlib-elix-level supply desired elix library level (1-4)"
31 --disable-newlib-io-float disable printf/scanf family float support"
33 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file=./config.cache
51 program_transform_name=s,x,x,
59 bindir='${exec_prefix}/bin'
60 sbindir='${exec_prefix}/sbin'
61 libexecdir='${exec_prefix}/libexec'
62 datadir='${prefix}/share'
63 sysconfdir='${prefix}/etc'
64 sharedstatedir='${prefix}/com'
65 localstatedir='${prefix}/var'
66 libdir='${exec_prefix}/lib'
67 includedir='${prefix}/include'
68 oldincludedir='/usr/include'
69 infodir='${prefix}/info'
70 mandir='${prefix}/man'
72 # Initialize some other variables.
75 SHELL=${CONFIG_SHELL-/bin/sh}
76 # Maximum number of lines to put in a shell here document.
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
91 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 # Accept the important Cygnus configure options, so we can diagnose typos.
99 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102 bindir="$ac_optarg" ;;
104 -build | --build | --buil | --bui | --bu)
106 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107 build="$ac_optarg" ;;
109 -cache-file | --cache-file | --cache-fil | --cache-fi \
110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
111 ac_prev=cache_file ;;
112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
114 cache_file="$ac_optarg" ;;
116 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 datadir="$ac_optarg" ;;
122 -disable-* | --disable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
129 eval "enable_${ac_feature}=no" ;;
131 -enable-* | --enable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
144 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
145 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
146 | --exec | --exe | --ex)
147 ac_prev=exec_prefix ;;
148 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
149 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
150 | --exec=* | --exe=* | --ex=*)
151 exec_prefix="$ac_optarg" ;;
153 -gas | --gas | --ga | --g)
154 # Obsolete; use --with-gas.
157 -help | --help | --hel | --he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
341 srcdir="$ac_optarg" ;;
343 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
344 | --syscon | --sysco | --sysc | --sys | --sy)
345 ac_prev=sysconfdir ;;
346 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
347 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
348 sysconfdir="$ac_optarg" ;;
350 -target | --target | --targe | --targ | --tar | --ta | --t)
352 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353 target="$ac_optarg" ;;
355 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 -version | --version | --versio | --versi | --vers)
359 echo "configure generated by autoconf version 2.13"
363 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}='$ac_optarg'" ;;
375 -without-* | --without-*)
376 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
385 # Obsolete; use --with-x.
388 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
389 | --x-incl | --x-inc | --x-in | --x-i)
390 ac_prev=x_includes ;;
391 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
392 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
393 x_includes="$ac_optarg" ;;
395 -x-libraries | --x-libraries | --x-librarie | --x-librari \
396 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
397 ac_prev=x_libraries ;;
398 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
399 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
400 x_libraries="$ac_optarg" ;;
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 if test "x$nonopt" != xNONE; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424 # File descriptor usage:
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
450 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451 | --no-cr | --no-c) ;;
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461 # Only set these to C if already set. These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
466 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
468 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
477 ac_unique_file=creat.c
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481 ac_srcdir_defaulted=yes
482 # Try the directory containing this script, then its parent.
484 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 if test ! -r $srcdir/$ac_unique_file; then
491 ac_srcdir_defaulted=no
493 if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE; then
505 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 for ac_site_file in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
521 echo "creating cache $cache_file"
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp='$CPP $CPPFLAGS'
528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543 ac_n= ac_c='\c' ac_t=
549 for ac_dir in ../../../.. $srcdir/../../../..; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh; then
556 ac_install_sh="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
568 # Find a good install program. We prefer a C program (faster),
569 # so one script is as good as another. But avoid the broken or
570 # incompatible versions:
571 # SysV /etc/install, /usr/sbin/install
572 # SunOS /usr/etc/install
575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
578 # ./install, which can be erroneously created by make from ./install.sh.
579 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
580 echo "configure:581: checking for a BSD compatible install" >&5
581 if test -z "$INSTALL"; then
582 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
583 echo $ac_n "(cached) $ac_c" 1>&6
585 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
586 for ac_dir in $PATH; do
587 # Account for people who put trailing slashes in PATH elements.
589 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
591 # OSF1 and SCO ODT 3.0 have their own names for install.
592 # Don't use installbsd from OSF since it installs stuff as root
594 for ac_prog in ginstall scoinst install; do
595 if test -f $ac_dir/$ac_prog; then
596 if test $ac_prog = install &&
597 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
598 # AIX install. It has an incompatible calling convention.
601 ac_cv_path_install="$ac_dir/$ac_prog -c"
612 if test "${ac_cv_path_install+set}" = set; then
613 INSTALL="$ac_cv_path_install"
615 # As a last resort, use the slow shell script. We don't cache a
616 # path for INSTALL within a source directory, because that will
617 # break other packages using the cache if that directory is
618 # removed, or if the path is relative.
619 INSTALL="$ac_install_sh"
622 echo "$ac_t""$INSTALL" 1>&6
624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
625 # It thinks the first close brace ends the variable substitution.
626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
632 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
633 echo "configure:634: checking whether build environment is sane" >&5
636 echo timestamp > conftestfile
637 # Do `set' in a subshell so we don't clobber the current shell's
638 # arguments. Must try -L first in case configure is actually a
639 # symlink; some systems play weird games with the mod time of symlinks
640 # (eg FreeBSD returns the mod time of the symlink's containing
643 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
644 if test "$*" = "X"; then
646 set X `ls -t $srcdir/configure conftestfile`
648 if test "$*" != "X $srcdir/configure conftestfile" \
649 && test "$*" != "X conftestfile $srcdir/configure"; then
651 # If neither matched, then we have a broken ls. This can happen
652 # if, for instance, CONFIG_SHELL is bash and it inherits a
653 # broken ls alias from the environment. This has actually
654 # happened. Such a system could not be considered "sane".
655 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
656 alias in your environment" 1>&2; exit 1; }
659 test "$2" = conftestfile
665 { echo "configure: error: newly created file is older than distributed files!
666 Check your system clock" 1>&2; exit 1; }
669 echo "$ac_t""yes" 1>&6
670 if test "$program_transform_name" = s,x,x,; then
671 program_transform_name=
673 # Double any \ or $. echo might interpret backslashes.
674 cat <<\EOF_SED > conftestsed
675 s,\\,\\\\,g; s,\$,$$,g
677 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
680 test "$program_prefix" != NONE &&
681 program_transform_name="s,^,${program_prefix},; $program_transform_name"
682 # Use a double $ so make ignores it.
683 test "$program_suffix" != NONE &&
684 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
686 # sed with no file args requires a program.
687 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
689 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
690 echo "configure:691: checking whether ${MAKE-make} sets \${MAKE}" >&5
691 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
692 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 cat > conftestmake <<\EOF
697 @echo 'ac_maketemp="${MAKE}"'
699 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
700 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
701 if test -n "$ac_maketemp"; then
702 eval ac_cv_prog_make_${ac_make}_set=yes
704 eval ac_cv_prog_make_${ac_make}_set=no
708 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
709 echo "$ac_t""yes" 1>&6
712 echo "$ac_t""no" 1>&6
713 SET_MAKE="MAKE=${MAKE-make}"
716 if test $host != $build; then
717 ac_tool_prefix=${host_alias}-
722 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
723 echo "configure:724: checking for Cygwin environment" >&5
724 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
727 cat > conftest.$ac_ext <<EOF
728 #line 729 "configure"
729 #include "confdefs.h"
734 #define __CYGWIN__ __CYGWIN32__
739 if { (eval echo configure:740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
743 echo "configure: failed program was:" >&5
744 cat conftest.$ac_ext >&5
752 echo "$ac_t""$ac_cv_cygwin" 1>&6
754 test "$ac_cv_cygwin" = yes && CYGWIN=yes
755 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
756 echo "configure:757: checking for mingw32 environment" >&5
757 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
760 cat > conftest.$ac_ext <<EOF
761 #line 762 "configure"
762 #include "confdefs.h"
768 if { (eval echo configure:769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
772 echo "configure: failed program was:" >&5
773 cat conftest.$ac_ext >&5
781 echo "$ac_t""$ac_cv_mingw32" 1>&6
783 test "$ac_cv_mingw32" = yes && MINGW32=yes
785 # Check whether --enable-multilib or --disable-multilib was given.
786 if test "${enable_multilib+set}" = set; then
787 enableval="$enable_multilib"
788 case "${enableval}" in
791 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
797 # Check whether --enable-target-optspace or --disable-target-optspace was given.
798 if test "${enable_target_optspace+set}" = set; then
799 enableval="$enable_target_optspace"
800 case "${enableval}" in
801 yes) target_optspace=yes ;;
802 no) target_optspace=no ;;
803 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
809 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
810 if test "${enable_malloc_debugging+set}" = set; then
811 enableval="$enable_malloc_debugging"
812 case "${enableval}" in
813 yes) malloc_debugging=yes ;;
814 no) malloc_debugging=no ;;
815 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
821 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
822 if test "${enable_newlib_mb+set}" = set; then
823 enableval="$enable_newlib_mb"
824 case "${enableval}" in
825 yes) newlib_mb=yes ;;
827 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
833 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
834 if test "${enable_newlib_iconv+set}" = set; then
835 enableval="$enable_newlib_iconv"
836 case "${enableval}" in
837 yes) newlib_iconv=yes ;;
838 no) newlib_iconv=no ;;
839 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
845 # Check whether --enable-newlib-builtin-converters or --disable-newlib-builtin-converters was given.
846 if test "${enable_newlib_builtin_converters+set}" = set; then
847 enableval="$enable_newlib_builtin_converters"
848 if test x${enableval} = x; then
849 { echo "configure: error: bad value ${enableval} for newlib-builtin-converters option - use comma-separated list" 1>&2; exit 1; }
851 builtin_converters=${enableval}
857 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
858 if test "${enable_newlib_multithread+set}" = set; then
859 enableval="$enable_newlib_multithread"
860 case "${enableval}" in
861 yes) newlib_multithread=yes ;;
862 no) newlib_multithread=no ;;
863 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
866 newlib_multithread=yes
869 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
870 if test "${enable_newlib_elix_level+set}" = set; then
871 enableval="$enable_newlib_elix_level"
872 case "${enableval}" in
873 0) newlib_elix_level=0 ;;
874 1) newlib_elix_level=1 ;;
875 2) newlib_elix_level=2 ;;
876 3) newlib_elix_level=3 ;;
877 4) newlib_elix_level=4 ;;
878 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
884 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
885 if test "${enable_newlib_io_float+set}" = set; then
886 enableval="$enable_newlib_io_float"
887 case "${enableval}" in
888 yes) newlib_io_float=yes ;;
889 no) newlib_io_float=no ;;
890 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
896 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
897 if test "${enable_newlib_supplied_syscalls+set}" = set; then
898 enableval="$enable_newlib_supplied_syscalls"
899 case "${enableval}" in
900 yes) newlib_may_supply_syscalls=yes ;;
901 no) newlib_may_supply_syscalls=no ;;
902 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
905 newlib_may_supply_syscalls=yes
910 if test x${newlib_may_supply_syscalls} = xyes; then
911 MAY_SUPPLY_SYSCALLS_TRUE=
912 MAY_SUPPLY_SYSCALLS_FALSE='#'
914 MAY_SUPPLY_SYSCALLS_TRUE='#'
915 MAY_SUPPLY_SYSCALLS_FALSE=
919 test -z "${with_target_subdir}" && with_target_subdir=.
921 if test "${srcdir}" = "."; then
922 if test "${with_target_subdir}" != "."; then
923 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
925 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
928 newlib_basedir="${srcdir}/../../.."
933 # Do some error checking and defaulting for the host and target type.
935 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
938 # 1. You are not allowed to specify --host, --target, and nonopt at the
940 # 2. Host defaults to nonopt.
941 # 3. If nonopt is not specified, then host defaults to the current host,
942 # as determined by config.guess.
943 # 4. Target and build default to nonopt.
944 # 5. If nonopt is not specified, then target and build default to host.
946 # The aliases save the names the user supplied, while $host etc.
947 # will get canonicalized.
948 case $host---$target---$nonopt in
949 NONE---*---* | *---NONE---* | *---*---NONE) ;;
950 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
954 # Make sure we can run config.sub.
955 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
956 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
959 echo $ac_n "checking host system type""... $ac_c" 1>&6
960 echo "configure:961: checking host system type" >&5
963 case "$host_alias" in
967 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
968 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
970 *) host_alias=$nonopt ;;
974 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
975 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
976 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
977 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
978 echo "$ac_t""$host" 1>&6
980 echo $ac_n "checking target system type""... $ac_c" 1>&6
981 echo "configure:982: checking target system type" >&5
984 case "$target_alias" in
987 NONE) target_alias=$host_alias ;;
988 *) target_alias=$nonopt ;;
992 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
993 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
994 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
995 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
996 echo "$ac_t""$target" 1>&6
998 echo $ac_n "checking build system type""... $ac_c" 1>&6
999 echo "configure:1000: checking build system type" >&5
1002 case "$build_alias" in
1005 NONE) build_alias=$host_alias ;;
1006 *) build_alias=$nonopt ;;
1010 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1011 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014 echo "$ac_t""$build" 1>&6
1016 test "$host_alias" != "$target_alias" &&
1017 test "$program_prefix$program_suffix$program_transform_name" = \
1019 program_prefix=${target_alias}-
1027 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1028 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1030 cat >> confdefs.h <<EOF
1031 #define PACKAGE "$PACKAGE"
1034 cat >> confdefs.h <<EOF
1035 #define VERSION "$VERSION"
1040 missing_dir=`cd $ac_aux_dir && pwd`
1041 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working aclocal" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf. Sigh.
1046 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1048 echo "$ac_t""found" 1>&6
1050 ACLOCAL="$missing_dir/missing aclocal"
1051 echo "$ac_t""missing" 1>&6
1054 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1055 echo "configure:1056: checking for working autoconf" >&5
1056 # Run test in a subshell; some versions of sh will print an error if
1057 # an executable is not found, even if stderr is redirected.
1058 # Redirect stdin to placate older versions of autoconf. Sigh.
1059 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1061 echo "$ac_t""found" 1>&6
1063 AUTOCONF="$missing_dir/missing autoconf"
1064 echo "$ac_t""missing" 1>&6
1067 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1068 echo "configure:1069: checking for working automake" >&5
1069 # Run test in a subshell; some versions of sh will print an error if
1070 # an executable is not found, even if stderr is redirected.
1071 # Redirect stdin to placate older versions of autoconf. Sigh.
1072 if (automake --version) < /dev/null > /dev/null 2>&1; then
1074 echo "$ac_t""found" 1>&6
1076 AUTOMAKE="$missing_dir/missing automake"
1077 echo "$ac_t""missing" 1>&6
1080 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1081 echo "configure:1082: checking for working autoheader" >&5
1082 # Run test in a subshell; some versions of sh will print an error if
1083 # an executable is not found, even if stderr is redirected.
1084 # Redirect stdin to placate older versions of autoconf. Sigh.
1085 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1086 AUTOHEADER=autoheader
1087 echo "$ac_t""found" 1>&6
1089 AUTOHEADER="$missing_dir/missing autoheader"
1090 echo "$ac_t""missing" 1>&6
1093 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1094 echo "configure:1095: checking for working makeinfo" >&5
1095 # Run test in a subshell; some versions of sh will print an error if
1096 # an executable is not found, even if stderr is redirected.
1097 # Redirect stdin to placate older versions of autoconf. Sigh.
1098 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1100 echo "$ac_t""found" 1>&6
1102 MAKEINFO="$missing_dir/missing makeinfo"
1103 echo "$ac_t""missing" 1>&6
1108 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1109 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1110 # are probably using a cross compiler, which will not be able to fully
1111 # link an executable. This should really be fixed in autoconf
1116 # Extract the first word of "gcc", so it can be a program name with args.
1117 set dummy gcc; ac_word=$2
1118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1119 echo "configure:1120: checking for $ac_word" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 if test -n "$CC"; then
1124 ac_cv_prog_CC="$CC" # Let the user override the test.
1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1128 for ac_dir in $ac_dummy; do
1129 test -z "$ac_dir" && ac_dir=.
1130 if test -f $ac_dir/$ac_word; then
1139 if test -n "$CC"; then
1140 echo "$ac_t""$CC" 1>&6
1142 echo "$ac_t""no" 1>&6
1145 if test -z "$CC"; then
1146 # Extract the first word of "cc", so it can be a program name with args.
1147 set dummy cc; ac_word=$2
1148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test -n "$CC"; then
1154 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1159 for ac_dir in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir=.
1161 if test -f $ac_dir/$ac_word; then
1162 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1163 ac_prog_rejected=yes
1171 if test $ac_prog_rejected = yes; then
1172 # We found a bogon in the path, so make sure we never use it.
1173 set dummy $ac_cv_prog_CC
1175 if test $# -gt 0; then
1176 # We chose a different compiler from the bogus one.
1177 # However, it has the same basename, so the bogon will be chosen
1178 # first if we set CC to just the basename; use the full file name.
1180 set dummy "$ac_dir/$ac_word" "$@"
1188 if test -n "$CC"; then
1189 echo "$ac_t""$CC" 1>&6
1191 echo "$ac_t""no" 1>&6
1194 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1197 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1198 echo "configure:1199: checking whether we are using GNU C" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 cat > conftest.c <<EOF
1207 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1214 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1216 if test $ac_cv_prog_gcc = yes; then
1218 ac_test_CFLAGS="${CFLAGS+set}"
1219 ac_save_CFLAGS="$CFLAGS"
1221 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1222 echo "configure:1223: checking whether ${CC-cc} accepts -g" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 echo 'void f(){}' > conftest.c
1227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1236 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1237 if test "$ac_test_CFLAGS" = set; then
1238 CFLAGS="$ac_save_CFLAGS"
1239 elif test $ac_cv_prog_cc_g = yes; then
1246 test "${CFLAGS+set}" = set || CFLAGS="-g"
1250 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1251 set dummy ${ac_tool_prefix}as; ac_word=$2
1252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1253 echo "configure:1254: checking for $ac_word" >&5
1254 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1257 if test -n "$AS"; then
1258 ac_cv_prog_AS="$AS" # Let the user override the test.
1260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1262 for ac_dir in $ac_dummy; do
1263 test -z "$ac_dir" && ac_dir=.
1264 if test -f $ac_dir/$ac_word; then
1265 ac_cv_prog_AS="${ac_tool_prefix}as"
1270 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1274 if test -n "$AS"; then
1275 echo "$ac_t""$AS" 1>&6
1277 echo "$ac_t""no" 1>&6
1282 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1283 set dummy ${ac_tool_prefix}ar; ac_word=$2
1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285 echo "configure:1286: checking for $ac_word" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 if test -n "$AR"; then
1290 ac_cv_prog_AR="$AR" # Let the user override the test.
1292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1294 for ac_dir in $ac_dummy; do
1295 test -z "$ac_dir" && ac_dir=.
1296 if test -f $ac_dir/$ac_word; then
1297 ac_cv_prog_AR="${ac_tool_prefix}ar"
1302 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1306 if test -n "$AR"; then
1307 echo "$ac_t""$AR" 1>&6
1309 echo "$ac_t""no" 1>&6
1314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1317 echo "configure:1318: checking for $ac_word" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 if test -n "$RANLIB"; then
1322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1326 for ac_dir in $ac_dummy; do
1327 test -z "$ac_dir" && ac_dir=.
1328 if test -f $ac_dir/$ac_word; then
1329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1336 RANLIB="$ac_cv_prog_RANLIB"
1337 if test -n "$RANLIB"; then
1338 echo "$ac_t""$RANLIB" 1>&6
1340 echo "$ac_t""no" 1>&6
1344 if test -z "$ac_cv_prog_RANLIB"; then
1345 if test -n "$ac_tool_prefix"; then
1346 # Extract the first word of "ranlib", so it can be a program name with args.
1347 set dummy ranlib; ac_word=$2
1348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1349 echo "configure:1350: checking for $ac_word" >&5
1350 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 if test -n "$RANLIB"; then
1354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1358 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 if test -f $ac_dir/$ac_word; then
1361 ac_cv_prog_RANLIB="ranlib"
1366 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1369 RANLIB="$ac_cv_prog_RANLIB"
1370 if test -n "$RANLIB"; then
1371 echo "$ac_t""$RANLIB" 1>&6
1373 echo "$ac_t""no" 1>&6
1382 # Find a good install program. We prefer a C program (faster),
1383 # so one script is as good as another. But avoid the broken or
1384 # incompatible versions:
1385 # SysV /etc/install, /usr/sbin/install
1386 # SunOS /usr/etc/install
1387 # IRIX /sbin/install
1389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1392 # ./install, which can be erroneously created by make from ./install.sh.
1393 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1394 echo "configure:1395: checking for a BSD compatible install" >&5
1395 if test -z "$INSTALL"; then
1396 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1400 for ac_dir in $PATH; do
1401 # Account for people who put trailing slashes in PATH elements.
1403 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1405 # OSF1 and SCO ODT 3.0 have their own names for install.
1406 # Don't use installbsd from OSF since it installs stuff as root
1408 for ac_prog in ginstall scoinst install; do
1409 if test -f $ac_dir/$ac_prog; then
1410 if test $ac_prog = install &&
1411 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1412 # AIX install. It has an incompatible calling convention.
1415 ac_cv_path_install="$ac_dir/$ac_prog -c"
1426 if test "${ac_cv_path_install+set}" = set; then
1427 INSTALL="$ac_cv_path_install"
1429 # As a last resort, use the slow shell script. We don't cache a
1430 # path for INSTALL within a source directory, because that will
1431 # break other packages using the cache if that directory is
1432 # removed, or if the path is relative.
1433 INSTALL="$ac_install_sh"
1436 echo "$ac_t""$INSTALL" 1>&6
1438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1439 # It thinks the first close brace ends the variable substitution.
1440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1444 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1447 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1448 echo "configure:1449: checking whether to enable maintainer-specific portions of Makefiles" >&5
1449 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1450 if test "${enable_maintainer_mode+set}" = set; then
1451 enableval="$enable_maintainer_mode"
1452 USE_MAINTAINER_MODE=$enableval
1454 USE_MAINTAINER_MODE=no
1457 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1460 if test $USE_MAINTAINER_MODE = yes; then
1461 MAINTAINER_MODE_TRUE=
1462 MAINTAINER_MODE_FALSE='#'
1464 MAINTAINER_MODE_TRUE='#'
1465 MAINTAINER_MODE_FALSE=
1467 MAINT=$MAINTAINER_MODE_TRUE
1471 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1472 # at least currently, we never actually build a program, so we never
1473 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1474 # fails, because we are probably configuring with a cross compiler
1475 # which can't create executables. So we include AC_EXEEXT to keep
1476 # automake happy, but we don't execute it, since we don't care about
1481 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1482 echo "configure:1483: checking for executable suffix" >&5
1483 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1490 echo 'int main () { return 0; }' > conftest.$ac_ext
1492 if { (eval echo configure:1493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1493 for file in conftest.*; do
1495 *.c | *.o | *.obj) ;;
1496 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1500 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1503 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1508 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1509 echo "$ac_t""${ac_cv_exeext}" 1>&6
1514 . ${newlib_basedir}/configure.host
1516 newlib_cflags="${newlib_cflags} -fno-builtin"
1518 NEWLIB_CFLAGS=${newlib_cflags}
1526 if test x${newlib_elix_level} = x0; then
1528 ELIX_LEVEL_0_FALSE='#'
1530 ELIX_LEVEL_0_TRUE='#'
1535 if test x${newlib_elix_level} = x1; then
1537 ELIX_LEVEL_1_FALSE='#'
1539 ELIX_LEVEL_1_TRUE='#'
1544 if test x${newlib_elix_level} = x2; then
1546 ELIX_LEVEL_2_FALSE='#'
1548 ELIX_LEVEL_2_TRUE='#'
1553 if test x${newlib_elix_level} = x3; then
1555 ELIX_LEVEL_3_FALSE='#'
1557 ELIX_LEVEL_3_TRUE='#'
1562 if test x${newlib_elix_level} = x4; then
1564 ELIX_LEVEL_4_FALSE='#'
1566 ELIX_LEVEL_4_TRUE='#'
1572 if test x${use_libtool} = xyes; then
1574 USE_LIBTOOL_FALSE='#'
1576 USE_LIBTOOL_TRUE='#'
1580 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1581 # use oext, which is set in configure.host based on the target platform.
1594 cat > confcache <<\EOF
1595 # This file is a shell script that caches the results of configure
1596 # tests run on this system so they can be shared between configure
1597 # scripts and configure runs. It is not useful on other systems.
1598 # If it contains results you don't want to keep, you may remove or edit it.
1600 # By default, configure uses ./config.cache as the cache file,
1601 # creating it if it does not exist already. You can give configure
1602 # the --cache-file=FILE option to use a different cache file; that is
1603 # what configure does when it calls configure scripts in
1604 # subdirectories, so they share the cache.
1605 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1606 # config.status only pays attention to the cache file if you give it the
1607 # --recheck option to rerun configure.
1610 # The following way of writing the cache mishandles newlines in values,
1611 # but we know of no workaround that is simple, portable, and efficient.
1612 # So, don't put newlines in cache variables' values.
1613 # Ultrix sh set writes to stderr and can't be redirected directly,
1614 # and sets the high bit in the cache file unless we assign to the vars.
1616 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1618 # `set' does not quote correctly, so add quotes (double-quote substitution
1619 # turns \\\\ into \\, and sed turns \\ into \).
1621 -e "s/'/'\\\\''/g" \
1622 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1625 # `set' quotes correctly as required by POSIX, so do not add quotes.
1626 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1629 if cmp -s $cache_file confcache; then
1632 if test -w $cache_file; then
1633 echo "updating cache $cache_file"
1634 cat confcache > $cache_file
1636 echo "not updating unwritable cache $cache_file"
1641 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1644 # Let make expand exec_prefix.
1645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1647 # Any assignment to VPATH causes Sun make to only execute
1648 # the first set of double-colon rules, so remove it if not needed.
1649 # If there is a colon in the path, we need to keep it.
1650 if test "x$srcdir" = x.; then
1651 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1654 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1656 # Transform confdefs.h into DEFS.
1657 # Protect against shell expansion while executing Makefile rules.
1658 # Protect against Makefile macro expansion.
1659 cat > conftest.defs <<\EOF
1660 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1661 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1666 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1670 # Without the "./", some shells look in PATH for config.status.
1671 : ${CONFIG_STATUS=./config.status}
1673 echo creating $CONFIG_STATUS
1674 rm -f $CONFIG_STATUS
1675 cat > $CONFIG_STATUS <<EOF
1677 # Generated automatically by configure.
1678 # Run this file to recreate the current configuration.
1679 # This directory was configured as follows,
1680 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1682 # $0 $ac_configure_args
1684 # Compiler output produced by configure, useful for debugging
1685 # configure, is in ./config.log if it exists.
1687 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1690 case "\$ac_option" in
1691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1692 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1693 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1694 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1695 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1697 -help | --help | --hel | --he | --h)
1698 echo "\$ac_cs_usage"; exit 0 ;;
1699 *) echo "\$ac_cs_usage"; exit 1 ;;
1703 ac_given_srcdir=$srcdir
1704 ac_given_INSTALL="$INSTALL"
1706 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1708 cat >> $CONFIG_STATUS <<EOF
1710 # Protect against being on the right side of a sed subst in config.status.
1711 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1712 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1716 s%@CFLAGS@%$CFLAGS%g
1717 s%@CPPFLAGS@%$CPPFLAGS%g
1718 s%@CXXFLAGS@%$CXXFLAGS%g
1719 s%@FFLAGS@%$FFLAGS%g
1721 s%@LDFLAGS@%$LDFLAGS%g
1723 s%@exec_prefix@%$exec_prefix%g
1724 s%@prefix@%$prefix%g
1725 s%@program_transform_name@%$program_transform_name%g
1726 s%@bindir@%$bindir%g
1727 s%@sbindir@%$sbindir%g
1728 s%@libexecdir@%$libexecdir%g
1729 s%@datadir@%$datadir%g
1730 s%@sysconfdir@%$sysconfdir%g
1731 s%@sharedstatedir@%$sharedstatedir%g
1732 s%@localstatedir@%$localstatedir%g
1733 s%@libdir@%$libdir%g
1734 s%@includedir@%$includedir%g
1735 s%@oldincludedir@%$oldincludedir%g
1736 s%@infodir@%$infodir%g
1737 s%@mandir@%$mandir%g
1738 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
1739 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
1740 s%@newlib_basedir@%$newlib_basedir%g
1742 s%@host_alias@%$host_alias%g
1743 s%@host_cpu@%$host_cpu%g
1744 s%@host_vendor@%$host_vendor%g
1745 s%@host_os@%$host_os%g
1746 s%@target@%$target%g
1747 s%@target_alias@%$target_alias%g
1748 s%@target_cpu@%$target_cpu%g
1749 s%@target_vendor@%$target_vendor%g
1750 s%@target_os@%$target_os%g
1752 s%@build_alias@%$build_alias%g
1753 s%@build_cpu@%$build_cpu%g
1754 s%@build_vendor@%$build_vendor%g
1755 s%@build_os@%$build_os%g
1756 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1757 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1758 s%@INSTALL_DATA@%$INSTALL_DATA%g
1759 s%@PACKAGE@%$PACKAGE%g
1760 s%@VERSION@%$VERSION%g
1761 s%@ACLOCAL@%$ACLOCAL%g
1762 s%@AUTOCONF@%$AUTOCONF%g
1763 s%@AUTOMAKE@%$AUTOMAKE%g
1764 s%@AUTOHEADER@%$AUTOHEADER%g
1765 s%@MAKEINFO@%$MAKEINFO%g
1766 s%@SET_MAKE@%$SET_MAKE%g
1770 s%@RANLIB@%$RANLIB%g
1771 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1772 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1774 s%@EXEEXT@%$EXEEXT%g
1775 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1776 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
1777 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
1778 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
1779 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
1780 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
1781 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
1782 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
1783 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
1784 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
1785 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
1786 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
1787 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
1788 s%@OBJEXT@%$OBJEXT%g
1791 s%@libm_machine_dir@%$libm_machine_dir%g
1792 s%@machine_dir@%$machine_dir%g
1793 s%@sys_dir@%$sys_dir%g
1798 cat >> $CONFIG_STATUS <<\EOF
1800 # Split the substitutions into bite-sized pieces for seds with
1801 # small command number limits, like on Digital OSF/1 and HP-UX.
1802 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1803 ac_file=1 # Number of current file.
1804 ac_beg=1 # First line for current file.
1805 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1808 while $ac_more_lines; do
1809 if test $ac_beg -gt 1; then
1810 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1812 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1814 if test ! -s conftest.s$ac_file; then
1816 rm -f conftest.s$ac_file
1818 if test -z "$ac_sed_cmds"; then
1819 ac_sed_cmds="sed -f conftest.s$ac_file"
1821 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1823 ac_file=`expr $ac_file + 1`
1825 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1828 if test -z "$ac_sed_cmds"; then
1833 cat >> $CONFIG_STATUS <<EOF
1835 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1837 cat >> $CONFIG_STATUS <<\EOF
1838 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1841 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1842 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1843 *) ac_file_in="${ac_file}.in" ;;
1846 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1848 # Remove last slash and all that follows it. Not all systems have dirname.
1849 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1850 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1851 # The file is in a subdirectory.
1852 test ! -d "$ac_dir" && mkdir "$ac_dir"
1853 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1854 # A "../" for each directory in $ac_dir_suffix.
1855 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1857 ac_dir_suffix= ac_dots=
1860 case "$ac_given_srcdir" in
1862 if test -z "$ac_dots"; then top_srcdir=.
1863 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1864 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1866 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1867 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1870 case "$ac_given_INSTALL" in
1871 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1872 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1875 echo creating "$ac_file"
1877 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1879 *Makefile*) ac_comsub="1i\\
1880 # $configure_input" ;;
1884 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1886 s%@configure_input@%$configure_input%g
1887 s%@srcdir@%$srcdir%g
1888 s%@top_srcdir@%$top_srcdir%g
1889 s%@INSTALL@%$INSTALL%g
1890 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1895 cat >> $CONFIG_STATUS <<EOF
1898 cat >> $CONFIG_STATUS <<\EOF
1902 chmod +x $CONFIG_STATUS
1903 rm -fr confdefs* $ac_clean_files
1904 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1