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-maintainer-mode enable make rules and dependencies not useful
24 (and sometimes confusing) to the casual installer"
26 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 --enable-static[=PKGS] build static libraries [default=yes]"
30 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 --disable-libtool-lock avoid locking (might break parallel builds)"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file=./config.cache
49 program_transform_name=s,x,x,
58 bindir='${exec_prefix}/bin'
59 sbindir='${exec_prefix}/sbin'
60 libexecdir='${exec_prefix}/libexec'
61 datadir='${prefix}/share'
62 sysconfdir='${prefix}/etc'
63 sharedstatedir='${prefix}/com'
64 localstatedir='${prefix}/var'
65 libdir='${exec_prefix}/lib'
66 includedir='${prefix}/include'
67 oldincludedir='/usr/include'
68 infodir='${prefix}/info'
69 mandir='${prefix}/man'
71 # Initialize some other variables.
74 SHELL=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir | --bindir | --bindi | --bind | --bin | --bi)
100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101 bindir="$ac_optarg" ;;
103 -build | --build | --buil | --bui | --bu)
105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106 build="$ac_optarg" ;;
108 -cache-file | --cache-file | --cache-fil | --cache-fi \
109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110 ac_prev=cache_file ;;
111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113 cache_file="$ac_optarg" ;;
115 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
117 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
119 datadir="$ac_optarg" ;;
121 -disable-* | --disable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* | --enable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145 | --exec | --exe | --ex)
146 ac_prev=exec_prefix ;;
147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149 | --exec=* | --exe=* | --ex=*)
150 exec_prefix="$ac_optarg" ;;
152 -gas | --gas | --ga | --g)
153 # Obsolete; use --with-gas.
156 -help | --help | --hel | --he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --site-file=FILE use FILE as the site file
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -site-file | --site-file | --site-fil | --site-fi | --site-f)
340 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
341 sitefile="$ac_optarg" ;;
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=a29khif
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$sitefile"; then
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 CONFIG_SITE="$sitefile"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
558 for ac_dir in ../../.. $srcdir/../../..; do
559 if test -f $ac_dir/install-sh; then
561 ac_install_sh="$ac_aux_dir/install-sh -c"
563 elif test -f $ac_dir/install.sh; then
565 ac_install_sh="$ac_aux_dir/install.sh -c"
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; }
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Find a good install program. We prefer a C program (faster),
578 # so one script is as good as another. But avoid the broken or
579 # incompatible versions:
580 # SysV /etc/install, /usr/sbin/install
581 # SunOS /usr/etc/install
584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
587 # ./install, which can be erroneously created by make from ./install.sh.
588 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
589 echo "configure:590: checking for a BSD compatible install" >&5
590 if test -z "$INSTALL"; then
591 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
595 for ac_dir in $PATH; do
596 # Account for people who put trailing slashes in PATH elements.
598 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
600 # OSF1 and SCO ODT 3.0 have their own names for install.
601 # Don't use installbsd from OSF since it installs stuff as root
603 for ac_prog in ginstall scoinst install; do
604 if test -f $ac_dir/$ac_prog; then
605 if test $ac_prog = install &&
606 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
607 # AIX install. It has an incompatible calling convention.
610 ac_cv_path_install="$ac_dir/$ac_prog -c"
621 if test "${ac_cv_path_install+set}" = set; then
622 INSTALL="$ac_cv_path_install"
624 # As a last resort, use the slow shell script. We don't cache a
625 # path for INSTALL within a source directory, because that will
626 # break other packages using the cache if that directory is
627 # removed, or if the path is relative.
628 INSTALL="$ac_install_sh"
631 echo "$ac_t""$INSTALL" 1>&6
633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
634 # It thinks the first close brace ends the variable substitution.
635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
637 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
639 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
641 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
642 echo "configure:643: checking whether build environment is sane" >&5
645 echo timestamp > conftestfile
646 # Do `set' in a subshell so we don't clobber the current shell's
647 # arguments. Must try -L first in case configure is actually a
648 # symlink; some systems play weird games with the mod time of symlinks
649 # (eg FreeBSD returns the mod time of the symlink's containing
652 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
653 if test "$*" = "X"; then
655 set X `ls -t $srcdir/configure conftestfile`
657 if test "$*" != "X $srcdir/configure conftestfile" \
658 && test "$*" != "X conftestfile $srcdir/configure"; then
660 # If neither matched, then we have a broken ls. This can happen
661 # if, for instance, CONFIG_SHELL is bash and it inherits a
662 # broken ls alias from the environment. This has actually
663 # happened. Such a system could not be considered "sane".
664 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
665 alias in your environment" 1>&2; exit 1; }
668 test "$2" = conftestfile
674 { echo "configure: error: newly created file is older than distributed files!
675 Check your system clock" 1>&2; exit 1; }
678 echo "$ac_t""yes" 1>&6
679 if test "$program_transform_name" = s,x,x,; then
680 program_transform_name=
682 # Double any \ or $. echo might interpret backslashes.
683 cat <<\EOF_SED > conftestsed
684 s,\\,\\\\,g; s,\$,$$,g
686 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
689 test "$program_prefix" != NONE &&
690 program_transform_name="s,^,${program_prefix},; $program_transform_name"
691 # Use a double $ so make ignores it.
692 test "$program_suffix" != NONE &&
693 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
695 # sed with no file args requires a program.
696 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
698 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
699 echo "configure:700: checking whether ${MAKE-make} sets \${MAKE}" >&5
700 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
701 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 cat > conftestmake <<\EOF
706 @echo 'ac_maketemp="${MAKE}"'
708 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
709 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
710 if test -n "$ac_maketemp"; then
711 eval ac_cv_prog_make_${ac_make}_set=yes
713 eval ac_cv_prog_make_${ac_make}_set=no
717 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
718 echo "$ac_t""yes" 1>&6
721 echo "$ac_t""no" 1>&6
722 SET_MAKE="MAKE=${MAKE-make}"
725 if test $host != $build; then
726 ac_tool_prefix=${host_alias}-
731 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
732 echo "configure:733: checking for Cygwin environment" >&5
733 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 cat > conftest.$ac_ext <<EOF
737 #line 738 "configure"
738 #include "confdefs.h"
743 #define __CYGWIN__ __CYGWIN32__
748 if { (eval echo configure:749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
752 echo "configure: failed program was:" >&5
753 cat conftest.$ac_ext >&5
761 echo "$ac_t""$ac_cv_cygwin" 1>&6
763 test "$ac_cv_cygwin" = yes && CYGWIN=yes
764 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
765 echo "configure:766: checking for mingw32 environment" >&5
766 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 cat > conftest.$ac_ext <<EOF
770 #line 771 "configure"
771 #include "confdefs.h"
777 if { (eval echo configure:778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
790 echo "$ac_t""$ac_cv_mingw32" 1>&6
792 test "$ac_cv_mingw32" = yes && MINGW32=yes
794 # Check whether --enable-multilib or --disable-multilib was given.
795 if test "${enable_multilib+set}" = set; then
796 enableval="$enable_multilib"
797 case "${enableval}" in
800 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
806 # Check whether --enable-target-optspace or --disable-target-optspace was given.
807 if test "${enable_target_optspace+set}" = set; then
808 enableval="$enable_target_optspace"
809 case "${enableval}" in
810 yes) target_optspace=yes ;;
811 no) target_optspace=no ;;
812 *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
818 # Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
819 if test "${enable_malloc_debugging+set}" = set; then
820 enableval="$enable_malloc_debugging"
821 case "${enableval}" in
822 yes) malloc_debugging=yes ;;
823 no) malloc_debugging=no ;;
824 *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
830 # Check whether --enable-newlib-mb or --disable-newlib-mb was given.
831 if test "${enable_newlib_mb+set}" = set; then
832 enableval="$enable_newlib_mb"
833 case "${enableval}" in
834 yes) newlib_mb=yes ;;
836 *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
843 test -z "${with_target_subdir}" && with_target_subdir=.
845 if test "${srcdir}" = "."; then
846 if test "${with_target_subdir}" != "."; then
847 newlib_basedir="${srcdir}/${with_multisrctop}../../.."
849 newlib_basedir="${srcdir}/${with_multisrctop}../.."
852 newlib_basedir="${srcdir}/../.."
857 # Make sure we can run config.sub.
858 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
859 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
862 echo $ac_n "checking host system type""... $ac_c" 1>&6
863 echo "configure:864: checking host system type" >&5
866 case "$host_alias" in
870 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
871 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
873 *) host_alias=$nonopt ;;
877 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
878 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
879 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
880 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
881 echo "$ac_t""$host" 1>&6
889 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
890 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
892 cat >> confdefs.h <<EOF
893 #define PACKAGE "$PACKAGE"
896 cat >> confdefs.h <<EOF
897 #define VERSION "$VERSION"
902 missing_dir=`cd $ac_aux_dir && pwd`
903 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
904 echo "configure:905: checking for working aclocal" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf. Sigh.
908 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
910 echo "$ac_t""found" 1>&6
912 ACLOCAL="$missing_dir/missing aclocal"
913 echo "$ac_t""missing" 1>&6
916 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
917 echo "configure:918: checking for working autoconf" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf. Sigh.
921 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
923 echo "$ac_t""found" 1>&6
925 AUTOCONF="$missing_dir/missing autoconf"
926 echo "$ac_t""missing" 1>&6
929 echo $ac_n "checking for working automake""... $ac_c" 1>&6
930 echo "configure:931: checking for working automake" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf. Sigh.
934 if (automake --version) < /dev/null > /dev/null 2>&1; then
936 echo "$ac_t""found" 1>&6
938 AUTOMAKE="$missing_dir/missing automake"
939 echo "$ac_t""missing" 1>&6
942 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
943 echo "configure:944: checking for working autoheader" >&5
944 # Run test in a subshell; some versions of sh will print an error if
945 # an executable is not found, even if stderr is redirected.
946 # Redirect stdin to placate older versions of autoconf. Sigh.
947 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
948 AUTOHEADER=autoheader
949 echo "$ac_t""found" 1>&6
951 AUTOHEADER="$missing_dir/missing autoheader"
952 echo "$ac_t""missing" 1>&6
955 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
956 echo "configure:957: checking for working makeinfo" >&5
957 # Run test in a subshell; some versions of sh will print an error if
958 # an executable is not found, even if stderr is redirected.
959 # Redirect stdin to placate older versions of autoconf. Sigh.
960 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
962 echo "$ac_t""found" 1>&6
964 MAKEINFO="$missing_dir/missing makeinfo"
965 echo "$ac_t""missing" 1>&6
970 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
971 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
972 # are probably using a cross compiler, which will not be able to fully
973 # link an executable. This should really be fixed in autoconf
978 # Extract the first word of "gcc", so it can be a program name with args.
979 set dummy gcc; ac_word=$2
980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
981 echo "configure:982: checking for $ac_word" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 if test -n "$CC"; then
986 ac_cv_prog_CC="$CC" # Let the user override the test.
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
990 for ac_dir in $ac_dummy; do
991 test -z "$ac_dir" && ac_dir=.
992 if test -f $ac_dir/$ac_word; then
1001 if test -n "$CC"; then
1002 echo "$ac_t""$CC" 1>&6
1004 echo "$ac_t""no" 1>&6
1007 if test -z "$CC"; then
1008 # Extract the first word of "cc", so it can be a program name with args.
1009 set dummy cc; ac_word=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 if test -n "$CC"; then
1016 ac_cv_prog_CC="$CC" # Let the user override the test.
1018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1021 for ac_dir in $ac_dummy; do
1022 test -z "$ac_dir" && ac_dir=.
1023 if test -f $ac_dir/$ac_word; then
1024 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1025 ac_prog_rejected=yes
1033 if test $ac_prog_rejected = yes; then
1034 # We found a bogon in the path, so make sure we never use it.
1035 set dummy $ac_cv_prog_CC
1037 if test $# -gt 0; then
1038 # We chose a different compiler from the bogus one.
1039 # However, it has the same basename, so the bogon will be chosen
1040 # first if we set CC to just the basename; use the full file name.
1042 set dummy "$ac_dir/$ac_word" "$@"
1050 if test -n "$CC"; then
1051 echo "$ac_t""$CC" 1>&6
1053 echo "$ac_t""no" 1>&6
1056 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1059 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1060 echo "configure:1061: checking whether we are using GNU C" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 cat > conftest.c <<EOF
1069 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1076 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1078 if test $ac_cv_prog_gcc = yes; then
1080 ac_test_CFLAGS="${CFLAGS+set}"
1081 ac_save_CFLAGS="$CFLAGS"
1083 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1084 echo "configure:1085: checking whether ${CC-cc} accepts -g" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 echo 'void f(){}' > conftest.c
1089 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1098 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1099 if test "$ac_test_CFLAGS" = set; then
1100 CFLAGS="$ac_save_CFLAGS"
1101 elif test $ac_cv_prog_cc_g = yes; then
1108 test "${CFLAGS+set}" = set || CFLAGS="-g"
1112 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1113 # run it explicitly here, it will be run implicitly before
1114 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1115 # be run before AC_CANONICAL_HOST.
1116 echo $ac_n "checking build system type""... $ac_c" 1>&6
1117 echo "configure:1118: checking build system type" >&5
1120 case "$build_alias" in
1123 NONE) build_alias=$host_alias ;;
1124 *) build_alias=$nonopt ;;
1128 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1129 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1130 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1131 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1132 echo "$ac_t""$build" 1>&6
1135 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1136 set dummy ${ac_tool_prefix}as; ac_word=$2
1137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1138 echo "configure:1139: checking for $ac_word" >&5
1139 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1142 if test -n "$AS"; then
1143 ac_cv_prog_AS="$AS" # Let the user override the test.
1145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1147 for ac_dir in $ac_dummy; do
1148 test -z "$ac_dir" && ac_dir=.
1149 if test -f $ac_dir/$ac_word; then
1150 ac_cv_prog_AS="${ac_tool_prefix}as"
1155 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1159 if test -n "$AS"; then
1160 echo "$ac_t""$AS" 1>&6
1162 echo "$ac_t""no" 1>&6
1167 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1168 set dummy ${ac_tool_prefix}ar; ac_word=$2
1169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1170 echo "configure:1171: checking for $ac_word" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 if test -n "$AR"; then
1175 ac_cv_prog_AR="$AR" # Let the user override the test.
1177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1179 for ac_dir in $ac_dummy; do
1180 test -z "$ac_dir" && ac_dir=.
1181 if test -f $ac_dir/$ac_word; then
1182 ac_cv_prog_AR="${ac_tool_prefix}ar"
1187 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1191 if test -n "$AR"; then
1192 echo "$ac_t""$AR" 1>&6
1194 echo "$ac_t""no" 1>&6
1199 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1200 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1202 echo "configure:1203: checking for $ac_word" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 if test -n "$RANLIB"; then
1207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1211 for ac_dir in $ac_dummy; do
1212 test -z "$ac_dir" && ac_dir=.
1213 if test -f $ac_dir/$ac_word; then
1214 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1221 RANLIB="$ac_cv_prog_RANLIB"
1222 if test -n "$RANLIB"; then
1223 echo "$ac_t""$RANLIB" 1>&6
1225 echo "$ac_t""no" 1>&6
1229 if test -z "$ac_cv_prog_RANLIB"; then
1230 if test -n "$ac_tool_prefix"; then
1231 # Extract the first word of "ranlib", so it can be a program name with args.
1232 set dummy ranlib; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 if test -n "$RANLIB"; then
1239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1243 for ac_dir in $ac_dummy; do
1244 test -z "$ac_dir" && ac_dir=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_RANLIB="ranlib"
1251 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1254 RANLIB="$ac_cv_prog_RANLIB"
1255 if test -n "$RANLIB"; then
1256 echo "$ac_t""$RANLIB" 1>&6
1258 echo "$ac_t""no" 1>&6
1267 # Find a good install program. We prefer a C program (faster),
1268 # so one script is as good as another. But avoid the broken or
1269 # incompatible versions:
1270 # SysV /etc/install, /usr/sbin/install
1271 # SunOS /usr/etc/install
1272 # IRIX /sbin/install
1274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1277 # ./install, which can be erroneously created by make from ./install.sh.
1278 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1279 echo "configure:1280: checking for a BSD compatible install" >&5
1280 if test -z "$INSTALL"; then
1281 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1285 for ac_dir in $PATH; do
1286 # Account for people who put trailing slashes in PATH elements.
1288 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1290 # OSF1 and SCO ODT 3.0 have their own names for install.
1291 # Don't use installbsd from OSF since it installs stuff as root
1293 for ac_prog in ginstall scoinst install; do
1294 if test -f $ac_dir/$ac_prog; then
1295 if test $ac_prog = install &&
1296 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1297 # AIX install. It has an incompatible calling convention.
1300 ac_cv_path_install="$ac_dir/$ac_prog -c"
1311 if test "${ac_cv_path_install+set}" = set; then
1312 INSTALL="$ac_cv_path_install"
1314 # As a last resort, use the slow shell script. We don't cache a
1315 # path for INSTALL within a source directory, because that will
1316 # break other packages using the cache if that directory is
1317 # removed, or if the path is relative.
1318 INSTALL="$ac_install_sh"
1321 echo "$ac_t""$INSTALL" 1>&6
1323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1324 # It thinks the first close brace ends the variable substitution.
1325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1329 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1332 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1333 echo "configure:1334: checking whether to enable maintainer-specific portions of Makefiles" >&5
1334 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1335 if test "${enable_maintainer_mode+set}" = set; then
1336 enableval="$enable_maintainer_mode"
1337 USE_MAINTAINER_MODE=$enableval
1339 USE_MAINTAINER_MODE=no
1342 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1345 if test $USE_MAINTAINER_MODE = yes; then
1346 MAINTAINER_MODE_TRUE=
1347 MAINTAINER_MODE_FALSE='#'
1349 MAINTAINER_MODE_TRUE='#'
1350 MAINTAINER_MODE_FALSE=
1352 MAINT=$MAINTAINER_MODE_TRUE
1356 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1357 # at least currently, we never actually build a program, so we never
1358 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1359 # fails, because we are probably configuring with a cross compiler
1360 # which can't create executables. So we include AC_EXEEXT to keep
1361 # automake happy, but we don't execute it, since we don't care about
1366 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1367 echo "configure:1368: checking for executable suffix" >&5
1368 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1375 echo 'int main () { return 0; }' > conftest.$ac_ext
1377 if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1378 for file in conftest.*; do
1380 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1381 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1385 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1388 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1393 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1394 echo "$ac_t""${ac_cv_exeext}" 1>&6
1399 . ${newlib_basedir}/configure.host
1401 case ${newlib_basedir} in
1402 /* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1403 *) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1406 newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../targ-include -I${newlib_flagbasedir}/libc/include"
1409 newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/cygwin/include -I${newlib_flagbasedir}/../winsup/w32api/include"
1413 newlib_cflags="${newlib_cflags} -fno-builtin"
1415 NEWLIB_CFLAGS=${newlib_cflags}
1423 if test x${use_libtool} = xyes; then
1425 USE_LIBTOOL_FALSE='#'
1427 USE_LIBTOOL_TRUE='#'
1438 if test "${use_libtool}" = "yes"; then
1440 # Check whether --enable-shared or --disable-shared was given.
1441 if test "${enable_shared+set}" = set; then
1442 enableval="$enable_shared"
1443 p=${PACKAGE-default}
1444 case "$enableval" in
1445 yes) enable_shared=yes ;;
1446 no) enable_shared=no ;;
1449 # Look at the argument we got. We use all the common list separators.
1450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1451 for pkg in $enableval; do
1452 if test "X$pkg" = "X$p"; then
1463 # Check whether --enable-static or --disable-static was given.
1464 if test "${enable_static+set}" = set; then
1465 enableval="$enable_static"
1466 p=${PACKAGE-default}
1467 case "$enableval" in
1468 yes) enable_static=yes ;;
1469 no) enable_static=no ;;
1472 # Look at the argument we got. We use all the common list separators.
1473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1474 for pkg in $enableval; do
1475 if test "X$pkg" = "X$p"; then
1486 # Check whether --enable-fast-install or --disable-fast-install was given.
1487 if test "${enable_fast_install+set}" = set; then
1488 enableval="$enable_fast_install"
1489 p=${PACKAGE-default}
1490 case "$enableval" in
1491 yes) enable_fast_install=yes ;;
1492 no) enable_fast_install=no ;;
1494 enable_fast_install=no
1495 # Look at the argument we got. We use all the common list separators.
1496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1497 for pkg in $enableval; do
1498 if test "X$pkg" = "X$p"; then
1499 enable_fast_install=yes
1506 enable_fast_install=yes
1509 # Extract the first word of "ranlib", so it can be a program name with args.
1510 set dummy ranlib; ac_word=$2
1511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1512 echo "configure:1513: checking for $ac_word" >&5
1513 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 if test -n "$RANLIB"; then
1517 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1521 for ac_dir in $ac_dummy; do
1522 test -z "$ac_dir" && ac_dir=.
1523 if test -f $ac_dir/$ac_word; then
1524 ac_cv_prog_RANLIB="ranlib"
1529 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1532 RANLIB="$ac_cv_prog_RANLIB"
1533 if test -n "$RANLIB"; then
1534 echo "$ac_t""$RANLIB" 1>&6
1536 echo "$ac_t""no" 1>&6
1539 # Extract the first word of "gcc", so it can be a program name with args.
1540 set dummy gcc; ac_word=$2
1541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542 echo "configure:1543: checking for $ac_word" >&5
1543 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1549 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1551 for ac_dir in $ac_dummy; do
1552 test -z "$ac_dir" && ac_dir=.
1553 if test -f $ac_dir/$ac_word; then
1562 if test -n "$CC"; then
1563 echo "$ac_t""$CC" 1>&6
1565 echo "$ac_t""no" 1>&6
1568 if test -z "$CC"; then
1569 # Extract the first word of "cc", so it can be a program name with args.
1570 set dummy cc; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 if test -n "$CC"; then
1577 ac_cv_prog_CC="$CC" # Let the user override the test.
1579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1582 for ac_dir in $ac_dummy; do
1583 test -z "$ac_dir" && ac_dir=.
1584 if test -f $ac_dir/$ac_word; then
1585 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1586 ac_prog_rejected=yes
1594 if test $ac_prog_rejected = yes; then
1595 # We found a bogon in the path, so make sure we never use it.
1596 set dummy $ac_cv_prog_CC
1598 if test $# -gt 0; then
1599 # We chose a different compiler from the bogus one.
1600 # However, it has the same basename, so the bogon will be chosen
1601 # first if we set CC to just the basename; use the full file name.
1603 set dummy "$ac_dir/$ac_word" "$@"
1611 if test -n "$CC"; then
1612 echo "$ac_t""$CC" 1>&6
1614 echo "$ac_t""no" 1>&6
1617 if test -z "$CC"; then
1618 case "`uname -s`" in
1620 # Extract the first word of "cl", so it can be a program name with args.
1621 set dummy cl; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1632 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 if test -f $ac_dir/$ac_word; then
1643 if test -n "$CC"; then
1644 echo "$ac_t""$CC" 1>&6
1646 echo "$ac_t""no" 1>&6
1651 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1654 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1655 echo "configure:1656: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1658 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1659 ac_cpp='$CPP $CPPFLAGS'
1660 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1661 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1662 cross_compiling=$ac_cv_prog_cc_cross
1664 cat > conftest.$ac_ext << EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1671 if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1672 ac_cv_prog_cc_works=yes
1673 # If we can't run a trivial program, we are probably using a cross compiler.
1674 if (./conftest; exit) 2>/dev/null; then
1675 ac_cv_prog_cc_cross=no
1677 ac_cv_prog_cc_cross=yes
1680 echo "configure: failed program was:" >&5
1681 cat conftest.$ac_ext >&5
1682 ac_cv_prog_cc_works=no
1686 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1687 ac_cpp='$CPP $CPPFLAGS'
1688 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1689 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1690 cross_compiling=$ac_cv_prog_cc_cross
1692 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1693 if test $ac_cv_prog_cc_works = no; then
1694 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1696 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1697 echo "configure:1698: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1698 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1699 cross_compiling=$ac_cv_prog_cc_cross
1701 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1702 echo "configure:1703: checking whether we are using GNU C" >&5
1703 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 cat > conftest.c <<EOF
1711 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1718 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1720 if test $ac_cv_prog_gcc = yes; then
1726 ac_test_CFLAGS="${CFLAGS+set}"
1727 ac_save_CFLAGS="$CFLAGS"
1729 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1730 echo "configure:1731: checking whether ${CC-cc} accepts -g" >&5
1731 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 echo 'void f(){}' > conftest.c
1735 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1744 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1745 if test "$ac_test_CFLAGS" = set; then
1746 CFLAGS="$ac_save_CFLAGS"
1747 elif test $ac_cv_prog_cc_g = yes; then
1748 if test "$GCC" = yes; then
1754 if test "$GCC" = yes; then
1761 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1762 if test "${with_gnu_ld+set}" = set; then
1763 withval="$with_gnu_ld"
1764 test "$withval" = no || with_gnu_ld=yes
1770 if test "$ac_cv_prog_gcc" = yes; then
1771 # Check if gcc -print-prog-name=ld gives a path.
1772 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1773 echo "configure:1774: checking for ld used by GCC" >&5
1774 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1776 # Accept absolute paths.
1777 [\\/]* | [A-Za-z]:[\\/]*)
1778 re_direlt='/[^/][^/]*/\.\./'
1779 # Canonicalize the path of ld
1780 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1781 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1782 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1784 test -z "$LD" && LD="$ac_prog"
1787 # If it fails, then pretend we aren't using GCC.
1791 # If it is relative, then search for the first ld in PATH.
1795 elif test "$with_gnu_ld" = yes; then
1796 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1797 echo "configure:1798: checking for GNU ld" >&5
1799 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1800 echo "configure:1801: checking for non-GNU ld" >&5
1802 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 if test -z "$LD"; then
1806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1807 for ac_dir in $PATH; do
1808 test -z "$ac_dir" && ac_dir=.
1809 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1810 ac_cv_path_LD="$ac_dir/$ac_prog"
1811 # Check to see if the program is GNU ld. I'd rather use --version,
1812 # but apparently some GNU ld's only accept -v.
1813 # Break only if it was the GNU/non-GNU ld that we prefer.
1814 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1815 test "$with_gnu_ld" != no && break
1817 test "$with_gnu_ld" != yes && break
1823 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1828 if test -n "$LD"; then
1829 echo "$ac_t""$LD" 1>&6
1831 echo "$ac_t""no" 1>&6
1833 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1834 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1835 echo "configure:1836: checking if the linker ($LD) is GNU ld" >&5
1836 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1840 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1841 ac_cv_prog_gnu_ld=yes
1843 ac_cv_prog_gnu_ld=no
1847 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1850 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1851 echo "configure:1852: checking for BSD-compatible nm" >&5
1852 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 if test -n "$NM"; then
1856 # Let the user override the test.
1859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1860 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1861 test -z "$ac_dir" && ac_dir=.
1862 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1863 # Check to see if the nm accepts a BSD-compat flag.
1864 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1865 # nm: unknown option "B" ignored
1866 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1867 ac_cv_path_NM="$ac_dir/nm -B"
1869 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1870 ac_cv_path_NM="$ac_dir/nm -p"
1873 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1874 continue # so that we can try to find one that supports BSD flags
1879 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1884 echo "$ac_t""$NM" 1>&6
1886 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1887 echo "configure:1888: checking whether ln -s works" >&5
1888 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1892 if ln -s X conftestdata 2>/dev/null
1895 ac_cv_prog_LN_S="ln -s"
1900 LN_S="$ac_cv_prog_LN_S"
1901 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1902 echo "$ac_t""yes" 1>&6
1904 echo "$ac_t""no" 1>&6
1908 # Check for any special flags to pass to ltconfig.
1909 libtool_flags="--cache-file=$cache_file"
1910 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1911 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1912 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1913 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1914 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1916 libtool_flags="$libtool_flags --enable-win32-dll"
1917 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1918 if test "${enable_libtool_lock+set}" = set; then
1919 enableval="$enable_libtool_lock"
1923 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1924 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1926 # Some flags need to be propagated to the compiler or linker for good
1930 # Find out which ABI we are using.
1931 echo '#line 1932 "configure"' > conftest.$ac_ext
1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1933 case "`/usr/bin/file conftest.o`" in
1949 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1950 SAVE_CFLAGS="$CFLAGS"
1951 CFLAGS="$CFLAGS -belf"
1952 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether the C compiler needs -belf" >&5
1954 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1965 if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1967 lt_cv_cc_needs_belf=yes
1969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1972 lt_cv_cc_needs_belf=no
1977 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1978 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1979 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1980 CFLAGS="$SAVE_CFLAGS"
1984 *-*-cygwin* | *-*-mingw*)
1985 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1986 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988 echo "configure:1989: checking for $ac_word" >&5
1989 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 if test -n "$DLLTOOL"; then
1993 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1997 for ac_dir in $ac_dummy; do
1998 test -z "$ac_dir" && ac_dir=.
1999 if test -f $ac_dir/$ac_word; then
2000 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2007 DLLTOOL="$ac_cv_prog_DLLTOOL"
2008 if test -n "$DLLTOOL"; then
2009 echo "$ac_t""$DLLTOOL" 1>&6
2011 echo "$ac_t""no" 1>&6
2015 if test -z "$ac_cv_prog_DLLTOOL"; then
2016 if test -n "$ac_tool_prefix"; then
2017 # Extract the first word of "dlltool", so it can be a program name with args.
2018 set dummy dlltool; ac_word=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5
2021 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 if test -n "$DLLTOOL"; then
2025 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2029 for ac_dir in $ac_dummy; do
2030 test -z "$ac_dir" && ac_dir=.
2031 if test -f $ac_dir/$ac_word; then
2032 ac_cv_prog_DLLTOOL="dlltool"
2037 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2040 DLLTOOL="$ac_cv_prog_DLLTOOL"
2041 if test -n "$DLLTOOL"; then
2042 echo "$ac_t""$DLLTOOL" 1>&6
2044 echo "$ac_t""no" 1>&6
2052 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}as; ac_word=$2
2054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2055 echo "configure:2056: checking for $ac_word" >&5
2056 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2059 if test -n "$AS"; then
2060 ac_cv_prog_AS="$AS" # Let the user override the test.
2062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2064 for ac_dir in $ac_dummy; do
2065 test -z "$ac_dir" && ac_dir=.
2066 if test -f $ac_dir/$ac_word; then
2067 ac_cv_prog_AS="${ac_tool_prefix}as"
2075 if test -n "$AS"; then
2076 echo "$ac_t""$AS" 1>&6
2078 echo "$ac_t""no" 1>&6
2082 if test -z "$ac_cv_prog_AS"; then
2083 if test -n "$ac_tool_prefix"; then
2084 # Extract the first word of "as", so it can be a program name with args.
2085 set dummy as; ac_word=$2
2086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2087 echo "configure:2088: checking for $ac_word" >&5
2088 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 if test -n "$AS"; then
2092 ac_cv_prog_AS="$AS" # Let the user override the test.
2094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2096 for ac_dir in $ac_dummy; do
2097 test -z "$ac_dir" && ac_dir=.
2098 if test -f $ac_dir/$ac_word; then
2104 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2108 if test -n "$AS"; then
2109 echo "$ac_t""$AS" 1>&6
2111 echo "$ac_t""no" 1>&6
2119 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2120 set dummy ${ac_tool_prefix}objdump; ac_word=$2
2121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2122 echo "configure:2123: checking for $ac_word" >&5
2123 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 if test -n "$OBJDUMP"; then
2127 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2131 for ac_dir in $ac_dummy; do
2132 test -z "$ac_dir" && ac_dir=.
2133 if test -f $ac_dir/$ac_word; then
2134 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2141 OBJDUMP="$ac_cv_prog_OBJDUMP"
2142 if test -n "$OBJDUMP"; then
2143 echo "$ac_t""$OBJDUMP" 1>&6
2145 echo "$ac_t""no" 1>&6
2149 if test -z "$ac_cv_prog_OBJDUMP"; then
2150 if test -n "$ac_tool_prefix"; then
2151 # Extract the first word of "objdump", so it can be a program name with args.
2152 set dummy objdump; ac_word=$2
2153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2154 echo "configure:2155: checking for $ac_word" >&5
2155 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 if test -n "$OBJDUMP"; then
2159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2163 for ac_dir in $ac_dummy; do
2164 test -z "$ac_dir" && ac_dir=.
2165 if test -f $ac_dir/$ac_word; then
2166 ac_cv_prog_OBJDUMP="objdump"
2171 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2174 OBJDUMP="$ac_cv_prog_OBJDUMP"
2175 if test -n "$OBJDUMP"; then
2176 echo "$ac_t""$OBJDUMP" 1>&6
2178 echo "$ac_t""no" 1>&6
2191 # Save cache, so that ltconfig can load it
2192 cat > confcache <<\EOF
2193 # This file is a shell script that caches the results of configure
2194 # tests run on this system so they can be shared between configure
2195 # scripts and configure runs. It is not useful on other systems.
2196 # If it contains results you don't want to keep, you may remove or edit it.
2198 # By default, configure uses ./config.cache as the cache file,
2199 # creating it if it does not exist already. You can give configure
2200 # the --cache-file=FILE option to use a different cache file; that is
2201 # what configure does when it calls configure scripts in
2202 # subdirectories, so they share the cache.
2203 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2204 # config.status only pays attention to the cache file if you give it the
2205 # --recheck option to rerun configure.
2208 # The following way of writing the cache mishandles newlines in values,
2209 # but we know of no workaround that is simple, portable, and efficient.
2210 # So, don't put newlines in cache variables' values.
2211 # Ultrix sh set writes to stderr and can't be redirected directly,
2212 # and sets the high bit in the cache file unless we assign to the vars.
2214 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2216 # `set' does not quote correctly, so add quotes (double-quote substitution
2217 # turns \\\\ into \\, and sed turns \\ into \).
2219 -e "s/'/'\\\\''/g" \
2220 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2223 # `set' quotes correctly as required by POSIX, so do not add quotes.
2224 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2227 if cmp -s $cache_file confcache; then
2230 if test -w $cache_file; then
2231 echo "updating cache $cache_file"
2232 cat confcache > $cache_file
2234 echo "not updating unwritable cache $cache_file"
2240 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2241 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2242 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2243 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2244 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2245 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2246 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2247 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2249 # Reload cache, that may have been modified by ltconfig
2250 if test -r "$cache_file"; then
2251 echo "loading cache $cache_file"
2254 echo "creating cache $cache_file"
2259 # This can be used to rebuild libtool when needed
2260 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2262 # Always use our own libtool.
2263 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2265 # Redirect the config.log output again, so that the ltconfig log is not
2266 # clobbered by the next message.
2267 exec 5>>./config.log
2271 if test -n "${sys_dir}"; then
2272 subdirs="${sys_dir}"
2277 if test -n "${sys_dir}"; then
2284 if test x${sys_dir} != x; then
2286 HAVE_SYS_DIR_FALSE='#'
2288 HAVE_SYS_DIR_TRUE='#'
2293 cat > confcache <<\EOF
2294 # This file is a shell script that caches the results of configure
2295 # tests run on this system so they can be shared between configure
2296 # scripts and configure runs. It is not useful on other systems.
2297 # If it contains results you don't want to keep, you may remove or edit it.
2299 # By default, configure uses ./config.cache as the cache file,
2300 # creating it if it does not exist already. You can give configure
2301 # the --cache-file=FILE option to use a different cache file; that is
2302 # what configure does when it calls configure scripts in
2303 # subdirectories, so they share the cache.
2304 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2305 # config.status only pays attention to the cache file if you give it the
2306 # --recheck option to rerun configure.
2309 # The following way of writing the cache mishandles newlines in values,
2310 # but we know of no workaround that is simple, portable, and efficient.
2311 # So, don't put newlines in cache variables' values.
2312 # Ultrix sh set writes to stderr and can't be redirected directly,
2313 # and sets the high bit in the cache file unless we assign to the vars.
2315 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2317 # `set' does not quote correctly, so add quotes (double-quote substitution
2318 # turns \\\\ into \\, and sed turns \\ into \).
2320 -e "s/'/'\\\\''/g" \
2321 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2324 # `set' quotes correctly as required by POSIX, so do not add quotes.
2325 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2328 if cmp -s $cache_file confcache; then
2331 if test -w $cache_file; then
2332 echo "updating cache $cache_file"
2333 cat confcache > $cache_file
2335 echo "not updating unwritable cache $cache_file"
2340 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2343 # Let make expand exec_prefix.
2344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2346 # Any assignment to VPATH causes Sun make to only execute
2347 # the first set of double-colon rules, so remove it if not needed.
2348 # If there is a colon in the path, we need to keep it.
2349 if test "x$srcdir" = x.; then
2350 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2353 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2355 # Transform confdefs.h into DEFS.
2356 # Protect against shell expansion while executing Makefile rules.
2357 # Protect against Makefile macro expansion.
2358 cat > conftest.defs <<\EOF
2359 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2360 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2365 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2369 # Without the "./", some shells look in PATH for config.status.
2370 : ${CONFIG_STATUS=./config.status}
2372 echo creating $CONFIG_STATUS
2373 rm -f $CONFIG_STATUS
2374 cat > $CONFIG_STATUS <<EOF
2376 # Generated automatically by configure.
2377 # Run this file to recreate the current configuration.
2378 # This directory was configured as follows,
2379 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2381 # $0 $ac_configure_args
2383 # Compiler output produced by configure, useful for debugging
2384 # configure, is in ./config.log if it exists.
2386 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2389 case "\$ac_option" in
2390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2391 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2392 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2393 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2394 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2396 -help | --help | --hel | --he | --h)
2397 echo "\$ac_cs_usage"; exit 0 ;;
2398 *) echo "\$ac_cs_usage"; exit 1 ;;
2402 ac_given_srcdir=$srcdir
2403 ac_given_INSTALL="$INSTALL"
2405 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2407 cat >> $CONFIG_STATUS <<EOF
2409 # Protect against being on the right side of a sed subst in config.status.
2410 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2411 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2415 s%@CFLAGS@%$CFLAGS%g
2416 s%@CPPFLAGS@%$CPPFLAGS%g
2417 s%@CXXFLAGS@%$CXXFLAGS%g
2418 s%@FFLAGS@%$FFLAGS%g
2420 s%@LDFLAGS@%$LDFLAGS%g
2422 s%@exec_prefix@%$exec_prefix%g
2423 s%@prefix@%$prefix%g
2424 s%@program_transform_name@%$program_transform_name%g
2425 s%@bindir@%$bindir%g
2426 s%@sbindir@%$sbindir%g
2427 s%@libexecdir@%$libexecdir%g
2428 s%@datadir@%$datadir%g
2429 s%@sysconfdir@%$sysconfdir%g
2430 s%@sharedstatedir@%$sharedstatedir%g
2431 s%@localstatedir@%$localstatedir%g
2432 s%@libdir@%$libdir%g
2433 s%@includedir@%$includedir%g
2434 s%@oldincludedir@%$oldincludedir%g
2435 s%@infodir@%$infodir%g
2436 s%@mandir@%$mandir%g
2437 s%@newlib_basedir@%$newlib_basedir%g
2439 s%@host_alias@%$host_alias%g
2440 s%@host_cpu@%$host_cpu%g
2441 s%@host_vendor@%$host_vendor%g
2442 s%@host_os@%$host_os%g
2443 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2444 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2445 s%@INSTALL_DATA@%$INSTALL_DATA%g
2446 s%@PACKAGE@%$PACKAGE%g
2447 s%@VERSION@%$VERSION%g
2448 s%@ACLOCAL@%$ACLOCAL%g
2449 s%@AUTOCONF@%$AUTOCONF%g
2450 s%@AUTOMAKE@%$AUTOMAKE%g
2451 s%@AUTOHEADER@%$AUTOHEADER%g
2452 s%@MAKEINFO@%$MAKEINFO%g
2453 s%@SET_MAKE@%$SET_MAKE%g
2456 s%@build_alias@%$build_alias%g
2457 s%@build_cpu@%$build_cpu%g
2458 s%@build_vendor@%$build_vendor%g
2459 s%@build_os@%$build_os%g
2462 s%@RANLIB@%$RANLIB%g
2463 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2464 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2466 s%@EXEEXT@%$EXEEXT%g
2467 s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
2468 s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
2469 s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
2472 s%@libm_machine_dir@%$libm_machine_dir%g
2473 s%@machine_dir@%$machine_dir%g
2474 s%@sys_dir@%$sys_dir%g
2476 s%@DLLTOOL@%$DLLTOOL%g
2477 s%@OBJDUMP@%$OBJDUMP%g
2478 s%@LIBTOOL@%$LIBTOOL%g
2479 s%@subdirs@%$subdirs%g
2481 s%@HAVE_SYS_DIR_TRUE@%$HAVE_SYS_DIR_TRUE%g
2482 s%@HAVE_SYS_DIR_FALSE@%$HAVE_SYS_DIR_FALSE%g
2487 cat >> $CONFIG_STATUS <<\EOF
2489 # Split the substitutions into bite-sized pieces for seds with
2490 # small command number limits, like on Digital OSF/1 and HP-UX.
2491 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
2492 ac_file=1 # Number of current file.
2493 ac_beg=1 # First line for current file.
2494 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2497 while $ac_more_lines; do
2498 if test $ac_beg -gt 1; then
2499 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2501 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2503 if test ! -s conftest.s$ac_file; then
2505 rm -f conftest.s$ac_file
2507 if test -z "$ac_sed_cmds"; then
2508 ac_sed_cmds="sed -f conftest.s$ac_file"
2510 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2512 ac_file=`expr $ac_file + 1`
2514 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2517 if test -z "$ac_sed_cmds"; then
2522 cat >> $CONFIG_STATUS <<EOF
2524 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2526 cat >> $CONFIG_STATUS <<\EOF
2527 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2530 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2531 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2532 *) ac_file_in="${ac_file}.in" ;;
2535 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2537 # Remove last slash and all that follows it. Not all systems have dirname.
2538 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2539 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2540 # The file is in a subdirectory.
2541 test ! -d "$ac_dir" && mkdir "$ac_dir"
2542 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2543 # A "../" for each directory in $ac_dir_suffix.
2544 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2546 ac_dir_suffix= ac_dots=
2549 case "$ac_given_srcdir" in
2551 if test -z "$ac_dots"; then top_srcdir=.
2552 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2553 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2555 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2556 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2559 case "$ac_given_INSTALL" in
2560 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2561 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2564 echo creating "$ac_file"
2566 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2568 *Makefile*) ac_comsub="1i\\
2569 # $configure_input" ;;
2573 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2575 s%@configure_input@%$configure_input%g
2576 s%@srcdir@%$srcdir%g
2577 s%@top_srcdir@%$top_srcdir%g
2578 s%@INSTALL@%$INSTALL%g
2579 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2584 cat >> $CONFIG_STATUS <<EOF
2587 cat >> $CONFIG_STATUS <<\EOF
2591 chmod +x $CONFIG_STATUS
2592 rm -fr confdefs* $ac_clean_files
2593 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2595 if test "$no_recursion" != yes; then
2597 # Remove --cache-file and --srcdir arguments so they do not pile up.
2598 ac_sub_configure_args=
2600 for ac_arg in $ac_configure_args; do
2601 if test -n "$ac_prev"; then
2606 -cache-file | --cache-file | --cache-fil | --cache-fi \
2607 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2608 ac_prev=cache_file ;;
2609 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2610 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2612 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2614 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2616 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2620 for ac_config_dir in ${sys_dir}; do
2622 # Do not complain, so a configure script can configure whichever
2623 # parts of a large source tree are present.
2624 if test ! -d $srcdir/$ac_config_dir; then
2628 echo configuring in $ac_config_dir
2633 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2635 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2643 # A "../" for each directory in /$ac_config_dir.
2644 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2647 .) # No --srcdir option. We are building in place.
2648 ac_sub_srcdir=$srcdir ;;
2649 /*) # Absolute path.
2650 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2652 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2655 # Check for guested configure; otherwise get Cygnus style configure.
2656 if test -f $ac_sub_srcdir/configure; then
2657 ac_sub_configure=$ac_sub_srcdir/configure
2658 elif test -f $ac_sub_srcdir/configure.in; then
2659 ac_sub_configure=$ac_configure
2661 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2665 # The recursion is here.
2666 if test -n "$ac_sub_configure"; then
2668 # Make the cache file name correct relative to the subdirectory.
2669 case "$cache_file" in
2670 /*) ac_sub_cache_file=$cache_file ;;
2672 ac_sub_cache_file="$ac_dots$cache_file" ;;
2674 case "$ac_given_INSTALL" in
2675 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2676 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2679 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2680 # The eval makes quoting arguments work.
2681 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2684 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }