3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-target-optspace optimize for space"
19 --enable-malloc-debugging indicate malloc debugging requested"
21 --enable-newlib-mb enable multibyte support"
23 --enable-newlib-multithread enable support for multiple threads"
25 --enable-newlib-elix-level supply desired elix library level (1-4)"
27 --disable-newlib-io-float disable printf/scanf family float support"
29 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 --enable-shared[=PKGS] build shared libraries [default=yes]"
36 --enable-static[=PKGS] build static libraries [default=yes]"
38 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
40 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
42 --disable-libtool-lock avoid locking (might break parallel builds)"
44 --with-pic try to use only PIC/non-PIC objects [default=use both]"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file=./config.cache
59 program_transform_name=s,x,x,
68 bindir='${exec_prefix}/bin'
69 sbindir='${exec_prefix}/sbin'
70 libexecdir='${exec_prefix}/libexec'
71 datadir='${prefix}/share'
72 sysconfdir='${prefix}/etc'
73 sharedstatedir='${prefix}/com'
74 localstatedir='${prefix}/var'
75 libdir='${exec_prefix}/lib'
76 includedir='${prefix}/include'
77 oldincludedir='/usr/include'
78 infodir='${prefix}/info'
79 mandir='${prefix}/man'
81 # Initialize some other variables.
84 SHELL=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
118 -cache-file | --cache-file | --cache-fil | --cache-fi \
119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120 ac_prev=cache_file ;;
121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123 cache_file="$ac_optarg" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
129 datadir="$ac_optarg" ;;
131 -disable-* | --disable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* | --enable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155 | --exec | --exe | --ex)
156 ac_prev=exec_prefix ;;
157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159 | --exec=* | --exe=* | --ex=*)
160 exec_prefix="$ac_optarg" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
166 -help | --help | --hel | --he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --site-file=FILE use FILE as the site file
178 --version print the version of autoconf that created configure
179 Directory and file names:
180 --prefix=PREFIX install architecture-independent files in PREFIX
182 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
184 --bindir=DIR user executables in DIR [EPREFIX/bin]
185 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
186 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
187 --datadir=DIR read-only architecture-independent data in DIR
189 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
190 --sharedstatedir=DIR modifiable architecture-independent data in DIR
192 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
193 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
194 --includedir=DIR C header files in DIR [PREFIX/include]
195 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
196 --infodir=DIR info documentation in DIR [PREFIX/info]
197 --mandir=DIR man documentation in DIR [PREFIX/man]
198 --srcdir=DIR find the sources in DIR [configure dir or ..]
199 --program-prefix=PREFIX prepend PREFIX to installed program names
200 --program-suffix=SUFFIX append SUFFIX to installed program names
201 --program-transform-name=PROGRAM
202 run sed PROGRAM on installed program names
206 --build=BUILD configure for building on BUILD [BUILD=HOST]
207 --host=HOST configure for HOST [guessed]
208 --target=TARGET configure for TARGET [TARGET=HOST]
209 Features and packages:
210 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
211 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
212 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
213 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
214 --x-includes=DIR X include files are in DIR
215 --x-libraries=DIR X library files are in DIR
217 if test -n "$ac_help"; then
218 echo "--enable and --with options recognized:$ac_help"
222 -host | --host | --hos | --ho)
224 -host=* | --host=* | --hos=* | --ho=*)
227 -includedir | --includedir | --includedi | --included | --include \
228 | --includ | --inclu | --incl | --inc)
229 ac_prev=includedir ;;
230 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
231 | --includ=* | --inclu=* | --incl=* | --inc=*)
232 includedir="$ac_optarg" ;;
234 -infodir | --infodir | --infodi | --infod | --info | --inf)
236 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
237 infodir="$ac_optarg" ;;
239 -libdir | --libdir | --libdi | --libd)
241 -libdir=* | --libdir=* | --libdi=* | --libd=*)
242 libdir="$ac_optarg" ;;
244 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
245 | --libexe | --libex | --libe)
246 ac_prev=libexecdir ;;
247 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
248 | --libexe=* | --libex=* | --libe=*)
249 libexecdir="$ac_optarg" ;;
251 -localstatedir | --localstatedir | --localstatedi | --localstated \
252 | --localstate | --localstat | --localsta | --localst \
253 | --locals | --local | --loca | --loc | --lo)
254 ac_prev=localstatedir ;;
255 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
256 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
257 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
258 localstatedir="$ac_optarg" ;;
260 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
262 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
263 mandir="$ac_optarg" ;;
266 # Obsolete; use --without-fp.
269 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
274 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
277 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
278 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
279 | --oldin | --oldi | --old | --ol | --o)
280 ac_prev=oldincludedir ;;
281 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
282 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
283 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
284 oldincludedir="$ac_optarg" ;;
286 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
288 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
289 prefix="$ac_optarg" ;;
291 -program-prefix | --program-prefix | --program-prefi | --program-pref \
292 | --program-pre | --program-pr | --program-p)
293 ac_prev=program_prefix ;;
294 -program-prefix=* | --program-prefix=* | --program-prefi=* \
295 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
296 program_prefix="$ac_optarg" ;;
298 -program-suffix | --program-suffix | --program-suffi | --program-suff \
299 | --program-suf | --program-su | --program-s)
300 ac_prev=program_suffix ;;
301 -program-suffix=* | --program-suffix=* | --program-suffi=* \
302 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
303 program_suffix="$ac_optarg" ;;
305 -program-transform-name | --program-transform-name \
306 | --program-transform-nam | --program-transform-na \
307 | --program-transform-n | --program-transform- \
308 | --program-transform | --program-transfor \
309 | --program-transfo | --program-transf \
310 | --program-trans | --program-tran \
311 | --progr-tra | --program-tr | --program-t)
312 ac_prev=program_transform_name ;;
313 -program-transform-name=* | --program-transform-name=* \
314 | --program-transform-nam=* | --program-transform-na=* \
315 | --program-transform-n=* | --program-transform-=* \
316 | --program-transform=* | --program-transfor=* \
317 | --program-transfo=* | --program-transf=* \
318 | --program-trans=* | --program-tran=* \
319 | --progr-tra=* | --program-tr=* | --program-t=*)
320 program_transform_name="$ac_optarg" ;;
322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
323 | -silent | --silent | --silen | --sile | --sil)
326 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
328 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
330 sbindir="$ac_optarg" ;;
332 -sharedstatedir | --sharedstatedir | --sharedstatedi \
333 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
334 | --sharedst | --shareds | --shared | --share | --shar \
336 ac_prev=sharedstatedir ;;
337 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
338 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
339 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
341 sharedstatedir="$ac_optarg" ;;
343 -site | --site | --sit)
345 -site=* | --site=* | --sit=*)
348 -site-file | --site-file | --site-fil | --site-fi | --site-f)
350 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
351 sitefile="$ac_optarg" ;;
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356 srcdir="$ac_optarg" ;;
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359 | --syscon | --sysco | --sysc | --sys | --sy)
360 ac_prev=sysconfdir ;;
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363 sysconfdir="$ac_optarg" ;;
365 -target | --target | --targe | --targ | --tar | --ta | --t)
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368 target="$ac_optarg" ;;
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 -version | --version | --versio | --versi | --vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* | --without-*)
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404 | --x-incl | --x-inc | --x-in | --x-i)
405 ac_prev=x_includes ;;
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408 x_includes="$ac_optarg" ;;
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412 ac_prev=x_libraries ;;
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415 x_libraries="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466 | --no-cr | --no-c) ;;
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=pspinlock.c
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$sitefile"; then
519 if test -z "$CONFIG_SITE"; then
520 if test "x$prefix" != xNONE; then
521 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
523 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 CONFIG_SITE="$sitefile"
529 for ac_site_file in $CONFIG_SITE; do
530 if test -r "$ac_site_file"; then
531 echo "loading site script $ac_site_file"
536 if test -r "$cache_file"; then
537 echo "loading cache $cache_file"
540 echo "creating cache $cache_file"
545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
546 ac_cpp='$CPP $CPPFLAGS'
547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
549 cross_compiling=$ac_cv_prog_cc_cross
553 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
562 ac_n= ac_c='\c' ac_t=
568 for ac_dir in ../../../../../../.. $srcdir/../../../../../../..; do
569 if test -f $ac_dir/install-sh; then
571 ac_install_sh="$ac_aux_dir/install-sh -c"
573 elif test -f $ac_dir/install.sh; then
575 ac_install_sh="$ac_aux_dir/install.sh -c"
579 if test -z "$ac_aux_dir"; then
580 { echo "configure: error: can not find install-sh or install.sh in ../../../../../../.. $srcdir/../../../../../../.." 1>&2; exit 1; }
582 ac_config_guess=$ac_aux_dir/config.guess
583 ac_config_sub=$ac_aux_dir/config.sub
584 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
587 # Find a good install program. We prefer a C program (faster),
588 # so one script is as good as another. But avoid the broken or
589 # incompatible versions:
590 # SysV /etc/install, /usr/sbin/install
591 # SunOS /usr/etc/install
594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
597 # ./install, which can be erroneously created by make from ./install.sh.
598 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
599 echo "configure:600: checking for a BSD compatible install" >&5
600 if test -z "$INSTALL"; then
601 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
602 echo $ac_n "(cached) $ac_c" 1>&6
604 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
605 for ac_dir in $PATH; do
606 # Account for people who put trailing slashes in PATH elements.
608 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
610 # OSF1 and SCO ODT 3.0 have their own names for install.
611 # Don't use installbsd from OSF since it installs stuff as root
613 for ac_prog in ginstall scoinst install; do
614 if test -f $ac_dir/$ac_prog; then
615 if test $ac_prog = install &&
616 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
617 # AIX install. It has an incompatible calling convention.
620 ac_cv_path_install="$ac_dir/$ac_prog -c"
631 if test "${ac_cv_path_install+set}" = set; then
632 INSTALL="$ac_cv_path_install"
634 # As a last resort, use the slow shell script. We don't cache a
635 # path for INSTALL within a source directory, because that will
636 # break other packages using the cache if that directory is
637 # removed, or if the path is relative.
638 INSTALL="$ac_install_sh"
641 echo "$ac_t""$INSTALL" 1>&6
643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
644 # It thinks the first close brace ends the variable substitution.
645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
651 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
652 echo "configure:653: checking whether build environment is sane" >&5
655 echo timestamp > conftestfile
656 # Do `set' in a subshell so we don't clobber the current shell's
657 # arguments. Must try -L first in case configure is actually a
658 # symlink; some systems play weird games with the mod time of symlinks
659 # (eg FreeBSD returns the mod time of the symlink's containing
662 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
663 if test "$*" = "X"; then
665 set X `ls -t $srcdir/configure conftestfile`
667 if test "$*" != "X $srcdir/configure conftestfile" \
668 && test "$*" != "X conftestfile $srcdir/configure"; then
670 # If neither matched, then we have a broken ls. This can happen
671 # if, for instance, CONFIG_SHELL is bash and it inherits a
672 # broken ls alias from the environment. This has actually
673 # happened. Such a system could not be considered "sane".
674 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
675 alias in your environment" 1>&2; exit 1; }
678 test "$2" = conftestfile
684 { echo "configure: error: newly created file is older than distributed files!
685 Check your system clock" 1>&2; exit 1; }
688 echo "$ac_t""yes" 1>&6
689 if test "$program_transform_name" = s,x,x,; then
690 program_transform_name=
692 # Double any \ or $. echo might interpret backslashes.
693 cat <<\EOF_SED > conftestsed
694 s,\\,\\\\,g; s,\$,$$,g
696 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
699 test "$program_prefix" != NONE &&
700 program_transform_name="s,^,${program_prefix},; $program_transform_name"
701 # Use a double $ so make ignores it.
702 test "$program_suffix" != NONE &&
703 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
705 # sed with no file args requires a program.
706 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
708 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
709 echo "configure:710: checking whether ${MAKE-make} sets \${MAKE}" >&5
710 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
711 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
714 cat > conftestmake <<\EOF
716 @echo 'ac_maketemp="${MAKE}"'
718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
719 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
720 if test -n "$ac_maketemp"; then
721 eval ac_cv_prog_make_${ac_make}_set=yes
723 eval ac_cv_prog_make_${ac_make}_set=no
727 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
728 echo "$ac_t""yes" 1>&6
731 echo "$ac_t""no" 1>&6
732 SET_MAKE="MAKE=${MAKE-make}"
735 if test $host != $build; then
736 ac_tool_prefix=${host_alias}-
741 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
742 echo "configure:743: checking for Cygwin environment" >&5
743 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 cat > conftest.$ac_ext <<EOF
747 #line 748 "configure"
748 #include "confdefs.h"
753 #define __CYGWIN__ __CYGWIN32__
758 if { (eval echo configure:759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
762 echo "configure: failed program was:" >&5
763 cat conftest.$ac_ext >&5
771 echo "$ac_t""$ac_cv_cygwin" 1>&6
773 test "$ac_cv_cygwin" = yes && CYGWIN=yes
774 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
775 echo "configure:776: checking for mingw32 environment" >&5
776 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 cat > conftest.$ac_ext <<EOF
780 #line 781 "configure"
781 #include "confdefs.h"
787 if { (eval echo configure:788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
791 echo "configure: failed program was:" >&5
792 cat conftest.$ac_ext >&5
800 echo "$ac_t""$ac_cv_mingw32" 1>&6
802 test "$ac_cv_mingw32" = yes && MINGW32=yes
804 # Check whether --enable-multilib or --disable-multilib was given.
805 if test "${enable_multilib+set}" = set; then
806 enableval="$enable_multilib"
807 case "${enableval}" in
810 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
816 # Check whether --enable-target-optspace or --disable-target-optspace was given.
817 if test "${enable_target_optspace+set}" = set; then
818 enableval="$enable_target_optspace"
819 case "${enableval}" in
820 yes) target_optspace=yes ;;
821 no) target_optspace=no ;;
822 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
828 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
829 if test "${enable_malloc_debugging+set}" = set; then
830 enableval="$enable_malloc_debugging"
831 case "${enableval}" in
832 yes) malloc_debugging=yes ;;
833 no) malloc_debugging=no ;;
834 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
840 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
841 if test "${enable_newlib_mb+set}" = set; then
842 enableval="$enable_newlib_mb"
843 case "${enableval}" in
844 yes) newlib_mb=yes ;;
846 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
852 # Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
853 if test "${enable_newlib_multithread+set}" = set; then
854 enableval="$enable_newlib_multithread"
855 case "${enableval}" in
856 yes) newlib_multithread=yes ;;
857 no) newlib_multithread=no ;;
858 *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
861 newlib_multithread=yes
864 # Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
865 if test "${enable_newlib_elix_level+set}" = set; then
866 enableval="$enable_newlib_elix_level"
867 case "${enableval}" in
868 0) newlib_elix_level=0 ;;
869 1) newlib_elix_level=1 ;;
870 2) newlib_elix_level=2 ;;
871 3) newlib_elix_level=3 ;;
872 4) newlib_elix_level=4 ;;
873 *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
879 # Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
880 if test "${enable_newlib_io_float+set}" = set; then
881 enableval="$enable_newlib_io_float"
882 case "${enableval}" in
883 yes) newlib_io_float=yes ;;
884 no) newlib_io_float=no ;;
885 *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
891 # Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
892 if test "${enable_newlib_supplied_syscalls+set}" = set; then
893 enableval="$enable_newlib_supplied_syscalls"
894 case "${enableval}" in
895 yes) newlib_may_supply_syscalls=yes ;;
896 no) newlib_may_supply_syscalls=no ;;
897 *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
900 newlib_may_supply_syscalls=yes
905 if test x${newlib_may_supply_syscalls} = xyes; then
906 MAY_SUPPLY_SYSCALLS_TRUE=
907 MAY_SUPPLY_SYSCALLS_FALSE='#'
909 MAY_SUPPLY_SYSCALLS_TRUE='#'
910 MAY_SUPPLY_SYSCALLS_FALSE=
914 test -z "${with_target_subdir}" && with_target_subdir=.
916 if test "${srcdir}" = "."; then
917 if test "${with_target_subdir}" != "."; then
918 newlib_basedir="${srcdir}/${with_multisrctop}../../../../../../.."
920 newlib_basedir="${srcdir}/${with_multisrctop}../../../../../.."
923 newlib_basedir="${srcdir}/../../../../../.."
928 # Do some error checking and defaulting for the host and target type.
930 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
933 # 1. You are not allowed to specify --host, --target, and nonopt at the
935 # 2. Host defaults to nonopt.
936 # 3. If nonopt is not specified, then host defaults to the current host,
937 # as determined by config.guess.
938 # 4. Target and build default to nonopt.
939 # 5. If nonopt is not specified, then target and build default to host.
941 # The aliases save the names the user supplied, while $host etc.
942 # will get canonicalized.
943 case $host---$target---$nonopt in
944 NONE---*---* | *---NONE---* | *---*---NONE) ;;
945 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
949 # Make sure we can run config.sub.
950 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
951 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
954 echo $ac_n "checking host system type""... $ac_c" 1>&6
955 echo "configure:956: checking host system type" >&5
958 case "$host_alias" in
962 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
963 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
965 *) host_alias=$nonopt ;;
969 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
970 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
971 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
972 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
973 echo "$ac_t""$host" 1>&6
975 echo $ac_n "checking target system type""... $ac_c" 1>&6
976 echo "configure:977: checking target system type" >&5
979 case "$target_alias" in
982 NONE) target_alias=$host_alias ;;
983 *) target_alias=$nonopt ;;
987 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
988 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
991 echo "$ac_t""$target" 1>&6
993 echo $ac_n "checking build system type""... $ac_c" 1>&6
994 echo "configure:995: checking build system type" >&5
997 case "$build_alias" in
1000 NONE) build_alias=$host_alias ;;
1001 *) build_alias=$nonopt ;;
1005 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1006 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1007 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1008 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1009 echo "$ac_t""$build" 1>&6
1011 test "$host_alias" != "$target_alias" &&
1012 test "$program_prefix$program_suffix$program_transform_name" = \
1014 program_prefix=${target_alias}-
1022 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1023 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1025 cat >> confdefs.h <<EOF
1026 #define PACKAGE "$PACKAGE"
1029 cat >> confdefs.h <<EOF
1030 #define VERSION "$VERSION"
1035 missing_dir=`cd $ac_aux_dir && pwd`
1036 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1037 echo "configure:1038: checking for working aclocal" >&5
1038 # Run test in a subshell; some versions of sh will print an error if
1039 # an executable is not found, even if stderr is redirected.
1040 # Redirect stdin to placate older versions of autoconf. Sigh.
1041 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1043 echo "$ac_t""found" 1>&6
1045 ACLOCAL="$missing_dir/missing aclocal"
1046 echo "$ac_t""missing" 1>&6
1049 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1050 echo "configure:1051: checking for working autoconf" >&5
1051 # Run test in a subshell; some versions of sh will print an error if
1052 # an executable is not found, even if stderr is redirected.
1053 # Redirect stdin to placate older versions of autoconf. Sigh.
1054 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1056 echo "$ac_t""found" 1>&6
1058 AUTOCONF="$missing_dir/missing autoconf"
1059 echo "$ac_t""missing" 1>&6
1062 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1063 echo "configure:1064: checking for working automake" >&5
1064 # Run test in a subshell; some versions of sh will print an error if
1065 # an executable is not found, even if stderr is redirected.
1066 # Redirect stdin to placate older versions of autoconf. Sigh.
1067 if (automake --version) < /dev/null > /dev/null 2>&1; then
1069 echo "$ac_t""found" 1>&6
1071 AUTOMAKE="$missing_dir/missing automake"
1072 echo "$ac_t""missing" 1>&6
1075 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1076 echo "configure:1077: checking for working autoheader" >&5
1077 # Run test in a subshell; some versions of sh will print an error if
1078 # an executable is not found, even if stderr is redirected.
1079 # Redirect stdin to placate older versions of autoconf. Sigh.
1080 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1081 AUTOHEADER=autoheader
1082 echo "$ac_t""found" 1>&6
1084 AUTOHEADER="$missing_dir/missing autoheader"
1085 echo "$ac_t""missing" 1>&6
1088 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1089 echo "configure:1090: checking for working makeinfo" >&5
1090 # Run test in a subshell; some versions of sh will print an error if
1091 # an executable is not found, even if stderr is redirected.
1092 # Redirect stdin to placate older versions of autoconf. Sigh.
1093 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1095 echo "$ac_t""found" 1>&6
1097 MAKEINFO="$missing_dir/missing makeinfo"
1098 echo "$ac_t""missing" 1>&6
1103 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1104 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1105 # are probably using a cross compiler, which will not be able to fully
1106 # link an executable. This should really be fixed in autoconf
1111 # Extract the first word of "gcc", so it can be a program name with args.
1112 set dummy gcc; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 if test -n "$CC"; then
1119 ac_cv_prog_CC="$CC" # Let the user override the test.
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1134 if test -n "$CC"; then
1135 echo "$ac_t""$CC" 1>&6
1137 echo "$ac_t""no" 1>&6
1140 if test -z "$CC"; then
1141 # Extract the first word of "cc", so it can be a program name with args.
1142 set dummy cc; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1154 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 if test -f $ac_dir/$ac_word; then
1157 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1158 ac_prog_rejected=yes
1166 if test $ac_prog_rejected = yes; then
1167 # We found a bogon in the path, so make sure we never use it.
1168 set dummy $ac_cv_prog_CC
1170 if test $# -gt 0; then
1171 # We chose a different compiler from the bogus one.
1172 # However, it has the same basename, so the bogon will be chosen
1173 # first if we set CC to just the basename; use the full file name.
1175 set dummy "$ac_dir/$ac_word" "$@"
1183 if test -n "$CC"; then
1184 echo "$ac_t""$CC" 1>&6
1186 echo "$ac_t""no" 1>&6
1189 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1192 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether we are using GNU C" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 cat > conftest.c <<EOF
1202 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1209 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1211 if test $ac_cv_prog_gcc = yes; then
1213 ac_test_CFLAGS="${CFLAGS+set}"
1214 ac_save_CFLAGS="$CFLAGS"
1216 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether ${CC-cc} accepts -g" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 echo 'void f(){}' > conftest.c
1222 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1231 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1232 if test "$ac_test_CFLAGS" = set; then
1233 CFLAGS="$ac_save_CFLAGS"
1234 elif test $ac_cv_prog_cc_g = yes; then
1241 test "${CFLAGS+set}" = set || CFLAGS="-g"
1245 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1246 set dummy ${ac_tool_prefix}as; ac_word=$2
1247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1248 echo "configure:1249: checking for $ac_word" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 if test -n "$AS"; then
1253 ac_cv_prog_AS="$AS" # Let the user override the test.
1255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1257 for ac_dir in $ac_dummy; do
1258 test -z "$ac_dir" && ac_dir=.
1259 if test -f $ac_dir/$ac_word; then
1260 ac_cv_prog_AS="${ac_tool_prefix}as"
1265 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1269 if test -n "$AS"; then
1270 echo "$ac_t""$AS" 1>&6
1272 echo "$ac_t""no" 1>&6
1277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1278 set dummy ${ac_tool_prefix}ar; ac_word=$2
1279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1280 echo "configure:1281: checking for $ac_word" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 if test -n "$AR"; then
1285 ac_cv_prog_AR="$AR" # Let the user override the test.
1287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1289 for ac_dir in $ac_dummy; do
1290 test -z "$ac_dir" && ac_dir=.
1291 if test -f $ac_dir/$ac_word; then
1292 ac_cv_prog_AR="${ac_tool_prefix}ar"
1297 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1301 if test -n "$AR"; then
1302 echo "$ac_t""$AR" 1>&6
1304 echo "$ac_t""no" 1>&6
1309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312 echo "configure:1313: checking for $ac_word" >&5
1313 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 if test -n "$RANLIB"; then
1317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1321 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 if test -f $ac_dir/$ac_word; then
1324 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1331 RANLIB="$ac_cv_prog_RANLIB"
1332 if test -n "$RANLIB"; then
1333 echo "$ac_t""$RANLIB" 1>&6
1335 echo "$ac_t""no" 1>&6
1339 if test -z "$ac_cv_prog_RANLIB"; then
1340 if test -n "$ac_tool_prefix"; then
1341 # Extract the first word of "ranlib", so it can be a program name with args.
1342 set dummy ranlib; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 if test -n "$RANLIB"; then
1349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1353 for ac_dir in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_RANLIB="ranlib"
1361 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1364 RANLIB="$ac_cv_prog_RANLIB"
1365 if test -n "$RANLIB"; then
1366 echo "$ac_t""$RANLIB" 1>&6
1368 echo "$ac_t""no" 1>&6
1377 # Find a good install program. We prefer a C program (faster),
1378 # so one script is as good as another. But avoid the broken or
1379 # incompatible versions:
1380 # SysV /etc/install, /usr/sbin/install
1381 # SunOS /usr/etc/install
1382 # IRIX /sbin/install
1384 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1385 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1386 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1387 # ./install, which can be erroneously created by make from ./install.sh.
1388 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1389 echo "configure:1390: checking for a BSD compatible install" >&5
1390 if test -z "$INSTALL"; then
1391 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1395 for ac_dir in $PATH; do
1396 # Account for people who put trailing slashes in PATH elements.
1398 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1400 # OSF1 and SCO ODT 3.0 have their own names for install.
1401 # Don't use installbsd from OSF since it installs stuff as root
1403 for ac_prog in ginstall scoinst install; do
1404 if test -f $ac_dir/$ac_prog; then
1405 if test $ac_prog = install &&
1406 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1407 # AIX install. It has an incompatible calling convention.
1410 ac_cv_path_install="$ac_dir/$ac_prog -c"
1421 if test "${ac_cv_path_install+set}" = set; then
1422 INSTALL="$ac_cv_path_install"
1424 # As a last resort, use the slow shell script. We don't cache a
1425 # path for INSTALL within a source directory, because that will
1426 # break other packages using the cache if that directory is
1427 # removed, or if the path is relative.
1428 INSTALL="$ac_install_sh"
1431 echo "$ac_t""$INSTALL" 1>&6
1433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1434 # It thinks the first close brace ends the variable substitution.
1435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1442 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1443 echo "configure:1444: checking whether to enable maintainer-specific portions of Makefiles" >&5
1444 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1445 if test "${enable_maintainer_mode+set}" = set; then
1446 enableval="$enable_maintainer_mode"
1447 USE_MAINTAINER_MODE=$enableval
1449 USE_MAINTAINER_MODE=no
1452 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1455 if test $USE_MAINTAINER_MODE = yes; then
1456 MAINTAINER_MODE_TRUE=
1457 MAINTAINER_MODE_FALSE='#'
1459 MAINTAINER_MODE_TRUE='#'
1460 MAINTAINER_MODE_FALSE=
1462 MAINT=$MAINTAINER_MODE_TRUE
1466 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1467 # at least currently, we never actually build a program, so we never
1468 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1469 # fails, because we are probably configuring with a cross compiler
1470 # which can't create executables. So we include AC_EXEEXT to keep
1471 # automake happy, but we don't execute it, since we don't care about
1476 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1477 echo "configure:1478: checking for executable suffix" >&5
1478 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1485 echo 'int main () { return 0; }' > conftest.$ac_ext
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1488 for file in conftest.*; do
1490 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1491 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1495 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1498 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1503 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1504 echo "$ac_t""${ac_cv_exeext}" 1>&6
1509 . ${newlib_basedir}/configure.host
1511 newlib_cflags="${newlib_cflags} -fno-builtin"
1513 NEWLIB_CFLAGS=${newlib_cflags}
1521 if test x${newlib_elix_level} = x0; then
1523 ELIX_LEVEL_0_FALSE='#'
1525 ELIX_LEVEL_0_TRUE='#'
1530 if test x${newlib_elix_level} = x1; then
1532 ELIX_LEVEL_1_FALSE='#'
1534 ELIX_LEVEL_1_TRUE='#'
1539 if test x${newlib_elix_level} = x2; then
1541 ELIX_LEVEL_2_FALSE='#'
1543 ELIX_LEVEL_2_TRUE='#'
1548 if test x${newlib_elix_level} = x3; then
1550 ELIX_LEVEL_3_FALSE='#'
1552 ELIX_LEVEL_3_TRUE='#'
1557 if test x${newlib_elix_level} = x4; then
1559 ELIX_LEVEL_4_FALSE='#'
1561 ELIX_LEVEL_4_TRUE='#'
1567 if test x${use_libtool} = xyes; then
1569 USE_LIBTOOL_FALSE='#'
1571 USE_LIBTOOL_TRUE='#'
1575 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
1576 # use oext, which is set in configure.host based on the target platform.
1589 if test "${use_libtool}" = "yes"; then
1591 # Check whether --enable-shared or --disable-shared was given.
1592 if test "${enable_shared+set}" = set; then
1593 enableval="$enable_shared"
1594 p=${PACKAGE-default}
1596 yes) enable_shared=yes ;;
1597 no) enable_shared=no ;;
1600 # Look at the argument we got. We use all the common list separators.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1602 for pkg in $enableval; do
1603 if test "X$pkg" = "X$p"; then
1614 # Check whether --enable-static or --disable-static was given.
1615 if test "${enable_static+set}" = set; then
1616 enableval="$enable_static"
1617 p=${PACKAGE-default}
1619 yes) enable_static=yes ;;
1620 no) enable_static=no ;;
1623 # Look at the argument we got. We use all the common list separators.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1625 for pkg in $enableval; do
1626 if test "X$pkg" = "X$p"; then
1637 # Check whether --enable-fast-install or --disable-fast-install was given.
1638 if test "${enable_fast_install+set}" = set; then
1639 enableval="$enable_fast_install"
1640 p=${PACKAGE-default}
1642 yes) enable_fast_install=yes ;;
1643 no) enable_fast_install=no ;;
1645 enable_fast_install=no
1646 # Look at the argument we got. We use all the common list separators.
1647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1648 for pkg in $enableval; do
1649 if test "X$pkg" = "X$p"; then
1650 enable_fast_install=yes
1657 enable_fast_install=yes
1660 # Extract the first word of "gcc", so it can be a program name with args.
1661 set dummy gcc; ac_word=$2
1662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_word" >&5
1664 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 if test -n "$CC"; then
1668 ac_cv_prog_CC="$CC" # Let the user override the test.
1670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1672 for ac_dir in $ac_dummy; do
1673 test -z "$ac_dir" && ac_dir=.
1674 if test -f $ac_dir/$ac_word; then
1683 if test -n "$CC"; then
1684 echo "$ac_t""$CC" 1>&6
1686 echo "$ac_t""no" 1>&6
1689 if test -z "$CC"; then
1690 # Extract the first word of "cc", so it can be a program name with args.
1691 set dummy cc; ac_word=$2
1692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1693 echo "configure:1694: checking for $ac_word" >&5
1694 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1703 for ac_dir in $ac_dummy; do
1704 test -z "$ac_dir" && ac_dir=.
1705 if test -f $ac_dir/$ac_word; then
1706 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1707 ac_prog_rejected=yes
1715 if test $ac_prog_rejected = yes; then
1716 # We found a bogon in the path, so make sure we never use it.
1717 set dummy $ac_cv_prog_CC
1719 if test $# -gt 0; then
1720 # We chose a different compiler from the bogus one.
1721 # However, it has the same basename, so the bogon will be chosen
1722 # first if we set CC to just the basename; use the full file name.
1724 set dummy "$ac_dir/$ac_word" "$@"
1732 if test -n "$CC"; then
1733 echo "$ac_t""$CC" 1>&6
1735 echo "$ac_t""no" 1>&6
1738 if test -z "$CC"; then
1739 case "`uname -s`" in
1741 # Extract the first word of "cl", so it can be a program name with args.
1742 set dummy cl; ac_word=$2
1743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_word" >&5
1745 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1753 for ac_dir in $ac_dummy; do
1754 test -z "$ac_dir" && ac_dir=.
1755 if test -f $ac_dir/$ac_word; then
1764 if test -n "$CC"; then
1765 echo "$ac_t""$CC" 1>&6
1767 echo "$ac_t""no" 1>&6
1772 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1779 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1782 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1783 cross_compiling=$ac_cv_prog_cc_cross
1785 cat > conftest.$ac_ext << EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1792 if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1793 ac_cv_prog_cc_works=yes
1794 # If we can't run a trivial program, we are probably using a cross compiler.
1795 if (./conftest; exit) 2>/dev/null; then
1796 ac_cv_prog_cc_cross=no
1798 ac_cv_prog_cc_cross=yes
1801 echo "configure: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1803 ac_cv_prog_cc_works=no
1807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1808 ac_cpp='$CPP $CPPFLAGS'
1809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1811 cross_compiling=$ac_cv_prog_cc_cross
1813 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1814 if test $ac_cv_prog_cc_works = no; then
1815 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1817 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1818 echo "configure:1819: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1819 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1820 cross_compiling=$ac_cv_prog_cc_cross
1822 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1823 echo "configure:1824: checking whether we are using GNU C" >&5
1824 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 cat > conftest.c <<EOF
1832 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1839 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1841 if test $ac_cv_prog_gcc = yes; then
1847 ac_test_CFLAGS="${CFLAGS+set}"
1848 ac_save_CFLAGS="$CFLAGS"
1850 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1851 echo "configure:1852: checking whether ${CC-cc} accepts -g" >&5
1852 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 echo 'void f(){}' > conftest.c
1856 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1865 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1866 if test "$ac_test_CFLAGS" = set; then
1867 CFLAGS="$ac_save_CFLAGS"
1868 elif test $ac_cv_prog_cc_g = yes; then
1869 if test "$GCC" = yes; then
1875 if test "$GCC" = yes; then
1882 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1883 if test "${with_gnu_ld+set}" = set; then
1884 withval="$with_gnu_ld"
1885 test "$withval" = no || with_gnu_ld=yes
1891 if test "$GCC" = yes; then
1892 # Check if gcc -print-prog-name=ld gives a path.
1893 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1894 echo "configure:1895: checking for ld used by GCC" >&5
1897 # gcc leaves a trailing carriage return which upsets mingw
1898 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1900 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1903 # Accept absolute paths.
1904 [\\/]* | [A-Za-z]:[\\/]*)
1905 re_direlt='/[^/][^/]*/\.\./'
1906 # Canonicalize the path of ld
1907 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1908 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1909 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1911 test -z "$LD" && LD="$ac_prog"
1914 # If it fails, then pretend we aren't using GCC.
1918 # If it is relative, then search for the first ld in PATH.
1922 elif test "$with_gnu_ld" = yes; then
1923 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1924 echo "configure:1925: checking for GNU ld" >&5
1926 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1927 echo "configure:1928: checking for non-GNU ld" >&5
1929 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 if test -z "$LD"; then
1933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1934 for ac_dir in $PATH; do
1935 test -z "$ac_dir" && ac_dir=.
1936 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1937 lt_cv_path_LD="$ac_dir/$ac_prog"
1938 # Check to see if the program is GNU ld. I'd rather use --version,
1939 # but apparently some GNU ld's only accept -v.
1940 # Break only if it was the GNU/non-GNU ld that we prefer.
1941 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1942 test "$with_gnu_ld" != no && break
1944 test "$with_gnu_ld" != yes && break
1950 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1955 if test -n "$LD"; then
1956 echo "$ac_t""$LD" 1>&6
1958 echo "$ac_t""no" 1>&6
1960 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1961 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1962 echo "configure:1963: checking if the linker ($LD) is GNU ld" >&5
1963 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1967 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1968 lt_cv_prog_gnu_ld=yes
1970 lt_cv_prog_gnu_ld=no
1974 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1975 with_gnu_ld=$lt_cv_prog_gnu_ld
1978 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1979 echo "configure:1980: checking for $LD option to reload object files" >&5
1980 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 lt_cv_ld_reload_flag='-r'
1986 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1987 reload_flag=$lt_cv_ld_reload_flag
1988 test -n "$reload_flag" && reload_flag=" $reload_flag"
1990 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1991 echo "configure:1992: checking for BSD-compatible nm" >&5
1992 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 if test -n "$NM"; then
1996 # Let the user override the test.
1999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2000 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2001 test -z "$ac_dir" && ac_dir=.
2002 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2003 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2004 # Check to see if the nm accepts a BSD-compat flag.
2005 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2006 # nm: unknown option "B" ignored
2007 # Tru64's nm complains that /dev/null is an invalid object file
2008 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2009 lt_cv_path_NM="$tmp_nm -B"
2011 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2012 lt_cv_path_NM="$tmp_nm -p"
2015 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2016 continue # so that we can try to find one that supports BSD flags
2021 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2026 echo "$ac_t""$NM" 1>&6
2028 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether ln -s works" >&5
2030 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2034 if ln -s X conftestdata 2>/dev/null
2037 ac_cv_prog_LN_S="ln -s"
2042 LN_S="$ac_cv_prog_LN_S"
2043 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2044 echo "$ac_t""yes" 1>&6
2046 echo "$ac_t""no" 1>&6
2049 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2050 echo "configure:2051: checking how to recognise dependant libraries" >&5
2051 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 lt_cv_file_magic_cmd='$MAGIC_CMD'
2055 lt_cv_file_magic_test_file=
2056 lt_cv_deplibs_check_method='unknown'
2057 # Need to set the preceding variable on all platforms that support
2058 # interlibrary dependencies.
2059 # 'none' -- dependencies not supported.
2060 # `unknown' -- same as none, but documents that we really don't know.
2061 # 'pass_all' -- all dependencies passed with no checks.
2062 # 'test_compile' -- check by making test program.
2063 # 'file_magic [regex]' -- check by looking for files in library path
2064 # which responds to the $file_magic_cmd with a given egrep regex.
2065 # If you have `file' or equivalent on your system and you're not sure
2066 # whether `pass_all' will *always* work, you probably want this one.
2070 lt_cv_deplibs_check_method=pass_all
2074 lt_cv_deplibs_check_method=pass_all
2078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2079 lt_cv_file_magic_cmd='/usr/bin/file -L'
2080 lt_cv_file_magic_test_file=/shlib/libc.so
2083 cygwin* | mingw* |pw32*)
2084 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2085 lt_cv_file_magic_cmd='$OBJDUMP -f'
2088 darwin* | rhapsody*)
2089 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2090 lt_cv_file_magic_cmd='/usr/bin/file -L'
2092 rhapsody* | darwin1.012)
2093 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2096 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2102 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2105 # Not sure whether the presence of OpenBSD here was a mistake.
2106 # Let's accept both of them until this is cleared up.
2107 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2108 lt_cv_file_magic_cmd=/usr/bin/file
2109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2113 lt_cv_deplibs_check_method=pass_all
2118 lt_cv_deplibs_check_method=pass_all
2124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2125 lt_cv_file_magic_cmd=/usr/bin/file
2126 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2129 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2130 lt_cv_file_magic_cmd=/usr/bin/file
2131 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2139 # this will be overridden with pass_all, but let us keep it just in case
2140 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2144 *-32|*"-32 ") libmagic=32-bit;;
2145 *-n32|*"-n32 ") libmagic=N32;;
2146 *-64|*"-64 ") libmagic=64-bit;;
2147 *) libmagic=never-match;;
2149 # this will be overridden with pass_all, but let us keep it just in case
2150 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2153 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2154 lt_cv_deplibs_check_method=pass_all
2157 # This must be Linux ELF.
2160 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2161 lt_cv_deplibs_check_method=pass_all ;;
2163 # glibc up to 2.1.1 does not perform some relocations on ARM
2164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2166 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2170 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2171 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2173 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2179 lt_cv_file_magic_cmd=/usr/bin/file
2180 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2183 osf3* | osf4* | osf5*)
2184 # this will be overridden with pass_all, but let us keep it just in case
2185 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2186 lt_cv_file_magic_test_file=/shlib/libc.so
2187 lt_cv_deplibs_check_method=pass_all
2191 lt_cv_deplibs_check_method=pass_all
2195 lt_cv_deplibs_check_method=pass_all
2196 lt_cv_file_magic_test_file=/lib/libc.so
2199 sysv5uw[78]* | sysv4*uw2*)
2200 lt_cv_deplibs_check_method=pass_all
2203 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2204 case $host_vendor in
2206 lt_cv_deplibs_check_method=pass_all
2209 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]'
2210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2218 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2219 file_magic_cmd=$lt_cv_file_magic_cmd
2220 deplibs_check_method=$lt_cv_deplibs_check_method
2222 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2223 echo "configure:2224: checking for object suffix" >&5
2224 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2228 echo 'int i = 1;' > conftest.$ac_ext
2229 if { (eval echo configure:2230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2230 for ac_file in conftest.*; do
2233 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2237 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2242 echo "$ac_t""$ac_cv_objext" 1>&6
2243 OBJEXT=$ac_cv_objext
2244 ac_objext=$ac_cv_objext
2246 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2248 # Only perform the check for file, if the check method requires it
2249 case $deplibs_check_method in
2251 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2252 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2253 echo "configure:2254: checking for ${ac_tool_prefix}file" >&5
2254 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2255 echo $ac_n "(cached) $ac_c" 1>&6
2259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2262 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2265 ac_save_MAGIC_CMD="$MAGIC_CMD"
2266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2267 ac_dummy="/usr/bin:$PATH"
2268 for ac_dir in $ac_dummy; do
2269 test -z "$ac_dir" && ac_dir=.
2270 if test -f $ac_dir/${ac_tool_prefix}file; then
2271 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2272 if test -n "$file_magic_test_file"; then
2273 case $deplibs_check_method in
2275 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2277 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2278 egrep "$file_magic_regex" > /dev/null; then
2283 *** Warning: the command libtool uses to detect shared libraries,
2284 *** $file_magic_cmd, produces output that libtool cannot recognize.
2285 *** The result is that libtool may fail to recognize shared libraries
2286 *** as such. This will affect the creation of libtool libraries that
2287 *** depend on shared libraries, but programs linked with such libtool
2288 *** libraries will work regardless of this problem. Nevertheless, you
2289 *** may want to report the problem to your system manager and/or to
2290 *** bug-libtool@gnu.org
2300 MAGIC_CMD="$ac_save_MAGIC_CMD"
2305 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2306 if test -n "$MAGIC_CMD"; then
2307 echo "$ac_t""$MAGIC_CMD" 1>&6
2309 echo "$ac_t""no" 1>&6
2312 if test -z "$lt_cv_path_MAGIC_CMD"; then
2313 if test -n "$ac_tool_prefix"; then
2314 echo $ac_n "checking for file""... $ac_c" 1>&6
2315 echo "configure:2316: checking for file" >&5
2316 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2324 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2327 ac_save_MAGIC_CMD="$MAGIC_CMD"
2328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2329 ac_dummy="/usr/bin:$PATH"
2330 for ac_dir in $ac_dummy; do
2331 test -z "$ac_dir" && ac_dir=.
2332 if test -f $ac_dir/file; then
2333 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2334 if test -n "$file_magic_test_file"; then
2335 case $deplibs_check_method in
2337 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2339 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2340 egrep "$file_magic_regex" > /dev/null; then
2345 *** Warning: the command libtool uses to detect shared libraries,
2346 *** $file_magic_cmd, produces output that libtool cannot recognize.
2347 *** The result is that libtool may fail to recognize shared libraries
2348 *** as such. This will affect the creation of libtool libraries that
2349 *** depend on shared libraries, but programs linked with such libtool
2350 *** libraries will work regardless of this problem. Nevertheless, you
2351 *** may want to report the problem to your system manager and/or to
2352 *** bug-libtool@gnu.org
2362 MAGIC_CMD="$ac_save_MAGIC_CMD"
2367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2368 if test -n "$MAGIC_CMD"; then
2369 echo "$ac_t""$MAGIC_CMD" 1>&6
2371 echo "$ac_t""no" 1>&6
2383 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2384 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_word" >&5
2387 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 if test -n "$RANLIB"; then
2391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2395 for ac_dir in $ac_dummy; do
2396 test -z "$ac_dir" && ac_dir=.
2397 if test -f $ac_dir/$ac_word; then
2398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2405 RANLIB="$ac_cv_prog_RANLIB"
2406 if test -n "$RANLIB"; then
2407 echo "$ac_t""$RANLIB" 1>&6
2409 echo "$ac_t""no" 1>&6
2413 if test -z "$ac_cv_prog_RANLIB"; then
2414 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "ranlib", so it can be a program name with args.
2416 set dummy ranlib; ac_word=$2
2417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2418 echo "configure:2419: checking for $ac_word" >&5
2419 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2422 if test -n "$RANLIB"; then
2423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2427 for ac_dir in $ac_dummy; do
2428 test -z "$ac_dir" && ac_dir=.
2429 if test -f $ac_dir/$ac_word; then
2430 ac_cv_prog_RANLIB="ranlib"
2435 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2438 RANLIB="$ac_cv_prog_RANLIB"
2439 if test -n "$RANLIB"; then
2440 echo "$ac_t""$RANLIB" 1>&6
2442 echo "$ac_t""no" 1>&6
2450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}strip; ac_word=$2
2452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2453 echo "configure:2454: checking for $ac_word" >&5
2454 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 if test -n "$STRIP"; then
2458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2462 for ac_dir in $ac_dummy; do
2463 test -z "$ac_dir" && ac_dir=.
2464 if test -f $ac_dir/$ac_word; then
2465 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2472 STRIP="$ac_cv_prog_STRIP"
2473 if test -n "$STRIP"; then
2474 echo "$ac_t""$STRIP" 1>&6
2476 echo "$ac_t""no" 1>&6
2480 if test -z "$ac_cv_prog_STRIP"; then
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "strip", so it can be a program name with args.
2483 set dummy strip; ac_word=$2
2484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2485 echo "configure:2486: checking for $ac_word" >&5
2486 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 if test -n "$STRIP"; then
2490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2494 for ac_dir in $ac_dummy; do
2495 test -z "$ac_dir" && ac_dir=.
2496 if test -f $ac_dir/$ac_word; then
2497 ac_cv_prog_STRIP="strip"
2502 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2505 STRIP="$ac_cv_prog_STRIP"
2506 if test -n "$STRIP"; then
2507 echo "$ac_t""$STRIP" 1>&6
2509 echo "$ac_t""no" 1>&6
2518 # Check for any special flags to pass to ltconfig.
2519 libtool_flags="--cache-file=$cache_file"
2520 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2521 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2522 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2523 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2524 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2526 libtool_flags="$libtool_flags --enable-win32-dll"
2527 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2528 if test "${enable_libtool_lock+set}" = set; then
2529 enableval="$enable_libtool_lock"
2533 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2534 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2536 # Check whether --with-pic or --without-pic was given.
2537 if test "${with_pic+set}" = set; then
2544 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2545 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2547 # Some flags need to be propagated to the compiler or linker for good
2551 # Find out which ABI we are using.
2552 echo '#line 2553 "configure"' > conftest.$ac_ext
2553 if { (eval echo configure:2554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2554 case `/usr/bin/file conftest.$ac_objext` in
2570 # Find out which ABI we are using.
2571 echo 'int i;' > conftest.$ac_ext
2572 if { (eval echo configure:2573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2573 case "`/usr/bin/file conftest.o`" in
2586 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2587 SAVE_CFLAGS="$CFLAGS"
2588 CFLAGS="$CFLAGS -belf"
2589 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2590 echo "configure:2591: checking whether the C compiler needs -belf" >&5
2591 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2600 cross_compiling=$ac_cv_prog_cc_cross
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2610 if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2612 lt_cv_cc_needs_belf=yes
2614 echo "configure: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2617 lt_cv_cc_needs_belf=no
2621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2625 cross_compiling=$ac_cv_prog_cc_cross
2629 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2630 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2631 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2632 CFLAGS="$SAVE_CFLAGS"
2636 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
2637 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2638 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2640 echo "configure:2641: checking for $ac_word" >&5
2641 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 if test -n "$DLLTOOL"; then
2645 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2649 for ac_dir in $ac_dummy; do
2650 test -z "$ac_dir" && ac_dir=.
2651 if test -f $ac_dir/$ac_word; then
2652 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2659 DLLTOOL="$ac_cv_prog_DLLTOOL"
2660 if test -n "$DLLTOOL"; then
2661 echo "$ac_t""$DLLTOOL" 1>&6
2663 echo "$ac_t""no" 1>&6
2667 if test -z "$ac_cv_prog_DLLTOOL"; then
2668 if test -n "$ac_tool_prefix"; then
2669 # Extract the first word of "dlltool", so it can be a program name with args.
2670 set dummy dlltool; ac_word=$2
2671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_word" >&5
2673 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 if test -n "$DLLTOOL"; then
2677 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2681 for ac_dir in $ac_dummy; do
2682 test -z "$ac_dir" && ac_dir=.
2683 if test -f $ac_dir/$ac_word; then
2684 ac_cv_prog_DLLTOOL="dlltool"
2689 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2692 DLLTOOL="$ac_cv_prog_DLLTOOL"
2693 if test -n "$DLLTOOL"; then
2694 echo "$ac_t""$DLLTOOL" 1>&6
2696 echo "$ac_t""no" 1>&6
2704 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2705 set dummy ${ac_tool_prefix}as; ac_word=$2
2706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2707 echo "configure:2708: checking for $ac_word" >&5
2708 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 if test -n "$AS"; then
2712 ac_cv_prog_AS="$AS" # Let the user override the test.
2714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2716 for ac_dir in $ac_dummy; do
2717 test -z "$ac_dir" && ac_dir=.
2718 if test -f $ac_dir/$ac_word; then
2719 ac_cv_prog_AS="${ac_tool_prefix}as"
2727 if test -n "$AS"; then
2728 echo "$ac_t""$AS" 1>&6
2730 echo "$ac_t""no" 1>&6
2734 if test -z "$ac_cv_prog_AS"; then
2735 if test -n "$ac_tool_prefix"; then
2736 # Extract the first word of "as", so it can be a program name with args.
2737 set dummy as; ac_word=$2
2738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_word" >&5
2740 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 if test -n "$AS"; then
2744 ac_cv_prog_AS="$AS" # Let the user override the test.
2746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2748 for ac_dir in $ac_dummy; do
2749 test -z "$ac_dir" && ac_dir=.
2750 if test -f $ac_dir/$ac_word; then
2756 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2760 if test -n "$AS"; then
2761 echo "$ac_t""$AS" 1>&6
2763 echo "$ac_t""no" 1>&6
2771 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2774 echo "configure:2775: checking for $ac_word" >&5
2775 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 if test -n "$OBJDUMP"; then
2779 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2783 for ac_dir in $ac_dummy; do
2784 test -z "$ac_dir" && ac_dir=.
2785 if test -f $ac_dir/$ac_word; then
2786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2793 OBJDUMP="$ac_cv_prog_OBJDUMP"
2794 if test -n "$OBJDUMP"; then
2795 echo "$ac_t""$OBJDUMP" 1>&6
2797 echo "$ac_t""no" 1>&6
2801 if test -z "$ac_cv_prog_OBJDUMP"; then
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "objdump", so it can be a program name with args.
2804 set dummy objdump; ac_word=$2
2805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2806 echo "configure:2807: checking for $ac_word" >&5
2807 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 if test -n "$OBJDUMP"; then
2811 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2815 for ac_dir in $ac_dummy; do
2816 test -z "$ac_dir" && ac_dir=.
2817 if test -f $ac_dir/$ac_word; then
2818 ac_cv_prog_OBJDUMP="objdump"
2823 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2826 OBJDUMP="$ac_cv_prog_OBJDUMP"
2827 if test -n "$OBJDUMP"; then
2828 echo "$ac_t""$OBJDUMP" 1>&6
2830 echo "$ac_t""no" 1>&6
2839 # recent cygwin and mingw systems supply a stub DllMain which the user
2840 # can override, but on older systems we have to supply one
2841 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2842 echo "configure:2843: checking if libtool should supply DllMain function" >&5
2843 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 cat > conftest.$ac_ext <<EOF
2847 #line 2848 "configure"
2848 #include "confdefs.h"
2851 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2855 if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2857 lt_cv_need_dllmain=no
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2862 lt_cv_need_dllmain=yes
2867 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2870 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2871 # old mingw systems require "-dll" to link a DLL, while more recent ones
2873 SAVE_CFLAGS="$CFLAGS"
2874 CFLAGS="$CFLAGS -mdll"
2875 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2876 echo "configure:2877: checking how to link DLLs" >&5
2877 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2888 if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2890 lt_cv_cc_dll_switch=-mdll
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2895 lt_cv_cc_dll_switch=-dll
2900 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2901 CFLAGS="$SAVE_CFLAGS" ;;
2902 *-*-cygwin* | *-*-pw32*)
2903 # cygwin systems need to pass --dll to the linker, and not link
2904 # crt.o which will require a WinMain@16 definition.
2905 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2912 # Save cache, so that ltconfig can load it
2913 cat > confcache <<\EOF
2914 # This file is a shell script that caches the results of configure
2915 # tests run on this system so they can be shared between configure
2916 # scripts and configure runs. It is not useful on other systems.
2917 # If it contains results you don't want to keep, you may remove or edit it.
2919 # By default, configure uses ./config.cache as the cache file,
2920 # creating it if it does not exist already. You can give configure
2921 # the --cache-file=FILE option to use a different cache file; that is
2922 # what configure does when it calls configure scripts in
2923 # subdirectories, so they share the cache.
2924 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2925 # config.status only pays attention to the cache file if you give it the
2926 # --recheck option to rerun configure.
2929 # The following way of writing the cache mishandles newlines in values,
2930 # but we know of no workaround that is simple, portable, and efficient.
2931 # So, don't put newlines in cache variables' values.
2932 # Ultrix sh set writes to stderr and can't be redirected directly,
2933 # and sets the high bit in the cache file unless we assign to the vars.
2935 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2937 # `set' does not quote correctly, so add quotes (double-quote substitution
2938 # turns \\\\ into \\, and sed turns \\ into \).
2940 -e "s/'/'\\\\''/g" \
2941 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2944 # `set' quotes correctly as required by POSIX, so do not add quotes.
2945 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2948 if cmp -s $cache_file confcache; then
2951 if test -w $cache_file; then
2952 echo "updating cache $cache_file"
2953 cat confcache > $cache_file
2955 echo "not updating unwritable cache $cache_file"
2961 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2962 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2963 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2964 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2965 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2966 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2967 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2968 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2969 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2970 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2972 # Reload cache, that may have been modified by ltconfig
2973 if test -r "$cache_file"; then
2974 echo "loading cache $cache_file"
2977 echo "creating cache $cache_file"
2982 # This can be used to rebuild libtool when needed
2983 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2985 # Always use our own libtool.
2986 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2988 # Redirect the config.log output again, so that the ltconfig log is not
2989 # clobbered by the next message.
2990 exec 5>>./config.log
2997 for ac_prog in mawk gawk nawk awk
2999 # Extract the first word of "$ac_prog", so it can be a program name with args.
3000 set dummy $ac_prog; ac_word=$2
3001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_word" >&5
3003 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 if test -n "$AWK"; then
3007 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3011 for ac_dir in $ac_dummy; do
3012 test -z "$ac_dir" && ac_dir=.
3013 if test -f $ac_dir/$ac_word; then
3014 ac_cv_prog_AWK="$ac_prog"
3021 AWK="$ac_cv_prog_AWK"
3022 if test -n "$AWK"; then
3023 echo "$ac_t""$AWK" 1>&6
3025 echo "$ac_t""no" 1>&6
3028 test -n "$AWK" && break
3034 cat > confcache <<\EOF
3035 # This file is a shell script that caches the results of configure
3036 # tests run on this system so they can be shared between configure
3037 # scripts and configure runs. It is not useful on other systems.
3038 # If it contains results you don't want to keep, you may remove or edit it.
3040 # By default, configure uses ./config.cache as the cache file,
3041 # creating it if it does not exist already. You can give configure
3042 # the --cache-file=FILE option to use a different cache file; that is
3043 # what configure does when it calls configure scripts in
3044 # subdirectories, so they share the cache.
3045 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3046 # config.status only pays attention to the cache file if you give it the
3047 # --recheck option to rerun configure.
3050 # The following way of writing the cache mishandles newlines in values,
3051 # but we know of no workaround that is simple, portable, and efficient.
3052 # So, don't put newlines in cache variables' values.
3053 # Ultrix sh set writes to stderr and can't be redirected directly,
3054 # and sets the high bit in the cache file unless we assign to the vars.
3056 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3058 # `set' does not quote correctly, so add quotes (double-quote substitution
3059 # turns \\\\ into \\, and sed turns \\ into \).
3061 -e "s/'/'\\\\''/g" \
3062 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3065 # `set' quotes correctly as required by POSIX, so do not add quotes.
3066 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3069 if cmp -s $cache_file confcache; then
3072 if test -w $cache_file; then
3073 echo "updating cache $cache_file"
3074 cat confcache > $cache_file
3076 echo "not updating unwritable cache $cache_file"
3081 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3084 # Let make expand exec_prefix.
3085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3087 # Any assignment to VPATH causes Sun make to only execute
3088 # the first set of double-colon rules, so remove it if not needed.
3089 # If there is a colon in the path, we need to keep it.
3090 if test "x$srcdir" = x.; then
3091 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3094 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3096 # Transform confdefs.h into DEFS.
3097 # Protect against shell expansion while executing Makefile rules.
3098 # Protect against Makefile macro expansion.
3099 cat > conftest.defs <<\EOF
3100 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3101 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3106 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3110 # Without the "./", some shells look in PATH for config.status.
3111 : ${CONFIG_STATUS=./config.status}
3113 echo creating $CONFIG_STATUS
3114 rm -f $CONFIG_STATUS
3115 cat > $CONFIG_STATUS <<EOF
3117 # Generated automatically by configure.
3118 # Run this file to recreate the current configuration.
3119 # This directory was configured as follows,
3120 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3122 # $0 $ac_configure_args
3124 # Compiler output produced by configure, useful for debugging
3125 # configure, is in ./config.log if it exists.
3127 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3130 case "\$ac_option" in
3131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3132 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3133 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3134 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3135 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3137 -help | --help | --hel | --he | --h)
3138 echo "\$ac_cs_usage"; exit 0 ;;
3139 *) echo "\$ac_cs_usage"; exit 1 ;;
3143 ac_given_srcdir=$srcdir
3144 ac_given_INSTALL="$INSTALL"
3146 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3148 cat >> $CONFIG_STATUS <<EOF
3150 # Protect against being on the right side of a sed subst in config.status.
3151 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3152 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3156 s%@CFLAGS@%$CFLAGS%g
3157 s%@CPPFLAGS@%$CPPFLAGS%g
3158 s%@CXXFLAGS@%$CXXFLAGS%g
3159 s%@FFLAGS@%$FFLAGS%g
3161 s%@LDFLAGS@%$LDFLAGS%g
3163 s%@exec_prefix@%$exec_prefix%g
3164 s%@prefix@%$prefix%g
3165 s%@program_transform_name@%$program_transform_name%g
3166 s%@bindir@%$bindir%g
3167 s%@sbindir@%$sbindir%g
3168 s%@libexecdir@%$libexecdir%g
3169 s%@datadir@%$datadir%g
3170 s%@sysconfdir@%$sysconfdir%g
3171 s%@sharedstatedir@%$sharedstatedir%g
3172 s%@localstatedir@%$localstatedir%g
3173 s%@libdir@%$libdir%g
3174 s%@includedir@%$includedir%g
3175 s%@oldincludedir@%$oldincludedir%g
3176 s%@infodir@%$infodir%g
3177 s%@mandir@%$mandir%g
3178 s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
3179 s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
3180 s%@newlib_basedir@%$newlib_basedir%g
3182 s%@host_alias@%$host_alias%g
3183 s%@host_cpu@%$host_cpu%g
3184 s%@host_vendor@%$host_vendor%g
3185 s%@host_os@%$host_os%g
3186 s%@target@%$target%g
3187 s%@target_alias@%$target_alias%g
3188 s%@target_cpu@%$target_cpu%g
3189 s%@target_vendor@%$target_vendor%g
3190 s%@target_os@%$target_os%g
3192 s%@build_alias@%$build_alias%g
3193 s%@build_cpu@%$build_cpu%g
3194 s%@build_vendor@%$build_vendor%g
3195 s%@build_os@%$build_os%g
3196 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3197 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3198 s%@INSTALL_DATA@%$INSTALL_DATA%g
3199 s%@PACKAGE@%$PACKAGE%g
3200 s%@VERSION@%$VERSION%g
3201 s%@ACLOCAL@%$ACLOCAL%g
3202 s%@AUTOCONF@%$AUTOCONF%g
3203 s%@AUTOMAKE@%$AUTOMAKE%g
3204 s%@AUTOHEADER@%$AUTOHEADER%g
3205 s%@MAKEINFO@%$MAKEINFO%g
3206 s%@SET_MAKE@%$SET_MAKE%g
3210 s%@RANLIB@%$RANLIB%g
3211 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3212 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3214 s%@EXEEXT@%$EXEEXT%g
3215 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
3216 s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
3217 s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
3218 s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
3219 s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
3220 s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
3221 s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
3222 s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
3223 s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
3224 s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
3225 s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
3226 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
3227 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
3228 s%@OBJEXT@%$OBJEXT%g
3231 s%@libm_machine_dir@%$libm_machine_dir%g
3232 s%@machine_dir@%$machine_dir%g
3233 s%@sys_dir@%$sys_dir%g
3236 s%@DLLTOOL@%$DLLTOOL%g
3237 s%@OBJDUMP@%$OBJDUMP%g
3238 s%@LIBTOOL@%$LIBTOOL%g
3244 cat >> $CONFIG_STATUS <<\EOF
3246 # Split the substitutions into bite-sized pieces for seds with
3247 # small command number limits, like on Digital OSF/1 and HP-UX.
3248 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
3249 ac_file=1 # Number of current file.
3250 ac_beg=1 # First line for current file.
3251 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3254 while $ac_more_lines; do
3255 if test $ac_beg -gt 1; then
3256 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3258 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3260 if test ! -s conftest.s$ac_file; then
3262 rm -f conftest.s$ac_file
3264 if test -z "$ac_sed_cmds"; then
3265 ac_sed_cmds="sed -f conftest.s$ac_file"
3267 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3269 ac_file=`expr $ac_file + 1`
3271 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3274 if test -z "$ac_sed_cmds"; then
3279 cat >> $CONFIG_STATUS <<EOF
3281 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3283 cat >> $CONFIG_STATUS <<\EOF
3284 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3287 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3288 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3289 *) ac_file_in="${ac_file}.in" ;;
3292 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3294 # Remove last slash and all that follows it. Not all systems have dirname.
3295 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3296 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3297 # The file is in a subdirectory.
3298 test ! -d "$ac_dir" && mkdir "$ac_dir"
3299 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3300 # A "../" for each directory in $ac_dir_suffix.
3301 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3303 ac_dir_suffix= ac_dots=
3306 case "$ac_given_srcdir" in
3308 if test -z "$ac_dots"; then top_srcdir=.
3309 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3310 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3312 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3313 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3316 case "$ac_given_INSTALL" in
3317 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3318 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3321 echo creating "$ac_file"
3323 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3325 *Makefile*) ac_comsub="1i\\
3326 # $configure_input" ;;
3330 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3332 s%@configure_input@%$configure_input%g
3333 s%@srcdir@%$srcdir%g
3334 s%@top_srcdir@%$top_srcdir%g
3335 s%@INSTALL@%$INSTALL%g
3336 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3341 cat >> $CONFIG_STATUS <<EOF
3344 cat >> $CONFIG_STATUS <<\EOF
3348 chmod +x $CONFIG_STATUS
3349 rm -fr confdefs* $ac_clean_files
3350 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1