3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-target-optspace optimize for space"
19 --enable-malloc-debugging indicate malloc debugging requested"
21 --enable-newlib-multithread enable support for multiple threads"
23 --enable-newlib-elix-level supply desired elix library level (1-4)"
25 --disable-newlib-io-float disable printf/scanf family float support"
27 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 --enable-shared[=PKGS] build shared libraries [default=yes]"
34 --enable-static[=PKGS] build static libraries [default=yes]"
36 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
38 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
40 --disable-libtool-lock avoid locking (might break parallel builds)"
42 --with-pic try to use only PIC/non-PIC objects [default=use both]"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file=./config.cache
57 program_transform_name=s,x,x,
65 bindir='${exec_prefix}/bin'
66 sbindir='${exec_prefix}/sbin'
67 libexecdir='${exec_prefix}/libexec'
68 datadir='${prefix}/share'
69 sysconfdir='${prefix}/etc'
70 sharedstatedir='${prefix}/com'
71 localstatedir='${prefix}/var'
72 libdir='${exec_prefix}/lib'
73 includedir='${prefix}/include'
74 oldincludedir='/usr/include'
75 infodir='${prefix}/info'
76 mandir='${prefix}/man'
78 # Initialize some other variables.
81 SHELL=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 datadir="$ac_optarg" ;;
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
356 -target | --target | --targe | --targ | --tar | --ta | --t)
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.13"
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=setjmp.S
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='\c' ac_t=
555 for ac_dir in ../../../.. $srcdir/../../../..; do
556 if test -f $ac_dir/install-sh; then
558 ac_install_sh="$ac_aux_dir/install-sh -c"
560 elif test -f $ac_dir/install.sh; then
562 ac_install_sh="$ac_aux_dir/install.sh -c"
566 if test -z "$ac_aux_dir"; then
567 { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
569 ac_config_guess=$ac_aux_dir/config.guess
570 ac_config_sub=$ac_aux_dir/config.sub
571 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
574 am__api_version="1.4"
575 # Find a good install program. We prefer a C program (faster),
576 # so one script is as good as another. But avoid the broken or
577 # incompatible versions:
578 # SysV /etc/install, /usr/sbin/install
579 # SunOS /usr/etc/install
582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
585 # ./install, which can be erroneously created by make from ./install.sh.
586 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
587 echo "configure:588: checking for a BSD compatible install" >&5
588 if test -z "$INSTALL"; then
589 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
593 for ac_dir in $PATH; do
594 # Account for people who put trailing slashes in PATH elements.
596 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
598 # OSF1 and SCO ODT 3.0 have their own names for install.
599 # Don't use installbsd from OSF since it installs stuff as root
601 for ac_prog in ginstall scoinst install; do
602 if test -f $ac_dir/$ac_prog; then
603 if test $ac_prog = install &&
604 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
605 # AIX install. It has an incompatible calling convention.
608 ac_cv_path_install="$ac_dir/$ac_prog -c"
619 if test "${ac_cv_path_install+set}" = set; then
620 INSTALL="$ac_cv_path_install"
622 # As a last resort, use the slow shell script. We don't cache a
623 # path for INSTALL within a source directory, because that will
624 # break other packages using the cache if that directory is
625 # removed, or if the path is relative.
626 INSTALL="$ac_install_sh"
629 echo "$ac_t""$INSTALL" 1>&6
631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
632 # It thinks the first close brace ends the variable substitution.
633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
639 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
640 echo "configure:641: checking whether build environment is sane" >&5
643 echo timestamp > conftestfile
644 # Do `set' in a subshell so we don't clobber the current shell's
645 # arguments. Must try -L first in case configure is actually a
646 # symlink; some systems play weird games with the mod time of symlinks
647 # (eg FreeBSD returns the mod time of the symlink's containing
650 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
651 if test "$*" = "X"; then
653 set X `ls -t $srcdir/configure conftestfile`
655 if test "$*" != "X $srcdir/configure conftestfile" \
656 && test "$*" != "X conftestfile $srcdir/configure"; then
658 # If neither matched, then we have a broken ls. This can happen
659 # if, for instance, CONFIG_SHELL is bash and it inherits a
660 # broken ls alias from the environment. This has actually
661 # happened. Such a system could not be considered "sane".
662 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
663 alias in your environment" 1>&2; exit 1; }
666 test "$2" = conftestfile
672 { echo "configure: error: newly created file is older than distributed files!
673 Check your system clock" 1>&2; exit 1; }
676 echo "$ac_t""yes" 1>&6
677 if test "$program_transform_name" = s,x,x,; then
678 program_transform_name=
680 # Double any \ or $. echo might interpret backslashes.
681 cat <<\EOF_SED > conftestsed
682 s,\\,\\\\,g; s,\$,$$,g
684 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
687 test "$program_prefix" != NONE &&
688 program_transform_name="s,^,${program_prefix},; $program_transform_name"
689 # Use a double $ so make ignores it.
690 test "$program_suffix" != NONE &&
691 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
693 # sed with no file args requires a program.
694 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
696 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
697 echo "configure:698: checking whether ${MAKE-make} sets \${MAKE}" >&5
698 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
699 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
702 cat > conftestmake <<\EOF
704 @echo 'ac_maketemp="${MAKE}"'
706 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
707 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
708 if test -n "$ac_maketemp"; then
709 eval ac_cv_prog_make_${ac_make}_set=yes
711 eval ac_cv_prog_make_${ac_make}_set=no
715 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
716 echo "$ac_t""yes" 1>&6
719 echo "$ac_t""no" 1>&6
720 SET_MAKE="MAKE=${MAKE-make}"
723 if test $host != $build; then
724 ac_tool_prefix=${host_alias}-
729 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
730 echo "configure:731: checking for Cygwin environment" >&5
731 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 cat > conftest.$ac_ext <<EOF
735 #line 736 "configure"
736 #include "confdefs.h"
741 #define __CYGWIN__ __CYGWIN32__
746 if { (eval echo configure:747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
750 echo "configure: failed program was:" >&5
751 cat conftest.$ac_ext >&5
759 echo "$ac_t""$ac_cv_cygwin" 1>&6
761 test "$ac_cv_cygwin" = yes && CYGWIN=yes
762 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
763 echo "configure:764: checking for mingw32 environment" >&5
764 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
767 cat > conftest.$ac_ext <<EOF
768 #line 769 "configure"
769 #include "confdefs.h"
775 if { (eval echo configure:776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
779 echo "configure: failed program was:" >&5
780 cat conftest.$ac_ext >&5
788 echo "$ac_t""$ac_cv_mingw32" 1>&6
790 test "$ac_cv_mingw32" = yes && MINGW32=yes
792 # Check whether --enable-multilib or --disable-multilib was given.
793 if test "${enable_multilib+set}" = set; then
794 enableval="$enable_multilib"
795 case "${enableval}" in
798 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
804 # Check whether --enable-target-optspace or --disable-target-optspace was given.
805 if test "${enable_target_optspace+set}" = set; then
806 enableval="$enable_target_optspace"
807 case "${enableval}" in
808 yes) target_optspace=yes ;;
809 no) target_optspace=no ;;
810 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
816 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
817 if test "${enable_malloc_debugging+set}" = set; then
818 enableval="$enable_malloc_debugging"
819 case "${enableval}" in
820 yes) malloc_debugging=yes ;;
821 no) malloc_debugging=no ;;
822 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
828 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
829 if test "${enable_newlib_multithread+set}" = set; then
830 enableval="$enable_newlib_multithread"
831 case "${enableval}" in
832 yes) newlib_multithread=yes ;;
833 no) newlib_multithread=no ;;
834 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
837 newlib_multithread=yes
840 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
841 if test "${enable_newlib_elix_level+set}" = set; then
842 enableval="$enable_newlib_elix_level"
843 case "${enableval}" in
844 0) newlib_elix_level=0 ;;
845 1) newlib_elix_level=1 ;;
846 2) newlib_elix_level=2 ;;
847 3) newlib_elix_level=3 ;;
848 4) newlib_elix_level=4 ;;
849 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
855 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
856 if test "${enable_newlib_io_float+set}" = set; then
857 enableval="$enable_newlib_io_float"
858 case "${enableval}" in
859 yes) newlib_io_float=yes ;;
860 no) newlib_io_float=no ;;
861 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
867 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
868 if test "${enable_newlib_supplied_syscalls+set}" = set; then
869 enableval="$enable_newlib_supplied_syscalls"
870 case "${enableval}" in
871 yes) newlib_may_supply_syscalls=yes ;;
872 no) newlib_may_supply_syscalls=no ;;
873 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
876 newlib_may_supply_syscalls=yes
881 if test x${newlib_may_supply_syscalls} = xyes; then
882 MAY_SUPPLY_SYSCALLS_TRUE=
883 MAY_SUPPLY_SYSCALLS_FALSE='#'
885 MAY_SUPPLY_SYSCALLS_TRUE='#'
886 MAY_SUPPLY_SYSCALLS_FALSE=
890 test -z "${with_target_subdir}" && with_target_subdir=.
892 if test "${srcdir}" = "."; then
893 if test "${with_target_subdir}" != "."; then
894 newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
896 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
899 newlib_basedir="${srcdir}/../../.."
904 # Do some error checking and defaulting for the host and target type.
906 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
909 # 1. You are not allowed to specify --host, --target, and nonopt at the
911 # 2. Host defaults to nonopt.
912 # 3. If nonopt is not specified, then host defaults to the current host,
913 # as determined by config.guess.
914 # 4. Target and build default to nonopt.
915 # 5. If nonopt is not specified, then target and build default to host.
917 # The aliases save the names the user supplied, while $host etc.
918 # will get canonicalized.
919 case $host---$target---$nonopt in
920 NONE---*---* | *---NONE---* | *---*---NONE) ;;
921 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
925 # Make sure we can run config.sub.
926 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
927 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
930 echo $ac_n "checking host system type""... $ac_c" 1>&6
931 echo "configure:932: checking host system type" >&5
934 case "$host_alias" in
938 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
939 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
941 *) host_alias=$nonopt ;;
945 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
946 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
947 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
948 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
949 echo "$ac_t""$host" 1>&6
951 echo $ac_n "checking target system type""... $ac_c" 1>&6
952 echo "configure:953: checking target system type" >&5
955 case "$target_alias" in
958 NONE) target_alias=$host_alias ;;
959 *) target_alias=$nonopt ;;
963 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
964 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
965 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
966 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
967 echo "$ac_t""$target" 1>&6
969 echo $ac_n "checking build system type""... $ac_c" 1>&6
970 echo "configure:971: checking build system type" >&5
973 case "$build_alias" in
976 NONE) build_alias=$host_alias ;;
977 *) build_alias=$nonopt ;;
981 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
982 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
983 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
984 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo "$ac_t""$build" 1>&6
987 test "$host_alias" != "$target_alias" &&
988 test "$program_prefix$program_suffix$program_transform_name" = \
990 program_prefix=${target_alias}-
998 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
999 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1001 cat >> confdefs.h <<EOF
1002 #define PACKAGE "$PACKAGE"
1005 cat >> confdefs.h <<EOF
1006 #define VERSION "$VERSION"
1011 missing_dir=`cd $ac_aux_dir && pwd`
1012 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
1013 echo "configure:1014: checking for working aclocal-${am__api_version}" >&5
1014 # Run test in a subshell; some versions of sh will print an error if
1015 # an executable is not found, even if stderr is redirected.
1016 # Redirect stdin to placate older versions of autoconf. Sigh.
1017 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1018 ACLOCAL=aclocal-${am__api_version}
1019 echo "$ac_t""found" 1>&6
1021 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1022 echo "$ac_t""missing" 1>&6
1025 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1026 echo "configure:1027: checking for working autoconf" >&5
1027 # Run test in a subshell; some versions of sh will print an error if
1028 # an executable is not found, even if stderr is redirected.
1029 # Redirect stdin to placate older versions of autoconf. Sigh.
1030 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1032 echo "$ac_t""found" 1>&6
1034 AUTOCONF="$missing_dir/missing autoconf"
1035 echo "$ac_t""missing" 1>&6
1038 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1039 echo "configure:1040: checking for working automake-${am__api_version}" >&5
1040 # Run test in a subshell; some versions of sh will print an error if
1041 # an executable is not found, even if stderr is redirected.
1042 # Redirect stdin to placate older versions of autoconf. Sigh.
1043 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1044 AUTOMAKE=automake-${am__api_version}
1045 echo "$ac_t""found" 1>&6
1047 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1048 echo "$ac_t""missing" 1>&6
1051 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1052 echo "configure:1053: checking for working autoheader" >&5
1053 # Run test in a subshell; some versions of sh will print an error if
1054 # an executable is not found, even if stderr is redirected.
1055 # Redirect stdin to placate older versions of autoconf. Sigh.
1056 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1057 AUTOHEADER=autoheader
1058 echo "$ac_t""found" 1>&6
1060 AUTOHEADER="$missing_dir/missing autoheader"
1061 echo "$ac_t""missing" 1>&6
1064 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1065 echo "configure:1066: checking for working makeinfo" >&5
1066 # Run test in a subshell; some versions of sh will print an error if
1067 # an executable is not found, even if stderr is redirected.
1068 # Redirect stdin to placate older versions of autoconf. Sigh.
1069 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1071 echo "$ac_t""found" 1>&6
1073 MAKEINFO="$missing_dir/missing makeinfo"
1074 echo "$ac_t""missing" 1>&6
1079 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1080 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1081 # are probably using a cross compiler, which will not be able to fully
1082 # link an executable. This should really be fixed in autoconf
1087 # Extract the first word of "gcc", so it can be a program name with args.
1088 set dummy gcc; ac_word=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 if test -n "$CC"; then
1095 ac_cv_prog_CC="$CC" # Let the user override the test.
1097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1099 for ac_dir in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir=.
1101 if test -f $ac_dir/$ac_word; then
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1113 echo "$ac_t""no" 1>&6
1116 if test -z "$CC"; then
1117 # Extract the first word of "cc", so it can be a program name with args.
1118 set dummy cc; ac_word=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$CC"; then
1125 ac_cv_prog_CC="$CC" # Let the user override the test.
1127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1130 for ac_dir in $ac_dummy; do
1131 test -z "$ac_dir" && ac_dir=.
1132 if test -f $ac_dir/$ac_word; then
1133 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1134 ac_prog_rejected=yes
1142 if test $ac_prog_rejected = yes; then
1143 # We found a bogon in the path, so make sure we never use it.
1144 set dummy $ac_cv_prog_CC
1146 if test $# -gt 0; then
1147 # We chose a different compiler from the bogus one.
1148 # However, it has the same basename, so the bogon will be chosen
1149 # first if we set CC to just the basename; use the full file name.
1151 set dummy "$ac_dir/$ac_word" "$@"
1159 if test -n "$CC"; then
1160 echo "$ac_t""$CC" 1>&6
1162 echo "$ac_t""no" 1>&6
1165 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1168 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether we are using GNU C" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 cat > conftest.c <<EOF
1178 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1185 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1187 if test $ac_cv_prog_gcc = yes; then
1189 ac_test_CFLAGS="${CFLAGS+set}"
1190 ac_save_CFLAGS="$CFLAGS"
1192 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${CC-cc} accepts -g" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 echo 'void f(){}' > conftest.c
1198 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1207 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1208 if test "$ac_test_CFLAGS" = set; then
1209 CFLAGS="$ac_save_CFLAGS"
1210 elif test $ac_cv_prog_cc_g = yes; then
1217 test "${CFLAGS+set}" = set || CFLAGS="-g"
1221 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1222 set dummy ${ac_tool_prefix}as; ac_word=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 if test -n "$AS"; then
1229 ac_cv_prog_AS="$AS" # Let the user override the test.
1231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1233 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 if test -f $ac_dir/$ac_word; then
1236 ac_cv_prog_AS="${ac_tool_prefix}as"
1241 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1245 if test -n "$AS"; then
1246 echo "$ac_t""$AS" 1>&6
1248 echo "$ac_t""no" 1>&6
1253 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1254 set dummy ${ac_tool_prefix}ar; ac_word=$2
1255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_word" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 if test -n "$AR"; then
1261 ac_cv_prog_AR="$AR" # Let the user override the test.
1263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1265 for ac_dir in $ac_dummy; do
1266 test -z "$ac_dir" && ac_dir=.
1267 if test -f $ac_dir/$ac_word; then
1268 ac_cv_prog_AR="${ac_tool_prefix}ar"
1273 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1277 if test -n "$AR"; then
1278 echo "$ac_t""$AR" 1>&6
1280 echo "$ac_t""no" 1>&6
1285 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1286 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1288 echo "configure:1289: checking for $ac_word" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test -n "$RANLIB"; then
1293 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1297 for ac_dir in $ac_dummy; do
1298 test -z "$ac_dir" && ac_dir=.
1299 if test -f $ac_dir/$ac_word; then
1300 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1307 RANLIB="$ac_cv_prog_RANLIB"
1308 if test -n "$RANLIB"; then
1309 echo "$ac_t""$RANLIB" 1>&6
1311 echo "$ac_t""no" 1>&6
1315 if test -z "$ac_cv_prog_RANLIB"; then
1316 if test -n "$ac_tool_prefix"; then
1317 # Extract the first word of "ranlib", so it can be a program name with args.
1318 set dummy ranlib; ac_word=$2
1319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1320 echo "configure:1321: checking for $ac_word" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 if test -n "$RANLIB"; then
1325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1329 for ac_dir in $ac_dummy; do
1330 test -z "$ac_dir" && ac_dir=.
1331 if test -f $ac_dir/$ac_word; then
1332 ac_cv_prog_RANLIB="ranlib"
1337 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1340 RANLIB="$ac_cv_prog_RANLIB"
1341 if test -n "$RANLIB"; then
1342 echo "$ac_t""$RANLIB" 1>&6
1344 echo "$ac_t""no" 1>&6
1353 # Find a good install program. We prefer a C program (faster),
1354 # so one script is as good as another. But avoid the broken or
1355 # incompatible versions:
1356 # SysV /etc/install, /usr/sbin/install
1357 # SunOS /usr/etc/install
1358 # IRIX /sbin/install
1360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1363 # ./install, which can be erroneously created by make from ./install.sh.
1364 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1365 echo "configure:1366: checking for a BSD compatible install" >&5
1366 if test -z "$INSTALL"; then
1367 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1371 for ac_dir in $PATH; do
1372 # Account for people who put trailing slashes in PATH elements.
1374 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1376 # OSF1 and SCO ODT 3.0 have their own names for install.
1377 # Don't use installbsd from OSF since it installs stuff as root
1379 for ac_prog in ginstall scoinst install; do
1380 if test -f $ac_dir/$ac_prog; then
1381 if test $ac_prog = install &&
1382 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1383 # AIX install. It has an incompatible calling convention.
1386 ac_cv_path_install="$ac_dir/$ac_prog -c"
1397 if test "${ac_cv_path_install+set}" = set; then
1398 INSTALL="$ac_cv_path_install"
1400 # As a last resort, use the slow shell script. We don't cache a
1401 # path for INSTALL within a source directory, because that will
1402 # break other packages using the cache if that directory is
1403 # removed, or if the path is relative.
1404 INSTALL="$ac_install_sh"
1407 echo "$ac_t""$INSTALL" 1>&6
1409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1410 # It thinks the first close brace ends the variable substitution.
1411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1418 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1419 echo "configure:1420: checking whether to enable maintainer-specific portions of Makefiles" >&5
1420 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1421 if test "${enable_maintainer_mode+set}" = set; then
1422 enableval="$enable_maintainer_mode"
1423 USE_MAINTAINER_MODE=$enableval
1425 USE_MAINTAINER_MODE=no
1428 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1431 if test $USE_MAINTAINER_MODE = yes; then
1432 MAINTAINER_MODE_TRUE=
1433 MAINTAINER_MODE_FALSE='#'
1435 MAINTAINER_MODE_TRUE='#'
1436 MAINTAINER_MODE_FALSE=
1438 MAINT=$MAINTAINER_MODE_TRUE
1442 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1443 # at least currently, we never actually build a program, so we never
1444 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1445 # fails, because we are probably configuring with a cross compiler
1446 # which can't create executables. So we include AC_EXEEXT to keep
1447 # automake happy, but we don't execute it, since we don't care about
1452 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1453 echo "configure:1454: checking for executable suffix" >&5
1454 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1461 echo 'int main () { return 0; }' > conftest.$ac_ext
1463 if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1464 for file in conftest.*; do
1466 *.c | *.o | *.obj) ;;
1467 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1471 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1474 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1479 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1480 echo "$ac_t""${ac_cv_exeext}" 1>&6
1485 . ${newlib_basedir}/configure.host
1487 newlib_cflags="${newlib_cflags} -fno-builtin"
1489 NEWLIB_CFLAGS=${newlib_cflags}
1497 if test x${newlib_elix_level} = x0; then
1499 ELIX_LEVEL_0_FALSE='#'
1501 ELIX_LEVEL_0_TRUE='#'
1506 if test x${newlib_elix_level} = x1; then
1508 ELIX_LEVEL_1_FALSE='#'
1510 ELIX_LEVEL_1_TRUE='#'
1515 if test x${newlib_elix_level} = x2; then
1517 ELIX_LEVEL_2_FALSE='#'
1519 ELIX_LEVEL_2_TRUE='#'
1524 if test x${newlib_elix_level} = x3; then
1526 ELIX_LEVEL_3_FALSE='#'
1528 ELIX_LEVEL_3_TRUE='#'
1533 if test x${newlib_elix_level} = x4; then
1535 ELIX_LEVEL_4_FALSE='#'
1537 ELIX_LEVEL_4_TRUE='#'
1543 if test x${use_libtool} = xyes; then
1545 USE_LIBTOOL_FALSE='#'
1547 USE_LIBTOOL_TRUE='#'
1551 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1552 # use oext, which is set in configure.host based on the target platform.
1565 if test "${use_libtool}" = "yes"; then
1567 # Check whether --enable-shared or --disable-shared was given.
1568 if test "${enable_shared+set}" = set; then
1569 enableval="$enable_shared"
1570 p=${PACKAGE-default}
1572 yes) enable_shared=yes ;;
1573 no) enable_shared=no ;;
1576 # Look at the argument we got. We use all the common list separators.
1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1578 for pkg in $enableval; do
1579 if test "X$pkg" = "X$p"; then
1590 # Check whether --enable-static or --disable-static was given.
1591 if test "${enable_static+set}" = set; then
1592 enableval="$enable_static"
1593 p=${PACKAGE-default}
1595 yes) enable_static=yes ;;
1596 no) enable_static=no ;;
1599 # Look at the argument we got. We use all the common list separators.
1600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1601 for pkg in $enableval; do
1602 if test "X$pkg" = "X$p"; then
1613 # Check whether --enable-fast-install or --disable-fast-install was given.
1614 if test "${enable_fast_install+set}" = set; then
1615 enableval="$enable_fast_install"
1616 p=${PACKAGE-default}
1618 yes) enable_fast_install=yes ;;
1619 no) enable_fast_install=no ;;
1621 enable_fast_install=no
1622 # Look at the argument we got. We use all the common list separators.
1623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1624 for pkg in $enableval; do
1625 if test "X$pkg" = "X$p"; then
1626 enable_fast_install=yes
1633 enable_fast_install=yes
1636 # Extract the first word of "gcc", so it can be a program name with args.
1637 set dummy gcc; ac_word=$2
1638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1639 echo "configure:1640: checking for $ac_word" >&5
1640 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1648 for ac_dir in $ac_dummy; do
1649 test -z "$ac_dir" && ac_dir=.
1650 if test -f $ac_dir/$ac_word; then
1659 if test -n "$CC"; then
1660 echo "$ac_t""$CC" 1>&6
1662 echo "$ac_t""no" 1>&6
1665 if test -z "$CC"; then
1666 # Extract the first word of "cc", so it can be a program name with args.
1667 set dummy cc; ac_word=$2
1668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_word" >&5
1670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 if test -n "$CC"; then
1674 ac_cv_prog_CC="$CC" # Let the user override the test.
1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1679 for ac_dir in $ac_dummy; do
1680 test -z "$ac_dir" && ac_dir=.
1681 if test -f $ac_dir/$ac_word; then
1682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1683 ac_prog_rejected=yes
1691 if test $ac_prog_rejected = yes; then
1692 # We found a bogon in the path, so make sure we never use it.
1693 set dummy $ac_cv_prog_CC
1695 if test $# -gt 0; then
1696 # We chose a different compiler from the bogus one.
1697 # However, it has the same basename, so the bogon will be chosen
1698 # first if we set CC to just the basename; use the full file name.
1700 set dummy "$ac_dir/$ac_word" "$@"
1708 if test -n "$CC"; then
1709 echo "$ac_t""$CC" 1>&6
1711 echo "$ac_t""no" 1>&6
1714 if test -z "$CC"; then
1715 case "`uname -s`" in
1717 # Extract the first word of "cl", so it can be a program name with args.
1718 set dummy cl; ac_word=$2
1719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1720 echo "configure:1721: checking for $ac_word" >&5
1721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1729 for ac_dir in $ac_dummy; do
1730 test -z "$ac_dir" && ac_dir=.
1731 if test -f $ac_dir/$ac_word; then
1740 if test -n "$CC"; then
1741 echo "$ac_t""$CC" 1>&6
1743 echo "$ac_t""no" 1>&6
1748 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1752 echo "configure:1753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1756 ac_cpp='$CPP $CPPFLAGS'
1757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1759 cross_compiling=$ac_cv_prog_cc_cross
1761 cat > conftest.$ac_ext << EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1769 ac_cv_prog_cc_works=yes
1770 # If we can't run a trivial program, we are probably using a cross compiler.
1771 if (./conftest; exit) 2>/dev/null; then
1772 ac_cv_prog_cc_cross=no
1774 ac_cv_prog_cc_cross=yes
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1779 ac_cv_prog_cc_works=no
1783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1784 ac_cpp='$CPP $CPPFLAGS'
1785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1787 cross_compiling=$ac_cv_prog_cc_cross
1789 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1790 if test $ac_cv_prog_cc_works = no; then
1791 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1794 echo "configure:1795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1795 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1796 cross_compiling=$ac_cv_prog_cc_cross
1798 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1799 echo "configure:1800: checking whether we are using GNU C" >&5
1800 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.c <<EOF
1808 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1815 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1817 if test $ac_cv_prog_gcc = yes; then
1823 ac_test_CFLAGS="${CFLAGS+set}"
1824 ac_save_CFLAGS="$CFLAGS"
1826 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1827 echo "configure:1828: checking whether ${CC-cc} accepts -g" >&5
1828 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 echo 'void f(){}' > conftest.c
1832 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1841 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1842 if test "$ac_test_CFLAGS" = set; then
1843 CFLAGS="$ac_save_CFLAGS"
1844 elif test $ac_cv_prog_cc_g = yes; then
1845 if test "$GCC" = yes; then
1851 if test "$GCC" = yes; then
1858 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1859 if test "${with_gnu_ld+set}" = set; then
1860 withval="$with_gnu_ld"
1861 test "$withval" = no || with_gnu_ld=yes
1867 if test "$GCC" = yes; then
1868 # Check if gcc -print-prog-name=ld gives a path.
1869 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1870 echo "configure:1871: checking for ld used by GCC" >&5
1873 # gcc leaves a trailing carriage return which upsets mingw
1874 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1876 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1879 # Accept absolute paths.
1880 [\\/]* | [A-Za-z]:[\\/]*)
1881 re_direlt='/[^/][^/]*/\.\./'
1882 # Canonicalize the path of ld
1883 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1884 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1885 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1887 test -z "$LD" && LD="$ac_prog"
1890 # If it fails, then pretend we aren't using GCC.
1894 # If it is relative, then search for the first ld in PATH.
1898 elif test "$with_gnu_ld" = yes; then
1899 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1900 echo "configure:1901: checking for GNU ld" >&5
1902 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1903 echo "configure:1904: checking for non-GNU ld" >&5
1905 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 if test -z "$LD"; then
1909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1910 for ac_dir in $PATH; do
1911 test -z "$ac_dir" && ac_dir=.
1912 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1913 lt_cv_path_LD="$ac_dir/$ac_prog"
1914 # Check to see if the program is GNU ld. I'd rather use --version,
1915 # but apparently some GNU ld's only accept -v.
1916 # Break only if it was the GNU/non-GNU ld that we prefer.
1917 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1918 test "$with_gnu_ld" != no && break
1920 test "$with_gnu_ld" != yes && break
1926 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1931 if test -n "$LD"; then
1932 echo "$ac_t""$LD" 1>&6
1934 echo "$ac_t""no" 1>&6
1936 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1937 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1938 echo "configure:1939: checking if the linker ($LD) is GNU ld" >&5
1939 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1943 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1944 lt_cv_prog_gnu_ld=yes
1946 lt_cv_prog_gnu_ld=no
1950 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1951 with_gnu_ld=$lt_cv_prog_gnu_ld
1954 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $LD option to reload object files" >&5
1956 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 lt_cv_ld_reload_flag='-r'
1962 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1963 reload_flag=$lt_cv_ld_reload_flag
1964 test -n "$reload_flag" && reload_flag=" $reload_flag"
1966 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1967 echo "configure:1968: checking for BSD-compatible nm" >&5
1968 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1971 if test -n "$NM"; then
1972 # Let the user override the test.
1975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1976 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1977 test -z "$ac_dir" && ac_dir=.
1978 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1979 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1980 # Check to see if the nm accepts a BSD-compat flag.
1981 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1982 # nm: unknown option "B" ignored
1983 # Tru64's nm complains that /dev/null is an invalid object file
1984 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1985 lt_cv_path_NM="$tmp_nm -B"
1987 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1988 lt_cv_path_NM="$tmp_nm -p"
1991 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1992 continue # so that we can try to find one that supports BSD flags
1997 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2002 echo "$ac_t""$NM" 1>&6
2004 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2005 echo "configure:2006: checking whether ln -s works" >&5
2006 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2010 if ln -s X conftestdata 2>/dev/null
2013 ac_cv_prog_LN_S="ln -s"
2018 LN_S="$ac_cv_prog_LN_S"
2019 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2020 echo "$ac_t""yes" 1>&6
2022 echo "$ac_t""no" 1>&6
2025 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2026 echo "configure:2027: checking how to recognise dependant libraries" >&5
2027 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 lt_cv_file_magic_cmd='$MAGIC_CMD'
2031 lt_cv_file_magic_test_file=
2032 lt_cv_deplibs_check_method='unknown'
2033 # Need to set the preceding variable on all platforms that support
2034 # interlibrary dependencies.
2035 # 'none' -- dependencies not supported.
2036 # `unknown' -- same as none, but documents that we really don't know.
2037 # 'pass_all' -- all dependencies passed with no checks.
2038 # 'test_compile' -- check by making test program.
2039 # 'file_magic [regex]' -- check by looking for files in library path
2040 # which responds to the $file_magic_cmd with a given egrep regex.
2041 # If you have `file' or equivalent on your system and you're not sure
2042 # whether `pass_all' will *always* work, you probably want this one.
2046 lt_cv_deplibs_check_method=pass_all
2050 lt_cv_deplibs_check_method=pass_all
2054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2055 lt_cv_file_magic_cmd='/usr/bin/file -L'
2056 lt_cv_file_magic_test_file=/shlib/libc.so
2059 cygwin* | mingw* |pw32*)
2060 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2061 lt_cv_file_magic_cmd='$OBJDUMP -f'
2064 darwin* | rhapsody*)
2065 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2066 lt_cv_file_magic_cmd='/usr/bin/file -L'
2068 rhapsody* | darwin1.012)
2069 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2072 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2078 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2081 # Not sure whether the presence of OpenBSD here was a mistake.
2082 # Let's accept both of them until this is cleared up.
2083 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2084 lt_cv_file_magic_cmd=/usr/bin/file
2085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2089 lt_cv_deplibs_check_method=pass_all
2094 lt_cv_deplibs_check_method=pass_all
2100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2101 lt_cv_file_magic_cmd=/usr/bin/file
2102 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2106 lt_cv_file_magic_cmd=/usr/bin/file
2107 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2115 # this will be overridden with pass_all, but let us keep it just in case
2116 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2120 *-32|*"-32 ") libmagic=32-bit;;
2121 *-n32|*"-n32 ") libmagic=N32;;
2122 *-64|*"-64 ") libmagic=64-bit;;
2123 *) libmagic=never-match;;
2125 # this will be overridden with pass_all, but let us keep it just in case
2126 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2129 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2130 lt_cv_deplibs_check_method=pass_all
2133 # This must be Linux ELF.
2136 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2137 lt_cv_deplibs_check_method=pass_all ;;
2139 # glibc up to 2.1.1 does not perform some relocations on ARM
2140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2142 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2146 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2147 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2149 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2155 lt_cv_file_magic_cmd=/usr/bin/file
2156 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2159 osf3* | osf4* | osf5*)
2160 # this will be overridden with pass_all, but let us keep it just in case
2161 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2162 lt_cv_file_magic_test_file=/shlib/libc.so
2163 lt_cv_deplibs_check_method=pass_all
2167 lt_cv_deplibs_check_method=pass_all
2171 lt_cv_deplibs_check_method=pass_all
2172 lt_cv_file_magic_test_file=/lib/libc.so
2175 sysv5uw[78]* | sysv4*uw2*)
2176 lt_cv_deplibs_check_method=pass_all
2179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2180 case $host_vendor in
2182 lt_cv_deplibs_check_method=pass_all
2185 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]'
2186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2194 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2195 file_magic_cmd=$lt_cv_file_magic_cmd
2196 deplibs_check_method=$lt_cv_deplibs_check_method
2198 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2199 echo "configure:2200: checking for object suffix" >&5
2200 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2204 echo 'int i = 1;' > conftest.$ac_ext
2205 if { (eval echo configure:2206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2206 for ac_file in conftest.*; do
2209 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2213 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2218 echo "$ac_t""$ac_cv_objext" 1>&6
2219 OBJEXT=$ac_cv_objext
2220 ac_objext=$ac_cv_objext
2222 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2224 # Only perform the check for file, if the check method requires it
2225 case $deplibs_check_method in
2227 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2228 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2229 echo "configure:2230: checking for ${ac_tool_prefix}file" >&5
2230 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2241 ac_save_MAGIC_CMD="$MAGIC_CMD"
2242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2243 ac_dummy="/usr/bin:$PATH"
2244 for ac_dir in $ac_dummy; do
2245 test -z "$ac_dir" && ac_dir=.
2246 if test -f $ac_dir/${ac_tool_prefix}file; then
2247 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2248 if test -n "$file_magic_test_file"; then
2249 case $deplibs_check_method in
2251 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2254 egrep "$file_magic_regex" > /dev/null; then
2259 *** Warning: the command libtool uses to detect shared libraries,
2260 *** $file_magic_cmd, produces output that libtool cannot recognize.
2261 *** The result is that libtool may fail to recognize shared libraries
2262 *** as such. This will affect the creation of libtool libraries that
2263 *** depend on shared libraries, but programs linked with such libtool
2264 *** libraries will work regardless of this problem. Nevertheless, you
2265 *** may want to report the problem to your system manager and/or to
2266 *** bug-libtool@gnu.org
2276 MAGIC_CMD="$ac_save_MAGIC_CMD"
2281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2282 if test -n "$MAGIC_CMD"; then
2283 echo "$ac_t""$MAGIC_CMD" 1>&6
2285 echo "$ac_t""no" 1>&6
2288 if test -z "$lt_cv_path_MAGIC_CMD"; then
2289 if test -n "$ac_tool_prefix"; then
2290 echo $ac_n "checking for file""... $ac_c" 1>&6
2291 echo "configure:2292: checking for file" >&5
2292 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2297 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2300 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2303 ac_save_MAGIC_CMD="$MAGIC_CMD"
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2305 ac_dummy="/usr/bin:$PATH"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/file; then
2309 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2310 if test -n "$file_magic_test_file"; then
2311 case $deplibs_check_method in
2313 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2315 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2316 egrep "$file_magic_regex" > /dev/null; then
2321 *** Warning: the command libtool uses to detect shared libraries,
2322 *** $file_magic_cmd, produces output that libtool cannot recognize.
2323 *** The result is that libtool may fail to recognize shared libraries
2324 *** as such. This will affect the creation of libtool libraries that
2325 *** depend on shared libraries, but programs linked with such libtool
2326 *** libraries will work regardless of this problem. Nevertheless, you
2327 *** may want to report the problem to your system manager and/or to
2328 *** bug-libtool@gnu.org
2338 MAGIC_CMD="$ac_save_MAGIC_CMD"
2343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2344 if test -n "$MAGIC_CMD"; then
2345 echo "$ac_t""$MAGIC_CMD" 1>&6
2347 echo "$ac_t""no" 1>&6
2359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2362 echo "configure:2363: checking for $ac_word" >&5
2363 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 if test -n "$RANLIB"; then
2367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2371 for ac_dir in $ac_dummy; do
2372 test -z "$ac_dir" && ac_dir=.
2373 if test -f $ac_dir/$ac_word; then
2374 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2381 RANLIB="$ac_cv_prog_RANLIB"
2382 if test -n "$RANLIB"; then
2383 echo "$ac_t""$RANLIB" 1>&6
2385 echo "$ac_t""no" 1>&6
2389 if test -z "$ac_cv_prog_RANLIB"; then
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "ranlib", so it can be a program name with args.
2392 set dummy ranlib; ac_word=$2
2393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_word" >&5
2395 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 if test -n "$RANLIB"; then
2399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2403 for ac_dir in $ac_dummy; do
2404 test -z "$ac_dir" && ac_dir=.
2405 if test -f $ac_dir/$ac_word; then
2406 ac_cv_prog_RANLIB="ranlib"
2411 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2414 RANLIB="$ac_cv_prog_RANLIB"
2415 if test -n "$RANLIB"; then
2416 echo "$ac_t""$RANLIB" 1>&6
2418 echo "$ac_t""no" 1>&6
2426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}strip; ac_word=$2
2428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2429 echo "configure:2430: checking for $ac_word" >&5
2430 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 if test -n "$STRIP"; then
2434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2438 for ac_dir in $ac_dummy; do
2439 test -z "$ac_dir" && ac_dir=.
2440 if test -f $ac_dir/$ac_word; then
2441 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2448 STRIP="$ac_cv_prog_STRIP"
2449 if test -n "$STRIP"; then
2450 echo "$ac_t""$STRIP" 1>&6
2452 echo "$ac_t""no" 1>&6
2456 if test -z "$ac_cv_prog_STRIP"; then
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "strip", so it can be a program name with args.
2459 set dummy strip; ac_word=$2
2460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_word" >&5
2462 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 if test -n "$STRIP"; then
2466 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2470 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 if test -f $ac_dir/$ac_word; then
2473 ac_cv_prog_STRIP="strip"
2478 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2481 STRIP="$ac_cv_prog_STRIP"
2482 if test -n "$STRIP"; then
2483 echo "$ac_t""$STRIP" 1>&6
2485 echo "$ac_t""no" 1>&6
2494 # Check for any special flags to pass to ltconfig.
2495 libtool_flags="--cache-file=$cache_file"
2496 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2497 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2498 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2499 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2500 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2502 libtool_flags="$libtool_flags --enable-win32-dll"
2503 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2504 if test "${enable_libtool_lock+set}" = set; then
2505 enableval="$enable_libtool_lock"
2509 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2510 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2512 # Check whether --with-pic or --without-pic was given.
2513 if test "${with_pic+set}" = set; then
2520 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2521 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2523 # Some flags need to be propagated to the compiler or linker for good
2527 # Find out which ABI we are using.
2528 echo '#line 2529 "configure"' > conftest.$ac_ext
2529 if { (eval echo configure:2530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2530 case `/usr/bin/file conftest.$ac_objext` in
2546 # Find out which ABI we are using.
2547 echo 'int i;' > conftest.$ac_ext
2548 if { (eval echo configure:2549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2549 case "`/usr/bin/file conftest.o`" in
2562 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2563 SAVE_CFLAGS="$CFLAGS"
2564 CFLAGS="$CFLAGS -belf"
2565 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2566 echo "configure:2567: checking whether the C compiler needs -belf" >&5
2567 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2576 cross_compiling=$ac_cv_prog_cc_cross
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2586 if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2588 lt_cv_cc_needs_belf=yes
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2593 lt_cv_cc_needs_belf=no
2597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2601 cross_compiling=$ac_cv_prog_cc_cross
2605 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2606 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2607 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2608 CFLAGS="$SAVE_CFLAGS"
2612 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2613 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2616 echo "configure:2617: checking for $ac_word" >&5
2617 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 if test -n "$DLLTOOL"; then
2621 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2625 for ac_dir in $ac_dummy; do
2626 test -z "$ac_dir" && ac_dir=.
2627 if test -f $ac_dir/$ac_word; then
2628 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2635 DLLTOOL="$ac_cv_prog_DLLTOOL"
2636 if test -n "$DLLTOOL"; then
2637 echo "$ac_t""$DLLTOOL" 1>&6
2639 echo "$ac_t""no" 1>&6
2643 if test -z "$ac_cv_prog_DLLTOOL"; then
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "dlltool", so it can be a program name with args.
2646 set dummy dlltool; ac_word=$2
2647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2648 echo "configure:2649: checking for $ac_word" >&5
2649 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 if test -n "$DLLTOOL"; then
2653 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2657 for ac_dir in $ac_dummy; do
2658 test -z "$ac_dir" && ac_dir=.
2659 if test -f $ac_dir/$ac_word; then
2660 ac_cv_prog_DLLTOOL="dlltool"
2665 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2668 DLLTOOL="$ac_cv_prog_DLLTOOL"
2669 if test -n "$DLLTOOL"; then
2670 echo "$ac_t""$DLLTOOL" 1>&6
2672 echo "$ac_t""no" 1>&6
2680 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}as; ac_word=$2
2682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2683 echo "configure:2684: checking for $ac_word" >&5
2684 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2687 if test -n "$AS"; then
2688 ac_cv_prog_AS="$AS" # Let the user override the test.
2690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2692 for ac_dir in $ac_dummy; do
2693 test -z "$ac_dir" && ac_dir=.
2694 if test -f $ac_dir/$ac_word; then
2695 ac_cv_prog_AS="${ac_tool_prefix}as"
2703 if test -n "$AS"; then
2704 echo "$ac_t""$AS" 1>&6
2706 echo "$ac_t""no" 1>&6
2710 if test -z "$ac_cv_prog_AS"; then
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "as", so it can be a program name with args.
2713 set dummy as; ac_word=$2
2714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2715 echo "configure:2716: checking for $ac_word" >&5
2716 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 if test -n "$AS"; then
2720 ac_cv_prog_AS="$AS" # Let the user override the test.
2722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2724 for ac_dir in $ac_dummy; do
2725 test -z "$ac_dir" && ac_dir=.
2726 if test -f $ac_dir/$ac_word; then
2732 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2736 if test -n "$AS"; then
2737 echo "$ac_t""$AS" 1>&6
2739 echo "$ac_t""no" 1>&6
2747 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2748 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2750 echo "configure:2751: checking for $ac_word" >&5
2751 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 if test -n "$OBJDUMP"; then
2755 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2759 for ac_dir in $ac_dummy; do
2760 test -z "$ac_dir" && ac_dir=.
2761 if test -f $ac_dir/$ac_word; then
2762 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2769 OBJDUMP="$ac_cv_prog_OBJDUMP"
2770 if test -n "$OBJDUMP"; then
2771 echo "$ac_t""$OBJDUMP" 1>&6
2773 echo "$ac_t""no" 1>&6
2777 if test -z "$ac_cv_prog_OBJDUMP"; then
2778 if test -n "$ac_tool_prefix"; then
2779 # Extract the first word of "objdump", so it can be a program name with args.
2780 set dummy objdump; ac_word=$2
2781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_word" >&5
2783 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 if test -n "$OBJDUMP"; then
2787 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2791 for ac_dir in $ac_dummy; do
2792 test -z "$ac_dir" && ac_dir=.
2793 if test -f $ac_dir/$ac_word; then
2794 ac_cv_prog_OBJDUMP="objdump"
2799 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2802 OBJDUMP="$ac_cv_prog_OBJDUMP"
2803 if test -n "$OBJDUMP"; then
2804 echo "$ac_t""$OBJDUMP" 1>&6
2806 echo "$ac_t""no" 1>&6
2815 # recent cygwin and mingw systems supply a stub DllMain which the user
2816 # can override, but on older systems we have to supply one
2817 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2818 echo "configure:2819: checking if libtool should supply DllMain function" >&5
2819 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2827 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2831 if { (eval echo configure:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2833 lt_cv_need_dllmain=no
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2838 lt_cv_need_dllmain=yes
2843 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2846 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2847 # old mingw systems require "-dll" to link a DLL, while more recent ones
2849 SAVE_CFLAGS="$CFLAGS"
2850 CFLAGS="$CFLAGS -mdll"
2851 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2852 echo "configure:2853: checking how to link DLLs" >&5
2853 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2864 if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2866 lt_cv_cc_dll_switch=-mdll
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2871 lt_cv_cc_dll_switch=-dll
2876 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2877 CFLAGS="$SAVE_CFLAGS" ;;
2878 *-*-cygwin* | *-*-pw32*)
2879 # cygwin systems need to pass --dll to the linker, and not link
2880 # crt.o which will require a WinMain@16 definition.
2881 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2888 # Save cache, so that ltconfig can load it
2889 cat > confcache <<\EOF
2890 # This file is a shell script that caches the results of configure
2891 # tests run on this system so they can be shared between configure
2892 # scripts and configure runs. It is not useful on other systems.
2893 # If it contains results you don't want to keep, you may remove or edit it.
2895 # By default, configure uses ./config.cache as the cache file,
2896 # creating it if it does not exist already. You can give configure
2897 # the --cache-file=FILE option to use a different cache file; that is
2898 # what configure does when it calls configure scripts in
2899 # subdirectories, so they share the cache.
2900 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2901 # config.status only pays attention to the cache file if you give it the
2902 # --recheck option to rerun configure.
2905 # The following way of writing the cache mishandles newlines in values,
2906 # but we know of no workaround that is simple, portable, and efficient.
2907 # So, don't put newlines in cache variables' values.
2908 # Ultrix sh set writes to stderr and can't be redirected directly,
2909 # and sets the high bit in the cache file unless we assign to the vars.
2911 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2913 # `set' does not quote correctly, so add quotes (double-quote substitution
2914 # turns \\\\ into \\, and sed turns \\ into \).
2916 -e "s/'/'\\\\''/g" \
2917 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2920 # `set' quotes correctly as required by POSIX, so do not add quotes.
2921 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2924 if cmp -s $cache_file confcache; then
2927 if test -w $cache_file; then
2928 echo "updating cache $cache_file"
2929 cat confcache > $cache_file
2931 echo "not updating unwritable cache $cache_file"
2937 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2938 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2939 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2940 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2941 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2942 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2943 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2944 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2945 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2946 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2948 # Reload cache, that may have been modified by ltconfig
2949 if test -r "$cache_file"; then
2950 echo "loading cache $cache_file"
2953 echo "creating cache $cache_file"
2958 # This can be used to rebuild libtool when needed
2959 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2961 # Always use our own libtool.
2962 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2964 # Redirect the config.log output again, so that the ltconfig log is not
2965 # clobbered by the next message.
2966 exec 5>>./config.log
2977 if test "x$mach_add_setjmp" = 'xtrue'; then
2978 MACH_ADD_SETJMP_TRUE=
2979 MACH_ADD_SETJMP_FALSE='#'
2981 MACH_ADD_SETJMP_TRUE='#'
2982 MACH_ADD_SETJMP_FALSE=
2986 cat > confcache <<\EOF
2987 # This file is a shell script that caches the results of configure
2988 # tests run on this system so they can be shared between configure
2989 # scripts and configure runs. It is not useful on other systems.
2990 # If it contains results you don't want to keep, you may remove or edit it.
2992 # By default, configure uses ./config.cache as the cache file,
2993 # creating it if it does not exist already. You can give configure
2994 # the --cache-file=FILE option to use a different cache file; that is
2995 # what configure does when it calls configure scripts in
2996 # subdirectories, so they share the cache.
2997 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2998 # config.status only pays attention to the cache file if you give it the
2999 # --recheck option to rerun configure.
3002 # The following way of writing the cache mishandles newlines in values,
3003 # but we know of no workaround that is simple, portable, and efficient.
3004 # So, don't put newlines in cache variables' values.
3005 # Ultrix sh set writes to stderr and can't be redirected directly,
3006 # and sets the high bit in the cache file unless we assign to the vars.
3008 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3010 # `set' does not quote correctly, so add quotes (double-quote substitution
3011 # turns \\\\ into \\, and sed turns \\ into \).
3013 -e "s/'/'\\\\''/g" \
3014 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3017 # `set' quotes correctly as required by POSIX, so do not add quotes.
3018 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3021 if cmp -s $cache_file confcache; then
3024 if test -w $cache_file; then
3025 echo "updating cache $cache_file"
3026 cat confcache > $cache_file
3028 echo "not updating unwritable cache $cache_file"
3033 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3036 # Let make expand exec_prefix.
3037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3039 # Any assignment to VPATH causes Sun make to only execute
3040 # the first set of double-colon rules, so remove it if not needed.
3041 # If there is a colon in the path, we need to keep it.
3042 if test "x$srcdir" = x.; then
3043 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3046 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3048 # Transform confdefs.h into DEFS.
3049 # Protect against shell expansion while executing Makefile rules.
3050 # Protect against Makefile macro expansion.
3051 cat > conftest.defs <<\EOF
3052 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3053 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3058 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3062 # Without the "./", some shells look in PATH for config.status.
3063 : ${CONFIG_STATUS=./config.status}
3065 echo creating $CONFIG_STATUS
3066 rm -f $CONFIG_STATUS
3067 cat > $CONFIG_STATUS <<EOF
3069 # Generated automatically by configure.
3070 # Run this file to recreate the current configuration.
3071 # This directory was configured as follows,
3072 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3074 # $0 $ac_configure_args
3076 # Compiler output produced by configure, useful for debugging
3077 # configure, is in ./config.log if it exists.
3079 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3082 case "\$ac_option" in
3083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3084 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3085 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3086 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3087 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3089 -help | --help | --hel | --he | --h)
3090 echo "\$ac_cs_usage"; exit 0 ;;
3091 *) echo "\$ac_cs_usage"; exit 1 ;;
3095 ac_given_srcdir=$srcdir
3096 ac_given_INSTALL="$INSTALL"
3098 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3100 cat >> $CONFIG_STATUS <<EOF
3102 # Protect against being on the right side of a sed subst in config.status.
3103 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3104 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3108 s%@CFLAGS@%$CFLAGS%g
3109 s%@CPPFLAGS@%$CPPFLAGS%g
3110 s%@CXXFLAGS@%$CXXFLAGS%g
3111 s%@FFLAGS@%$FFLAGS%g
3113 s%@LDFLAGS@%$LDFLAGS%g
3115 s%@exec_prefix@%$exec_prefix%g
3116 s%@prefix@%$prefix%g
3117 s%@program_transform_name@%$program_transform_name%g
3118 s%@bindir@%$bindir%g
3119 s%@sbindir@%$sbindir%g
3120 s%@libexecdir@%$libexecdir%g
3121 s%@datadir@%$datadir%g
3122 s%@sysconfdir@%$sysconfdir%g
3123 s%@sharedstatedir@%$sharedstatedir%g
3124 s%@localstatedir@%$localstatedir%g
3125 s%@libdir@%$libdir%g
3126 s%@includedir@%$includedir%g
3127 s%@oldincludedir@%$oldincludedir%g
3128 s%@infodir@%$infodir%g
3129 s%@mandir@%$mandir%g
3130 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3131 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
3132 s%@newlib_basedir@%$newlib_basedir%g
3134 s%@host_alias@%$host_alias%g
3135 s%@host_cpu@%$host_cpu%g
3136 s%@host_vendor@%$host_vendor%g
3137 s%@host_os@%$host_os%g
3138 s%@target@%$target%g
3139 s%@target_alias@%$target_alias%g
3140 s%@target_cpu@%$target_cpu%g
3141 s%@target_vendor@%$target_vendor%g
3142 s%@target_os@%$target_os%g
3144 s%@build_alias@%$build_alias%g
3145 s%@build_cpu@%$build_cpu%g
3146 s%@build_vendor@%$build_vendor%g
3147 s%@build_os@%$build_os%g
3148 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3149 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3150 s%@INSTALL_DATA@%$INSTALL_DATA%g
3151 s%@PACKAGE@%$PACKAGE%g
3152 s%@VERSION@%$VERSION%g
3153 s%@ACLOCAL@%$ACLOCAL%g
3154 s%@AUTOCONF@%$AUTOCONF%g
3155 s%@AUTOMAKE@%$AUTOMAKE%g
3156 s%@AUTOHEADER@%$AUTOHEADER%g
3157 s%@MAKEINFO@%$MAKEINFO%g
3158 s%@SET_MAKE@%$SET_MAKE%g
3162 s%@RANLIB@%$RANLIB%g
3163 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3164 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3166 s%@EXEEXT@%$EXEEXT%g
3167 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
3168 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3169 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3170 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3171 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3172 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3173 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3174 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3175 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3176 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3177 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
3178 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3179 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
3180 s%@OBJEXT@%$OBJEXT%g
3183 s%@libm_machine_dir@%$libm_machine_dir%g
3184 s%@machine_dir@%$machine_dir%g
3185 s%@sys_dir@%$sys_dir%g
3188 s%@DLLTOOL@%$DLLTOOL%g
3189 s%@OBJDUMP@%$OBJDUMP%g
3190 s%@LIBTOOL@%$LIBTOOL%g
3191 s%@MACH_ADD_SETJMP_TRUE@%$MACH_ADD_SETJMP_TRUE%g
3192 s%@MACH_ADD_SETJMP_FALSE@%$MACH_ADD_SETJMP_FALSE%g
3197 cat >> $CONFIG_STATUS <<\EOF
3199 # Split the substitutions into bite-sized pieces for seds with
3200 # small command number limits, like on Digital OSF/1 and HP-UX.
3201 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3202 ac_file=1 # Number of current file.
3203 ac_beg=1 # First line for current file.
3204 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3207 while $ac_more_lines; do
3208 if test $ac_beg -gt 1; then
3209 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3211 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3213 if test ! -s conftest.s$ac_file; then
3215 rm -f conftest.s$ac_file
3217 if test -z "$ac_sed_cmds"; then
3218 ac_sed_cmds="sed -f conftest.s$ac_file"
3220 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3222 ac_file=`expr $ac_file + 1`
3224 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3227 if test -z "$ac_sed_cmds"; then
3232 cat >> $CONFIG_STATUS <<EOF
3234 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3236 cat >> $CONFIG_STATUS <<\EOF
3237 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3240 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3241 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3242 *) ac_file_in="${ac_file}.in" ;;
3245 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3247 # Remove last slash and all that follows it. Not all systems have dirname.
3248 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3249 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3250 # The file is in a subdirectory.
3251 test ! -d "$ac_dir" && mkdir "$ac_dir"
3252 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3253 # A "../" for each directory in $ac_dir_suffix.
3254 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3256 ac_dir_suffix= ac_dots=
3259 case "$ac_given_srcdir" in
3261 if test -z "$ac_dots"; then top_srcdir=.
3262 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3263 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3265 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3266 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3269 case "$ac_given_INSTALL" in
3270 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3271 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3274 echo creating "$ac_file"
3276 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3278 *Makefile*) ac_comsub="1i\\
3279 # $configure_input" ;;
3283 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3285 s%@configure_input@%$configure_input%g
3286 s%@srcdir@%$srcdir%g
3287 s%@top_srcdir@%$top_srcdir%g
3288 s%@INSTALL@%$INSTALL%g
3289 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3294 cat >> $CONFIG_STATUS <<EOF
3297 cat >> $CONFIG_STATUS <<\EOF
3301 chmod +x $CONFIG_STATUS
3302 rm -fr confdefs* $ac_clean_files
3303 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1