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-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --with-pic try to use only PIC/non-PIC objects [default=use both]"
30 --enable-targets=LIST support given additional targets, or all"
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --site-file=FILE use FILE as the site file
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host | --host | --hos | --ho)
210 -host=* | --host=* | --hos=* | --ho=*)
213 -includedir | --includedir | --includedi | --included | --include \
214 | --includ | --inclu | --incl | --inc)
215 ac_prev=includedir ;;
216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217 | --includ=* | --inclu=* | --incl=* | --inc=*)
218 includedir="$ac_optarg" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231 | --libexe | --libex | --libe)
232 ac_prev=libexecdir ;;
233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234 | --libexe=* | --libex=* | --libe=*)
235 libexecdir="$ac_optarg" ;;
237 -localstatedir | --localstatedir | --localstatedi | --localstated \
238 | --localstate | --localstat | --localsta | --localst \
239 | --locals | --local | --loca | --loc | --lo)
240 ac_prev=localstatedir ;;
241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244 localstatedir="$ac_optarg" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265 | --oldin | --oldi | --old | --ol | --o)
266 ac_prev=oldincludedir ;;
267 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270 oldincludedir="$ac_optarg" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
277 -program-prefix | --program-prefix | --program-prefi | --program-pref \
278 | --program-pre | --program-pr | --program-p)
279 ac_prev=program_prefix ;;
280 -program-prefix=* | --program-prefix=* | --program-prefi=* \
281 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282 program_prefix="$ac_optarg" ;;
284 -program-suffix | --program-suffix | --program-suffi | --program-suff \
285 | --program-suf | --program-su | --program-s)
286 ac_prev=program_suffix ;;
287 -program-suffix=* | --program-suffix=* | --program-suffi=* \
288 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289 program_suffix="$ac_optarg" ;;
291 -program-transform-name | --program-transform-name \
292 | --program-transform-nam | --program-transform-na \
293 | --program-transform-n | --program-transform- \
294 | --program-transform | --program-transfor \
295 | --program-transfo | --program-transf \
296 | --program-trans | --program-tran \
297 | --progr-tra | --program-tr | --program-t)
298 ac_prev=program_transform_name ;;
299 -program-transform-name=* | --program-transform-name=* \
300 | --program-transform-nam=* | --program-transform-na=* \
301 | --program-transform-n=* | --program-transform-=* \
302 | --program-transform=* | --program-transfor=* \
303 | --program-transfo=* | --program-transf=* \
304 | --program-trans=* | --program-tran=* \
305 | --progr-tra=* | --program-tr=* | --program-t=*)
306 program_transform_name="$ac_optarg" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
331 -site=* | --site=* | --sit=*)
334 -site-file | --site-file | --site-fil | --site-fi | --site-f)
336 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
337 sitefile="$ac_optarg" ;;
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.13"
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=Makefile.in
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$sitefile"; then
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 CONFIG_SITE="$sitefile"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='\c' ac_t=
553 for ac_dir in ../../config $srcdir/../../config; do
554 if test -f $ac_dir/install-sh; then
556 ac_install_sh="$ac_aux_dir/install-sh -c"
558 elif test -f $ac_dir/install.sh; then
560 ac_install_sh="$ac_aux_dir/install.sh -c"
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in ../../config $srcdir/../../config" 1>&2; exit 1; }
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 # Find a good install program. We prefer a C program (faster),
572 # so one script is as good as another. But avoid the broken or
573 # incompatible versions:
574 # SysV /etc/install, /usr/sbin/install
575 # SunOS /usr/etc/install
578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
581 # ./install, which can be erroneously created by make from ./install.sh.
582 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
583 echo "configure:584: checking for a BSD compatible install" >&5
584 if test -z "$INSTALL"; then
585 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
589 for ac_dir in $PATH; do
590 # Account for people who put trailing slashes in PATH elements.
592 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
594 # OSF1 and SCO ODT 3.0 have their own names for install.
595 # Don't use installbsd from OSF since it installs stuff as root
597 for ac_prog in ginstall scoinst install; do
598 if test -f $ac_dir/$ac_prog; then
599 if test $ac_prog = install &&
600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
601 # AIX install. It has an incompatible calling convention.
604 ac_cv_path_install="$ac_dir/$ac_prog -c"
615 if test "${ac_cv_path_install+set}" = set; then
616 INSTALL="$ac_cv_path_install"
618 # As a last resort, use the slow shell script. We don't cache a
619 # path for INSTALL within a source directory, because that will
620 # break other packages using the cache if that directory is
621 # removed, or if the path is relative.
622 INSTALL="$ac_install_sh"
625 echo "$ac_t""$INSTALL" 1>&6
627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
628 # It thinks the first close brace ends the variable substitution.
629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
635 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
636 echo "configure:637: checking whether build environment is sane" >&5
639 echo timestamp > conftestfile
640 # Do `set' in a subshell so we don't clobber the current shell's
641 # arguments. Must try -L first in case configure is actually a
642 # symlink; some systems play weird games with the mod time of symlinks
643 # (eg FreeBSD returns the mod time of the symlink's containing
646 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
647 if test "$*" = "X"; then
649 set X `ls -t $srcdir/configure conftestfile`
651 if test "$*" != "X $srcdir/configure conftestfile" \
652 && test "$*" != "X conftestfile $srcdir/configure"; then
654 # If neither matched, then we have a broken ls. This can happen
655 # if, for instance, CONFIG_SHELL is bash and it inherits a
656 # broken ls alias from the environment. This has actually
657 # happened. Such a system could not be considered "sane".
658 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
659 alias in your environment" 1>&2; exit 1; }
662 test "$2" = conftestfile
668 { echo "configure: error: newly created file is older than distributed files!
669 Check your system clock" 1>&2; exit 1; }
672 echo "$ac_t""yes" 1>&6
673 if test "$program_transform_name" = s,x,x,; then
674 program_transform_name=
676 # Double any \ or $. echo might interpret backslashes.
677 cat <<\EOF_SED > conftestsed
678 s,\\,\\\\,g; s,\$,$$,g
680 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
683 test "$program_prefix" != NONE &&
684 program_transform_name="s,^,${program_prefix},; $program_transform_name"
685 # Use a double $ so make ignores it.
686 test "$program_suffix" != NONE &&
687 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
689 # sed with no file args requires a program.
690 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
692 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
694 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
695 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 cat > conftestmake <<\EOF
700 @echo 'ac_maketemp="${MAKE}"'
702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
703 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
704 if test -n "$ac_maketemp"; then
705 eval ac_cv_prog_make_${ac_make}_set=yes
707 eval ac_cv_prog_make_${ac_make}_set=no
711 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
712 echo "$ac_t""yes" 1>&6
715 echo "$ac_t""no" 1>&6
716 SET_MAKE="MAKE=${MAKE-make}"
724 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
725 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
727 cat >> confdefs.h <<EOF
728 #define PACKAGE "$PACKAGE"
731 cat >> confdefs.h <<EOF
732 #define VERSION "$VERSION"
737 missing_dir=`cd $ac_aux_dir && pwd`
738 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
739 echo "configure:740: checking for working aclocal" >&5
740 # Run test in a subshell; some versions of sh will print an error if
741 # an executable is not found, even if stderr is redirected.
742 # Redirect stdin to placate older versions of autoconf. Sigh.
743 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
745 echo "$ac_t""found" 1>&6
747 ACLOCAL="$missing_dir/missing aclocal"
748 echo "$ac_t""missing" 1>&6
751 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
752 echo "configure:753: checking for working autoconf" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
758 echo "$ac_t""found" 1>&6
760 AUTOCONF="$missing_dir/missing autoconf"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working automake""... $ac_c" 1>&6
765 echo "configure:766: checking for working automake" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (automake --version) < /dev/null > /dev/null 2>&1; then
771 echo "$ac_t""found" 1>&6
773 AUTOMAKE="$missing_dir/missing automake"
774 echo "$ac_t""missing" 1>&6
777 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
778 echo "configure:779: checking for working autoheader" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf. Sigh.
782 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
783 AUTOHEADER=autoheader
784 echo "$ac_t""found" 1>&6
786 AUTOHEADER="$missing_dir/missing autoheader"
787 echo "$ac_t""missing" 1>&6
790 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
791 echo "configure:792: checking for working makeinfo" >&5
792 # Run test in a subshell; some versions of sh will print an error if
793 # an executable is not found, even if stderr is redirected.
794 # Redirect stdin to placate older versions of autoconf. Sigh.
795 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
797 echo "$ac_t""found" 1>&6
799 MAKEINFO="$missing_dir/missing makeinfo"
800 echo "$ac_t""missing" 1>&6
808 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
809 echo "configure:810: checking whether to enable maintainer-specific portions of Makefiles" >&5
810 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
811 if test "${enable_maintainer_mode+set}" = set; then
812 enableval="$enable_maintainer_mode"
813 USE_MAINTAINER_MODE=$enableval
815 USE_MAINTAINER_MODE=no
818 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
821 if test $USE_MAINTAINER_MODE = yes; then
822 MAINTAINER_MODE_TRUE=
823 MAINTAINER_MODE_FALSE='#'
825 MAINTAINER_MODE_TRUE='#'
826 MAINTAINER_MODE_FALSE=
828 MAINT=$MAINTAINER_MODE_TRUE
832 # Check whether --enable-shared or --disable-shared was given.
833 if test "${enable_shared+set}" = set; then
834 enableval="$enable_shared"
837 yes) enable_shared=yes ;;
838 no) enable_shared=no ;;
841 # Look at the argument we got. We use all the common list separators.
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
843 for pkg in $enableval; do
844 if test "X$pkg" = "X$p"; then
855 # Check whether --enable-static or --disable-static was given.
856 if test "${enable_static+set}" = set; then
857 enableval="$enable_static"
860 yes) enable_static=yes ;;
861 no) enable_static=no ;;
864 # Look at the argument we got. We use all the common list separators.
865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
866 for pkg in $enableval; do
867 if test "X$pkg" = "X$p"; then
878 # Check whether --enable-fast-install or --disable-fast-install was given.
879 if test "${enable_fast_install+set}" = set; then
880 enableval="$enable_fast_install"
883 yes) enable_fast_install=yes ;;
884 no) enable_fast_install=no ;;
886 enable_fast_install=no
887 # Look at the argument we got. We use all the common list separators.
888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
889 for pkg in $enableval; do
890 if test "X$pkg" = "X$p"; then
891 enable_fast_install=yes
898 enable_fast_install=yes
902 # Make sure we can run config.sub.
903 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
904 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
907 echo $ac_n "checking host system type""... $ac_c" 1>&6
908 echo "configure:909: checking host system type" >&5
911 case "$host_alias" in
915 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
916 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
918 *) host_alias=$nonopt ;;
922 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
923 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
924 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
925 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
926 echo "$ac_t""$host" 1>&6
928 echo $ac_n "checking build system type""... $ac_c" 1>&6
929 echo "configure:930: checking build system type" >&5
932 case "$build_alias" in
935 NONE) build_alias=$host_alias ;;
936 *) build_alias=$nonopt ;;
940 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
941 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
942 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
943 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
944 echo "$ac_t""$build" 1>&6
946 # Extract the first word of "gcc", so it can be a program name with args.
947 set dummy gcc; ac_word=$2
948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
949 echo "configure:950: checking for $ac_word" >&5
950 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
953 if test -n "$CC"; then
954 ac_cv_prog_CC="$CC" # Let the user override the test.
956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
958 for ac_dir in $ac_dummy; do
959 test -z "$ac_dir" && ac_dir=.
960 if test -f $ac_dir/$ac_word; then
969 if test -n "$CC"; then
970 echo "$ac_t""$CC" 1>&6
972 echo "$ac_t""no" 1>&6
975 if test -z "$CC"; then
976 # Extract the first word of "cc", so it can be a program name with args.
977 set dummy cc; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 if test -n "$CC"; then
984 ac_cv_prog_CC="$CC" # Let the user override the test.
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
989 for ac_dir in $ac_dummy; do
990 test -z "$ac_dir" && ac_dir=.
991 if test -f $ac_dir/$ac_word; then
992 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1001 if test $ac_prog_rejected = yes; then
1002 # We found a bogon in the path, so make sure we never use it.
1003 set dummy $ac_cv_prog_CC
1005 if test $# -gt 0; then
1006 # We chose a different compiler from the bogus one.
1007 # However, it has the same basename, so the bogon will be chosen
1008 # first if we set CC to just the basename; use the full file name.
1010 set dummy "$ac_dir/$ac_word" "$@"
1018 if test -n "$CC"; then
1019 echo "$ac_t""$CC" 1>&6
1021 echo "$ac_t""no" 1>&6
1024 if test -z "$CC"; then
1025 case "`uname -s`" in
1027 # Extract the first word of "cl", so it can be a program name with args.
1028 set dummy cl; ac_word=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 if test -n "$CC"; then
1035 ac_cv_prog_CC="$CC" # Let the user override the test.
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1039 for ac_dir in $ac_dummy; do
1040 test -z "$ac_dir" && ac_dir=.
1041 if test -f $ac_dir/$ac_word; then
1050 if test -n "$CC"; then
1051 echo "$ac_t""$CC" 1>&6
1053 echo "$ac_t""no" 1>&6
1058 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1061 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1066 ac_cpp='$CPP $CPPFLAGS'
1067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1069 cross_compiling=$ac_cv_prog_cc_cross
1071 cat > conftest.$ac_ext << EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1078 if { (eval echo configure:1079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1079 ac_cv_prog_cc_works=yes
1080 # If we can't run a trivial program, we are probably using a cross compiler.
1081 if (./conftest; exit) 2>/dev/null; then
1082 ac_cv_prog_cc_cross=no
1084 ac_cv_prog_cc_cross=yes
1087 echo "configure: failed program was:" >&5
1088 cat conftest.$ac_ext >&5
1089 ac_cv_prog_cc_works=no
1093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1094 ac_cpp='$CPP $CPPFLAGS'
1095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1097 cross_compiling=$ac_cv_prog_cc_cross
1099 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1100 if test $ac_cv_prog_cc_works = no; then
1101 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1103 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1105 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1106 cross_compiling=$ac_cv_prog_cc_cross
1108 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1109 echo "configure:1110: checking whether we are using GNU C" >&5
1110 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 cat > conftest.c <<EOF
1118 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1125 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1127 if test $ac_cv_prog_gcc = yes; then
1133 ac_test_CFLAGS="${CFLAGS+set}"
1134 ac_save_CFLAGS="$CFLAGS"
1136 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1137 echo "configure:1138: checking whether ${CC-cc} accepts -g" >&5
1138 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 echo 'void f(){}' > conftest.c
1142 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1151 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1152 if test "$ac_test_CFLAGS" = set; then
1153 CFLAGS="$ac_save_CFLAGS"
1154 elif test $ac_cv_prog_cc_g = yes; then
1155 if test "$GCC" = yes; then
1161 if test "$GCC" = yes; then
1168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1169 if test "${with_gnu_ld+set}" = set; then
1170 withval="$with_gnu_ld"
1171 test "$withval" = no || with_gnu_ld=yes
1177 if test "$ac_cv_prog_gcc" = yes; then
1178 # Check if gcc -print-prog-name=ld gives a path.
1179 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1180 echo "configure:1181: checking for ld used by GCC" >&5
1183 # gcc leaves a trailing carriage return which upsets mingw
1184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1189 # Accept absolute paths.
1190 [\\/]* | [A-Za-z]:[\\/]*)
1191 re_direlt='/[^/][^/]*/\.\./'
1192 # Canonicalize the path of ld
1193 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1195 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1197 test -z "$LD" && LD="$ac_prog"
1200 # If it fails, then pretend we aren't using GCC.
1204 # If it is relative, then search for the first ld in PATH.
1208 elif test "$with_gnu_ld" = yes; then
1209 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1210 echo "configure:1211: checking for GNU ld" >&5
1212 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1213 echo "configure:1214: checking for non-GNU ld" >&5
1215 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1218 if test -z "$LD"; then
1219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1220 for ac_dir in $PATH; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1223 ac_cv_path_LD="$ac_dir/$ac_prog"
1224 # Check to see if the program is GNU ld. I'd rather use --version,
1225 # but apparently some GNU ld's only accept -v.
1226 # Break only if it was the GNU/non-GNU ld that we prefer.
1227 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1228 test "$with_gnu_ld" != no && break
1230 test "$with_gnu_ld" != yes && break
1236 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1241 if test -n "$LD"; then
1242 echo "$ac_t""$LD" 1>&6
1244 echo "$ac_t""no" 1>&6
1246 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1248 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1249 echo "configure:1250: checking if the linker ($LD) is GNU ld" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1254 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1255 ac_cv_prog_gnu_ld=yes
1257 ac_cv_prog_gnu_ld=no
1261 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1264 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1265 echo "configure:1266: checking for BSD-compatible nm" >&5
1266 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 if test -n "$NM"; then
1270 # Let the user override the test.
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1274 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1275 test -z "$ac_dir" && ac_dir=.
1276 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1277 # Check to see if the nm accepts a BSD-compat flag.
1278 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1279 # nm: unknown option "B" ignored
1280 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1281 ac_cv_path_NM="$ac_dir/nm -B"
1283 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1284 ac_cv_path_NM="$ac_dir/nm -p"
1287 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1288 continue # so that we can try to find one that supports BSD flags
1293 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1298 echo "$ac_t""$NM" 1>&6
1301 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1302 echo "configure:1303: checking whether ln -s works" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1307 if ln -s X conftestdata 2>/dev/null
1310 ac_cv_prog_LN_S="ln -s"
1315 LN_S="$ac_cv_prog_LN_S"
1316 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1317 echo "$ac_t""yes" 1>&6
1319 echo "$ac_t""no" 1>&6
1322 if test $host != $build; then
1323 ac_tool_prefix=${host_alias}-
1329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1330 set dummy ${ac_tool_prefix}ar; ac_word=$2
1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332 echo "configure:1333: checking for $ac_word" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 if test -n "$AR"; then
1337 ac_cv_prog_AR="$AR" # Let the user override the test.
1339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1341 for ac_dir in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir=.
1343 if test -f $ac_dir/$ac_word; then
1344 ac_cv_prog_AR="${ac_tool_prefix}ar"
1349 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1353 if test -n "$AR"; then
1354 echo "$ac_t""$AR" 1>&6
1356 echo "$ac_t""no" 1>&6
1361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_word" >&5
1365 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 if test -n "$RANLIB"; then
1369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1373 for ac_dir in $ac_dummy; do
1374 test -z "$ac_dir" && ac_dir=.
1375 if test -f $ac_dir/$ac_word; then
1376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1383 RANLIB="$ac_cv_prog_RANLIB"
1384 if test -n "$RANLIB"; then
1385 echo "$ac_t""$RANLIB" 1>&6
1387 echo "$ac_t""no" 1>&6
1391 if test -z "$ac_cv_prog_RANLIB"; then
1392 if test -n "$ac_tool_prefix"; then
1393 # Extract the first word of "ranlib", so it can be a program name with args.
1394 set dummy ranlib; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 if test -n "$RANLIB"; then
1401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1405 for ac_dir in $ac_dummy; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_prog_RANLIB="ranlib"
1413 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1416 RANLIB="$ac_cv_prog_RANLIB"
1417 if test -n "$RANLIB"; then
1418 echo "$ac_t""$RANLIB" 1>&6
1420 echo "$ac_t""no" 1>&6
1429 # Check for any special flags to pass to ltconfig.
1430 libtool_flags="--cache-file=$cache_file"
1431 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1432 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1433 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1434 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1435 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1437 libtool_flags="$libtool_flags --enable-win32-dll"
1438 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1439 if test "${enable_libtool_lock+set}" = set; then
1440 enableval="$enable_libtool_lock"
1444 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1445 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1447 # Check whether --with-pic or --without-pic was given.
1448 if test "${with_pic+set}" = set; then
1455 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1456 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1458 # Some flags need to be propagated to the compiler or linker for good
1462 # Find out which ABI we are using.
1463 echo '#line 1464 "configure"' > conftest.$ac_ext
1464 if { (eval echo configure:1465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1465 case "`/usr/bin/file conftest.o`" in
1481 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1482 SAVE_CFLAGS="$CFLAGS"
1483 CFLAGS="$CFLAGS -belf"
1484 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1485 echo "configure:1486: checking whether the C compiler needs -belf" >&5
1486 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1497 if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1499 lt_cv_cc_needs_belf=yes
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1504 lt_cv_cc_needs_belf=no
1509 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1510 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1511 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1512 CFLAGS="$SAVE_CFLAGS"
1516 *-*-cygwin* | *-*-mingw*)
1517 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1518 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 if test -n "$DLLTOOL"; then
1525 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1539 DLLTOOL="$ac_cv_prog_DLLTOOL"
1540 if test -n "$DLLTOOL"; then
1541 echo "$ac_t""$DLLTOOL" 1>&6
1543 echo "$ac_t""no" 1>&6
1547 if test -z "$ac_cv_prog_DLLTOOL"; then
1548 if test -n "$ac_tool_prefix"; then
1549 # Extract the first word of "dlltool", so it can be a program name with args.
1550 set dummy dlltool; ac_word=$2
1551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1552 echo "configure:1553: checking for $ac_word" >&5
1553 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 if test -n "$DLLTOOL"; then
1557 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1561 for ac_dir in $ac_dummy; do
1562 test -z "$ac_dir" && ac_dir=.
1563 if test -f $ac_dir/$ac_word; then
1564 ac_cv_prog_DLLTOOL="dlltool"
1569 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
1572 DLLTOOL="$ac_cv_prog_DLLTOOL"
1573 if test -n "$DLLTOOL"; then
1574 echo "$ac_t""$DLLTOOL" 1>&6
1576 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1585 set dummy ${ac_tool_prefix}as; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 if test -n "$AS"; then
1592 ac_cv_prog_AS="$AS" # Let the user override the test.
1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1596 for ac_dir in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1599 ac_cv_prog_AS="${ac_tool_prefix}as"
1607 if test -n "$AS"; then
1608 echo "$ac_t""$AS" 1>&6
1610 echo "$ac_t""no" 1>&6
1614 if test -z "$ac_cv_prog_AS"; then
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "as", so it can be a program name with args.
1617 set dummy as; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1620 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 if test -n "$AS"; then
1624 ac_cv_prog_AS="$AS" # Let the user override the test.
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1628 for ac_dir in $ac_dummy; do
1629 test -z "$ac_dir" && ac_dir=.
1630 if test -f $ac_dir/$ac_word; then
1636 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
1640 if test -n "$AS"; then
1641 echo "$ac_t""$AS" 1>&6
1643 echo "$ac_t""no" 1>&6
1651 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
1652 set dummy ${ac_tool_prefix}objdump; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 if test -n "$OBJDUMP"; then
1659 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1663 for ac_dir in $ac_dummy; do
1664 test -z "$ac_dir" && ac_dir=.
1665 if test -f $ac_dir/$ac_word; then
1666 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1673 OBJDUMP="$ac_cv_prog_OBJDUMP"
1674 if test -n "$OBJDUMP"; then
1675 echo "$ac_t""$OBJDUMP" 1>&6
1677 echo "$ac_t""no" 1>&6
1681 if test -z "$ac_cv_prog_OBJDUMP"; then
1682 if test -n "$ac_tool_prefix"; then
1683 # Extract the first word of "objdump", so it can be a program name with args.
1684 set dummy objdump; ac_word=$2
1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_word" >&5
1687 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1690 if test -n "$OBJDUMP"; then
1691 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1695 for ac_dir in $ac_dummy; do
1696 test -z "$ac_dir" && ac_dir=.
1697 if test -f $ac_dir/$ac_word; then
1698 ac_cv_prog_OBJDUMP="objdump"
1703 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
1706 OBJDUMP="$ac_cv_prog_OBJDUMP"
1707 if test -n "$OBJDUMP"; then
1708 echo "$ac_t""$OBJDUMP" 1>&6
1710 echo "$ac_t""no" 1>&6
1719 # recent cygwin and mingw systems supply a stub DllMain which the user
1720 # can override, but on older systems we have to supply one
1721 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
1722 echo "configure:1723: checking if libtool should supply DllMain function" >&5
1723 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1731 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1736 lt_cv_need_dllmain=yes
1738 echo "configure: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1741 lt_cv_need_dllmain=no
1746 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
1750 # cygwin systems need to pass --dll to the linker, and not link
1751 # crt.o which will require a WinMain@16 definition.
1752 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1754 # old mingw systems require "-dll" to link a DLL, while more recent ones
1756 SAVE_CFLAGS="$CFLAGS"
1757 CFLAGS="$CFLAGS -mdll"
1758 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
1759 echo "configure:1760: checking how to link DLLs" >&5
1760 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1773 lt_cv_cc_dll_switch=-mdll
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1778 lt_cv_cc_dll_switch=-dll
1783 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
1784 CFLAGS="$SAVE_CFLAGS" ;;
1791 # Save cache, so that ltconfig can load it
1792 cat > confcache <<\EOF
1793 # This file is a shell script that caches the results of configure
1794 # tests run on this system so they can be shared between configure
1795 # scripts and configure runs. It is not useful on other systems.
1796 # If it contains results you don't want to keep, you may remove or edit it.
1798 # By default, configure uses ./config.cache as the cache file,
1799 # creating it if it does not exist already. You can give configure
1800 # the --cache-file=FILE option to use a different cache file; that is
1801 # what configure does when it calls configure scripts in
1802 # subdirectories, so they share the cache.
1803 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1804 # config.status only pays attention to the cache file if you give it the
1805 # --recheck option to rerun configure.
1808 # The following way of writing the cache mishandles newlines in values,
1809 # but we know of no workaround that is simple, portable, and efficient.
1810 # So, don't put newlines in cache variables' values.
1811 # Ultrix sh set writes to stderr and can't be redirected directly,
1812 # and sets the high bit in the cache file unless we assign to the vars.
1814 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1816 # `set' does not quote correctly, so add quotes (double-quote substitution
1817 # turns \\\\ into \\, and sed turns \\ into \).
1819 -e "s/'/'\\\\''/g" \
1820 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1823 # `set' quotes correctly as required by POSIX, so do not add quotes.
1824 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1827 if cmp -s $cache_file confcache; then
1830 if test -w $cache_file; then
1831 echo "updating cache $cache_file"
1832 cat confcache > $cache_file
1834 echo "not updating unwritable cache $cache_file"
1840 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1841 AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1842 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1843 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1844 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1845 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1846 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1847 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1849 # Reload cache, that may have been modified by ltconfig
1850 if test -r "$cache_file"; then
1851 echo "loading cache $cache_file"
1854 echo "creating cache $cache_file"
1859 # This can be used to rebuild libtool when needed
1860 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1862 # Always use our own libtool.
1863 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1865 # Redirect the config.log output again, so that the ltconfig log is not
1866 # clobbered by the next message.
1867 exec 5>>./config.log
1869 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1871 # Extract the first word of "$ac_prog", so it can be a program name with args.
1872 set dummy $ac_prog; ac_word=$2
1873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1874 echo "configure:1875: checking for $ac_word" >&5
1875 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1876 echo $ac_n "(cached) $ac_c" 1>&6
1878 if test -n "$CXX"; then
1879 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1883 for ac_dir in $ac_dummy; do
1884 test -z "$ac_dir" && ac_dir=.
1885 if test -f $ac_dir/$ac_word; then
1886 ac_cv_prog_CXX="$ac_prog"
1893 CXX="$ac_cv_prog_CXX"
1894 if test -n "$CXX"; then
1895 echo "$ac_t""$CXX" 1>&6
1897 echo "$ac_t""no" 1>&6
1900 test -n "$CXX" && break
1902 test -n "$CXX" || CXX="gcc"
1905 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1906 echo "configure:1907: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1909 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1910 ac_cpp='$CXXCPP $CPPFLAGS'
1911 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1912 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1913 cross_compiling=$ac_cv_prog_cxx_cross
1915 cat > conftest.$ac_ext << EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1920 int main(){return(0);}
1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1923 ac_cv_prog_cxx_works=yes
1924 # If we can't run a trivial program, we are probably using a cross compiler.
1925 if (./conftest; exit) 2>/dev/null; then
1926 ac_cv_prog_cxx_cross=no
1928 ac_cv_prog_cxx_cross=yes
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 ac_cv_prog_cxx_works=no
1937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1941 cross_compiling=$ac_cv_prog_cc_cross
1943 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1944 if test $ac_cv_prog_cxx_works = no; then
1945 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1947 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1948 echo "configure:1949: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1949 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1950 cross_compiling=$ac_cv_prog_cxx_cross
1952 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1953 echo "configure:1954: checking whether we are using GNU C++" >&5
1954 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 cat > conftest.C <<EOF
1962 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1969 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1971 if test $ac_cv_prog_gxx = yes; then
1977 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1978 ac_save_CXXFLAGS="$CXXFLAGS"
1980 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1981 echo "configure:1982: checking whether ${CXX-g++} accepts -g" >&5
1982 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 echo 'void f(){}' > conftest.cc
1986 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1987 ac_cv_prog_cxx_g=yes
1995 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1996 if test "$ac_test_CXXFLAGS" = set; then
1997 CXXFLAGS="$ac_save_CXXFLAGS"
1998 elif test $ac_cv_prog_cxx_g = yes; then
1999 if test "$GXX" = yes; then
2005 if test "$GXX" = yes; then
2012 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2013 echo "configure:2014: checking how to run the C++ preprocessor" >&5
2014 if test -z "$CXXCPP"; then
2015 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2019 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2020 ac_cpp='$CXXCPP $CPPFLAGS'
2021 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2022 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2023 cross_compiling=$ac_cv_prog_cxx_cross
2024 CXXCPP="${CXX-g++} -E"
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2031 { (eval echo configure:2032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2033 if test -z "$ac_err"; then
2037 echo "configure: failed program was:" >&5
2038 cat conftest.$ac_ext >&5
2043 ac_cv_prog_CXXCPP="$CXXCPP"
2045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2049 cross_compiling=$ac_cv_prog_cc_cross
2052 CXXCPP="$ac_cv_prog_CXXCPP"
2053 echo "$ac_t""$CXXCPP" 1>&6
2055 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2056 echo "configure:2057: checking for Cygwin environment" >&5
2057 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2067 #define __CYGWIN__ __CYGWIN32__
2072 if { (eval echo configure:2073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2085 echo "$ac_t""$ac_cv_cygwin" 1>&6
2087 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2088 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2089 echo "configure:2090: checking for mingw32 environment" >&5
2090 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2101 if { (eval echo configure:2102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2105 echo "configure: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2114 echo "$ac_t""$ac_cv_mingw32" 1>&6
2116 test "$ac_cv_mingw32" = yes && MINGW32=yes
2119 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2120 echo "configure:2121: checking for executable suffix" >&5
2121 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2128 echo 'int main () { return 0; }' > conftest.$ac_ext
2130 if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2131 for file in conftest.*; do
2133 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
2134 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2138 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2141 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2146 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2147 echo "$ac_t""${ac_cv_exeext}" 1>&6
2151 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2152 ac_cpp='$CXXCPP $CPPFLAGS'
2153 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2154 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2155 cross_compiling=$ac_cv_prog_cxx_cross
2158 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
2159 echo "configure:2160: checking for main in -lm" >&5
2160 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
2161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 ac_save_LIBS="$LIBS"
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2176 eval "ac_cv_lib_$ac_lib_var=yes"
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 eval "ac_cv_lib_$ac_lib_var=no"
2184 LIBS="$ac_save_LIBS"
2187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2189 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2191 cat >> confdefs.h <<EOF
2192 #define $ac_tr_lib 1
2198 echo "$ac_t""no" 1>&6
2205 sid_host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host`
2206 sid_target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target`
2208 if test "$sid_host" = "$sid_target" -o "$target" = "NONE"
2210 echo "configure: warning: Assuming --enable-targets=all" 1>&2
2214 all_targets="$target"
2219 # Check whether --enable-targets or --disable-targets was given.
2220 if test "${enable_targets+set}" = set; then
2221 enableval="$enable_targets"
2223 case "${enable_targets}" in
2224 all) sidtarget_default=1 ;;
2225 no) sidtarget_default=0 ;;
2226 *) all_targets="${all_targets} `echo ${enable_targets} | sed -e 's-,- -g'`" ;;
2232 sidtarget_arm=$sidtarget_default
2233 sidtarget_mips=$sidtarget_default
2234 sidtarget_m32r=$sidtarget_default
2235 sidtarget_m68k=$sidtarget_default
2236 sidtarget_ppc=$sidtarget_default
2238 for targ in $all_targets
2241 arm*) sidtarget_arm=1 ;;
2242 thumb*) sidtarget_arm=1 ;;
2243 mips*) sidtarget_mips=1 ;;
2244 m32r*) sidtarget_m32r=1 ;;
2245 m68k*) sidtarget_m68k=1 ;;
2246 powerpc*) sidtarget_ppc=1 ;;
2247 ppc*) sidtarget_ppc=1 ;;
2248 *) echo "configure: warning: "Unknown target $targ"" 1>&2 ;;
2253 ${sidtarget_arm}) ;;
2254 ${sidtarget_mips}) ;;
2255 ${sidtarget_m32r}) ;;
2256 ${sidtarget_m68k}) ;;
2257 ${sidtarget_ppc}) ;;
2258 *) echo "configure: warning: No selected sid targets: use --enable-targets or --target" 1>&2
2263 echo $ac_n "checking ARM family support""... $ac_c" 1>&6
2264 echo "configure:2295: checking ARM family support" >&5
2268 if test "x$sidtarget_arm" = x1; then
2270 SIDTARGET_ARM_FALSE='#'
2272 SIDTARGET_ARM_TRUE='#'
2273 SIDTARGET_ARM_FALSE=
2275 echo "$ac_t""$sidtarget_arm" 1>&6
2278 echo $ac_n "checking MIPS family support""... $ac_c" 1>&6
2279 echo "configure:2325: checking MIPS family support" >&5
2283 if test "x$sidtarget_mips" = x1; then
2284 SIDTARGET_MIPS_TRUE=
2285 SIDTARGET_MIPS_FALSE='#'
2287 SIDTARGET_MIPS_TRUE='#'
2288 SIDTARGET_MIPS_FALSE=
2290 echo "$ac_t""$sidtarget_mips" 1>&6
2292 echo $ac_n "checking M32R family support""... $ac_c" 1>&6
2293 echo "configure:2339: checking M32R family support" >&5
2297 if test "x$sidtarget_m32r" = x1; then
2298 SIDTARGET_M32R_TRUE=
2299 SIDTARGET_M32R_FALSE='#'
2301 SIDTARGET_M32R_TRUE='#'
2302 SIDTARGET_M32R_FALSE=
2304 echo "$ac_t""$sidtarget_m32r" 1>&6
2306 echo $ac_n "checking M68K family support""... $ac_c" 1>&6
2307 echo "configure:2353: checking M68K family support" >&5
2311 if test "x$sidtarget_m68k" = x1; then
2312 SIDTARGET_M68K_TRUE=
2313 SIDTARGET_M68K_FALSE='#'
2315 SIDTARGET_M68K_TRUE='#'
2316 SIDTARGET_M68K_FALSE=
2318 echo "$ac_t""$sidtarget_m68k" 1>&6
2320 echo $ac_n "checking PPC family support""... $ac_c" 1>&6
2321 echo "configure:2367: checking PPC family support" >&5
2325 if test "x$sidtarget_ppc" = x1; then
2327 SIDTARGET_PPC_FALSE='#'
2329 SIDTARGET_PPC_TRUE='#'
2330 SIDTARGET_PPC_FALSE=
2332 echo "$ac_t""$sidtarget_ppc" 1>&6
2337 # Add per-target-family subdirectories here
2341 if test $sidtarget_arm -eq 1; then
2342 cpu_subdirs="$cpu_subdirs arm7t"
2345 for dir in $cpu_subdirs; do
2346 cpu_libs="$cpu_libs $dir/lib${dir}timers.la"
2347 cpu_incl="$cpu_incl -I$srcdir/$dir"
2350 subdirs="$cpu_subdirs"
2357 cat > confcache <<\EOF
2358 # This file is a shell script that caches the results of configure
2359 # tests run on this system so they can be shared between configure
2360 # scripts and configure runs. It is not useful on other systems.
2361 # If it contains results you don't want to keep, you may remove or edit it.
2363 # By default, configure uses ./config.cache as the cache file,
2364 # creating it if it does not exist already. You can give configure
2365 # the --cache-file=FILE option to use a different cache file; that is
2366 # what configure does when it calls configure scripts in
2367 # subdirectories, so they share the cache.
2368 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2369 # config.status only pays attention to the cache file if you give it the
2370 # --recheck option to rerun configure.
2373 # The following way of writing the cache mishandles newlines in values,
2374 # but we know of no workaround that is simple, portable, and efficient.
2375 # So, don't put newlines in cache variables' values.
2376 # Ultrix sh set writes to stderr and can't be redirected directly,
2377 # and sets the high bit in the cache file unless we assign to the vars.
2379 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2381 # `set' does not quote correctly, so add quotes (double-quote substitution
2382 # turns \\\\ into \\, and sed turns \\ into \).
2384 -e "s/'/'\\\\''/g" \
2385 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2388 # `set' quotes correctly as required by POSIX, so do not add quotes.
2389 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2392 if cmp -s $cache_file confcache; then
2395 if test -w $cache_file; then
2396 echo "updating cache $cache_file"
2397 cat confcache > $cache_file
2399 echo "not updating unwritable cache $cache_file"
2404 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2407 # Let make expand exec_prefix.
2408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2410 # Any assignment to VPATH causes Sun make to only execute
2411 # the first set of double-colon rules, so remove it if not needed.
2412 # If there is a colon in the path, we need to keep it.
2413 if test "x$srcdir" = x.; then
2414 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2417 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2419 DEFS=-DHAVE_CONFIG_H
2421 # Without the "./", some shells look in PATH for config.status.
2422 : ${CONFIG_STATUS=./config.status}
2424 echo creating $CONFIG_STATUS
2425 rm -f $CONFIG_STATUS
2426 cat > $CONFIG_STATUS <<EOF
2428 # Generated automatically by configure.
2429 # Run this file to recreate the current configuration.
2430 # This directory was configured as follows,
2431 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2433 # $0 $ac_configure_args
2435 # Compiler output produced by configure, useful for debugging
2436 # configure, is in ./config.log if it exists.
2438 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2441 case "\$ac_option" in
2442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2443 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2444 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2445 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2446 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2448 -help | --help | --hel | --he | --h)
2449 echo "\$ac_cs_usage"; exit 0 ;;
2450 *) echo "\$ac_cs_usage"; exit 1 ;;
2454 ac_given_srcdir=$srcdir
2455 ac_given_INSTALL="$INSTALL"
2457 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2459 cat >> $CONFIG_STATUS <<EOF
2461 # Protect against being on the right side of a sed subst in config.status.
2462 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2463 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2467 s%@CFLAGS@%$CFLAGS%g
2468 s%@CPPFLAGS@%$CPPFLAGS%g
2469 s%@CXXFLAGS@%$CXXFLAGS%g
2470 s%@FFLAGS@%$FFLAGS%g
2472 s%@LDFLAGS@%$LDFLAGS%g
2474 s%@exec_prefix@%$exec_prefix%g
2475 s%@prefix@%$prefix%g
2476 s%@program_transform_name@%$program_transform_name%g
2477 s%@bindir@%$bindir%g
2478 s%@sbindir@%$sbindir%g
2479 s%@libexecdir@%$libexecdir%g
2480 s%@datadir@%$datadir%g
2481 s%@sysconfdir@%$sysconfdir%g
2482 s%@sharedstatedir@%$sharedstatedir%g
2483 s%@localstatedir@%$localstatedir%g
2484 s%@libdir@%$libdir%g
2485 s%@includedir@%$includedir%g
2486 s%@oldincludedir@%$oldincludedir%g
2487 s%@infodir@%$infodir%g
2488 s%@mandir@%$mandir%g
2489 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2490 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2491 s%@INSTALL_DATA@%$INSTALL_DATA%g
2492 s%@PACKAGE@%$PACKAGE%g
2493 s%@VERSION@%$VERSION%g
2494 s%@ACLOCAL@%$ACLOCAL%g
2495 s%@AUTOCONF@%$AUTOCONF%g
2496 s%@AUTOMAKE@%$AUTOMAKE%g
2497 s%@AUTOHEADER@%$AUTOHEADER%g
2498 s%@MAKEINFO@%$MAKEINFO%g
2499 s%@SET_MAKE@%$SET_MAKE%g
2500 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2501 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2504 s%@host_alias@%$host_alias%g
2505 s%@host_cpu@%$host_cpu%g
2506 s%@host_vendor@%$host_vendor%g
2507 s%@host_os@%$host_os%g
2509 s%@build_alias@%$build_alias%g
2510 s%@build_cpu@%$build_cpu%g
2511 s%@build_vendor@%$build_vendor%g
2512 s%@build_os@%$build_os%g
2518 s%@RANLIB@%$RANLIB%g
2519 s%@DLLTOOL@%$DLLTOOL%g
2521 s%@OBJDUMP@%$OBJDUMP%g
2522 s%@LIBTOOL@%$LIBTOOL%g
2524 s%@CXXCPP@%$CXXCPP%g
2525 s%@EXEEXT@%$EXEEXT%g
2526 s%@sidtarget_arm@%$sidtarget_arm%g
2527 s%@SIDTARGET_ARM_TRUE@%$SIDTARGET_ARM_TRUE%g
2528 s%@SIDTARGET_ARM_FALSE@%$SIDTARGET_ARM_FALSE%g
2529 s%@sidtarget_mips@%$sidtarget_mips%g
2530 s%@SIDTARGET_MIPS_TRUE@%$SIDTARGET_MIPS_TRUE%g
2531 s%@SIDTARGET_MIPS_FALSE@%$SIDTARGET_MIPS_FALSE%g
2532 s%@sidtarget_m32r@%$sidtarget_m32r%g
2533 s%@SIDTARGET_M32R_TRUE@%$SIDTARGET_M32R_TRUE%g
2534 s%@SIDTARGET_M32R_FALSE@%$SIDTARGET_M32R_FALSE%g
2535 s%@sidtarget_m68k@%$sidtarget_m68k%g
2536 s%@SIDTARGET_M68K_TRUE@%$SIDTARGET_M68K_TRUE%g
2537 s%@SIDTARGET_M68K_FALSE@%$SIDTARGET_M68K_FALSE%g
2538 s%@sidtarget_ppc@%$sidtarget_ppc%g
2539 s%@SIDTARGET_PPC_TRUE@%$SIDTARGET_PPC_TRUE%g
2540 s%@SIDTARGET_PPC_FALSE@%$SIDTARGET_PPC_FALSE%g
2541 s%@subdirs@%$subdirs%g
2542 s%@cpu_subdirs@%$cpu_subdirs%g
2543 s%@cpu_incl@%$cpu_incl%g
2544 s%@cpu_libs@%$cpu_libs%g
2549 cat >> $CONFIG_STATUS <<\EOF
2551 # Split the substitutions into bite-sized pieces for seds with
2552 # small command number limits, like on Digital OSF/1 and HP-UX.
2553 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2554 ac_file=1 # Number of current file.
2555 ac_beg=1 # First line for current file.
2556 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2559 while $ac_more_lines; do
2560 if test $ac_beg -gt 1; then
2561 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2563 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2565 if test ! -s conftest.s$ac_file; then
2567 rm -f conftest.s$ac_file
2569 if test -z "$ac_sed_cmds"; then
2570 ac_sed_cmds="sed -f conftest.s$ac_file"
2572 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2574 ac_file=`expr $ac_file + 1`
2576 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2579 if test -z "$ac_sed_cmds"; then
2584 cat >> $CONFIG_STATUS <<EOF
2586 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2588 cat >> $CONFIG_STATUS <<\EOF
2589 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2590 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2592 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2593 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2594 *) ac_file_in="${ac_file}.in" ;;
2597 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2599 # Remove last slash and all that follows it. Not all systems have dirname.
2600 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2601 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2602 # The file is in a subdirectory.
2603 test ! -d "$ac_dir" && mkdir "$ac_dir"
2604 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2605 # A "../" for each directory in $ac_dir_suffix.
2606 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2608 ac_dir_suffix= ac_dots=
2611 case "$ac_given_srcdir" in
2613 if test -z "$ac_dots"; then top_srcdir=.
2614 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2615 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2617 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2618 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2621 case "$ac_given_INSTALL" in
2622 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2623 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2626 echo creating "$ac_file"
2628 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2630 *Makefile*) ac_comsub="1i\\
2631 # $configure_input" ;;
2635 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2637 s%@configure_input@%$configure_input%g
2638 s%@srcdir@%$srcdir%g
2639 s%@top_srcdir@%$top_srcdir%g
2640 s%@INSTALL@%$INSTALL%g
2641 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2645 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2646 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2648 # ac_d sets the value in "#define NAME VALUE" lines.
2649 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2650 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2653 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2654 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2655 ac_uB='\([ ]\)%\1#\2define\3'
2658 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2659 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2660 ac_eB='$%\1#\2define\3'
2664 if test "${CONFIG_HEADERS+set}" != set; then
2666 cat >> $CONFIG_STATUS <<EOF
2667 CONFIG_HEADERS="config.h:config.in"
2669 cat >> $CONFIG_STATUS <<\EOF
2671 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2672 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2674 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2675 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2676 *) ac_file_in="${ac_file}.in" ;;
2679 echo creating $ac_file
2681 rm -f conftest.frag conftest.in conftest.out
2682 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2683 cat $ac_file_inputs > conftest.in
2687 # Transform confdefs.h into a sed script conftest.vals that substitutes
2688 # the proper values into config.h.in to produce config.h. And first:
2689 # Protect against being on the right side of a sed subst in config.status.
2690 # Protect against being in an unquoted here document in config.status.
2692 cat > conftest.hdr <<\EOF
2695 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2699 sed -n -f conftest.hdr confdefs.h > conftest.vals
2702 # This sed command replaces #undef with comments. This is necessary, for
2703 # example, in the case of _POSIX_SOURCE, which is predefined and required
2704 # on some systems where configure will not decide to define it.
2705 cat >> conftest.vals <<\EOF
2706 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2709 # Break up conftest.vals because some shells have a limit on
2710 # the size of here documents, and old seds have small limits too.
2715 ac_lines=`grep -c . conftest.vals`
2716 # grep -c gives empty output for an empty file on some AIX systems.
2717 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2718 # Write a limited-size here document to conftest.frag.
2719 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2720 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2722 sed -f conftest.frag conftest.in > conftest.out
2724 mv conftest.out conftest.in
2726 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2728 mv conftest.tail conftest.vals
2732 cat >> $CONFIG_STATUS <<\EOF
2733 rm -f conftest.frag conftest.h
2734 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2735 cat conftest.in >> conftest.h
2737 if cmp -s $ac_file conftest.h 2>/dev/null; then
2738 echo "$ac_file is unchanged"
2741 # Remove last slash and all that follows it. Not all systems have dirname.
2742 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2743 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2744 # The file is in a subdirectory.
2745 test ! -d "$ac_dir" && mkdir "$ac_dir"
2748 mv conftest.h $ac_file
2753 cat >> $CONFIG_STATUS <<EOF
2757 cat >> $CONFIG_STATUS <<\EOF
2758 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2762 chmod +x $CONFIG_STATUS
2763 rm -fr confdefs* $ac_clean_files
2764 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2766 if test "$no_recursion" != yes; then
2768 # Remove --cache-file and --srcdir arguments so they do not pile up.
2769 ac_sub_configure_args=
2771 for ac_arg in $ac_configure_args; do
2772 if test -n "$ac_prev"; then
2777 -cache-file | --cache-file | --cache-fil | --cache-fi \
2778 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2779 ac_prev=cache_file ;;
2780 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2781 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2783 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2785 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2787 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2791 for ac_config_dir in $cpu_subdirs; do
2793 # Do not complain, so a configure script can configure whichever
2794 # parts of a large source tree are present.
2795 if test ! -d $srcdir/$ac_config_dir; then
2799 echo configuring in $ac_config_dir
2804 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2806 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2814 # A "../" for each directory in /$ac_config_dir.
2815 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2818 .) # No --srcdir option. We are building in place.
2819 ac_sub_srcdir=$srcdir ;;
2820 /*) # Absolute path.
2821 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2823 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2826 # Check for guested configure; otherwise get Cygnus style configure.
2827 if test -f $ac_sub_srcdir/configure; then
2828 ac_sub_configure=$ac_sub_srcdir/configure
2829 elif test -f $ac_sub_srcdir/configure.in; then
2830 ac_sub_configure=$ac_configure
2832 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2836 # The recursion is here.
2837 if test -n "$ac_sub_configure"; then
2839 # Make the cache file name correct relative to the subdirectory.
2840 case "$cache_file" in
2841 /*) ac_sub_cache_file=$cache_file ;;
2843 ac_sub_cache_file="$ac_dots$cache_file" ;;
2845 case "$ac_given_INSTALL" in
2846 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2847 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2850 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2851 # The eval makes quoting arguments work.
2852 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2855 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }