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-newlib-io-pos-args enable printf-family positional arg support"
17 --enable-multilib build many library versions (default)"
19 --enable-target-optspace optimize for space"
21 --enable-malloc-debugging indicate malloc debugging requested"
23 --enable-newlib-mb enable multibyte support"
25 --enable-newlib-iconv enable iconv library support"
27 --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in"
29 --enable-newlib-multithread enable support for multiple threads"
31 --enable-newlib-elix-level supply desired elix library level (1-4)"
33 --disable-newlib-io-float disable printf/scanf family float support"
35 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --enable-shared[=PKGS] build shared libraries [default=yes]"
42 --enable-static[=PKGS] build static libraries [default=yes]"
44 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
46 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
48 --disable-libtool-lock avoid locking (might break parallel builds)"
50 --with-pic try to use only PIC/non-PIC objects [default=use both]"
52 --enable-newlib-hw-fp Turn on hardware floating point math"
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
58 cache_file
=.
/config.cache
67 program_transform_name
=s
,x
,x
,
75 bindir
='${exec_prefix}/bin'
76 sbindir
='${exec_prefix}/sbin'
77 libexecdir
='${exec_prefix}/libexec'
78 datadir
='${prefix}/share'
79 sysconfdir
='${prefix}/etc'
80 sharedstatedir
='${prefix}/com'
81 localstatedir
='${prefix}/var'
82 libdir
='${exec_prefix}/lib'
83 includedir
='${prefix}/include'
84 oldincludedir
='/usr/include'
85 infodir
='${prefix}/info'
86 mandir
='${prefix}/man'
88 # Initialize some other variables.
91 SHELL
=${CONFIG_SHELL-/bin/sh}
92 # Maximum number of lines to put in a shell here document.
99 # If the previous option needs an argument, assign it.
100 if test -n "$ac_prev"; then
101 eval "$ac_prev=\$ac_option"
107 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
111 # Accept the important Cygnus configure options, so we can diagnose typos.
115 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
117 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
118 bindir
="$ac_optarg" ;;
120 -build |
--build |
--buil |
--bui |
--bu)
122 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
123 build
="$ac_optarg" ;;
125 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
126 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
127 ac_prev
=cache_file
;;
128 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
129 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
130 cache_file
="$ac_optarg" ;;
132 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
134 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
136 datadir
="$ac_optarg" ;;
138 -disable-* |
--disable-*)
139 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}=no" ;;
147 -enable-* |
--enable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}='$ac_optarg'" ;;
160 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
161 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
162 |
--exec |
--exe |
--ex)
163 ac_prev
=exec_prefix
;;
164 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
165 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
166 |
--exec=* |
--exe=* |
--ex=*)
167 exec_prefix
="$ac_optarg" ;;
169 -gas |
--gas |
--ga |
--g)
170 # Obsolete; use --with-gas.
173 -help |
--help |
--hel |
--he)
174 # Omit some internal or obsolete options to make the list less imposing.
175 # This message is too long to be a string in the A/UX 3.1 sh.
177 Usage: configure [options] [host]
178 Options: [defaults in brackets after descriptions]
180 --cache-file=FILE cache test results in FILE
181 --help print this message
182 --no-create do not create output files
183 --quiet, --silent do not print \`checking...' messages
184 --version print the version of autoconf that created configure
185 Directory and file names:
186 --prefix=PREFIX install architecture-independent files in PREFIX
188 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
190 --bindir=DIR user executables in DIR [EPREFIX/bin]
191 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
192 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
193 --datadir=DIR read-only architecture-independent data in DIR
195 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
196 --sharedstatedir=DIR modifiable architecture-independent data in DIR
198 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
199 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
200 --includedir=DIR C header files in DIR [PREFIX/include]
201 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
202 --infodir=DIR info documentation in DIR [PREFIX/info]
203 --mandir=DIR man documentation in DIR [PREFIX/man]
204 --srcdir=DIR find the sources in DIR [configure dir or ..]
205 --program-prefix=PREFIX prepend PREFIX to installed program names
206 --program-suffix=SUFFIX append SUFFIX to installed program names
207 --program-transform-name=PROGRAM
208 run sed PROGRAM on installed program names
212 --build=BUILD configure for building on BUILD [BUILD=HOST]
213 --host=HOST configure for HOST [guessed]
214 --target=TARGET configure for TARGET [TARGET=HOST]
215 Features and packages:
216 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
217 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
218 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
219 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
220 --x-includes=DIR X include files are in DIR
221 --x-libraries=DIR X library files are in DIR
223 if test -n "$ac_help"; then
224 echo "--enable and --with options recognized:$ac_help"
228 -host |
--host |
--hos |
--ho)
230 -host=* |
--host=* |
--hos=* |
--ho=*)
233 -includedir |
--includedir |
--includedi |
--included |
--include \
234 |
--includ |
--inclu |
--incl |
--inc)
235 ac_prev
=includedir
;;
236 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
237 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
238 includedir
="$ac_optarg" ;;
240 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
242 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
243 infodir
="$ac_optarg" ;;
245 -libdir |
--libdir |
--libdi |
--libd)
247 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
248 libdir
="$ac_optarg" ;;
250 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
251 |
--libexe |
--libex |
--libe)
252 ac_prev
=libexecdir
;;
253 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
254 |
--libexe=* |
--libex=* |
--libe=*)
255 libexecdir
="$ac_optarg" ;;
257 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
258 |
--localstate |
--localstat |
--localsta |
--localst \
259 |
--locals |
--local |
--loca |
--loc |
--lo)
260 ac_prev
=localstatedir
;;
261 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
262 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
263 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
264 localstatedir
="$ac_optarg" ;;
266 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
268 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
269 mandir
="$ac_optarg" ;;
272 # Obsolete; use --without-fp.
275 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
279 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
280 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
283 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
284 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
285 |
--oldin |
--oldi |
--old |
--ol |
--o)
286 ac_prev
=oldincludedir
;;
287 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
288 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
289 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
290 oldincludedir
="$ac_optarg" ;;
292 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
294 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
295 prefix
="$ac_optarg" ;;
297 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
298 |
--program-pre |
--program-pr |
--program-p)
299 ac_prev
=program_prefix
;;
300 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
301 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
302 program_prefix
="$ac_optarg" ;;
304 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
305 |
--program-suf |
--program-su |
--program-s)
306 ac_prev
=program_suffix
;;
307 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
308 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
309 program_suffix
="$ac_optarg" ;;
311 -program-transform-name |
--program-transform-name \
312 |
--program-transform-nam |
--program-transform-na \
313 |
--program-transform-n |
--program-transform- \
314 |
--program-transform |
--program-transfor \
315 |
--program-transfo |
--program-transf \
316 |
--program-trans |
--program-tran \
317 |
--progr-tra |
--program-tr |
--program-t)
318 ac_prev
=program_transform_name
;;
319 -program-transform-name=* |
--program-transform-name=* \
320 |
--program-transform-nam=* |
--program-transform-na=* \
321 |
--program-transform-n=* |
--program-transform-=* \
322 |
--program-transform=* |
--program-transfor=* \
323 |
--program-transfo=* |
--program-transf=* \
324 |
--program-trans=* |
--program-tran=* \
325 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
326 program_transform_name
="$ac_optarg" ;;
328 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
329 |
-silent |
--silent |
--silen |
--sile |
--sil)
332 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
334 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
336 sbindir
="$ac_optarg" ;;
338 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
339 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
340 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
342 ac_prev
=sharedstatedir
;;
343 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
344 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
345 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
347 sharedstatedir
="$ac_optarg" ;;
349 -site |
--site |
--sit)
351 -site=* |
--site=* |
--sit=*)
354 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
356 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
357 srcdir
="$ac_optarg" ;;
359 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
360 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
361 ac_prev
=sysconfdir
;;
362 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
363 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
364 sysconfdir
="$ac_optarg" ;;
366 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
368 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
369 target
="$ac_optarg" ;;
371 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
374 -version |
--version |
--versio |
--versi |
--vers)
375 echo "configure generated by autoconf version 2.13"
379 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}='$ac_optarg'" ;;
391 -without-* |
--without-*)
392 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package
=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}=no" ;;
401 # Obsolete; use --with-x.
404 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
405 |
--x-incl |
--x-inc |
--x-in |
--x-i)
406 ac_prev
=x_includes
;;
407 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
408 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
409 x_includes
="$ac_optarg" ;;
411 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
412 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
413 ac_prev
=x_libraries
;;
414 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
415 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
416 x_libraries
="$ac_optarg" ;;
418 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
422 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
423 echo "configure: warning: $ac_option: invalid host type" 1>&2
425 if test "x$nonopt" != xNONE
; then
426 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
434 if test -n "$ac_prev"; then
435 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
438 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440 # File descriptor usage:
443 # 2 errors and warnings
444 # 3 some systems may open it to /dev/tty
445 # 4 used on the Kubota Titan
446 # 6 checking for... messages and results
447 # 5 compiler messages saved in config.log
448 if test "$silent" = yes; then
456 This file contains any messages produced by compilers while
457 running configure, to aid debugging if configure makes a mistake.
460 # Strip out --no-create and --no-recursion so they do not pile up.
461 # Also quote any args containing shell metacharacters.
466 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
467 |
--no-cr |
--no-c) ;;
468 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
469 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
470 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
471 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
472 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
477 # Only set these to C if already set. These must not be set unconditionally
478 # because not all systems understand e.g. LANG=C (notably SCO).
479 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
480 # Non-C LC_CTYPE values break the ctype check.
481 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
482 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
483 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
484 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
487 rm -rf conftest
* confdefs.h
488 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 # A filename unique to this package, relative to the directory that
492 # configure is in, which we can look for to find out if srcdir is correct.
495 # Find the source files, if location was not specified.
496 if test -z "$srcdir"; then
497 ac_srcdir_defaulted
=yes
498 # Try the directory containing this script, then its parent.
500 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
501 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
503 if test ! -r $srcdir/$ac_unique_file; then
507 ac_srcdir_defaulted
=no
509 if test ! -r $srcdir/$ac_unique_file; then
510 if test "$ac_srcdir_defaulted" = yes; then
511 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
516 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518 # Prefer explicitly selected file to automatically selected ones.
519 if test -z "$CONFIG_SITE"; then
520 if test "x$prefix" != xNONE
; then
521 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
523 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526 for ac_site_file
in $CONFIG_SITE; do
527 if test -r "$ac_site_file"; then
528 echo "loading site script $ac_site_file"
533 if test -r "$cache_file"; then
534 echo "loading cache $cache_file"
537 echo "creating cache $cache_file"
542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
543 ac_cpp
='$CPP $CPPFLAGS'
544 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
545 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
546 cross_compiling
=$ac_cv_prog_cc_cross
550 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
551 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
559 ac_n
= ac_c
='\c' ac_t
=
568 for ac_dir
in ..
$srcdir/..
; do
569 if test -f $ac_dir/install-sh
; then
571 ac_install_sh
="$ac_aux_dir/install-sh -c"
573 elif test -f $ac_dir/install.sh
; then
575 ac_install_sh
="$ac_aux_dir/install.sh -c"
579 if test -z "$ac_aux_dir"; then
580 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
582 ac_config_guess
=$ac_aux_dir/config.guess
583 ac_config_sub
=$ac_aux_dir/config.sub
584 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
587 # Check whether --enable-newlib-io-pos-args or --disable-newlib-io-pos-args was given.
588 if test "${enable_newlib_io_pos_args+set}" = set; then
589 enableval
="$enable_newlib_io_pos_args"
590 case "${enableval}" in
591 yes) newlib_io_pos_args
=yes ;;
592 no
) newlib_io_pos_args
=no
;;
593 *) { echo "configure: error: bad value ${enableval} for newlib-io-pos-args option" 1>&2; exit 1; } ;;
596 newlib_io_pos_args
=no
600 am__api_version
="1.4"
601 # Find a good install program. We prefer a C program (faster),
602 # so one script is as good as another. But avoid the broken or
603 # incompatible versions:
604 # SysV /etc/install, /usr/sbin/install
605 # SunOS /usr/etc/install
608 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
611 # ./install, which can be erroneously created by make from ./install.sh.
612 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
613 echo "configure:614: checking for a BSD compatible install" >&5
614 if test -z "$INSTALL"; then
615 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
616 echo $ac_n "(cached) $ac_c" 1>&6
618 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
619 for ac_dir
in $PATH; do
620 # Account for people who put trailing slashes in PATH elements.
622 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
624 # OSF1 and SCO ODT 3.0 have their own names for install.
625 # Don't use installbsd from OSF since it installs stuff as root
627 for ac_prog
in ginstall scoinst
install; do
628 if test -f $ac_dir/$ac_prog; then
629 if test $ac_prog = install &&
630 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
631 # AIX install. It has an incompatible calling convention.
634 ac_cv_path_install
="$ac_dir/$ac_prog -c"
645 if test "${ac_cv_path_install+set}" = set; then
646 INSTALL
="$ac_cv_path_install"
648 # As a last resort, use the slow shell script. We don't cache a
649 # path for INSTALL within a source directory, because that will
650 # break other packages using the cache if that directory is
651 # removed, or if the path is relative.
652 INSTALL
="$ac_install_sh"
655 echo "$ac_t""$INSTALL" 1>&6
657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
658 # It thinks the first close brace ends the variable substitution.
659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
663 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
665 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
666 echo "configure:667: checking whether build environment is sane" >&5
669 echo timestamp
> conftestfile
670 # Do `set' in a subshell so we don't clobber the current shell's
671 # arguments. Must try -L first in case configure is actually a
672 # symlink; some systems play weird games with the mod time of symlinks
673 # (eg FreeBSD returns the mod time of the symlink's containing
676 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
677 if test "$*" = "X"; then
679 set X
`ls -t $srcdir/configure conftestfile`
681 if test "$*" != "X $srcdir/configure conftestfile" \
682 && test "$*" != "X conftestfile $srcdir/configure"; then
684 # If neither matched, then we have a broken ls. This can happen
685 # if, for instance, CONFIG_SHELL is bash and it inherits a
686 # broken ls alias from the environment. This has actually
687 # happened. Such a system could not be considered "sane".
688 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
689 alias in your environment" 1>&2; exit 1; }
692 test "$2" = conftestfile
698 { echo "configure: error: newly created file is older than distributed files!
699 Check your system clock" 1>&2; exit 1; }
702 echo "$ac_t""yes" 1>&6
703 if test "$program_transform_name" = s
,x
,x
,; then
704 program_transform_name
=
706 # Double any \ or $. echo might interpret backslashes.
707 cat <<\EOF_SED
> conftestsed
708 s
,\\,\\\\,g
; s
,\$
,$$
,g
710 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
713 test "$program_prefix" != NONE
&&
714 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
715 # Use a double $ so make ignores it.
716 test "$program_suffix" != NONE
&&
717 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
719 # sed with no file args requires a program.
720 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
722 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
723 echo "configure:724: checking whether ${MAKE-make} sets \${MAKE}" >&5
724 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
725 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 cat > conftestmake
<<\EOF
730 @
echo 'ac_maketemp="${MAKE}"'
732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
733 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
734 if test -n "$ac_maketemp"; then
735 eval ac_cv_prog_make_
${ac_make}_set
=yes
737 eval ac_cv_prog_make_
${ac_make}_set
=no
741 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
742 echo "$ac_t""yes" 1>&6
745 echo "$ac_t""no" 1>&6
746 SET_MAKE
="MAKE=${MAKE-make}"
749 if test $host != $build; then
750 ac_tool_prefix
=${host_alias}-
755 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
756 echo "configure:757: checking for Cygwin environment" >&5
757 if eval "test \"`echo '$''{'ac_cv_cygwin'+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"
767 #define __CYGWIN__ __CYGWIN32__
772 if { (eval echo configure
:773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
776 echo "configure: failed program was:" >&5
777 cat conftest.
$ac_ext >&5
785 echo "$ac_t""$ac_cv_cygwin" 1>&6
787 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
788 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
789 echo "configure:790: checking for mingw32 environment" >&5
790 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 cat > conftest.
$ac_ext <<EOF
794 #line 795 "configure"
795 #include "confdefs.h"
801 if { (eval echo configure
:802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
805 echo "configure: failed program was:" >&5
806 cat conftest.
$ac_ext >&5
814 echo "$ac_t""$ac_cv_mingw32" 1>&6
816 test "$ac_cv_mingw32" = yes && MINGW32
=yes
818 # Check whether --enable-multilib or --disable-multilib was given.
819 if test "${enable_multilib+set}" = set; then
820 enableval
="$enable_multilib"
821 case "${enableval}" in
824 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
830 # Check whether --enable-target-optspace or --disable-target-optspace was given.
831 if test "${enable_target_optspace+set}" = set; then
832 enableval
="$enable_target_optspace"
833 case "${enableval}" in
834 yes) target_optspace
=yes ;;
835 no
) target_optspace
=no
;;
836 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
842 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
843 if test "${enable_malloc_debugging+set}" = set; then
844 enableval
="$enable_malloc_debugging"
845 case "${enableval}" in
846 yes) malloc_debugging
=yes ;;
847 no
) malloc_debugging
=no
;;
848 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
854 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
855 if test "${enable_newlib_mb+set}" = set; then
856 enableval
="$enable_newlib_mb"
857 case "${enableval}" in
858 yes) newlib_mb
=yes ;;
860 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
866 # Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
867 if test "${enable_newlib_iconv+set}" = set; then
868 enableval
="$enable_newlib_iconv"
869 case "${enableval}" in
870 yes) newlib_iconv
=yes ;;
871 no
) newlib_iconv
=no
;;
872 *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
878 # Check whether --enable-newlib-builtin-converters or --disable-newlib-builtin-converters was given.
879 if test "${enable_newlib_builtin_converters+set}" = set; then
880 enableval
="$enable_newlib_builtin_converters"
881 if test x
${enableval} = x
; then
882 { echo "configure: error: bad value ${enableval} for newlib-builtin-converters option - use comma-separated list" 1>&2; exit 1; }
884 builtin_converters
=${enableval}
890 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
891 if test "${enable_newlib_multithread+set}" = set; then
892 enableval
="$enable_newlib_multithread"
893 case "${enableval}" in
894 yes) newlib_multithread
=yes ;;
895 no
) newlib_multithread
=no
;;
896 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
899 newlib_multithread
=yes
902 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
903 if test "${enable_newlib_elix_level+set}" = set; then
904 enableval
="$enable_newlib_elix_level"
905 case "${enableval}" in
906 0) newlib_elix_level
=0 ;;
907 1) newlib_elix_level
=1 ;;
908 2) newlib_elix_level
=2 ;;
909 3) newlib_elix_level
=3 ;;
910 4) newlib_elix_level
=4 ;;
911 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
917 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
918 if test "${enable_newlib_io_float+set}" = set; then
919 enableval
="$enable_newlib_io_float"
920 case "${enableval}" in
921 yes) newlib_io_float
=yes ;;
922 no
) newlib_io_float
=no
;;
923 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
929 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
930 if test "${enable_newlib_supplied_syscalls+set}" = set; then
931 enableval
="$enable_newlib_supplied_syscalls"
932 case "${enableval}" in
933 yes) newlib_may_supply_syscalls
=yes ;;
934 no
) newlib_may_supply_syscalls
=no
;;
935 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
938 newlib_may_supply_syscalls
=yes
943 if test x
${newlib_may_supply_syscalls} = xyes
; then
944 MAY_SUPPLY_SYSCALLS_TRUE
=
945 MAY_SUPPLY_SYSCALLS_FALSE
='#'
947 MAY_SUPPLY_SYSCALLS_TRUE
='#'
948 MAY_SUPPLY_SYSCALLS_FALSE
=
952 test -z "${with_target_subdir}" && with_target_subdir
=.
954 if test "${srcdir}" = "."; then
955 if test "${with_target_subdir}" != "."; then
956 newlib_basedir
="${srcdir}/${with_multisrctop}../."
958 newlib_basedir
="${srcdir}/${with_multisrctop}."
961 newlib_basedir
="${srcdir}/."
966 # Do some error checking and defaulting for the host and target type.
968 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
971 # 1. You are not allowed to specify --host, --target, and nonopt at the
973 # 2. Host defaults to nonopt.
974 # 3. If nonopt is not specified, then host defaults to the current host,
975 # as determined by config.guess.
976 # 4. Target and build default to nonopt.
977 # 5. If nonopt is not specified, then target and build default to host.
979 # The aliases save the names the user supplied, while $host etc.
980 # will get canonicalized.
981 case $host---$target---$nonopt in
982 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
983 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
987 # Make sure we can run config.sub.
988 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
989 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
992 echo $ac_n "checking host system type""... $ac_c" 1>&6
993 echo "configure:994: checking host system type" >&5
996 case "$host_alias" in
1000 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1001 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1003 *) host_alias
=$nonopt ;;
1007 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1008 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1009 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1010 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1011 echo "$ac_t""$host" 1>&6
1013 echo $ac_n "checking target system type""... $ac_c" 1>&6
1014 echo "configure:1015: checking target system type" >&5
1016 target_alias
=$target
1017 case "$target_alias" in
1020 NONE
) target_alias
=$host_alias ;;
1021 *) target_alias
=$nonopt ;;
1025 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1026 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1027 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1028 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1029 echo "$ac_t""$target" 1>&6
1031 echo $ac_n "checking build system type""... $ac_c" 1>&6
1032 echo "configure:1033: checking build system type" >&5
1035 case "$build_alias" in
1038 NONE
) build_alias
=$host_alias ;;
1039 *) build_alias
=$nonopt ;;
1043 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1044 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1045 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1046 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 echo "$ac_t""$build" 1>&6
1049 test "$host_alias" != "$target_alias" &&
1050 test "$program_prefix$program_suffix$program_transform_name" = \
1052 program_prefix
=${target_alias}-
1060 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1061 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1063 cat >> confdefs.h
<<EOF
1064 #define PACKAGE "$PACKAGE"
1067 cat >> confdefs.h
<<EOF
1068 #define VERSION "$VERSION"
1073 missing_dir
=`cd $ac_aux_dir && pwd`
1074 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1075 echo "configure:1076: checking for working aclocal-${am__api_version}" >&5
1076 # Run test in a subshell; some versions of sh will print an error if
1077 # an executable is not found, even if stderr is redirected.
1078 # Redirect stdin to placate older versions of autoconf. Sigh.
1079 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
1080 ACLOCAL
=aclocal-
${am__api_version}
1081 echo "$ac_t""found" 1>&6
1083 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
1084 echo "$ac_t""missing" 1>&6
1087 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1088 echo "configure:1089: checking for working autoconf" >&5
1089 # Run test in a subshell; some versions of sh will print an error if
1090 # an executable is not found, even if stderr is redirected.
1091 # Redirect stdin to placate older versions of autoconf. Sigh.
1092 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1094 echo "$ac_t""found" 1>&6
1096 AUTOCONF
="$missing_dir/missing autoconf"
1097 echo "$ac_t""missing" 1>&6
1100 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1101 echo "configure:1102: checking for working automake-${am__api_version}" >&5
1102 # Run test in a subshell; some versions of sh will print an error if
1103 # an executable is not found, even if stderr is redirected.
1104 # Redirect stdin to placate older versions of autoconf. Sigh.
1105 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
1106 AUTOMAKE
=automake-
${am__api_version}
1107 echo "$ac_t""found" 1>&6
1109 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
1110 echo "$ac_t""missing" 1>&6
1113 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1114 echo "configure:1115: checking for working autoheader" >&5
1115 # Run test in a subshell; some versions of sh will print an error if
1116 # an executable is not found, even if stderr is redirected.
1117 # Redirect stdin to placate older versions of autoconf. Sigh.
1118 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1119 AUTOHEADER
=autoheader
1120 echo "$ac_t""found" 1>&6
1122 AUTOHEADER
="$missing_dir/missing autoheader"
1123 echo "$ac_t""missing" 1>&6
1126 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1127 echo "configure:1128: checking for working makeinfo" >&5
1128 # Run test in a subshell; some versions of sh will print an error if
1129 # an executable is not found, even if stderr is redirected.
1130 # Redirect stdin to placate older versions of autoconf. Sigh.
1131 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1133 echo "$ac_t""found" 1>&6
1135 MAKEINFO
="$missing_dir/missing makeinfo"
1136 echo "$ac_t""missing" 1>&6
1141 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1142 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1143 # are probably using a cross compiler, which will not be able to fully
1144 # link an executable. This should really be fixed in autoconf
1149 # Extract the first word of "gcc", so it can be a program name with args.
1150 set dummy gcc
; ac_word
=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$CC"; then
1157 ac_cv_prog_CC
="$CC" # Let the user override the test.
1159 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1161 for ac_dir
in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir
=.
1163 if test -f $ac_dir/$ac_word; then
1172 if test -n "$CC"; then
1173 echo "$ac_t""$CC" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 if test -z "$CC"; then
1179 # Extract the first word of "cc", so it can be a program name with args.
1180 set dummy cc
; ac_word
=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 if test -n "$CC"; then
1187 ac_cv_prog_CC
="$CC" # Let the user override the test.
1189 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1192 for ac_dir
in $ac_dummy; do
1193 test -z "$ac_dir" && ac_dir
=.
1194 if test -f $ac_dir/$ac_word; then
1195 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1196 ac_prog_rejected
=yes
1204 if test $ac_prog_rejected = yes; then
1205 # We found a bogon in the path, so make sure we never use it.
1206 set dummy
$ac_cv_prog_CC
1208 if test $# -gt 0; then
1209 # We chose a different compiler from the bogus one.
1210 # However, it has the same basename, so the bogon will be chosen
1211 # first if we set CC to just the basename; use the full file name.
1213 set dummy
"$ac_dir/$ac_word" "$@"
1221 if test -n "$CC"; then
1222 echo "$ac_t""$CC" 1>&6
1224 echo "$ac_t""no" 1>&6
1227 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1230 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether we are using GNU C" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 cat > conftest.c
<<EOF
1240 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1247 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1249 if test $ac_cv_prog_gcc = yes; then
1251 ac_test_CFLAGS
="${CFLAGS+set}"
1252 ac_save_CFLAGS
="$CFLAGS"
1254 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether ${CC-cc} accepts -g" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 echo 'void f(){}' > conftest.c
1260 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1269 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1270 if test "$ac_test_CFLAGS" = set; then
1271 CFLAGS
="$ac_save_CFLAGS"
1272 elif test $ac_cv_prog_cc_g = yes; then
1279 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1283 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1284 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 if test -n "$AS"; then
1291 ac_cv_prog_AS
="$AS" # Let the user override the test.
1293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1295 for ac_dir
in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir
=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_prog_AS
="${ac_tool_prefix}as"
1303 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1307 if test -n "$AS"; then
1308 echo "$ac_t""$AS" 1>&6
1310 echo "$ac_t""no" 1>&6
1315 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1316 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1318 echo "configure:1319: checking for $ac_word" >&5
1319 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1320 echo $ac_n "(cached) $ac_c" 1>&6
1322 if test -n "$AR"; then
1323 ac_cv_prog_AR
="$AR" # Let the user override the test.
1325 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1327 for ac_dir
in $ac_dummy; do
1328 test -z "$ac_dir" && ac_dir
=.
1329 if test -f $ac_dir/$ac_word; then
1330 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1335 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1339 if test -n "$AR"; then
1340 echo "$ac_t""$AR" 1>&6
1342 echo "$ac_t""no" 1>&6
1347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1348 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 if test -n "$RANLIB"; then
1355 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1357 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1359 for ac_dir
in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir
=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_RANLIB
="${ac_tool_prefix}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
1377 if test -z "$ac_cv_prog_RANLIB"; then
1378 if test -n "$ac_tool_prefix"; then
1379 # Extract the first word of "ranlib", so it can be a program name with args.
1380 set dummy ranlib
; ac_word
=$2
1381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1382 echo "configure:1383: checking for $ac_word" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 if test -n "$RANLIB"; then
1387 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1389 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1391 for ac_dir
in $ac_dummy; do
1392 test -z "$ac_dir" && ac_dir
=.
1393 if test -f $ac_dir/$ac_word; then
1394 ac_cv_prog_RANLIB
="ranlib"
1399 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1402 RANLIB
="$ac_cv_prog_RANLIB"
1403 if test -n "$RANLIB"; then
1404 echo "$ac_t""$RANLIB" 1>&6
1406 echo "$ac_t""no" 1>&6
1415 # Find a good install program. We prefer a C program (faster),
1416 # so one script is as good as another. But avoid the broken or
1417 # incompatible versions:
1418 # SysV /etc/install, /usr/sbin/install
1419 # SunOS /usr/etc/install
1420 # IRIX /sbin/install
1422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1425 # ./install, which can be erroneously created by make from ./install.sh.
1426 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1427 echo "configure:1428: checking for a BSD compatible install" >&5
1428 if test -z "$INSTALL"; then
1429 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1433 for ac_dir
in $PATH; do
1434 # Account for people who put trailing slashes in PATH elements.
1436 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1438 # OSF1 and SCO ODT 3.0 have their own names for install.
1439 # Don't use installbsd from OSF since it installs stuff as root
1441 for ac_prog
in ginstall scoinst
install; do
1442 if test -f $ac_dir/$ac_prog; then
1443 if test $ac_prog = install &&
1444 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1445 # AIX install. It has an incompatible calling convention.
1448 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1459 if test "${ac_cv_path_install+set}" = set; then
1460 INSTALL
="$ac_cv_path_install"
1462 # As a last resort, use the slow shell script. We don't cache a
1463 # path for INSTALL within a source directory, because that will
1464 # break other packages using the cache if that directory is
1465 # removed, or if the path is relative.
1466 INSTALL
="$ac_install_sh"
1469 echo "$ac_t""$INSTALL" 1>&6
1471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1472 # It thinks the first close brace ends the variable substitution.
1473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1477 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1480 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1481 echo "configure:1482: checking whether to enable maintainer-specific portions of Makefiles" >&5
1482 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1483 if test "${enable_maintainer_mode+set}" = set; then
1484 enableval
="$enable_maintainer_mode"
1485 USE_MAINTAINER_MODE
=$enableval
1487 USE_MAINTAINER_MODE
=no
1490 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1493 if test $USE_MAINTAINER_MODE = yes; then
1494 MAINTAINER_MODE_TRUE
=
1495 MAINTAINER_MODE_FALSE
='#'
1497 MAINTAINER_MODE_TRUE
='#'
1498 MAINTAINER_MODE_FALSE
=
1500 MAINT
=$MAINTAINER_MODE_TRUE
1504 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1505 # at least currently, we never actually build a program, so we never
1506 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1507 # fails, because we are probably configuring with a cross compiler
1508 # which can't create executables. So we include AC_EXEEXT to keep
1509 # automake happy, but we don't execute it, since we don't care about
1514 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1515 echo "configure:1516: checking for executable suffix" >&5
1516 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1523 echo 'int main () { return 0; }' > conftest.
$ac_ext
1525 if { (eval echo configure
:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1526 for file in conftest.
*; do
1528 *.c |
*.o |
*.obj
) ;;
1529 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1533 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1536 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1541 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1542 echo "$ac_t""${ac_cv_exeext}" 1>&6
1547 .
${newlib_basedir}/configure.
host
1549 newlib_cflags
="${newlib_cflags} -fno-builtin"
1551 NEWLIB_CFLAGS
=${newlib_cflags}
1559 if test x
${newlib_elix_level} = x0
; then
1561 ELIX_LEVEL_0_FALSE
='#'
1563 ELIX_LEVEL_0_TRUE
='#'
1568 if test x
${newlib_elix_level} = x1
; then
1570 ELIX_LEVEL_1_FALSE
='#'
1572 ELIX_LEVEL_1_TRUE
='#'
1577 if test x
${newlib_elix_level} = x2
; then
1579 ELIX_LEVEL_2_FALSE
='#'
1581 ELIX_LEVEL_2_TRUE
='#'
1586 if test x
${newlib_elix_level} = x3
; then
1588 ELIX_LEVEL_3_FALSE
='#'
1590 ELIX_LEVEL_3_TRUE
='#'
1595 if test x
${newlib_elix_level} = x4
; then
1597 ELIX_LEVEL_4_FALSE
='#'
1599 ELIX_LEVEL_4_TRUE
='#'
1605 if test x
${use_libtool} = xyes
; then
1607 USE_LIBTOOL_FALSE
='#'
1609 USE_LIBTOOL_TRUE
='#'
1613 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1614 # use oext, which is set in configure.host based on the target platform.
1626 if test "${use_libtool}" = "yes"; then
1628 # Check whether --enable-shared or --disable-shared was given.
1629 if test "${enable_shared+set}" = set; then
1630 enableval
="$enable_shared"
1631 p
=${PACKAGE-default}
1633 yes) enable_shared
=yes ;;
1634 no
) enable_shared
=no
;;
1637 # Look at the argument we got. We use all the common list separators.
1638 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1639 for pkg
in $enableval; do
1640 if test "X$pkg" = "X$p"; then
1651 # Check whether --enable-static or --disable-static was given.
1652 if test "${enable_static+set}" = set; then
1653 enableval
="$enable_static"
1654 p
=${PACKAGE-default}
1656 yes) enable_static
=yes ;;
1657 no
) enable_static
=no
;;
1660 # Look at the argument we got. We use all the common list separators.
1661 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1662 for pkg
in $enableval; do
1663 if test "X$pkg" = "X$p"; then
1674 # Check whether --enable-fast-install or --disable-fast-install was given.
1675 if test "${enable_fast_install+set}" = set; then
1676 enableval
="$enable_fast_install"
1677 p
=${PACKAGE-default}
1679 yes) enable_fast_install
=yes ;;
1680 no
) enable_fast_install
=no
;;
1682 enable_fast_install
=no
1683 # Look at the argument we got. We use all the common list separators.
1684 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1685 for pkg
in $enableval; do
1686 if test "X$pkg" = "X$p"; then
1687 enable_fast_install
=yes
1694 enable_fast_install
=yes
1697 # Extract the first word of "gcc", so it can be a program name with args.
1698 set dummy gcc
; ac_word
=$2
1699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_word" >&5
1701 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 if test -n "$CC"; then
1705 ac_cv_prog_CC
="$CC" # Let the user override the test.
1707 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1709 for ac_dir
in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir
=.
1711 if test -f $ac_dir/$ac_word; then
1720 if test -n "$CC"; then
1721 echo "$ac_t""$CC" 1>&6
1723 echo "$ac_t""no" 1>&6
1726 if test -z "$CC"; then
1727 # Extract the first word of "cc", so it can be a program name with args.
1728 set dummy cc
; ac_word
=$2
1729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1730 echo "configure:1731: checking for $ac_word" >&5
1731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 if test -n "$CC"; then
1735 ac_cv_prog_CC
="$CC" # Let the user override the test.
1737 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1740 for ac_dir
in $ac_dummy; do
1741 test -z "$ac_dir" && ac_dir
=.
1742 if test -f $ac_dir/$ac_word; then
1743 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1744 ac_prog_rejected
=yes
1752 if test $ac_prog_rejected = yes; then
1753 # We found a bogon in the path, so make sure we never use it.
1754 set dummy
$ac_cv_prog_CC
1756 if test $# -gt 0; then
1757 # We chose a different compiler from the bogus one.
1758 # However, it has the same basename, so the bogon will be chosen
1759 # first if we set CC to just the basename; use the full file name.
1761 set dummy
"$ac_dir/$ac_word" "$@"
1769 if test -n "$CC"; then
1770 echo "$ac_t""$CC" 1>&6
1772 echo "$ac_t""no" 1>&6
1775 if test -z "$CC"; then
1776 case "`uname -s`" in
1778 # Extract the first word of "cl", so it can be a program name with args.
1779 set dummy cl
; ac_word
=$2
1780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1781 echo "configure:1782: checking for $ac_word" >&5
1782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 if test -n "$CC"; then
1786 ac_cv_prog_CC
="$CC" # Let the user override the test.
1788 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1790 for ac_dir
in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir
=.
1792 if test -f $ac_dir/$ac_word; then
1801 if test -n "$CC"; then
1802 echo "$ac_t""$CC" 1>&6
1804 echo "$ac_t""no" 1>&6
1809 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1813 echo "configure:1814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1817 ac_cpp
='$CPP $CPPFLAGS'
1818 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1819 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1820 cross_compiling
=$ac_cv_prog_cc_cross
1822 cat > conftest.
$ac_ext << EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1829 if { (eval echo configure
:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1830 ac_cv_prog_cc_works
=yes
1831 # If we can't run a trivial program, we are probably using a cross compiler.
1832 if (.
/conftest
; exit) 2>/dev
/null
; then
1833 ac_cv_prog_cc_cross
=no
1835 ac_cv_prog_cc_cross
=yes
1838 echo "configure: failed program was:" >&5
1839 cat conftest.
$ac_ext >&5
1840 ac_cv_prog_cc_works
=no
1844 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1845 ac_cpp
='$CPP $CPPFLAGS'
1846 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1847 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1848 cross_compiling
=$ac_cv_prog_cc_cross
1850 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1851 if test $ac_cv_prog_cc_works = no
; then
1852 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1854 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1855 echo "configure:1856: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1856 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1857 cross_compiling
=$ac_cv_prog_cc_cross
1859 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1860 echo "configure:1861: checking whether we are using GNU C" >&5
1861 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1864 cat > conftest.c
<<EOF
1869 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1876 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1878 if test $ac_cv_prog_gcc = yes; then
1884 ac_test_CFLAGS
="${CFLAGS+set}"
1885 ac_save_CFLAGS
="$CFLAGS"
1887 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1888 echo "configure:1889: checking whether ${CC-cc} accepts -g" >&5
1889 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 echo 'void f(){}' > conftest.c
1893 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1902 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1903 if test "$ac_test_CFLAGS" = set; then
1904 CFLAGS
="$ac_save_CFLAGS"
1905 elif test $ac_cv_prog_cc_g = yes; then
1906 if test "$GCC" = yes; then
1912 if test "$GCC" = yes; then
1919 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1920 if test "${with_gnu_ld+set}" = set; then
1921 withval
="$with_gnu_ld"
1922 test "$withval" = no || with_gnu_ld
=yes
1928 if test "$GCC" = yes; then
1929 # Check if gcc -print-prog-name=ld gives a path.
1930 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1931 echo "configure:1932: checking for ld used by GCC" >&5
1934 # gcc leaves a trailing carriage return which upsets mingw
1935 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1937 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1940 # Accept absolute paths.
1941 [\\/]* |
[A-Za-z
]:[\\/]*)
1942 re_direlt
='/[^/][^/]*/\.\./'
1943 # Canonicalize the path of ld
1944 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1945 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1946 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1948 test -z "$LD" && LD
="$ac_prog"
1951 # If it fails, then pretend we aren't using GCC.
1955 # If it is relative, then search for the first ld in PATH.
1959 elif test "$with_gnu_ld" = yes; then
1960 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1961 echo "configure:1962: checking for GNU ld" >&5
1963 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1964 echo "configure:1965: checking for non-GNU ld" >&5
1966 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 if test -z "$LD"; then
1970 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1971 for ac_dir
in $PATH; do
1972 test -z "$ac_dir" && ac_dir
=.
1973 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1974 lt_cv_path_LD
="$ac_dir/$ac_prog"
1975 # Check to see if the program is GNU ld. I'd rather use --version,
1976 # but apparently some GNU ld's only accept -v.
1977 # Break only if it was the GNU/non-GNU ld that we prefer.
1978 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1979 test "$with_gnu_ld" != no
&& break
1981 test "$with_gnu_ld" != yes && break
1987 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1992 if test -n "$LD"; then
1993 echo "$ac_t""$LD" 1>&6
1995 echo "$ac_t""no" 1>&6
1997 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1998 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1999 echo "configure:2000: checking if the linker ($LD) is GNU ld" >&5
2000 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2004 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
2005 lt_cv_prog_gnu_ld
=yes
2007 lt_cv_prog_gnu_ld
=no
2011 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2012 with_gnu_ld
=$lt_cv_prog_gnu_ld
2015 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2016 echo "configure:2017: checking for $LD option to reload object files" >&5
2017 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 lt_cv_ld_reload_flag
='-r'
2023 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2024 reload_flag
=$lt_cv_ld_reload_flag
2025 test -n "$reload_flag" && reload_flag
=" $reload_flag"
2027 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2028 echo "configure:2029: checking for BSD-compatible nm" >&5
2029 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 if test -n "$NM"; then
2033 # Let the user override the test.
2036 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2037 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
2038 test -z "$ac_dir" && ac_dir
=.
2039 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
2040 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
2041 # Check to see if the nm accepts a BSD-compat flag.
2042 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2043 # nm: unknown option "B" ignored
2044 # Tru64's nm complains that /dev/null is an invalid object file
2045 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
2046 lt_cv_path_NM
="$tmp_nm -B"
2048 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2049 lt_cv_path_NM
="$tmp_nm -p"
2052 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2053 continue # so that we can try to find one that supports BSD flags
2058 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
2063 echo "$ac_t""$NM" 1>&6
2065 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2066 echo "configure:2067: checking whether ln -s works" >&5
2067 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2071 if ln -s X conftestdata
2>/dev
/null
2074 ac_cv_prog_LN_S
="ln -s"
2079 LN_S
="$ac_cv_prog_LN_S"
2080 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2081 echo "$ac_t""yes" 1>&6
2083 echo "$ac_t""no" 1>&6
2086 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2087 echo "configure:2088: checking how to recognise dependant libraries" >&5
2088 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 lt_cv_file_magic_cmd
='$MAGIC_CMD'
2092 lt_cv_file_magic_test_file
=
2093 lt_cv_deplibs_check_method
='unknown'
2094 # Need to set the preceding variable on all platforms that support
2095 # interlibrary dependencies.
2096 # 'none' -- dependencies not supported.
2097 # `unknown' -- same as none, but documents that we really don't know.
2098 # 'pass_all' -- all dependencies passed with no checks.
2099 # 'test_compile' -- check by making test program.
2100 # 'file_magic [regex]' -- check by looking for files in library path
2101 # which responds to the $file_magic_cmd with a given egrep regex.
2102 # If you have `file' or equivalent on your system and you're not sure
2103 # whether `pass_all' will *always* work, you probably want this one.
2107 lt_cv_deplibs_check_method
=pass_all
2111 lt_cv_deplibs_check_method
=pass_all
2115 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2116 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2117 lt_cv_file_magic_test_file
=/shlib
/libc.so
2120 cygwin
* | mingw
* |pw32
*)
2121 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
2122 lt_cv_file_magic_cmd
='$OBJDUMP -f'
2125 darwin
* | rhapsody
*)
2126 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
2127 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2129 rhapsody
* | darwin1.012
)
2130 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
2133 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
2139 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2142 # Not sure whether the presence of OpenBSD here was a mistake.
2143 # Let's accept both of them until this is cleared up.
2144 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2145 lt_cv_file_magic_cmd
=/usr
/bin
/file
2146 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2150 lt_cv_deplibs_check_method
=pass_all
2155 lt_cv_deplibs_check_method
=pass_all
2161 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2162 lt_cv_file_magic_cmd
=/usr
/bin
/file
2163 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
2166 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2167 lt_cv_file_magic_cmd
=/usr
/bin
/file
2168 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
2176 # this will be overridden with pass_all, but let us keep it just in case
2177 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2181 *-32|
*"-32 ") libmagic
=32-bit;;
2182 *-n32|
*"-n32 ") libmagic
=N32
;;
2183 *-64|
*"-64 ") libmagic
=64-bit;;
2184 *) libmagic
=never-match
;;
2186 # this will be overridden with pass_all, but let us keep it just in case
2187 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2190 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
2191 lt_cv_deplibs_check_method
=pass_all
2194 # This must be Linux ELF.
2197 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
2198 lt_cv_deplibs_check_method
=pass_all
;;
2200 # glibc up to 2.1.1 does not perform some relocations on ARM
2201 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2203 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
2207 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2208 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2210 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
2215 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2216 lt_cv_file_magic_cmd
=/usr
/bin
/file
2217 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
2220 osf3
* | osf4
* | osf5
*)
2221 # this will be overridden with pass_all, but let us keep it just in case
2222 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2223 lt_cv_file_magic_test_file
=/shlib
/libc.so
2224 lt_cv_deplibs_check_method
=pass_all
2228 lt_cv_deplibs_check_method
=pass_all
2232 lt_cv_deplibs_check_method
=pass_all
2233 lt_cv_file_magic_test_file
=/lib
/libc.so
2236 sysv5uw
[78]* | sysv4
*uw2
*)
2237 lt_cv_deplibs_check_method
=pass_all
2240 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2241 case $host_vendor in
2243 lt_cv_deplibs_check_method
=pass_all
2246 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2247 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2255 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2256 file_magic_cmd
=$lt_cv_file_magic_cmd
2257 deplibs_check_method
=$lt_cv_deplibs_check_method
2259 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2260 echo "configure:2261: checking for object suffix" >&5
2261 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2265 echo 'int i = 1;' > conftest.
$ac_ext
2266 if { (eval echo configure
:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2267 for ac_file
in conftest.
*; do
2270 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
2274 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2279 echo "$ac_t""$ac_cv_objext" 1>&6
2280 OBJEXT
=$ac_cv_objext
2281 ac_objext
=$ac_cv_objext
2283 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2285 # Only perform the check for file, if the check method requires it
2286 case $deplibs_check_method in
2288 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2289 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2290 echo "configure:2291: checking for ${ac_tool_prefix}file" >&5
2291 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2296 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2299 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2302 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2303 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2304 ac_dummy
="/usr/bin:$PATH"
2305 for ac_dir
in $ac_dummy; do
2306 test -z "$ac_dir" && ac_dir
=.
2307 if test -f $ac_dir/${ac_tool_prefix}file; then
2308 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2309 if test -n "$file_magic_test_file"; then
2310 case $deplibs_check_method in
2312 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2313 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2314 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2315 egrep "$file_magic_regex" > /dev
/null
; then
2320 *** Warning: the command libtool uses to detect shared libraries,
2321 *** $file_magic_cmd, produces output that libtool cannot recognize.
2322 *** The result is that libtool may fail to recognize shared libraries
2323 *** as such. This will affect the creation of libtool libraries that
2324 *** depend on shared libraries, but programs linked with such libtool
2325 *** libraries will work regardless of this problem. Nevertheless, you
2326 *** may want to report the problem to your system manager and/or to
2327 *** bug-libtool@gnu.org
2337 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2342 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2343 if test -n "$MAGIC_CMD"; then
2344 echo "$ac_t""$MAGIC_CMD" 1>&6
2346 echo "$ac_t""no" 1>&6
2349 if test -z "$lt_cv_path_MAGIC_CMD"; then
2350 if test -n "$ac_tool_prefix"; then
2351 echo $ac_n "checking for file""... $ac_c" 1>&6
2352 echo "configure:2353: checking for file" >&5
2353 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2358 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2361 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2364 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2365 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2366 ac_dummy
="/usr/bin:$PATH"
2367 for ac_dir
in $ac_dummy; do
2368 test -z "$ac_dir" && ac_dir
=.
2369 if test -f $ac_dir/file; then
2370 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2371 if test -n "$file_magic_test_file"; then
2372 case $deplibs_check_method in
2374 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2375 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2376 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2377 egrep "$file_magic_regex" > /dev
/null
; then
2382 *** Warning: the command libtool uses to detect shared libraries,
2383 *** $file_magic_cmd, produces output that libtool cannot recognize.
2384 *** The result is that libtool may fail to recognize shared libraries
2385 *** as such. This will affect the creation of libtool libraries that
2386 *** depend on shared libraries, but programs linked with such libtool
2387 *** libraries will work regardless of this problem. Nevertheless, you
2388 *** may want to report the problem to your system manager and/or to
2389 *** bug-libtool@gnu.org
2399 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2404 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2405 if test -n "$MAGIC_CMD"; then
2406 echo "$ac_t""$MAGIC_CMD" 1>&6
2408 echo "$ac_t""no" 1>&6
2420 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2421 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_word" >&5
2424 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 if test -n "$RANLIB"; then
2428 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2430 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2432 for ac_dir
in $ac_dummy; do
2433 test -z "$ac_dir" && ac_dir
=.
2434 if test -f $ac_dir/$ac_word; then
2435 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2442 RANLIB
="$ac_cv_prog_RANLIB"
2443 if test -n "$RANLIB"; then
2444 echo "$ac_t""$RANLIB" 1>&6
2446 echo "$ac_t""no" 1>&6
2450 if test -z "$ac_cv_prog_RANLIB"; then
2451 if test -n "$ac_tool_prefix"; then
2452 # Extract the first word of "ranlib", so it can be a program name with args.
2453 set dummy ranlib
; ac_word
=$2
2454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2455 echo "configure:2456: checking for $ac_word" >&5
2456 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 if test -n "$RANLIB"; then
2460 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2462 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2464 for ac_dir
in $ac_dummy; do
2465 test -z "$ac_dir" && ac_dir
=.
2466 if test -f $ac_dir/$ac_word; then
2467 ac_cv_prog_RANLIB
="ranlib"
2472 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2475 RANLIB
="$ac_cv_prog_RANLIB"
2476 if test -n "$RANLIB"; then
2477 echo "$ac_t""$RANLIB" 1>&6
2479 echo "$ac_t""no" 1>&6
2487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2488 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_word" >&5
2491 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 if test -n "$STRIP"; then
2495 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2497 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2499 for ac_dir
in $ac_dummy; do
2500 test -z "$ac_dir" && ac_dir
=.
2501 if test -f $ac_dir/$ac_word; then
2502 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2509 STRIP
="$ac_cv_prog_STRIP"
2510 if test -n "$STRIP"; then
2511 echo "$ac_t""$STRIP" 1>&6
2513 echo "$ac_t""no" 1>&6
2517 if test -z "$ac_cv_prog_STRIP"; then
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "strip", so it can be a program name with args.
2520 set dummy strip
; ac_word
=$2
2521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2522 echo "configure:2523: checking for $ac_word" >&5
2523 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2526 if test -n "$STRIP"; then
2527 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2529 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2531 for ac_dir
in $ac_dummy; do
2532 test -z "$ac_dir" && ac_dir
=.
2533 if test -f $ac_dir/$ac_word; then
2534 ac_cv_prog_STRIP
="strip"
2539 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2542 STRIP
="$ac_cv_prog_STRIP"
2543 if test -n "$STRIP"; then
2544 echo "$ac_t""$STRIP" 1>&6
2546 echo "$ac_t""no" 1>&6
2555 # Check for any special flags to pass to ltconfig.
2556 libtool_flags
="--cache-file=$cache_file"
2557 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2558 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2559 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2560 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2561 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2563 libtool_flags
="$libtool_flags --enable-win32-dll"
2564 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2565 if test "${enable_libtool_lock+set}" = set; then
2566 enableval
="$enable_libtool_lock"
2570 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2571 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2573 # Check whether --with-pic or --without-pic was given.
2574 if test "${with_pic+set}" = set; then
2581 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2582 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2584 # Some flags need to be propagated to the compiler or linker for good
2588 # Find out which ABI we are using.
2589 echo '#line 2590 "configure"' > conftest.
$ac_ext
2590 if { (eval echo configure
:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2591 case `/usr/bin/file conftest.$ac_objext` in
2607 # Find out which ABI we are using.
2608 echo 'int i;' > conftest.
$ac_ext
2609 if { (eval echo configure
:2610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2610 case "`/usr/bin/file conftest.o`" in
2623 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2624 SAVE_CFLAGS
="$CFLAGS"
2625 CFLAGS
="$CFLAGS -belf"
2626 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2627 echo "configure:2628: checking whether the C compiler needs -belf" >&5
2628 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2634 ac_cpp
='$CPP $CPPFLAGS'
2635 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2636 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2637 cross_compiling
=$ac_cv_prog_cc_cross
2639 cat > conftest.
$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2647 if { (eval echo configure
:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2649 lt_cv_cc_needs_belf
=yes
2651 echo "configure: failed program was:" >&5
2652 cat conftest.
$ac_ext >&5
2654 lt_cv_cc_needs_belf
=no
2658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2659 ac_cpp
='$CPP $CPPFLAGS'
2660 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2661 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2662 cross_compiling
=$ac_cv_prog_cc_cross
2666 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2667 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2668 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2669 CFLAGS
="$SAVE_CFLAGS"
2673 *-*-cygwin* |
*-*-mingw* |
*-*-pw32*)
2674 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2675 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
2676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2677 echo "configure:2678: checking for $ac_word" >&5
2678 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 if test -n "$DLLTOOL"; then
2682 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2684 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2686 for ac_dir
in $ac_dummy; do
2687 test -z "$ac_dir" && ac_dir
=.
2688 if test -f $ac_dir/$ac_word; then
2689 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
2696 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2697 if test -n "$DLLTOOL"; then
2698 echo "$ac_t""$DLLTOOL" 1>&6
2700 echo "$ac_t""no" 1>&6
2704 if test -z "$ac_cv_prog_DLLTOOL"; then
2705 if test -n "$ac_tool_prefix"; then
2706 # Extract the first word of "dlltool", so it can be a program name with args.
2707 set dummy dlltool
; ac_word
=$2
2708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2709 echo "configure:2710: checking for $ac_word" >&5
2710 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 if test -n "$DLLTOOL"; then
2714 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2716 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2718 for ac_dir
in $ac_dummy; do
2719 test -z "$ac_dir" && ac_dir
=.
2720 if test -f $ac_dir/$ac_word; then
2721 ac_cv_prog_DLLTOOL
="dlltool"
2726 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
2729 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2730 if test -n "$DLLTOOL"; then
2731 echo "$ac_t""$DLLTOOL" 1>&6
2733 echo "$ac_t""no" 1>&6
2741 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2742 set dummy
${ac_tool_prefix}as
; ac_word
=$2
2743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2744 echo "configure:2745: checking for $ac_word" >&5
2745 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2748 if test -n "$AS"; then
2749 ac_cv_prog_AS
="$AS" # Let the user override the test.
2751 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2753 for ac_dir
in $ac_dummy; do
2754 test -z "$ac_dir" && ac_dir
=.
2755 if test -f $ac_dir/$ac_word; then
2756 ac_cv_prog_AS
="${ac_tool_prefix}as"
2764 if test -n "$AS"; then
2765 echo "$ac_t""$AS" 1>&6
2767 echo "$ac_t""no" 1>&6
2771 if test -z "$ac_cv_prog_AS"; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "as", so it can be a program name with args.
2774 set dummy as
; ac_word
=$2
2775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_word" >&5
2777 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 if test -n "$AS"; then
2781 ac_cv_prog_AS
="$AS" # Let the user override the test.
2783 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2785 for ac_dir
in $ac_dummy; do
2786 test -z "$ac_dir" && ac_dir
=.
2787 if test -f $ac_dir/$ac_word; then
2793 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
2797 if test -n "$AS"; then
2798 echo "$ac_t""$AS" 1>&6
2800 echo "$ac_t""no" 1>&6
2808 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2809 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
2810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2811 echo "configure:2812: checking for $ac_word" >&5
2812 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2815 if test -n "$OBJDUMP"; then
2816 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
2818 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2820 for ac_dir
in $ac_dummy; do
2821 test -z "$ac_dir" && ac_dir
=.
2822 if test -f $ac_dir/$ac_word; then
2823 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
2830 OBJDUMP
="$ac_cv_prog_OBJDUMP"
2831 if test -n "$OBJDUMP"; then
2832 echo "$ac_t""$OBJDUMP" 1>&6
2834 echo "$ac_t""no" 1>&6
2838 if test -z "$ac_cv_prog_OBJDUMP"; then
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "objdump", so it can be a program name with args.
2841 set dummy objdump
; ac_word
=$2
2842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2843 echo "configure:2844: checking for $ac_word" >&5
2844 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 if test -n "$OBJDUMP"; then
2848 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
2850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2852 for ac_dir
in $ac_dummy; do
2853 test -z "$ac_dir" && ac_dir
=.
2854 if test -f $ac_dir/$ac_word; then
2855 ac_cv_prog_OBJDUMP
="objdump"
2860 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP
="false"
2863 OBJDUMP
="$ac_cv_prog_OBJDUMP"
2864 if test -n "$OBJDUMP"; then
2865 echo "$ac_t""$OBJDUMP" 1>&6
2867 echo "$ac_t""no" 1>&6
2876 # recent cygwin and mingw systems supply a stub DllMain which the user
2877 # can override, but on older systems we have to supply one
2878 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2879 echo "configure:2880: checking if libtool should supply DllMain function" >&5
2880 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2883 cat > conftest.
$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2888 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2892 if { (eval echo configure
:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2894 lt_cv_need_dllmain
=no
2896 echo "configure: failed program was:" >&5
2897 cat conftest.
$ac_ext >&5
2899 lt_cv_need_dllmain
=yes
2904 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2907 *-*-cygwin*/gcc
*-mno-cygwin*|
*-*-mingw*)
2908 # old mingw systems require "-dll" to link a DLL, while more recent ones
2910 SAVE_CFLAGS
="$CFLAGS"
2911 CFLAGS
="$CFLAGS -mdll"
2912 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2913 echo "configure:2914: checking how to link DLLs" >&5
2914 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2917 cat > conftest.
$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2925 if { (eval echo configure
:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2927 lt_cv_cc_dll_switch
=-mdll
2929 echo "configure: failed program was:" >&5
2930 cat conftest.
$ac_ext >&5
2932 lt_cv_cc_dll_switch
=-dll
2937 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2938 CFLAGS
="$SAVE_CFLAGS" ;;
2939 *-*-cygwin* |
*-*-pw32*)
2940 # cygwin systems need to pass --dll to the linker, and not link
2941 # crt.o which will require a WinMain@16 definition.
2942 lt_cv_cc_dll_switch
="-Wl,--dll -nostartfiles" ;;
2949 # Save cache, so that ltconfig can load it
2950 cat > confcache
<<\EOF
2951 # This file is a shell script that caches the results of configure
2952 # tests run on this system so they can be shared between configure
2953 # scripts and configure runs. It is not useful on other systems.
2954 # If it contains results you don't want to keep, you may remove or edit it.
2956 # By default, configure uses ./config.cache as the cache file,
2957 # creating it if it does not exist already. You can give configure
2958 # the --cache-file=FILE option to use a different cache file; that is
2959 # what configure does when it calls configure scripts in
2960 # subdirectories, so they share the cache.
2961 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2962 # config.status only pays attention to the cache file if you give it the
2963 # --recheck option to rerun configure.
2966 # The following way of writing the cache mishandles newlines in values,
2967 # but we know of no workaround that is simple, portable, and efficient.
2968 # So, don't put newlines in cache variables' values.
2969 # Ultrix sh set writes to stderr and can't be redirected directly,
2970 # and sets the high bit in the cache file unless we assign to the vars.
2972 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2974 # `set' does not quote correctly, so add quotes (double-quote substitution
2975 # turns \\\\ into \\, and sed turns \\ into \).
2977 -e "s/'/'\\\\''/g" \
2978 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2981 # `set' quotes correctly as required by POSIX, so do not add quotes.
2982 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2985 if cmp -s $cache_file confcache
; then
2988 if test -w $cache_file; then
2989 echo "updating cache $cache_file"
2990 cat confcache
> $cache_file
2992 echo "not updating unwritable cache $cache_file"
2998 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2999 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
3000 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
3001 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
3002 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
3003 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
3004 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
3005 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
3006 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
3007 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3009 # Reload cache, that may have been modified by ltconfig
3010 if test -r "$cache_file"; then
3011 echo "loading cache $cache_file"
3014 echo "creating cache $cache_file"
3019 # This can be used to rebuild libtool when needed
3020 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3022 # Always use our own libtool.
3023 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
3025 # Redirect the config.log output again, so that the ltconfig log is not
3026 # clobbered by the next message.
3027 exec 5>>.
/config.log
3034 for ac_prog
in mawk gawk nawk
awk
3036 # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy
$ac_prog; ac_word
=$2
3038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3039 echo "configure:3040: checking for $ac_word" >&5
3040 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 if test -n "$AWK"; then
3044 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3046 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3048 for ac_dir
in $ac_dummy; do
3049 test -z "$ac_dir" && ac_dir
=.
3050 if test -f $ac_dir/$ac_word; then
3051 ac_cv_prog_AWK
="$ac_prog"
3058 AWK
="$ac_cv_prog_AWK"
3059 if test -n "$AWK"; then
3060 echo "$ac_t""$AWK" 1>&6
3062 echo "$ac_t""no" 1>&6
3065 test -n "$AWK" && break
3070 configdirs
="libc libm"
3072 # Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
3073 if test "${enable_newlib_hw_fp+set}" = set; then
3074 enableval
="$enable_newlib_hw_fp"
3075 case "${enableval}" in
3076 yes) newlib_hw_fp
=true
;;
3077 no
) newlib_hw_fp
=false
;;
3078 *) { echo "configure: error: bad value ${enableval} for --enable-newlib-hw-fp" 1>&2; exit 1; } ;;
3086 if test x
$newlib_hw_fp = xtrue
; then
3088 NEWLIB_HW_FP_FALSE
='#'
3090 NEWLIB_HW_FP_TRUE
='#'
3094 if test -z "${with_multisubdir}"; then
3095 configdirs
="${configdirs} doc"
3102 if test x
$have_doc = xyes
; then
3112 i
[34567]86-pc-linux-*)
3113 configdirs
="${configdirs} iconvdata"
3114 EXTRA_DIRS
=iconvdata
3119 # These get added in the top-level configure.in, except in the case where
3120 # newlib is being built natively.
3121 LIBC_INCLUDE_GREP
=`echo ${CC} | grep \/libc\/include`
3122 abs_newlib_basedir
=`cd ${newlib_basedir} && pwd`
3123 if test -z "${LIBC_INCLUDE_GREP}"; then
3124 CC_FOR_NEWLIB
="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
3126 CC_FOR_NEWLIB
="${CC}"
3130 subdirs
="${configdirs}"
3135 if test -n "${sys_dir}"; then
3144 if test -n "${crt1_dir}"; then
3145 CRT1_DIR
=${crt1_dir}/
3150 if test -n "${libm_machine_dir}"; then
3151 LIBM_MACHINE_OBJECTLIST
=libm
/machine
/${libm_machine_dir}/objectlist.
awk.
in
3155 if test -n "${machine_dir}"; then
3156 MACHINE_OBJECTLIST
=libc
/machine
/${machine_dir}/objectlist.
awk.
in
3160 if test -n "${sys_dir}"; then
3161 SYS_OBJECTLIST
=libc
/sys
/${sys_dir}/objectlist.
awk.
in
3165 if test "${have_sys_mach_dir}" = "yes"; then
3166 SYS_MACH_OBJECTLIST
=libc
/sys
/${sys_dir}/machine
/${machine_dir}/objectlist.
awk.
in
3170 if test -n "${posix_dir}"; then
3171 POSIX_OBJECTLIST
=libc
/${posix_dir}/objectlist.
awk.
in
3175 if test -n "${signal_dir}"; then
3176 SIGNAL_OBJECTLIST
=libc
/${signal_dir}/objectlist.
awk.
in
3180 if test -n "${syscall_dir}"; then
3181 SYSCALL_OBJECTLIST
=libc
/${syscall_dir}/objectlist.
awk.
in
3185 if test -n "${unix_dir}"; then
3186 UNIX_OBJECTLIST
=libc
/${unix_dir}/objectlist.
awk.
in
3190 if test -n "${stdio64_dir}"; then
3191 STDIO64_OBJECTLIST
=libc
/${stdio64_dir}/objectlist.
awk.
in
3195 # Put a plausible default for CC_FOR_BUILD in Makefile.
3196 if test -z "$CC_FOR_BUILD"; then
3201 if test "${newlib_elix_level}" -gt "0"; then
3202 cat >> confdefs.h
<<EOF
3203 #define _ELIX_LEVEL ${newlib_elix_level}
3208 if test "${newlib_mb}" = "yes"; then
3209 cat >> confdefs.h
<<EOF
3210 #define _MB_LEN_MAX 8
3214 cat >> confdefs.h
<<EOF
3215 #define _MB_LEN_MAX 1
3220 cat >> confdefs.h
<<EOF
3221 #define _NEWLIB_VERSION "$VERSION"
3225 if test "${multilib}" = "yes"; then
3226 multilib_arg
="--enable-multilib"
3231 if test "${newlib_iconv}" = "yes"; then
3232 cat >> confdefs.h
<<EOF
3233 #define _ICONV_ENABLED 1
3238 if test "x${builtin_converters}" != "x"; then
3240 if test x
${newlib_iconv} = x
; then
3241 { echo "configure: error: --enable-newlib-builtin-converters option can't be used if iconv library is disabled - use --enable-newlib-iconv to enable it" 1>&2; exit 1; }
3244 builtin_converters
=`echo "${builtin_converters}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
3246 available_converters
=`cat "${srcdir}/libc/iconv/charset.aliases" | sed -e '/#/d' | sed -e 'N; s/\n //;'`
3248 builtin_converters1
="${builtin_converters}"
3249 builtin_converters
=""
3250 for converter
in ${builtin_converters1}; do
3251 result
=`echo "${available_converters}" | grep -e "\(^\| \)${converter}\( \|\$\)"`
3252 if test $?
!= "0"; then
3253 { echo "configure: error: ${converter} is not supported - see ${srcdir}/libc/iconv/charset.aliases file for the list of available converters" 1>&2; exit 1; }
3255 converter1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
3256 builtin_converters="${builtin_converters} ${converter1}"
3259 for converter in ${builtin_converters}; do
3260 opt=_ICONV_CONVERTER_`echo "${converter}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3261 cat >> confdefs.h <<EOF
3269 cat > confcache <<\EOF
3270 # This file is a shell script that caches the results of configure
3271 # tests run on this system so they can be shared between configure
3272 # scripts and configure runs. It is not useful on other systems.
3273 # If it contains results you don't want to keep, you may remove or edit it.
3275 # By default, configure uses ./config.cache as the cache file,
3276 # creating it if it does not exist already. You can give configure
3277 # the --cache-file=FILE option to use a different cache file; that is
3278 # what configure does when it calls configure scripts in
3279 # subdirectories, so they share the cache.
3280 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3281 # config.status only pays attention to the cache file if you give it the
3282 # --recheck option to rerun configure.
3285 # The following way of writing the cache mishandles newlines in values,
3286 # but we know of no workaround that is simple, portable, and efficient.
3287 # So, don't put newlines in cache variables' values.
3288 # Ultrix sh set writes to stderr and can't be redirected directly,
3289 # and sets the high bit in the cache file unless we assign to the vars.
3291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3293 # `set' does not quote correctly, so add quotes (double-quote substitution
3294 # turns \\\\ into \\, and sed turns \\ into \).
3296 -e "s
/'/'\\\\''/g
" \
3297 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
3300 # `set' quotes correctly as required by POSIX, so do not add quotes.
3301 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3304 if cmp -s $cache_file confcache; then
3307 if test -w $cache_file; then
3308 echo "updating cache
$cache_file"
3309 cat confcache > $cache_file
3311 echo "not updating unwritable cache
$cache_file"
3316 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3318 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
3319 # Let make expand exec_prefix.
3320 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
3322 # Any assignment to VPATH causes Sun make to only execute
3323 # the first set of double-colon rules, so remove it if not needed.
3324 # If there is a colon in the path, we need to keep it.
3325 if test "x
$srcdir" = x.; then
3326 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3329 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3331 DEFS=-DHAVE_CONFIG_H
3333 # Without the ".
/", some shells look in PATH for config.status.
3334 : ${CONFIG_STATUS=./config.status}
3336 echo creating $CONFIG_STATUS
3337 rm -f $CONFIG_STATUS
3338 cat > $CONFIG_STATUS <<EOF
3340 # Generated automatically by configure.
3341 # Run this file to recreate the current configuration.
3342 # This directory was configured as follows,
3343 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3345 # $0 $ac_configure_args
3347 # Compiler output produced by configure, useful for debugging
3348 # configure, is in ./config.log if it exists.
3350 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
3353 case "\
$ac_option" in
3354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3355 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3356 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3357 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3358 echo "$CONFIG_STATUS generated by autoconf version
2.13"
3360 -help | --help | --hel | --he | --h)
3361 echo "\
$ac_cs_usage"; exit 0 ;;
3362 *) echo "\
$ac_cs_usage"; exit 1 ;;
3366 ac_given_srcdir=$srcdir
3367 ac_given_INSTALL="$INSTALL"
3369 trap 'rm -fr `echo "Makefile newlib.h
:newlib.hin
" | sed "s
/:[^
]*//g
"` conftest*; exit 1' 1 2 15
3371 cat >> $CONFIG_STATUS <<EOF
3373 # Protect against being on the right side of a sed subst in config.status.
3374 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3375 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3379 s%@CFLAGS@%$CFLAGS%g
3380 s%@CPPFLAGS@%$CPPFLAGS%g
3381 s%@CXXFLAGS@%$CXXFLAGS%g
3382 s%@FFLAGS@%$FFLAGS%g
3384 s%@LDFLAGS@%$LDFLAGS%g
3386 s%@exec_prefix@%$exec_prefix%g
3387 s%@prefix@%$prefix%g
3388 s%@program_transform_name@%$program_transform_name%g
3389 s%@bindir@%$bindir%g
3390 s%@sbindir@%$sbindir%g
3391 s%@libexecdir@%$libexecdir%g
3392 s%@datadir@%$datadir%g
3393 s%@sysconfdir@%$sysconfdir%g
3394 s%@sharedstatedir@%$sharedstatedir%g
3395 s%@localstatedir@%$localstatedir%g
3396 s%@libdir@%$libdir%g
3397 s%@includedir@%$includedir%g
3398 s%@oldincludedir@%$oldincludedir%g
3399 s%@infodir@%$infodir%g
3400 s%@mandir@%$mandir%g
3401 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3402 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
3403 s%@newlib_basedir@%$newlib_basedir%g
3405 s%@host_alias@%$host_alias%g
3406 s%@host_cpu@%$host_cpu%g
3407 s%@host_vendor@%$host_vendor%g
3408 s%@host_os@%$host_os%g
3409 s%@target@%$target%g
3410 s%@target_alias@%$target_alias%g
3411 s%@target_cpu@%$target_cpu%g
3412 s%@target_vendor@%$target_vendor%g
3413 s%@target_os@%$target_os%g
3415 s%@build_alias@%$build_alias%g
3416 s%@build_cpu@%$build_cpu%g
3417 s%@build_vendor@%$build_vendor%g
3418 s%@build_os@%$build_os%g
3419 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3420 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3421 s%@INSTALL_DATA@%$INSTALL_DATA%g
3422 s%@PACKAGE@%$PACKAGE%g
3423 s%@VERSION@%$VERSION%g
3424 s%@ACLOCAL@%$ACLOCAL%g
3425 s%@AUTOCONF@%$AUTOCONF%g
3426 s%@AUTOMAKE@%$AUTOMAKE%g
3427 s%@AUTOHEADER@%$AUTOHEADER%g
3428 s%@MAKEINFO@%$MAKEINFO%g
3429 s%@SET_MAKE@%$SET_MAKE%g
3433 s%@RANLIB@%$RANLIB%g
3434 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3435 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3437 s%@EXEEXT@%$EXEEXT%g
3438 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
3439 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3440 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3441 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3442 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3443 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3444 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3445 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3446 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3447 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3448 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
3449 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3450 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
3451 s%@OBJEXT@%$OBJEXT%g
3454 s%@libm_machine_dir@%$libm_machine_dir%g
3455 s%@machine_dir@%$machine_dir%g
3456 s%@sys_dir@%$sys_dir%g
3459 s%@DLLTOOL@%$DLLTOOL%g
3460 s%@OBJDUMP@%$OBJDUMP%g
3461 s%@LIBTOOL@%$LIBTOOL%g
3463 s%@NEWLIB_HW_FP_TRUE@%$NEWLIB_HW_FP_TRUE%g
3464 s%@NEWLIB_HW_FP_FALSE@%$NEWLIB_HW_FP_FALSE%g
3465 s%@HAVE_DOC_TRUE@%$HAVE_DOC_TRUE%g
3466 s%@HAVE_DOC_FALSE@%$HAVE_DOC_FALSE%g
3467 s%@EXTRA_DIRS@%$EXTRA_DIRS%g
3468 s%@CC_FOR_NEWLIB@%$CC_FOR_NEWLIB%g
3469 s%@subdirs@%$subdirs%g
3471 s%@CRT0_DIR@%$CRT0_DIR%g
3473 s%@CRT1_DIR@%$CRT1_DIR%g
3474 s%@LIBM_MACHINE_OBJECTLIST@%$LIBM_MACHINE_OBJECTLIST%g
3475 s%@MACHINE_OBJECTLIST@%$MACHINE_OBJECTLIST%g
3476 s%@SYS_OBJECTLIST@%$SYS_OBJECTLIST%g
3477 s%@SYS_MACH_OBJECTLIST@%$SYS_MACH_OBJECTLIST%g
3478 s%@POSIX_OBJECTLIST@%$POSIX_OBJECTLIST%g
3479 s%@SIGNAL_OBJECTLIST@%$SIGNAL_OBJECTLIST%g
3480 s%@SYSCALL_OBJECTLIST@%$SYSCALL_OBJECTLIST%g
3481 s%@UNIX_OBJECTLIST@%$UNIX_OBJECTLIST%g
3482 s%@STDIO64_OBJECTLIST@%$STDIO64_OBJECTLIST%g
3483 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3488 cat >> $CONFIG_STATUS <<\EOF
3490 # Split the substitutions into bite-sized pieces for seds with
3491 # small command number limits, like on Digital OSF/1 and HP-UX.
3492 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3493 ac_file=1 # Number of current file.
3494 ac_beg=1 # First line for current file.
3495 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3498 while $ac_more_lines; do
3499 if test $ac_beg -gt 1; then
3500 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
3502 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
3504 if test ! -s conftest.s$ac_file; then
3506 rm -f conftest.s$ac_file
3508 if test -z "$ac_sed_cmds"; then
3509 ac_sed_cmds="sed -f conftest.s
$ac_file"
3511 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
3513 ac_file=`expr $ac_file + 1`
3515 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3518 if test -z "$ac_sed_cmds"; then
3523 cat >> $CONFIG_STATUS <<EOF
3525 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3527 cat >> $CONFIG_STATUS <<\EOF
3528 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
3529 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
3531 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3532 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3533 *) ac_file_in="${ac_file}.
in" ;;
3536 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3538 # Remove last slash and all that follows it. Not all systems have dirname.
3539 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3540 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3541 # The file is in a subdirectory.
3542 test ! -d "$ac_dir" && mkdir "$ac_dir"
3543 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3544 # A "..
/" for each directory in $ac_dir_suffix.
3545 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3547 ac_dir_suffix= ac_dots=
3550 case "$ac_given_srcdir" in
3552 if test -z "$ac_dots"; then top_srcdir=.
3553 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3554 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3556 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3557 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3560 case "$ac_given_INSTALL" in
3561 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3562 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3565 echo creating "$ac_file"
3567 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
3569 *Makefile*) ac_comsub="1i
\\
3570 # $configure_input" ;;
3574 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3576 s%@configure_input@%$configure_input%g
3577 s%@srcdir@%$srcdir%g
3578 s%@top_srcdir@%$top_srcdir%g
3579 s%@INSTALL@%$INSTALL%g
3580 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3584 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3585 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3587 # ac_d sets the value in "#define NAME VALUE" lines.
3588 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3589 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3592 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3593 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3594 ac_uB
='\([ ]\)%\1#\2define\3'
3597 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3598 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3599 ac_eB
='$%\1#\2define\3'
3603 if test "${CONFIG_HEADERS+set}" != set; then
3605 cat >> $CONFIG_STATUS <<EOF
3606 CONFIG_HEADERS="newlib.h:newlib.hin"
3608 cat >> $CONFIG_STATUS <<\EOF
3610 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3613 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3614 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3615 *) ac_file_in
="${ac_file}.in" ;;
3618 echo creating
$ac_file
3620 rm -f conftest.frag conftest.
in conftest.out
3621 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3622 cat $ac_file_inputs > conftest.
in
3626 # Transform confdefs.h into a sed script conftest.vals that substitutes
3627 # the proper values into config.h.in to produce config.h. And first:
3628 # Protect against being on the right side of a sed subst in config.status.
3629 # Protect against being in an unquoted here document in config.status.
3631 cat > conftest.hdr
<<\EOF
3634 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3638 sed -n -f conftest.hdr confdefs.h > conftest.vals
3641 # This sed command replaces #undef with comments. This is necessary, for
3642 # example, in the case of _POSIX_SOURCE, which is predefined and required
3643 # on some systems where configure will not decide to define it.
3644 cat >> conftest.vals <<\EOF
3645 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3648 # Break up conftest.vals because some shells have a limit on
3649 # the size of here documents, and old seds have small limits too.
3654 ac_lines=`grep -c . conftest.vals
`
3655 # grep -c gives empty output for an empty file on some AIX systems.
3656 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3657 # Write a limited-size here document to conftest.frag.
3658 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3659 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3661 sed -f conftest.frag conftest.in > conftest.out
3663 mv conftest.out conftest.in
3665 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3667 mv conftest.tail conftest.vals
3671 cat >> $CONFIG_STATUS <<\EOF
3672 rm -f conftest.frag conftest.h
3673 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3674 cat conftest.in >> conftest.h
3676 if cmp -s $ac_file conftest.h 2>/dev/null; then
3677 echo "$ac_file is unchanged"
3680 # Remove last slash and all that follows it. Not all systems have dirname.
3681 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3682 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3683 # The file is in a subdirectory.
3684 test ! -d "$ac_dir" && mkdir "$ac_dir"
3687 mv conftest.h $ac_file
3692 cat >> $CONFIG_STATUS <<EOF
3697 with_multisubdir=${with_multisubdir}
3698 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3699 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3700 newlib_basedir=${newlib_basedir}
3702 LDFLAGS="${LDFLAGS}"
3705 cat >> $CONFIG_STATUS <<\EOF
3706 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3707 if test -n "$CONFIG_FILES"; then
3709 . ${newlib_basedir}/../config-ml.in
3713 chmod +x $CONFIG_STATUS
3714 rm -fr confdefs* $ac_clean_files
3715 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3717 if test "$no_recursion" != yes; then
3719 # Remove --cache-file and --srcdir arguments so they do not pile up.
3720 ac_sub_configure_args=
3722 for ac_arg in $ac_configure_args; do
3723 if test -n "$ac_prev"; then
3728 -cache-file | --cache-file | --cache-fil | --cache-fi \
3729 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3730 ac_prev=cache_file ;;
3731 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3732 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3734 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3736 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3738 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3742 for ac_config_dir in ${configdirs}; do
3744 # Do not complain, so a configure script can configure whichever
3745 # parts of a large source tree are present.
3746 if test ! -d $srcdir/$ac_config_dir; then
3750 echo configuring in $ac_config_dir
3755 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3757 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3765 # A "../" for each directory in /$ac_config_dir.
3766 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3769 .) # No --srcdir option. We are building in place.
3770 ac_sub_srcdir=$srcdir ;;
3771 /*) # Absolute path.
3772 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3774 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3777 # Check for guested configure; otherwise get Cygnus style configure.
3778 if test -f $ac_sub_srcdir/configure; then
3779 ac_sub_configure=$ac_sub_srcdir/configure
3780 elif test -f $ac_sub_srcdir/configure.in; then
3781 ac_sub_configure=$ac_configure
3783 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3787 # The recursion is here.
3788 if test -n "$ac_sub_configure"; then
3790 # Make the cache file name correct relative to the subdirectory.
3791 case "$cache_file" in
3792 /*) ac_sub_cache_file=$cache_file ;;
3794 ac_sub_cache_file="$ac_dots$cache_file" ;;
3796 case "$ac_given_INSTALL" in
3797 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3798 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3801 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3802 # The eval makes quoting arguments work.
3803 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3806 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }