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 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CPP CPPFLAGS EGREP 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 M32R_TRUE M32R_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 FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_TRUE PA_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir tool_include_dir gcc_version LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CCAS_set
=${CCAS+set}
755 ac_env_CCAS_value
=$CCAS
756 ac_cv_env_CCAS_set
=${CCAS+set}
757 ac_cv_env_CCAS_value
=$CCAS
758 ac_env_CCASFLAGS_set
=${CCASFLAGS+set}
759 ac_env_CCASFLAGS_value
=$CCASFLAGS
760 ac_cv_env_CCASFLAGS_set
=${CCASFLAGS+set}
761 ac_cv_env_CCASFLAGS_value
=$CCASFLAGS
762 ac_env_CPP_set
=${CPP+set}
763 ac_env_CPP_value
=$CPP
764 ac_cv_env_CPP_set
=${CPP+set}
765 ac_cv_env_CPP_value
=$CPP
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 # Report the --help message.
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
778 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
780 Usage: $0 [OPTION]... [VAR=VALUE]...
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
785 Defaults for the options are specified in brackets.
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
812 For better control, use the options below.
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
832 --program-prefix=PREFIX prepend PREFIX to installed program names
833 --program-suffix=SUFFIX append SUFFIX to installed program names
834 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
837 --build=BUILD configure
for building on BUILD
[guessed
]
838 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
839 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive
) echo "Configuration of libffi 2.1:";;
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-multilib build many library versions
(default
)
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default
=yes
856 --enable-static=PKGS build static libraries default
=yes
857 --enable-fast-install=PKGS optimize
for fast installation default
=yes
858 --disable-libtool-lock avoid locking
(might
break parallel builds
)
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --enable-debug debugging mode
862 --disable-structs omit code
for struct support
863 --disable-raw-api make the raw api unavailable
864 --enable-purify-safety purify-safe mode
867 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
868 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
869 --with-gnu-ld assume the C compiler uses GNU ld default
=no
870 --with-pic try to use only PIC
/non-PIC objects default
=use both
872 Some influential environment variables
:
873 CC C compiler
command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
876 nonstandard directory
<lib dir
>
877 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
878 headers
in a nonstandard directory
<include dir
>
879 CCAS assembler compiler
command (defaults to CC
)
880 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
883 Use these variables to override the choices made by
`configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
886 Report bugs to <http://gcc.gnu.org/bugs.html>.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo
&& pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 generated by GNU Autoconf 2.59
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by libffi $as_me 2.1, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
1008 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1009 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1010 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1011 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1012 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1014 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1015 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1017 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1018 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1019 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1020 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1021 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1022 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1023 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_must_keep_next=false
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 -* ) ac_must_keep_next=true ;;
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close
' the trap.
1103 trap 'exit_status
=$?
1104 # Save into config.log some information that might help in debugging.
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1114 # The following way of writing the cache mishandles newlines in values,
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1137 for ac_var
in $ac_subst_vars
1139 eval ac_val
=$
`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -n "$ac_subst_files"; then
1151 for ac_var
in $ac_subst_files
1153 eval ac_val
=$
`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1159 if test -s confdefs.h
; then
1166 sed "/^$/d" confdefs.h |
sort
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1173 rm -f core
*.core
&&
1174 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's
/^
/|
/' "$ac_site_file" >&5
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1249 # Check that the precious variables saved in the cache have kept the same
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1262 ac_cache_corrupted=: ;;
1264 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1271 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1296 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1303 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332 ac_config_headers="$ac_config_headers fficonfig.h"
1335 # Default to --enable-multilib
1336 # Check whether --enable-multilib or --disable-multilib was given.
1337 if test "${enable_multilib+set}" = set; then
1338 enableval="$enable_multilib"
1339 case "$enableval" in
1340 yes) multilib=yes ;;
1342 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1343 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1344 { (exit 1); exit 1; }; } ;;
1350 # We may get other options which we leave undocumented:
1351 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1352 # See config-ml.in if you want the gory details.
1354 if test "$srcdir" = "."; then
1355 if test "$with_target_subdir" != "."; then
1356 multi_basedir="$srcdir/$with_multisrctop../.."
1358 multi_basedir="$srcdir/$with_multisrctop.."
1361 multi_basedir="$srcdir/.."
1365 ac_config_commands="$ac_config_commands default-1"
1369 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1370 if test -f $ac_dir/install-sh; then
1372 ac_install_sh="$ac_aux_dir/install-sh -c"
1374 elif test -f $ac_dir/install.sh; then
1376 ac_install_sh="$ac_aux_dir/install.sh -c"
1378 elif test -f $ac_dir/shtool; then
1380 ac_install_sh="$ac_aux_dir/shtool install -c"
1384 if test -z "$ac_aux_dir"; then
1385 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1386 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1387 { (exit 1); exit 1; }; }
1389 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1393 # Make sure we can run config.sub.
1394 $ac_config_sub sun4 >/dev/null 2>&1 ||
1395 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1396 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1397 { (exit 1); exit 1; }; }
1399 echo "$as_me:$LINENO: checking build system type" >&5
1400 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1401 if test "${ac_cv_build+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 ac_cv_build_alias=$build_alias
1405 test -z "$ac_cv_build_alias" &&
1406 ac_cv_build_alias=`$ac_config_guess`
1407 test -z "$ac_cv_build_alias" &&
1408 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1409 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1410 { (exit 1); exit 1; }; }
1411 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1412 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1413 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1414 { (exit 1); exit 1; }; }
1417 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1418 echo "${ECHO_T}$ac_cv_build" >&6
1420 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1421 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1422 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1425 echo "$as_me:$LINENO: checking host system type" >&5
1426 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1427 if test "${ac_cv_host+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 ac_cv_host_alias=$host_alias
1431 test -z "$ac_cv_host_alias" &&
1432 ac_cv_host_alias=$ac_cv_build_alias
1433 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1440 echo "${ECHO_T}$ac_cv_host" >&6
1442 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1443 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1444 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1447 echo "$as_me:$LINENO: checking target system type" >&5
1448 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1449 if test "${ac_cv_target+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1452 ac_cv_target_alias=$target_alias
1453 test "x$ac_cv_target_alias" = "x" &&
1454 ac_cv_target_alias=$ac_cv_host_alias
1455 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1462 echo "${ECHO_T}$ac_cv_target" >&6
1463 target=$ac_cv_target
1464 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1465 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1466 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1469 # The aliases save the names the user supplied, while $host etc.
1470 # will get canonicalized.
1471 test -n "$target_alias" &&
1472 test "$program_prefix$program_suffix$program_transform_name" = \
1474 program_prefix=${target_alias}-
1475 target_alias=${target_alias-$host_alias}
1477 . ${srcdir}/configure.host
1479 am__api_version="1.9"
1480 # Find a good install program. We prefer a C program (faster),
1481 # so one script is as good as another. But avoid the broken or
1482 # incompatible versions:
1483 # SysV /etc/install, /usr/sbin/install
1484 # SunOS /usr/etc/install
1485 # IRIX /sbin/install
1487 # AmigaOS /C/install, which installs bootblocks on floppy discs
1488 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1491 # OS/2's system install, which has a completely different semantic
1492 # ./install, which can be erroneously created by make from ./install.sh.
1493 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1494 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1495 if test -z "$INSTALL"; then
1496 if test "${ac_cv_path_install+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1503 test -z "$as_dir" && as_dir
=.
1504 # Account for people who put trailing slashes in PATH elements.
1506 .
/ | .
// |
/cC
/* | \
1507 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1508 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1511 # OSF1 and SCO ODT 3.0 have their own names for install.
1512 # Don't use installbsd from OSF since it installs stuff as root
1514 for ac_prog
in ginstall scoinst
install; do
1515 for ac_exec_ext
in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1517 if test $ac_prog = install &&
1518 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1519 # AIX install. It has an incompatible calling convention.
1521 elif test $ac_prog = install &&
1522 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1523 # program-specific install script used by HP pwplus--don't use.
1526 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1538 if test "${ac_cv_path_install+set}" = set; then
1539 INSTALL
=$ac_cv_path_install
1541 # As a last resort, use the slow shell script. We don't cache a
1542 # path for INSTALL within a source directory, because that will
1543 # break other packages using the cache if that directory is
1544 # removed, or if the path is relative.
1545 INSTALL
=$ac_install_sh
1548 echo "$as_me:$LINENO: result: $INSTALL" >&5
1549 echo "${ECHO_T}$INSTALL" >&6
1551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1552 # It thinks the first close brace ends the variable substitution.
1553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1557 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1559 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1560 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1563 echo timestamp
> conftest.
file
1564 # Do `set' in a subshell so we don't clobber the current shell's
1565 # arguments. Must try -L first in case configure is actually a
1566 # symlink; some systems play weird games with the mod time of symlinks
1567 # (eg FreeBSD returns the mod time of the symlink's containing
1570 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1571 if test "$*" = "X"; then
1573 set X
`ls -t $srcdir/configure conftest.file`
1576 if test "$*" != "X $srcdir/configure conftest.file" \
1577 && test "$*" != "X conftest.file $srcdir/configure"; then
1579 # If neither matched, then we have a broken ls. This can happen
1580 # if, for instance, CONFIG_SHELL is bash and it inherits a
1581 # broken ls alias from the environment. This has actually
1582 # happened. Such a system could not be considered "sane".
1583 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1584 alias in your environment" >&5
1585 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1586 alias in your environment" >&2;}
1587 { (exit 1); exit 1; }; }
1590 test "$2" = conftest.
file
1596 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1597 Check your system clock" >&5
1598 echo "$as_me: error: newly created file is older than distributed files!
1599 Check your system clock" >&2;}
1600 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: result: yes" >&5
1603 echo "${ECHO_T}yes" >&6
1604 test "$program_prefix" != NONE
&&
1605 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1606 # Use a double $ so make ignores it.
1607 test "$program_suffix" != NONE
&&
1608 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1609 # Double any \ or $. echo might interpret backslashes.
1610 # By default was `s,x,x', remove it if useless.
1611 cat <<\_ACEOF
>conftest.
sed
1612 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1614 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1617 # expand $ac_aux_dir to an absolute path
1618 am_aux_dir
=`cd $ac_aux_dir && pwd`
1620 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1621 # Use eval to expand $SHELL
1622 if eval "$MISSING --run true"; then
1623 am_missing_run
="$MISSING --run "
1626 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1627 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1630 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1631 # We used to keeping the `.' as first argument, in order to
1632 # allow $(mkdir_p) to be used without argument. As in
1633 # $(mkdir_p) $(somedir)
1634 # where $(somedir) is conditionally defined. However this is wrong
1636 # 1. if the package is installed by a user who cannot write `.'
1637 # make install will fail,
1638 # 2. the above comment should most certainly read
1639 # $(mkdir_p) $(DESTDIR)$(somedir)
1640 # so it does not work when $(somedir) is undefined and
1641 # $(DESTDIR) is not.
1642 # To support the latter case, we have to write
1643 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1644 # so the `.' trick is pointless.
1645 mkdir_p
='mkdir -p --'
1647 # On NextStep and OpenStep, the `mkdir' command does not
1648 # recognize any option. It will interpret all options as
1649 # directories to create, and then abort because `.' already
1651 for d
in .
/-p .
/--version;
1653 test -d $d && rmdir $d
1655 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1656 if test -f "$ac_aux_dir/mkinstalldirs"; then
1657 mkdir_p
='$(mkinstalldirs)'
1659 mkdir_p
='$(install_sh) -d'
1663 for ac_prog
in gawk mawk nawk
awk
1665 # Extract the first word of "$ac_prog", so it can be a program name with args.
1666 set dummy
$ac_prog; ac_word
=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_AWK+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$AWK"; then
1673 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir
=.
1680 for ac_exec_ext
in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_AWK
="$ac_prog"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 if test -n "$AWK"; then
1693 echo "$as_me:$LINENO: result: $AWK" >&5
1694 echo "${ECHO_T}$AWK" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1700 test -n "$AWK" && break
1703 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1704 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1705 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1706 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 cat >conftest.
make <<\_ACEOF
1711 @
echo 'ac_maketemp="$(MAKE)"'
1713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1714 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1715 if test -n "$ac_maketemp"; then
1716 eval ac_cv_prog_make_
${ac_make}_set
=yes
1718 eval ac_cv_prog_make_
${ac_make}_set
=no
1722 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1723 echo "$as_me:$LINENO: result: yes" >&5
1724 echo "${ECHO_T}yes" >&6
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1729 SET_MAKE
="MAKE=${MAKE-make}"
1732 rm -rf .tst
2>/dev
/null
1733 mkdir .tst
2>/dev
/null
1734 if test -d .tst
; then
1739 rmdir .tst
2>/dev
/null
1741 # test to see if srcdir already configured
1742 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1743 test -f $srcdir/config.status
; then
1744 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1745 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1746 { (exit 1); exit 1; }; }
1749 # test whether we have cygpath
1750 if test -z "$CYGPATH_W"; then
1751 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1752 CYGPATH_W
='cygpath -w'
1759 # Define the identity of the package.
1764 cat >>confdefs.h
<<_ACEOF
1765 #define PACKAGE "$PACKAGE"
1769 cat >>confdefs.h
<<_ACEOF
1770 #define VERSION "$VERSION"
1773 # Some tools Automake needs.
1775 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1778 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1781 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1784 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1787 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1789 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1791 # Installed binaries are usually stripped using `strip' when the user
1792 # run `make install-strip'. However `strip' might not be the right
1793 # tool to use in cross-compilation environments, therefore Automake
1794 # will honor the `STRIP' environment variable to overrule this program.
1795 if test "$cross_compiling" != no
; then
1796 if test -n "$ac_tool_prefix"; then
1797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1798 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_STRIP+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$STRIP"; then
1805 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir
=.
1812 for ac_exec_ext
in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 STRIP
=$ac_cv_prog_STRIP
1824 if test -n "$STRIP"; then
1825 echo "$as_me:$LINENO: result: $STRIP" >&5
1826 echo "${ECHO_T}$STRIP" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1833 if test -z "$ac_cv_prog_STRIP"; then
1835 # Extract the first word of "strip", so it can be a program name with args.
1836 set dummy strip
; ac_word
=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test -n "$ac_ct_STRIP"; then
1843 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
1845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir
=.
1850 for ac_exec_ext
in '' $ac_executable_extensions; do
1851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852 ac_cv_prog_ac_ct_STRIP
="strip"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
1862 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
1863 if test -n "$ac_ct_STRIP"; then
1864 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1865 echo "${ECHO_T}$ac_ct_STRIP" >&6
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1873 STRIP
="$ac_cv_prog_STRIP"
1877 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1879 # We need awk for the "check" target. The system "awk" is bad on
1881 # Always define AMTAR for backward compatibility.
1883 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1885 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
1892 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1893 # We must force CC to /not/ be precious variables; otherwise
1894 # the wrong, non-multilib-adjusted value will be used in multilibs.
1895 # As a side effect, we have to subst CFLAGS ourselves.
1900 ac_cpp
='$CPP $CPPFLAGS'
1901 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1904 if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1906 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC
="$CC" # Let the user override the test.
1915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir
=.
1920 for ac_exec_ext
in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 if test -n "$CC"; then
1933 echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1941 if test -z "$ac_cv_prog_CC"; then
1943 # Extract the first word of "gcc", so it can be a program name with args.
1944 set dummy gcc
; ac_word
=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1953 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir
=.
1958 for ac_exec_ext
in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC
="gcc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1983 if test -z "$CC"; then
1984 if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1986 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC
="$CC" # Let the user override the test.
1995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir
=.
2000 for ac_exec_ext
in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2021 if test -z "$ac_cv_prog_CC"; then
2023 # Extract the first word of "cc", so it can be a program name with args.
2024 set dummy cc
; ac_word
=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir
=.
2038 for ac_exec_ext
in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_ac_ct_CC
="cc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2064 if test -z "$CC"; then
2065 # Extract the first word of "cc", so it can be a program name with args.
2066 set dummy cc
; ac_word
=$2
2067 echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC
="$CC" # Let the user override the test.
2076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir
=.
2081 for ac_exec_ext
in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2084 ac_prog_rejected
=yes
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 if test $ac_prog_rejected = yes; then
2095 # We found a bogon in the path, so make sure we never use it.
2096 set dummy
$ac_cv_prog_CC
2098 if test $# != 0; then
2099 # We chose a different compiler from the bogus one.
2100 # However, it has the same basename, so the bogon will be chosen
2101 # first if we set CC to just the basename; use the full file name.
2103 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2109 if test -n "$CC"; then
2110 echo "$as_me:$LINENO: result: $CC" >&5
2111 echo "${ECHO_T}$CC" >&6
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2118 if test -z "$CC"; then
2119 if test -n "$ac_tool_prefix"; then
2122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2123 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2124 echo "$as_me:$LINENO: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC
="$CC" # Let the user override the test.
2132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir
=.
2137 for ac_exec_ext
in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 if test -n "$CC"; then
2150 echo "$as_me:$LINENO: result: $CC" >&5
2151 echo "${ECHO_T}$CC" >&6
2153 echo "$as_me:$LINENO: result: no" >&5
2154 echo "${ECHO_T}no" >&6
2157 test -n "$CC" && break
2160 if test -z "$CC"; then
2164 # Extract the first word of "$ac_prog", so it can be a program name with args.
2165 set dummy
$ac_prog; ac_word
=$2
2166 echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test -n "$ac_ct_CC"; then
2172 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2178 test -z "$as_dir" && as_dir
=.
2179 for ac_exec_ext
in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_ac_ct_CC
="$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2191 if test -n "$ac_ct_CC"; then
2192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2193 echo "${ECHO_T}$ac_ct_CC" >&6
2195 echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6
2199 test -n "$ac_ct_CC" && break
2208 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: no acceptable C compiler found in \$PATH
2211 See \`config.log' for more details." >&2;}
2212 { (exit 1); exit 1; }; }
2214 # Provide some information about the compiler.
2215 echo "$as_me:$LINENO:" \
2216 "checking for C compiler version" >&5
2217 ac_compiler
=`set X $ac_compile; echo $2`
2218 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2219 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }
2223 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2224 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }
2228 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2229 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2234 cat >conftest.
$ac_ext <<_ACEOF
2237 cat confdefs.h
>>conftest.
$ac_ext
2238 cat >>conftest.
$ac_ext <<_ACEOF
2239 /* end confdefs.h. */
2249 ac_clean_files_save
=$ac_clean_files
2250 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2251 # Try to create an executable without -o first, disregard a.out.
2252 # It will help us diagnose broken compilers, and finding out an intuition
2254 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2255 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2256 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2257 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2258 (eval $ac_link_default) 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 # Find the output, starting from the most likely. This scheme is
2263 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2266 # Be careful to initialize this variable, since it used to be cached.
2267 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2269 # b.out is created by i960 compilers.
2270 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2272 test -f "$ac_file" ||
continue
2274 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2277 # This is the source file.
2280 # We found the default executable, but exeext='' is most
2284 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 # FIXME: I believe we export ac_cv_exeext for Libtool,
2286 # but it would be cool to find out if it's true. Does anybody
2287 # maintain Libtool? --akim.
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.
$ac_ext >&5
2298 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2299 See \`config.log' for more details." >&5
2300 echo "$as_me: error: C compiler cannot create executables
2301 See \`config.log' for more details." >&2;}
2302 { (exit 77); exit 77; }; }
2305 ac_exeext
=$ac_cv_exeext
2306 echo "$as_me:$LINENO: result: $ac_file" >&5
2307 echo "${ECHO_T}$ac_file" >&6
2309 # Check the compiler produces executables we can run. If not, either
2310 # the compiler is broken, or we cross compile.
2311 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2312 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2313 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2314 # If not cross compiling, check that we can run a simple program.
2315 if test "$cross_compiling" != yes; then
2316 if { ac_try
='./$ac_file'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; }; then
2324 if test "$cross_compiling" = maybe
; then
2327 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328 If you meant to cross compile, use \`--host'.
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2337 echo "$as_me:$LINENO: result: yes" >&5
2338 echo "${ECHO_T}yes" >&6
2340 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2341 ac_clean_files
=$ac_clean_files_save
2342 # Check the compiler produces executables we can run. If not, either
2343 # the compiler is broken, or we cross compile.
2344 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2346 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347 echo "${ECHO_T}$cross_compiling" >&6
2349 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2352 (eval $ac_link) 2>&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2357 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2358 # work properly (i.e., refer to `conftest.exe'), while it won't with
2360 for ac_file
in conftest.exe conftest conftest.
*; do
2361 test -f "$ac_file" ||
continue
2363 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2364 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2378 rm -f conftest
$ac_cv_exeext
2379 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2380 echo "${ECHO_T}$ac_cv_exeext" >&6
2382 rm -f conftest.
$ac_ext
2383 EXEEXT
=$ac_cv_exeext
2385 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2386 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2387 if test "${ac_cv_objext+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 cat >conftest.
$ac_ext <<_ACEOF
2393 cat confdefs.h
>>conftest.
$ac_ext
2394 cat >>conftest.
$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2405 rm -f conftest.o conftest.obj
2406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; then
2411 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2413 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2414 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.
$ac_ext >&5
2422 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2423 See \`config.log' for more details." >&5
2424 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2429 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2431 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2432 echo "${ECHO_T}$ac_cv_objext" >&6
2433 OBJEXT
=$ac_cv_objext
2435 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2436 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2437 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 cat >conftest.
$ac_ext <<_ACEOF
2443 cat confdefs.h
>>conftest.
$ac_ext
2444 cat >>conftest.
$ac_ext <<_ACEOF
2445 /* end confdefs.h. */
2458 rm -f conftest.
$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2462 grep -v '^ *+' conftest.er1
>conftest.err
2464 cat conftest.err
>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try
='test -z "$ac_c_werror_flag"
2468 || test ! -s conftest.err'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try
='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.
$ac_ext >&5
2487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2488 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2491 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2492 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2493 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2494 ac_test_CFLAGS
=${CFLAGS+set}
2495 ac_save_CFLAGS
=$CFLAGS
2497 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2498 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2499 if test "${ac_cv_prog_cc_g+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 cat >conftest.
$ac_ext <<_ACEOF
2505 cat confdefs.h
>>conftest.
$ac_ext
2506 cat >>conftest.
$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2517 rm -f conftest.
$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>conftest.er1
2521 grep -v '^ *+' conftest.er1
>conftest.err
2523 cat conftest.err
>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try
='test -z "$ac_c_werror_flag"
2527 || test ! -s conftest.err'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try
='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.
$ac_ext >&5
2546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2550 if test "$ac_test_CFLAGS" = set; then
2551 CFLAGS
=$ac_save_CFLAGS
2552 elif test $ac_cv_prog_cc_g = yes; then
2553 if test "$GCC" = yes; then
2559 if test "$GCC" = yes; then
2565 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2566 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2567 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 ac_cv_prog_cc_stdc
=no
2572 cat >conftest.
$ac_ext <<_ACEOF
2575 cat confdefs.h
>>conftest.
$ac_ext
2576 cat >>conftest.
$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2580 #include <sys/types.h>
2581 #include <sys/stat.h>
2582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2583 struct buf { int x; };
2584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2585 static char *e (p, i)
2591 static char *f (char * (*g) (char **, int), char **p, ...)
2596 s = g (p, va_arg (v,int));
2601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2602 function prototypes and stuff, but not '\xHH' hex character constants.
2603 These don't provoke an error unfortunately, instead are silently treated
2604 as 'x'. The following induces an error, until -std1 is added to get
2605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2606 array size at least. It's necessary to write '\x00'==0 to get something
2607 that's true only with -std1. */
2608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2610 int test (int i, double x);
2611 struct s1 {int (*f) (int a);};
2612 struct s2 {int (*f) (double a);};
2613 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2619 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2624 # Don't try gcc -ansi; that turns off useful extensions and
2625 # breaks some systems' header files.
2626 # AIX -qlanglvl=ansi
2627 # Ultrix and OSF/1 -std1
2628 # HP-UX 10.20 and later -Ae
2629 # HP-UX older versions -Aa -D_HPUX_SOURCE
2630 # SVR4 -Xc -D__EXTENSIONS__
2631 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2633 CC
="$ac_save_CC $ac_arg"
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 ac_cv_prog_cc_stdc
=$ac_arg
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.
$ac_ext >&5
2663 rm -f conftest.err conftest.
$ac_objext
2665 rm -f conftest.
$ac_ext conftest.
$ac_objext
2670 case "x$ac_cv_prog_cc_stdc" in
2672 echo "$as_me:$LINENO: result: none needed" >&5
2673 echo "${ECHO_T}none needed" >&6 ;;
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2676 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2677 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2680 # Some people use a C++ compiler to compile C. Since we use `exit',
2681 # in C++ we need to declare it. In case someone uses the same compiler
2682 # for both compiling C and C++ we need to have the C++ compiler decide
2683 # the declaration of exit, since it's the most demanding environment.
2684 cat >conftest.
$ac_ext <<_ACEOF
2689 rm -f conftest.
$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>conftest.er1
2693 grep -v '^ *+' conftest.er1
>conftest.err
2695 cat conftest.err
>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try
='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try
='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 for ac_declaration
in \
2713 'extern "C" void std::exit (int) throw (); using std::exit;' \
2714 'extern "C" void std::exit (int); using std::exit;' \
2715 'extern "C" void exit (int) throw ();' \
2716 'extern "C" void exit (int);' \
2719 cat >conftest.
$ac_ext <<_ACEOF
2722 cat confdefs.h
>>conftest.
$ac_ext
2723 cat >>conftest.
$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2735 rm -f conftest.
$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>conftest.er1
2739 grep -v '^ *+' conftest.er1
>conftest.err
2741 cat conftest.err
>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try
='test -z "$ac_c_werror_flag"
2745 || test ! -s conftest.err'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try
='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2759 echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.
$ac_ext >&5
2764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2765 cat >conftest.
$ac_ext <<_ACEOF
2768 cat confdefs.h
>>conftest.
$ac_ext
2769 cat >>conftest.
$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2780 rm -f conftest.
$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2784 grep -v '^ *+' conftest.er1
>conftest.err
2786 cat conftest.err
>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try
='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try
='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.
$ac_ext >&5
2808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2811 if test -n "$ac_declaration"; then
2812 echo '#ifdef __cplusplus' >>confdefs.h
2813 echo $ac_declaration >>confdefs.h
2814 echo '#endif' >>confdefs.h
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.
$ac_ext >&5
2822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2824 ac_cpp
='$CPP $CPPFLAGS'
2825 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2828 DEPDIR
="${am__leading_dot}deps"
2830 ac_config_commands
="$ac_config_commands depfiles"
2833 am_make
=${MAKE-make}
2834 cat > confinc
<< 'END'
2839 # If we don't find an include directive, just comment out the code.
2840 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2841 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2845 # First try GNU make style include.
2846 echo "include confinc" > confmf
2847 # We grep out `Entering directory' and `Leaving directory'
2848 # messages which can occur if `w' ends up in MAKEFLAGS.
2849 # In particular we don't look at `^make:' because GNU make might
2850 # be invoked under some other name (usually "gmake"), in which
2851 # case it prints its new name instead of `make'.
2852 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2857 # Now try BSD make style include.
2858 if test "$am__include" = "#"; then
2859 echo '.include "confinc"' > confmf
2860 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2861 am__include
=.include
2868 echo "$as_me:$LINENO: result: $_am_result" >&5
2869 echo "${ECHO_T}$_am_result" >&6
2870 rm -f confinc confmf
2872 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2873 if test "${enable_dependency_tracking+set}" = set; then
2874 enableval
="$enable_dependency_tracking"
2877 if test "x$enable_dependency_tracking" != xno
; then
2878 am_depcomp
="$ac_aux_dir/depcomp"
2883 if test "x$enable_dependency_tracking" != xno; then
2894 depcc
="$CC" am_compiler_list
=
2896 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2897 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2898 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2902 # We make a subdir and do the tests there. Otherwise we can end up
2903 # making bogus files that we don't know about and never remove. For
2904 # instance it was reported that on HP-UX the gcc test will end up
2905 # making a dummy file named `D' -- because `-MD' means `put the output
2908 # Copy depcomp to subdir because otherwise we won't find it if we're
2909 # using a relative directory.
2910 cp "$am_depcomp" conftest.dir
2912 # We will build objects and dependencies in a subdirectory because
2913 # it helps to detect inapplicable dependency modes. For instance
2914 # both Tru64's cc and ICC support -MD to output dependencies as a
2915 # side effect of compilation, but ICC will put the dependencies in
2916 # the current directory while Tru64 will put them in the object
2920 am_cv_CC_dependencies_compiler_type
=none
2921 if test "$am_compiler_list" = ""; then
2922 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2924 for depmode
in $am_compiler_list; do
2925 # Setup a source with many dependencies, because some compilers
2926 # like to wrap large dependency lists on column 80 (with \), and
2927 # we should not choose a depcomp mode which is confused by this.
2929 # We need to recreate these files for each test, as the compiler may
2930 # overwrite some of them when testing with obscure command lines.
2931 # This happens at least with the AIX C compiler.
2933 for i
in 1 2 3 4 5 6; do
2934 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
2935 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2936 # Solaris 8's {/usr,}/bin/sh.
2937 touch sub
/conftst
$i.h
2939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2943 # after this tag, mechanisms are not by side-effect, so they'll
2944 # only be used when explicitly requested
2945 if test "x$enable_dependency_tracking" = xyes
; then
2953 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2954 # mode. It turns out that the SunPro C++ compiler does not properly
2955 # handle `-M -o', and we need to detect this.
2956 if depmode
=$depmode \
2957 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
2958 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
2959 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
2960 >/dev
/null
2>conftest.err
&&
2961 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
2962 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
2963 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2964 # icc doesn't choke on unknown options, it will just issue warnings
2965 # or remarks (even with -Werror). So we grep stderr for any message
2966 # that says an option was ignored or not supported.
2967 # When given -MP, icc 7.0 and 7.1 complain thusly:
2968 # icc: Command line warning: ignoring option '-M'; no argument required
2969 # The diagnosis changed in icc 8.0:
2970 # icc: Command line remark: option '-MP' not supported
2971 if (grep 'ignoring option' conftest.err ||
2972 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
2973 am_cv_CC_dependencies_compiler_type
=$depmode
2982 am_cv_CC_dependencies_compiler_type
=none
2986 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2987 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2988 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
2993 test "x$enable_dependency_tracking" != xno \
2994 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
2996 am__fastdepCC_FALSE
='#'
2998 am__fastdepCC_TRUE
='#'
2999 am__fastdepCC_FALSE
=
3007 # By default we simply use the C compiler to build assembly code.
3009 test "${CCAS+set}" = set || CCAS
=$CC
3010 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
3014 if test "x$CC" != xcc
; then
3015 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3016 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3018 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3019 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3021 set dummy
$CC; ac_cc
=`echo $2 |
3022 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3023 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 cat >conftest.
$ac_ext <<_ACEOF
3029 cat confdefs.h
>>conftest.
$ac_ext
3030 cat >>conftest.
$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 # Make sure it works both with $CC and with simple cc.
3042 # We do the test twice because some compilers refuse to overwrite an
3043 # existing .o file with -o, though they will create one.
3044 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3045 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); };
3056 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3057 if test "x$CC" != xcc
; then
3058 # Test first that cc exists at all.
3059 if { ac_try
='cc -c conftest.$ac_ext >&5'
3060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
3065 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3066 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); };
3080 # cc exists but doesn't like -o.
3081 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3086 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3091 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3098 cat >>confdefs.h
<<\_ACEOF
3099 #define NO_MINUS_C_MINUS_O 1
3104 # FIXME: we rely on the cache variable name because
3105 # there is no other way.
3107 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3108 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3109 # Losing compiler, so override with the script.
3110 # FIXME: It is wrong to rewrite CC.
3111 # But if we don't then we get into trouble of one sort or another.
3112 # A longer-term fix would be to have automake use am__CC in this case,
3113 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3114 CC
="$am_aux_dir/compile $CC"
3117 # Check whether --enable-shared or --disable-shared was given.
3118 if test "${enable_shared+set}" = set; then
3119 enableval
="$enable_shared"
3120 p
=${PACKAGE-default}
3122 yes) enable_shared
=yes ;;
3123 no
) enable_shared
=no
;;
3126 # Look at the argument we got. We use all the common list separators.
3127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3128 for pkg
in $enableval; do
3129 if test "X$pkg" = "X$p"; then
3139 # Check whether --enable-static or --disable-static was given.
3140 if test "${enable_static+set}" = set; then
3141 enableval
="$enable_static"
3142 p
=${PACKAGE-default}
3144 yes) enable_static
=yes ;;
3145 no
) enable_static
=no
;;
3148 # Look at the argument we got. We use all the common list separators.
3149 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3150 for pkg
in $enableval; do
3151 if test "X$pkg" = "X$p"; then
3161 # Check whether --enable-fast-install or --disable-fast-install was given.
3162 if test "${enable_fast_install+set}" = set; then
3163 enableval
="$enable_fast_install"
3164 p
=${PACKAGE-default}
3166 yes) enable_fast_install
=yes ;;
3167 no
) enable_fast_install
=no
;;
3169 enable_fast_install
=no
3170 # Look at the argument we got. We use all the common list separators.
3171 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3172 for pkg
in $enableval; do
3173 if test "X$pkg" = "X$p"; then
3174 enable_fast_install
=yes
3181 enable_fast_install
=yes
3184 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3185 if test "${with_gnu_ld+set}" = set; then
3186 withval
="$with_gnu_ld"
3187 test "$withval" = no || with_gnu_ld
=yes
3192 if test "$GCC" = yes; then
3193 # Check if gcc -print-prog-name=ld gives a path.
3194 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3195 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3198 # gcc leaves a trailing carriage return which upsets mingw
3199 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3201 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3204 # Accept absolute paths.
3205 [\\/]* |
[A-Za-z
]:[\\/]*)
3206 re_direlt
='/[^/][^/]*/\.\./'
3207 # Canonicalize the path of ld
3208 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
3209 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3210 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
3212 test -z "$LD" && LD
="$ac_prog"
3215 # If it fails, then pretend we aren't using GCC.
3219 # If it is relative, then search for the first ld in PATH.
3223 elif test "$with_gnu_ld" = yes; then
3224 echo "$as_me:$LINENO: checking for GNU ld" >&5
3225 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3227 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3228 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3230 if test "${lt_cv_path_LD+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 if test -z "$LD"; then
3234 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3235 for ac_dir
in $PATH; do
3236 test -z "$ac_dir" && ac_dir
=.
3237 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3238 lt_cv_path_LD
="$ac_dir/$ac_prog"
3239 # Check to see if the program is GNU ld. I'd rather use --version,
3240 # but apparently some GNU ld's only accept -v.
3241 # Break only if it was the GNU/non-GNU ld that we prefer.
3242 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
3243 test "$with_gnu_ld" != no
&& break
3245 test "$with_gnu_ld" != yes && break
3251 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3256 if test -n "$LD"; then
3257 echo "$as_me:$LINENO: result: $LD" >&5
3258 echo "${ECHO_T}$LD" >&6
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3263 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3264 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3265 { (exit 1); exit 1; }; }
3266 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3267 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3268 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3272 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
3273 lt_cv_prog_gnu_ld
=yes
3275 lt_cv_prog_gnu_ld
=no
3278 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3279 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3280 with_gnu_ld
=$lt_cv_prog_gnu_ld
3283 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3284 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3285 if test "${lt_cv_ld_reload_flag+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 lt_cv_ld_reload_flag
='-r'
3290 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3291 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3292 reload_flag
=$lt_cv_ld_reload_flag
3293 test -n "$reload_flag" && reload_flag
=" $reload_flag"
3295 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3296 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3297 if test "${lt_cv_path_NM+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 if test -n "$NM"; then
3301 # Let the user override the test.
3304 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3305 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3306 test -z "$ac_dir" && ac_dir
=.
3307 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
3308 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
3309 # Check to see if the nm accepts a BSD-compat flag.
3310 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3311 # nm: unknown option "B" ignored
3312 # Tru64's nm complains that /dev/null is an invalid object file
3313 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
3314 lt_cv_path_NM
="$tmp_nm -B"
3316 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
3317 lt_cv_path_NM
="$tmp_nm -p"
3320 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3321 continue # so that we can try to find one that supports BSD flags
3326 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3331 echo "$as_me:$LINENO: result: $NM" >&5
3332 echo "${ECHO_T}$NM" >&6
3334 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3335 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3337 if test "$LN_S" = "ln -s"; then
3338 echo "$as_me:$LINENO: result: yes" >&5
3339 echo "${ECHO_T}yes" >&6
3341 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3342 echo "${ECHO_T}no, using $LN_S" >&6
3345 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3346 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3347 if test "${lt_cv_deplibs_check_method+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3351 lt_cv_file_magic_test_file
=
3352 lt_cv_deplibs_check_method
='unknown'
3353 # Need to set the preceding variable on all platforms that support
3354 # interlibrary dependencies.
3355 # 'none' -- dependencies not supported.
3356 # `unknown' -- same as none, but documents that we really don't know.
3357 # 'pass_all' -- all dependencies passed with no checks.
3358 # 'test_compile' -- check by making test program.
3359 # 'file_magic [regex]' -- check by looking for files in library path
3360 # which responds to the $file_magic_cmd with a given egrep regex.
3361 # If you have `file' or equivalent on your system and you're not sure
3362 # whether `pass_all' will *always* work, you probably want this one.
3366 lt_cv_deplibs_check_method
=pass_all
3370 lt_cv_deplibs_check_method
=pass_all
3374 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3375 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3376 lt_cv_file_magic_test_file
=/shlib
/libc.so
3379 cygwin
* | mingw
* |pw32
*)
3380 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3381 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3384 darwin
* | rhapsody
*)
3385 # this will be overwritten by pass_all, but leave it in just in case
3386 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
3387 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3389 rhapsody
* | darwin1.012
)
3390 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
3393 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
3396 lt_cv_deplibs_check_method
=pass_all
3399 freebsd
* | kfreebsd
*-gnu)
3400 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3403 # Not sure whether the presence of OpenBSD here was a mistake.
3404 # Let's accept both of them until this is cleared up.
3405 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3406 lt_cv_file_magic_cmd
=/usr
/bin
/file
3407 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3411 lt_cv_deplibs_check_method
=pass_all
3416 lt_cv_deplibs_check_method
=pass_all
3422 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3423 lt_cv_file_magic_cmd
=/usr
/bin
/file
3424 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3427 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3428 lt_cv_file_magic_cmd
=/usr
/bin
/file
3429 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3437 # this will be overridden with pass_all, but let us keep it just in case
3438 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3442 *-32|
*"-32 ") libmagic
=32-bit;;
3443 *-n32|
*"-n32 ") libmagic
=N32
;;
3444 *-64|
*"-64 ") libmagic
=64-bit;;
3445 *) libmagic
=never-match
;;
3447 # this will be overridden with pass_all, but let us keep it just in case
3448 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3451 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
3452 lt_cv_deplibs_check_method
=pass_all
3455 # This must be Linux ELF.
3458 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* | sh
* )
3459 lt_cv_deplibs_check_method
=pass_all
;;
3461 # glibc up to 2.1.1 does not perform some relocations on ARM
3462 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3464 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
3467 netbsd
* | knetbsd
*-gnu)
3468 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3469 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3471 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
3476 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3477 lt_cv_file_magic_cmd
=/usr
/bin
/file
3478 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3481 osf3
* | osf4
* | osf5
*)
3482 # this will be overridden with pass_all, but let us keep it just in case
3483 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
3484 lt_cv_file_magic_test_file
=/shlib
/libc.so
3485 lt_cv_deplibs_check_method
=pass_all
3489 lt_cv_deplibs_check_method
=pass_all
3493 lt_cv_deplibs_check_method
=pass_all
3494 lt_cv_file_magic_test_file
=/lib
/libc.so
3497 sysv5uw
[78]* | sysv4
*uw2
*)
3498 lt_cv_deplibs_check_method
=pass_all
3501 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3502 case $host_vendor in
3504 lt_cv_deplibs_check_method
=pass_all
3507 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]'
3508 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3515 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3516 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3517 file_magic_cmd
=$lt_cv_file_magic_cmd
3518 deplibs_check_method
=$lt_cv_deplibs_check_method
3524 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3526 # Only perform the check for file, if the check method requires it
3527 case $deplibs_check_method in
3529 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3530 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3531 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3532 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3540 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3543 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3544 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3545 ac_dummy
="/usr/bin:$PATH"
3546 for ac_dir
in $ac_dummy; do
3547 test -z "$ac_dir" && ac_dir
=.
3548 if test -f $ac_dir/${ac_tool_prefix}file; then
3549 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
3550 if test -n "$file_magic_test_file"; then
3551 case $deplibs_check_method in
3553 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3554 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3555 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3556 egrep "$file_magic_regex" > /dev
/null
; then
3561 *** Warning: the command libtool uses to detect shared libraries,
3562 *** $file_magic_cmd, produces output that libtool cannot recognize.
3563 *** The result is that libtool may fail to recognize shared libraries
3564 *** as such. This will affect the creation of libtool libraries that
3565 *** depend on shared libraries, but programs linked with such libtool
3566 *** libraries will work regardless of this problem. Nevertheless, you
3567 *** may want to report the problem to your system manager and/or to
3568 *** bug-libtool@gnu.org
3578 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3583 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3584 if test -n "$MAGIC_CMD"; then
3585 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3586 echo "${ECHO_T}$MAGIC_CMD" >&6
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3592 if test -z "$lt_cv_path_MAGIC_CMD"; then
3593 if test -n "$ac_tool_prefix"; then
3594 echo "$as_me:$LINENO: checking for file" >&5
3595 echo $ECHO_N "checking for file... $ECHO_C" >&6
3596 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3604 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3607 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3608 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3609 ac_dummy
="/usr/bin:$PATH"
3610 for ac_dir
in $ac_dummy; do
3611 test -z "$ac_dir" && ac_dir
=.
3612 if test -f $ac_dir/file; then
3613 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
3614 if test -n "$file_magic_test_file"; then
3615 case $deplibs_check_method in
3617 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3618 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3619 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3620 egrep "$file_magic_regex" > /dev
/null
; then
3625 *** Warning: the command libtool uses to detect shared libraries,
3626 *** $file_magic_cmd, produces output that libtool cannot recognize.
3627 *** The result is that libtool may fail to recognize shared libraries
3628 *** as such. This will affect the creation of libtool libraries that
3629 *** depend on shared libraries, but programs linked with such libtool
3630 *** libraries will work regardless of this problem. Nevertheless, you
3631 *** may want to report the problem to your system manager and/or to
3632 *** bug-libtool@gnu.org
3642 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3647 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3648 if test -n "$MAGIC_CMD"; then
3649 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3650 echo "${ECHO_T}$MAGIC_CMD" >&6
3652 echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3667 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_prog_RANLIB+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 if test -n "$RANLIB"; then
3674 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir
=.
3681 for ac_exec_ext
in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 RANLIB
=$ac_cv_prog_RANLIB
3693 if test -n "$RANLIB"; then
3694 echo "$as_me:$LINENO: result: $RANLIB" >&5
3695 echo "${ECHO_T}$RANLIB" >&6
3697 echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6
3702 if test -z "$ac_cv_prog_RANLIB"; then
3703 ac_ct_RANLIB
=$RANLIB
3704 # Extract the first word of "ranlib", so it can be a program name with args.
3705 set dummy ranlib
; ac_word
=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 if test -n "$ac_ct_RANLIB"; then
3712 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir
=.
3719 for ac_exec_ext
in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3731 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3732 if test -n "$ac_ct_RANLIB"; then
3733 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3734 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3736 echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3740 RANLIB
=$ac_ct_RANLIB
3742 RANLIB
="$ac_cv_prog_RANLIB"
3745 if test -n "$ac_tool_prefix"; then
3746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3747 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3748 echo "$as_me:$LINENO: checking for $ac_word" >&5
3749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3750 if test "${ac_cv_prog_STRIP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 if test -n "$STRIP"; then
3754 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir
=.
3761 for ac_exec_ext
in '' $ac_executable_extensions; do
3762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 STRIP
=$ac_cv_prog_STRIP
3773 if test -n "$STRIP"; then
3774 echo "$as_me:$LINENO: result: $STRIP" >&5
3775 echo "${ECHO_T}$STRIP" >&6
3777 echo "$as_me:$LINENO: result: no" >&5
3778 echo "${ECHO_T}no" >&6
3782 if test -z "$ac_cv_prog_STRIP"; then
3784 # Extract the first word of "strip", so it can be a program name with args.
3785 set dummy strip
; ac_word
=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 if test -n "$ac_ct_STRIP"; then
3792 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir
=.
3799 for ac_exec_ext
in '' $ac_executable_extensions; do
3800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_ac_ct_STRIP
="strip"
3802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3811 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3812 if test -n "$ac_ct_STRIP"; then
3813 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3814 echo "${ECHO_T}$ac_ct_STRIP" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3822 STRIP
="$ac_cv_prog_STRIP"
3826 # Check for any special flags to pass to ltconfig.
3827 libtool_flags
="--cache-file=$cache_file"
3828 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
3829 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
3830 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
3831 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
3832 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
3835 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3836 if test "${enable_libtool_lock+set}" = set; then
3837 enableval
="$enable_libtool_lock"
3840 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
3841 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
3844 # Check whether --with-pic or --without-pic was given.
3845 if test "${with_pic+set}" = set; then
3851 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
3852 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
3854 # Some flags need to be propagated to the compiler or linker for good
3858 # Find out which ABI we are using.
3859 echo '#line 3859 "configure"' > conftest.
$ac_ext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; then
3865 if test "$lt_cv_prog_gnu_ld" = yes; then
3866 case `/usr/bin/file conftest.$ac_objext` in
3868 LD
="${LD-ld} -melf32bsmip"
3871 LD
="${LD-ld} -melf32bmipn32"
3874 LD
="${LD-ld} -melf64bmip"
3878 case `/usr/bin/file conftest.$ac_objext` in
3895 # Find out which ABI we are using.
3896 echo 'int i;' > conftest.
$ac_ext
3897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3898 (eval $ac_compile) 2>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; then
3902 case "`/usr/bin/file conftest.o`" in
3914 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
3915 # Find out which ABI we are using.
3916 echo 'int i;' > conftest.
$ac_ext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918 (eval $ac_compile) 2>&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; then
3922 case "`/usr/bin/file conftest.o`" in
3926 LD
="${LD-ld} -m elf_i386"
3928 ppc64-
*linux
*|powerpc64-
*linux
*)
3929 LD
="${LD-ld} -m elf32ppclinux"
3932 LD
="${LD-ld} -m elf_s390"
3935 LD
="${LD-ld} -m elf32_sparc"
3942 LD
="${LD-ld} -m elf_x86_64"
3944 ppc
*-*linux
*|powerpc
*-*linux
*)
3945 LD
="${LD-ld} -m elf64ppc"
3948 LD
="${LD-ld} -m elf64_s390"
3951 LD
="${LD-ld} -m elf64_sparc"
3961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3962 SAVE_CFLAGS
="$CFLAGS"
3963 CFLAGS
="$CFLAGS -belf"
3964 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3965 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3966 if test "${lt_cv_cc_needs_belf+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_cpp
='$CPP $CPPFLAGS'
3973 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3977 cat >conftest.
$ac_ext <<_ACEOF
3980 cat confdefs.h
>>conftest.
$ac_ext
3981 cat >>conftest.
$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3992 rm -f conftest.
$ac_objext conftest
$ac_exeext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3994 (eval $ac_link) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1
>conftest.err
3998 cat conftest.err
>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try
='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try
='test -s conftest$ac_exeext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 lt_cv_cc_needs_belf
=yes
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.
$ac_ext >&5
4019 lt_cv_cc_needs_belf
=no
4021 rm -f conftest.err conftest.
$ac_objext \
4022 conftest
$ac_exeext conftest.
$ac_ext
4024 ac_cpp
='$CPP $CPPFLAGS'
4025 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4030 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4031 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4032 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4034 CFLAGS
="$SAVE_CFLAGS"
4042 # Save cache, so that ltconfig can load it
4043 cat >confcache
<<\_ACEOF
4044 # This file is a shell script that caches the results of configure
4045 # tests run on this system so they can be shared between configure
4046 # scripts and configure runs, see configure's option --config-cache.
4047 # It is not useful on other systems. If it contains results you don't
4048 # want to keep, you may remove or edit it.
4050 # config.status only pays attention to the cache file if you give it
4051 # the --recheck option to rerun configure.
4053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4059 # The following way of writing the cache mishandles newlines in values,
4060 # but we know of no workaround that is simple, portable, and efficient.
4061 # So, don't put newlines in cache variables' values.
4062 # Ultrix sh set writes to stderr and can't be redirected directly,
4063 # and sets the high bit in the cache file unless we assign to the vars.
4066 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4068 # `set' does not quote correctly, so add quotes (double-quote
4069 # substitution turns \\\\ into \\, and sed turns \\ into \).
4072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4075 # `set' quotes correctly as required by POSIX, so do not add quotes.
4077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4086 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4088 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4089 if test -w $cache_file; then
4090 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4091 cat confcache
>$cache_file
4093 echo "not updating unwritable cache $cache_file"
4098 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4099 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
4100 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
4101 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
4102 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
4103 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
4104 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
4105 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
4106 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
4107 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4108 echo "$as_me: error: libtool configure failed" >&2;}
4109 { (exit 1); exit 1; }; }
4111 # Reload cache, that may have been modified by ltconfig
4112 if test -r "$cache_file"; then
4113 # Some versions of bash will fail to source /dev/null (special
4114 # files actually), so we avoid doing that.
4115 if test -f "$cache_file"; then
4116 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4117 echo "$as_me: loading cache $cache_file" >&6;}
4119 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
4120 *) . .
/$cache_file;;
4124 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4125 echo "$as_me: creating cache $cache_file" >&6;}
4130 # This can be used to rebuild libtool when needed
4131 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4133 # Always use our own libtool.
4134 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
4136 # Redirect the config.log output again, so that the ltconfig log is not
4137 # clobbered by the next message.
4138 exec 5>>.
/config.log
4146 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4147 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4148 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4149 if test "${enable_maintainer_mode+set}" = set; then
4150 enableval
="$enable_maintainer_mode"
4151 USE_MAINTAINER_MODE
=$enableval
4153 USE_MAINTAINER_MODE
=no
4155 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4156 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4159 if test $USE_MAINTAINER_MODE = yes; then
4160 MAINTAINER_MODE_TRUE
=
4161 MAINTAINER_MODE_FALSE
='#'
4163 MAINTAINER_MODE_TRUE
='#'
4164 MAINTAINER_MODE_FALSE
=
4167 MAINT
=$MAINTAINER_MODE_TRUE
4172 ac_cpp
='$CPP $CPPFLAGS'
4173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4176 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4177 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4178 # On Suns, sometimes $CPP names a directory.
4179 if test -n "$CPP" && test -d "$CPP"; then
4182 if test -z "$CPP"; then
4183 if test "${ac_cv_prog_CPP+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 # Double quotes because CPP needs to be expanded
4187 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4190 for ac_c_preproc_warn_flag
in '' yes
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat >conftest.
$ac_ext <<_ACEOF
4201 cat confdefs.h
>>conftest.
$ac_ext
4202 cat >>conftest.
$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4205 # include <limits.h>
4207 # include <assert.h>
4211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4214 grep -v '^ *+' conftest.er1
>conftest.err
4216 cat conftest.err
>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev
/null
; then
4219 if test -s conftest.err
; then
4220 ac_cpp_err
=$ac_c_preproc_warn_flag
4221 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4228 if test -z "$ac_cpp_err"; then
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.
$ac_ext >&5
4234 # Broken: fails on valid input.
4237 rm -f conftest.err conftest.
$ac_ext
4239 # OK, works on sane cases. Now check whether non-existent headers
4240 # can be detected and how.
4241 cat >conftest.
$ac_ext <<_ACEOF
4244 cat confdefs.h
>>conftest.
$ac_ext
4245 cat >>conftest.
$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4250 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4252 grep -v '^ *+' conftest.er1
>conftest.err
4254 cat conftest.err
>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev
/null
; then
4257 if test -s conftest.err
; then
4258 ac_cpp_err
=$ac_c_preproc_warn_flag
4259 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4266 if test -z "$ac_cpp_err"; then
4267 # Broken: success on invalid input.
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.
$ac_ext >&5
4273 # Passes both tests.
4277 rm -f conftest.err conftest.
$ac_ext
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.
$ac_ext
4282 if $ac_preproc_ok; then
4294 echo "$as_me:$LINENO: result: $CPP" >&5
4295 echo "${ECHO_T}$CPP" >&6
4297 for ac_c_preproc_warn_flag
in '' yes
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat >conftest.
$ac_ext <<_ACEOF
4308 cat confdefs.h
>>conftest.
$ac_ext
4309 cat >>conftest.
$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4312 # include <limits.h>
4314 # include <assert.h>
4318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4319 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4321 grep -v '^ *+' conftest.er1
>conftest.err
4323 cat conftest.err
>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } >/dev
/null
; then
4326 if test -s conftest.err
; then
4327 ac_cpp_err
=$ac_c_preproc_warn_flag
4328 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4335 if test -z "$ac_cpp_err"; then
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.
$ac_ext >&5
4341 # Broken: fails on valid input.
4344 rm -f conftest.err conftest.
$ac_ext
4346 # OK, works on sane cases. Now check whether non-existent headers
4347 # can be detected and how.
4348 cat >conftest.
$ac_ext <<_ACEOF
4351 cat confdefs.h
>>conftest.
$ac_ext
4352 cat >>conftest.
$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 #include <ac_nonexistent.h>
4356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4359 grep -v '^ *+' conftest.er1
>conftest.err
4361 cat conftest.err
>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } >/dev
/null
; then
4364 if test -s conftest.err
; then
4365 ac_cpp_err
=$ac_c_preproc_warn_flag
4366 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4373 if test -z "$ac_cpp_err"; then
4374 # Broken: success on invalid input.
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.
$ac_ext >&5
4380 # Passes both tests.
4384 rm -f conftest.err conftest.
$ac_ext
4387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388 rm -f conftest.err conftest.
$ac_ext
4389 if $ac_preproc_ok; then
4392 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4393 See \`config.log' for more details." >&5
4394 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4395 See \`config.log' for more details." >&2;}
4396 { (exit 1); exit 1; }; }
4400 ac_cpp
='$CPP $CPPFLAGS'
4401 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4406 echo "$as_me:$LINENO: checking for egrep" >&5
4407 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4408 if test "${ac_cv_prog_egrep+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4412 then ac_cv_prog_egrep
='grep -E'
4413 else ac_cv_prog_egrep
='egrep'
4416 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4417 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4418 EGREP
=$ac_cv_prog_egrep
4421 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4422 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4423 if test "${ac_cv_header_stdc+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4445 rm -f conftest.
$ac_objext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>conftest.er1
4449 grep -v '^ *+' conftest.er1
>conftest.err
4451 cat conftest.err
>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try
='test -z "$ac_c_werror_flag"
4455 || test ! -s conftest.err'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; } &&
4461 { ac_try
='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_cv_header_stdc
=yes
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.
$ac_ext >&5
4472 ac_cv_header_stdc
=no
4474 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4476 if test $ac_cv_header_stdc = yes; then
4477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4478 cat >conftest.
$ac_ext <<_ACEOF
4481 cat confdefs.h
>>conftest.
$ac_ext
4482 cat >>conftest.
$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488 $EGREP "memchr" >/dev
/null
2>&1; then
4491 ac_cv_header_stdc
=no
4497 if test $ac_cv_header_stdc = yes; then
4498 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4499 cat >conftest.
$ac_ext <<_ACEOF
4502 cat confdefs.h
>>conftest.
$ac_ext
4503 cat >>conftest.
$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509 $EGREP "free" >/dev
/null
2>&1; then
4512 ac_cv_header_stdc
=no
4518 if test $ac_cv_header_stdc = yes; then
4519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4520 if test "$cross_compiling" = yes; then
4523 cat >conftest.
$ac_ext <<_ACEOF
4526 cat confdefs.h
>>conftest.
$ac_ext
4527 cat >>conftest.
$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4530 #if ((' ' & 0x0FF) == 0x020)
4531 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4532 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4534 # define ISLOWER(c) \
4535 (('a' <= (c) && (c) <= 'i') \
4536 || ('j' <= (c) && (c) <= 'r') \
4537 || ('s' <= (c) && (c) <= 'z'))
4538 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4541 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4546 for (i = 0; i < 256; i++)
4547 if (XOR (islower (i), ISLOWER (i))
4548 || toupper (i) != TOUPPER (i))
4553 rm -f conftest
$ac_exeext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555 (eval $ac_link) 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4566 echo "$as_me: program exited with status $ac_status" >&5
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.
$ac_ext >&5
4571 ac_cv_header_stdc
=no
4573 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4577 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4578 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4579 if test $ac_cv_header_stdc = yes; then
4581 cat >>confdefs.h
<<\_ACEOF
4582 #define STDC_HEADERS 1
4587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4597 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4598 inttypes.h stdint.h unistd.h
4600 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4601 echo "$as_me:$LINENO: checking for $ac_header" >&5
4602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 cat >conftest.
$ac_ext <<_ACEOF
4609 cat confdefs.h
>>conftest.
$ac_ext
4610 cat >>conftest.
$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 $ac_includes_default
4614 #include <$ac_header>
4616 rm -f conftest.
$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1
>conftest.err
4622 cat conftest.err
>&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try
='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try
='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 eval "$as_ac_Header=yes"
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.
$ac_ext >&5
4643 eval "$as_ac_Header=no"
4645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4650 cat >>confdefs.h
<<_ACEOF
4651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4660 for ac_header
in sys
/mman.h
4662 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4664 echo "$as_me:$LINENO: checking for $ac_header" >&5
4665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4672 # Is the header compilable?
4673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4675 cat >conftest.
$ac_ext <<_ACEOF
4678 cat confdefs.h
>>conftest.
$ac_ext
4679 cat >>conftest.
$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 $ac_includes_default
4682 #include <$ac_header>
4684 rm -f conftest.
$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686 (eval $ac_compile) 2>conftest.er1
4688 grep -v '^ *+' conftest.er1
>conftest.err
4690 cat conftest.err
>&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } &&
4693 { ac_try
='test -z "$ac_c_werror_flag"
4694 || test ! -s conftest.err'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; } &&
4700 { ac_try
='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_header_compiler
=yes
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.
$ac_ext >&5
4711 ac_header_compiler
=no
4713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715 echo "${ECHO_T}$ac_header_compiler" >&6
4717 # Is the header present?
4718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4720 cat >conftest.
$ac_ext <<_ACEOF
4723 cat confdefs.h
>>conftest.
$ac_ext
4724 cat >>conftest.
$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <$ac_header>
4728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4731 grep -v '^ *+' conftest.er1
>conftest.err
4733 cat conftest.err
>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev
/null
; then
4736 if test -s conftest.err
; then
4737 ac_cpp_err
=$ac_c_preproc_warn_flag
4738 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4745 if test -z "$ac_cpp_err"; then
4746 ac_header_preproc
=yes
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.
$ac_ext >&5
4751 ac_header_preproc
=no
4753 rm -f conftest.err conftest.
$ac_ext
4754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4755 echo "${ECHO_T}$ac_header_preproc" >&6
4757 # So? What about this header?
4758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4764 ac_header_preproc
=yes
4767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4781 ## ------------------------------------------- ##
4782 ## Report this to http://gcc.gnu.org/bugs.html ##
4783 ## ------------------------------------------- ##
4786 sed "s/^/$as_me: WARNING: /" >&2
4789 echo "$as_me:$LINENO: checking for $ac_header" >&5
4790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 eval "$as_ac_Header=\$ac_header_preproc"
4796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4801 cat >>confdefs.h
<<_ACEOF
4802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4812 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4813 echo "$as_me:$LINENO: checking for $ac_func" >&5
4814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4815 if eval "test \"\${$as_ac_var+set}\" = set"; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 cat >conftest.
$ac_ext <<_ACEOF
4821 cat confdefs.h
>>conftest.
$ac_ext
4822 cat >>conftest.
$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4826 #define $ac_func innocuous_$ac_func
4828 /* System header to define __stub macros and hopefully few prototypes,
4829 which can conflict with char $ac_func (); below.
4830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4831 <limits.h> exists even on freestanding compilers. */
4834 # include <limits.h>
4836 # include <assert.h>
4841 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4849 /* The GNU C library defines this for functions which it implements
4850 to always fail with ENOSYS. Some functions are actually named
4851 something starting with __ and the normal name is an alias. */
4852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4855 char (*f) () = $ac_func;
4864 return f != $ac_func;
4869 rm -f conftest.
$ac_objext conftest
$ac_exeext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4871 (eval $ac_link) 2>conftest.er1
4873 grep -v '^ *+' conftest.er1
>conftest.err
4875 cat conftest.err
>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try
='test -z "$ac_c_werror_flag"
4879 || test ! -s conftest.err'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; } &&
4885 { ac_try
='test -s conftest$ac_exeext'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 eval "$as_ac_var=yes"
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.
$ac_ext >&5
4896 eval "$as_ac_var=no"
4898 rm -f conftest.err conftest.
$ac_objext \
4899 conftest
$ac_exeext conftest.
$ac_ext
4901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4903 if test `eval echo '${'$as_ac_var'}'` = yes; then
4904 cat >>confdefs.h
<<_ACEOF
4905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4912 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4913 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4914 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4915 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4919 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4921 # Is the header compilable?
4922 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4923 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4924 cat >conftest.
$ac_ext <<_ACEOF
4927 cat confdefs.h
>>conftest.
$ac_ext
4928 cat >>conftest.
$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 $ac_includes_default
4931 #include <sys/mman.h>
4933 rm -f conftest.
$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try
='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try
='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_header_compiler
=yes
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.
$ac_ext >&5
4960 ac_header_compiler
=no
4962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4964 echo "${ECHO_T}$ac_header_compiler" >&6
4966 # Is the header present?
4967 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
4968 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
4969 cat >conftest.
$ac_ext <<_ACEOF
4972 cat confdefs.h
>>conftest.
$ac_ext
4973 cat >>conftest.
$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975 #include <sys/mman.h>
4977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4978 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4980 grep -v '^ *+' conftest.er1
>conftest.err
4982 cat conftest.err
>&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } >/dev
/null
; then
4985 if test -s conftest.err
; then
4986 ac_cpp_err
=$ac_c_preproc_warn_flag
4987 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4994 if test -z "$ac_cpp_err"; then
4995 ac_header_preproc
=yes
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.
$ac_ext >&5
5000 ac_header_preproc
=no
5002 rm -f conftest.err conftest.
$ac_ext
5003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5004 echo "${ECHO_T}$ac_header_preproc" >&6
5006 # So? What about this header?
5007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5009 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5010 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5011 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5012 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5013 ac_header_preproc
=yes
5016 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5017 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5018 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
5019 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
5020 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5021 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5022 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
5023 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
5024 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5025 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5026 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5027 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5030 ## ------------------------------------------- ##
5031 ## Report this to http://gcc.gnu.org/bugs.html ##
5032 ## ------------------------------------------- ##
5035 sed "s/^/$as_me: WARNING: /" >&2
5038 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5039 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5040 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 ac_cv_header_sys_mman_h
=$ac_header_preproc
5045 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5046 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5049 if test $ac_cv_header_sys_mman_h = yes; then
5050 libffi_header_sys_mman_h
=yes
5052 libffi_header_sys_mman_h
=no
5056 echo "$as_me:$LINENO: checking for mmap" >&5
5057 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5058 if test "${ac_cv_func_mmap+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 cat >conftest.
$ac_ext <<_ACEOF
5064 cat confdefs.h
>>conftest.
$ac_ext
5065 cat >>conftest.
$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5069 #define mmap innocuous_mmap
5071 /* System header to define __stub macros and hopefully few prototypes,
5072 which can conflict with char mmap (); below.
5073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 <limits.h> exists even on freestanding compilers. */
5077 # include <limits.h>
5079 # include <assert.h>
5084 /* Override any gcc2 internal prototype to avoid an error. */
5089 /* We use char because int might match the return type of a gcc2
5090 builtin and then its argument prototype would still apply. */
5092 /* The GNU C library defines this for functions which it implements
5093 to always fail with ENOSYS. Some functions are actually named
5094 something starting with __ and the normal name is an alias. */
5095 #if defined (__stub_mmap) || defined (__stub___mmap)
5098 char (*f) () = mmap;
5112 rm -f conftest.
$ac_objext conftest
$ac_exeext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114 (eval $ac_link) 2>conftest.er1
5116 grep -v '^ *+' conftest.er1
>conftest.err
5118 cat conftest.err
>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } &&
5121 { ac_try
='test -z "$ac_c_werror_flag"
5122 || test ! -s conftest.err'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; } &&
5128 { ac_try
='test -s conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.
$ac_ext >&5
5141 rm -f conftest.err conftest.
$ac_objext \
5142 conftest
$ac_exeext conftest.
$ac_ext
5144 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5145 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5146 if test $ac_cv_func_mmap = yes; then
5147 libffi_func_mmap
=yes
5152 if test "$libffi_header_sys_mman_h" != yes \
5153 ||
test "$libffi_func_mmap" != yes; then
5154 ac_cv_func_mmap_file
=no
5155 ac_cv_func_mmap_dev_zero
=no
5156 ac_cv_func_mmap_anon
=no
5158 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5159 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5160 if test "${ac_cv_func_mmap_file+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 # Add a system to this blacklist if
5164 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5165 # memory area containing the same data that you'd get if you applied
5166 # read() to the same fd. The only system known to have a problem here
5167 # is VMS, where text files have record structure.
5170 ac_cv_func_mmap_file
=no
;;
5172 ac_cv_func_mmap_file
=yes;;
5175 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
5176 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
5177 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5178 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5179 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 # Add a system to this blacklist if it has mmap() but /dev/zero
5183 # does not exist, or if mmapping /dev/zero does not give anonymous
5184 # zeroed pages with both the following properties:
5185 # 1. If you map N consecutive pages in with one call, and then
5186 # unmap any subset of those pages, the pages that were not
5187 # explicitly unmapped remain accessible.
5188 # 2. If you map two adjacent blocks of memory and then unmap them
5189 # both at once, they must both go away.
5190 # Systems known to be in this category are Windows (all variants),
5193 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
5194 ac_cv_func_mmap_dev_zero
=no
;;
5196 ac_cv_func_mmap_dev_zero
=yes;;
5199 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5200 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
5202 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5203 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5204 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5205 if test "${ac_cv_decl_map_anon+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 cat >conftest.
$ac_ext <<_ACEOF
5211 cat confdefs.h
>>conftest.
$ac_ext
5212 cat >>conftest.
$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <sys/types.h>
5215 #include <sys/mman.h>
5218 #ifndef MAP_ANONYMOUS
5219 #define MAP_ANONYMOUS MAP_ANON
5225 int n = MAP_ANONYMOUS;
5230 rm -f conftest.
$ac_objext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5232 (eval $ac_compile) 2>conftest.er1
5234 grep -v '^ *+' conftest.er1
>conftest.err
5236 cat conftest.err
>&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try
='test -z "$ac_c_werror_flag"
5240 || test ! -s conftest.err'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; } &&
5246 { ac_try
='test -s conftest.$ac_objext'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; }; then
5252 ac_cv_decl_map_anon
=yes
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.
$ac_ext >&5
5257 ac_cv_decl_map_anon
=no
5259 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5261 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
5262 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
5264 if test $ac_cv_decl_map_anon = no
; then
5265 ac_cv_func_mmap_anon
=no
5267 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5268 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5269 if test "${ac_cv_func_mmap_anon+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 # Add a system to this blacklist if it has mmap() and MAP_ANON or
5273 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5274 # doesn't give anonymous zeroed pages with the same properties listed
5275 # above for use of /dev/zero.
5276 # Systems known to be in this category are Windows, VMS, and SCO Unix.
5278 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
5279 ac_cv_func_mmap_anon
=no
;;
5281 ac_cv_func_mmap_anon
=yes;;
5284 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5285 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
5289 if test $ac_cv_func_mmap_file = yes; then
5291 cat >>confdefs.h
<<\_ACEOF
5292 #define HAVE_MMAP_FILE 1
5296 if test $ac_cv_func_mmap_dev_zero = yes; then
5298 cat >>confdefs.h
<<\_ACEOF
5299 #define HAVE_MMAP_DEV_ZERO 1
5303 if test $ac_cv_func_mmap_anon = yes; then
5305 cat >>confdefs.h
<<\_ACEOF
5306 #define HAVE_MMAP_ANON 1
5314 if test -d $srcdir/testsuite
; then
5316 TESTSUBDIR_FALSE
='#'
5325 i
*86-*-linux*) TARGET
=X86
; TARGETDIR
=x86
;;
5326 i
*86-*-solaris*) TARGET
=X86
; TARGETDIR
=x86
;;
5327 i
*86-*-beos*) TARGET
=X86
; TARGETDIR
=x86
;;
5328 i
*86-*-freebsd* | i
*86-*-kfreebsd*-gnu) TARGET
=X86
; TARGETDIR
=x86
;;
5329 i
*86-*-netbsdelf* | i
*86-*-knetbsd*-gnu) TARGET
=X86
; TARGETDIR
=x86
;;
5330 i
*86-*-win32*) TARGET
=X86_WIN32
; TARGETDIR
=x86
;;
5331 i
*86-*-cygwin*) TARGET
=X86_WIN32
; TARGETDIR
=x86
;;
5332 i
*86-*-mingw*) TARGET
=X86_WIN32
; TARGETDIR
=x86
;;
5333 frv-
*-*) TARGET
=FRV
; TARGETDIR
=frv
;;
5334 sparc-sun-4
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
5335 sparc
*-sun-*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
5336 sparc-
*-linux* | sparc-
*-netbsdelf* | sparc-
*-knetbsd*-gnu) TARGET
=SPARC
; TARGETDIR
=sparc
;;
5337 sparc64-
*-linux* | sparc64-
*-netbsd* | sparc64-
*-knetbsd*-gnu) TARGET
=SPARC
; TARGETDIR
=sparc
;;
5338 alpha
*-*-linux* | alpha
*-*-osf* | alpha
*-*-freebsd* | alpha
*-*-kfreebsd*-gnu | alpha
*-*-netbsd* | alpha
*-*-knetbsd*-gnu) TARGET
=ALPHA
; TARGETDIR
=alpha
;;
5339 ia64
*-*-*) TARGET
=IA64
; TARGETDIR
=ia64
;;
5340 m32r
*-*-linux* ) TARGET
=M32R
; TARGETDIR
=m32r
;;
5341 m68k-
*-linux*) TARGET
=M68K
; TARGETDIR
=m68k
;;
5343 mips-sgi-irix5.
* | mips-sgi-irix6.
*) TARGET
=MIPS_IRIX
; TARGETDIR
=mips
;;
5344 mips
*-*-linux*) TARGET
=MIPS_LINUX
; TARGETDIR
=mips
;;
5345 powerpc
*-*-linux* | powerpc-
*-sysv*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
5346 powerpc-
*-beos*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
5347 powerpc-
*-darwin*) TARGET
=POWERPC_DARWIN
; TARGETDIR
=powerpc
;;
5348 powerpc-
*-aix*) TARGET
=POWERPC_AIX
; TARGETDIR
=powerpc
;;
5349 rs6000-
*-aix*) TARGET
=POWERPC_AIX
; TARGETDIR
=powerpc
;;
5350 arm
*-*-linux-*) TARGET
=ARM
; TARGETDIR
=arm
;;
5351 arm
*-*-netbsdelf* | arm
*-*-knetbsd*-gnu) TARGET
=ARM
; TARGETDIR
=arm
;;
5352 s390-
*-linux-*) TARGET
=S390
; TARGETDIR
=s390
;;
5353 s390x-
*-linux-*) TARGET
=S390
; TARGETDIR
=s390
;;
5354 x86_64-
*-linux* | x86_64-
*-freebsd* | x86_64-
*-kfreebsd*-gnu) TARGET
=X86_64
; TARGETDIR
=x86
;;
5355 sh-
*-linux* | sh
[34]*-*-linux*) TARGET
=SH
; TARGETDIR
=sh
;;
5356 sh64-
*-linux* | sh5
*-*-linux*) TARGET
=SH64
; TARGETDIR
=sh64
;;
5357 hppa-
*-linux* | parisc-
*-linux*) TARGET
=PA
; TARGETDIR
=pa
;;
5362 if test $TARGETDIR = unknown
; then
5363 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5364 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5365 { (exit 1); exit 1; }; }
5370 if test x
$TARGET = xMIPS_IRIX
; then
5380 if test x
$TARGET = xMIPS_LINUX
; then
5382 MIPS_LINUX_FALSE
='#'
5390 if test x
$TARGET = xSPARC
; then
5400 if test x
$TARGET = xX86
; then
5410 if test x
$TARGET = xX86_WIN32
; then
5420 if test x
$TARGET = xALPHA
; then
5430 if test x
$TARGET = xIA64
; then
5440 if test x
$TARGET = xM32R
; then
5450 if test x
$TARGET = xM68K
; then
5460 if test x
$TARGET = xPOWERPC
; then
5470 if test x
$TARGET = xPOWERPC_AIX
; then
5472 POWERPC_AIX_FALSE
='#'
5474 POWERPC_AIX_TRUE
='#'
5480 if test x
$TARGET = xPOWERPC_DARWIN
; then
5481 POWERPC_DARWIN_TRUE
=
5482 POWERPC_DARWIN_FALSE
='#'
5484 POWERPC_DARWIN_TRUE
='#'
5485 POWERPC_DARWIN_FALSE
=
5490 if test x
$TARGET = xARM
; then
5500 if test x
$TARGET = xFRV
; then
5510 if test x
$TARGET = xS390
; then
5520 if test x
$TARGET = xX86_64
; then
5530 if test x
$TARGET = xSH
; then
5540 if test x
$TARGET = xSH64
; then
5550 if test x
$TARGET = xPA
; then
5560 xMIPS
*) TARGET
=MIPS
;;
5564 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5566 if test "${ac_cv_header_stdc+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 cat >conftest.
$ac_ext <<_ACEOF
5572 cat confdefs.h
>>conftest.
$ac_ext
5573 cat >>conftest.
$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5588 rm -f conftest.
$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590 (eval $ac_compile) 2>conftest.er1
5592 grep -v '^ *+' conftest.er1
>conftest.err
5594 cat conftest.err
>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try
='test -z "$ac_c_werror_flag"
5598 || test ! -s conftest.err'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; } &&
5604 { ac_try
='test -s conftest.$ac_objext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_cv_header_stdc
=yes
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.
$ac_ext >&5
5615 ac_cv_header_stdc
=no
5617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5619 if test $ac_cv_header_stdc = yes; then
5620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5621 cat >conftest.
$ac_ext <<_ACEOF
5624 cat confdefs.h
>>conftest.
$ac_ext
5625 cat >>conftest.
$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5631 $EGREP "memchr" >/dev
/null
2>&1; then
5634 ac_cv_header_stdc
=no
5640 if test $ac_cv_header_stdc = yes; then
5641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5642 cat >conftest.
$ac_ext <<_ACEOF
5645 cat confdefs.h
>>conftest.
$ac_ext
5646 cat >>conftest.
$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "free" >/dev
/null
2>&1; then
5655 ac_cv_header_stdc
=no
5661 if test $ac_cv_header_stdc = yes; then
5662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5663 if test "$cross_compiling" = yes; then
5666 cat >conftest.
$ac_ext <<_ACEOF
5669 cat confdefs.h
>>conftest.
$ac_ext
5670 cat >>conftest.
$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5673 #if ((' ' & 0x0FF) == 0x020)
5674 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5675 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5677 # define ISLOWER(c) \
5678 (('a' <= (c) && (c) <= 'i') \
5679 || ('j' <= (c) && (c) <= 'r') \
5680 || ('s' <= (c) && (c) <= 'z'))
5681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5689 for (i = 0; i < 256; i++)
5690 if (XOR (islower (i), ISLOWER (i))
5691 || toupper (i) != TOUPPER (i))
5696 rm -f conftest
$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5709 echo "$as_me: program exited with status $ac_status" >&5
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.
$ac_ext >&5
5714 ac_cv_header_stdc
=no
5716 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5720 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5721 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5722 if test $ac_cv_header_stdc = yes; then
5724 cat >>confdefs.h
<<\_ACEOF
5725 #define STDC_HEADERS 1
5731 for ac_func
in memcpy
5733 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5734 echo "$as_me:$LINENO: checking for $ac_func" >&5
5735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5736 if eval "test \"\${$as_ac_var+set}\" = set"; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 cat >conftest.
$ac_ext <<_ACEOF
5742 cat confdefs.h
>>conftest.
$ac_ext
5743 cat >>conftest.
$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5747 #define $ac_func innocuous_$ac_func
5749 /* System header to define __stub macros and hopefully few prototypes,
5750 which can conflict with char $ac_func (); below.
5751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5752 <limits.h> exists even on freestanding compilers. */
5755 # include <limits.h>
5757 # include <assert.h>
5762 /* Override any gcc2 internal prototype to avoid an error. */
5767 /* We use char because int might match the return type of a gcc2
5768 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5776 char (*f) () = $ac_func;
5785 return f != $ac_func;
5790 rm -f conftest.
$ac_objext conftest
$ac_exeext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5792 (eval $ac_link) 2>conftest.er1
5794 grep -v '^ *+' conftest.er1
>conftest.err
5796 cat conftest.err
>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try
='test -z "$ac_c_werror_flag"
5800 || test ! -s conftest.err'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; } &&
5806 { ac_try
='test -s conftest$ac_exeext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 eval "$as_ac_var=yes"
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.
$ac_ext >&5
5817 eval "$as_ac_var=no"
5819 rm -f conftest.err conftest.
$ac_objext \
5820 conftest
$ac_exeext conftest.
$ac_ext
5822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5824 if test `eval echo '${'$as_ac_var'}'` = yes; then
5825 cat >>confdefs.h
<<_ACEOF
5826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5832 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5833 # for constant arguments. Useless!
5834 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5835 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5836 if test "${ac_cv_working_alloca_h+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 cat >conftest.
$ac_ext <<_ACEOF
5842 cat confdefs.h
>>conftest.
$ac_ext
5843 cat >>conftest.
$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5849 char *p = (char *) alloca (2 * sizeof (int));
5854 rm -f conftest.
$ac_objext conftest
$ac_exeext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856 (eval $ac_link) 2>conftest.er1
5858 grep -v '^ *+' conftest.er1
>conftest.err
5860 cat conftest.err
>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try
='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try
='test -s conftest$ac_exeext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 ac_cv_working_alloca_h
=yes
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.
$ac_ext >&5
5881 ac_cv_working_alloca_h
=no
5883 rm -f conftest.err conftest.
$ac_objext \
5884 conftest
$ac_exeext conftest.
$ac_ext
5886 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5887 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5888 if test $ac_cv_working_alloca_h = yes; then
5890 cat >>confdefs.h
<<\_ACEOF
5891 #define HAVE_ALLOCA_H 1
5896 echo "$as_me:$LINENO: checking for alloca" >&5
5897 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5898 if test "${ac_cv_func_alloca_works+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 cat >conftest.
$ac_ext <<_ACEOF
5904 cat confdefs.h
>>conftest.
$ac_ext
5905 cat >>conftest.
$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5908 # define alloca __builtin_alloca
5911 # include <malloc.h>
5912 # define alloca _alloca
5915 # include <alloca.h>
5920 # ifndef alloca /* predefined by HP cc +Olibcalls */
5931 char *p = (char *) alloca (1);
5936 rm -f conftest.
$ac_objext conftest
$ac_exeext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938 (eval $ac_link) 2>conftest.er1
5940 grep -v '^ *+' conftest.er1
>conftest.err
5942 cat conftest.err
>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try
='test -z "$ac_c_werror_flag"
5946 || test ! -s conftest.err'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; } &&
5952 { ac_try
='test -s conftest$ac_exeext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_func_alloca_works
=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.
$ac_ext >&5
5963 ac_cv_func_alloca_works
=no
5965 rm -f conftest.err conftest.
$ac_objext \
5966 conftest
$ac_exeext conftest.
$ac_ext
5968 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5969 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5971 if test $ac_cv_func_alloca_works = yes; then
5973 cat >>confdefs.h
<<\_ACEOF
5974 #define HAVE_ALLOCA 1
5978 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5979 # that cause trouble. Some versions do not even contain alloca or
5980 # contain a buggy version. If you still want to use their alloca,
5981 # use ar to extract alloca.o from them instead of compiling alloca.c.
5983 ALLOCA
=alloca.
$ac_objext
5985 cat >>confdefs.h
<<\_ACEOF
5990 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5991 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5992 if test "${ac_cv_os_cray+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5998 cat confdefs.h
>>conftest.
$ac_ext
5999 cat >>conftest.
$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #if defined(CRAY) && ! defined(CRAY2)
6008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6009 $EGREP "webecray" >/dev
/null
2>&1; then
6017 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6018 echo "${ECHO_T}$ac_cv_os_cray" >&6
6019 if test $ac_cv_os_cray = yes; then
6020 for ac_func
in _getb67 GETB67 getb67
; do
6021 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6022 echo "$as_me:$LINENO: checking for $ac_func" >&5
6023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6024 if eval "test \"\${$as_ac_var+set}\" = set"; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 cat >conftest.
$ac_ext <<_ACEOF
6030 cat confdefs.h
>>conftest.
$ac_ext
6031 cat >>conftest.
$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6035 #define $ac_func innocuous_$ac_func
6037 /* System header to define __stub macros and hopefully few prototypes,
6038 which can conflict with char $ac_func (); below.
6039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6040 <limits.h> exists even on freestanding compilers. */
6043 # include <limits.h>
6045 # include <assert.h>
6050 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6058 /* The GNU C library defines this for functions which it implements
6059 to always fail with ENOSYS. Some functions are actually named
6060 something starting with __ and the normal name is an alias. */
6061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6064 char (*f) () = $ac_func;
6073 return f != $ac_func;
6078 rm -f conftest.
$ac_objext conftest
$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080 (eval $ac_link) 2>conftest.er1
6082 grep -v '^ *+' conftest.er1
>conftest.err
6084 cat conftest.err
>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try
='test -z "$ac_c_werror_flag"
6088 || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try
='test -s conftest$ac_exeext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 eval "$as_ac_var=yes"
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.
$ac_ext >&5
6105 eval "$as_ac_var=no"
6107 rm -f conftest.err conftest.
$ac_objext \
6108 conftest
$ac_exeext conftest.
$ac_ext
6110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6112 if test `eval echo '${'$as_ac_var'}'` = yes; then
6114 cat >>confdefs.h
<<_ACEOF
6115 #define CRAY_STACKSEG_END $ac_func
6124 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6125 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6126 if test "${ac_cv_c_stack_direction+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 if test "$cross_compiling" = yes; then
6130 ac_cv_c_stack_direction
=0
6132 cat >conftest.
$ac_ext <<_ACEOF
6135 cat confdefs.h
>>conftest.
$ac_ext
6136 cat >>conftest.
$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6139 find_stack_direction ()
6141 static char *addr = 0;
6146 return find_stack_direction ();
6149 return (&dummy > addr) ? 1 : -1;
6155 exit (find_stack_direction () < 0);
6158 rm -f conftest
$ac_exeext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6160 (eval $ac_link) 2>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_c_stack_direction
=1
6171 echo "$as_me: program exited with status $ac_status" >&5
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.
$ac_ext >&5
6176 ac_cv_c_stack_direction
=-1
6178 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6181 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6182 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6184 cat >>confdefs.h
<<_ACEOF
6185 #define STACK_DIRECTION $ac_cv_c_stack_direction
6192 echo "$as_me:$LINENO: checking size of double" >&5
6193 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6194 if test "${ac_cv_sizeof_double+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6198 cat >conftest.
$ac_ext <<_ACEOF
6201 cat confdefs.h
>>conftest.
$ac_ext
6202 cat >>conftest.
$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 #include "confdefs.h"
6205 #include <sys/types.h>
6211 switch (0) case 0: case (sizeof (double) == $ac_size):;
6216 rm -f conftest.
$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6220 grep -v '^ *+' conftest.er1
>conftest.err
6222 cat conftest.err
>&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try
='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try
='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_sizeof_double
=$ac_size
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.
$ac_ext >&5
6244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6245 if test x
$ac_cv_sizeof_double != x
; then break; fi
6250 if test x
$ac_cv_sizeof_double = x
; then
6251 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
6252 echo "$as_me: error: cannot determine a size for double" >&2;}
6253 { (exit 1); exit 1; }; }
6255 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6256 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6258 cat >>confdefs.h
<<_ACEOF
6259 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6263 echo "$as_me:$LINENO: checking size of long double" >&5
6264 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6265 if test "${ac_cv_sizeof_long_double+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6269 cat >conftest.
$ac_ext <<_ACEOF
6272 cat confdefs.h
>>conftest.
$ac_ext
6273 cat >>conftest.
$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #include "confdefs.h"
6276 #include <sys/types.h>
6282 switch (0) case 0: case (sizeof (long double) == $ac_size):;
6287 rm -f conftest.
$ac_objext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289 (eval $ac_compile) 2>conftest.er1
6291 grep -v '^ *+' conftest.er1
>conftest.err
6293 cat conftest.err
>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try
='test -z "$ac_c_werror_flag"
6297 || test ! -s conftest.err'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try
='test -s conftest.$ac_objext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_cv_sizeof_long_double
=$ac_size
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.
$ac_ext >&5
6315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6316 if test x
$ac_cv_sizeof_long_double != x
; then break; fi
6321 if test x
$ac_cv_sizeof_long_double = x
; then
6322 { { echo "$as_me:$LINENO: error: cannot determine a size for long double" >&5
6323 echo "$as_me: error: cannot determine a size for long double" >&2;}
6324 { (exit 1); exit 1; }; }
6326 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6327 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6329 cat >>confdefs.h
<<_ACEOF
6330 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6335 # Also AC_SUBST this variable for ffi.h.
6337 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
6338 if test $ac_cv_sizeof_long_double != 0; then
6341 cat >>confdefs.h
<<\_ACEOF
6342 #define HAVE_LONG_DOUBLE 1
6349 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6350 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6351 if test "${ac_cv_c_bigendian+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 ac_cv_c_bigendian
=unknown
6355 # See if sys/param.h defines the BYTE_ORDER macro.
6356 cat >conftest.
$ac_ext <<_ACEOF
6359 cat confdefs.h
>>conftest.
$ac_ext
6360 cat >>conftest.
$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362 #include <sys/types.h>
6363 #include <sys/param.h>
6368 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6375 rm -f conftest.
$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>conftest.er1
6379 grep -v '^ *+' conftest.er1
>conftest.err
6381 cat conftest.err
>&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try
='test -z "$ac_c_werror_flag"
6385 || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try
='test -s conftest.$ac_objext'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 # It does; now see whether it defined to BIG_ENDIAN or not.
6398 cat >conftest.
$ac_ext <<_ACEOF
6401 cat confdefs.h
>>conftest.
$ac_ext
6402 cat >>conftest.
$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 #include <sys/types.h>
6405 #include <sys/param.h>
6410 #if BYTE_ORDER != BIG_ENDIAN
6417 rm -f conftest.
$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try
='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try
='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_c_bigendian
=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6444 ac_cv_c_bigendian
=no
6446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.
$ac_ext >&5
6452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6453 if test $ac_cv_c_bigendian = unknown
; then
6454 if test "$cross_compiling" = yes; then
6455 echo $ac_n "cross-compiling... " 2>&6
6457 cat >conftest.
$ac_ext <<_ACEOF
6460 cat confdefs.h
>>conftest.
$ac_ext
6461 cat >>conftest.
$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6464 /* Are we little or big endian? From Harbison&Steele. */
6468 char c[sizeof (long)];
6471 exit (u.c[sizeof (long) - 1] == 1);
6474 rm -f conftest
$ac_exeext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 ac_cv_c_bigendian
=no
6487 echo "$as_me: program exited with status $ac_status" >&5
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.
$ac_ext >&5
6492 ac_cv_c_bigendian
=yes
6494 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6499 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6500 if test $ac_cv_c_bigendian = unknown
; then
6501 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6502 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6504 cat >conftest.c
<<EOF
6505 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6506 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6507 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6508 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6509 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6510 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6511 int main() { _ascii (); _ebcdic (); return 0; }
6513 if test -f conftest.c
; then
6514 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
6515 if test `grep -l BIGenDianSyS conftest.o` ; then
6516 echo $ac_n ' big endian probe OK, ' 1>&6
6517 ac_cv_c_bigendian
=yes
6519 if test `grep -l LiTTleEnDian conftest.o` ; then
6520 echo $ac_n ' little endian probe OK, ' 1>&6
6521 if test $ac_cv_c_bigendian = yes ; then
6522 ac_cv_c_bigendian
=unknown
;
6524 ac_cv_c_bigendian
=no
6527 echo $ac_n 'guessing bigendian ... ' >&6
6530 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6531 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6533 if test $ac_cv_c_bigendian = yes; then
6535 cat >>confdefs.h
<<\_ACEOF
6536 #define WORDS_BIGENDIAN 1
6540 cat >>confdefs.h
<<\_ACEOF
6541 #define HOST_WORDS_BIG_ENDIAN 1
6549 cat >>confdefs.h
<<_ACEOF
6550 #define BYTEORDER $BYTEORDER
6553 if test $ac_cv_c_bigendian = unknown
; then
6554 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6555 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6556 { (exit 1); exit 1; }; }
6560 if test x
$TARGET = xSPARC
; then
6561 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
6562 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
6563 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 save_CFLAGS
="$CFLAGS"
6568 save_LDFLAGS
="$LDFLAGS"
6569 CFLAGS
="$CFLAGS -fpic"
6570 LDFLAGS
="$LDFLAGS -shared"
6571 cat >conftest.
$ac_ext <<_ACEOF
6574 cat confdefs.h
>>conftest.
$ac_ext
6575 cat >>conftest.
$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
6586 rm -f conftest.
$ac_objext conftest
$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1
>conftest.err
6592 cat conftest.err
>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try
='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try
='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 libffi_cv_as_sparc_ua_pcrel
=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 libffi_cv_as_sparc_ua_pcrel
=no
6615 rm -f conftest.err conftest.
$ac_objext \
6616 conftest
$ac_exeext conftest.
$ac_ext
6617 CFLAGS
="$save_CFLAGS"
6618 LDFLAGS
="$save_LDFLAGS"
6620 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
6621 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
6622 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
6624 cat >>confdefs.h
<<\_ACEOF
6625 #define HAVE_AS_SPARC_UA_PCREL 1
6630 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
6631 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
6632 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 libffi_cv_as_register_pseudo_op
=unknown
6637 # Check if we have .register
6638 cat >conftest.
$ac_ext <<_ACEOF
6641 cat confdefs.h
>>conftest.
$ac_ext
6642 cat >>conftest.
$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 asm (".register %g2, #scratch");
6653 rm -f conftest.
$ac_objext
6654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655 (eval $ac_compile) 2>conftest.er1
6657 grep -v '^ *+' conftest.er1
>conftest.err
6659 cat conftest.err
>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try
='test -z "$ac_c_werror_flag"
6663 || test ! -s conftest.err'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try
='test -s conftest.$ac_objext'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; }; then
6675 libffi_cv_as_register_pseudo_op
=yes
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.
$ac_ext >&5
6680 libffi_cv_as_register_pseudo_op
=no
6682 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6685 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
6686 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
6687 if test "x$libffi_cv_as_register_pseudo_op" = xyes
; then
6689 cat >>confdefs.h
<<\_ACEOF
6690 #define HAVE_AS_REGISTER_PSEUDO_OP 1
6696 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
6697 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
6698 if test "${libffi_cv_ro_eh_frame+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 libffi_cv_ro_eh_frame
=no
6703 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
6704 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c
> /dev
/null
2>&1; then
6705 if grep '.section.*eh_frame.*"a"' conftest.s
> /dev
/null
; then
6706 libffi_cv_ro_eh_frame
=yes
6707 elif grep '.section.*eh_frame.*#alloc' conftest.c \
6708 |
grep -v '#write' > /dev
/null
; then
6709 libffi_cv_ro_eh_frame
=yes
6715 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
6716 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
6717 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
6719 cat >>confdefs.h
<<\_ACEOF
6720 #define HAVE_RO_EH_FRAME 1
6724 cat >>confdefs.h
<<\_ACEOF
6725 #define EH_FRAME_FLAGS "a"
6730 cat >>confdefs.h
<<\_ACEOF
6731 #define EH_FRAME_FLAGS "aw"
6741 # Check whether --enable-debug or --disable-debug was given.
6742 if test "${enable_debug+set}" = set; then
6743 enableval
="$enable_debug"
6744 if test "$enable_debug" = "yes"; then
6746 cat >>confdefs.h
<<\_ACEOF
6753 # Check whether --enable-structs or --disable-structs was given.
6754 if test "${enable_structs+set}" = set; then
6755 enableval
="$enable_structs"
6756 if test "$enable_structs" = "no"; then
6758 cat >>confdefs.h
<<\_ACEOF
6759 #define FFI_NO_STRUCTS 1
6765 # Check whether --enable-raw-api or --disable-raw-api was given.
6766 if test "${enable_raw_api+set}" = set; then
6767 enableval
="$enable_raw_api"
6768 if test "$enable_raw_api" = "no"; then
6770 cat >>confdefs.h
<<\_ACEOF
6771 #define FFI_NO_RAW_API 1
6777 # Check whether --enable-purify-safety or --disable-purify-safety was given.
6778 if test "${enable_purify_safety+set}" = set; then
6779 enableval
="$enable_purify_safety"
6780 if test "$enable_purify_safety" = "yes"; then
6782 cat >>confdefs.h
<<\_ACEOF
6783 #define USING_PURIFY 1
6789 if test -n "$with_cross_host" &&
6790 test x
"$with_cross_host" != x
"no"; then
6791 toolexecdir
='$(exec_prefix)/$(target_alias)'
6792 toolexeclibdir
='$(toolexecdir)/lib'
6794 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
6795 toolexeclibdir
='$(libdir)'
6797 multi_os_directory
=`$CC -print-multi-os-directory`
6798 case $multi_os_directory in
6799 .
) ;; # Avoid trailing /.
6800 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
6805 #Figure out where generated headers like ffitarget.h get installed.
6806 gcc_version_trigger
=${srcdir}/..
/gcc
/version.c
6807 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
6808 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
6809 tool_include_dir
='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
6814 if test "${multilib}" = "yes"; then
6815 multilib_arg
="--enable-multilib"
6820 ac_config_commands
="$ac_config_commands include"
6822 ac_config_commands
="$ac_config_commands src"
6825 ac_config_links
="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
6828 ac_config_files
="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
6831 cat >confcache
<<\_ACEOF
6832 # This file is a shell script that caches the results of configure
6833 # tests run on this system so they can be shared between configure
6834 # scripts and configure runs, see configure's option --config-cache.
6835 # It is not useful on other systems. If it contains results you don't
6836 # want to keep, you may remove or edit it.
6838 # config.status only pays attention to the cache file if you give it
6839 # the --recheck option to rerun configure.
6841 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6842 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6847 # The following way of writing the cache mishandles newlines in values,
6848 # but we know of no workaround that is simple, portable, and efficient.
6849 # So, don't put newlines in cache variables' values.
6850 # Ultrix sh set writes to stderr and can't be redirected directly,
6851 # and sets the high bit in the cache file unless we assign to the vars.
6854 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6856 # `set' does not quote correctly, so add quotes (double-quote
6857 # substitution turns \\\\ into \\, and sed turns \\ into \).
6860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6863 # `set' quotes correctly as required by POSIX, so do not add quotes.
6865 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6872 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6874 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6876 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6877 if test -w $cache_file; then
6878 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6879 cat confcache
>$cache_file
6881 echo "not updating unwritable cache $cache_file"
6886 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6887 # Let make expand exec_prefix.
6888 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6890 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6891 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6892 # trailing colons and then remove the whole line if VPATH becomes empty
6893 # (actually we leave an empty line to preserve line numbers).
6894 if test "x$srcdir" = x.
; then
6895 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6896 s/:*\$(srcdir):*/:/;
6897 s/:*\${srcdir}:*/:/;
6899 s/^\([^=]*=[ ]*\):*/\1/;
6905 DEFS
=-DHAVE_CONFIG_H
6909 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6910 # 1. Remove the extension, and $U if already installed.
6911 ac_i
=`echo "$ac_i" |
6912 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6914 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6915 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6919 LTLIBOBJS
=$ac_ltlibobjs
6922 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6923 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6924 Usually this means the macro was only invoked conditionally." >&5
6925 echo "$as_me: error: conditional \"AMDEP\" was never defined.
6926 Usually this means the macro was only invoked conditionally." >&2;}
6927 { (exit 1); exit 1; }; }
6929 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6930 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6931 Usually this means the macro was only invoked conditionally." >&5
6932 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6933 Usually this means the macro was only invoked conditionally." >&2;}
6934 { (exit 1); exit 1; }; }
6936 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6937 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6938 Usually this means the macro was only invoked conditionally." >&5
6939 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6940 Usually this means the macro was only invoked conditionally." >&2;}
6941 { (exit 1); exit 1; }; }
6943 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
6944 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
6945 Usually this means the macro was only invoked conditionally." >&5
6946 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
6947 Usually this means the macro was only invoked conditionally." >&2;}
6948 { (exit 1); exit 1; }; }
6950 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
6951 { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
6952 Usually this means the macro was only invoked conditionally." >&5
6953 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
6954 Usually this means the macro was only invoked conditionally." >&2;}
6955 { (exit 1); exit 1; }; }
6957 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
6958 { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
6959 Usually this means the macro was only invoked conditionally." >&5
6960 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
6961 Usually this means the macro was only invoked conditionally." >&2;}
6962 { (exit 1); exit 1; }; }
6964 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
6965 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
6966 Usually this means the macro was only invoked conditionally." >&5
6967 echo "$as_me: error: conditional \"SPARC\" was never defined.
6968 Usually this means the macro was only invoked conditionally." >&2;}
6969 { (exit 1); exit 1; }; }
6971 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
6972 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
6973 Usually this means the macro was only invoked conditionally." >&5
6974 echo "$as_me: error: conditional \"X86\" was never defined.
6975 Usually this means the macro was only invoked conditionally." >&2;}
6976 { (exit 1); exit 1; }; }
6978 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
6979 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
6980 Usually this means the macro was only invoked conditionally." >&5
6981 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
6982 Usually this means the macro was only invoked conditionally." >&2;}
6983 { (exit 1); exit 1; }; }
6985 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
6986 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
6987 Usually this means the macro was only invoked conditionally." >&5
6988 echo "$as_me: error: conditional \"ALPHA\" was never defined.
6989 Usually this means the macro was only invoked conditionally." >&2;}
6990 { (exit 1); exit 1; }; }
6992 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
6993 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
6994 Usually this means the macro was only invoked conditionally." >&5
6995 echo "$as_me: error: conditional \"IA64\" was never defined.
6996 Usually this means the macro was only invoked conditionally." >&2;}
6997 { (exit 1); exit 1; }; }
6999 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
7000 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
7001 Usually this means the macro was only invoked conditionally." >&5
7002 echo "$as_me: error: conditional \"M32R\" was never defined.
7003 Usually this means the macro was only invoked conditionally." >&2;}
7004 { (exit 1); exit 1; }; }
7006 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
7007 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
7008 Usually this means the macro was only invoked conditionally." >&5
7009 echo "$as_me: error: conditional \"M68K\" was never defined.
7010 Usually this means the macro was only invoked conditionally." >&2;}
7011 { (exit 1); exit 1; }; }
7013 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
7014 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
7015 Usually this means the macro was only invoked conditionally." >&5
7016 echo "$as_me: error: conditional \"POWERPC\" was never defined.
7017 Usually this means the macro was only invoked conditionally." >&2;}
7018 { (exit 1); exit 1; }; }
7020 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
7021 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
7022 Usually this means the macro was only invoked conditionally." >&5
7023 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
7024 Usually this means the macro was only invoked conditionally." >&2;}
7025 { (exit 1); exit 1; }; }
7027 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
7028 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
7029 Usually this means the macro was only invoked conditionally." >&5
7030 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
7031 Usually this means the macro was only invoked conditionally." >&2;}
7032 { (exit 1); exit 1; }; }
7034 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
7035 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
7036 Usually this means the macro was only invoked conditionally." >&5
7037 echo "$as_me: error: conditional \"ARM\" was never defined.
7038 Usually this means the macro was only invoked conditionally." >&2;}
7039 { (exit 1); exit 1; }; }
7041 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
7042 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
7043 Usually this means the macro was only invoked conditionally." >&5
7044 echo "$as_me: error: conditional \"FRV\" was never defined.
7045 Usually this means the macro was only invoked conditionally." >&2;}
7046 { (exit 1); exit 1; }; }
7048 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
7049 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
7050 Usually this means the macro was only invoked conditionally." >&5
7051 echo "$as_me: error: conditional \"S390\" was never defined.
7052 Usually this means the macro was only invoked conditionally." >&2;}
7053 { (exit 1); exit 1; }; }
7055 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
7056 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
7057 Usually this means the macro was only invoked conditionally." >&5
7058 echo "$as_me: error: conditional \"X86_64\" was never defined.
7059 Usually this means the macro was only invoked conditionally." >&2;}
7060 { (exit 1); exit 1; }; }
7062 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
7063 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
7064 Usually this means the macro was only invoked conditionally." >&5
7065 echo "$as_me: error: conditional \"SH\" was never defined.
7066 Usually this means the macro was only invoked conditionally." >&2;}
7067 { (exit 1); exit 1; }; }
7069 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
7070 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
7071 Usually this means the macro was only invoked conditionally." >&5
7072 echo "$as_me: error: conditional \"SH64\" was never defined.
7073 Usually this means the macro was only invoked conditionally." >&2;}
7074 { (exit 1); exit 1; }; }
7076 if test -z "${PA_TRUE}" && test -z "${PA_FALSE}"; then
7077 { { echo "$as_me:$LINENO: error: conditional \"PA\" was never defined.
7078 Usually this means the macro was only invoked conditionally." >&5
7079 echo "$as_me: error: conditional \"PA\" was never defined.
7080 Usually this means the macro was only invoked conditionally." >&2;}
7081 { (exit 1); exit 1; }; }
7084 : ${CONFIG_STATUS=./config.status}
7085 ac_clean_files_save
=$ac_clean_files
7086 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7087 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7088 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7089 cat >$CONFIG_STATUS <<_ACEOF
7091 # Generated by $as_me.
7092 # Run this file to recreate the current configuration.
7093 # Compiler output produced by configure, useful for debugging
7094 # configure, is in config.log if it exists.
7099 SHELL=\${CONFIG_SHELL-$SHELL}
7102 cat >>$CONFIG_STATUS <<\_ACEOF
7103 ## --------------------- ##
7104 ## M4sh Initialization. ##
7105 ## --------------------- ##
7107 # Be Bourne compatible
7108 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7111 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7112 # is contrary to our usage. Disable this feature.
7113 alias -g '${1+"$@"}'='"$@"'
7114 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7117 DUALCASE
=1; export DUALCASE
# for MKS sh
7119 # Support unset when possible.
7120 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7127 # Work around bugs in pre-3.0 UWIN ksh.
7128 $as_unset ENV MAIL MAILPATH
7135 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7136 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7137 LC_TELEPHONE LC_TIME
7139 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7140 eval $as_var=C
; export $as_var
7146 # Required to use basename.
7147 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7153 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7154 as_basename
=basename
7160 # Name of the executable.
7161 as_me
=`$as_basename "$0" ||
7162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7163 X"$0" : 'X\(//\)$' \| \
7164 X"$0" : 'X\(/\)$' \| \
7165 . : '\(.\)' 2>/dev/null ||
7167 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7168 /^X\/\(\/\/\)$/{ s//\1/; q; }
7169 /^X\/\(\/\).*/{ s//\1/; q; }
7173 # PATH needs CR, and LINENO needs CR and PATH.
7174 # Avoid depending upon Character Ranges.
7175 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7176 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7177 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7178 as_cr_digits
='0123456789'
7179 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7181 # The user is always right.
7182 if test "${PATH_SEPARATOR+set}" != set; then
7183 echo "#! /bin/sh" >conf$$.sh
7184 echo "exit 0" >>conf$$.sh
7186 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7197 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7198 test "x$as_lineno_1" != "x$as_lineno_2" &&
7199 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7200 # Find who we are. Look in the path if we contain no path at all
7203 *[\\/]* ) as_myself
=$0 ;;
7204 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir
=.
7209 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7214 # We did not find ourselves, most probably we were run as `sh COMMAND'
7215 # in which case we are not to be found in the path.
7216 if test "x$as_myself" = x
; then
7219 if test ! -f "$as_myself"; then
7220 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7221 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7222 { (exit 1); exit 1; }; }
7224 case $CONFIG_SHELL in
7226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7227 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7230 test -z "$as_dir" && as_dir
=.
7231 for as_base
in sh bash ksh sh5
; do
7234 if ("$as_dir/$as_base" -c '
7237 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7238 test "x$as_lineno_1" != "x$as_lineno_2" &&
7239 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7240 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7241 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7242 CONFIG_SHELL
=$as_dir/$as_base
7244 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7252 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7253 # uniformly replaced by the line number. The first 'sed' inserts a
7254 # line-number line before each line; the second 'sed' does the real
7255 # work. The second script uses 'N' to pair each line-number line
7256 # with the numbered line, and appends trailing '-' during
7257 # substitution so that $LINENO is not a special case at line end.
7258 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7259 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7260 sed '=' <$as_myself |
7265 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7268 s,^['$as_cr_digits']*\n,,
7270 chmod +x
$as_me.lineno ||
7271 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7272 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7273 { (exit 1); exit 1; }; }
7275 # Don't try to exec as it changes $[0], causing all sort of problems
7276 # (the dirname of $[0] is not the place where we might find the
7277 # original and so on. Autoconf is especially sensible to this).
7279 # Exit status is that of the last command.
7284 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7285 *c
*,-n*) ECHO_N
= ECHO_C
='
7287 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7288 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7291 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7297 rm -f conf$$ conf$$.exe conf$$.
file
7299 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7300 # We could just check for DJGPP; but this test a) works b) is more generic
7301 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7302 if test -f conf$$.exe
; then
7303 # Don't use ln at all; we don't have any links
7308 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7313 rm -f conf$$ conf$$.exe conf$$.
file
7315 if mkdir
-p .
2>/dev
/null
; then
7318 test -d .
/-p && rmdir .
/-p
7322 as_executable_p
="test -f"
7324 # Sed expression to map a string onto a valid CPP name.
7325 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7327 # Sed expression to map a string onto a valid variable name.
7328 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7332 # We need space, tab and new line, in precisely that order.
7342 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7343 # report actual input values of CONFIG_FILES etc. instead of their
7344 # values after options handling. Logging --version etc. is OK.
7348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7349 ## Running $as_me. ##
7354 This file was extended by libffi $as_me 2.1, which was
7355 generated by GNU Autoconf 2.59. Invocation command line was
7357 CONFIG_FILES = $CONFIG_FILES
7358 CONFIG_HEADERS = $CONFIG_HEADERS
7359 CONFIG_LINKS = $CONFIG_LINKS
7360 CONFIG_COMMANDS = $CONFIG_COMMANDS
7364 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7368 # Files that config.status was made for.
7369 if test -n "$ac_config_files"; then
7370 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7373 if test -n "$ac_config_headers"; then
7374 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7377 if test -n "$ac_config_links"; then
7378 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7381 if test -n "$ac_config_commands"; then
7382 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7385 cat >>$CONFIG_STATUS <<\_ACEOF
7388 \`$as_me' instantiates files from templates according to the
7389 current configuration.
7391 Usage: $0 [OPTIONS] [FILE]...
7393 -h, --help print this help, then exit
7394 -V, --version print version number, then exit
7395 -q, --quiet do not print progress messages
7396 -d, --debug don't remove temporary files
7397 --recheck update $as_me by reconfiguring in the same conditions
7398 --file=FILE[:TEMPLATE]
7399 instantiate the configuration file FILE
7400 --header=FILE[:TEMPLATE]
7401 instantiate the configuration header FILE
7403 Configuration files:
7406 Configuration headers:
7409 Configuration links:
7412 Configuration commands:
7415 Report bugs to <bug-autoconf@gnu.org>."
7418 cat >>$CONFIG_STATUS <<_ACEOF
7420 libffi config.status 2.1
7421 configured by $0, generated by GNU Autoconf 2.59,
7422 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7424 Copyright (C) 2003 Free Software Foundation, Inc.
7425 This config.status script is free software; the Free Software Foundation
7426 gives unlimited permission to copy, distribute and modify it."
7431 cat >>$CONFIG_STATUS <<\_ACEOF
7432 # If no file are specified by the user, then we need to provide default
7433 # value. By we need to know if files were specified by the user.
7439 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7440 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7448 *) # This is not an option, so the user has probably given explicit
7451 ac_need_defaults
=false
;;
7455 # Handling of the options.
7457 cat >>$CONFIG_STATUS <<\_ACEOF
7458 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7460 --version |
--vers* |
-V )
7461 echo "$ac_cs_version"; exit 0 ;;
7463 # Conflict between --help and --header
7464 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7465 Try \`$0 --help' for more information." >&5
7466 echo "$as_me: error: ambiguous option: $1
7467 Try \`$0 --help' for more information." >&2;}
7468 { (exit 1); exit 1; }; };;
7469 --help |
--hel |
-h )
7470 echo "$ac_cs_usage"; exit 0 ;;
7471 --debug |
--d* |
-d )
7473 --file |
--fil |
--fi |
--f )
7475 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7476 ac_need_defaults
=false
;;
7477 --header |
--heade |
--head |
--hea )
7479 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7480 ac_need_defaults
=false
;;
7481 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7482 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7486 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7487 Try \`$0 --help' for more information." >&5
7488 echo "$as_me: error: unrecognized option: $1
7489 Try \`$0 --help' for more information." >&2;}
7490 { (exit 1); exit 1; }; } ;;
7492 *) ac_config_targets
="$ac_config_targets $1" ;;
7498 ac_configure_extra_args
=
7500 if $ac_cs_silent; then
7502 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7506 cat >>$CONFIG_STATUS <<_ACEOF
7507 if \$ac_cs_recheck; then
7508 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7509 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7514 cat >>$CONFIG_STATUS <<_ACEOF
7516 # INIT-COMMANDS section.
7523 with_multisubdir="$with_multisubdir"
7524 with_multisrctop="$with_multisrctop"
7525 with_target_subdir="$with_target_subdir"
7526 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7527 multi_basedir="$multi_basedir"
7528 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7530 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7531 TARGETDIR="$TARGETDIR"
7537 cat >>$CONFIG_STATUS <<\_ACEOF
7538 for ac_config_target
in $ac_config_targets
7540 case "$ac_config_target" in
7541 # Handling of arguments.
7542 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
7543 "include/ffi.h" ) CONFIG_FILES
="$CONFIG_FILES include/ffi.h" ;;
7544 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7545 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
7546 "include/ffitarget.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
7547 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
7548 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
7549 "include" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS include" ;;
7550 "src" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS src" ;;
7551 "fficonfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS fficonfig.h" ;;
7552 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7553 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7554 { (exit 1); exit 1; }; };;
7558 # If the user did not use the arguments to specify the items to instantiate,
7559 # then the envvar interface is used. Set only those that are not.
7560 # We use the long form for the default assignment because of an extremely
7561 # bizarre bug on SunOS 4.1.3.
7562 if $ac_need_defaults; then
7563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7565 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
7566 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7569 # Have a temporary directory for convenience. Make it in the build tree
7570 # simply because there is no reason to put it here, and in addition,
7571 # creating and moving files from /tmp can sometimes cause problems.
7572 # Create a temporary directory, and hook for its removal unless debugging.
7575 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7576 trap '{ (exit 1); exit 1; }' 1 2 13 15
7579 # Create a (secure) tmp directory for tmp files.
7582 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7583 test -n "$tmp" && test -d "$tmp"
7586 tmp
=.
/confstat$$
-$RANDOM
7587 (umask 077 && mkdir
$tmp)
7590 echo "$me: cannot create a temporary directory in ." >&2
7591 { (exit 1); exit 1; }
7596 cat >>$CONFIG_STATUS <<_ACEOF
7599 # CONFIG_FILES section.
7602 # No need to generate the scripts if there are no CONFIG_FILES.
7603 # This happens for instance when ./config.status config.h
7604 if test -n "\$CONFIG_FILES"; then
7605 # Protect against being on the right side of a sed subst in config.status.
7606 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7607 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7608 s,@SHELL@,$SHELL,;t t
7609 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7610 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7611 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7612 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7613 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7614 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7615 s,@exec_prefix@,$exec_prefix,;t t
7616 s,@prefix@,$prefix,;t t
7617 s,@program_transform_name@,$program_transform_name,;t t
7618 s,@bindir@,$bindir,;t t
7619 s,@sbindir@,$sbindir,;t t
7620 s,@libexecdir@,$libexecdir,;t t
7621 s,@datadir@,$datadir,;t t
7622 s,@sysconfdir@,$sysconfdir,;t t
7623 s,@sharedstatedir@,$sharedstatedir,;t t
7624 s,@localstatedir@,$localstatedir,;t t
7625 s,@libdir@,$libdir,;t t
7626 s,@includedir@,$includedir,;t t
7627 s,@oldincludedir@,$oldincludedir,;t t
7628 s,@infodir@,$infodir,;t t
7629 s,@mandir@,$mandir,;t t
7630 s,@build_alias@,$build_alias,;t t
7631 s,@host_alias@,$host_alias,;t t
7632 s,@target_alias@,$target_alias,;t t
7634 s,@ECHO_C@,$ECHO_C,;t t
7635 s,@ECHO_N@,$ECHO_N,;t t
7636 s,@ECHO_T@,$ECHO_T,;t t
7638 s,@multi_basedir@,$multi_basedir,;t t
7639 s,@build@,$build,;t t
7640 s,@build_cpu@,$build_cpu,;t t
7641 s,@build_vendor@,$build_vendor,;t t
7642 s,@build_os@,$build_os,;t t
7644 s,@host_cpu@,$host_cpu,;t t
7645 s,@host_vendor@,$host_vendor,;t t
7646 s,@host_os@,$host_os,;t t
7647 s,@target@,$target,;t t
7648 s,@target_cpu@,$target_cpu,;t t
7649 s,@target_vendor@,$target_vendor,;t t
7650 s,@target_os@,$target_os,;t t
7651 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7652 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7653 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7654 s,@CYGPATH_W@,$CYGPATH_W,;t t
7655 s,@PACKAGE@,$PACKAGE,;t t
7656 s,@VERSION@,$VERSION,;t t
7657 s,@ACLOCAL@,$ACLOCAL,;t t
7658 s,@AUTOCONF@,$AUTOCONF,;t t
7659 s,@AUTOMAKE@,$AUTOMAKE,;t t
7660 s,@AUTOHEADER@,$AUTOHEADER,;t t
7661 s,@MAKEINFO@,$MAKEINFO,;t t
7662 s,@install_sh@,$install_sh,;t t
7663 s,@STRIP@,$STRIP,;t t
7664 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7665 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7666 s,@mkdir_p@,$mkdir_p,;t t
7668 s,@SET_MAKE@,$SET_MAKE,;t t
7669 s,@am__leading_dot@,$am__leading_dot,;t t
7670 s,@AMTAR@,$AMTAR,;t t
7671 s,@am__tar@,$am__tar,;t t
7672 s,@am__untar@,$am__untar,;t t
7674 s,@ac_ct_CC@,$ac_ct_CC,;t t
7675 s,@EXEEXT@,$EXEEXT,;t t
7676 s,@OBJEXT@,$OBJEXT,;t t
7677 s,@DEPDIR@,$DEPDIR,;t t
7678 s,@am__include@,$am__include,;t t
7679 s,@am__quote@,$am__quote,;t t
7680 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7681 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7682 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7683 s,@CCDEPMODE@,$CCDEPMODE,;t t
7684 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7685 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7686 s,@CFLAGS@,$CFLAGS,;t t
7688 s,@CCASFLAGS@,$CCASFLAGS,;t t
7690 s,@RANLIB@,$RANLIB,;t t
7691 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7692 s,@LIBTOOL@,$LIBTOOL,;t t
7693 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
7694 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
7695 s,@MAINT@,$MAINT,;t t
7697 s,@CPPFLAGS@,$CPPFLAGS,;t t
7698 s,@EGREP@,$EGREP,;t t
7699 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
7700 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
7701 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
7702 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
7703 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
7704 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
7705 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
7706 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
7707 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
7708 s,@X86_TRUE@,$X86_TRUE,;t t
7709 s,@X86_FALSE@,$X86_FALSE,;t t
7710 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
7711 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
7712 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
7713 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
7714 s,@IA64_TRUE@,$IA64_TRUE,;t t
7715 s,@IA64_FALSE@,$IA64_FALSE,;t t
7716 s,@M32R_TRUE@,$M32R_TRUE,;t t
7717 s,@M32R_FALSE@,$M32R_FALSE,;t t
7718 s,@M68K_TRUE@,$M68K_TRUE,;t t
7719 s,@M68K_FALSE@,$M68K_FALSE,;t t
7720 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
7721 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
7722 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
7723 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
7724 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
7725 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
7726 s,@ARM_TRUE@,$ARM_TRUE,;t t
7727 s,@ARM_FALSE@,$ARM_FALSE,;t t
7728 s,@FRV_TRUE@,$FRV_TRUE,;t t
7729 s,@FRV_FALSE@,$FRV_FALSE,;t t
7730 s,@S390_TRUE@,$S390_TRUE,;t t
7731 s,@S390_FALSE@,$S390_FALSE,;t t
7732 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
7733 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
7734 s,@SH_TRUE@,$SH_TRUE,;t t
7735 s,@SH_FALSE@,$SH_FALSE,;t t
7736 s,@SH64_TRUE@,$SH64_TRUE,;t t
7737 s,@SH64_FALSE@,$SH64_FALSE,;t t
7738 s,@PA_TRUE@,$PA_TRUE,;t t
7739 s,@PA_FALSE@,$PA_FALSE,;t t
7740 s,@ALLOCA@,$ALLOCA,;t t
7741 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
7742 s,@TARGET@,$TARGET,;t t
7743 s,@TARGETDIR@,$TARGETDIR,;t t
7744 s,@toolexecdir@,$toolexecdir,;t t
7745 s,@toolexeclibdir@,$toolexeclibdir,;t t
7746 s,@tool_include_dir@,$tool_include_dir,;t t
7747 s,@gcc_version@,$gcc_version,;t t
7748 s,@LIBOBJS@,$LIBOBJS,;t t
7749 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7754 cat >>$CONFIG_STATUS <<\_ACEOF
7755 # Split the substitutions into bite-sized pieces for seds with
7756 # small command number limits, like on Digital OSF/1 and HP-UX.
7758 ac_sed_frag
=1 # Number of current file.
7759 ac_beg
=1 # First line for current file.
7760 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7763 while $ac_more_lines; do
7764 if test $ac_beg -gt 1; then
7765 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7767 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7769 if test ! -s $tmp/subs.frag
; then
7772 # The purpose of the label and of the branching condition is to
7773 # speed up the sed processing (if there are no `@' at all, there
7774 # is no need to browse any of the substitutions).
7775 # These are the two extra sed commands mentioned above.
7777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7778 if test -z "$ac_sed_cmds"; then
7779 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7781 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7783 ac_sed_frag
=`expr $ac_sed_frag + 1`
7785 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7788 if test -z "$ac_sed_cmds"; then
7791 fi # test -n "$CONFIG_FILES"
7794 cat >>$CONFIG_STATUS <<\_ACEOF
7795 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7798 - |
*:- |
*:-:* ) # input from stdin
7800 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7801 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7802 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7803 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7804 * ) ac_file_in
=$ac_file.
in ;;
7807 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7808 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7810 X"$ac_file" : 'X\(//\)[^/]' \| \
7811 X"$ac_file" : 'X\(//\)$' \| \
7812 X"$ac_file" : 'X\(/\)' \| \
7813 . : '\(.\)' 2>/dev/null ||
7815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7817 /^X\(\/\/\)$/{ s//\1/; q; }
7818 /^X\(\/\).*/{ s//\1/; q; }
7820 { if $as_mkdir_p; then
7825 while test ! -d "$as_dir"; do
7826 as_dirs
="$as_dir $as_dirs"
7827 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7829 X"$as_dir" : 'X\(//\)[^/]' \| \
7830 X"$as_dir" : 'X\(//\)$' \| \
7831 X"$as_dir" : 'X\(/\)' \| \
7832 . : '\(.\)' 2>/dev/null ||
7834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7836 /^X\(\/\/\)$/{ s//\1/; q; }
7837 /^X\(\/\).*/{ s//\1/; q; }
7840 test ! -n "$as_dirs" || mkdir
$as_dirs
7841 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7842 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7843 { (exit 1); exit 1; }; }; }
7847 if test "$ac_dir" != .
; then
7848 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7849 # A "../" for each directory in $ac_dir_suffix.
7850 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7852 ac_dir_suffix
= ac_top_builddir
=
7856 .
) # No --srcdir option. We are building in place.
7858 if test -z "$ac_top_builddir"; then
7861 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7863 [\\/]* | ?
:[\\/]* ) # Absolute path.
7864 ac_srcdir
=$srcdir$ac_dir_suffix;
7865 ac_top_srcdir
=$srcdir ;;
7867 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7868 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7871 # Do not use `cd foo && pwd` to compute absolute paths, because
7872 # the directories may not exist.
7874 .
) ac_abs_builddir
="$ac_dir";;
7877 .
) ac_abs_builddir
=`pwd`;;
7878 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
7879 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
7882 case $ac_abs_builddir in
7883 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7885 case ${ac_top_builddir}.
in
7886 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
7887 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
7888 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
7891 case $ac_abs_builddir in
7892 .
) ac_abs_srcdir
=$ac_srcdir;;
7895 .
) ac_abs_srcdir
=$ac_abs_builddir;;
7896 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
7897 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
7900 case $ac_abs_builddir in
7901 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
7903 case $ac_top_srcdir in
7904 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
7905 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
7906 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
7912 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7913 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
7916 if test x
"$ac_file" != x-
; then
7917 { echo "$as_me:$LINENO: creating $ac_file" >&5
7918 echo "$as_me: creating $ac_file" >&6;}
7921 # Let's still pretend it is `configure' which instantiates (i.e., don't
7922 # use $as_me), people would be surprised to read:
7923 # /* config.h. Generated by config.status. */
7924 if test x
"$ac_file" = x-
; then
7927 configure_input
="$ac_file. "
7929 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7930 sed 's,.*/,,'` by configure."
7932 # First look for the input files in the build tree, otherwise in the
7934 ac_file_inputs
=`IFS=:
7935 for f in $ac_file_in; do
7937 -) echo $tmp/stdin ;;
7939 # Absolute (can't be DOS-style, as IFS=:)
7940 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7941 echo "$as_me: error: cannot find input file: $f" >&2;}
7942 { (exit 1); exit 1; }; }
7945 if test -f "$f"; then
7948 elif test -f "$srcdir/$f"; then
7953 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7954 echo "$as_me: error: cannot find input file: $f" >&2;}
7955 { (exit 1); exit 1; }; }
7958 done` ||
{ (exit 1); exit 1; }
7960 cat >>$CONFIG_STATUS <<_ACEOF
7964 cat >>$CONFIG_STATUS <<\_ACEOF
7966 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7967 s
,@configure_input@
,$configure_input,;t t
7968 s
,@srcdir@
,$ac_srcdir,;t t
7969 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7970 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7971 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7972 s
,@builddir@
,$ac_builddir,;t t
7973 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7974 s
,@top_builddir@
,$ac_top_builddir,;t t
7975 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7976 s
,@INSTALL@
,$ac_INSTALL,;t t
7977 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7979 if test x"$ac_file" != x-; then
7980 mv $tmp/out $ac_file
7988 cat >>$CONFIG_STATUS <<\_ACEOF
7991 # CONFIG_HEADER section.
7994 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7995 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7997 # ac_d sets the value in "#define NAME VALUE" lines.
7998 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7999 ac_dB
='[ ].*$,\1#\2'
8002 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8003 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8004 ac_uB
='$,\1#\2define\3'
8008 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8009 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8011 - |
*:- |
*:-:* ) # input from stdin
8013 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8014 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8015 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8016 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8017 * ) ac_file_in
=$ac_file.
in ;;
8020 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8021 echo "$as_me: creating $ac_file" >&6;}
8023 # First look for the input files in the build tree, otherwise in the
8025 ac_file_inputs
=`IFS=:
8026 for f in $ac_file_in; do
8028 -) echo $tmp/stdin ;;
8030 # Absolute (can't be DOS-style, as IFS=:)
8031 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8032 echo "$as_me: error: cannot find input file: $f" >&2;}
8033 { (exit 1); exit 1; }; }
8034 # Do quote $f, to prevent DOS paths from being IFS'd.
8037 if test -f "$f"; then
8040 elif test -f "$srcdir/$f"; then
8045 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8046 echo "$as_me: error: cannot find input file: $f" >&2;}
8047 { (exit 1); exit 1; }; }
8050 done` ||
{ (exit 1); exit 1; }
8051 # Remove the trailing spaces.
8052 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8056 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8057 # `conftest.undefs', that substitutes the proper values into
8058 # config.h.in to produce config.h. The first handles `#define'
8059 # templates, and the second `#undef' templates.
8060 # And first: Protect against being on the right side of a sed subst in
8061 # config.status. Protect against being in an unquoted here document
8063 rm -f conftest.defines conftest.undefs
8064 # Using a here document instead of a string reduces the quoting nightmare.
8065 # Putting comments in sed scripts is not portable.
8067 # `end' is used to avoid that the second main sed command (meant for
8068 # 0-ary CPP macros) applies to n-ary macro definitions.
8069 # See the Autoconf documentation for `clear'.
8070 cat >confdef2sed.
sed <<\_ACEOF
8075 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8077 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8080 # If some macros were called several times there might be several times
8081 # the same #defines, which is useless. Nevertheless, we may not want to
8082 # sort them, since we want the *last* AC-DEFINE to be honored.
8083 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8084 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8085 rm -f confdef2sed.sed
8087 # This sed command replaces #undef with comments. This is necessary, for
8088 # example, in the case of _POSIX_SOURCE, which is predefined and required
8089 # on some systems where configure will not decide to define it.
8090 cat >>conftest.undefs <<\_ACEOF
8091 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8094 # Break up conftest.defines because some shells have a limit on the size
8095 # of here documents, and old seds have small limits too (100 cmds).
8096 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8097 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8098 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8099 echo ' :' >>$CONFIG_STATUS
8101 while grep . conftest.defines >/dev/null
8103 # Write a limited-size here document to $tmp/defines.sed.
8104 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8105 # Speed up: don't consider the non `#define' lines.
8106 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8107 # Work around the forget-to-reset-the-flag bug.
8108 echo 't clr' >>$CONFIG_STATUS
8109 echo ': clr' >>$CONFIG_STATUS
8110 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8112 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8116 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8117 rm -f conftest.defines
8118 mv conftest.
tail conftest.defines
8120 rm -f conftest.defines
8121 echo ' fi # grep' >>$CONFIG_STATUS
8122 echo >>$CONFIG_STATUS
8124 # Break up conftest.undefs because some shells have a limit on the size
8125 # of here documents, and old seds have small limits too (100 cmds).
8126 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8128 while grep . conftest.undefs
>/dev
/null
8130 # Write a limited-size here document to $tmp/undefs.sed.
8131 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8132 # Speed up: don't consider the non
`#undef'
8133 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8134 # Work around the forget-to-reset-the-flag bug.
8135 echo 't clr' >>$CONFIG_STATUS
8136 echo ': clr' >>$CONFIG_STATUS
8137 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8139 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8143 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8144 rm -f conftest.undefs
8145 mv conftest.tail conftest.undefs
8147 rm -f conftest.undefs
8149 cat >>$CONFIG_STATUS <<\_ACEOF
8150 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8151 # use $as_me), people would be surprised to read:
8152 # /* config.h. Generated by config.status. */
8153 if test x
"$ac_file" = x-
; then
8154 echo "/* Generated by configure. */" >$tmp/config.h
8156 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8158 cat $tmp/in >>$tmp/config.h
8160 if test x
"$ac_file" != x-
; then
8161 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8162 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8163 echo "$as_me: $ac_file is unchanged" >&6;}
8165 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8166 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8167 X"$ac_file" : 'X\(//\)[^/]' \| \
8168 X"$ac_file" : 'X\(//\)$' \| \
8169 X"$ac_file" : 'X\(/\)' \| \
8170 . : '\(.\)' 2>/dev/null ||
8172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8174 /^X\(\/\/\)$/{ s//\1/; q; }
8175 /^X\(\/\).*/{ s//\1/; q; }
8177 { if $as_mkdir_p; then
8182 while test ! -d "$as_dir"; do
8183 as_dirs
="$as_dir $as_dirs"
8184 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8186 X"$as_dir" : 'X\(//\)[^/]' \| \
8187 X"$as_dir" : 'X\(//\)$' \| \
8188 X"$as_dir" : 'X\(/\)' \| \
8189 . : '\(.\)' 2>/dev/null ||
8191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8193 /^X\(\/\/\)$/{ s//\1/; q; }
8194 /^X\(\/\).*/{ s//\1/; q; }
8197 test ! -n "$as_dirs" || mkdir
$as_dirs
8198 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8199 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8200 { (exit 1); exit 1; }; }; }
8203 mv $tmp/config.h
$ac_file
8209 # Compute $ac_file's index in $config_headers.
8211 for _am_header
in $config_headers :; do
8213 $ac_file |
$ac_file:* )
8216 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
8219 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8220 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8221 X$ac_file : 'X\(//\)[^/]' \| \
8222 X$ac_file : 'X\(//\)$' \| \
8223 X$ac_file : 'X\(/\)' \| \
8224 . : '\(.\)' 2>/dev/null ||
8226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8228 /^X\(\/\/\)$/{ s//\1/; q; }
8229 /^X\(\/\).*/{ s//\1/; q; }
8230 s/.*/./; q'`/stamp-h
$_am_stamp_count
8233 cat >>$CONFIG_STATUS <<\_ACEOF
8236 # CONFIG_LINKS section.
8239 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
8240 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8241 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8243 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
8244 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
8246 if test ! -r $srcdir/$ac_source; then
8247 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
8248 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
8249 { (exit 1); exit 1; }; }
8253 # Make relative symlinks.
8254 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8255 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8256 X"$ac_dest" : 'X\(//\)[^/]' \| \
8257 X"$ac_dest" : 'X\(//\)$' \| \
8258 X"$ac_dest" : 'X\(/\)' \| \
8259 . : '\(.\)' 2>/dev/null ||
8261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8263 /^X\(\/\/\)$/{ s//\1/; q; }
8264 /^X\(\/\).*/{ s//\1/; q; }
8266 { if $as_mkdir_p; then
8267 mkdir
-p "$ac_dest_dir"
8269 as_dir
="$ac_dest_dir"
8271 while test ! -d "$as_dir"; do
8272 as_dirs
="$as_dir $as_dirs"
8273 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8275 X"$as_dir" : 'X\(//\)[^/]' \| \
8276 X"$as_dir" : 'X\(//\)$' \| \
8277 X"$as_dir" : 'X\(/\)' \| \
8278 . : '\(.\)' 2>/dev/null ||
8280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8282 /^X\(\/\/\)$/{ s//\1/; q; }
8283 /^X\(\/\).*/{ s//\1/; q; }
8286 test ! -n "$as_dirs" || mkdir
$as_dirs
8287 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
8288 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
8289 { (exit 1); exit 1; }; }; }
8293 if test "$ac_dest_dir" != .
; then
8294 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
8295 # A "../" for each directory in $ac_dir_suffix.
8296 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8298 ac_dir_suffix
= ac_top_builddir
=
8302 .
) # No --srcdir option. We are building in place.
8304 if test -z "$ac_top_builddir"; then
8307 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8309 [\\/]* | ?
:[\\/]* ) # Absolute path.
8310 ac_srcdir
=$srcdir$ac_dir_suffix;
8311 ac_top_srcdir
=$srcdir ;;
8313 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8314 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8317 # Do not use `cd foo && pwd` to compute absolute paths, because
8318 # the directories may not exist.
8320 .
) ac_abs_builddir
="$ac_dest_dir";;
8322 case "$ac_dest_dir" in
8323 .
) ac_abs_builddir
=`pwd`;;
8324 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
8325 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
8328 case $ac_abs_builddir in
8329 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8331 case ${ac_top_builddir}.
in
8332 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8333 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8334 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8337 case $ac_abs_builddir in
8338 .
) ac_abs_srcdir
=$ac_srcdir;;
8341 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8342 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8343 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8346 case $ac_abs_builddir in
8347 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8349 case $ac_top_srcdir in
8350 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8351 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8352 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8358 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
8359 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
8362 # Try a symlink, then a hard link, then a copy.
8363 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
8364 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
8365 cp -p $srcdir/$ac_source $ac_dest ||
8366 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
8367 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
8368 { (exit 1); exit 1; }; }
8371 cat >>$CONFIG_STATUS <<\_ACEOF
8374 # CONFIG_COMMANDS section.
8376 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
8377 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8378 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8379 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8380 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8381 X"$ac_dest" : 'X\(//\)[^/]' \| \
8382 X"$ac_dest" : 'X\(//\)$' \| \
8383 X"$ac_dest" : 'X\(/\)' \| \
8384 . : '\(.\)' 2>/dev/null ||
8386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8388 /^X\(\/\/\)$/{ s//\1/; q; }
8389 /^X\(\/\).*/{ s//\1/; q; }
8391 { if $as_mkdir_p; then
8396 while test ! -d "$as_dir"; do
8397 as_dirs
="$as_dir $as_dirs"
8398 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8400 X"$as_dir" : 'X\(//\)[^/]' \| \
8401 X"$as_dir" : 'X\(//\)$' \| \
8402 X"$as_dir" : 'X\(/\)' \| \
8403 . : '\(.\)' 2>/dev/null ||
8405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8407 /^X\(\/\/\)$/{ s//\1/; q; }
8408 /^X\(\/\).*/{ s//\1/; q; }
8411 test ! -n "$as_dirs" || mkdir
$as_dirs
8412 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8413 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8414 { (exit 1); exit 1; }; }; }
8418 if test "$ac_dir" != .
; then
8419 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8420 # A "../" for each directory in $ac_dir_suffix.
8421 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8423 ac_dir_suffix
= ac_top_builddir
=
8427 .
) # No --srcdir option. We are building in place.
8429 if test -z "$ac_top_builddir"; then
8432 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8434 [\\/]* | ?
:[\\/]* ) # Absolute path.
8435 ac_srcdir
=$srcdir$ac_dir_suffix;
8436 ac_top_srcdir
=$srcdir ;;
8438 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8439 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8442 # Do not use `cd foo && pwd` to compute absolute paths, because
8443 # the directories may not exist.
8445 .
) ac_abs_builddir
="$ac_dir";;
8448 .
) ac_abs_builddir
=`pwd`;;
8449 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8450 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8453 case $ac_abs_builddir in
8454 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8456 case ${ac_top_builddir}.
in
8457 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8458 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8459 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8462 case $ac_abs_builddir in
8463 .
) ac_abs_srcdir
=$ac_srcdir;;
8466 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8467 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8468 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8471 case $ac_abs_builddir in
8472 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8474 case $ac_top_srcdir in
8475 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8476 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8477 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8482 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8483 echo "$as_me: executing $ac_dest commands" >&6;}
8486 # Only add multilib support code if we just rebuilt the top-level
8488 case " $CONFIG_FILES " in
8490 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
8493 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
8494 # Strip MF so we end up with the name of the file.
8495 mf
=`echo "$mf" | sed -e 's/:.*$//'`
8496 # Check whether this is an Automake generated Makefile or not.
8497 # We used to match only the files named `Makefile.in', but
8498 # some people rename them; so instead we look at the file content.
8499 # Grep'ing the first line is not enough: some people post-process
8500 # each Makefile.in and add a new line on top of each file to say so.
8501 # So let's grep whole file.
8502 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
8503 dirpart
=`(dirname "$mf") 2>/dev/null ||
8504 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8505 X"$mf" : 'X\(//\)[^/]' \| \
8506 X"$mf" : 'X\(//\)$' \| \
8507 X"$mf" : 'X\(/\)' \| \
8508 . : '\(.\)' 2>/dev/null ||
8510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8511 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8512 /^X\(\/\/\)$/{ s//\1/; q; }
8513 /^X\(\/\).*/{ s//\1/; q; }
8518 # Extract the definition of DEPDIR, am__include, and am__quote
8519 # from the Makefile without running `make'.
8520 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
8521 test -z "$DEPDIR" && continue
8522 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
8523 test -z "am__include" && continue
8524 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
8525 # When using ansi2knr, U may be empty or an underscore; expand it
8526 U
=`sed -n 's/^U = //p' < "$mf"`
8527 # Find all dependency output files, they are included files with
8528 # $(DEPDIR) in their names. We invoke sed twice because it is the
8529 # simplest approach to changing $(DEPDIR) to its actual value in the
8531 for file in `sed -n "
8532 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8533 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8534 # Make sure the directory exists.
8535 test -f "$dirpart/$file" && continue
8536 fdir
=`(dirname "$file") 2>/dev/null ||
8537 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8538 X"$file" : 'X\(//\)[^/]' \| \
8539 X"$file" : 'X\(//\)$' \| \
8540 X"$file" : 'X\(/\)' \| \
8541 . : '\(.\)' 2>/dev/null ||
8543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8545 /^X\(\/\/\)$/{ s//\1/; q; }
8546 /^X\(\/\).*/{ s//\1/; q; }
8548 { if $as_mkdir_p; then
8549 mkdir
-p $dirpart/$fdir
8551 as_dir
=$dirpart/$fdir
8553 while test ! -d "$as_dir"; do
8554 as_dirs
="$as_dir $as_dirs"
8555 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8557 X"$as_dir" : 'X\(//\)[^/]' \| \
8558 X"$as_dir" : 'X\(//\)$' \| \
8559 X"$as_dir" : 'X\(/\)' \| \
8560 . : '\(.\)' 2>/dev/null ||
8562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8564 /^X\(\/\/\)$/{ s//\1/; q; }
8565 /^X\(\/\).*/{ s//\1/; q; }
8568 test ! -n "$as_dirs" || mkdir
$as_dirs
8569 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8570 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8571 { (exit 1); exit 1; }; }; }
8573 # echo "creating $dirpart/$file"
8574 echo '# dummy' > "$dirpart/$file"
8578 include
) test -d include || mkdir include
;;
8580 test -d src || mkdir src
8581 test -d src
/$TARGETDIR || mkdir src
/$TARGETDIR
8587 cat >>$CONFIG_STATUS <<\_ACEOF
8589 { (exit 0); exit 0; }
8591 chmod +x
$CONFIG_STATUS
8592 ac_clean_files
=$ac_clean_files_save
8595 # configure is writing to config.log, and then calls config.status.
8596 # config.status does its own redirection, appending to config.log.
8597 # Unfortunately, on DOS this fails, as config.log is still kept open
8598 # by configure, so config.status won't be able to write to it; its
8599 # output is simply discarded. So we exec the FD to /dev/null,
8600 # effectively closing config.log, so it can be properly (re)opened and
8601 # appended to by config.status. When coming back to configure, we
8602 # need to make the FD available again.
8603 if test "$no_create" != yes; then
8605 ac_config_status_args
=
8606 test "$silent" = yes &&
8607 ac_config_status_args
="$ac_config_status_args --quiet"
8609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8612 # would make configure fail if this is the last instruction.
8613 $ac_cs_success ||
{ (exit 1); exit 1; }