2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libffi 2.1.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='libffi'
271 PACKAGE_TARNAME='libffi'
272 PACKAGE_VERSION='2.1'
273 PACKAGE_STRING='libffi 2.1'
274 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
276 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE ARM_TRUE ARM_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE CPP CPPFLAGS EGREP ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir tool_include_dir gcc_version LIBOBJS LTLIBOBJS'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CPP_set=${CPP+set}
718 ac_env_CPP_value=$CPP
719 ac_cv_env_CPP_set=${CPP+set}
720 ac_cv_env_CPP_value=$CPP
721 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
722 ac_env_CPPFLAGS_value=$CPPFLAGS
723 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
724 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
727 # Report the --help message.
729 if test "$ac_init_help" = "long"; then
730 # Omit some internal or obsolete options to make the list less imposing.
731 # This message is too long to be a string in the A/UX 3.1 sh.
733 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
735 Usage: $0 [OPTION]... [VAR=VALUE]...
737 To assign environment variables (e.g., CC, CFLAGS...), specify them as
738 VAR=VALUE. See below for descriptions of some of the useful variables.
740 Defaults for the options are specified in brackets.
743 -h, --help display this help and exit
744 --help=short display options specific to this package
745 --help=recursive display the short help of all the included packages
746 -V, --version display version information and exit
747 -q, --quiet, --silent do not print \`checking...' messages
748 --cache-file=FILE cache test results in FILE [disabled]
749 -C, --config-cache alias for \`--cache-file=config.cache'
750 -n, --no-create do not create output files
751 --srcdir=DIR find the sources in DIR [configure dir or \`..']
756 Installation directories:
757 --prefix=PREFIX install architecture-independent files in PREFIX
759 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
762 By default, \`make install' will install all the files in
763 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
764 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
765 for instance \`--prefix=\$HOME'.
767 For better control, use the options below.
769 Fine tuning of the installation directories:
770 --bindir=DIR user executables [EPREFIX/bin]
771 --sbindir=DIR system admin executables [EPREFIX/sbin]
772 --libexecdir=DIR program executables [EPREFIX/libexec]
773 --datadir=DIR read-only architecture-independent data [PREFIX/share]
774 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
775 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
776 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
777 --libdir=DIR object code libraries [EPREFIX/lib]
778 --includedir=DIR C header files [PREFIX/include]
779 --oldincludedir=DIR C header files for non-gcc [/usr/include]
780 --infodir=DIR info documentation [PREFIX/info]
781 --mandir=DIR man documentation [PREFIX/man]
787 --program-prefix=PREFIX prepend PREFIX to installed program names
788 --program-suffix=SUFFIX append SUFFIX to installed program names
789 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
792 --build=BUILD configure for building on BUILD [guessed]
793 --host=HOST cross-compile to build programs to run on HOST [BUILD]
794 --target=TARGET configure for building compilers for TARGET [HOST]
798 if test -n "$ac_init_help"; then
799 case $ac_init_help in
800 short | recursive ) echo "Configuration of libffi 2.1:";;
805 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
806 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
807 --enable-multilib build many library versions (default)
808 --disable-dependency-tracking Speeds up one-time builds
809 --enable-dependency-tracking Do not reject slow dependency extractors
810 --enable-shared=PKGS build shared libraries default=yes
811 --enable-static=PKGS build static libraries default=yes
812 --enable-fast-install=PKGS optimize for fast installation default=yes
813 --disable-libtool-lock avoid locking (might break parallel builds)
814 --enable-maintainer-mode enable make rules and dependencies not useful
815 (and sometimes confusing) to the casual installer
816 --enable-debug debugging mode
817 --disable-structs omit code for struct support
818 --disable-raw-api make the raw api unavailable
819 --enable-purify-safety purify-safe mode
822 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
823 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
824 --with-gnu-ld assume the C compiler uses GNU ld default=no
825 --with-pic try to use only PIC/non-PIC objects default=use both
827 Some influential environment variables:
828 CC C compiler command
829 CFLAGS C compiler flags
830 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
831 nonstandard directory <lib dir>
832 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
833 headers in a nonstandard directory <include dir>
836 Use these variables to override the choices made by `configure' or to help
837 it to find libraries and programs with nonstandard names/locations.
839 Report bugs to <http://gcc.gnu.org/bugs.html>.
843 if test "$ac_init_help" = "recursive"; then
844 # If there are subdirs, report their specific --help.
846 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
847 test -d $ac_dir || continue
850 if test "$ac_dir" != .; then
851 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
852 # A "../" for each directory in $ac_dir_suffix.
853 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
855 ac_dir_suffix= ac_top_builddir=
859 .) # No --srcdir option. We are building in place.
861 if test -z "$ac_top_builddir"; then
864 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
866 [\\/]* | ?:[\\/]* ) # Absolute path.
867 ac_srcdir=$srcdir$ac_dir_suffix;
868 ac_top_srcdir=$srcdir ;;
870 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
871 ac_top_srcdir=$ac_top_builddir$srcdir ;;
874 # Do not use `cd foo && pwd` to compute absolute paths, because
875 # the directories may not exist.
877 .) ac_abs_builddir="$ac_dir";;
880 .) ac_abs_builddir=`pwd`;;
881 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
882 *) ac_abs_builddir=`pwd`/"$ac_dir";;
885 case $ac_abs_builddir in
886 .) ac_abs_top_builddir=${ac_top_builddir}.;;
888 case ${ac_top_builddir}. in
889 .) ac_abs_top_builddir=$ac_abs_builddir;;
890 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
891 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
894 case $ac_abs_builddir in
895 .) ac_abs_srcdir=$ac_srcdir;;
898 .) ac_abs_srcdir=$ac_abs_builddir;;
899 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
900 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
903 case $ac_abs_builddir in
904 .) ac_abs_top_srcdir=$ac_top_srcdir;;
906 case $ac_top_srcdir in
907 .) ac_abs_top_srcdir=$ac_abs_builddir;;
908 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
909 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
936 generated by GNU Autoconf 2.59
938 Copyright (C) 2003 Free Software Foundation, Inc.
939 This configure script is free software; the Free Software Foundation
940 gives unlimited permission to copy, distribute and modify it.
946 This file contains any messages produced by compilers while
947 running configure, to aid debugging if configure makes a mistake.
949 It was created by libffi $as_me 2.1, which was
950 generated by GNU Autoconf 2.59. Invocation command line was
961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
984 test -z "$as_dir" && as_dir=.
1000 # Keep a trace of the command line.
1001 # Strip out --no-create and --no-recursion so they do not pile up.
1002 # Strip out --silent because we don't want to record it for future runs.
1003 # Also quote any args containing shell meta-characters.
1004 # Make two passes to allow for proper duplicate-argument suppression.
1009 ac_must_keep_next=false
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1038 -* ) ac_must_keep_next=true ;;
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1048 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051 # When interrupted or exit'd, cleanup temporary files, and complete
1052 # config.log. We remove comments because anyway the quotes in there
1053 # would cause problems or look ugly.
1054 # WARNING: Be sure not to use single quotes in there, as some shells,
1055 # such as our DU 5.0 friend, will then `close' the trap.
1056 trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
1062 ## ---------------- ##
1063 ## Cache variables. ##
1064 ## ---------------- ##
1067 # The following way of writing the cache mishandles newlines in values,
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085 ## ----------------- ##
1086 ## Output variables. ##
1087 ## ----------------- ##
1090 for ac_var in $ac_subst_vars
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1097 if test -n "$ac_subst_files"; then
1104 for ac_var in $ac_subst_files
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1112 if test -s confdefs.h; then
1119 sed "/^$/d" confdefs.h | sort
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1126 rm -f core *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1130 for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1136 rm -rf conftest* confdefs.h
1137 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140 # Predefined preprocessor variables.
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_NAME "$PACKAGE_NAME"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_STRING "$PACKAGE_STRING"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1167 # Let the site file select an alternate cache file if it wants to.
1168 # Prefer explicitly selected file to automatically selected ones.
1169 if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1179 echo "$as_me: loading site script $ac_site_file" >&6;}
1180 sed 's/^/| /' "$ac_site_file" >&5
1185 if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1190 echo "$as_me: loading cache $cache_file" >&6;}
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1198 echo "$as_me: creating cache $cache_file" >&6;}
1202 # Check that the precious variables saved in the cache have kept the same
1204 ac_cache_corrupted=false
1205 for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1218 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1224 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1226 echo "$as_me: former value: $ac_old_val" >&2;}
1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1228 echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1232 # Pass precious variables to config.status.
1233 if test "$ac_new_set" = set; then
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1245 if $ac_cache_corrupted; then
1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1247 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1249 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1254 ac_cpp='$CPP $CPPFLAGS'
1255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1285 ac_config_headers="$ac_config_headers fficonfig.h"
1288 # Default to --enable-multilib
1289 # Check whether --enable-multilib or --disable-multilib was given.
1290 if test "${enable_multilib+set}" = set; then
1291 enableval="$enable_multilib"
1292 case "$enableval" in
1293 yes) multilib=yes ;;
1295 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1296 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1297 { (exit 1); exit 1; }; } ;;
1303 # We may get other options which we leave undocumented:
1304 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1305 # See config-ml.in if you want the gory details.
1307 if test "$srcdir" = "."; then
1308 if test "$with_target_subdir" != "."; then
1309 multi_basedir="$srcdir/$with_multisrctop../.."
1311 multi_basedir="$srcdir/$with_multisrctop.."
1314 multi_basedir="$srcdir/.."
1318 ac_config_commands="$ac_config_commands default-1"
1321 # This is for automake
1323 for ac_dir in .. $srcdir/..; do
1324 if test -f $ac_dir/install-sh; then
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 elif test -f $ac_dir/install.sh; then
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 elif test -f $ac_dir/shtool; then
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1341 { (exit 1); exit 1; }; }
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348 # and this is for autoconf
1350 for ac_dir in ${multi_basedir}; do
1351 if test -f $ac_dir/install-sh; then
1353 ac_install_sh="$ac_aux_dir/install-sh -c"
1355 elif test -f $ac_dir/install.sh; then
1357 ac_install_sh="$ac_aux_dir/install.sh -c"
1359 elif test -f $ac_dir/shtool; then
1361 ac_install_sh="$ac_aux_dir/shtool install -c"
1365 if test -z "$ac_aux_dir"; then
1366 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1368 { (exit 1); exit 1; }; }
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376 # Make sure we can run config.sub.
1377 $ac_config_sub sun4 >/dev/null 2>&1 ||
1378 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1379 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1380 { (exit 1); exit 1; }; }
1382 echo "$as_me:$LINENO: checking build system type" >&5
1383 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1384 if test "${ac_cv_build+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1387 ac_cv_build_alias=$build_alias
1388 test -z "$ac_cv_build_alias" &&
1389 ac_cv_build_alias=`$ac_config_guess`
1390 test -z "$ac_cv_build_alias" &&
1391 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1392 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1393 { (exit 1); exit 1; }; }
1394 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1400 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1401 echo "${ECHO_T}$ac_cv_build" >&6
1403 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408 echo "$as_me:$LINENO: checking host system type" >&5
1409 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1410 if test "${ac_cv_host+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_host_alias=$host_alias
1414 test -z "$ac_cv_host_alias" &&
1415 ac_cv_host_alias=$ac_cv_build_alias
1416 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1423 echo "${ECHO_T}$ac_cv_host" >&6
1425 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 echo "$as_me:$LINENO: checking target system type" >&5
1431 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1432 if test "${ac_cv_target+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 ac_cv_target_alias=$target_alias
1436 test "x$ac_cv_target_alias" = "x" &&
1437 ac_cv_target_alias=$ac_cv_host_alias
1438 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1445 echo "${ECHO_T}$ac_cv_target" >&6
1446 target=$ac_cv_target
1447 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 # The aliases save the names the user supplied, while $host etc.
1453 # will get canonicalized.
1454 test -n "$target_alias" &&
1455 test "$program_prefix$program_suffix$program_transform_name" = \
1457 program_prefix=${target_alias}-
1458 target_alias=${target_alias-$host_alias}
1460 am__api_version="1.7"
1461 # Find a good install program. We prefer a C program (faster),
1462 # so one script is as good as another. But avoid the broken or
1463 # incompatible versions:
1464 # SysV /etc/install, /usr/sbin/install
1465 # SunOS /usr/etc/install
1466 # IRIX /sbin/install
1468 # AmigaOS /C/install, which installs bootblocks on floppy discs
1469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1472 # OS/2's system install, which has a completely different semantic
1473 # ./install, which can be erroneously created by make from ./install.sh.
1474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1476 if test -z "$INSTALL"; then
1477 if test "${ac_cv_path_install+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir=.
1485 # Account for people who put trailing slashes in PATH elements.
1487 ./ | .// | /cC/* | \
1488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1492 # OSF1 and SCO ODT 3.0 have their own names for install.
1493 # Don't use installbsd from OSF since it installs stuff as root
1495 for ac_prog in ginstall scoinst install; do
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1498 if test $ac_prog = install &&
1499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1500 # AIX install. It has an incompatible calling convention.
1502 elif test $ac_prog = install &&
1503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1504 # program-specific install script used by HP pwplus--don't use.
1507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1519 if test "${ac_cv_path_install+set}" = set; then
1520 INSTALL=$ac_cv_path_install
1522 # As a last resort, use the slow shell script. We don't cache a
1523 # path for INSTALL within a source directory, because that will
1524 # break other packages using the cache if that directory is
1525 # removed, or if the path is relative.
1526 INSTALL=$ac_install_sh
1529 echo "$as_me:$LINENO: result: $INSTALL" >&5
1530 echo "${ECHO_T}$INSTALL" >&6
1532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1533 # It thinks the first close brace ends the variable substitution.
1534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1540 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1541 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1544 echo timestamp > conftest.file
1545 # Do `set' in a subshell so we don't clobber the current shell's
1546 # arguments. Must try -L first in case configure is actually a
1547 # symlink; some systems play weird games with the mod time of symlinks
1548 # (eg FreeBSD returns the mod time of the symlink's containing
1551 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1552 if test "$*" = "X"; then
1554 set X `ls -t $srcdir/configure conftest.file`
1557 if test "$*" != "X $srcdir/configure conftest.file" \
1558 && test "$*" != "X conftest.file $srcdir/configure"; then
1560 # If neither matched, then we have a broken ls. This can happen
1561 # if, for instance, CONFIG_SHELL is bash and it inherits a
1562 # broken ls alias from the environment. This has actually
1563 # happened. Such a system could not be considered "sane".
1564 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1565 alias in your environment" >&5
1566 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1567 alias in your environment" >&2;}
1568 { (exit 1); exit 1; }; }
1571 test "$2" = conftest.file
1577 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1578 Check your system clock" >&5
1579 echo "$as_me: error: newly created file is older than distributed files!
1580 Check your system clock" >&2;}
1581 { (exit 1); exit 1; }; }
1583 echo "$as_me:$LINENO: result: yes" >&5
1584 echo "${ECHO_T}yes" >&6
1585 test "$program_prefix" != NONE &&
1586 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1587 # Use a double $ so make ignores it.
1588 test "$program_suffix" != NONE &&
1589 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1590 # Double any \ or $. echo might interpret backslashes.
1591 # By default was `s,x,x', remove it if useless.
1592 cat <<\_ACEOF >conftest.sed
1593 s/[\\$]/&&/g;s/;s,x,x,$//
1595 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1599 # expand $ac_aux_dir to an absolute path
1600 am_aux_dir=`cd $ac_aux_dir && pwd`
1602 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1603 # Use eval to expand $SHELL
1604 if eval "$MISSING --run true"; then
1605 am_missing_run="$MISSING --run "
1608 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1609 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1612 for ac_prog in gawk mawk nawk awk
1614 # Extract the first word of "$ac_prog", so it can be a program name with args.
1615 set dummy $ac_prog; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_AWK+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 if test -n "$AWK"; then
1622 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_AWK="$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 if test -n "$AWK"; then
1642 echo "$as_me:$LINENO: result: $AWK" >&5
1643 echo "${ECHO_T}$AWK" >&6
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1649 test -n "$AWK" && break
1652 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1653 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1654 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1655 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 cat >conftest.make <<\_ACEOF
1660 @echo 'ac_maketemp="$(MAKE)"'
1662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1663 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1664 if test -n "$ac_maketemp"; then
1665 eval ac_cv_prog_make_${ac_make}_set=yes
1667 eval ac_cv_prog_make_${ac_make}_set=no
1671 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1672 echo "$as_me:$LINENO: result: yes" >&5
1673 echo "${ECHO_T}yes" >&6
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 SET_MAKE="MAKE=${MAKE-make}"
1681 rm -rf .tst 2>/dev/null
1682 mkdir .tst 2>/dev/null
1683 if test -d .tst; then
1688 rmdir .tst 2>/dev/null
1690 # test to see if srcdir already configured
1691 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1692 test -f $srcdir/config.status; then
1693 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1694 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1695 { (exit 1); exit 1; }; }
1698 # test whether we have cygpath
1699 if test -z "$CYGPATH_W"; then
1700 if (cygpath --version) >/dev/null 2>/dev/null; then
1701 CYGPATH_W='cygpath -w'
1708 # Define the identity of the package.
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE "$PACKAGE"
1718 cat >>confdefs.h <<_ACEOF
1719 #define VERSION "$VERSION"
1722 # Some tools Automake needs.
1724 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1727 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1730 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1733 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1736 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1739 AMTAR=${AMTAR-"${am_missing_run}tar"}
1741 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1743 # Installed binaries are usually stripped using `strip' when the user
1744 # run `make install-strip'. However `strip' might not be the right
1745 # tool to use in cross-compilation environments, therefore Automake
1746 # will honor the `STRIP' environment variable to overrule this program.
1747 if test "$cross_compiling" != no; then
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1750 set dummy ${ac_tool_prefix}strip; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_STRIP+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 if test -n "$STRIP"; then
1757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 STRIP=$ac_cv_prog_STRIP
1776 if test -n "$STRIP"; then
1777 echo "$as_me:$LINENO: result: $STRIP" >&5
1778 echo "${ECHO_T}$STRIP" >&6
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_STRIP"; then
1787 # Extract the first word of "strip", so it can be a program name with args.
1788 set dummy strip; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$ac_ct_STRIP"; then
1795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_STRIP="strip"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1815 if test -n "$ac_ct_STRIP"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1817 echo "${ECHO_T}$ac_ct_STRIP" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1825 STRIP="$ac_cv_prog_STRIP"
1829 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1831 # We need awk for the "check" target. The system "awk" is bad on
1837 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1838 # We must force CC to /not/ be precious variables; otherwise
1839 # the wrong, non-multilib-adjusted value will be used in multilibs.
1840 # As a side effect, we have to subst CFLAGS ourselves.
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1851 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1886 if test -z "$ac_cv_prog_CC"; then
1888 # Extract the first word of "gcc", so it can be a program name with args.
1889 set dummy gcc; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC="gcc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1928 if test -z "$CC"; then
1929 if test -n "$ac_tool_prefix"; then
1930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1931 set dummy ${ac_tool_prefix}cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_CC="${ac_tool_prefix}cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test -n "$CC"; then
1958 echo "$as_me:$LINENO: result: $CC" >&5
1959 echo "${ECHO_T}$CC" >&6
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1966 if test -z "$ac_cv_prog_CC"; then
1968 # Extract the first word of "cc", so it can be a program name with args.
1969 set dummy cc; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$ac_ct_CC"; then
1976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 ac_cv_prog_ac_ct_CC="cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1995 if test -n "$ac_ct_CC"; then
1996 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1997 echo "${ECHO_T}$ac_ct_CC" >&6
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2009 if test -z "$CC"; then
2010 # Extract the first word of "cc", so it can be a program name with args.
2011 set dummy cc; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2029 ac_prog_rejected=yes
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test $ac_prog_rejected = yes; then
2040 # We found a bogon in the path, so make sure we never use it.
2041 set dummy $ac_cv_prog_CC
2043 if test $# != 0; then
2044 # We chose a different compiler from the bogus one.
2045 # However, it has the same basename, so the bogon will be chosen
2046 # first if we set CC to just the basename; use the full file name.
2048 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2054 if test -n "$CC"; then
2055 echo "$as_me:$LINENO: result: $CC" >&5
2056 echo "${ECHO_T}$CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2063 if test -z "$CC"; then
2064 if test -n "$ac_tool_prefix"; then
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 if test -n "$CC"; then
2095 echo "$as_me:$LINENO: result: $CC" >&5
2096 echo "${ECHO_T}$CC" >&6
2098 echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2102 test -n "$CC" && break
2105 if test -z "$CC"; then
2109 # Extract the first word of "$ac_prog", so it can be a program name with args.
2110 set dummy $ac_prog; ac_word=$2
2111 echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 if test -n "$ac_ct_CC"; then
2117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2126 ac_cv_prog_ac_ct_CC="$ac_prog"
2127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2136 if test -n "$ac_ct_CC"; then
2137 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2138 echo "${ECHO_T}$ac_ct_CC" >&6
2140 echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6
2144 test -n "$ac_ct_CC" && break
2153 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: no acceptable C compiler found in \$PATH
2156 See \`config.log' for more details." >&2;}
2157 { (exit 1); exit 1; }; }
2159 # Provide some information about the compiler.
2160 echo "$as_me:$LINENO:" \
2161 "checking for C compiler version" >&5
2162 ac_compiler=`set X $ac_compile; echo $2`
2163 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2164 (eval $ac_compiler --version </dev/null >&5) 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }
2168 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2169 (eval $ac_compiler -v </dev/null >&5) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2174 (eval $ac_compiler -V </dev/null >&5) 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2179 cat >conftest.$ac_ext <<_ACEOF
2182 cat confdefs.h >>conftest.$ac_ext
2183 cat >>conftest.$ac_ext <<_ACEOF
2184 /* end confdefs.h. */
2194 ac_clean_files_save=$ac_clean_files
2195 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2196 # Try to create an executable without -o first, disregard a.out.
2197 # It will help us diagnose broken compilers, and finding out an intuition
2199 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2200 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2201 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2202 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2203 (eval $ac_link_default) 2>&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; then
2207 # Find the output, starting from the most likely. This scheme is
2208 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2211 # Be careful to initialize this variable, since it used to be cached.
2212 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2214 # b.out is created by i960 compilers.
2215 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2217 test -f "$ac_file" || continue
2219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2222 # This is the source file.
2225 # We found the default executable, but exeext='' is most
2229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230 # FIXME: I believe we export ac_cv_exeext for Libtool,
2231 # but it would be cool to find out if it's true. Does anybody
2232 # maintain Libtool? --akim.
2240 echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2243 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: C compiler cannot create executables
2246 See \`config.log' for more details." >&2;}
2247 { (exit 77); exit 77; }; }
2250 ac_exeext=$ac_cv_exeext
2251 echo "$as_me:$LINENO: result: $ac_file" >&5
2252 echo "${ECHO_T}$ac_file" >&6
2254 # Check the compiler produces executables we can run. If not, either
2255 # the compiler is broken, or we cross compile.
2256 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2257 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2258 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2259 # If not cross compiling, check that we can run a simple program.
2260 if test "$cross_compiling" != yes; then
2261 if { ac_try='./$ac_file'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2269 if test "$cross_compiling" = maybe; then
2272 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot run C compiled programs.
2276 If you meant to cross compile, use \`--host'.
2277 See \`config.log' for more details." >&2;}
2278 { (exit 1); exit 1; }; }
2282 echo "$as_me:$LINENO: result: yes" >&5
2283 echo "${ECHO_T}yes" >&6
2285 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2286 ac_clean_files=$ac_clean_files_save
2287 # Check the compiler produces executables we can run. If not, either
2288 # the compiler is broken, or we cross compile.
2289 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2290 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2291 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2292 echo "${ECHO_T}$cross_compiling" >&6
2294 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2295 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2297 (eval $ac_link) 2>&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; then
2301 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2302 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2303 # work properly (i.e., refer to `conftest.exe'), while it won't with
2305 for ac_file in conftest.exe conftest conftest.*; do
2306 test -f "$ac_file" || continue
2308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2309 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2323 rm -f conftest$ac_cv_exeext
2324 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325 echo "${ECHO_T}$ac_cv_exeext" >&6
2327 rm -f conftest.$ac_ext
2328 EXEEXT=$ac_cv_exeext
2330 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2332 if test "${ac_cv_objext+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 cat >conftest.$ac_ext <<_ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2350 rm -f conftest.o conftest.obj
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2376 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2377 echo "${ECHO_T}$ac_cv_objext" >&6
2378 OBJEXT=$ac_cv_objext
2380 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2381 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2382 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat >conftest.$ac_ext <<_ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2403 rm -f conftest.$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2407 grep -v '^ *+' conftest.er1 >conftest.err
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag"
2413 || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2436 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2437 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2438 GCC=`test $ac_compiler_gnu = yes && echo yes`
2439 ac_test_CFLAGS=${CFLAGS+set}
2440 ac_save_CFLAGS=$CFLAGS
2442 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2443 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2444 if test "${ac_cv_prog_cc_g+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 cat >conftest.$ac_ext <<_ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>conftest.er1
2466 grep -v '^ *+' conftest.er1 >conftest.err
2468 cat conftest.err >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -z "$ac_c_werror_flag"
2472 || test ! -s conftest.err'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; } &&
2478 { ac_try='test -s conftest.$ac_objext'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2486 echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2495 if test "$ac_test_CFLAGS" = set; then
2496 CFLAGS=$ac_save_CFLAGS
2497 elif test $ac_cv_prog_cc_g = yes; then
2498 if test "$GCC" = yes; then
2504 if test "$GCC" = yes; then
2510 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2511 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2512 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 ac_cv_prog_cc_stdc=no
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2525 #include <sys/types.h>
2526 #include <sys/stat.h>
2527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2528 struct buf { int x; };
2529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2530 static char *e (p, i)
2536 static char *f (char * (*g) (char **, int), char **p, ...)
2541 s = g (p, va_arg (v,int));
2546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2547 function prototypes and stuff, but not '\xHH' hex character constants.
2548 These don't provoke an error unfortunately, instead are silently treated
2549 as 'x'. The following induces an error, until -std1 is added to get
2550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2551 array size at least. It's necessary to write '\x00'==0 to get something
2552 that's true only with -std1. */
2553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2555 int test (int i, double x);
2556 struct s1 {int (*f) (int a);};
2557 struct s2 {int (*f) (double a);};
2558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2569 # Don't try gcc -ansi; that turns off useful extensions and
2570 # breaks some systems' header files.
2571 # AIX -qlanglvl=ansi
2572 # Ultrix and OSF/1 -std1
2573 # HP-UX 10.20 and later -Ae
2574 # HP-UX older versions -Aa -D_HPUX_SOURCE
2575 # SVR4 -Xc -D__EXTENSIONS__
2576 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2578 CC="$ac_save_CC $ac_arg"
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_prog_cc_stdc=$ac_arg
2604 echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2608 rm -f conftest.err conftest.$ac_objext
2610 rm -f conftest.$ac_ext conftest.$ac_objext
2615 case "x$ac_cv_prog_cc_stdc" in
2617 echo "$as_me:$LINENO: result: none needed" >&5
2618 echo "${ECHO_T}none needed" >&6 ;;
2620 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2621 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2622 CC="$CC $ac_cv_prog_cc_stdc" ;;
2625 # Some people use a C++ compiler to compile C. Since we use `exit',
2626 # in C++ we need to declare it. In case someone uses the same compiler
2627 # for both compiling C and C++ we need to have the C++ compiler decide
2628 # the declaration of exit, since it's the most demanding environment.
2629 cat >conftest.$ac_ext <<_ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>conftest.er1
2638 grep -v '^ *+' conftest.er1 >conftest.err
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 for ac_declaration in \
2658 'extern "C" void std::exit (int) throw (); using std::exit;' \
2659 'extern "C" void std::exit (int); using std::exit;' \
2660 'extern "C" void exit (int) throw ();' \
2661 'extern "C" void exit (int);' \
2664 cat >conftest.$ac_ext <<_ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>conftest.er1
2684 grep -v '^ *+' conftest.er1 >conftest.err
2686 cat conftest.err >&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -z "$ac_c_werror_flag"
2690 || test ! -s conftest.err'
2691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2704 echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710 cat >conftest.$ac_ext <<_ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756 if test -n "$ac_declaration"; then
2757 echo '#ifdef __cplusplus' >>confdefs.h
2758 echo $ac_declaration >>confdefs.h
2759 echo '#endif' >>confdefs.h
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773 DEPDIR="${am__leading_dot}deps"
2775 ac_config_commands="$ac_config_commands depfiles"
2778 am_make=${MAKE-make}
2779 cat > confinc << 'END'
2784 # If we don't find an include directive, just comment out the code.
2785 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2786 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2790 # First try GNU make style include.
2791 echo "include confinc" > confmf
2792 # We grep out `Entering directory' and `Leaving directory'
2793 # messages which can occur if `w' ends up in MAKEFLAGS.
2794 # In particular we don't look at `^make:' because GNU make might
2795 # be invoked under some other name (usually "gmake"), in which
2796 # case it prints its new name instead of `make'.
2797 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2802 # Now try BSD make style include.
2803 if test "$am__include" = "#"; then
2804 echo '.include "confinc"' > confmf
2805 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2806 am__include=.include
2813 echo "$as_me:$LINENO: result: $_am_result" >&5
2814 echo "${ECHO_T}$_am_result" >&6
2815 rm -f confinc confmf
2817 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2818 if test "${enable_dependency_tracking+set}" = set; then
2819 enableval="$enable_dependency_tracking"
2822 if test "x$enable_dependency_tracking" != xno; then
2823 am_depcomp="$ac_aux_dir/depcomp"
2828 if test "x$enable_dependency_tracking" != xno; then
2839 depcc="$CC" am_compiler_list=
2841 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2842 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2843 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2847 # We make a subdir and do the tests there. Otherwise we can end up
2848 # making bogus files that we don't know about and never remove. For
2849 # instance it was reported that on HP-UX the gcc test will end up
2850 # making a dummy file named `D' -- because `-MD' means `put the output
2853 # Copy depcomp to subdir because otherwise we won't find it if we're
2854 # using a relative directory.
2855 cp "$am_depcomp" conftest.dir
2857 # We will build objects and dependencies in a subdirectory because
2858 # it helps to detect inapplicable dependency modes. For instance
2859 # both Tru64's cc and ICC support -MD to output dependencies as a
2860 # side effect of compilation, but ICC will put the dependencies in
2861 # the current directory while Tru64 will put them in the object
2865 am_cv_CC_dependencies_compiler_type=none
2866 if test "$am_compiler_list" = ""; then
2867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2869 for depmode in $am_compiler_list; do
2870 # Setup a source with many dependencies, because some compilers
2871 # like to wrap large dependency lists on column 80 (with \), and
2872 # we should not choose a depcomp mode which is confused by this.
2874 # We need to recreate these files for each test, as the compiler may
2875 # overwrite some of them when testing with obscure command lines.
2876 # This happens at least with the AIX C compiler.
2878 for i in 1 2 3 4 5 6; do
2879 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2886 # after this tag, mechanisms are not by side-effect, so they'll
2887 # only be used when explicitly requested
2888 if test "x$enable_dependency_tracking" = xyes; then
2896 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2897 # mode. It turns out that the SunPro C++ compiler does not properly
2898 # handle `-M -o', and we need to detect this.
2899 if depmode=$depmode \
2900 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2901 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2902 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2903 >/dev/null 2>conftest.err &&
2904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2905 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2907 # icc doesn't choke on unknown options, it will just issue warnings
2908 # (even with -Werror). So we grep stderr for any message
2909 # that says an option was ignored.
2910 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2911 am_cv_CC_dependencies_compiler_type=$depmode
2920 am_cv_CC_dependencies_compiler_type=none
2924 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2925 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2931 test "x$enable_dependency_tracking" != xno \
2932 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2934 am__fastdepCC_FALSE='#'
2936 am__fastdepCC_TRUE='#'
2937 am__fastdepCC_FALSE=
2945 # By default we simply use the C compiler to build assembly code.
2948 # Set ASFLAGS if not already set.
2949 : ${CCASFLAGS='$(CFLAGS)'}
2952 if test "x$CC" != xcc; then
2953 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2954 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2956 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2957 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2959 set dummy $CC; ac_cc=`echo $2 |
2960 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2961 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 # Make sure it works both with $CC and with simple cc.
2980 # We do the test twice because some compilers refuse to overwrite an
2981 # existing .o file with -o, though they will create one.
2982 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2983 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); };
2994 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2995 if test "x$CC" != xcc; then
2996 # Test first that cc exists at all.
2997 if { ac_try='cc -c conftest.$ac_ext >&5'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3004 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); };
3018 # cc exists but doesn't like -o.
3019 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3024 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3029 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031 echo "${ECHO_T}yes" >&6
3033 echo "$as_me:$LINENO: result: no" >&5
3034 echo "${ECHO_T}no" >&6
3036 cat >>confdefs.h <<\_ACEOF
3037 #define NO_MINUS_C_MINUS_O 1
3042 # FIXME: we rely on the cache variable name because
3043 # there is no other way.
3045 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3046 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3047 # Losing compiler, so override with the script.
3048 # FIXME: It is wrong to rewrite CC.
3049 # But if we don't then we get into trouble of one sort or another.
3050 # A longer-term fix would be to have automake use am__CC in this case,
3051 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3052 CC="$am_aux_dir/compile $CC"
3055 # Check whether --enable-shared or --disable-shared was given.
3056 if test "${enable_shared+set}" = set; then
3057 enableval="$enable_shared"
3058 p=${PACKAGE-default}
3060 yes) enable_shared=yes ;;
3061 no) enable_shared=no ;;
3064 # Look at the argument we got. We use all the common list separators.
3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3066 for pkg in $enableval; do
3067 if test "X$pkg" = "X$p"; then
3077 # Check whether --enable-static or --disable-static was given.
3078 if test "${enable_static+set}" = set; then
3079 enableval="$enable_static"
3080 p=${PACKAGE-default}
3082 yes) enable_static=yes ;;
3083 no) enable_static=no ;;
3086 # Look at the argument we got. We use all the common list separators.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3088 for pkg in $enableval; do
3089 if test "X$pkg" = "X$p"; then
3099 # Check whether --enable-fast-install or --disable-fast-install was given.
3100 if test "${enable_fast_install+set}" = set; then
3101 enableval="$enable_fast_install"
3102 p=${PACKAGE-default}
3104 yes) enable_fast_install=yes ;;
3105 no) enable_fast_install=no ;;
3107 enable_fast_install=no
3108 # Look at the argument we got. We use all the common list separators.
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3110 for pkg in $enableval; do
3111 if test "X$pkg" = "X$p"; then
3112 enable_fast_install=yes
3119 enable_fast_install=yes
3122 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3123 if test "${with_gnu_ld+set}" = set; then
3124 withval="$with_gnu_ld"
3125 test "$withval" = no || with_gnu_ld=yes
3130 if test "$GCC" = yes; then
3131 # Check if gcc -print-prog-name=ld gives a path.
3132 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3133 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3136 # gcc leaves a trailing carriage return which upsets mingw
3137 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3139 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3142 # Accept absolute paths.
3143 [\\/]* | [A-Za-z]:[\\/]*)
3144 re_direlt='/[^/][^/]*/\.\./'
3145 # Canonicalize the path of ld
3146 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3147 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3148 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3150 test -z "$LD" && LD="$ac_prog"
3153 # If it fails, then pretend we aren't using GCC.
3157 # If it is relative, then search for the first ld in PATH.
3161 elif test "$with_gnu_ld" = yes; then
3162 echo "$as_me:$LINENO: checking for GNU ld" >&5
3163 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3165 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3166 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3168 if test "${lt_cv_path_LD+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if test -z "$LD"; then
3172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3173 for ac_dir in $PATH; do
3174 test -z "$ac_dir" && ac_dir=.
3175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3176 lt_cv_path_LD="$ac_dir/$ac_prog"
3177 # Check to see if the program is GNU ld. I'd rather use --version,
3178 # but apparently some GNU ld's only accept -v.
3179 # Break only if it was the GNU/non-GNU ld that we prefer.
3180 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3181 test "$with_gnu_ld" != no && break
3183 test "$with_gnu_ld" != yes && break
3189 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3194 if test -n "$LD"; then
3195 echo "$as_me:$LINENO: result: $LD" >&5
3196 echo "${ECHO_T}$LD" >&6
3198 echo "$as_me:$LINENO: result: no" >&5
3199 echo "${ECHO_T}no" >&6
3201 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3202 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3203 { (exit 1); exit 1; }; }
3204 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3205 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3206 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3210 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3211 lt_cv_prog_gnu_ld=yes
3213 lt_cv_prog_gnu_ld=no
3216 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3217 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3218 with_gnu_ld=$lt_cv_prog_gnu_ld
3221 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3222 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3223 if test "${lt_cv_ld_reload_flag+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 lt_cv_ld_reload_flag='-r'
3228 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3229 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3230 reload_flag=$lt_cv_ld_reload_flag
3231 test -n "$reload_flag" && reload_flag=" $reload_flag"
3233 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3234 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3235 if test "${lt_cv_path_NM+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 if test -n "$NM"; then
3239 # Let the user override the test.
3242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3243 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3244 test -z "$ac_dir" && ac_dir=.
3245 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3246 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3247 # Check to see if the nm accepts a BSD-compat flag.
3248 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3249 # nm: unknown option "B" ignored
3250 # Tru64's nm complains that /dev/null is an invalid object file
3251 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3252 lt_cv_path_NM="$tmp_nm -B"
3254 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3255 lt_cv_path_NM="$tmp_nm -p"
3258 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3259 continue # so that we can try to find one that supports BSD flags
3264 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3269 echo "$as_me:$LINENO: result: $NM" >&5
3270 echo "${ECHO_T}$NM" >&6
3272 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3273 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3275 if test "$LN_S" = "ln -s"; then
3276 echo "$as_me:$LINENO: result: yes" >&5
3277 echo "${ECHO_T}yes" >&6
3279 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3280 echo "${ECHO_T}no, using $LN_S" >&6
3283 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3284 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3285 if test "${lt_cv_deplibs_check_method+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 lt_cv_file_magic_cmd='$MAGIC_CMD'
3289 lt_cv_file_magic_test_file=
3290 lt_cv_deplibs_check_method='unknown'
3291 # Need to set the preceding variable on all platforms that support
3292 # interlibrary dependencies.
3293 # 'none' -- dependencies not supported.
3294 # `unknown' -- same as none, but documents that we really don't know.
3295 # 'pass_all' -- all dependencies passed with no checks.
3296 # 'test_compile' -- check by making test program.
3297 # 'file_magic [regex]' -- check by looking for files in library path
3298 # which responds to the $file_magic_cmd with a given egrep regex.
3299 # If you have `file' or equivalent on your system and you're not sure
3300 # whether `pass_all' will *always* work, you probably want this one.
3304 lt_cv_deplibs_check_method=pass_all
3308 lt_cv_deplibs_check_method=pass_all
3312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3313 lt_cv_file_magic_cmd='/usr/bin/file -L'
3314 lt_cv_file_magic_test_file=/shlib/libc.so
3317 cygwin* | mingw* |pw32*)
3318 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3319 lt_cv_file_magic_cmd='$OBJDUMP -f'
3322 darwin* | rhapsody*)
3323 # this will be overwritten by pass_all, but leave it in just in case
3324 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3325 lt_cv_file_magic_cmd='/usr/bin/file -L'
3327 rhapsody* | darwin1.012)
3328 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3331 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3334 lt_cv_deplibs_check_method=pass_all
3338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3341 # Not sure whether the presence of OpenBSD here was a mistake.
3342 # Let's accept both of them until this is cleared up.
3343 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3344 lt_cv_file_magic_cmd=/usr/bin/file
3345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3349 lt_cv_deplibs_check_method=pass_all
3354 lt_cv_deplibs_check_method=pass_all
3360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3361 lt_cv_file_magic_cmd=/usr/bin/file
3362 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3366 lt_cv_file_magic_cmd=/usr/bin/file
3367 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3375 # this will be overridden with pass_all, but let us keep it just in case
3376 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3380 *-32|*"-32 ") libmagic=32-bit;;
3381 *-n32|*"-n32 ") libmagic=N32;;
3382 *-64|*"-64 ") libmagic=64-bit;;
3383 *) libmagic=never-match;;
3385 # this will be overridden with pass_all, but let us keep it just in case
3386 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3389 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3390 lt_cv_deplibs_check_method=pass_all
3393 # This must be Linux ELF.
3396 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3397 lt_cv_deplibs_check_method=pass_all ;;
3399 # glibc up to 2.1.1 does not perform some relocations on ARM
3400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3402 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3406 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3407 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3409 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3415 lt_cv_file_magic_cmd=/usr/bin/file
3416 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3419 osf3* | osf4* | osf5*)
3420 # this will be overridden with pass_all, but let us keep it just in case
3421 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3422 lt_cv_file_magic_test_file=/shlib/libc.so
3423 lt_cv_deplibs_check_method=pass_all
3427 lt_cv_deplibs_check_method=pass_all
3431 lt_cv_deplibs_check_method=pass_all
3432 lt_cv_file_magic_test_file=/lib/libc.so
3435 sysv5uw[78]* | sysv4*uw2*)
3436 lt_cv_deplibs_check_method=pass_all
3439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3440 case $host_vendor in
3442 lt_cv_deplibs_check_method=pass_all
3445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3446 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3453 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3454 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3455 file_magic_cmd=$lt_cv_file_magic_cmd
3456 deplibs_check_method=$lt_cv_deplibs_check_method
3462 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3464 # Only perform the check for file, if the check method requires it
3465 case $deplibs_check_method in
3467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3468 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3469 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3470 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3478 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3481 ac_save_MAGIC_CMD="$MAGIC_CMD"
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3483 ac_dummy="/usr/bin:$PATH"
3484 for ac_dir in $ac_dummy; do
3485 test -z "$ac_dir" && ac_dir=.
3486 if test -f $ac_dir/${ac_tool_prefix}file; then
3487 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3488 if test -n "$file_magic_test_file"; then
3489 case $deplibs_check_method in
3491 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3493 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3494 egrep "$file_magic_regex" > /dev/null; then
3499 *** Warning: the command libtool uses to detect shared libraries,
3500 *** $file_magic_cmd, produces output that libtool cannot recognize.
3501 *** The result is that libtool may fail to recognize shared libraries
3502 *** as such. This will affect the creation of libtool libraries that
3503 *** depend on shared libraries, but programs linked with such libtool
3504 *** libraries will work regardless of this problem. Nevertheless, you
3505 *** may want to report the problem to your system manager and/or to
3506 *** bug-libtool@gnu.org
3516 MAGIC_CMD="$ac_save_MAGIC_CMD"
3521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3522 if test -n "$MAGIC_CMD"; then
3523 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3524 echo "${ECHO_T}$MAGIC_CMD" >&6
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3530 if test -z "$lt_cv_path_MAGIC_CMD"; then
3531 if test -n "$ac_tool_prefix"; then
3532 echo "$as_me:$LINENO: checking for file" >&5
3533 echo $ECHO_N "checking for file... $ECHO_C" >&6
3534 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3545 ac_save_MAGIC_CMD="$MAGIC_CMD"
3546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3547 ac_dummy="/usr/bin:$PATH"
3548 for ac_dir in $ac_dummy; do
3549 test -z "$ac_dir" && ac_dir=.
3550 if test -f $ac_dir/file; then
3551 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3552 if test -n "$file_magic_test_file"; then
3553 case $deplibs_check_method in
3555 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3558 egrep "$file_magic_regex" > /dev/null; then
3563 *** Warning: the command libtool uses to detect shared libraries,
3564 *** $file_magic_cmd, produces output that libtool cannot recognize.
3565 *** The result is that libtool may fail to recognize shared libraries
3566 *** as such. This will affect the creation of libtool libraries that
3567 *** depend on shared libraries, but programs linked with such libtool
3568 *** libraries will work regardless of this problem. Nevertheless, you
3569 *** may want to report the problem to your system manager and/or to
3570 *** bug-libtool@gnu.org
3580 MAGIC_CMD="$ac_save_MAGIC_CMD"
3585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3586 if test -n "$MAGIC_CMD"; then
3587 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3588 echo "${ECHO_T}$MAGIC_CMD" >&6
3590 echo "$as_me:$LINENO: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3603 if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3605 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3606 echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608 if test "${ac_cv_prog_RANLIB+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if test -n "$RANLIB"; then
3612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 RANLIB=$ac_cv_prog_RANLIB
3631 if test -n "$RANLIB"; then
3632 echo "$as_me:$LINENO: result: $RANLIB" >&5
3633 echo "${ECHO_T}$RANLIB" >&6
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3640 if test -z "$ac_cv_prog_RANLIB"; then
3641 ac_ct_RANLIB=$RANLIB
3642 # Extract the first word of "ranlib", so it can be a program name with args.
3643 set dummy ranlib; ac_word=$2
3644 echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 if test -n "$ac_ct_RANLIB"; then
3650 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_ac_ct_RANLIB="ranlib"
3660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3669 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3670 if test -n "$ac_ct_RANLIB"; then
3671 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3672 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3674 echo "$as_me:$LINENO: result: no" >&5
3675 echo "${ECHO_T}no" >&6
3678 RANLIB=$ac_ct_RANLIB
3680 RANLIB="$ac_cv_prog_RANLIB"
3683 if test -n "$ac_tool_prefix"; then
3684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3685 set dummy ${ac_tool_prefix}strip; ac_word=$2
3686 echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688 if test "${ac_cv_prog_STRIP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 if test -n "$STRIP"; then
3692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 STRIP=$ac_cv_prog_STRIP
3711 if test -n "$STRIP"; then
3712 echo "$as_me:$LINENO: result: $STRIP" >&5
3713 echo "${ECHO_T}$STRIP" >&6
3715 echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3720 if test -z "$ac_cv_prog_STRIP"; then
3722 # Extract the first word of "strip", so it can be a program name with args.
3723 set dummy strip; ac_word=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -n "$ac_ct_STRIP"; then
3730 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_STRIP="strip"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3749 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3750 if test -n "$ac_ct_STRIP"; then
3751 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3752 echo "${ECHO_T}$ac_ct_STRIP" >&6
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3760 STRIP="$ac_cv_prog_STRIP"
3764 # Check for any special flags to pass to ltconfig.
3765 libtool_flags="--cache-file=$cache_file"
3766 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3767 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3768 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3769 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3770 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3773 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3774 if test "${enable_libtool_lock+set}" = set; then
3775 enableval="$enable_libtool_lock"
3778 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3779 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3782 # Check whether --with-pic or --without-pic was given.
3783 if test "${with_pic+set}" = set; then
3789 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3790 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3792 # Some flags need to be propagated to the compiler or linker for good
3796 # Find out which ABI we are using.
3797 echo '#line 3797 "configure"' > conftest.$ac_ext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }; then
3803 if test "$lt_cv_prog_gnu_ld" = yes; then
3804 case `/usr/bin/file conftest.$ac_objext` in
3806 LD="${LD-ld} -melf32bsmip"
3809 LD="${LD-ld} -melf32bmipn32"
3812 LD="${LD-ld} -melf64bmip"
3816 case `/usr/bin/file conftest.$ac_objext` in
3833 # Find out which ABI we are using.
3834 echo 'int i;' > conftest.$ac_ext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3836 (eval $ac_compile) 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; then
3840 case "`/usr/bin/file conftest.o`" in
3852 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3853 # Find out which ABI we are using.
3854 echo 'int i;' > conftest.$ac_ext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; then
3860 case "`/usr/bin/file conftest.o`" in
3864 LD="${LD-ld} -m elf_i386"
3866 ppc64-*linux*|powerpc64-*linux*)
3867 LD="${LD-ld} -m elf32ppclinux"
3870 LD="${LD-ld} -m elf_s390"
3873 LD="${LD-ld} -m elf32_sparc"
3880 LD="${LD-ld} -m elf_x86_64"
3882 ppc*-*linux*|powerpc*-*linux*)
3883 LD="${LD-ld} -m elf64ppc"
3886 LD="${LD-ld} -m elf64_s390"
3889 LD="${LD-ld} -m elf64_sparc"
3899 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3900 SAVE_CFLAGS="$CFLAGS"
3901 CFLAGS="$CFLAGS -belf"
3902 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3903 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3904 if test "${lt_cv_cc_needs_belf+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3930 rm -f conftest.$ac_objext conftest$ac_exeext
3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932 (eval $ac_link) 2>conftest.er1
3934 grep -v '^ *+' conftest.er1 >conftest.err
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } &&
3939 { ac_try='test -z "$ac_c_werror_flag"
3940 || test ! -s conftest.err'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; } &&
3946 { ac_try='test -s conftest$ac_exeext'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 lt_cv_cc_needs_belf=yes
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 lt_cv_cc_needs_belf=no
3959 rm -f conftest.err conftest.$ac_objext \
3960 conftest$ac_exeext conftest.$ac_ext
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3969 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3970 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3971 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3972 CFLAGS="$SAVE_CFLAGS"
3980 # Save cache, so that ltconfig can load it
3981 cat >confcache <<\_ACEOF
3982 # This file is a shell script that caches the results of configure
3983 # tests run on this system so they can be shared between configure
3984 # scripts and configure runs, see configure's option --config-cache.
3985 # It is not useful on other systems. If it contains results you don't
3986 # want to keep, you may remove or edit it.
3988 # config.status only pays attention to the cache file if you give it
3989 # the --recheck option to rerun configure.
3991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3997 # The following way of writing the cache mishandles newlines in values,
3998 # but we know of no workaround that is simple, portable, and efficient.
3999 # So, don't put newlines in cache variables' values.
4000 # Ultrix sh set writes to stderr and can't be redirected directly,
4001 # and sets the high bit in the cache file unless we assign to the vars.
4004 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4006 # `set' does not quote correctly, so add quotes (double-quote
4007 # substitution turns \\\\ into \\, and sed turns \\ into \).
4010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4013 # `set' quotes correctly as required by POSIX, so do not add quotes.
4015 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4024 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4026 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4027 if test -w $cache_file; then
4028 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4029 cat confcache >$cache_file
4031 echo "not updating unwritable cache $cache_file"
4036 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4037 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4038 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4039 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4040 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4041 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4042 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4043 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4044 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4045 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4046 echo "$as_me: error: libtool configure failed" >&2;}
4047 { (exit 1); exit 1; }; }
4049 # Reload cache, that may have been modified by ltconfig
4050 if test -r "$cache_file"; then
4051 # Some versions of bash will fail to source /dev/null (special
4052 # files actually), so we avoid doing that.
4053 if test -f "$cache_file"; then
4054 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4055 echo "$as_me: loading cache $cache_file" >&6;}
4057 [\\/]* | ?:[\\/]* ) . $cache_file;;
4058 *) . ./$cache_file;;
4062 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4063 echo "$as_me: creating cache $cache_file" >&6;}
4068 # This can be used to rebuild libtool when needed
4069 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4071 # Always use our own libtool.
4072 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4074 # Redirect the config.log output again, so that the ltconfig log is not
4075 # clobbered by the next message.
4076 exec 5>>./config.log
4084 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4085 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4086 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4087 if test "${enable_maintainer_mode+set}" = set; then
4088 enableval="$enable_maintainer_mode"
4089 USE_MAINTAINER_MODE=$enableval
4091 USE_MAINTAINER_MODE=no
4093 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4094 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4097 if test $USE_MAINTAINER_MODE = yes; then
4098 MAINTAINER_MODE_TRUE=
4099 MAINTAINER_MODE_FALSE='#'
4101 MAINTAINER_MODE_TRUE='#'
4102 MAINTAINER_MODE_FALSE=
4105 MAINT=$MAINTAINER_MODE_TRUE
4109 if test $ac_cv_header_sys_mman_h != yes \
4110 || test $ac_cv_func_mmap != yes; then
4111 ac_cv_func_mmap_file=no
4112 ac_cv_func_mmap_dev_zero=no
4113 ac_cv_func_mmap_anon=no
4115 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
4116 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
4117 if test "${ac_cv_func_mmap_file+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 # Add a system to this blacklist if
4121 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
4122 # memory area containing the same data that you'd get if you applied
4123 # read() to the same fd. The only system known to have a problem here
4124 # is VMS, where text files have record structure.
4127 ac_cv_func_mmap_file=no ;;
4129 ac_cv_func_mmap_file=yes;;
4132 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
4133 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
4134 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
4135 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
4136 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 # Add a system to this blacklist if it has mmap() but /dev/zero
4140 # does not exist, or if mmapping /dev/zero does not give anonymous
4141 # zeroed pages with both the following properties:
4142 # 1. If you map N consecutive pages in with one call, and then
4143 # unmap any subset of those pages, the pages that were not
4144 # explicitly unmapped remain accessible.
4145 # 2. If you map two adjacent blocks of memory and then unmap them
4146 # both at once, they must both go away.
4147 # Systems known to be in this category are Windows (all variants),
4150 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
4151 ac_cv_func_mmap_dev_zero=no ;;
4153 ac_cv_func_mmap_dev_zero=yes;;
4156 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
4157 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
4159 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
4160 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
4161 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
4162 if test "${ac_cv_decl_map_anon+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <sys/types.h>
4172 #include <sys/mman.h>
4175 #ifndef MAP_ANONYMOUS
4176 #define MAP_ANONYMOUS MAP_ANON
4182 int n = MAP_ANONYMOUS;
4187 rm -f conftest.$ac_objext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 ac_cv_decl_map_anon=yes
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_cv_decl_map_anon=no
4216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4218 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
4219 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
4221 if test $ac_cv_decl_map_anon = no; then
4222 ac_cv_func_mmap_anon=no
4224 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
4225 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
4226 if test "${ac_cv_func_mmap_anon+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 # Add a system to this blacklist if it has mmap() and MAP_ANON or
4230 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
4231 # doesn't give anonymous zeroed pages with the same properties listed
4232 # above for use of /dev/zero.
4233 # Systems known to be in this category are Windows, VMS, and SCO Unix.
4235 vms* | cygwin* | pe | mingw* | sco* | udk* )
4236 ac_cv_func_mmap_anon=no ;;
4238 ac_cv_func_mmap_anon=yes;;
4241 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
4242 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
4246 if test $ac_cv_func_mmap_file = yes; then
4248 cat >>confdefs.h <<\_ACEOF
4249 #define HAVE_MMAP_FILE 1
4253 if test $ac_cv_func_mmap_dev_zero = yes; then
4255 cat >>confdefs.h <<\_ACEOF
4256 #define HAVE_MMAP_DEV_ZERO 1
4260 if test $ac_cv_func_mmap_anon = yes; then
4262 cat >>confdefs.h <<\_ACEOF
4263 #define HAVE_MMAP_ANON 1
4271 if test -d $srcdir/testsuite; then
4273 TESTSUBDIR_FALSE='#'
4282 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
4283 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
4284 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
4285 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
4286 i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
4287 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
4288 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
4289 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
4290 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
4291 sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
4292 sparc-*-linux* | sparc-*-netbsdelf*) TARGET=SPARC; TARGETDIR=sparc;;
4293 sparc64-*-linux* | sparc64-*-netbsd*) TARGET=SPARC; TARGETDIR=sparc;;
4294 alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-netbsd*) TARGET=ALPHA; TARGETDIR=alpha;;
4295 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
4296 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
4298 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
4299 mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
4300 powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
4301 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
4302 powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
4303 powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
4304 rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
4305 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
4306 arm*-*-netbsdelf*) TARGET=ARM; TARGETDIR=arm;;
4307 s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
4308 s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
4309 x86_64-*-linux*) TARGET=X86_64; TARGETDIR=x86;;
4310 sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
4311 sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
4316 if test $TARGETDIR = unknown; then
4317 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
4318 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
4319 { (exit 1); exit 1; }; }
4324 if test x$TARGET = xMIPS_IRIX; then
4334 if test x$TARGET = xMIPS_LINUX; then
4336 MIPS_LINUX_FALSE='#'
4344 if test x$TARGET = xSPARC; then
4354 if test x$TARGET = xX86; then
4364 if test x$TARGET = xX86_WIN32; then
4374 if test x$TARGET = xALPHA; then
4384 if test x$TARGET = xIA64; then
4394 if test x$TARGET = xM68K; then
4404 if test x$TARGET = xPOWERPC; then
4414 if test x$TARGET = xPOWERPC_AIX; then
4416 POWERPC_AIX_FALSE='#'
4418 POWERPC_AIX_TRUE='#'
4424 if test x$TARGET = xPOWERPC_DARWIN; then
4425 POWERPC_DARWIN_TRUE=
4426 POWERPC_DARWIN_FALSE='#'
4428 POWERPC_DARWIN_TRUE='#'
4429 POWERPC_DARWIN_FALSE=