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 # Check that we are running under the correct shell.
248 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec
; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo
; then
262 # Avoid inline document here, it may be left over
264 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $ECHO works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo
; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
285 if test -z "$lt_ECHO"; then
286 if test "X${echo_test_string+set}" != Xset
; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
291 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
298 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
299 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
310 for dir
in $PATH /usr
/ucb
; do
312 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$ECHO" = Xecho
; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
325 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
330 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL
=/bin
/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
341 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
351 SHELL
="$CONFIG_SHELL"
353 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string
=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
397 # so uname gets run too.
398 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 ac_default_prefix
=/usr
/local
406 ac_config_libobj_dir
=.
411 SHELL
=${CONFIG_SHELL-/bin/sh}
413 # Maximum number of lines to put in a shell here document.
414 # This variable seems obsolete. It should probably be removed, and
415 # only ac_max_sed_lines should be used.
416 : ${ac_max_here_lines=38}
418 # Identity of this package.
419 PACKAGE_NAME
='libffi'
420 PACKAGE_TARNAME
='libffi'
421 PACKAGE_VERSION
='2.1'
422 PACKAGE_STRING
='libffi 2.1'
423 PACKAGE_BUGREPORT
='http://gcc.gnu.org/bugs.html'
425 # Factoring default headers for most tests.
426 ac_includes_default
="\
429 # include <sys/types.h>
432 # include <sys/stat.h>
443 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <strings.h>
452 # include <inttypes.h>
462 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP CPPFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_TRUE MIPS_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE X86_DARWIN_TRUE X86_DARWIN_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 POWERPC_FREEBSD_TRUE POWERPC_FREEBSD_FALSE ARM_TRUE ARM_FALSE LIBFFI_CRIS_TRUE LIBFFI_CRIS_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_LINUX_TRUE PA_LINUX_FALSE PA_HPUX_TRUE PA_HPUX_FALSE PA64_HPUX_TRUE PA64_HPUX_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
465 # Initialize some variables set by options.
467 ac_init_version
=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name
=s
,x
,x
,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir
='${exec_prefix}/bin'
491 sbindir
='${exec_prefix}/sbin'
492 libexecdir
='${exec_prefix}/libexec'
493 datadir
='${prefix}/share'
494 sysconfdir
='${prefix}/etc'
495 sharedstatedir
='${prefix}/com'
496 localstatedir
='${prefix}/var'
497 libdir
='${exec_prefix}/lib'
498 includedir
='${prefix}/include'
499 oldincludedir
='/usr/include'
500 infodir
='${prefix}/info'
501 mandir
='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
521 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
524 -build |
--build |
--buil |
--bui |
--bu)
525 ac_prev
=build_alias
;;
526 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
527 build_alias
=$ac_optarg ;;
529 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
530 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
531 ac_prev
=cache_file
;;
532 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
533 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
534 cache_file
=$ac_optarg ;;
537 cache_file
=config.cache
;;
539 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
541 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
543 datadir
=$ac_optarg ;;
545 -disable-* |
--disable-*)
546 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* |
--enable-*)
555 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
568 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
569 |
--exec |
--exe |
--ex)
570 ac_prev
=exec_prefix
;;
571 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
572 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
573 |
--exec=* |
--exe=* |
--ex=*)
574 exec_prefix
=$ac_optarg ;;
576 -gas |
--gas |
--ga |
--g)
577 # Obsolete; use --with-gas.
580 -help |
--help |
--hel |
--he |
-h)
582 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
583 ac_init_help
=recursive
;;
584 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
585 ac_init_help
=short
;;
587 -host |
--host |
--hos |
--ho)
588 ac_prev
=host_alias
;;
589 -host=* |
--host=* |
--hos=* |
--ho=*)
590 host_alias
=$ac_optarg ;;
592 -includedir |
--includedir |
--includedi |
--included |
--include \
593 |
--includ |
--inclu |
--incl |
--inc)
594 ac_prev
=includedir
;;
595 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
596 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
597 includedir
=$ac_optarg ;;
599 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
601 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
602 infodir
=$ac_optarg ;;
604 -libdir |
--libdir |
--libdi |
--libd)
606 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
609 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
610 |
--libexe |
--libex |
--libe)
611 ac_prev
=libexecdir
;;
612 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
613 |
--libexe=* |
--libex=* |
--libe=*)
614 libexecdir
=$ac_optarg ;;
616 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
617 |
--localstate |
--localstat |
--localsta |
--localst \
618 |
--locals |
--local |
--loca |
--loc |
--lo)
619 ac_prev
=localstatedir
;;
620 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
621 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
622 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
623 localstatedir
=$ac_optarg ;;
625 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
627 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
631 # Obsolete; use --without-fp.
634 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
635 |
--no-cr |
--no-c |
-n)
638 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
639 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
642 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
643 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
644 |
--oldin |
--oldi |
--old |
--ol |
--o)
645 ac_prev
=oldincludedir
;;
646 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
647 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
648 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
649 oldincludedir
=$ac_optarg ;;
651 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
653 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
656 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
657 |
--program-pre |
--program-pr |
--program-p)
658 ac_prev
=program_prefix
;;
659 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
660 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
661 program_prefix
=$ac_optarg ;;
663 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
664 |
--program-suf |
--program-su |
--program-s)
665 ac_prev
=program_suffix
;;
666 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
667 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
668 program_suffix
=$ac_optarg ;;
670 -program-transform-name |
--program-transform-name \
671 |
--program-transform-nam |
--program-transform-na \
672 |
--program-transform-n |
--program-transform- \
673 |
--program-transform |
--program-transfor \
674 |
--program-transfo |
--program-transf \
675 |
--program-trans |
--program-tran \
676 |
--progr-tra |
--program-tr |
--program-t)
677 ac_prev
=program_transform_name
;;
678 -program-transform-name=* |
--program-transform-name=* \
679 |
--program-transform-nam=* |
--program-transform-na=* \
680 |
--program-transform-n=* |
--program-transform-=* \
681 |
--program-transform=* |
--program-transfor=* \
682 |
--program-transfo=* |
--program-transf=* \
683 |
--program-trans=* |
--program-tran=* \
684 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
685 program_transform_name
=$ac_optarg ;;
687 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
688 |
-silent |
--silent |
--silen |
--sile |
--sil)
691 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
693 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
695 sbindir
=$ac_optarg ;;
697 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
698 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
699 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
701 ac_prev
=sharedstatedir
;;
702 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
703 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
704 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
706 sharedstatedir
=$ac_optarg ;;
708 -site |
--site |
--sit)
710 -site=* |
--site=* |
--sit=*)
713 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
715 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
718 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
719 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
720 ac_prev
=sysconfdir
;;
721 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
722 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
723 sysconfdir
=$ac_optarg ;;
725 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
726 ac_prev
=target_alias
;;
727 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
728 target_alias
=$ac_optarg ;;
730 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
733 -version |
--version |
--versio |
--versi |
--vers |
-V)
737 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package
=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* |
--without-*)
750 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package
=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
763 |
--x-incl |
--x-inc |
--x-in |
--x-i)
764 ac_prev
=x_includes
;;
765 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
766 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
767 x_includes
=$ac_optarg ;;
769 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
770 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
771 ac_prev
=x_libraries
;;
772 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
773 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
774 x_libraries
=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var
in exec_prefix prefix
811 eval ac_val
=$
`echo $ac_var`
813 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val
=$
`echo $ac_var`
825 [\\/$
]* | ?
:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x
; then
840 if test "x$build_alias" = x
; then
841 cross_compiling
=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
852 test "$silent" = yes && exec 6>/dev
/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted
=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir
=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted
=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set
=${build_alias+set}
892 ac_env_build_alias_value
=$build_alias
893 ac_cv_env_build_alias_set
=${build_alias+set}
894 ac_cv_env_build_alias_value
=$build_alias
895 ac_env_host_alias_set
=${host_alias+set}
896 ac_env_host_alias_value
=$host_alias
897 ac_cv_env_host_alias_set
=${host_alias+set}
898 ac_cv_env_host_alias_value
=$host_alias
899 ac_env_target_alias_set
=${target_alias+set}
900 ac_env_target_alias_value
=$target_alias
901 ac_cv_env_target_alias_set
=${target_alias+set}
902 ac_cv_env_target_alias_value
=$target_alias
903 ac_env_CCAS_set
=${CCAS+set}
904 ac_env_CCAS_value
=$CCAS
905 ac_cv_env_CCAS_set
=${CCAS+set}
906 ac_cv_env_CCAS_value
=$CCAS
907 ac_env_CCASFLAGS_set
=${CCASFLAGS+set}
908 ac_env_CCASFLAGS_value
=$CCASFLAGS
909 ac_cv_env_CCASFLAGS_set
=${CCASFLAGS+set}
910 ac_cv_env_CCASFLAGS_value
=$CCASFLAGS
911 ac_env_CPP_set
=${CPP+set}
912 ac_env_CPP_value
=$CPP
913 ac_cv_env_CPP_set
=${CPP+set}
914 ac_cv_env_CPP_value
=$CPP
915 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value
=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
921 # Report the --help message.
923 if test "$ac_init_help" = "long"; then
924 # Omit some internal or obsolete options to make the list less imposing.
925 # This message is too long to be a string in the A/UX 3.1 sh.
927 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
929 Usage: $0 [OPTION]... [VAR=VALUE]...
931 To assign environment variables (e.g., CC, CFLAGS...), specify them as
932 VAR=VALUE. See below for descriptions of some of the useful variables.
934 Defaults for the options are specified in brackets.
937 -h, --help display this help and exit
938 --help=short display options specific to this package
939 --help=recursive display the short help of all the included packages
940 -V, --version display version information and exit
941 -q, --quiet, --silent do not print \`checking...' messages
942 --cache-file=FILE cache test results in FILE [disabled]
943 -C, --config-cache alias for \`--cache-file=config.cache'
944 -n, --no-create do not create output files
945 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950 Installation directories:
951 --prefix=PREFIX install architecture-independent files in PREFIX
953 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
956 By default, \`make install' will install all the files in
957 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
958 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
959 for instance \`--prefix=\$HOME'.
961 For better control, use the options below.
963 Fine tuning of the installation directories:
964 --bindir=DIR user executables [EPREFIX/bin]
965 --sbindir=DIR system admin executables [EPREFIX/sbin]
966 --libexecdir=DIR program executables [EPREFIX/libexec]
967 --datadir=DIR read-only architecture-independent data [PREFIX/share]
968 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
969 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
970 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
971 --libdir=DIR object code libraries [EPREFIX/lib]
972 --includedir=DIR C header files [PREFIX/include]
973 --oldincludedir=DIR C header files for non-gcc [/usr/include]
974 --infodir=DIR info documentation [PREFIX/info]
975 --mandir=DIR man documentation [PREFIX/man]
981 --program-prefix=PREFIX prepend PREFIX to installed program names
982 --program-suffix=SUFFIX append SUFFIX to installed program names
983 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
986 --build=BUILD configure
for building on BUILD
[guessed
]
987 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
988 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
992 if test -n "$ac_init_help"; then
993 case $ac_init_help in
994 short | recursive
) echo "Configuration of libffi 2.1:";;
999 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1000 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1001 --enable-multilib build many library versions
(default
)
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-shared[=PKGS
]
1005 build shared libraries
[default
=yes]
1006 --enable-static[=PKGS
]
1007 build static libraries
[default
=yes]
1008 --enable-fast-install[=PKGS
]
1009 optimize
for fast installation
[default
=yes]
1010 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1011 --enable-maintainer-mode enable make rules and dependencies not useful
1012 (and sometimes confusing
) to the casual installer
1013 --enable-debug debugging mode
1014 --disable-structs omit code
for struct support
1015 --disable-raw-api make the raw api unavailable
1016 --enable-purify-safety purify-safe mode
1019 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1020 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1021 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1023 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1025 Some influential environment variables
:
1026 CC C compiler
command
1027 CFLAGS C compiler flags
1028 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1029 nonstandard directory
<lib dir
>
1030 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1031 headers
in a nonstandard directory
<include dir
>
1032 CCAS assembler compiler
command (defaults to CC
)
1033 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1036 Use these variables to override the choices made by
`configure' or to help
1037 it to find libraries and programs with nonstandard names/locations.
1039 Report bugs to <http://gcc.gnu.org/bugs.html>.
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1055 ac_dir_suffix= ac_top_builddir=
1059 .) # No --srcdir option. We are building in place.
1061 if test -z "$ac_top_builddir"; then
1064 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1075 # the directories may not exist.
1077 .) ac_abs_builddir="$ac_dir";;
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1124 $ac_configure --help
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1135 libffi configure 2.1
1136 generated by GNU Autoconf 2.59
1138 Copyright (C) 2003 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1149 It was created by libffi $as_me 2.1, which was
1150 generated by GNU Autoconf 2.59. Invocation command line was
1161 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1162 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1163 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1164 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1165 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1167 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1168 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1170 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1171 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1172 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1173 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1174 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1175 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1176 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1209 ac_must_keep_next=false
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 -* ) ac_must_keep_next=true ;;
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close
' the trap.
1256 trap 'exit_status
=$?
1257 # Save into config.log some information that might help in debugging.
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1267 # The following way of writing the cache mishandles newlines in values,
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1290 for ac_var
in $ac_subst_vars
1292 eval ac_val
=$
`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1297 if test -n "$ac_subst_files"; then
1304 for ac_var
in $ac_subst_files
1306 eval ac_val
=$
`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1312 if test -s confdefs.h
; then
1319 sed "/^$/d" confdefs.h |
sort
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1326 rm -f core
*.core
&&
1327 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 # Predefined preprocessor variables.
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's
/^
/|
/' "$ac_site_file" >&5
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1402 # Check that the precious variables saved in the cache have kept the same
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1415 ac_cache_corrupted=: ;;
1417 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1424 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1449 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1456 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485 ac_config_headers="$ac_config_headers fficonfig.h"
1488 # Default to --enable-multilib
1489 # Check whether --enable-multilib or --disable-multilib was given.
1490 if test "${enable_multilib+set}" = set; then
1491 enableval="$enable_multilib"
1492 case "$enableval" in
1493 yes) multilib=yes ;;
1495 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1496 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1497 { (exit 1); exit 1; }; } ;;
1503 # We may get other options which we leave undocumented:
1504 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1505 # See config-ml.in if you want the gory details.
1507 if test "$srcdir" = "."; then
1508 if test "$with_target_subdir" != "."; then
1509 multi_basedir="$srcdir/$with_multisrctop../.."
1511 multi_basedir="$srcdir/$with_multisrctop.."
1514 multi_basedir="$srcdir/.."
1518 # Even if the default multilib is not a cross compilation,
1519 # it may be that some of the other multilibs are.
1520 if test $cross_compiling = no && test $multilib = yes \
1521 && test "x${with_multisubdir}" != x ; then
1522 cross_compiling=maybe
1525 ac_config_commands="$ac_config_commands default-1"
1529 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530 if test -f $ac_dir/install-sh; then
1532 ac_install_sh="$ac_aux_dir/install-sh -c"
1534 elif test -f $ac_dir/install.sh; then
1536 ac_install_sh="$ac_aux_dir/install.sh -c"
1538 elif test -f $ac_dir/shtool; then
1540 ac_install_sh="$ac_aux_dir/shtool install -c"
1544 if test -z "$ac_aux_dir"; then
1545 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1547 { (exit 1); exit 1; }; }
1549 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553 # Make sure we can run config.sub.
1554 $ac_config_sub sun4 >/dev/null 2>&1 ||
1555 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1557 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: checking build system type" >&5
1560 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1561 if test "${ac_cv_build+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 ac_cv_build_alias=$build_alias
1565 test -z "$ac_cv_build_alias" &&
1566 ac_cv_build_alias=`$ac_config_guess`
1567 test -z "$ac_cv_build_alias" &&
1568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570 { (exit 1); exit 1; }; }
1571 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578 echo "${ECHO_T}$ac_cv_build" >&6
1580 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1581 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1582 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1585 echo "$as_me:$LINENO: checking host system type" >&5
1586 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1587 if test "${ac_cv_host+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 ac_cv_host_alias=$host_alias
1591 test -z "$ac_cv_host_alias" &&
1592 ac_cv_host_alias=$ac_cv_build_alias
1593 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1595 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1596 { (exit 1); exit 1; }; }
1599 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1600 echo "${ECHO_T}$ac_cv_host" >&6
1602 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1603 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1604 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1607 echo "$as_me:$LINENO: checking target system type" >&5
1608 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1609 if test "${ac_cv_target+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 ac_cv_target_alias=$target_alias
1613 test "x$ac_cv_target_alias" = "x" &&
1614 ac_cv_target_alias=$ac_cv_host_alias
1615 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1617 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1618 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1622 echo "${ECHO_T}$ac_cv_target" >&6
1623 target=$ac_cv_target
1624 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1625 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1626 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1629 # The aliases save the names the user supplied, while $host etc.
1630 # will get canonicalized.
1631 test -n "$target_alias" &&
1632 test "$program_prefix$program_suffix$program_transform_name" = \
1634 program_prefix=${target_alias}-
1635 target_alias=${target_alias-$host_alias}
1637 . ${srcdir}/configure.host
1639 am__api_version="1.9"
1640 # Find a good install program. We prefer a C program (faster),
1641 # so one script is as good as another. But avoid the broken or
1642 # incompatible versions:
1643 # SysV /etc/install, /usr/sbin/install
1644 # SunOS /usr/etc/install
1645 # IRIX /sbin/install
1647 # AmigaOS /C/install, which installs bootblocks on floppy discs
1648 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1651 # OS/2's system install, which has a completely different semantic
1652 # ./install, which can be erroneously created by make from ./install.sh.
1653 # Reject install programs that cannot install multiple files.
1654 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1655 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1656 if test -z "$INSTALL"; then
1657 if test "${ac_cv_path_install+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir
=.
1665 # Account for people who put trailing slashes in PATH elements.
1667 .
/ | .
// |
/cC
/* | \
1668 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1669 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1672 # OSF1 and SCO ODT 3.0 have their own names for install.
1673 # Don't use installbsd from OSF since it installs stuff as root
1675 for ac_prog
in ginstall scoinst
install; do
1676 for ac_exec_ext
in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1678 if test $ac_prog = install &&
1679 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1680 # AIX install. It has an incompatible calling convention.
1682 elif test $ac_prog = install &&
1683 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1684 # program-specific install script used by HP pwplus--don't use.
1687 rm -rf conftest.one conftest.two conftest.dir
1688 echo one
> conftest.one
1689 echo two
> conftest.two
1691 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
1692 test -s conftest.one
&& test -s conftest.two
&&
1693 test -s conftest.dir
/conftest.one
&&
1694 test -s conftest.dir
/conftest.two
1696 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1707 rm -rf conftest.one conftest.two conftest.dir
1710 if test "${ac_cv_path_install+set}" = set; then
1711 INSTALL
=$ac_cv_path_install
1713 # As a last resort, use the slow shell script. Don't cache a
1714 # value for INSTALL within a source directory, because that will
1715 # break other packages using the cache if that directory is
1716 # removed, or if the value is a relative name.
1717 INSTALL
=$ac_install_sh
1720 echo "$as_me:$LINENO: result: $INSTALL" >&5
1721 echo "${ECHO_T}$INSTALL" >&6
1723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1724 # It thinks the first close brace ends the variable substitution.
1725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1729 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1731 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1732 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1735 echo timestamp
> conftest.
file
1736 # Do `set' in a subshell so we don't clobber the current shell's
1737 # arguments. Must try -L first in case configure is actually a
1738 # symlink; some systems play weird games with the mod time of symlinks
1739 # (eg FreeBSD returns the mod time of the symlink's containing
1742 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1743 if test "$*" = "X"; then
1745 set X
`ls -t $srcdir/configure conftest.file`
1748 if test "$*" != "X $srcdir/configure conftest.file" \
1749 && test "$*" != "X conftest.file $srcdir/configure"; then
1751 # If neither matched, then we have a broken ls. This can happen
1752 # if, for instance, CONFIG_SHELL is bash and it inherits a
1753 # broken ls alias from the environment. This has actually
1754 # happened. Such a system could not be considered "sane".
1755 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1756 alias in your environment" >&5
1757 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1758 alias in your environment" >&2;}
1759 { (exit 1); exit 1; }; }
1762 test "$2" = conftest.
file
1768 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1769 Check your system clock" >&5
1770 echo "$as_me: error: newly created file is older than distributed files!
1771 Check your system clock" >&2;}
1772 { (exit 1); exit 1; }; }
1774 echo "$as_me:$LINENO: result: yes" >&5
1775 echo "${ECHO_T}yes" >&6
1776 test "$program_prefix" != NONE
&&
1777 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1778 # Use a double $ so make ignores it.
1779 test "$program_suffix" != NONE
&&
1780 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1781 # Double any \ or $. echo might interpret backslashes.
1782 # By default was `s,x,x', remove it if useless.
1783 cat <<\_ACEOF
>conftest.
sed
1784 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1786 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1789 # expand $ac_aux_dir to an absolute path
1790 am_aux_dir
=`cd $ac_aux_dir && pwd`
1792 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1793 # Use eval to expand $SHELL
1794 if eval "$MISSING --run true"; then
1795 am_missing_run
="$MISSING --run "
1798 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1799 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1802 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1803 # We used to keeping the `.' as first argument, in order to
1804 # allow $(mkdir_p) to be used without argument. As in
1805 # $(mkdir_p) $(somedir)
1806 # where $(somedir) is conditionally defined. However this is wrong
1808 # 1. if the package is installed by a user who cannot write `.'
1809 # make install will fail,
1810 # 2. the above comment should most certainly read
1811 # $(mkdir_p) $(DESTDIR)$(somedir)
1812 # so it does not work when $(somedir) is undefined and
1813 # $(DESTDIR) is not.
1814 # To support the latter case, we have to write
1815 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1816 # so the `.' trick is pointless.
1817 mkdir_p
='mkdir -p --'
1819 # On NextStep and OpenStep, the `mkdir' command does not
1820 # recognize any option. It will interpret all options as
1821 # directories to create, and then abort because `.' already
1823 for d
in .
/-p .
/--version;
1825 test -d $d && rmdir $d
1827 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1828 if test -f "$ac_aux_dir/mkinstalldirs"; then
1829 mkdir_p
='$(mkinstalldirs)'
1831 mkdir_p
='$(install_sh) -d'
1835 for ac_prog
in gawk mawk nawk
awk
1837 # Extract the first word of "$ac_prog", so it can be a program name with args.
1838 set dummy
$ac_prog; ac_word
=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_AWK+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 if test -n "$AWK"; then
1845 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1851 test -z "$as_dir" && as_dir
=.
1852 for ac_exec_ext
in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 ac_cv_prog_AWK
="$ac_prog"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 if test -n "$AWK"; then
1865 echo "$as_me:$LINENO: result: $AWK" >&5
1866 echo "${ECHO_T}$AWK" >&6
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1872 test -n "$AWK" && break
1875 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1876 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1877 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1878 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 cat >conftest.
make <<\_ACEOF
1883 @
echo 'ac_maketemp="$(MAKE)"'
1885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1886 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1887 if test -n "$ac_maketemp"; then
1888 eval ac_cv_prog_make_
${ac_make}_set
=yes
1890 eval ac_cv_prog_make_
${ac_make}_set
=no
1894 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1895 echo "$as_me:$LINENO: result: yes" >&5
1896 echo "${ECHO_T}yes" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 SET_MAKE
="MAKE=${MAKE-make}"
1904 rm -rf .tst
2>/dev
/null
1905 mkdir .tst
2>/dev
/null
1906 if test -d .tst
; then
1911 rmdir .tst
2>/dev
/null
1913 # test to see if srcdir already configured
1914 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1915 test -f $srcdir/config.status
; then
1916 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1917 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1918 { (exit 1); exit 1; }; }
1921 # test whether we have cygpath
1922 if test -z "$CYGPATH_W"; then
1923 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1924 CYGPATH_W
='cygpath -w'
1931 # Define the identity of the package.
1936 cat >>confdefs.h
<<_ACEOF
1937 #define PACKAGE "$PACKAGE"
1941 cat >>confdefs.h
<<_ACEOF
1942 #define VERSION "$VERSION"
1945 # Some tools Automake needs.
1947 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1950 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1953 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1956 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1959 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1961 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1963 # Installed binaries are usually stripped using `strip' when the user
1964 # run `make install-strip'. However `strip' might not be the right
1965 # tool to use in cross-compilation environments, therefore Automake
1966 # will honor the `STRIP' environment variable to overrule this program.
1967 if test "$cross_compiling" != no
; then
1968 if test -n "$ac_tool_prefix"; then
1969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1970 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_STRIP+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$STRIP"; then
1977 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir
=.
1984 for ac_exec_ext
in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 STRIP
=$ac_cv_prog_STRIP
1996 if test -n "$STRIP"; then
1997 echo "$as_me:$LINENO: result: $STRIP" >&5
1998 echo "${ECHO_T}$STRIP" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2005 if test -z "$ac_cv_prog_STRIP"; then
2007 # Extract the first word of "strip", so it can be a program name with args.
2008 set dummy strip
; ac_word
=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$ac_ct_STRIP"; then
2015 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir
=.
2022 for ac_exec_ext
in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_ac_ct_STRIP
="strip"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
2034 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2035 if test -n "$ac_ct_STRIP"; then
2036 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2037 echo "${ECHO_T}$ac_ct_STRIP" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2045 STRIP
="$ac_cv_prog_STRIP"
2049 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2051 # We need awk for the "check" target. The system "awk" is bad on
2053 # Always define AMTAR for backward compatibility.
2055 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2057 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2064 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2065 # We must force CC to /not/ be precious variables; otherwise
2066 # the wrong, non-multilib-adjusted value will be used in multilibs.
2067 # As a side effect, we have to subst CFLAGS ourselves.
2072 ac_cpp
='$CPP $CPPFLAGS'
2073 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2076 if test -n "$ac_tool_prefix"; then
2077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2078 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 if test -n "$CC"; then
2085 ac_cv_prog_CC
="$CC" # Let the user override the test.
2087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2091 test -z "$as_dir" && as_dir
=.
2092 for ac_exec_ext
in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 if test -n "$CC"; then
2105 echo "$as_me:$LINENO: result: $CC" >&5
2106 echo "${ECHO_T}$CC" >&6
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2113 if test -z "$ac_cv_prog_CC"; then
2115 # Extract the first word of "gcc", so it can be a program name with args.
2116 set dummy gcc
; ac_word
=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$ac_ct_CC"; then
2123 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir
=.
2130 for ac_exec_ext
in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_ac_ct_CC
="gcc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2142 if test -n "$ac_ct_CC"; then
2143 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2144 echo "${ECHO_T}$ac_ct_CC" >&6
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2155 if test -z "$CC"; then
2156 if test -n "$ac_tool_prefix"; then
2157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2158 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC
="$CC" # Let the user override the test.
2167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2171 test -z "$as_dir" && as_dir
=.
2172 for ac_exec_ext
in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 if test -n "$CC"; then
2185 echo "$as_me:$LINENO: result: $CC" >&5
2186 echo "${ECHO_T}$CC" >&6
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2193 if test -z "$ac_cv_prog_CC"; then
2195 # Extract the first word of "cc", so it can be a program name with args.
2196 set dummy cc
; ac_word
=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 if test -n "$ac_ct_CC"; then
2203 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir
=.
2210 for ac_exec_ext
in '' $ac_executable_extensions; do
2211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212 ac_cv_prog_ac_ct_CC
="cc"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6
2226 echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2236 if test -z "$CC"; then
2237 # Extract the first word of "cc", so it can be a program name with args.
2238 set dummy cc
; ac_word
=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC
="$CC" # Let the user override the test.
2248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2252 test -z "$as_dir" && as_dir
=.
2253 for ac_exec_ext
in '' $ac_executable_extensions; do
2254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2256 ac_prog_rejected
=yes
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 if test $ac_prog_rejected = yes; then
2267 # We found a bogon in the path, so make sure we never use it.
2268 set dummy
$ac_cv_prog_CC
2270 if test $# != 0; then
2271 # We chose a different compiler from the bogus one.
2272 # However, it has the same basename, so the bogon will be chosen
2273 # first if we set CC to just the basename; use the full file name.
2275 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2281 if test -n "$CC"; then
2282 echo "$as_me:$LINENO: result: $CC" >&5
2283 echo "${ECHO_T}$CC" >&6
2285 echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2295 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 if test -n "$CC"; then
2302 ac_cv_prog_CC
="$CC" # Let the user override the test.
2304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2308 test -z "$as_dir" && as_dir
=.
2309 for ac_exec_ext
in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 if test -n "$CC"; then
2322 echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2329 test -n "$CC" && break
2332 if test -z "$CC"; then
2336 # Extract the first word of "$ac_prog", so it can be a program name with args.
2337 set dummy
$ac_prog; ac_word
=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir
=.
2351 for ac_exec_ext
in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_ac_ct_CC
="$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2371 test -n "$ac_ct_CC" && break
2380 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: no acceptable C compiler found in \$PATH
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2386 # Provide some information about the compiler.
2387 echo "$as_me:$LINENO:" \
2388 "checking for C compiler version" >&5
2389 ac_compiler
=`set X $ac_compile; echo $2`
2390 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2391 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }
2395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2396 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }
2400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2401 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }
2406 cat >conftest.
$ac_ext <<_ACEOF
2409 cat confdefs.h
>>conftest.
$ac_ext
2410 cat >>conftest.
$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2421 ac_clean_files_save
=$ac_clean_files
2422 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2423 # Try to create an executable without -o first, disregard a.out.
2424 # It will help us diagnose broken compilers, and finding out an intuition
2426 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2427 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2428 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2429 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2430 (eval $ac_link_default) 2>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; then
2434 # Find the output, starting from the most likely. This scheme is
2435 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2438 # Be careful to initialize this variable, since it used to be cached.
2439 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2441 # b.out is created by i960 compilers.
2442 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2444 test -f "$ac_file" ||
continue
2446 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2449 # This is the source file.
2452 # We found the default executable, but exeext='' is most
2456 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457 # FIXME: I believe we export ac_cv_exeext for Libtool,
2458 # but it would be cool to find out if it's true. Does anybody
2459 # maintain Libtool? --akim.
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.
$ac_ext >&5
2470 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&2;}
2474 { (exit 77); exit 77; }; }
2477 ac_exeext
=$ac_cv_exeext
2478 echo "$as_me:$LINENO: result: $ac_file" >&5
2479 echo "${ECHO_T}$ac_file" >&6
2481 # Check the compiler produces executables we can run. If not, either
2482 # the compiler is broken, or we cross compile.
2483 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2484 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2485 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2486 # If not cross compiling, check that we can run a simple program.
2487 if test "$cross_compiling" != yes; then
2488 if { ac_try
='./$ac_file'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2496 if test "$cross_compiling" = maybe
; then
2499 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2500 If you meant to cross compile, use \`--host'.
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot run C compiled programs.
2503 If you meant to cross compile, use \`--host'.
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2509 echo "$as_me:$LINENO: result: yes" >&5
2510 echo "${ECHO_T}yes" >&6
2512 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2513 ac_clean_files
=$ac_clean_files_save
2514 # Check the compiler produces executables we can run. If not, either
2515 # the compiler is broken, or we cross compile.
2516 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2517 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2518 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2519 echo "${ECHO_T}$cross_compiling" >&6
2521 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2522 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2524 (eval $ac_link) 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2529 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2530 # work properly (i.e., refer to `conftest.exe'), while it won't with
2532 for ac_file
in conftest.exe conftest conftest.
*; do
2533 test -f "$ac_file" ||
continue
2535 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2536 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2543 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2544 See \`config.log' for more details." >&5
2545 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&2;}
2547 { (exit 1); exit 1; }; }
2550 rm -f conftest
$ac_cv_exeext
2551 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2552 echo "${ECHO_T}$ac_cv_exeext" >&6
2554 rm -f conftest.
$ac_ext
2555 EXEEXT
=$ac_cv_exeext
2557 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2558 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2559 if test "${ac_cv_objext+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 cat >conftest.
$ac_ext <<_ACEOF
2565 cat confdefs.h
>>conftest.
$ac_ext
2566 cat >>conftest.
$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.o conftest.obj
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; then
2583 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2585 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2586 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.
$ac_ext >&5
2594 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2595 See \`config.log' for more details." >&5
2596 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2597 See \`config.log' for more details." >&2;}
2598 { (exit 1); exit 1; }; }
2601 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2603 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2604 echo "${ECHO_T}$ac_cv_objext" >&6
2605 OBJEXT
=$ac_cv_objext
2607 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2608 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2609 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 cat >conftest.
$ac_ext <<_ACEOF
2615 cat confdefs.h
>>conftest.
$ac_ext
2616 cat >>conftest.
$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2630 rm -f conftest.
$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 2>conftest.er1
2634 grep -v '^ *+' conftest.er1
>conftest.err
2636 cat conftest.err
>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try
='test -z "$ac_c_werror_flag"
2640 || test ! -s conftest.err'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; } &&
2646 { ac_try
='test -s conftest.$ac_objext'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.
$ac_ext >&5
2659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2660 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2663 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2664 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2665 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2666 ac_test_CFLAGS
=${CFLAGS+set}
2667 ac_save_CFLAGS
=$CFLAGS
2669 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2670 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2671 if test "${ac_cv_prog_cc_g+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 cat >conftest.
$ac_ext <<_ACEOF
2677 cat confdefs.h
>>conftest.
$ac_ext
2678 cat >>conftest.
$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
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
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.
$ac_ext >&5
2718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2721 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2722 if test "$ac_test_CFLAGS" = set; then
2723 CFLAGS
=$ac_save_CFLAGS
2724 elif test $ac_cv_prog_cc_g = yes; then
2725 if test "$GCC" = yes; then
2731 if test "$GCC" = yes; then
2737 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2738 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2739 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2742 ac_cv_prog_cc_stdc
=no
2744 cat >conftest.
$ac_ext <<_ACEOF
2747 cat confdefs.h
>>conftest.
$ac_ext
2748 cat >>conftest.
$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2752 #include <sys/types.h>
2753 #include <sys/stat.h>
2754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2755 struct buf { int x; };
2756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2757 static char *e (p, i)
2763 static char *f (char * (*g) (char **, int), char **p, ...)
2768 s = g (p, va_arg (v,int));
2773 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2774 function prototypes and stuff, but not '\xHH' hex character constants.
2775 These don't provoke an error unfortunately, instead are silently treated
2776 as 'x'. The following induces an error, until -std1 is added to get
2777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2778 array size at least. It's necessary to write '\x00'==0 to get something
2779 that's true only with -std1. */
2780 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2782 int test (int i, double x);
2783 struct s1 {int (*f) (int a);};
2784 struct s2 {int (*f) (double a);};
2785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2796 # Don't try gcc -ansi; that turns off useful extensions and
2797 # breaks some systems' header files.
2798 # AIX -qlanglvl=ansi
2799 # Ultrix and OSF/1 -std1
2800 # HP-UX 10.20 and later -Ae
2801 # HP-UX older versions -Aa -D_HPUX_SOURCE
2802 # SVR4 -Xc -D__EXTENSIONS__
2803 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2805 CC
="$ac_save_CC $ac_arg"
2806 rm -f conftest.
$ac_objext
2807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>conftest.er1
2810 grep -v '^ *+' conftest.er1
>conftest.err
2812 cat conftest.err
>&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try
='test -z "$ac_c_werror_flag"
2816 || test ! -s conftest.err'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; } &&
2822 { ac_try
='test -s conftest.$ac_objext'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2828 ac_cv_prog_cc_stdc
=$ac_arg
2831 echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.
$ac_ext >&5
2835 rm -f conftest.err conftest.
$ac_objext
2837 rm -f conftest.
$ac_ext conftest.
$ac_objext
2842 case "x$ac_cv_prog_cc_stdc" in
2844 echo "$as_me:$LINENO: result: none needed" >&5
2845 echo "${ECHO_T}none needed" >&6 ;;
2847 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2848 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2849 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2852 # Some people use a C++ compiler to compile C. Since we use `exit',
2853 # in C++ we need to declare it. In case someone uses the same compiler
2854 # for both compiling C and C++ we need to have the C++ compiler decide
2855 # the declaration of exit, since it's the most demanding environment.
2856 cat >conftest.
$ac_ext <<_ACEOF
2861 rm -f conftest.
$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1
>conftest.err
2867 cat conftest.err
>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try
='test -z "$ac_c_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try
='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 for ac_declaration
in \
2885 'extern "C" void std::exit (int) throw (); using std::exit;' \
2886 'extern "C" void std::exit (int); using std::exit;' \
2887 'extern "C" void exit (int) throw ();' \
2888 'extern "C" void exit (int);' \
2891 cat >conftest.
$ac_ext <<_ACEOF
2894 cat confdefs.h
>>conftest.
$ac_ext
2895 cat >>conftest.
$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2907 rm -f conftest.
$ac_objext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>conftest.er1
2911 grep -v '^ *+' conftest.er1
>conftest.err
2913 cat conftest.err
>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try
='test -z "$ac_c_werror_flag"
2917 || test ! -s conftest.err'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; } &&
2923 { ac_try
='test -s conftest.$ac_objext'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.
$ac_ext >&5
2936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2937 cat >conftest.
$ac_ext <<_ACEOF
2940 cat confdefs.h
>>conftest.
$ac_ext
2941 cat >>conftest.
$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2952 rm -f conftest.
$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954 (eval $ac_compile) 2>conftest.er1
2956 grep -v '^ *+' conftest.er1
>conftest.err
2958 cat conftest.err
>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try
='test -z "$ac_c_werror_flag"
2962 || test ! -s conftest.err'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try
='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.
$ac_ext >&5
2980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2983 if test -n "$ac_declaration"; then
2984 echo '#ifdef __cplusplus' >>confdefs.h
2985 echo $ac_declaration >>confdefs.h
2986 echo '#endif' >>confdefs.h
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.
$ac_ext >&5
2994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2996 ac_cpp
='$CPP $CPPFLAGS'
2997 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3000 DEPDIR
="${am__leading_dot}deps"
3002 ac_config_commands
="$ac_config_commands depfiles"
3005 am_make
=${MAKE-make}
3006 cat > confinc
<< 'END'
3011 # If we don't find an include directive, just comment out the code.
3012 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3013 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3017 # First try GNU make style include.
3018 echo "include confinc" > confmf
3019 # We grep out `Entering directory' and `Leaving directory'
3020 # messages which can occur if `w' ends up in MAKEFLAGS.
3021 # In particular we don't look at `^make:' because GNU make might
3022 # be invoked under some other name (usually "gmake"), in which
3023 # case it prints its new name instead of `make'.
3024 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3029 # Now try BSD make style include.
3030 if test "$am__include" = "#"; then
3031 echo '.include "confinc"' > confmf
3032 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3033 am__include
=.include
3040 echo "$as_me:$LINENO: result: $_am_result" >&5
3041 echo "${ECHO_T}$_am_result" >&6
3042 rm -f confinc confmf
3044 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3045 if test "${enable_dependency_tracking+set}" = set; then
3046 enableval
="$enable_dependency_tracking"
3049 if test "x$enable_dependency_tracking" != xno
; then
3050 am_depcomp
="$ac_aux_dir/depcomp"
3055 if test "x$enable_dependency_tracking" != xno; then
3066 depcc
="$CC" am_compiler_list
=
3068 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3069 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3070 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3074 # We make a subdir and do the tests there. Otherwise we can end up
3075 # making bogus files that we don't know about and never remove. For
3076 # instance it was reported that on HP-UX the gcc test will end up
3077 # making a dummy file named `D' -- because `-MD' means `put the output
3080 # Copy depcomp to subdir because otherwise we won't find it if we're
3081 # using a relative directory.
3082 cp "$am_depcomp" conftest.dir
3084 # We will build objects and dependencies in a subdirectory because
3085 # it helps to detect inapplicable dependency modes. For instance
3086 # both Tru64's cc and ICC support -MD to output dependencies as a
3087 # side effect of compilation, but ICC will put the dependencies in
3088 # the current directory while Tru64 will put them in the object
3092 am_cv_CC_dependencies_compiler_type
=none
3093 if test "$am_compiler_list" = ""; then
3094 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3096 for depmode
in $am_compiler_list; do
3097 # Setup a source with many dependencies, because some compilers
3098 # like to wrap large dependency lists on column 80 (with \), and
3099 # we should not choose a depcomp mode which is confused by this.
3101 # We need to recreate these files for each test, as the compiler may
3102 # overwrite some of them when testing with obscure command lines.
3103 # This happens at least with the AIX C compiler.
3105 for i
in 1 2 3 4 5 6; do
3106 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3107 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3108 # Solaris 8's {/usr,}/bin/sh.
3109 touch sub
/conftst
$i.h
3111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3115 # after this tag, mechanisms are not by side-effect, so they'll
3116 # only be used when explicitly requested
3117 if test "x$enable_dependency_tracking" = xyes
; then
3125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3126 # mode. It turns out that the SunPro C++ compiler does not properly
3127 # handle `-M -o', and we need to detect this.
3128 if depmode
=$depmode \
3129 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3130 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3131 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3132 >/dev
/null
2>conftest.err
&&
3133 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3134 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3135 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3136 # icc doesn't choke on unknown options, it will just issue warnings
3137 # or remarks (even with -Werror). So we grep stderr for any message
3138 # that says an option was ignored or not supported.
3139 # When given -MP, icc 7.0 and 7.1 complain thusly:
3140 # icc: Command line warning: ignoring option '-M'; no argument required
3141 # The diagnosis changed in icc 8.0:
3142 # icc: Command line remark: option '-MP' not supported
3143 if (grep 'ignoring option' conftest.err ||
3144 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3145 am_cv_CC_dependencies_compiler_type
=$depmode
3154 am_cv_CC_dependencies_compiler_type
=none
3158 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3159 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3160 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3165 test "x$enable_dependency_tracking" != xno \
3166 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3168 am__fastdepCC_FALSE
='#'
3170 am__fastdepCC_TRUE
='#'
3171 am__fastdepCC_FALSE
=
3179 # By default we simply use the C compiler to build assembly code.
3181 test "${CCAS+set}" = set || CCAS
=$CC
3182 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
3186 if test "x$CC" != xcc
; then
3187 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3188 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3190 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3191 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3193 set dummy
$CC; ac_cc
=`echo $2 |
3194 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3195 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 cat >conftest.
$ac_ext <<_ACEOF
3201 cat confdefs.h
>>conftest.
$ac_ext
3202 cat >>conftest.
$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3213 # Make sure it works both with $CC and with simple cc.
3214 # We do the test twice because some compilers refuse to overwrite an
3215 # existing .o file with -o, though they will create one.
3216 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3217 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } &&
3222 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); };
3228 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3229 if test "x$CC" != xcc
; then
3230 # Test first that cc exists at all.
3231 if { ac_try
='cc -c conftest.$ac_ext >&5'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3238 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); };
3252 # cc exists but doesn't like -o.
3253 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3258 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3263 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3264 echo "$as_me:$LINENO: result: yes" >&5
3265 echo "${ECHO_T}yes" >&6
3267 echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3270 cat >>confdefs.h
<<\_ACEOF
3271 #define NO_MINUS_C_MINUS_O 1
3276 # FIXME: we rely on the cache variable name because
3277 # there is no other way.
3279 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3280 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3281 # Losing compiler, so override with the script.
3282 # FIXME: It is wrong to rewrite CC.
3283 # But if we don't then we get into trouble of one sort or another.
3284 # A longer-term fix would be to have automake use am__CC in this case,
3285 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3286 CC
="$am_aux_dir/compile $CC"
3291 macro_version
='2.1a'
3292 macro_revision
='1.2435'
3305 ltmain
="$ac_aux_dir/ltmain.sh"
3315 # Check whether --enable-shared or --disable-shared was given.
3316 if test "${enable_shared+set}" = set; then
3317 enableval
="$enable_shared"
3318 p
=${PACKAGE-default}
3320 yes) enable_shared
=yes ;;
3321 no
) enable_shared
=no
;;
3324 # Look at the argument we got. We use all the common list separators.
3325 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3326 for pkg
in $enableval; do
3328 if test "X$pkg" = "X$p"; then
3346 # Check whether --enable-static or --disable-static was given.
3347 if test "${enable_static+set}" = set; then
3348 enableval
="$enable_static"
3349 p
=${PACKAGE-default}
3351 yes) enable_static
=yes ;;
3352 no
) enable_static
=no
;;
3355 # Look at the argument we got. We use all the common list separators.
3356 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3357 for pkg
in $enableval; do
3359 if test "X$pkg" = "X$p"; then
3378 # Check whether --with-pic or --without-pic was given.
3379 if test "${with_pic+set}" = set; then
3386 test -z "$pic_mode" && pic_mode
=default
3394 # Check whether --enable-fast-install or --disable-fast-install was given.
3395 if test "${enable_fast_install+set}" = set; then
3396 enableval
="$enable_fast_install"
3397 p
=${PACKAGE-default}
3399 yes) enable_fast_install
=yes ;;
3400 no
) enable_fast_install
=no
;;
3402 enable_fast_install
=no
3403 # Look at the argument we got. We use all the common list separators.
3404 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3405 for pkg
in $enableval; do
3407 if test "X$pkg" = "X$p"; then
3408 enable_fast_install
=yes
3415 enable_fast_install
=yes
3425 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3426 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3427 if test "${lt_cv_path_SED+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 # Loop through the user's path and test for sed and gsed.
3431 # Then use that list of sed's as ones to test for truncation.
3432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir
=.
3437 for lt_ac_prog
in sed gsed
; do
3438 for ac_exec_ext
in '' $ac_executable_extensions; do
3439 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3440 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3448 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3449 # along with /bin/sed that truncates output.
3450 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3451 test ! -f $lt_ac_sed && continue
3452 cat /dev
/null
> conftest.
in
3454 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3455 # Check for GNU sed and select it if it is found.
3456 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3457 lt_cv_path_SED
=$lt_ac_sed
3461 cat conftest.
in conftest.
in >conftest.tmp
3462 mv conftest.tmp conftest.
in
3463 cp conftest.
in conftest.
nl
3465 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3466 cmp -s conftest.out conftest.
nl ||
break
3467 # 10000 chars as input seems more than enough
3468 test $lt_ac_count -gt 10 && break
3469 lt_ac_count
=`expr $lt_ac_count + 1`
3470 if test $lt_ac_count -gt $lt_ac_max; then
3471 lt_ac_max
=$lt_ac_count
3472 lt_cv_path_SED
=$lt_ac_sed
3481 echo "$as_me:$LINENO: result: $SED" >&5
3482 echo "${ECHO_T}$SED" >&6
3484 test -z "$SED" && SED
=sed
3485 Xsed
="$SED -e 1s/^X//"
3497 echo "$as_me:$LINENO: checking for egrep" >&5
3498 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3499 if test "${ac_cv_prog_egrep+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3503 then ac_cv_prog_egrep
='grep -E'
3504 else ac_cv_prog_egrep
='egrep'
3507 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3508 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3509 EGREP
=$ac_cv_prog_egrep
3512 echo "$as_me:$LINENO: checking for fgrep" >&5
3513 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3514 if test "${ac_cv_prog_fgrep+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
3518 then ac_cv_prog_fgrep
='grep -F'
3519 else ac_cv_prog_fgrep
='fgrep'
3522 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3523 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3524 FGREP
=$ac_cv_prog_fgrep
3527 test -z "$GREP" && GREP
=grep
3547 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3548 if test "${with_gnu_ld+set}" = set; then
3549 withval
="$with_gnu_ld"
3550 test "$withval" = no || with_gnu_ld
=yes
3555 if test "$GCC" = yes; then
3556 # Check if gcc -print-prog-name=ld gives a path.
3557 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3558 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3561 # gcc leaves a trailing carriage return which upsets mingw
3562 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3564 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3567 # Accept absolute paths.
3569 re_direlt
='/[^/][^/]*/\.\./'
3570 # Canonicalize the pathname of ld
3571 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3572 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
3573 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3575 test -z "$LD" && LD
="$ac_prog"
3578 # If it fails, then pretend we aren't using GCC.
3582 # If it is relative, then search for the first ld in PATH.
3586 elif test "$with_gnu_ld" = yes; then
3587 echo "$as_me:$LINENO: checking for GNU ld" >&5
3588 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3590 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3591 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3593 if test "${lt_cv_path_LD+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test -z "$LD"; then
3597 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3598 for ac_dir
in $PATH; do
3600 test -z "$ac_dir" && ac_dir
=.
3601 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3602 lt_cv_path_LD
="$ac_dir/$ac_prog"
3603 # Check to see if the program is GNU ld. I'd rather use --version,
3604 # but apparently some variants of GNU ld only accept -v.
3605 # Break only if it was the GNU/non-GNU ld that we prefer.
3606 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3607 *GNU
* |
*'with BFD'*)
3608 test "$with_gnu_ld" != no
&& break
3611 test "$with_gnu_ld" != yes && break
3618 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3623 if test -n "$LD"; then
3624 echo "$as_me:$LINENO: result: $LD" >&5
3625 echo "${ECHO_T}$LD" >&6
3627 echo "$as_me:$LINENO: result: no" >&5
3628 echo "${ECHO_T}no" >&6
3630 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3631 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3632 { (exit 1); exit 1; }; }
3633 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3634 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3635 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3639 case `$LD -v 2>&1 </dev/null` in
3640 *GNU
* |
*'with BFD'*)
3641 lt_cv_prog_gnu_ld
=yes
3644 lt_cv_prog_gnu_ld
=no
3648 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3649 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3650 with_gnu_ld
=$lt_cv_prog_gnu_ld
3661 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3662 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3663 if test "${lt_cv_path_NM+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 if test -n "$NM"; then
3667 # Let the user override the test.
3670 lt_nm_to_check
="${ac_tool_prefix}nm"
3671 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3672 lt_nm_to_check
="$lt_nm_to_check nm"
3674 for lt_tmp_nm
in $lt_nm_to_check; do
3675 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3676 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
3678 test -z "$ac_dir" && ac_dir
=.
3679 tmp_nm
="$ac_dir/$lt_tmp_nm"
3680 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3681 # Check to see if the nm accepts a BSD-compat flag.
3682 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3683 # nm: unknown option "B" ignored
3684 # Tru64's nm complains that /dev/null is an invalid object file
3685 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3686 */dev
/null
* |
*'Invalid file or object type'*)
3687 lt_cv_path_NM
="$tmp_nm -B"
3691 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3693 lt_cv_path_NM
="$tmp_nm -p"
3697 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3698 continue # so that we can try to find one that supports BSD flags
3707 : ${lt_cv_path_NM=no}
3710 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3711 echo "${ECHO_T}$lt_cv_path_NM" >&6
3712 if test "$lt_cv_path_NM" != "no"; then
3715 # Didn't find any BSD compatible name lister, look for dumpbin.
3716 if test -n "$ac_tool_prefix"; then
3717 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
3719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 if test -n "$DUMPBIN"; then
3727 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
3729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir
=.
3734 for ac_exec_ext
in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 DUMPBIN
=$ac_cv_prog_DUMPBIN
3746 if test -n "$DUMPBIN"; then
3747 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3748 echo "${ECHO_T}$DUMPBIN" >&6
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 test -n "$DUMPBIN" && break
3757 if test -z "$DUMPBIN"; then
3758 ac_ct_DUMPBIN
=$DUMPBIN
3759 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy
$ac_prog; ac_word
=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 if test -n "$ac_ct_DUMPBIN"; then
3769 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
3771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir
=.
3776 for ac_exec_ext
in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
3788 if test -n "$ac_ct_DUMPBIN"; then
3789 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3790 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3796 test -n "$ac_ct_DUMPBIN" && break
3798 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
3800 DUMPBIN
=$ac_ct_DUMPBIN
3804 if test "$DUMPBIN" != ":"; then
3808 test -z "$NM" && NM
=nm
3815 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3816 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3817 if test "${lt_cv_nm_interface+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 lt_cv_nm_interface
="BSD nm"
3821 echo "int some_variable = 0;" > conftest.
$ac_ext
3822 (eval echo "\"\$as_me:3822: $ac_compile\"" >&5)
3823 (eval "$ac_compile" 2>conftest.err
)
3824 cat conftest.err
>&5
3825 (eval echo "\"\$as_me:3825: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3826 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
3827 cat conftest.err
>&5
3828 (eval echo "\"\$as_me:3828: output\"" >&5)
3829 cat conftest.out
>&5
3830 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
3831 lt_cv_nm_interface
="MS dumpbin"
3835 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3836 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3838 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3839 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3841 if test "$LN_S" = "ln -s"; then
3842 echo "$as_me:$LINENO: result: yes" >&5
3843 echo "${ECHO_T}yes" >&6
3845 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3846 echo "${ECHO_T}no, using $LN_S" >&6
3849 # find the maximum length of command line arguments
3850 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3851 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3852 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 # On DJGPP, this test can blow up pretty badly due to problems in libc
3861 # (any single argument exceeding 2000 bytes causes a buffer overrun
3862 # during glob expansion). Even if it were fixed, the result of this
3863 # check would be larger than it should be.
3864 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
3868 # Under GNU Hurd, this test is not required because there is
3869 # no limit to the length of command line arguments.
3870 # Libtool will interpret -1 as no limit whatsoever
3871 lt_cv_sys_max_cmd_len
=-1;
3875 # On Win9x/ME, this test blows up -- it succeeds, but takes
3876 # about 5 minutes as the teststring grows exponentially.
3877 # Worse, since 9x/ME are not pre-emptively multitasking,
3878 # you end up with a "frozen" computer, even though with patience
3879 # the test eventually succeeds (with a max line length of 256k).
3880 # Instead, let's just punt: use the minimum linelength reported by
3881 # all of the supported platforms: 8192 (on NT/2K/XP).
3882 lt_cv_sys_max_cmd_len
=8192;
3886 # On AmigaOS with pdksh, this test takes hours, literally.
3887 # So we just punt and use a minimum line length of 8192.
3888 lt_cv_sys_max_cmd_len
=8192;
3891 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
3892 # This has been around since 386BSD, at least. Likely further.
3893 if test -x /sbin
/sysctl
; then
3894 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
3895 elif test -x /usr
/sbin
/sysctl
; then
3896 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
3898 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
3900 # And add a safety zone
3901 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
3902 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
3906 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3907 lt_cv_sys_max_cmd_len
=196608
3911 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3912 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3913 # nice to cause kernel panics so lets avoid the loop below.
3914 # First set a reasonable default.
3915 lt_cv_sys_max_cmd_len
=16384
3917 if test -x /sbin
/sysconfig
; then
3918 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3919 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
3924 lt_cv_sys_max_cmd_len
=102400
3926 sysv5
* | sco5v6
* | sysv4.2uw2
*)
3927 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3928 if test -n "$kargmax"; then
3929 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
3931 lt_cv_sys_max_cmd_len
=32768
3935 lt_cv_sys_max_cmd_len
=`getconf ARG_MAX 2> /dev/null`
3936 if test -n $lt_cv_sys_max_cmd_len; then
3937 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
3938 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
3940 # Make teststring a little bigger before we do anything with it.
3941 # a 1K string should be a reasonable start.
3942 for i
in 1 2 3 4 5 6 7 8 ; do
3943 teststring
=$teststring$teststring
3945 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
3946 # If test is not a shell built-in, we'll probably end up computing a
3947 # maximum length that is only half of the actual maximum length, but
3949 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3950 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
3951 test $i != 17 # 1/2 MB should be enough
3954 teststring
=$teststring$teststring
3956 # Only check the string length outside the loop.
3957 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
3959 # Add a significant safety factor because C++ compilers can tack on
3960 # massive amounts of additional arguments before passing them to the
3961 # linker. It appears as though 1/2 is a usable value.
3962 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
3969 if test -n $lt_cv_sys_max_cmd_len ; then
3970 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3971 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3973 echo "$as_me:$LINENO: result: none" >&5
3974 echo "${ECHO_T}none" >&6
3976 max_cmd_len
=$lt_cv_sys_max_cmd_len
3988 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3989 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3990 # Try some XSI features
3993 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3994 = c,a/b,, ) >/dev/null 2>&1 \
3996 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
3997 echo "${ECHO_T}$xsi_shell" >&6
4000 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
4001 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
4003 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
4005 && lt_shell_append=yes
4006 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
4007 echo "${ECHO_T}$lt_shell_append" >&6
4010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4020 # test EBCDIC or ASCII
4021 case `echo X|tr X '\101'` in
4022 A) # ASCII based system
4023 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4024 lt_SP2NL='tr \040 \012'
4025 lt_NL2SP='tr \015\012 \040\040'
4027 *) # EBCDIC based system
4028 lt_SP2NL='tr \100 \n'
4029 lt_NL2SP='tr \r\n \100\100'
4041 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
4042 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
4043 if test "${lt_cv_ld_reload_flag+set}" = set; then
4044 echo $ECHO_N "(cached
) $ECHO_C" >&6
4046 lt_cv_ld_reload_flag='-r'
4048 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
4049 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4050 reload_flag=$lt_cv_ld_reload_flag
4051 case $reload_flag in
4053 *) reload_flag=" $reload_flag" ;;
4055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4058 if test "$GCC" = yes; then
4059 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4061 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4075 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
4076 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
4077 if test "${lt_cv_deplibs_check_method+set}" = set; then
4078 echo $ECHO_N "(cached
) $ECHO_C" >&6
4080 lt_cv_file_magic_cmd='$MAGIC_CMD'
4081 lt_cv_file_magic_test_file=
4082 lt_cv_deplibs_check_method='unknown'
4083 # Need to set the preceding variable on all platforms that support
4084 # interlibrary dependencies.
4085 # 'none' -- dependencies not supported.
4086 # `unknown' -- same as none, but documents that we really don't know.
4087 # 'pass_all' -- all dependencies passed with no checks.
4088 # 'test_compile' -- check by making test program.
4089 # 'file_magic [[regex]]' -- check by looking for files in library path
4090 # which responds to the $file_magic_cmd with a given extended regex.
4091 # If you have `file' or equivalent on your system and you're not sure
4092 # whether `pass_all' will *always* work, you probably want this one.
4096 lt_cv_deplibs_check_method=pass_all
4100 lt_cv_deplibs_check_method=pass_all
4104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4105 lt_cv_file_magic_cmd='/usr/bin/file -L'
4106 lt_cv_file_magic_test_file=/shlib/libc.so
4110 # func_win32_libid is a shell function defined in ltmain.sh
4111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4112 lt_cv_file_magic_cmd='func_win32_libid'
4116 # Base MSYS/MinGW do not provide the 'file' command needed by
4117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4118 # unless we find 'file', for example because we are cross-compiling.
4119 if ( file / ) >/dev/null 2>&1; then
4120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4121 lt_cv_file_magic_cmd='func_win32_libid'
4123 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4124 lt_cv_file_magic_cmd='$OBJDUMP -f'
4128 darwin* | rhapsody*)
4129 lt_cv_deplibs_check_method=pass_all
4132 freebsd* | dragonfly*)
4133 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4136 # Not sure whether the presence of OpenBSD here was a mistake.
4137 # Let's accept both of them until this is cleared up.
4138 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4139 lt_cv_file_magic_cmd=/usr/bin/file
4140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4144 lt_cv_deplibs_check_method=pass_all
4149 lt_cv_deplibs_check_method=pass_all
4152 hpux10.20* | hpux11*)
4153 lt_cv_file_magic_cmd=/usr/bin/file
4156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4157 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4161 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4165 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4171 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4175 irix5* | irix6* | nonstopux*)
4177 *-32|*"-32 ") libmagic=32-bit;;
4178 *-n32|*"-n32 ") libmagic=N32;;
4179 *-64|*"-64 ") libmagic=64-bit;;
4180 *) libmagic=never-match;;
4182 lt_cv_deplibs_check_method=pass_all
4185 # This must be Linux ELF.
4186 linux* | k*bsd*-gnu)
4187 lt_cv_deplibs_check_method=pass_all
4191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4200 lt_cv_file_magic_cmd=/usr/bin/file
4201 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4205 lt_cv_deplibs_check_method=pass_all
4209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
4210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4216 osf3* | osf4* | osf5*)
4217 lt_cv_deplibs_check_method=pass_all
4221 lt_cv_deplibs_check_method=pass_all
4225 lt_cv_deplibs_check_method=pass_all
4228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4229 lt_cv_deplibs_check_method=pass_all
4233 case $host_vendor in
4235 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]'
4236 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4239 lt_cv_deplibs_check_method=pass_all
4242 lt_cv_file_magic_cmd='/bin/file'
4243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4246 lt_cv_file_magic_cmd='/bin/file'
4247 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
4248 lt_cv_file_magic_test_file=/lib/libc.so
4251 lt_cv_deplibs_check_method=pass_all
4254 lt_cv_deplibs_check_method=pass_all
4260 lt_cv_deplibs_check_method=pass_all
4265 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
4266 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4267 file_magic_cmd=$lt_cv_file_magic_cmd
4268 deplibs_check_method=$lt_cv_deplibs_check_method
4269 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4282 if test -n "$ac_tool_prefix"; then
4283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}ar; ac_word=$2
4285 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4286 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4287 if test "${ac_cv_prog_AR+set}" = set; then
4288 echo $ECHO_N "(cached
) $ECHO_C" >&6
4290 if test -n "$AR"; then
4291 ac_cv_prog_AR="$AR" # Let the user override the test.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_AR="${ac_tool_prefix}ar"
4301 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4310 if test -n "$AR"; then
4311 echo "$as_me:$LINENO: result
: $AR" >&5
4312 echo "${ECHO_T}$AR" >&6
4314 echo "$as_me:$LINENO: result
: no
" >&5
4315 echo "${ECHO_T}no
" >&6
4319 if test -z "$ac_cv_prog_AR"; then
4321 # Extract the first word of "ar", so it can be a program name with args.
4322 set dummy ar; ac_word=$2
4323 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4324 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4326 echo $ECHO_N "(cached
) $ECHO_C" >&6
4328 if test -n "$ac_ct_AR"; then
4329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_AR="ar"
4339 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4345 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
4348 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4349 if test -n "$ac_ct_AR"; then
4350 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
4351 echo "${ECHO_T}$ac_ct_AR" >&6
4353 echo "$as_me:$LINENO: result
: no
" >&5
4354 echo "${ECHO_T}no
" >&6
4362 test -z "$AR" && AR=ar
4363 test -z "$AR_FLAGS" && AR_FLAGS=cru
4375 if test -n "$ac_tool_prefix"; then
4376 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
4377 set dummy ${ac_tool_prefix}strip; ac_word=$2
4378 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4379 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4380 if test "${ac_cv_prog_STRIP+set}" = set; then
4381 echo $ECHO_N "(cached
) $ECHO_C" >&6
4383 if test -n "$STRIP"; then
4384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
4394 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4402 STRIP=$ac_cv_prog_STRIP
4403 if test -n "$STRIP"; then
4404 echo "$as_me:$LINENO: result
: $STRIP" >&5
4405 echo "${ECHO_T}$STRIP" >&6
4407 echo "$as_me:$LINENO: result
: no
" >&5
4408 echo "${ECHO_T}no
" >&6
4412 if test -z "$ac_cv_prog_STRIP"; then
4414 # Extract the first word of "strip
", so it can be a program name with args.
4415 set dummy strip; ac_word=$2
4416 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4417 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4418 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4419 echo $ECHO_N "(cached
) $ECHO_C" >&6
4421 if test -n "$ac_ct_STRIP"; then
4422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_ac_ct_STRIP="strip
"
4432 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4438 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4441 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4442 if test -n "$ac_ct_STRIP"; then
4443 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
4444 echo "${ECHO_T}$ac_ct_STRIP" >&6
4446 echo "$as_me:$LINENO: result
: no
" >&5
4447 echo "${ECHO_T}no
" >&6
4452 STRIP="$ac_cv_prog_STRIP"
4455 test -z "$STRIP" && STRIP=:
4462 if test -n "$ac_tool_prefix"; then
4463 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
4464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4465 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4466 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4467 if test "${ac_cv_prog_RANLIB+set}" = set; then
4468 echo $ECHO_N "(cached
) $ECHO_C" >&6
4470 if test -n "$RANLIB"; then
4471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
4481 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4489 RANLIB=$ac_cv_prog_RANLIB
4490 if test -n "$RANLIB"; then
4491 echo "$as_me:$LINENO: result
: $RANLIB" >&5
4492 echo "${ECHO_T}$RANLIB" >&6
4494 echo "$as_me:$LINENO: result
: no
" >&5
4495 echo "${ECHO_T}no
" >&6
4499 if test -z "$ac_cv_prog_RANLIB"; then
4500 ac_ct_RANLIB=$RANLIB
4501 # Extract the first word of "ranlib
", so it can be a program name with args.
4502 set dummy ranlib; ac_word=$2
4503 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4504 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4505 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4506 echo $ECHO_N "(cached
) $ECHO_C" >&6
4508 if test -n "$ac_ct_RANLIB"; then
4509 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_ac_ct_RANLIB="ranlib
"
4519 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4525 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4528 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4529 if test -n "$ac_ct_RANLIB"; then
4530 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
4531 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4533 echo "$as_me:$LINENO: result
: no
" >&5
4534 echo "${ECHO_T}no
" >&6
4537 RANLIB=$ac_ct_RANLIB
4539 RANLIB="$ac_cv_prog_RANLIB"
4542 test -z "$RANLIB" && RANLIB=:
4549 # Determine commands to create old-style static archives.
4550 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4551 old_postinstall_cmds='chmod 644 $oldlib'
4552 old_postuninstall_cmds=
4554 if test -n "$RANLIB"; then
4557 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
4560 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
4563 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
4599 # If no C compiler was specified, use CC.
4602 # If no C compiler flags were specified, use CFLAGS.
4603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4605 # Allow CC to be a program name with arguments.
4609 # Check for command to grab the raw symbol name followed by C symbol from nm.
4610 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
4611 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
4612 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4613 echo $ECHO_N "(cached
) $ECHO_C" >&6
4616 # These are sane defaults that work on at least a few old systems.
4617 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4619 # Character class describing NM global symbol codes.
4620 symcode='[BCDEGRST]'
4622 # Regexp to match symbols that can be accessed directly from C.
4623 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4625 # Define system-specific variables.
4630 cygwin* | mingw* | pw32*)
4631 symcode='[ABCDGISTW]'
4634 if test "$host_cpu" = ia64; then
4635 symcode='[ABCDEGRST]'
4639 symcode='[BCDEGRST]'
4642 symcode='[BCDEGQRST]'
4653 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4661 # If we're using GNU nm, then use its standard symbol codes.
4662 case `$NM -V 2>&1` in
4663 *GNU* | *'with BFD'*)
4664 symcode='[ABCDGIRSTW]' ;;
4667 # Transform an extracted symbol line into a proper C declaration.
4668 # Some systems (esp. on ia64) link data and code symbols differently,
4669 # so use this general approach.
4670 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4672 # Transform an extracted symbol line into symbol name and symbol address
4673 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4675 # Handle CRLF in mingw tool chain
4679 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4683 # Try without a prefix underscore, then with it.
4684 for ac_symprfx in "" "_
"; do
4686 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4687 symxfrm="\\1 $ac_symprfx\\2 \\2"
4689 # Write the raw and C identifiers.
4690 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
4691 # Fake it for dumpbin and say T for any non-static function
4692 # and D for any global variable.
4693 # Also find C++ and __fastcall symbols from MSVC++,
4694 # which start with @ or ?.
4695 lt_cv_sys_global_symbol_pipe="$AWK '"\
4696 " {last_section=section; section=\$ 3};"\
4697 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4698 " \$ 0!~/External *\|/{next};"\
4699 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4700 " {if(hide[section]) next};"\
4701 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4702 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4703 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4704 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4705 " ' prfx
=^
$ac_symprfx"
4707 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4710 # Check to see that the pipe works correctly.
4714 cat > conftest.$ac_ext <<_LT_EOF
4719 void nm_test_func(void);
4720 void nm_test_func(void){}
4724 int main(){nm_test_var='a';nm_test_func();return(0);}
4727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4728 (eval $ac_compile) 2>&5
4730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4731 (exit $ac_status); }; then
4732 # Now try to grab the symbols.
4734 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
4735 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4738 (exit $ac_status); } && test -s "$nlist"; then
4739 # Try sorting and uniquifying the output.
4740 if sort "$nlist" | uniq > "$nlist"T; then
4741 mv -f "$nlist"T "$nlist"
4746 # Make sure that we snagged all the symbols we need.
4747 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4748 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4749 cat <<_LT_EOF > conftest.$ac_ext
4755 # Now generate the symbol file.
4756 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4758 cat <<_LT_EOF >> conftest.$ac_ext
4760 /* The mapping between symbol names and symbols. */
4765 lt__PROGRAM__LTX_preloaded_symbols[] =
4767 { "@PROGRAM@
", (void *) 0 },
4769 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4770 cat <<\_LT_EOF >> conftest.$ac_ext
4774 /* This works around a problem in FreeBSD linker */
4775 #ifdef FREEBSD_WORKAROUND
4776 static const void *lt_preloaded_setup() {
4777 return lt__PROGRAM__LTX_preloaded_symbols;
4785 # Now try linking the two files.
4786 mv conftest.$ac_objext conftstm.$ac_objext
4787 lt_save_LIBS="$LIBS"
4788 lt_save_CFLAGS="$CFLAGS"
4789 LIBS="conftstm.
$ac_objext"
4790 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4792 (eval $ac_link) 2>&5
4794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4795 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4798 LIBS="$lt_save_LIBS"
4799 CFLAGS="$lt_save_CFLAGS"
4801 echo "cannot
find nm_test_func
in $nlist" >&5
4804 echo "cannot
find nm_test_var
in $nlist" >&5
4807 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
4810 echo "$progname: failed program was
:" >&5
4811 cat conftest.$ac_ext >&5
4813 rm -f conftest* conftst*
4815 # Do not use the global_symbol_pipe unless it works.
4816 if test "$pipe_works" = yes; then
4819 lt_cv_sys_global_symbol_pipe=
4825 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4826 lt_cv_sys_global_symbol_to_cdecl=
4828 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4829 echo "$as_me:$LINENO: result
: failed
" >&5
4830 echo "${ECHO_T}failed
" >&6
4832 echo "$as_me:$LINENO: result
: ok
" >&5
4833 echo "${ECHO_T}ok
" >&6
4853 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4854 if test "${enable_libtool_lock+set}" = set; then
4855 enableval="$enable_libtool_lock"
4858 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
4860 # Some flags need to be propagated to the compiler or linker for good
4864 # Find out which ABI we are using.
4865 echo 'int i;' > conftest.$ac_ext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>&5
4869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4870 (exit $ac_status); }; then
4871 case `/usr/bin/file conftest.$ac_objext` in
4883 # Find out which ABI we are using.
4884 echo '#line 4884 "configure
"' > conftest.$ac_ext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4889 (exit $ac_status); }; then
4890 if test "$lt_cv_prog_gnu_ld" = yes; then
4891 case `/usr/bin/file conftest.$ac_objext` in
4893 LD="${LD-ld} -melf32bsmip"
4896 LD="${LD-ld} -melf32bmipn32"
4899 LD="${LD-ld} -melf64bmip"
4903 case `/usr/bin/file conftest.$ac_objext` in
4919 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4920 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4921 # Find out which ABI we are using.
4922 echo 'int i;' > conftest.$ac_ext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>&5
4926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4927 (exit $ac_status); }; then
4928 case `/usr/bin/file conftest.o` in
4931 x86_64-*kfreebsd*-gnu)
4932 LD="${LD-ld} -m elf_i386_fbsd
"
4935 LD="${LD-ld} -m elf_i386
"
4937 ppc64-*linux*|powerpc64-*linux*)
4938 LD="${LD-ld} -m elf32ppclinux
"
4941 LD="${LD-ld} -m elf_s390
"
4944 LD="${LD-ld} -m elf32_sparc
"
4950 x86_64-*kfreebsd*-gnu)
4951 LD="${LD-ld} -m elf_x86_64_fbsd
"
4954 LD="${LD-ld} -m elf_x86_64
"
4956 ppc*-*linux*|powerpc*-*linux*)
4957 LD="${LD-ld} -m elf64ppc
"
4959 s390*-*linux*|s390*-*tpf*)
4960 LD="${LD-ld} -m elf64_s390
"
4963 LD="${LD-ld} -m elf64_sparc
"
4973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4974 SAVE_CFLAGS="$CFLAGS"
4975 CFLAGS="$CFLAGS -belf"
4976 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
4977 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
4978 if test "${lt_cv_cc_needs_belf+set}" = set; then
4979 echo $ECHO_N "(cached
) $ECHO_C" >&6
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 cat >conftest.$ac_ext <<_ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5006 grep -v '^ *+' conftest.er1 >conftest.err
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 lt_cv_cc_needs_belf=yes
5026 echo "$as_me: failed program was
:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5029 lt_cv_cc_needs_belf=no
5031 rm -f conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
5041 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5044 CFLAGS="$SAVE_CFLAGS"
5048 # Find out which ABI we are using.
5049 echo 'int i;' > conftest.$ac_ext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>&5
5053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5054 (exit $ac_status); }; then
5055 case `/usr/bin/file conftest.o` in
5057 case $lt_cv_prog_gnu_ld in
5058 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
5059 *) LD="${LD-ld} -64" ;;
5068 need_locks="$enable_libtool_lock"
5071 ac_cpp='$CPP $CPPFLAGS'
5072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075 echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5076 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6
5077 # On Suns, sometimes $CPP names a directory.
5078 if test -n "$CPP" && test -d "$CPP"; then
5081 if test -z "$CPP"; then
5082 if test "${ac_cv_prog_CPP+set}" = set; then
5083 echo $ECHO_N "(cached
) $ECHO_C" >&6
5085 # Double quotes because CPP needs to be expanded
5086 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5089 for ac_c_preproc_warn_flag in '' yes
5091 # Use a header file that comes with gcc, so configuring glibc
5092 # with a fresh cross-compiler works.
5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094 # <limits.h> exists even on freestanding compilers.
5095 # On the NeXT, cc -E runs the code through the compiler's parser,
5096 # not just through cpp. "Syntax error
" is here to catch this case.
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5104 # include <limits.h>
5106 # include <assert.h>
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_c_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5127 if test -z "$ac_cpp_err"; then
5130 echo "$as_me: failed program was
:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Broken: fails on valid input.
5136 rm -f conftest.err conftest.$ac_ext
5138 # OK, works on sane cases. Now check whether non-existent headers
5139 # can be detected and how.
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 #include <ac_nonexistent.h>
5148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5151 grep -v '^ *+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5155 (exit $ac_status); } >/dev/null; then
5156 if test -s conftest.err; then
5157 ac_cpp_err=$ac_c_preproc_warn_flag
5158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5165 if test -z "$ac_cpp_err"; then
5166 # Broken: success on invalid input.
5169 echo "$as_me: failed program was
:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 # Passes both tests.
5176 rm -f conftest.err conftest.$ac_ext
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5193 echo "$as_me:$LINENO: result
: $CPP" >&5
5194 echo "${ECHO_T}$CPP" >&6
5196 for ac_c_preproc_warn_flag in '' yes
5198 # Use a header file that comes with gcc, so configuring glibc
5199 # with a fresh cross-compiler works.
5200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5201 # <limits.h> exists even on freestanding compilers.
5202 # On the NeXT, cc -E runs the code through the compiler's parser,
5203 # not just through cpp. "Syntax error
" is here to catch this case.
5204 cat >conftest.$ac_ext <<_ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5211 # include <limits.h>
5213 # include <assert.h>
5217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5220 grep -v '^ *+' conftest.er1 >conftest.err
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5224 (exit $ac_status); } >/dev/null; then
5225 if test -s conftest.err; then
5226 ac_cpp_err=$ac_c_preproc_warn_flag
5227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5234 if test -z "$ac_cpp_err"; then
5237 echo "$as_me: failed program was
:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 # Broken: fails on valid input.
5243 rm -f conftest.err conftest.$ac_ext
5245 # OK, works on sane cases. Now check whether non-existent headers
5246 # can be detected and how.
5247 cat >conftest.$ac_ext <<_ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #include <ac_nonexistent.h>
5255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5258 grep -v '^ *+' conftest.er1 >conftest.err
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5262 (exit $ac_status); } >/dev/null; then
5263 if test -s conftest.err; then
5264 ac_cpp_err=$ac_c_preproc_warn_flag
5265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5272 if test -z "$ac_cpp_err"; then
5273 # Broken: success on invalid input.
5276 echo "$as_me: failed program was
:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 # Passes both tests.
5283 rm -f conftest.err conftest.$ac_ext
5286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5287 rm -f conftest.err conftest.$ac_ext
5288 if $ac_preproc_ok; then
5291 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5292 See \
`config.log' for more details." >&5
5293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5294 See \`config.log
' for more details." >&2;}
5295 { (exit 1); exit 1; }; }
5299 ac_cpp='$CPP $CPPFLAGS'
5300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5301 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5307 if test "${ac_cv_header_stdc+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5333 grep -v '^
*+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag"
5339 ||
test ! -s conftest.err
'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.
$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 ac_cv_header_stdc=yes
5353 echo "$as_me: failed program was:" >&5
5354 sed 's
/^
/|
/' conftest.$ac_ext >&5
5356 ac_cv_header_stdc=no
5358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5360 if test $ac_cv_header_stdc = yes; then
5361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372 $EGREP "memchr" >/dev/null 2>&1; then
5375 ac_cv_header_stdc=no
5381 if test $ac_cv_header_stdc = yes; then
5382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5383 cat >conftest.$ac_ext <<_ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5393 $EGREP "free" >/dev/null 2>&1; then
5396 ac_cv_header_stdc=no
5402 if test $ac_cv_header_stdc = yes; then
5403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5404 if test "$cross_compiling" = yes; then
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5414 #if ((' ' & 0x0FF) == 0x020)
5415 # define ISLOWER(c) ('a
' <= (c) && (c) <= 'z
')
5416 # define TOUPPER(c) (ISLOWER(c) ? 'A
' + ((c) - 'a
') : (c))
5418 # define ISLOWER(c) \
5419 (('a
' <= (c) && (c) <= 'i
') \
5420 || ('j
' <= (c) && (c) <= 'r
') \
5421 || ('s
' <= (c) && (c) <= 'z
'))
5422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5430 for (i = 0; i < 256; i++)
5431 if (XOR (islower (i), ISLOWER (i))
5432 || toupper (i) != TOUPPER (i))
5437 rm -f conftest$ac_exeext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5439 (eval $ac_link) 2>&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5450 echo "$as_me: program exited with status $ac_status" >&5
5451 echo "$as_me: failed program was:" >&5
5452 sed 's
/^
/|
/' conftest.$ac_ext >&5
5455 ac_cv_header_stdc=no
5457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5462 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5463 if test $ac_cv_header_stdc = yes; then
5465 cat >>confdefs.h <<\_ACEOF
5466 #define STDC_HEADERS 1
5471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5481 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5482 inttypes.h stdint.h unistd.h
5484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485 echo "$as_me:$LINENO: checking for $ac_header" >&5
5486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 cat >conftest.$ac_ext <<_ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5498 #include <$ac_header>
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>conftest.er1
5504 grep -v '^
*+' conftest.er1 >conftest.err
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_c_werror_flag"
5510 ||
test ! -s conftest.err
'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest.
$ac_objext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5522 eval "$as_ac_Header=yes"
5524 echo "$as_me: failed program was:" >&5
5525 sed 's
/^
/|
/' conftest.$ac_ext >&5
5527 eval "$as_ac_Header=no"
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5544 for ac_header in dlfcn.h
5546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5547 echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 $ac_includes_default
5560 #include <$ac_header>
5562 rm -f conftest.$ac_objext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564 (eval $ac_compile) 2>conftest.er1
5566 grep -v '^
*+' conftest.er1 >conftest.err
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -z "$ac_c_werror_flag"
5572 ||
test ! -s conftest.err
'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; } &&
5578 { ac_try='test -s conftest.
$ac_objext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 eval "$as_ac_Header=yes"
5586 echo "$as_me: failed program was:" >&5
5587 sed 's
/^
/|
/' conftest.$ac_ext >&5
5589 eval "$as_ac_Header=no"
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5596 cat >>confdefs.h <<_ACEOF
5597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5606 # This can be used to rebuild libtool when needed
5607 LIBTOOL_DEPS="$ltmain"
5609 # Always use our own libtool.
5610 LIBTOOL='$
(SHELL
) $
(top_builddir
)/libtool
'
5636 test -z "$LN_S" && LN_S="ln -s"
5651 if test -n "${ZSH_VERSION+set}" ; then
5652 setopt NO_GLOB_SUBST
5655 echo "$as_me:$LINENO: checking for objdir" >&5
5656 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5657 if test "${lt_cv_objdir+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 rm -f .libs 2>/dev/null
5661 mkdir .libs 2>/dev/null
5662 if test -d .libs; then
5665 # MS-DOS does not allow filenames that begin with a dot.
5668 rmdir .libs 2>/dev/null
5670 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5671 echo "${ECHO_T}$lt_cv_objdir" >&6
5672 objdir=$lt_cv_objdir
5678 cat >>confdefs.h <<_ACEOF
5679 #define LT_OBJDIR "$lt_cv_objdir/"
5700 # AIX sometimes has problems with the GCC collect2 program. For some
5701 # reason, if we set the COLLECT_NAMES environment variable, the problems
5702 # vanish in a puff of smoke.
5703 if test "X${COLLECT_NAMES+set}" != Xset; then
5705 export COLLECT_NAMES
5710 # Sed substitution that helps us do robust quoting. It backslashifies
5711 # metacharacters that are still active within double-quoted strings.
5712 sed_quote_subst='s
/\
(["`$\\]\)/\\\1/g'
5714 # Same as above, but do not quote variable references.
5715 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5717 # Sed substitution to delay expansion of an escaped shell variable in a
5718 # double_quote_subst'ed string.
5719 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5721 # Sed substitution to delay expansion of an escaped single quote.
5722 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5724 # Sed substitution to avoid accidental globbing in evaled expressions
5725 no_glob_subst='s/\*/\\\*/g'
5729 can_build_shared=yes
5731 # All known linkers require a `.a
' archive for static linking (except MSVC,
5732 # which needs '.lib
').
5735 with_gnu_ld="$lt_cv_prog_gnu_ld"
5738 old_CFLAGS="$CFLAGS"
5740 # Set sane defaults for various variables
5741 test -z "$CC" && CC=cc
5742 test -z "$LTCC" && LTCC=$CC
5743 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5744 test -z "$LD" && LD=ld
5745 test -z "$ac_objext" && ac_objext=o
5747 for cc_temp in $compiler""; do
5749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5755 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's
%.
*/%%' -e "s%^$host_alias-%%"`
5758 # Only perform the check for file, if the check method requires it
5759 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5760 case $deplibs_check_method in
5762 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5763 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5764 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5765 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5773 lt_save_MAGIC_CMD="$MAGIC_CMD"
5774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5776 for ac_dir in $ac_dummy; do
5778 test -z "$ac_dir" && ac_dir=.
5779 if test -f $ac_dir/${ac_tool_prefix}file; then
5780 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5781 if test -n "$file_magic_test_file"; then
5782 case $deplibs_check_method in
5784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5787 $EGREP "$file_magic_regex" > /dev/null; then
5792 *** Warning: the command libtool uses to detect shared libraries,
5793 *** $file_magic_cmd, produces output that libtool cannot recognize.
5794 *** The result is that libtool may fail to recognize shared libraries
5795 *** as such. This will affect the creation of libtool libraries that
5796 *** depend on shared libraries, but programs linked with such libtool
5797 *** libraries will work regardless of this problem. Nevertheless, you
5798 *** may want to report the problem to your system manager and/or to
5799 *** bug-libtool@gnu.org
5809 MAGIC_CMD="$lt_save_MAGIC_CMD"
5814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5815 if test -n "$MAGIC_CMD"; then
5816 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5817 echo "${ECHO_T}$MAGIC_CMD" >&6
5819 echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6
5827 if test -z "$lt_cv_path_MAGIC_CMD"; then
5828 if test -n "$ac_tool_prefix"; then
5829 echo "$as_me:$LINENO: checking for file" >&5
5830 echo $ECHO_N "checking for file... $ECHO_C" >&6
5831 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5839 lt_save_MAGIC_CMD="$MAGIC_CMD"
5840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5841 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5842 for ac_dir in $ac_dummy; do
5844 test -z "$ac_dir" && ac_dir=.
5845 if test -f $ac_dir/file; then
5846 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5847 if test -n "$file_magic_test_file"; then
5848 case $deplibs_check_method in
5850 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5851 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5852 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5853 $EGREP "$file_magic_regex" > /dev/null; then
5858 *** Warning: the command libtool uses to detect shared libraries,
5859 *** $file_magic_cmd, produces output that libtool cannot recognize.
5860 *** The result is that libtool may fail to recognize shared libraries
5861 *** as such. This will affect the creation of libtool libraries that
5862 *** depend on shared libraries, but programs linked with such libtool
5863 *** libraries will work regardless of this problem. Nevertheless, you
5864 *** may want to report the problem to your system manager and/or to
5865 *** bug-libtool@gnu.org
5875 MAGIC_CMD="$lt_save_MAGIC_CMD"
5880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5881 if test -n "$MAGIC_CMD"; then
5882 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5883 echo "${ECHO_T}$MAGIC_CMD" >&6
5885 echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6
5899 # Use C for the default configuration in the libtool script
5903 ac_cpp='$CPP $CPPFLAGS'
5904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5905 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5909 # Source file extension for C test sources.
5912 # Object file extension for compiled C test sources.
5916 # Code to be used in simple compile tests
5917 lt_simple_compile_test_code="int some_variable = 0;"
5919 # Code to be used in simple link tests
5920 lt_simple_link_test_code='int main
(){return(0);}'
5928 # If no C compiler was specified, use CC.
5931 # If no C compiler flags were specified, use CFLAGS.
5932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5934 # Allow CC to be a program name with arguments.
5937 # Save the default compiler, since it gets overwritten when the other
5938 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5939 compiler_DEFAULT=$CC
5941 # save warnings/boilerplate of simple test code
5942 ac_outfile=conftest.$ac_objext
5943 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
5945 _lt_compiler_boilerplate=`cat conftest.err`
5948 ac_outfile=conftest.$ac_objext
5949 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
5951 _lt_linker_boilerplate=`cat conftest.err`
5956 ## There is no encapsulation within the following macros, do not change
5957 ## the running order or otherwise move them around unless you know exactly
5958 ## what you are doing...
5959 if test -n "$compiler"; then
5961 lt_prog_compiler_no_builtin_flag=
5963 if test "$GCC" = yes; then
5964 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5966 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5967 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5968 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 lt_cv_prog_compiler_rtti_exceptions=no
5972 ac_outfile=conftest.$ac_objext
5973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5974 lt_compiler_flag="-fno-rtti -fno-exceptions"
5975 # Insert the option either (1) after the last *FLAGS variable, or
5976 # (2) before a word containing "conftest.", or (3) at the end.
5977 # Note that $ac_compile itself does not contain backslashes and begins
5978 # with a dollar sign (not a hyphen), so the echo should work correctly.
5979 # The option is referenced via a variable to avoid confusing sed.
5980 lt_compile=`echo "$ac_compile" | $SED \
5981 -e 's
:.
*FLAGS
}\
{0,1\
} :&$lt_compiler_flag :; t
' \
5982 -e 's
: [^
]*conftest\.
: $lt_compiler_flag&:; t
' \
5983 -e 's
:$
: $lt_compiler_flag:'`
5984 (eval echo "\"\$as_me:5984: $lt_compile\"" >&5)
5985 (eval "$lt_compile" 2>conftest.err)
5987 cat conftest.err >&5
5988 echo "$as_me:5988: \$? = $ac_status" >&5
5989 if (exit $ac_status) && test -s "$ac_outfile"; then
5990 # The compiler can only warn and ignore the option if not recognized
5991 # So say no if there are warnings other than the usual output.
5992 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$
/d
' >conftest.exp
5993 $SED '/^$
/d
; /^
*+/d
' conftest.err >conftest.er2
5994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5995 lt_cv_prog_compiler_rtti_exceptions=yes
6001 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6002 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6004 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6005 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6017 lt_prog_compiler_wl=
6018 lt_prog_compiler_pic=
6019 lt_prog_compiler_static=
6021 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6022 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6024 if test "$GCC" = yes; then
6025 lt_prog_compiler_wl='-Wl,'
6026 lt_prog_compiler_static='-static'
6030 # All AIX code is PIC.
6031 if test "$host_cpu" = ia64; then
6032 # AIX 5 now supports IA64 processor
6033 lt_prog_compiler_static='-Bstatic'
6038 if test "$host_cpu" = m68k; then
6039 # FIXME: we need at least 68020 code to build shared libraries, but
6040 # adding the `-m68020' flag to GCC prevents building anything better
,
6042 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6046 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6047 # PIC is the default for these OSes.
6050 mingw
* | cygwin
* | pw32
* | os2
*)
6051 # This hack is so that the source file can tell whether it is being
6052 # built for inclusion in a dll (and should export symbols for example).
6053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6054 # (--disable-auto-import) libraries
6055 lt_prog_compiler_pic
='-DDLL_EXPORT'
6058 darwin
* | rhapsody
*)
6059 # PIC is the default on this platform
6060 # Common symbols not allowed in MH_DYLIB files
6061 lt_prog_compiler_pic
='-fno-common'
6065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6072 lt_prog_compiler_pic
='-fPIC'
6078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6079 # Instead, we relocate shared libraries at runtime.
6083 # Just because we use GCC doesn't mean we suddenly get shared libraries
6084 # on systems that don't support them.
6085 lt_prog_compiler_can_build_shared
=no
6090 # QNX uses GNU C++, but need to define -shared option too, otherwise
6092 lt_prog_compiler_pic
='-fPIC -shared'
6096 if test -d /usr
/nec
; then
6097 lt_prog_compiler_pic
=-Kconform_pic
6102 lt_prog_compiler_pic
='-fPIC'
6106 # PORTME Check for flag to pass linker flags through the system compiler.
6109 lt_prog_compiler_wl
='-Wl,'
6110 if test "$host_cpu" = ia64
; then
6111 # AIX 5 now supports IA64 processor
6112 lt_prog_compiler_static
='-Bstatic'
6114 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6118 # PIC is the default on this platform
6119 # Common symbols not allowed in MH_DYLIB files
6120 case $cc_basename in
6122 lt_prog_compiler_pic
='-qnocommon'
6123 lt_prog_compiler_wl
='-Wl,'
6128 mingw
* | cygwin
* | pw32
* | os2
*)
6129 # This hack is so that the source file can tell whether it is being
6130 # built for inclusion in a dll (and should export symbols for example).
6131 lt_prog_compiler_pic
='-DDLL_EXPORT'
6134 hpux9
* | hpux10
* | hpux11
*)
6135 lt_prog_compiler_wl
='-Wl,'
6136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6143 lt_prog_compiler_pic
='+Z'
6146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6147 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6150 irix5
* | irix6
* | nonstopux
*)
6151 lt_prog_compiler_wl
='-Wl,'
6152 # PIC (with -KPIC) is the default.
6153 lt_prog_compiler_static
='-non_shared'
6156 linux
* | k
*bsd
*-gnu)
6157 case $cc_basename in
6159 lt_prog_compiler_wl
='-Wl,'
6160 lt_prog_compiler_pic
='-KPIC'
6161 lt_prog_compiler_static
='-static'
6163 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
6164 # Portland Group compilers (*not* the Pentium gcc compiler,
6165 # which looks to be a dead project)
6166 lt_prog_compiler_wl
='-Wl,'
6167 lt_prog_compiler_pic
='-fpic'
6168 lt_prog_compiler_static
='-Bstatic'
6171 lt_prog_compiler_wl
='-Wl,'
6172 # All Alpha code is PIC.
6173 lt_prog_compiler_static
='-non_shared'
6176 case `$CC -V 2>&1 | sed 5q` in
6179 lt_prog_compiler_pic
='-KPIC'
6180 lt_prog_compiler_static
='-Bstatic'
6181 lt_prog_compiler_wl
='-Wl,'
6184 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6185 lt_prog_compiler_pic
='-KPIC'
6186 lt_prog_compiler_static
='-Bstatic'
6187 lt_prog_compiler_wl
=''
6195 lt_prog_compiler_pic
='-KPIC'
6196 lt_prog_compiler_static
='-Bstatic'
6200 # QNX uses GNU C++, but need to define -shared option too, otherwise
6202 lt_prog_compiler_pic
='-fPIC -shared'
6205 osf3
* | osf4
* | osf5
*)
6206 lt_prog_compiler_wl
='-Wl,'
6207 # All OSF/1 code is PIC.
6208 lt_prog_compiler_static
='-non_shared'
6212 lt_prog_compiler_static
='-non_shared'
6216 lt_prog_compiler_pic
='-KPIC'
6217 lt_prog_compiler_static
='-Bstatic'
6218 case $cc_basename in
6220 lt_prog_compiler_wl
='-Qoption ld ';;
6222 lt_prog_compiler_wl
='-Wl,';;
6227 lt_prog_compiler_wl
='-Qoption ld '
6228 lt_prog_compiler_pic
='-PIC'
6229 lt_prog_compiler_static
='-Bstatic'
6232 sysv4 | sysv4.2uw2
* | sysv4.3
*)
6233 lt_prog_compiler_wl
='-Wl,'
6234 lt_prog_compiler_pic
='-KPIC'
6235 lt_prog_compiler_static
='-Bstatic'
6239 if test -d /usr
/nec
;then
6240 lt_prog_compiler_pic
='-Kconform_pic'
6241 lt_prog_compiler_static
='-Bstatic'
6245 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
6246 lt_prog_compiler_wl
='-Wl,'
6247 lt_prog_compiler_pic
='-KPIC'
6248 lt_prog_compiler_static
='-Bstatic'
6252 lt_prog_compiler_wl
='-Wl,'
6253 lt_prog_compiler_can_build_shared
=no
6257 lt_prog_compiler_pic
='-pic'
6258 lt_prog_compiler_static
='-Bstatic'
6262 lt_prog_compiler_can_build_shared
=no
6268 # For platforms which do not support PIC, -DPIC is meaningless:
6270 lt_prog_compiler_pic
=
6273 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6276 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6277 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6285 # Check to make sure the PIC flag actually works.
6287 if test -n "$lt_prog_compiler_pic"; then
6288 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6289 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6290 if test "${lt_prog_compiler_pic_works+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 lt_prog_compiler_pic_works
=no
6294 ac_outfile
=conftest.
$ac_objext
6295 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
6296 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6297 # Insert the option either (1) after the last *FLAGS variable, or
6298 # (2) before a word containing "conftest.", or (3) at the end.
6299 # Note that $ac_compile itself does not contain backslashes and begins
6300 # with a dollar sign (not a hyphen), so the echo should work correctly.
6301 # The option is referenced via a variable to avoid confusing sed.
6302 lt_compile
=`echo "$ac_compile" | $SED \
6303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6305 -e 's:$: $lt_compiler_flag:'`
6306 (eval echo "\"\$as_me:6306: $lt_compile\"" >&5)
6307 (eval "$lt_compile" 2>conftest.err
)
6309 cat conftest.err
>&5
6310 echo "$as_me:6310: \$? = $ac_status" >&5
6311 if (exit $ac_status) && test -s "$ac_outfile"; then
6312 # The compiler can only warn and ignore the option if not recognized
6313 # So say no if there are warnings other than the usual output.
6314 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
6315 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6316 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
6317 lt_prog_compiler_pic_works
=yes
6323 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6324 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6326 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6327 case $lt_prog_compiler_pic in
6329 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6332 lt_prog_compiler_pic
=
6333 lt_prog_compiler_can_build_shared
=no
6344 # Check to make sure the static flag actually works.
6346 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
6347 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6348 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6349 if test "${lt_prog_compiler_static_works+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 lt_prog_compiler_static_works
=no
6353 save_LDFLAGS
="$LDFLAGS"
6354 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
6355 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
6356 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6357 # The linker can only warn and ignore the option if not recognized
6358 # So say no if there are warnings
6359 if test -s conftest.err
; then
6360 # Append any errors to the config.log.
6361 cat conftest.err
1>&5
6362 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
6363 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6364 if diff conftest.exp conftest.er2
>/dev
/null
; then
6365 lt_prog_compiler_static_works
=yes
6368 lt_prog_compiler_static_works
=yes
6372 LDFLAGS
="$save_LDFLAGS"
6375 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6376 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6378 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6381 lt_prog_compiler_static
=
6390 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6391 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 lt_cv_prog_compiler_c_o
=no
6396 $RM -r conftest
2>/dev
/null
6400 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
6402 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6403 # Insert the option either (1) after the last *FLAGS variable, or
6404 # (2) before a word containing "conftest.", or (3) at the end.
6405 # Note that $ac_compile itself does not contain backslashes and begins
6406 # with a dollar sign (not a hyphen), so the echo should work correctly.
6407 lt_compile
=`echo "$ac_compile" | $SED \
6408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6410 -e 's:$: $lt_compiler_flag:'`
6411 (eval echo "\"\$as_me:6411: $lt_compile\"" >&5)
6412 (eval "$lt_compile" 2>out
/conftest.err
)
6414 cat out
/conftest.err
>&5
6415 echo "$as_me:6415: \$? = $ac_status" >&5
6416 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6418 # The compiler can only warn and ignore the option if not recognized
6419 # So say no if there are warnings
6420 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
6421 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
6422 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
6423 lt_cv_prog_compiler_c_o
=yes
6428 # SGI C++ compiler will create directory out/ii_files/ for
6429 # template instantiation
6430 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
6431 $RM out
/* && rmdir out
6437 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6438 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6445 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6446 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6447 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 lt_cv_prog_compiler_c_o
=no
6451 $RM -r conftest
2>/dev
/null
6455 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
6457 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6458 # Insert the option either (1) after the last *FLAGS variable, or
6459 # (2) before a word containing "conftest.", or (3) at the end.
6460 # Note that $ac_compile itself does not contain backslashes and begins
6461 # with a dollar sign (not a hyphen), so the echo should work correctly.
6462 lt_compile
=`echo "$ac_compile" | $SED \
6463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6465 -e 's:$: $lt_compiler_flag:'`
6466 (eval echo "\"\$as_me:6466: $lt_compile\"" >&5)
6467 (eval "$lt_compile" 2>out
/conftest.err
)
6469 cat out
/conftest.err
>&5
6470 echo "$as_me:6470: \$? = $ac_status" >&5
6471 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6473 # The compiler can only warn and ignore the option if not recognized
6474 # So say no if there are warnings
6475 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
6476 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
6477 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
6478 lt_cv_prog_compiler_c_o
=yes
6483 # SGI C++ compiler will create directory out/ii_files/ for
6484 # template instantiation
6485 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
6486 $RM out
/* && rmdir out
6492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6493 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6498 hard_links
="nottested"
6499 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6500 # do not overwrite the value of need_locks provided by the user
6501 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6502 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6505 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6507 ln conftest.a conftest.b
2>&5 || hard_links
=no
6508 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6509 echo "$as_me:$LINENO: result: $hard_links" >&5
6510 echo "${ECHO_T}$hard_links" >&6
6511 if test "$hard_links" = no
; then
6512 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6513 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6525 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6526 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6529 allow_undefined_flag
=
6530 always_export_symbols
=no
6532 archive_expsym_cmds
=
6533 compiler_needs_object
=no
6534 enable_shared_with_static_runtimes
=no
6535 export_dynamic_flag_spec
=
6536 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6537 hardcode_automatic
=no
6539 hardcode_direct_absolute
=no
6540 hardcode_libdir_flag_spec
=
6541 hardcode_libdir_flag_spec_ld
=
6542 hardcode_libdir_separator
=
6544 hardcode_shlibpath_var
=unsupported
6546 link_all_deplibs
=unknown
6549 old_archive_from_new_cmds
=
6550 old_archive_from_expsyms_cmds
=
6551 thread_safe_flag_spec
=
6552 whole_archive_flag_spec
=
6553 # include_expsyms should be a list of space-separated symbols to be *always*
6554 # included in the symbol list
6556 # exclude_expsyms can be an extended regexp of symbols to exclude
6557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6559 # as well as any symbol that contains `d'.
6560 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6562 # platforms (ab)use it in PIC code, but their linkers get confused if
6563 # the symbol is explicitly referenced. Since portable code cannot
6564 # rely on this symbol name, it's probably fine to never include it in
6565 # preloaded symbol tables.
6566 extract_expsyms_cmds
=
6569 cygwin
* | mingw
* | pw32
*)
6570 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6571 # When not using gcc, we currently assume that we are using
6572 # Microsoft Visual C++.
6573 if test "$GCC" != yes; then
6578 # we just hope/assume this is gcc and not c89 (= MSVC++)
6587 if test "$with_gnu_ld" = yes; then
6588 # If archive_cmds runs LD, not CC, wlarc should be empty
6591 # Set some defaults for GNU ld with shared library support. These
6592 # are reset later if shared libraries are not supported. Putting them
6593 # here allows them to be overridden if necessary.
6594 runpath_var
=LD_RUN_PATH
6595 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6596 export_dynamic_flag_spec
='${wl}--export-dynamic'
6597 # ancient GNU ld didn't support --whole-archive et. al.
6598 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
6599 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6601 whole_archive_flag_spec
=
6603 supports_anon_versioning
=no
6604 case `$LD -v 2>&1` in
6605 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
6606 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
6607 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
6608 *\
2.11.
*) ;; # other 2.11 versions
6609 *) supports_anon_versioning
=yes ;;
6612 # See if GNU ld supports shared libraries.
6615 # On AIX/PPC, the GNU linker is very broken
6616 if test "$host_cpu" != ia64
; then
6620 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6621 *** to be unable to reliably create shared libraries on AIX.
6622 *** Therefore, libtool is disabling shared libraries support. If you
6623 *** really care for shared libraries, you may want to modify your PATH
6624 *** so that a non-GNU linker is found, and then restart.
6631 if test "$host_cpu" = m68k
; then
6632 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6633 hardcode_libdir_flag_spec
='-L$libdir'
6634 hardcode_minus_L
=yes
6637 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6638 # that the semantics of dynamic libraries on AmigaOS, at least up
6639 # to version 4, is to share data among multiple programs linked
6640 # with the same dynamic library. Since this doesn't match the
6641 # behavior of shared libraries on other platforms, we can't use
6647 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
6648 allow_undefined_flag
=unsupported
6649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6650 # support --undefined. This deserves some investigation. FIXME
6651 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6657 cygwin
* | mingw
* | pw32
*)
6658 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6659 # as there is no search path for DLLs.
6660 hardcode_libdir_flag_spec
='-L$libdir'
6661 allow_undefined_flag
=unsupported
6662 always_export_symbols
=no
6663 enable_shared_with_static_runtimes
=yes
6664 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6666 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
6667 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6668 # If the export-symbols file already is a .def file (1st line
6669 # is EXPORTS), use it as is; otherwise, prepend...
6670 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6671 cp $export_symbols $output_objdir/$soname.def;
6673 echo EXPORTS > $output_objdir/$soname.def;
6674 cat $export_symbols >> $output_objdir/$soname.def;
6676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6684 hardcode_shlibpath_var
=no
6685 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
6686 export_dynamic_flag_spec
='${wl}-E'
6687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6688 # Instead, shared libraries are loaded at an image base (0x10000000 by
6689 # default) and relocated if they conflict, which is a slow very memory
6690 # consuming and fragmenting process. To avoid this, we pick a random,
6691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6693 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6694 archive_expsym_cmds
='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6697 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
6699 if test "$host_os" = linux-dietlibc
; then
6700 case $cc_basename in
6701 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
6704 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
6705 && test "$tmp_diet" = no
6708 case $cc_basename,$host_cpu in
6709 pgcc
*) # Portland Group C compiler
6710 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6711 tmp_addflag
=' $pic_flag'
6713 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
6714 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6715 tmp_addflag
=' $pic_flag -Mnomain' ;;
6716 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
6717 tmp_addflag
=' -i_dynamic' ;;
6718 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
6719 tmp_addflag
=' -i_dynamic -nofor_main' ;;
6720 ifc
* | ifort
*) # Intel Fortran compiler
6721 tmp_addflag
=' -nofor_main' ;;
6723 case `$CC -V 2>&1 | sed 5q` in
6724 *Sun\ C
*) # Sun C 5.9
6725 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6726 compiler_needs_object
=yes
6727 tmp_sharedflag
='-G' ;;
6728 *Sun\ F
*) # Sun Fortran 8.3
6729 tmp_sharedflag
='-G' ;;
6731 tmp_sharedflag
='-shared' ;;
6733 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6735 if test "x$supports_anon_versioning" = xyes
; then
6736 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
6737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6738 echo "local: *; };" >> $output_objdir/$libname.ver~
6739 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6747 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
6748 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6751 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6757 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
6761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6762 *** create shared libraries on Solaris systems. Therefore, libtool
6763 *** is disabling shared libraries support. We urge you to upgrade GNU
6764 *** binutils to release 2.9.1 or newer. Another option is to modify
6765 *** your PATH or compiler configuration so that the native linker is
6766 *** used, and then restart.
6769 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
6770 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6771 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6777 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6778 case `$LD -v 2>&1` in
6779 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
6783 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6784 *** reliably create shared libraries on SCO systems. Therefore, libtool
6785 *** is disabling shared libraries support. We urge you to upgrade GNU
6786 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6787 *** your PATH or compiler configuration so that the native linker is
6788 *** used, and then restart.
6793 # For security reasons, it is highly recommended that you always
6794 # use absolute paths for naming shared libraries, and exclude the
6795 # DT_RUNPATH tag from executables and libraries. But doing so
6796 # requires that you compile everything twice, which is a pain.
6797 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
6798 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6799 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6800 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6809 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6812 hardcode_shlibpath_var
=no
6816 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
6817 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6818 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6825 if test "$ld_shlibs" = no
; then
6827 hardcode_libdir_flag_spec
=
6828 export_dynamic_flag_spec
=
6829 whole_archive_flag_spec
=
6832 # PORTME fill in a description of your system's linker (not GNU ld)
6835 allow_undefined_flag
=unsupported
6836 always_export_symbols
=yes
6837 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6838 # Note: this linker hardcodes the directories in LIBPATH if there
6839 # are no directories specified by -L.
6840 hardcode_minus_L
=yes
6841 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6842 # Neither direct hardcoding nor static linking is supported with a
6844 hardcode_direct
=unsupported
6849 if test "$host_cpu" = ia64
; then
6850 # On IA64, the linker does run time linking by default, so we don't
6851 # have to do anything special.
6852 aix_use_runtimelinking
=no
6853 exp_sym_flag
='-Bexport'
6856 # If we're using GNU nm, then we don't want the "-C" option.
6857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6858 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
6859 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6861 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6863 aix_use_runtimelinking
=no
6865 # Test if we are trying to use run time linking or normal
6866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6867 # need to do runtime linking.
6868 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
6869 for ld_flag
in $LDFLAGS; do
6870 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
6871 aix_use_runtimelinking
=yes
6878 exp_sym_flag
='-bexport'
6879 no_entry_flag
='-bnoentry'
6882 # When large executables or shared objects are built, AIX ld can
6883 # have problems creating the table of contents. If linking a library
6884 # or program results in "error TOC overflow" add -mminimal-toc to
6885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6890 hardcode_direct_absolute
=yes
6891 hardcode_libdir_separator
=':'
6892 link_all_deplibs
=yes
6893 file_list_spec
='${wl}-f,'
6895 if test "$GCC" = yes; then
6896 case $host_os in aix4.
[012]|aix4.
[012].
*)
6897 # We only want to do this on AIX 4.2 and lower, the check
6898 # below for broken collect2 doesn't work under 4.3+
6899 collect2name
=`${CC} -print-prog-name=collect2`
6900 if test -f "$collect2name" &&
6901 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
6903 # We have reworked collect2
6906 # We have old collect2
6907 hardcode_direct
=unsupported
6908 # It fails to find uninstalled libraries when the uninstalled
6909 # path is not listed in the libpath. Setting hardcode_minus_L
6910 # to unsupported forces relinking
6911 hardcode_minus_L
=yes
6912 hardcode_libdir_flag_spec
='-L$libdir'
6913 hardcode_libdir_separator
=
6917 shared_flag
='-shared'
6918 if test "$aix_use_runtimelinking" = yes; then
6919 shared_flag
="$shared_flag "'${wl}-G'
6923 if test "$host_cpu" = ia64
; then
6924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6925 # chokes on -Wl,-G. The following line is correct:
6928 if test "$aix_use_runtimelinking" = yes; then
6929 shared_flag
='${wl}-G'
6931 shared_flag
='${wl}-bM:SRE'
6936 # It seems that -bexpall does not export symbols beginning with
6937 # underscore (_), so it is better to generate a list of symbols to export.
6938 always_export_symbols
=yes
6939 if test "$aix_use_runtimelinking" = yes; then
6940 # Warning - without using the other runtime loading flags (-brtl),
6941 # -berok will link without error, but may produce a broken library.
6942 allow_undefined_flag
='-berok'
6943 # Determine the default libpath from the value encoded in an
6945 cat >conftest.
$ac_ext <<_ACEOF
6948 cat confdefs.h
>>conftest.
$ac_ext
6949 cat >>conftest.
$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6960 rm -f conftest.
$ac_objext conftest
$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>conftest.er1
6964 grep -v '^ *+' conftest.er1
>conftest.err
6966 cat conftest.err
>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try
='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try
='test -s conftest$ac_exeext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6983 lt_aix_libpath_sed
='
6984 /Import File Strings/,/^$/ {
6990 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6991 # Check for a 64-bit object if we didn't find anything.
6992 if test -z "$aix_libpath"; then
6993 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.
$ac_ext >&5
7000 rm -f conftest.err conftest.
$ac_objext \
7001 conftest
$ac_exeext conftest.
$ac_ext
7002 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7004 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7005 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7007 if test "$host_cpu" = ia64
; then
7008 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
7009 allow_undefined_flag
="-z nodefs"
7010 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7012 # Determine the default libpath from the value encoded in an
7014 cat >conftest.
$ac_ext <<_ACEOF
7017 cat confdefs.h
>>conftest.
$ac_ext
7018 cat >>conftest.
$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7029 rm -f conftest.
$ac_objext conftest
$ac_exeext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7031 (eval $ac_link) 2>conftest.er1
7033 grep -v '^ *+' conftest.er1
>conftest.err
7035 cat conftest.err
>&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try
='test -z "$ac_c_werror_flag"
7039 || test ! -s conftest.err'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; } &&
7045 { ac_try
='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7052 lt_aix_libpath_sed
='
7053 /Import File Strings/,/^$/ {
7059 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7060 # Check for a 64-bit object if we didn't find anything.
7061 if test -z "$aix_libpath"; then
7062 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.
$ac_ext >&5
7069 rm -f conftest.err conftest.
$ac_objext \
7070 conftest
$ac_exeext conftest.
$ac_ext
7071 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7073 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7074 # Warning - without using the other run time loading flags,
7075 # -berok will link without error, but may produce a broken library.
7076 no_undefined_flag
=' ${wl}-bernotok'
7077 allow_undefined_flag
=' ${wl}-berok'
7078 # Exported symbols can be pulled into shared objects from archives
7079 whole_archive_flag_spec
='$convenience'
7080 archive_cmds_need_lc
=yes
7081 # This is similar to how AIX traditionally builds its shared libraries.
7082 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7088 if test "$host_cpu" = m68k
; then
7089 archive_cmds
='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7090 hardcode_libdir_flag_spec
='-L$libdir'
7091 hardcode_minus_L
=yes
7093 # see comment about different semantics on the GNU ld section
7098 export_dynamic_flag_spec
=-rdynamic
7101 cygwin
* | mingw
* | pw32
*)
7102 # When not using gcc, we currently assume that we are using
7103 # Microsoft Visual C++.
7104 # hardcode_libdir_flag_spec is actually meaningless, as there is
7105 # no search path for DLLs.
7106 hardcode_libdir_flag_spec
=' '
7107 allow_undefined_flag
=unsupported
7108 # Tell ltmain to make .lib files, not .a files.
7110 # Tell ltmain to make .dll files, not .so files.
7112 # FIXME: Setting linknames here is a bad hack.
7113 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7114 # The linker will automatically build a .lib file if we build a DLL.
7115 old_archive_from_new_cmds
='true'
7116 # FIXME: Should let the user specify the lib program.
7117 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
7118 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7119 enable_shared_with_static_runtimes
=yes
7122 darwin
* | rhapsody
*)
7124 rhapsody
* | darwin1.
[012])
7125 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7128 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7130 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7133 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7138 archive_cmds_need_lc
=no
7140 hardcode_automatic
=yes
7141 hardcode_shlibpath_var
=unsupported
7142 whole_archive_flag_spec
=''
7143 link_all_deplibs
=yes
7144 if test "$GCC" = yes ; then
7145 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 lt_cv_apple_cc_single_mod
=no
7149 if test -z "${LT_MULTI_MODULE}"; then
7150 # By default we will add the -single_module flag. You can override
7151 # by either setting the environment variable LT_MULTI_MODULE
7152 # non-empty at configure time, or by adding -multi-module to the
7154 echo "int foo(void){return 1;}" > conftest.c
7155 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7156 -dynamiclib ${wl}-single_module conftest.c
7157 if test -f libconftest.dylib
; then
7158 lt_cv_apple_cc_single_mod
=yes
7159 rm libconftest.dylib
7165 output_verbose_link_cmd
=echo
7166 if test "X$lt_cv_apple_cc_single_mod" = Xyes
; then
7167 archive_cmds
='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7168 archive_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7170 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7171 archive_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7173 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7174 module_expsym_cmds
='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7176 case $cc_basename in
7178 output_verbose_link_cmd
=echo
7179 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7180 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7182 archive_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7183 module_expsym_cmds
='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7193 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7194 hardcode_libdir_flag_spec
='-L$libdir'
7195 hardcode_shlibpath_var
=no
7202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7203 # support. Future versions do this automatically, but an explicit c++rt0.o
7204 # does not break anything, and helps significantly (at the cost of a little
7207 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7208 hardcode_libdir_flag_spec
='-R$libdir'
7210 hardcode_shlibpath_var
=no
7213 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7215 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7217 hardcode_minus_L
=yes
7218 hardcode_shlibpath_var
=no
7221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7222 freebsd
* | dragonfly
*)
7223 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7224 hardcode_libdir_flag_spec
='-R$libdir'
7226 hardcode_shlibpath_var
=no
7230 if test "$GCC" = yes; then
7231 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7233 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7235 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7236 hardcode_libdir_separator
=:
7239 # hardcode_minus_L: Not really in the search PATH,
7240 # but as the default location of the library.
7241 hardcode_minus_L
=yes
7242 export_dynamic_flag_spec
='${wl}-E'
7246 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7247 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7249 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7251 if test "$with_gnu_ld" = no
; then
7252 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7253 hardcode_libdir_flag_spec_ld
='+b $libdir'
7254 hardcode_libdir_separator
=:
7256 hardcode_direct_absolute
=yes
7257 export_dynamic_flag_spec
='${wl}-E'
7258 # hardcode_minus_L: Not really in the search PATH,
7259 # but as the default location of the library.
7260 hardcode_minus_L
=yes
7265 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7268 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7271 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7274 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7280 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7283 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7286 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7290 if test "$with_gnu_ld" = no
; then
7291 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7292 hardcode_libdir_separator
=:
7297 hardcode_shlibpath_var
=no
7301 hardcode_direct_absolute
=yes
7302 export_dynamic_flag_spec
='${wl}-E'
7304 # hardcode_minus_L: Not really in the search PATH,
7305 # but as the default location of the library.
7306 hardcode_minus_L
=yes
7312 irix5
* | irix6
* | nonstopux
*)
7313 if test "$GCC" = yes; then
7314 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7315 # Try to use the -exported_symbol ld option, if it does not
7316 # work, assume that -exports_file does not work either and
7317 # implicitly export all symbols.
7318 save_LDFLAGS
="$LDFLAGS"
7319 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7320 cat >conftest.
$ac_ext <<_ACEOF
7323 rm -f conftest.
$ac_objext conftest
$ac_exeext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7325 (eval $ac_link) 2>conftest.er1
7327 grep -v '^ *+' conftest.er1
>conftest.err
7329 cat conftest.err
>&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try
='test -z "$ac_c_werror_flag"
7333 || test ! -s conftest.err'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; } &&
7339 { ac_try
='test -s conftest$ac_exeext'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7345 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.
$ac_ext >&5
7352 rm -f conftest.err conftest.
$ac_objext \
7353 conftest
$ac_exeext conftest.
$ac_ext
7354 LDFLAGS
="$save_LDFLAGS"
7356 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7357 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7359 archive_cmds_need_lc
='no'
7360 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7361 hardcode_libdir_separator
=:
7363 link_all_deplibs
=yes
7367 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
7368 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7370 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7372 hardcode_libdir_flag_spec
='-R$libdir'
7374 hardcode_shlibpath_var
=no
7378 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7380 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7381 hardcode_libdir_separator
=:
7382 hardcode_shlibpath_var
=no
7390 hardcode_shlibpath_var
=no
7391 hardcode_direct_absolute
=yes
7392 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7393 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7394 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7395 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7396 export_dynamic_flag_spec
='${wl}-E'
7399 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7400 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7401 hardcode_libdir_flag_spec
='-R$libdir'
7404 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7405 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7412 hardcode_libdir_flag_spec
='-L$libdir'
7413 hardcode_minus_L
=yes
7414 allow_undefined_flag
=unsupported
7415 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7416 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7420 if test "$GCC" = yes; then
7421 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7422 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7424 allow_undefined_flag
=' -expect_unresolved \*'
7425 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7427 archive_cmds_need_lc
='no'
7428 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7429 hardcode_libdir_separator
=:
7432 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7433 if test "$GCC" = yes; then
7434 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7435 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7436 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7438 allow_undefined_flag
=' -expect_unresolved \*'
7439 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7440 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7441 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7443 # Both c and cxx compiler support -rpath directly
7444 hardcode_libdir_flag_spec
='-rpath $libdir'
7446 archive_cmds_need_lc
='no'
7447 hardcode_libdir_separator
=:
7451 no_undefined_flag
=' -z defs'
7452 if test "$GCC" = yes; then
7454 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7455 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7456 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7458 case `$CC -V 2>&1` in
7461 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7462 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7467 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7468 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7469 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7473 hardcode_libdir_flag_spec
='-R$libdir'
7474 hardcode_shlibpath_var
=no
7476 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7478 # The compiler driver will combine and reorder linker options,
7479 # but understands `-z linker_flag'. GCC discards it without `$wl',
7480 # but is careful enough not to reorder.
7481 # Supported since Solaris 2.6 (maybe 2.5.1?)
7482 if test "$GCC" = yes; then
7483 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7485 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
7489 link_all_deplibs
=yes
7493 if test "x$host_vendor" = xsequent
; then
7494 # Use $CC to link under sequent, because it throws in some extra .o
7495 # files that make .init and .fini sections work.
7496 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7498 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7500 hardcode_libdir_flag_spec
='-L$libdir'
7502 hardcode_minus_L
=yes
7503 hardcode_shlibpath_var
=no
7507 case $host_vendor in
7509 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7510 hardcode_direct
=yes # is this really true???
7513 ## LD is ld it makes a PLAMLIB
7514 ## CC just makes a GrossModule.
7515 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7516 reload_cmds
='$CC -r -o $output$reload_objs'
7520 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7521 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7524 runpath_var
='LD_RUN_PATH'
7525 hardcode_shlibpath_var
=no
7529 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7530 hardcode_shlibpath_var
=no
7531 export_dynamic_flag_spec
='-Bexport'
7535 if test -d /usr
/nec
; then
7536 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7537 hardcode_shlibpath_var
=no
7538 runpath_var
=LD_RUN_PATH
7539 hardcode_runpath_var
=yes
7544 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
7545 no_undefined_flag
='${wl}-z,text'
7546 archive_cmds_need_lc
=no
7547 hardcode_shlibpath_var
=no
7548 runpath_var
='LD_RUN_PATH'
7550 if test "$GCC" = yes; then
7551 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7552 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7554 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7555 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7559 sysv5
* | sco3.2v5
* | sco5v6
*)
7560 # Note: We can NOT use -z defs as we might desire, because we do not
7561 # link with -lc, and that would cause any symbols used from libc to
7562 # always be unresolved, which means just about no library would
7563 # ever link correctly. If we're not using GNU ld we use -z text
7564 # though, which does catch some bad symbols but isn't as heavy-handed
7566 no_undefined_flag
='${wl}-z,text'
7567 allow_undefined_flag
='${wl}-z,nodefs'
7568 archive_cmds_need_lc
=no
7569 hardcode_shlibpath_var
=no
7570 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
7571 hardcode_libdir_separator
=':'
7572 link_all_deplibs
=yes
7573 export_dynamic_flag_spec
='${wl}-Bexport'
7574 runpath_var
='LD_RUN_PATH'
7576 if test "$GCC" = yes; then
7577 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7578 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7580 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7581 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7586 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587 hardcode_libdir_flag_spec
='-L$libdir'
7588 hardcode_shlibpath_var
=no
7596 if test x
$host_vendor = xsni
; then
7598 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
7599 export_dynamic_flag_spec
='${wl}-Blargedynsym'
7605 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7606 echo "${ECHO_T}$ld_shlibs" >&6
7607 test "$ld_shlibs" = no
&& can_build_shared
=no
7609 with_gnu_ld
=$with_gnu_ld
7626 # Do we need to explicitly link libc?
7628 case "x$archive_cmds_need_lc" in
7630 # Assume -lc should be added
7631 archive_cmds_need_lc
=yes
7633 if test "$enable_shared" = yes && test "$GCC" = yes; then
7634 case $archive_cmds in
7636 # FIXME: we may have to deal with multi-command sequences.
7639 # Test whether the compiler implicitly links with -lc since on some
7640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7641 # to ld, don't add -lc before -lgcc.
7642 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7645 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648 (eval $ac_compile) 2>&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } 2>conftest.err
; then
7654 libobjs
=conftest.
$ac_objext
7656 wl
=$lt_prog_compiler_wl
7657 pic_flag
=$lt_prog_compiler_pic
7663 lt_save_allow_undefined_flag
=$allow_undefined_flag
7664 allow_undefined_flag
=
7665 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7666 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }
7671 archive_cmds_need_lc
=no
7673 archive_cmds_need_lc
=yes
7675 allow_undefined_flag
=$lt_save_allow_undefined_flag
7677 cat conftest.err
1>&5
7680 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7681 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7844 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7845 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7847 if test "$withGCC" = yes; then
7849 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
7850 *) lt_awk_arg
="/^libraries:/" ;;
7852 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7853 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
7854 # if the path contains ";" then we assume it to be the separator
7855 # otherwise default to the standard path separator (i.e. ":") - it is
7856 # assumed that no part of a normal pathname contains ";" but that should
7857 # okay in the real world where ";" in dirpaths is itself problematic.
7858 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7860 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7862 # Ok, now we have the path, separated by spaces, we can step through it
7863 # and add multilib dir if necessary.
7864 lt_tmp_lt_search_path_spec
=
7865 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7866 for lt_sys_path
in $lt_search_path_spec; do
7867 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7868 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7870 test -d "$lt_sys_path" && \
7871 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
7874 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7875 BEGIN {RS=" "; FS="/|\n";} {
7878 for (lt_i = NF; lt_i > 0; lt_i--) {
7879 if ($lt_i != "" && $lt_i != ".") {
7880 if ($lt_i == "..") {
7883 if (lt_count == 0) {
7884 lt_foo="/" $lt_i lt_foo;
7891 if (lt_foo != "") { lt_freq[lt_foo]++; }
7892 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7894 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
7896 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
7899 libname_spec
='lib$name'
7907 shlibpath_overrides_runpath
=unknown
7909 dynamic_linker
="$host_os ld.so"
7910 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
7911 need_lib_prefix
=unknown
7912 hardcode_into_libs
=no
7914 # when you set need_version to no, make sure it does not cause -set_version
7915 # flags to be left without arguments
7916 need_version
=unknown
7921 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
7922 shlibpath_var
=LIBPATH
7924 # AIX 3 has no versioning support, so we append a major version to the name.
7925 soname_spec
='${libname}${release}${shared_ext}$major'
7932 hardcode_into_libs
=yes
7933 if test "$host_cpu" = ia64
; then
7934 # AIX 5 supports IA64
7935 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7936 shlibpath_var
=LD_LIBRARY_PATH
7938 # With GCC up to 2.95.x, collect2 would create an import file
7939 # for dependence libraries. The import file would start with
7940 # the line `#! .'. This would cause the generated library to
7941 # depend on `.', always an invalid library. This was fixed in
7942 # development snapshots of GCC prior to 3.0.
7944 aix4 | aix4.
[01] | aix4.
[01].
*)
7945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7947 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
7954 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7955 # soname into executable. Probably we can add versioning support to
7956 # collect2, so additional links can be useful in future.
7957 if test "$aix_use_runtimelinking" = yes; then
7958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7959 # instead of lib<name>.a to let people know that these are not
7960 # typical AIX shared libraries.
7961 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7963 # We preserve .a as extension for shared libraries through AIX4.2
7964 # and later when we are not doing run time linking.
7965 library_names_spec
='${libname}${release}.a $libname.a'
7966 soname_spec
='${libname}${release}${shared_ext}$major'
7968 shlibpath_var
=LIBPATH
7973 if test "$host_cpu" = m68k
; then
7974 library_names_spec
='$libname.ixlibrary $libname.a'
7975 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7976 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
7983 library_names_spec
='${libname}${shared_ext}'
7984 dynamic_linker
="$host_os ld.so"
7985 shlibpath_var
=LIBRARY_PATH
7991 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992 soname_spec
='${libname}${release}${shared_ext}$major'
7993 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
7994 shlibpath_var
=LD_LIBRARY_PATH
7995 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7996 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
7997 # the default ld.so.conf also contains /usr/contrib/lib and
7998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7999 # libtool to hard-code these into programs
8002 cygwin
* | mingw
* | pw32
*)
8003 version_type
=windows
8008 case $withGCC,$host_os in
8009 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8010 library_names_spec
='$libname.dll.a'
8011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8012 postinstall_cmds
='base_file=`basename \${file}`~
8013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8014 dldir=$destdir/`dirname \$dlpath`~
8015 test -d \$dldir || mkdir -p \$dldir~
8016 $install_prog $dir/$dlname \$dldir/$dlname~
8017 chmod a+x \$dldir/$dlname~
8018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8021 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8022 dlpath=$dir/\$dldll~
8024 shlibpath_overrides_runpath
=yes
8028 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8029 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8030 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8033 # MinGW DLLs use traditional 'lib' prefix
8034 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8035 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8036 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
8037 # It is most probably a Windows format PATH printed by
8038 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8039 # path with ; separators, and with drive letters. We can handle the
8040 # drive letters (cygwin fileutils understands them), so leave them,
8041 # especially as we might pass files found there to a mingw objdump,
8042 # which wouldn't understand a cygwinified path. Ahh.
8043 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8045 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8049 # pw32 DLLs use 'pw' prefix rather than 'lib'
8050 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8056 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8059 dynamic_linker
='Win32 ld.exe'
8060 # FIXME: first we should search . and the directory the executable is in
8064 darwin
* | rhapsody
*)
8065 dynamic_linker
="$host_os dyld"
8069 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8070 soname_spec
='${libname}${release}${major}$shared_ext'
8071 shlibpath_overrides_runpath
=yes
8072 shlibpath_var
=DYLD_LIBRARY_PATH
8073 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8075 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
8076 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8084 soname_spec
='${libname}${release}${shared_ext}$major'
8085 shlibpath_var
=LD_LIBRARY_PATH
8092 freebsd
* | dragonfly
*)
8093 # DragonFly does not have aout. When/if they implement a new
8094 # versioning mechanism, adjust this.
8095 if test -x /usr
/bin
/objformat
; then
8096 objformat
=`/usr/bin/objformat`
8099 freebsd
[123]*) objformat
=aout
;;
8103 version_type
=freebsd-
$objformat
8104 case $version_type in
8106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8111 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8115 shlibpath_var
=LD_LIBRARY_PATH
8118 shlibpath_overrides_runpath
=yes
8120 freebsd3.
[01]* | freebsdelf3.
[01]*)
8121 shlibpath_overrides_runpath
=yes
8122 hardcode_into_libs
=yes
8124 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8125 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8126 shlibpath_overrides_runpath
=no
8127 hardcode_into_libs
=yes
8129 *) # from 4.6 on, and DragonFly
8130 shlibpath_overrides_runpath
=yes
8131 hardcode_into_libs
=yes
8140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8141 soname_spec
='${libname}${release}${shared_ext}$major'
8142 shlibpath_var
=LD_LIBRARY_PATH
8143 hardcode_into_libs
=yes
8146 hpux9
* | hpux10
* | hpux11
*)
8147 # Give a soname corresponding to the major version so that dld.sl refuses to
8148 # link against other versions.
8155 hardcode_into_libs
=yes
8156 dynamic_linker
="$host_os dld.so"
8157 shlibpath_var
=LD_LIBRARY_PATH
8158 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8159 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8160 soname_spec
='${libname}${release}${shared_ext}$major'
8161 if test "X$HPUX_IA64_MODE" = X32
; then
8162 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8164 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8166 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8170 hardcode_into_libs
=yes
8171 dynamic_linker
="$host_os dld.sl"
8172 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8173 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8175 soname_spec
='${libname}${release}${shared_ext}$major'
8176 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8177 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8181 dynamic_linker
="$host_os dld.sl"
8182 shlibpath_var
=SHLIB_PATH
8183 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8185 soname_spec
='${libname}${release}${shared_ext}$major'
8188 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8189 postinstall_cmds
='chmod 555 $lib'
8196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8197 soname_spec
='${libname}${release}${shared_ext}$major'
8198 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8199 shlibpath_var
=LD_LIBRARY_PATH
8200 shlibpath_overrides_runpath
=no
8201 hardcode_into_libs
=yes
8204 irix5
* | irix6
* | nonstopux
*)
8206 nonstopux
*) version_type
=nonstopux
;;
8208 if test "$lt_cv_prog_gnu_ld" = yes; then
8216 soname_spec
='${libname}${release}${shared_ext}$major'
8217 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8219 irix5
* | nonstopux
*)
8223 case $LD in # libtool.m4 will add one of these switches to LD
8224 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8225 libsuff
= shlibsuff
= libmagic
=32-bit;;
8226 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8227 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8228 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8229 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8230 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8234 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8235 shlibpath_overrides_runpath
=no
8236 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8237 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8238 hardcode_into_libs
=yes
8241 # No shared lib support for Linux oldld, aout, or coff.
8242 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8246 # This must be Linux ELF.
8247 linux
* | k
*bsd
*-gnu)
8251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8252 soname_spec
='${libname}${release}${shared_ext}$major'
8253 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8254 shlibpath_var
=LD_LIBRARY_PATH
8255 shlibpath_overrides_runpath
=no
8256 # Some binutils ld are patched to set DT_RUNPATH
8257 save_LDFLAGS
=$LDFLAGS
8259 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8260 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8261 cat >conftest.
$ac_ext <<_ACEOF
8264 cat confdefs.h
>>conftest.
$ac_ext
8265 cat >>conftest.
$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8276 rm -f conftest.
$ac_objext conftest
$ac_exeext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>conftest.er1
8280 grep -v '^ *+' conftest.er1
>conftest.err
8282 cat conftest.err
>&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try
='test -z "$ac_c_werror_flag"
8286 || test ! -s conftest.err'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try
='test -s conftest$ac_exeext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir"; then
8299 shlibpath_overrides_runpath
=yes
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.
$ac_ext >&5
8307 rm -f conftest.err conftest.
$ac_objext \
8308 conftest
$ac_exeext conftest.
$ac_ext
8309 LDFLAGS
=$save_LDFLAGS
8312 # This implies no fast_install, which is unacceptable.
8313 # Some rework will be needed to allow for fast_install
8314 # before this can be enabled.
8315 hardcode_into_libs
=yes
8317 # Append ld.so.conf contents to the search path
8318 if test -f /etc
/ld.so.conf
; then
8319 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8320 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
8323 # We used to test for /lib/ld.so.1 and disable shared libraries on
8324 # powerpc, because MkLinux only supported shared libraries with the
8325 # GNU dynamic linker. Since this was broken with cross compilers,
8326 # most powerpc-linux boxes support dynamic linking these days and
8327 # people can always --disable-shared, the test was removed, and we
8328 # assume the GNU/Linux dynamic linker is in use.
8329 dynamic_linker
='GNU/Linux ld.so'
8336 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8338 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8339 dynamic_linker
='NetBSD (a.out) ld.so'
8341 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8342 soname_spec
='${libname}${release}${shared_ext}$major'
8343 dynamic_linker
='NetBSD ld.elf_so'
8345 shlibpath_var
=LD_LIBRARY_PATH
8346 shlibpath_overrides_runpath
=yes
8347 hardcode_into_libs
=yes
8352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8353 shlibpath_var
=LD_LIBRARY_PATH
8354 shlibpath_overrides_runpath
=yes
8361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 soname_spec
='${libname}${release}${shared_ext}$major'
8363 shlibpath_var
=LD_LIBRARY_PATH
8364 shlibpath_overrides_runpath
=no
8365 hardcode_into_libs
=yes
8366 dynamic_linker
='ldqnx.so'
8371 sys_lib_dlsearch_path_spec
="/usr/lib"
8373 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8375 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
8376 *) need_version
=no
;;
8378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8379 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8380 shlibpath_var
=LD_LIBRARY_PATH
8381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8383 openbsd2.
[89] | openbsd2.
[89].
*)
8384 shlibpath_overrides_runpath
=no
8387 shlibpath_overrides_runpath
=yes
8391 shlibpath_overrides_runpath
=yes
8396 libname_spec
='$name'
8399 library_names_spec
='$libname${shared_ext} $libname.a'
8400 dynamic_linker
='OS/2 ld.exe'
8401 shlibpath_var
=LIBPATH
8404 osf3
* | osf4
* | osf5
*)
8408 soname_spec
='${libname}${release}${shared_ext}$major'
8409 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8410 shlibpath_var
=LD_LIBRARY_PATH
8411 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8412 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8423 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8424 soname_spec
='${libname}${release}${shared_ext}$major'
8425 shlibpath_var
=LD_LIBRARY_PATH
8426 shlibpath_overrides_runpath
=yes
8427 hardcode_into_libs
=yes
8428 # ldd complains unless libraries are executable
8429 postinstall_cmds
='chmod +x $lib'
8434 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8435 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8436 shlibpath_var
=LD_LIBRARY_PATH
8437 shlibpath_overrides_runpath
=yes
8438 if test "$with_gnu_ld" = yes; then
8446 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8447 soname_spec
='${libname}${release}${shared_ext}$major'
8448 shlibpath_var
=LD_LIBRARY_PATH
8449 case $host_vendor in
8451 shlibpath_overrides_runpath
=no
8453 runpath_var
=LD_RUN_PATH
8461 shlibpath_overrides_runpath
=no
8462 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8468 if test -d /usr
/nec
;then
8470 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8471 soname_spec
='$libname${shared_ext}.$major'
8472 shlibpath_var
=LD_LIBRARY_PATH
8476 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
8477 version_type
=freebsd-elf
8480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8481 soname_spec
='${libname}${release}${shared_ext}$major'
8482 shlibpath_var
=LD_LIBRARY_PATH
8483 shlibpath_overrides_runpath
=yes
8484 hardcode_into_libs
=yes
8485 if test "$with_gnu_ld" = yes; then
8486 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8488 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
8491 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
8495 sys_lib_dlsearch_path_spec
='/usr/lib'
8499 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8503 library_name_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8504 shlibpath_var
=LD_LIBRARY_PATH
8505 shlibpath_overrides_runpath
=no
8506 hardcode_into_libs
=yes
8511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8512 soname_spec
='${libname}${release}${shared_ext}$major'
8513 shlibpath_var
=LD_LIBRARY_PATH
8520 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8521 echo "${ECHO_T}$dynamic_linker" >&6
8522 test "$dynamic_linker" = no
&& can_build_shared
=no
8524 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
8525 if test "$GCC" = yes; then
8526 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8615 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8616 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8618 if test -n "$hardcode_libdir_flag_spec" ||
8619 test -n "$runpath_var" ||
8620 test "X$hardcode_automatic" = "Xyes" ; then
8622 # We can hardcode non-existent directories.
8623 if test "$hardcode_direct" != no
&&
8624 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8625 # have to relink, otherwise we might link with an installed library
8626 # when we should be linking with a yet-to-be-installed one
8627 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8628 test "$hardcode_minus_L" != no
; then
8629 # Linking always hardcodes the temporary library directory.
8630 hardcode_action
=relink
8632 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8633 hardcode_action
=immediate
8636 # We cannot hardcode anything, or else we can only hardcode existing
8638 hardcode_action
=unsupported
8640 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8641 echo "${ECHO_T}$hardcode_action" >&6
8643 if test "$hardcode_action" = relink ||
8644 test "$inherit_rpath" = yes; then
8645 # Fast installation is not supported
8646 enable_fast_install
=no
8647 elif test "$shlibpath_overrides_runpath" = yes ||
8648 test "$enable_shared" = no
; then
8649 # Fast installation is not necessary
8650 enable_fast_install
=needless
8658 if test "x$enable_dlopen" != xyes
; then
8659 enable_dlopen
=unknown
8660 enable_dlopen_self
=unknown
8661 enable_dlopen_self_static
=unknown
8668 lt_cv_dlopen
="load_add_on"
8670 lt_cv_dlopen_self
=yes
8674 lt_cv_dlopen
="LoadLibrary"
8679 lt_cv_dlopen
="dlopen"
8684 # if libdl is installed we need to link against it
8685 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8686 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8687 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 ac_check_lib_save_LIBS
=$LIBS
8692 cat >conftest.
$ac_ext <<_ACEOF
8695 cat confdefs.h
>>conftest.
$ac_ext
8696 cat >>conftest.
$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 /* Override any gcc2 internal prototype to avoid an error. */
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8714 rm -f conftest.
$ac_objext conftest
$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>conftest.er1
8718 grep -v '^ *+' conftest.er1
>conftest.err
8720 cat conftest.err
>&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try
='test -z "$ac_c_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try
='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_lib_dl_dlopen
=yes
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.
$ac_ext >&5
8741 ac_cv_lib_dl_dlopen
=no
8743 rm -f conftest.err conftest.
$ac_objext \
8744 conftest
$ac_exeext conftest.
$ac_ext
8745 LIBS
=$ac_check_lib_save_LIBS
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8748 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8749 if test $ac_cv_lib_dl_dlopen = yes; then
8750 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8755 lt_cv_dlopen_self
=yes
8762 echo "$as_me:$LINENO: checking for shl_load" >&5
8763 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8764 if test "${ac_cv_func_shl_load+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 cat >conftest.
$ac_ext <<_ACEOF
8770 cat confdefs.h
>>conftest.
$ac_ext
8771 cat >>conftest.
$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8775 #define shl_load innocuous_shl_load
8777 /* System header to define __stub macros and hopefully few prototypes,
8778 which can conflict with char shl_load (); below.
8779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8780 <limits.h> exists even on freestanding compilers. */
8783 # include <limits.h>
8785 # include <assert.h>
8790 /* Override any gcc2 internal prototype to avoid an error. */
8795 /* We use char because int might match the return type of a gcc2
8796 builtin and then its argument prototype would still apply. */
8798 /* The GNU C library defines this for functions which it implements
8799 to always fail with ENOSYS. Some functions are actually named
8800 something starting with __ and the normal name is an alias. */
8801 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8804 char (*f) () = shl_load;
8813 return f != shl_load;
8818 rm -f conftest.
$ac_objext conftest
$ac_exeext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820 (eval $ac_link) 2>conftest.er1
8822 grep -v '^ *+' conftest.er1
>conftest.err
8824 cat conftest.err
>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try
='test -z "$ac_c_werror_flag"
8828 || test ! -s conftest.err'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try
='test -s conftest$ac_exeext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 ac_cv_func_shl_load
=yes
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.
$ac_ext >&5
8845 ac_cv_func_shl_load
=no
8847 rm -f conftest.err conftest.
$ac_objext \
8848 conftest
$ac_exeext conftest.
$ac_ext
8850 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8851 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8852 if test $ac_cv_func_shl_load = yes; then
8853 lt_cv_dlopen
="shl_load"
8855 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8856 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8857 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 ac_check_lib_save_LIBS
=$LIBS
8862 cat >conftest.
$ac_ext <<_ACEOF
8865 cat confdefs.h
>>conftest.
$ac_ext
8866 cat >>conftest.
$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8869 /* Override any gcc2 internal prototype to avoid an error. */
8873 /* We use char because int might match the return type of a gcc2
8874 builtin and then its argument prototype would still apply. */
8884 rm -f conftest.
$ac_objext conftest
$ac_exeext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886 (eval $ac_link) 2>conftest.er1
8888 grep -v '^ *+' conftest.er1
>conftest.err
8890 cat conftest.err
>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try
='test -z "$ac_c_werror_flag"
8894 || test ! -s conftest.err'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; } &&
8900 { ac_try
='test -s conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_lib_dld_shl_load
=yes
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.
$ac_ext >&5
8911 ac_cv_lib_dld_shl_load
=no
8913 rm -f conftest.err conftest.
$ac_objext \
8914 conftest
$ac_exeext conftest.
$ac_ext
8915 LIBS
=$ac_check_lib_save_LIBS
8917 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8918 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8919 if test $ac_cv_lib_dld_shl_load = yes; then
8920 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
8922 echo "$as_me:$LINENO: checking for dlopen" >&5
8923 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8924 if test "${ac_cv_func_dlopen+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 cat >conftest.
$ac_ext <<_ACEOF
8930 cat confdefs.h
>>conftest.
$ac_ext
8931 cat >>conftest.
$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8935 #define dlopen innocuous_dlopen
8937 /* System header to define __stub macros and hopefully few prototypes,
8938 which can conflict with char dlopen (); below.
8939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8940 <limits.h> exists even on freestanding compilers. */
8943 # include <limits.h>
8945 # include <assert.h>
8950 /* Override any gcc2 internal prototype to avoid an error. */
8955 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8958 /* The GNU C library defines this for functions which it implements
8959 to always fail with ENOSYS. Some functions are actually named
8960 something starting with __ and the normal name is an alias. */
8961 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8964 char (*f) () = dlopen;
8978 rm -f conftest.
$ac_objext conftest
$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>conftest.er1
8982 grep -v '^ *+' conftest.er1
>conftest.err
8984 cat conftest.err
>&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try
='test -z "$ac_c_werror_flag"
8988 || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try
='test -s conftest$ac_exeext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 ac_cv_func_dlopen
=yes
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.
$ac_ext >&5
9005 ac_cv_func_dlopen
=no
9007 rm -f conftest.err conftest.
$ac_objext \
9008 conftest
$ac_exeext conftest.
$ac_ext
9010 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9011 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9012 if test $ac_cv_func_dlopen = yes; then
9013 lt_cv_dlopen
="dlopen"
9015 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 ac_check_lib_save_LIBS
=$LIBS
9022 cat >conftest.
$ac_ext <<_ACEOF
9025 cat confdefs.h
>>conftest.
$ac_ext
9026 cat >>conftest.
$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9029 /* Override any gcc2 internal prototype to avoid an error. */
9033 /* We use char because int might match the return type of a gcc2
9034 builtin and then its argument prototype would still apply. */
9044 rm -f conftest.
$ac_objext conftest
$ac_exeext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046 (eval $ac_link) 2>conftest.er1
9048 grep -v '^ *+' conftest.er1
>conftest.err
9050 cat conftest.err
>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try
='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try
='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_lib_dl_dlopen
=yes
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.
$ac_ext >&5
9071 ac_cv_lib_dl_dlopen
=no
9073 rm -f conftest.err conftest.
$ac_objext \
9074 conftest
$ac_exeext conftest.
$ac_ext
9075 LIBS
=$ac_check_lib_save_LIBS
9077 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9079 if test $ac_cv_lib_dl_dlopen = yes; then
9080 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
9082 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9083 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9084 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 ac_check_lib_save_LIBS
=$LIBS
9089 cat >conftest.
$ac_ext <<_ACEOF
9092 cat confdefs.h
>>conftest.
$ac_ext
9093 cat >>conftest.
$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9096 /* Override any gcc2 internal prototype to avoid an error. */
9100 /* We use char because int might match the return type of a gcc2
9101 builtin and then its argument prototype would still apply. */
9111 rm -f conftest.
$ac_objext conftest
$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>conftest.er1
9115 grep -v '^ *+' conftest.er1
>conftest.err
9117 cat conftest.err
>&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try
='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try
='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_lib_svld_dlopen
=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.
$ac_ext >&5
9138 ac_cv_lib_svld_dlopen
=no
9140 rm -f conftest.err conftest.
$ac_objext \
9141 conftest
$ac_exeext conftest.
$ac_ext
9142 LIBS
=$ac_check_lib_save_LIBS
9144 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9145 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9146 if test $ac_cv_lib_svld_dlopen = yes; then
9147 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9149 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9150 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9151 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 ac_check_lib_save_LIBS
=$LIBS
9156 cat >conftest.
$ac_ext <<_ACEOF
9159 cat confdefs.h
>>conftest.
$ac_ext
9160 cat >>conftest.
$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9163 /* Override any gcc2 internal prototype to avoid an error. */
9167 /* We use char because int might match the return type of a gcc2
9168 builtin and then its argument prototype would still apply. */
9178 rm -f conftest.
$ac_objext conftest
$ac_exeext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9180 (eval $ac_link) 2>conftest.er1
9182 grep -v '^ *+' conftest.er1
>conftest.err
9184 cat conftest.err
>&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try
='test -z "$ac_c_werror_flag"
9188 || test ! -s conftest.err'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; } &&
9194 { ac_try
='test -s conftest$ac_exeext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 ac_cv_lib_dld_dld_link
=yes
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.
$ac_ext >&5
9205 ac_cv_lib_dld_dld_link
=no
9207 rm -f conftest.err conftest.
$ac_objext \
9208 conftest
$ac_exeext conftest.
$ac_ext
9209 LIBS
=$ac_check_lib_save_LIBS
9211 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9212 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9213 if test $ac_cv_lib_dld_dld_link = yes; then
9214 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
9235 if test "x$lt_cv_dlopen" != xno
; then
9241 case $lt_cv_dlopen in
9243 save_CPPFLAGS
="$CPPFLAGS"
9244 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
9246 save_LDFLAGS
="$LDFLAGS"
9247 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
9250 LIBS
="$lt_cv_dlopen_libs $LIBS"
9252 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9253 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9254 if test "${lt_cv_dlopen_self+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 if test "$cross_compiling" = yes; then :
9258 lt_cv_dlopen_self
=cross
9260 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9261 lt_status
=$lt_dlunknown
9262 cat > conftest.
$ac_ext <<_LT_EOF
9263 #line 9263 "configure"
9264 #include "confdefs.h"
9273 # define LT_DLGLOBAL RTLD_GLOBAL
9276 # define LT_DLGLOBAL DL_GLOBAL
9278 # define LT_DLGLOBAL 0
9282 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9283 find out it does not work in some platform. */
9284 #ifndef LT_DLLAZY_OR_NOW
9286 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9289 # define LT_DLLAZY_OR_NOW DL_LAZY
9292 # define LT_DLLAZY_OR_NOW RTLD_NOW
9295 # define LT_DLLAZY_OR_NOW DL_NOW
9297 # define LT_DLLAZY_OR_NOW 0
9305 extern "C" void exit (int);
9308 void fnord() { int i=42;}
9311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9312 int status = $lt_dlunknown;
9316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9317 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9318 /* dlclose (self); */
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9331 (.
/conftest
; exit; ) >&5 2>/dev
/null
9334 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
9335 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
9336 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
9339 # compilation failed
9340 lt_cv_dlopen_self
=no
9347 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9348 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9350 if test "x$lt_cv_dlopen_self" = xyes
; then
9351 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
9352 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9353 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9354 if test "${lt_cv_dlopen_self_static+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 if test "$cross_compiling" = yes; then :
9358 lt_cv_dlopen_self_static
=cross
9360 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9361 lt_status
=$lt_dlunknown
9362 cat > conftest.
$ac_ext <<_LT_EOF
9363 #line 9363 "configure"
9364 #include "confdefs.h"
9373 # define LT_DLGLOBAL RTLD_GLOBAL
9376 # define LT_DLGLOBAL DL_GLOBAL
9378 # define LT_DLGLOBAL 0
9382 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9383 find out it does not work in some platform. */
9384 #ifndef LT_DLLAZY_OR_NOW
9386 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9389 # define LT_DLLAZY_OR_NOW DL_LAZY
9392 # define LT_DLLAZY_OR_NOW RTLD_NOW
9395 # define LT_DLLAZY_OR_NOW DL_NOW
9397 # define LT_DLLAZY_OR_NOW 0
9405 extern "C" void exit (int);
9408 void fnord() { int i=42;}
9411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9412 int status = $lt_dlunknown;
9416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9417 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9418 /* dlclose (self); */
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9431 (.
/conftest
; exit; ) >&5 2>/dev
/null
9434 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
9435 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
9436 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
9439 # compilation failed
9440 lt_cv_dlopen_self_static
=no
9447 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9448 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9451 CPPFLAGS
="$save_CPPFLAGS"
9452 LDFLAGS
="$save_LDFLAGS"
9457 case $lt_cv_dlopen_self in
9458 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9459 *) enable_dlopen_self
=unknown
;;
9462 case $lt_cv_dlopen_self_static in
9463 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9464 *) enable_dlopen_self_static
=unknown
;;
9486 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9487 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9488 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
9489 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9490 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9491 echo "$as_me:$LINENO: result: yes" >&5
9492 echo "${ECHO_T}yes" >&6
9494 # FIXME - insert some real tests, host_os isn't really good enough
9497 if test -n "$STRIP" ; then
9498 striplib
="$STRIP -x"
9499 old_striplib
="$STRIP -S"
9500 echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6
9503 echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6
9508 echo "$as_me:$LINENO: result: no" >&5
9509 echo "${ECHO_T}no" >&6
9525 # Report which library types will actually be built
9526 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9527 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9528 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9529 echo "${ECHO_T}$can_build_shared" >&6
9531 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9532 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9533 test "$can_build_shared" = "no" && enable_shared
=no
9535 # On AIX, shared libraries and static libraries use the same namespace, and
9536 # are all built from PIC.
9539 test "$enable_shared" = yes && enable_static
=no
9540 if test -n "$RANLIB"; then
9541 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9542 postinstall_cmds
='$RANLIB $lib'
9547 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9548 test "$enable_shared" = yes && enable_static
=no
9552 echo "$as_me:$LINENO: result: $enable_shared" >&5
9553 echo "${ECHO_T}$enable_shared" >&6
9555 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9556 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9557 # Make sure either enable_shared or enable_static is yes.
9558 test "$enable_shared" = yes || enable_static
=yes
9559 echo "$as_me:$LINENO: result: $enable_static" >&5
9560 echo "${ECHO_T}$enable_static" >&6
9567 ac_cpp
='$CPP $CPPFLAGS'
9568 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9569 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9570 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9586 ac_config_commands
="$ac_config_commands libtool"
9595 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9596 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9597 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9598 if test "${enable_maintainer_mode+set}" = set; then
9599 enableval
="$enable_maintainer_mode"
9600 USE_MAINTAINER_MODE
=$enableval
9602 USE_MAINTAINER_MODE
=no
9604 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9605 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9608 if test $USE_MAINTAINER_MODE = yes; then
9609 MAINTAINER_MODE_TRUE
=
9610 MAINTAINER_MODE_FALSE
='#'
9612 MAINTAINER_MODE_TRUE
='#'
9613 MAINTAINER_MODE_FALSE
=
9616 MAINT
=$MAINTAINER_MODE_TRUE
9621 for ac_header
in sys
/mman.h
9623 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9625 echo "$as_me:$LINENO: checking for $ac_header" >&5
9626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9633 # Is the header compilable?
9634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9636 cat >conftest.
$ac_ext <<_ACEOF
9639 cat confdefs.h
>>conftest.
$ac_ext
9640 cat >>conftest.
$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 $ac_includes_default
9643 #include <$ac_header>
9645 rm -f conftest.
$ac_objext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9647 (eval $ac_compile) 2>conftest.er1
9649 grep -v '^ *+' conftest.er1
>conftest.err
9651 cat conftest.err
>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try
='test -z "$ac_c_werror_flag"
9655 || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try
='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_header_compiler
=yes
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.
$ac_ext >&5
9672 ac_header_compiler
=no
9674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9676 echo "${ECHO_T}$ac_header_compiler" >&6
9678 # Is the header present?
9679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9681 cat >conftest.
$ac_ext <<_ACEOF
9684 cat confdefs.h
>>conftest.
$ac_ext
9685 cat >>conftest.
$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 #include <$ac_header>
9689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9690 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9692 grep -v '^ *+' conftest.er1
>conftest.err
9694 cat conftest.err
>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } >/dev
/null
; then
9697 if test -s conftest.err
; then
9698 ac_cpp_err
=$ac_c_preproc_warn_flag
9699 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9706 if test -z "$ac_cpp_err"; then
9707 ac_header_preproc
=yes
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.
$ac_ext >&5
9712 ac_header_preproc
=no
9714 rm -f conftest.err conftest.
$ac_ext
9715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9716 echo "${ECHO_T}$ac_header_preproc" >&6
9718 # So? What about this header?
9719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9725 ac_header_preproc
=yes
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9742 ## ------------------------------------------- ##
9743 ## Report this to http://gcc.gnu.org/bugs.html ##
9744 ## ------------------------------------------- ##
9747 sed "s/^/$as_me: WARNING: /" >&2
9750 echo "$as_me:$LINENO: checking for $ac_header" >&5
9751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 eval "$as_ac_Header=\$ac_header_preproc"
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9762 cat >>confdefs.h
<<_ACEOF
9763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9773 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9774 echo "$as_me:$LINENO: checking for $ac_func" >&5
9775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9776 if eval "test \"\${$as_ac_var+set}\" = set"; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 cat >conftest.
$ac_ext <<_ACEOF
9782 cat confdefs.h
>>conftest.
$ac_ext
9783 cat >>conftest.
$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9787 #define $ac_func innocuous_$ac_func
9789 /* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char $ac_func (); below.
9791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9792 <limits.h> exists even on freestanding compilers. */
9795 # include <limits.h>
9797 # include <assert.h>
9802 /* Override any gcc2 internal prototype to avoid an error. */
9807 /* We use char because int might match the return type of a gcc2
9808 builtin and then its argument prototype would still apply. */
9810 /* The GNU C library defines this for functions which it implements
9811 to always fail with ENOSYS. Some functions are actually named
9812 something starting with __ and the normal name is an alias. */
9813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9816 char (*f) () = $ac_func;
9825 return f != $ac_func;
9830 rm -f conftest.
$ac_objext conftest
$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832 (eval $ac_link) 2>conftest.er1
9834 grep -v '^ *+' conftest.er1
>conftest.err
9836 cat conftest.err
>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try
='test -z "$ac_c_werror_flag"
9840 || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try
='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 eval "$as_ac_var=yes"
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.
$ac_ext >&5
9857 eval "$as_ac_var=no"
9859 rm -f conftest.err conftest.
$ac_objext \
9860 conftest
$ac_exeext conftest.
$ac_ext
9862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9864 if test `eval echo '${'$as_ac_var'}'` = yes; then
9865 cat >>confdefs.h
<<_ACEOF
9866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9873 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9874 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9875 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9876 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9880 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9882 # Is the header compilable?
9883 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
9884 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
9885 cat >conftest.
$ac_ext <<_ACEOF
9888 cat confdefs.h
>>conftest.
$ac_ext
9889 cat >>conftest.
$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 $ac_includes_default
9892 #include <sys/mman.h>
9894 rm -f conftest.
$ac_objext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896 (eval $ac_compile) 2>conftest.er1
9898 grep -v '^ *+' conftest.er1
>conftest.err
9900 cat conftest.err
>&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try
='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try
='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_header_compiler
=yes
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.
$ac_ext >&5
9921 ac_header_compiler
=no
9923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9925 echo "${ECHO_T}$ac_header_compiler" >&6
9927 # Is the header present?
9928 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
9929 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
9930 cat >conftest.
$ac_ext <<_ACEOF
9933 cat confdefs.h
>>conftest.
$ac_ext
9934 cat >>conftest.
$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 #include <sys/mman.h>
9938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9941 grep -v '^ *+' conftest.er1
>conftest.err
9943 cat conftest.err
>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } >/dev
/null
; then
9946 if test -s conftest.err
; then
9947 ac_cpp_err
=$ac_c_preproc_warn_flag
9948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9955 if test -z "$ac_cpp_err"; then
9956 ac_header_preproc
=yes
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.
$ac_ext >&5
9961 ac_header_preproc
=no
9963 rm -f conftest.err conftest.
$ac_ext
9964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9965 echo "${ECHO_T}$ac_header_preproc" >&6
9967 # So? What about this header?
9968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9970 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
9971 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9972 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
9973 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
9974 ac_header_preproc
=yes
9977 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
9978 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
9980 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
9982 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
9983 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
9984 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
9986 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
9988 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
9991 ## ------------------------------------------- ##
9992 ## Report this to http://gcc.gnu.org/bugs.html ##
9993 ## ------------------------------------------- ##
9996 sed "s/^/$as_me: WARNING: /" >&2
9999 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10000 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10001 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 ac_cv_header_sys_mman_h
=$ac_header_preproc
10006 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10007 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10010 if test $ac_cv_header_sys_mman_h = yes; then
10011 libffi_header_sys_mman_h
=yes
10013 libffi_header_sys_mman_h
=no
10017 echo "$as_me:$LINENO: checking for mmap" >&5
10018 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10019 if test "${ac_cv_func_mmap+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 cat >conftest.
$ac_ext <<_ACEOF
10025 cat confdefs.h
>>conftest.
$ac_ext
10026 cat >>conftest.
$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10030 #define mmap innocuous_mmap
10032 /* System header to define __stub macros and hopefully few prototypes,
10033 which can conflict with char mmap (); below.
10034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035 <limits.h> exists even on freestanding compilers. */
10038 # include <limits.h>
10040 # include <assert.h>
10045 /* Override any gcc2 internal prototype to avoid an error. */
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10053 /* The GNU C library defines this for functions which it implements
10054 to always fail with ENOSYS. Some functions are actually named
10055 something starting with __ and the normal name is an alias. */
10056 #if defined (__stub_mmap) || defined (__stub___mmap)
10059 char (*f) () = mmap;
10073 rm -f conftest.
$ac_objext conftest
$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10077 grep -v '^ *+' conftest.er1
>conftest.err
10079 cat conftest.err
>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try
='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try
='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_func_mmap
=yes
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.
$ac_ext >&5
10102 rm -f conftest.err conftest.
$ac_objext \
10103 conftest
$ac_exeext conftest.
$ac_ext
10105 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10106 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10107 if test $ac_cv_func_mmap = yes; then
10108 libffi_func_mmap
=yes
10110 libffi_func_mmap
=no
10113 if test "$libffi_header_sys_mman_h" != yes \
10114 ||
test "$libffi_func_mmap" != yes; then
10115 ac_cv_func_mmap_file
=no
10116 ac_cv_func_mmap_dev_zero
=no
10117 ac_cv_func_mmap_anon
=no
10119 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10120 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10121 if test "${ac_cv_func_mmap_file+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 # Add a system to this blacklist if
10125 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10126 # memory area containing the same data that you'd get if you applied
10127 # read() to the same fd. The only system known to have a problem here
10128 # is VMS, where text files have record structure.
10131 ac_cv_func_mmap_file
=no
;;
10133 ac_cv_func_mmap_file
=yes;;
10136 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
10137 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
10138 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10139 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10140 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 # Add a system to this blacklist if it has mmap() but /dev/zero
10144 # does not exist, or if mmapping /dev/zero does not give anonymous
10145 # zeroed pages with both the following properties:
10146 # 1. If you map N consecutive pages in with one call, and then
10147 # unmap any subset of those pages, the pages that were not
10148 # explicitly unmapped remain accessible.
10149 # 2. If you map two adjacent blocks of memory and then unmap them
10150 # both at once, they must both go away.
10151 # Systems known to be in this category are Windows (all variants),
10154 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10155 ac_cv_func_mmap_dev_zero
=no
;;
10157 ac_cv_func_mmap_dev_zero
=yes;;
10160 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
10161 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
10163 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10164 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10165 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10166 if test "${ac_cv_decl_map_anon+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 cat >conftest.
$ac_ext <<_ACEOF
10172 cat confdefs.h
>>conftest.
$ac_ext
10173 cat >>conftest.
$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 #include <sys/types.h>
10176 #include <sys/mman.h>
10177 #include <unistd.h>
10179 #ifndef MAP_ANONYMOUS
10180 #define MAP_ANONYMOUS MAP_ANON
10186 int n = MAP_ANONYMOUS;
10191 rm -f conftest.
$ac_objext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>conftest.er1
10195 grep -v '^ *+' conftest.er1
>conftest.err
10197 cat conftest.err
>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try
='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try
='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_decl_map_anon
=yes
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.
$ac_ext >&5
10218 ac_cv_decl_map_anon
=no
10220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10222 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
10223 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
10225 if test $ac_cv_decl_map_anon = no
; then
10226 ac_cv_func_mmap_anon
=no
10228 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10229 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10230 if test "${ac_cv_func_mmap_anon+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10234 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10235 # doesn't give anonymous zeroed pages with the same properties listed
10236 # above for use of /dev/zero.
10237 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10239 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10240 ac_cv_func_mmap_anon
=no
;;
10242 ac_cv_func_mmap_anon
=yes;;
10245 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
10246 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
10250 if test $ac_cv_func_mmap_file = yes; then
10252 cat >>confdefs.h
<<\_ACEOF
10253 #define HAVE_MMAP_FILE 1
10257 if test $ac_cv_func_mmap_dev_zero = yes; then
10259 cat >>confdefs.h
<<\_ACEOF
10260 #define HAVE_MMAP_DEV_ZERO 1
10264 if test $ac_cv_func_mmap_anon = yes; then
10266 cat >>confdefs.h
<<\_ACEOF
10267 #define HAVE_MMAP_ANON 1
10275 if test -d $srcdir/testsuite
; then
10277 TESTSUBDIR_FALSE
='#'
10279 TESTSUBDIR_TRUE
='#'
10284 TARGETDIR
="unknown"
10287 TARGET
=ALPHA
; TARGETDIR
=alpha
;
10288 # Support 128-bit long double, changable via command-line switch.
10289 HAVE_LONG_DOUBLE
='defined(__LONG_DOUBLE_128__)'
10293 TARGET
=ARM
; TARGETDIR
=arm
10297 TARGET
=X86_64
; TARGETDIR
=x86
10301 TARGET
=LIBFFI_CRIS
; TARGETDIR
=cris
10305 TARGET
=FRV
; TARGETDIR
=frv
10308 hppa
*-*-linux* | parisc
*-*-linux*)
10309 TARGET
=PA_LINUX
; TARGETDIR
=pa
10312 TARGET
=PA64_HPUX
; TARGETDIR
=pa
10315 TARGET
=PA_HPUX
; TARGETDIR
=pa
10318 i?
86-win32* | i?
86-*-cygwin* | i?
86-*-mingw*)
10319 TARGET
=X86_WIN32
; TARGETDIR
=x86
10322 TARGET
=X86_DARWIN
; TARGETDIR
=x86
10324 i?
86-*-solaris2.1
[0-9]*)
10325 TARGET
=X86_64
; TARGETDIR
=x86
10328 TARGET
=X86
; TARGETDIR
=x86
10332 TARGET
=IA64
; TARGETDIR
=ia64
10336 TARGET
=M32R
; TARGETDIR
=m32r
10340 TARGET
=M68K
; TARGETDIR
=m68k
10343 mips-sgi-irix5.
* | mips-sgi-irix6.
*)
10344 TARGET
=MIPS
; TARGETDIR
=mips
10347 TARGET
=MIPS
; TARGETDIR
=mips
10350 powerpc
*-*-linux* | powerpc-
*-sysv*)
10351 TARGET
=POWERPC
; TARGETDIR
=powerpc
10354 TARGET
=POWERPC
; TARGETDIR
=powerpc
10357 TARGET
=POWERPC_DARWIN
; TARGETDIR
=powerpc
10359 powerpc-
*-aix* | rs6000-
*-aix*)
10360 TARGET
=POWERPC_AIX
; TARGETDIR
=powerpc
10362 powerpc-
*-freebsd*)
10363 TARGET
=POWERPC_FREEBSD
; TARGETDIR
=powerpc
10366 TARGET
=POWERPC
; TARGETDIR
=powerpc
10369 s390-
*-* | s390x-
*-*)
10370 TARGET
=S390
; TARGETDIR
=s390
10373 sh-
*-* | sh
[34]*-*-*)
10374 TARGET
=SH
; TARGETDIR
=sh
10376 sh64-
*-* | sh5
*-*-*)
10377 TARGET
=SH64
; TARGETDIR
=sh64
10381 TARGET
=SPARC
; TARGETDIR
=sparc
10385 TARGET
=X86_DARWIN
; TARGETDIR
=x86
10387 x86_64-
*-cygwin* | x86_64-
*-mingw*)
10390 TARGET
=X86_64
; TARGETDIR
=x86
10396 if test $TARGETDIR = unknown
; then
10397 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
10398 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
10399 { (exit 1); exit 1; }; }
10404 if test x
$TARGET = xMIPS
; then
10414 if test x
$TARGET = xSPARC
; then
10424 if test x
$TARGET = xX86
; then
10434 if test x
$TARGET = xX86_WIN32
; then
10436 X86_WIN32_FALSE
='#'
10444 if test x
$TARGET = xX86_DARWIN
; then
10446 X86_DARWIN_FALSE
='#'
10448 X86_DARWIN_TRUE
='#'
10454 if test x
$TARGET = xALPHA
; then
10464 if test x
$TARGET = xIA64
; then
10474 if test x
$TARGET = xM32R
; then
10484 if test x
$TARGET = xM68K
; then
10494 if test x
$TARGET = xPOWERPC
; then
10504 if test x
$TARGET = xPOWERPC_AIX
; then
10506 POWERPC_AIX_FALSE
='#'
10508 POWERPC_AIX_TRUE
='#'
10514 if test x
$TARGET = xPOWERPC_DARWIN
; then
10515 POWERPC_DARWIN_TRUE
=
10516 POWERPC_DARWIN_FALSE
='#'
10518 POWERPC_DARWIN_TRUE
='#'
10519 POWERPC_DARWIN_FALSE
=
10524 if test x
$TARGET = xPOWERPC_FREEBSD
; then
10525 POWERPC_FREEBSD_TRUE
=
10526 POWERPC_FREEBSD_FALSE
='#'
10528 POWERPC_FREEBSD_TRUE
='#'
10529 POWERPC_FREEBSD_FALSE
=
10534 if test x
$TARGET = xARM
; then
10544 if test x
$TARGET = xLIBFFI_CRIS
; then
10546 LIBFFI_CRIS_FALSE
='#'
10548 LIBFFI_CRIS_TRUE
='#'
10554 if test x
$TARGET = xFRV
; then
10564 if test x
$TARGET = xS390
; then
10574 if test x
$TARGET = xX86_64
; then
10584 if test x
$TARGET = xSH
; then
10594 if test x
$TARGET = xSH64
; then
10604 if test x
$TARGET = xPA_LINUX
; then
10614 if test x
$TARGET = xPA_HPUX
; then
10624 if test x
$TARGET = xPA64_HPUX
; then
10626 PA64_HPUX_FALSE
='#'
10633 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10635 if test "${ac_cv_header_stdc+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 cat >conftest.
$ac_ext <<_ACEOF
10641 cat confdefs.h
>>conftest.
$ac_ext
10642 cat >>conftest.
$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10644 #include <stdlib.h>
10645 #include <stdarg.h>
10646 #include <string.h>
10657 rm -f conftest.
$ac_objext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>conftest.er1
10661 grep -v '^ *+' conftest.er1
>conftest.err
10663 cat conftest.err
>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try
='test -z "$ac_c_werror_flag"
10667 || test ! -s conftest.err'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; } &&
10673 { ac_try
='test -s conftest.$ac_objext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_cv_header_stdc
=yes
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.
$ac_ext >&5
10684 ac_cv_header_stdc
=no
10686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10688 if test $ac_cv_header_stdc = yes; then
10689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10690 cat >conftest.
$ac_ext <<_ACEOF
10693 cat confdefs.h
>>conftest.
$ac_ext
10694 cat >>conftest.
$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 #include <string.h>
10699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10700 $EGREP "memchr" >/dev
/null
2>&1; then
10703 ac_cv_header_stdc
=no
10709 if test $ac_cv_header_stdc = yes; then
10710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10711 cat >conftest.
$ac_ext <<_ACEOF
10714 cat confdefs.h
>>conftest.
$ac_ext
10715 cat >>conftest.
$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <stdlib.h>
10720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10721 $EGREP "free" >/dev
/null
2>&1; then
10724 ac_cv_header_stdc
=no
10730 if test $ac_cv_header_stdc = yes; then
10731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10732 if test "$cross_compiling" = yes; then
10735 cat >conftest.
$ac_ext <<_ACEOF
10738 cat confdefs.h
>>conftest.
$ac_ext
10739 cat >>conftest.
$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10742 #if ((' ' & 0x0FF) == 0x020)
10743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10746 # define ISLOWER(c) \
10747 (('a' <= (c) && (c) <= 'i') \
10748 || ('j' <= (c) && (c) <= 'r') \
10749 || ('s' <= (c) && (c) <= 'z'))
10750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10758 for (i = 0; i < 256; i++)
10759 if (XOR (islower (i), ISLOWER (i))
10760 || toupper (i) != TOUPPER (i))
10765 rm -f conftest
$ac_exeext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10767 (eval $ac_link) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10778 echo "$as_me: program exited with status $ac_status" >&5
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.
$ac_ext >&5
10782 ( exit $ac_status )
10783 ac_cv_header_stdc
=no
10785 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10789 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10790 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10791 if test $ac_cv_header_stdc = yes; then
10793 cat >>confdefs.h
<<\_ACEOF
10794 #define STDC_HEADERS 1
10800 for ac_func
in memcpy
10802 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10803 echo "$as_me:$LINENO: checking for $ac_func" >&5
10804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10805 if eval "test \"\${$as_ac_var+set}\" = set"; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 cat >conftest.
$ac_ext <<_ACEOF
10811 cat confdefs.h
>>conftest.
$ac_ext
10812 cat >>conftest.
$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10816 #define $ac_func innocuous_$ac_func
10818 /* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char $ac_func (); below.
10820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821 <limits.h> exists even on freestanding compilers. */
10824 # include <limits.h>
10826 # include <assert.h>
10831 /* Override any gcc2 internal prototype to avoid an error. */
10836 /* We use char because int might match the return type of a gcc2
10837 builtin and then its argument prototype would still apply. */
10839 /* The GNU C library defines this for functions which it implements
10840 to always fail with ENOSYS. Some functions are actually named
10841 something starting with __ and the normal name is an alias. */
10842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10845 char (*f) () = $ac_func;
10854 return f != $ac_func;
10859 rm -f conftest.
$ac_objext conftest
$ac_exeext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10861 (eval $ac_link) 2>conftest.er1
10863 grep -v '^ *+' conftest.er1
>conftest.err
10865 cat conftest.err
>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try
='test -z "$ac_c_werror_flag"
10869 || test ! -s conftest.err'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try
='test -s conftest$ac_exeext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 eval "$as_ac_var=yes"
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.
$ac_ext >&5
10886 eval "$as_ac_var=no"
10888 rm -f conftest.err conftest.
$ac_objext \
10889 conftest
$ac_exeext conftest.
$ac_ext
10891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10893 if test `eval echo '${'$as_ac_var'}'` = yes; then
10894 cat >>confdefs.h
<<_ACEOF
10895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10902 # for constant arguments. Useless!
10903 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10904 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10905 if test "${ac_cv_working_alloca_h+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 cat >conftest.
$ac_ext <<_ACEOF
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 #include <alloca.h>
10918 char *p = (char *) alloca (2 * sizeof (int));
10923 rm -f conftest.
$ac_objext conftest
$ac_exeext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925 (eval $ac_link) 2>conftest.er1
10927 grep -v '^ *+' conftest.er1
>conftest.err
10929 cat conftest.err
>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try
='test -z "$ac_c_werror_flag"
10933 || test ! -s conftest.err'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try
='test -s conftest$ac_exeext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_cv_working_alloca_h
=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.
$ac_ext >&5
10950 ac_cv_working_alloca_h
=no
10952 rm -f conftest.err conftest.
$ac_objext \
10953 conftest
$ac_exeext conftest.
$ac_ext
10955 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10956 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10957 if test $ac_cv_working_alloca_h = yes; then
10959 cat >>confdefs.h
<<\_ACEOF
10960 #define HAVE_ALLOCA_H 1
10965 echo "$as_me:$LINENO: checking for alloca" >&5
10966 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10967 if test "${ac_cv_func_alloca_works+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 cat >conftest.
$ac_ext <<_ACEOF
10973 cat confdefs.h
>>conftest.
$ac_ext
10974 cat >>conftest.
$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10977 # define alloca __builtin_alloca
10980 # include <malloc.h>
10981 # define alloca _alloca
10984 # include <alloca.h>
10989 # ifndef alloca /* predefined by HP cc +Olibcalls */
11000 char *p = (char *) alloca (1);
11005 rm -f conftest.
$ac_objext conftest
$ac_exeext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007 (eval $ac_link) 2>conftest.er1
11009 grep -v '^ *+' conftest.er1
>conftest.err
11011 cat conftest.err
>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try
='test -z "$ac_c_werror_flag"
11015 || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try
='test -s conftest$ac_exeext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_cv_func_alloca_works
=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.
$ac_ext >&5
11032 ac_cv_func_alloca_works
=no
11034 rm -f conftest.err conftest.
$ac_objext \
11035 conftest
$ac_exeext conftest.
$ac_ext
11037 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11038 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11040 if test $ac_cv_func_alloca_works = yes; then
11042 cat >>confdefs.h
<<\_ACEOF
11043 #define HAVE_ALLOCA 1
11047 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11048 # that cause trouble. Some versions do not even contain alloca or
11049 # contain a buggy version. If you still want to use their alloca,
11050 # use ar to extract alloca.o from them instead of compiling alloca.c.
11052 ALLOCA
=alloca.
$ac_objext
11054 cat >>confdefs.h
<<\_ACEOF
11059 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11060 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11061 if test "${ac_cv_os_cray+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 cat >conftest.
$ac_ext <<_ACEOF
11067 cat confdefs.h
>>conftest.
$ac_ext
11068 cat >>conftest.
$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #if defined(CRAY) && ! defined(CRAY2)
11077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11078 $EGREP "webecray" >/dev
/null
2>&1; then
11086 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11087 echo "${ECHO_T}$ac_cv_os_cray" >&6
11088 if test $ac_cv_os_cray = yes; then
11089 for ac_func
in _getb67 GETB67 getb67
; do
11090 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11091 echo "$as_me:$LINENO: checking for $ac_func" >&5
11092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11093 if eval "test \"\${$as_ac_var+set}\" = set"; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 cat >conftest.
$ac_ext <<_ACEOF
11099 cat confdefs.h
>>conftest.
$ac_ext
11100 cat >>conftest.
$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11104 #define $ac_func innocuous_$ac_func
11106 /* System header to define __stub macros and hopefully few prototypes,
11107 which can conflict with char $ac_func (); below.
11108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11109 <limits.h> exists even on freestanding compilers. */
11112 # include <limits.h>
11114 # include <assert.h>
11119 /* Override any gcc2 internal prototype to avoid an error. */
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11127 /* The GNU C library defines this for functions which it implements
11128 to always fail with ENOSYS. Some functions are actually named
11129 something starting with __ and the normal name is an alias. */
11130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11133 char (*f) () = $ac_func;
11142 return f != $ac_func;
11147 rm -f conftest.
$ac_objext conftest
$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>conftest.er1
11151 grep -v '^ *+' conftest.er1
>conftest.err
11153 cat conftest.err
>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try
='test -z "$ac_c_werror_flag"
11157 || test ! -s conftest.err'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try
='test -s conftest$ac_exeext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 eval "$as_ac_var=yes"
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.
$ac_ext >&5
11174 eval "$as_ac_var=no"
11176 rm -f conftest.err conftest.
$ac_objext \
11177 conftest
$ac_exeext conftest.
$ac_ext
11179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11181 if test `eval echo '${'$as_ac_var'}'` = yes; then
11183 cat >>confdefs.h
<<_ACEOF
11184 #define CRAY_STACKSEG_END $ac_func
11193 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11194 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11195 if test "${ac_cv_c_stack_direction+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 if test "$cross_compiling" = yes; then
11199 ac_cv_c_stack_direction
=0
11201 cat >conftest.
$ac_ext <<_ACEOF
11204 cat confdefs.h
>>conftest.
$ac_ext
11205 cat >>conftest.
$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11208 find_stack_direction ()
11210 static char *addr = 0;
11215 return find_stack_direction ();
11218 return (&dummy > addr) ? 1 : -1;
11224 exit (find_stack_direction () < 0);
11227 rm -f conftest
$ac_exeext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_cv_c_stack_direction
=1
11240 echo "$as_me: program exited with status $ac_status" >&5
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.
$ac_ext >&5
11244 ( exit $ac_status )
11245 ac_cv_c_stack_direction
=-1
11247 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11250 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11251 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11253 cat >>confdefs.h
<<_ACEOF
11254 #define STACK_DIRECTION $ac_cv_c_stack_direction
11261 echo "$as_me:$LINENO: checking for double" >&5
11262 echo $ECHO_N "checking for double... $ECHO_C" >&6
11263 if test "${ac_cv_type_double+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 cat >conftest.
$ac_ext <<_ACEOF
11269 cat confdefs.h
>>conftest.
$ac_ext
11270 cat >>conftest.
$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 $ac_includes_default
11278 if (sizeof (double))
11284 rm -f conftest.
$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>conftest.er1
11288 grep -v '^ *+' conftest.er1
>conftest.err
11290 cat conftest.err
>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try
='test -z "$ac_c_werror_flag"
11294 || test ! -s conftest.err'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try
='test -s conftest.$ac_objext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_cv_type_double
=yes
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.
$ac_ext >&5
11311 ac_cv_type_double
=no
11313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11315 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11316 echo "${ECHO_T}$ac_cv_type_double" >&6
11318 echo "$as_me:$LINENO: checking size of double" >&5
11319 echo $ECHO_N "checking size of double... $ECHO_C" >&6
11320 if test "${ac_cv_sizeof_double+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 if test "$ac_cv_type_double" = yes; then
11324 # The cast to unsigned long works around a bug in the HP C Compiler
11325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11327 # This bug is HP SR number 8606223364.
11328 if test "$cross_compiling" = yes; then
11329 # Depending upon the size, compute the lo and hi bounds.
11330 cat >conftest.
$ac_ext <<_ACEOF
11333 cat confdefs.h
>>conftest.
$ac_ext
11334 cat >>conftest.
$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11340 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
11347 rm -f conftest.
$ac_objext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11349 (eval $ac_compile) 2>conftest.er1
11351 grep -v '^ *+' conftest.er1
>conftest.err
11353 cat conftest.err
>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try
='test -z "$ac_c_werror_flag"
11357 || test ! -s conftest.err'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; } &&
11363 { ac_try
='test -s conftest.$ac_objext'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11371 cat >conftest.
$ac_ext <<_ACEOF
11374 cat confdefs.h
>>conftest.
$ac_ext
11375 cat >>conftest.
$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 $ac_includes_default
11381 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11388 rm -f conftest.
$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>conftest.er1
11392 grep -v '^ *+' conftest.er1
>conftest.err
11394 cat conftest.err
>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try
='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try
='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_hi
=$ac_mid; break
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.
$ac_ext >&5
11415 ac_lo
=`expr $ac_mid + 1`
11416 if test $ac_lo -le $ac_mid; then
11420 ac_mid
=`expr 2 '*' $ac_mid + 1`
11422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.
$ac_ext >&5
11428 cat >conftest.
$ac_ext <<_ACEOF
11431 cat confdefs.h
>>conftest.
$ac_ext
11432 cat >>conftest.
$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 $ac_includes_default
11438 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
11445 rm -f conftest.
$ac_objext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11447 (eval $ac_compile) 2>conftest.er1
11449 grep -v '^ *+' conftest.er1
>conftest.err
11451 cat conftest.err
>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try
='test -z "$ac_c_werror_flag"
11455 || test ! -s conftest.err'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try
='test -s conftest.$ac_objext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11469 cat >conftest.
$ac_ext <<_ACEOF
11472 cat confdefs.h
>>conftest.
$ac_ext
11473 cat >>conftest.
$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 $ac_includes_default
11479 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
11486 rm -f conftest.
$ac_objext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488 (eval $ac_compile) 2>conftest.er1
11490 grep -v '^ *+' conftest.er1
>conftest.err
11492 cat conftest.err
>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try
='test -z "$ac_c_werror_flag"
11496 || test ! -s conftest.err'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try
='test -s conftest.$ac_objext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_lo
=$ac_mid; break
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.
$ac_ext >&5
11513 ac_hi
=`expr '(' $ac_mid ')' - 1`
11514 if test $ac_mid -le $ac_hi; then
11518 ac_mid
=`expr 2 '*' $ac_mid`
11520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.
$ac_ext >&5
11528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11531 # Binary search between lo and hi bounds.
11532 while test "x$ac_lo" != "x$ac_hi"; do
11533 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11534 cat >conftest.
$ac_ext <<_ACEOF
11537 cat confdefs.h
>>conftest.
$ac_ext
11538 cat >>conftest.
$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11540 $ac_includes_default
11544 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11551 rm -f conftest.
$ac_objext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553 (eval $ac_compile) 2>conftest.er1
11555 grep -v '^ *+' conftest.er1
>conftest.err
11557 cat conftest.err
>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try
='test -z "$ac_c_werror_flag"
11561 || test ! -s conftest.err'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try
='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.
$ac_ext >&5
11578 ac_lo
=`expr '(' $ac_mid ')' + 1`
11580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11583 ?
*) ac_cv_sizeof_double
=$ac_lo;;
11584 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11585 See \`config.log' for more details." >&5
11586 echo "$as_me: error: cannot compute sizeof (double), 77
11587 See \`config.log' for more details." >&2;}
11588 { (exit 1); exit 1; }; } ;;
11591 if test "$cross_compiling" = yes; then
11592 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11593 See \`config.log' for more details." >&5
11594 echo "$as_me: error: cannot run test program while cross compiling
11595 See \`config.log' for more details." >&2;}
11596 { (exit 1); exit 1; }; }
11598 cat >conftest.
$ac_ext <<_ACEOF
11601 cat confdefs.h
>>conftest.
$ac_ext
11602 cat >>conftest.
$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 long longval () { return (long) (sizeof (double)); }
11606 unsigned long ulongval () { return (long) (sizeof (double)); }
11608 #include <stdlib.h>
11613 FILE *f = fopen ("conftest.val", "w");
11616 if (((long) (sizeof (double))) < 0)
11618 long i = longval ();
11619 if (i != ((long) (sizeof (double))))
11621 fprintf (f, "%ld\n", i);
11625 unsigned long i = ulongval ();
11626 if (i != ((long) (sizeof (double))))
11628 fprintf (f, "%lu\n", i);
11630 exit (ferror (f) || fclose (f) != 0);
11636 rm -f conftest
$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_cv_sizeof_double
=`cat conftest.val`
11649 echo "$as_me: program exited with status $ac_status" >&5
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.
$ac_ext >&5
11653 ( exit $ac_status )
11654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11655 See \`config.log' for more details." >&5
11656 echo "$as_me: error: cannot compute sizeof (double), 77
11657 See \`config.log' for more details." >&2;}
11658 { (exit 1); exit 1; }; }
11660 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11665 ac_cv_sizeof_double
=0
11668 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11669 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
11670 cat >>confdefs.h
<<_ACEOF
11671 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11675 echo "$as_me:$LINENO: checking for long double" >&5
11676 echo $ECHO_N "checking for long double... $ECHO_C" >&6
11677 if test "${ac_cv_type_long_double+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11680 cat >conftest.
$ac_ext <<_ACEOF
11683 cat confdefs.h
>>conftest.
$ac_ext
11684 cat >>conftest.
$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11690 if ((long double *) 0)
11692 if (sizeof (long double))
11698 rm -f conftest.
$ac_objext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700 (eval $ac_compile) 2>conftest.er1
11702 grep -v '^ *+' conftest.er1
>conftest.err
11704 cat conftest.err
>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try
='test -z "$ac_c_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try
='test -s conftest.$ac_objext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_type_long_double
=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.
$ac_ext >&5
11725 ac_cv_type_long_double
=no
11727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11729 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11730 echo "${ECHO_T}$ac_cv_type_long_double" >&6
11732 echo "$as_me:$LINENO: checking size of long double" >&5
11733 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
11734 if test "${ac_cv_sizeof_long_double+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 if test "$ac_cv_type_long_double" = yes; then
11738 # The cast to unsigned long works around a bug in the HP C Compiler
11739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11741 # This bug is HP SR number 8606223364.
11742 if test "$cross_compiling" = yes; then
11743 # Depending upon the size, compute the lo and hi bounds.
11744 cat >conftest.
$ac_ext <<_ACEOF
11747 cat confdefs.h
>>conftest.
$ac_ext
11748 cat >>conftest.
$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 $ac_includes_default
11754 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
11761 rm -f conftest.
$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>conftest.er1
11765 grep -v '^ *+' conftest.er1
>conftest.err
11767 cat conftest.err
>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try
='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try
='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11785 cat >conftest.
$ac_ext <<_ACEOF
11788 cat confdefs.h
>>conftest.
$ac_ext
11789 cat >>conftest.
$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 $ac_includes_default
11795 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11802 rm -f conftest.
$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>conftest.er1
11806 grep -v '^ *+' conftest.er1
>conftest.err
11808 cat conftest.err
>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try
='test -z "$ac_c_werror_flag"
11812 || test ! -s conftest.err'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try
='test -s conftest.$ac_objext'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 ac_hi
=$ac_mid; break
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.
$ac_ext >&5
11829 ac_lo
=`expr $ac_mid + 1`
11830 if test $ac_lo -le $ac_mid; then
11834 ac_mid
=`expr 2 '*' $ac_mid + 1`
11836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.
$ac_ext >&5
11842 cat >conftest.
$ac_ext <<_ACEOF
11845 cat confdefs.h
>>conftest.
$ac_ext
11846 cat >>conftest.
$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 $ac_includes_default
11852 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
11859 rm -f conftest.
$ac_objext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11861 (eval $ac_compile) 2>conftest.er1
11863 grep -v '^ *+' conftest.er1
>conftest.err
11865 cat conftest.err
>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try
='test -z "$ac_c_werror_flag"
11869 || test ! -s conftest.err'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try
='test -s conftest.$ac_objext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11883 cat >conftest.
$ac_ext <<_ACEOF
11886 cat confdefs.h
>>conftest.
$ac_ext
11887 cat >>conftest.
$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 $ac_includes_default
11893 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
11900 rm -f conftest.
$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11904 grep -v '^ *+' conftest.er1
>conftest.err
11906 cat conftest.err
>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try
='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try
='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_lo
=$ac_mid; break
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.
$ac_ext >&5
11927 ac_hi
=`expr '(' $ac_mid ')' - 1`
11928 if test $ac_mid -le $ac_hi; then
11932 ac_mid
=`expr 2 '*' $ac_mid`
11934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.
$ac_ext >&5
11942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11945 # Binary search between lo and hi bounds.
11946 while test "x$ac_lo" != "x$ac_hi"; do
11947 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11948 cat >conftest.
$ac_ext <<_ACEOF
11951 cat confdefs.h
>>conftest.
$ac_ext
11952 cat >>conftest.
$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 $ac_includes_default
11958 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11965 rm -f conftest.
$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11969 grep -v '^ *+' conftest.er1
>conftest.err
11971 cat conftest.err
>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try
='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try
='test -s conftest.$ac_objext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.
$ac_ext >&5
11992 ac_lo
=`expr '(' $ac_mid ')' + 1`
11994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11997 ?
*) ac_cv_sizeof_long_double
=$ac_lo;;
11998 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
11999 See \`config.log' for more details." >&5
12000 echo "$as_me: error: cannot compute sizeof (long double), 77
12001 See \`config.log' for more details." >&2;}
12002 { (exit 1); exit 1; }; } ;;
12005 if test "$cross_compiling" = yes; then
12006 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12007 See \`config.log' for more details." >&5
12008 echo "$as_me: error: cannot run test program while cross compiling
12009 See \`config.log' for more details." >&2;}
12010 { (exit 1); exit 1; }; }
12012 cat >conftest.
$ac_ext <<_ACEOF
12015 cat confdefs.h
>>conftest.
$ac_ext
12016 cat >>conftest.
$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 $ac_includes_default
12019 long longval () { return (long) (sizeof (long double)); }
12020 unsigned long ulongval () { return (long) (sizeof (long double)); }
12022 #include <stdlib.h>
12027 FILE *f = fopen ("conftest.val", "w");
12030 if (((long) (sizeof (long double))) < 0)
12032 long i = longval ();
12033 if (i != ((long) (sizeof (long double))))
12035 fprintf (f, "%ld\n", i);
12039 unsigned long i = ulongval ();
12040 if (i != ((long) (sizeof (long double))))
12042 fprintf (f, "%lu\n", i);
12044 exit (ferror (f) || fclose (f) != 0);
12050 rm -f conftest
$ac_exeext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12052 (eval $ac_link) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_sizeof_long_double
=`cat conftest.val`
12063 echo "$as_me: program exited with status $ac_status" >&5
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.
$ac_ext >&5
12067 ( exit $ac_status )
12068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12069 See \`config.log' for more details." >&5
12070 echo "$as_me: error: cannot compute sizeof (long double), 77
12071 See \`config.log' for more details." >&2;}
12072 { (exit 1); exit 1; }; }
12074 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12079 ac_cv_sizeof_long_double
=0
12082 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12083 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
12084 cat >>confdefs.h
<<_ACEOF
12085 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12090 # Also AC_SUBST this variable for ffi.h.
12091 if test -z "$HAVE_LONG_DOUBLE"; then
12093 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12094 if test $ac_cv_sizeof_long_double != 0; then
12097 cat >>confdefs.h
<<\_ACEOF
12098 #define HAVE_LONG_DOUBLE 1
12106 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12107 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12108 if test "${ac_cv_c_bigendian+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 # See if sys/param.h defines the BYTE_ORDER macro.
12112 cat >conftest.
$ac_ext <<_ACEOF
12115 cat confdefs.h
>>conftest.
$ac_ext
12116 cat >>conftest.
$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 #include <sys/types.h>
12119 #include <sys/param.h>
12124 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12125 bogus endian macros
12132 rm -f conftest.
$ac_objext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12134 (eval $ac_compile) 2>conftest.er1
12136 grep -v '^ *+' conftest.er1
>conftest.err
12138 cat conftest.err
>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try
='test -z "$ac_c_werror_flag"
12142 || test ! -s conftest.err'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try
='test -s conftest.$ac_objext'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 # It does; now see whether it defined to BIG_ENDIAN or not.
12155 cat >conftest.
$ac_ext <<_ACEOF
12158 cat confdefs.h
>>conftest.
$ac_ext
12159 cat >>conftest.
$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 #include <sys/types.h>
12162 #include <sys/param.h>
12167 #if BYTE_ORDER != BIG_ENDIAN
12175 rm -f conftest.
$ac_objext
12176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12177 (eval $ac_compile) 2>conftest.er1
12179 grep -v '^ *+' conftest.er1
>conftest.err
12181 cat conftest.err
>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try
='test -z "$ac_c_werror_flag"
12185 || test ! -s conftest.err'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; } &&
12191 { ac_try
='test -s conftest.$ac_objext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_cv_c_bigendian
=yes
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.
$ac_ext >&5
12202 ac_cv_c_bigendian
=no
12204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.
$ac_ext >&5
12209 # It does not; compile a test program.
12210 if test "$cross_compiling" = yes; then
12211 # try to guess the endianness by grepping values into an object file
12212 ac_cv_c_bigendian
=unknown
12213 cat >conftest.
$ac_ext <<_ACEOF
12216 cat confdefs.h
>>conftest.
$ac_ext
12217 cat >>conftest.
$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12220 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12221 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12222 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12223 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12224 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12228 _ascii (); _ebcdic ();
12233 rm -f conftest.
$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235 (eval $ac_compile) 2>conftest.er1
12237 grep -v '^ *+' conftest.er1
>conftest.err
12239 cat conftest.err
>&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try
='test -z "$ac_c_werror_flag"
12243 || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try
='test -s conftest.$ac_objext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12256 ac_cv_c_bigendian
=yes
12258 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12259 if test "$ac_cv_c_bigendian" = unknown
; then
12260 ac_cv_c_bigendian
=no
12262 # finding both strings is unlikely to happen, but who knows?
12263 ac_cv_c_bigendian
=unknown
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.
$ac_ext >&5
12271 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12273 cat >conftest.
$ac_ext <<_ACEOF
12276 cat confdefs.h
>>conftest.
$ac_ext
12277 cat >>conftest.
$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12282 /* Are we little or big endian? From Harbison&Steele. */
12286 char c[sizeof (long)];
12289 exit (u.c[sizeof (long) - 1] == 1);
12292 rm -f conftest
$ac_exeext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294 (eval $ac_link) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_cv_c_bigendian
=no
12305 echo "$as_me: program exited with status $ac_status" >&5
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.
$ac_ext >&5
12309 ( exit $ac_status )
12310 ac_cv_c_bigendian
=yes
12312 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12317 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12318 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12319 case $ac_cv_c_bigendian in
12322 cat >>confdefs.h
<<\_ACEOF
12323 #define WORDS_BIGENDIAN 1
12329 { { echo "$as_me:$LINENO: error: unknown endianness
12330 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12331 echo "$as_me: error: unknown endianness
12332 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12333 { (exit 1); exit 1; }; } ;;
12337 echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
12338 echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6
12339 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 libffi_cv_as_cfi_pseudo_op
=unknown
12344 cat >conftest.
$ac_ext <<_ACEOF
12347 cat confdefs.h
>>conftest.
$ac_ext
12348 cat >>conftest.
$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 asm (".cfi_startproc\n\t.cfi_endproc");
12359 rm -f conftest.
$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361 (eval $ac_compile) 2>conftest.er1
12363 grep -v '^ *+' conftest.er1
>conftest.err
12365 cat conftest.err
>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try
='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try
='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 libffi_cv_as_cfi_pseudo_op
=yes
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.
$ac_ext >&5
12386 libffi_cv_as_cfi_pseudo_op
=no
12388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12391 echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
12392 echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6
12393 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes
; then
12395 cat >>confdefs.h
<<\_ACEOF
12396 #define HAVE_AS_CFI_PSEUDO_OP 1
12401 if test x
$TARGET = xSPARC
; then
12402 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
12403 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
12404 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 save_CFLAGS
="$CFLAGS"
12409 save_LDFLAGS
="$LDFLAGS"
12410 CFLAGS
="$CFLAGS -fpic"
12411 LDFLAGS
="$LDFLAGS -shared"
12412 cat >conftest.
$ac_ext <<_ACEOF
12415 cat confdefs.h
>>conftest.
$ac_ext
12416 cat >>conftest.
$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12427 rm -f conftest.
$ac_objext conftest
$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12431 grep -v '^ *+' conftest.er1
>conftest.err
12433 cat conftest.err
>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try
='test -z "$ac_c_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try
='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 libffi_cv_as_sparc_ua_pcrel
=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.
$ac_ext >&5
12454 libffi_cv_as_sparc_ua_pcrel
=no
12456 rm -f conftest.err conftest.
$ac_objext \
12457 conftest
$ac_exeext conftest.
$ac_ext
12458 CFLAGS
="$save_CFLAGS"
12459 LDFLAGS
="$save_LDFLAGS"
12461 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12462 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
12463 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
12465 cat >>confdefs.h
<<\_ACEOF
12466 #define HAVE_AS_SPARC_UA_PCREL 1
12471 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
12472 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
12473 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 libffi_cv_as_register_pseudo_op
=unknown
12478 # Check if we have .register
12479 cat >conftest.
$ac_ext <<_ACEOF
12482 cat confdefs.h
>>conftest.
$ac_ext
12483 cat >>conftest.
$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 asm (".register %g2, #scratch");
12494 rm -f conftest.
$ac_objext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>conftest.er1
12498 grep -v '^ *+' conftest.er1
>conftest.err
12500 cat conftest.err
>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try
='test -z "$ac_c_werror_flag"
12504 || test ! -s conftest.err'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try
='test -s conftest.$ac_objext'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 libffi_cv_as_register_pseudo_op
=yes
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.
$ac_ext >&5
12521 libffi_cv_as_register_pseudo_op
=no
12523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12526 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
12527 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
12528 if test "x$libffi_cv_as_register_pseudo_op" = xyes
; then
12530 cat >>confdefs.h
<<\_ACEOF
12531 #define HAVE_AS_REGISTER_PSEUDO_OP 1
12537 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
12538 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
12539 if test "${libffi_cv_ro_eh_frame+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 libffi_cv_ro_eh_frame
=no
12544 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12545 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c
> /dev
/null
2>&1; then
12546 if grep '.section.*eh_frame.*"a"' conftest.s
> /dev
/null
; then
12547 libffi_cv_ro_eh_frame
=yes
12548 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12549 |
grep -v '#write' > /dev
/null
; then
12550 libffi_cv_ro_eh_frame
=yes
12556 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
12557 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
12558 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
12560 cat >>confdefs.h
<<\_ACEOF
12561 #define HAVE_RO_EH_FRAME 1
12565 cat >>confdefs.h
<<\_ACEOF
12566 #define EH_FRAME_FLAGS "a"
12571 cat >>confdefs.h
<<\_ACEOF
12572 #define EH_FRAME_FLAGS "aw"
12577 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
12578 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
12579 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12584 libffi_cv_hidden_visibility_attribute
=no
12585 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
12592 libffi_cv_hidden_visibility_attribute
=yes
12598 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
12599 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
12600 if test $libffi_cv_hidden_visibility_attribute = yes; then
12602 cat >>confdefs.h
<<\_ACEOF
12603 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
12616 # Check whether --enable-debug or --disable-debug was given.
12617 if test "${enable_debug+set}" = set; then
12618 enableval
="$enable_debug"
12619 if test "$enable_debug" = "yes"; then
12621 cat >>confdefs.h
<<\_ACEOF
12622 #define FFI_DEBUG 1
12628 # Check whether --enable-structs or --disable-structs was given.
12629 if test "${enable_structs+set}" = set; then
12630 enableval
="$enable_structs"
12631 if test "$enable_structs" = "no"; then
12633 cat >>confdefs.h
<<\_ACEOF
12634 #define FFI_NO_STRUCTS 1
12640 # Check whether --enable-raw-api or --disable-raw-api was given.
12641 if test "${enable_raw_api+set}" = set; then
12642 enableval
="$enable_raw_api"
12643 if test "$enable_raw_api" = "no"; then
12645 cat >>confdefs.h
<<\_ACEOF
12646 #define FFI_NO_RAW_API 1
12652 # Check whether --enable-purify-safety or --disable-purify-safety was given.
12653 if test "${enable_purify_safety+set}" = set; then
12654 enableval
="$enable_purify_safety"
12655 if test "$enable_purify_safety" = "yes"; then
12657 cat >>confdefs.h
<<\_ACEOF
12658 #define USING_PURIFY 1
12664 if test -n "$with_cross_host" &&
12665 test x
"$with_cross_host" != x
"no"; then
12666 toolexecdir
='$(exec_prefix)/$(target_alias)'
12667 toolexeclibdir
='$(toolexecdir)/lib'
12669 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
12670 toolexeclibdir
='$(libdir)'
12672 multi_os_directory
=`$CC -print-multi-os-directory`
12673 case $multi_os_directory in
12674 .
) ;; # Avoid trailing /.
12675 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
12680 if test "${multilib}" = "yes"; then
12681 multilib_arg
="--enable-multilib"
12686 ac_config_commands
="$ac_config_commands include"
12688 ac_config_commands
="$ac_config_commands src"
12691 ac_config_links
="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12694 ac_config_files
="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
12697 cat >confcache
<<\_ACEOF
12698 # This file is a shell script that caches the results of configure
12699 # tests run on this system so they can be shared between configure
12700 # scripts and configure runs, see configure's option --config-cache.
12701 # It is not useful on other systems. If it contains results you don't
12702 # want to keep, you may remove or edit it.
12704 # config.status only pays attention to the cache file if you give it
12705 # the --recheck option to rerun configure.
12707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12709 # following values.
12713 # The following way of writing the cache mishandles newlines in values,
12714 # but we know of no workaround that is simple, portable, and efficient.
12715 # So, don't put newlines in cache variables' values.
12716 # Ultrix sh set writes to stderr and can't be redirected directly,
12717 # and sets the high bit in the cache file unless we assign to the vars.
12720 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12722 # `set' does not quote correctly, so add quotes (double-quote
12723 # substitution turns \\\\ into \\, and sed turns \\ into \).
12726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12729 # `set' quotes correctly as required by POSIX, so do not add quotes.
12731 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12740 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12742 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
12743 if test -w $cache_file; then
12744 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12745 cat confcache
>$cache_file
12747 echo "not updating unwritable cache $cache_file"
12752 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12753 # Let make expand exec_prefix.
12754 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12756 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12757 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12758 # trailing colons and then remove the whole line if VPATH becomes empty
12759 # (actually we leave an empty line to preserve line numbers).
12760 if test "x$srcdir" = x.
; then
12761 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12762 s/:*\$(srcdir):*/:/;
12763 s/:*\${srcdir}:*/:/;
12765 s/^\([^=]*=[ ]*\):*/\1/;
12771 DEFS
=-DHAVE_CONFIG_H
12775 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12776 # 1. Remove the extension, and $U if already installed.
12777 ac_i
=`echo "$ac_i" |
12778 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12780 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
12781 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
12783 LIBOBJS
=$ac_libobjs
12785 LTLIBOBJS
=$ac_ltlibobjs
12788 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12789 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12790 Usually this means the macro was only invoked conditionally." >&5
12791 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12792 Usually this means the macro was only invoked conditionally." >&2;}
12793 { (exit 1); exit 1; }; }
12795 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12796 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12797 Usually this means the macro was only invoked conditionally." >&5
12798 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12799 Usually this means the macro was only invoked conditionally." >&2;}
12800 { (exit 1); exit 1; }; }
12802 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12803 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12804 Usually this means the macro was only invoked conditionally." >&5
12805 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12806 Usually this means the macro was only invoked conditionally." >&2;}
12807 { (exit 1); exit 1; }; }
12809 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12810 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
12811 Usually this means the macro was only invoked conditionally." >&5
12812 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
12813 Usually this means the macro was only invoked conditionally." >&2;}
12814 { (exit 1); exit 1; }; }
12816 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12817 { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
12818 Usually this means the macro was only invoked conditionally." >&5
12819 echo "$as_me: error: conditional \"MIPS\" was never defined.
12820 Usually this means the macro was only invoked conditionally." >&2;}
12821 { (exit 1); exit 1; }; }
12823 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12824 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
12825 Usually this means the macro was only invoked conditionally." >&5
12826 echo "$as_me: error: conditional \"SPARC\" was never defined.
12827 Usually this means the macro was only invoked conditionally." >&2;}
12828 { (exit 1); exit 1; }; }
12830 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12831 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
12832 Usually this means the macro was only invoked conditionally." >&5
12833 echo "$as_me: error: conditional \"X86\" was never defined.
12834 Usually this means the macro was only invoked conditionally." >&2;}
12835 { (exit 1); exit 1; }; }
12837 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12838 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
12839 Usually this means the macro was only invoked conditionally." >&5
12840 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
12841 Usually this means the macro was only invoked conditionally." >&2;}
12842 { (exit 1); exit 1; }; }
12844 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12845 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
12846 Usually this means the macro was only invoked conditionally." >&5
12847 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
12848 Usually this means the macro was only invoked conditionally." >&2;}
12849 { (exit 1); exit 1; }; }
12851 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12852 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
12853 Usually this means the macro was only invoked conditionally." >&5
12854 echo "$as_me: error: conditional \"ALPHA\" was never defined.
12855 Usually this means the macro was only invoked conditionally." >&2;}
12856 { (exit 1); exit 1; }; }
12858 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12859 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
12860 Usually this means the macro was only invoked conditionally." >&5
12861 echo "$as_me: error: conditional \"IA64\" was never defined.
12862 Usually this means the macro was only invoked conditionally." >&2;}
12863 { (exit 1); exit 1; }; }
12865 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12866 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
12867 Usually this means the macro was only invoked conditionally." >&5
12868 echo "$as_me: error: conditional \"M32R\" was never defined.
12869 Usually this means the macro was only invoked conditionally." >&2;}
12870 { (exit 1); exit 1; }; }
12872 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12873 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
12874 Usually this means the macro was only invoked conditionally." >&5
12875 echo "$as_me: error: conditional \"M68K\" was never defined.
12876 Usually this means the macro was only invoked conditionally." >&2;}
12877 { (exit 1); exit 1; }; }
12879 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12880 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
12881 Usually this means the macro was only invoked conditionally." >&5
12882 echo "$as_me: error: conditional \"POWERPC\" was never defined.
12883 Usually this means the macro was only invoked conditionally." >&2;}
12884 { (exit 1); exit 1; }; }
12886 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12887 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
12888 Usually this means the macro was only invoked conditionally." >&5
12889 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
12890 Usually this means the macro was only invoked conditionally." >&2;}
12891 { (exit 1); exit 1; }; }
12893 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12894 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
12895 Usually this means the macro was only invoked conditionally." >&5
12896 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
12897 Usually this means the macro was only invoked conditionally." >&2;}
12898 { (exit 1); exit 1; }; }
12900 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12901 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
12902 Usually this means the macro was only invoked conditionally." >&5
12903 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
12904 Usually this means the macro was only invoked conditionally." >&2;}
12905 { (exit 1); exit 1; }; }
12907 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12908 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
12909 Usually this means the macro was only invoked conditionally." >&5
12910 echo "$as_me: error: conditional \"ARM\" was never defined.
12911 Usually this means the macro was only invoked conditionally." >&2;}
12912 { (exit 1); exit 1; }; }
12914 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12915 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
12916 Usually this means the macro was only invoked conditionally." >&5
12917 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
12918 Usually this means the macro was only invoked conditionally." >&2;}
12919 { (exit 1); exit 1; }; }
12921 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12922 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
12923 Usually this means the macro was only invoked conditionally." >&5
12924 echo "$as_me: error: conditional \"FRV\" was never defined.
12925 Usually this means the macro was only invoked conditionally." >&2;}
12926 { (exit 1); exit 1; }; }
12928 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12929 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
12930 Usually this means the macro was only invoked conditionally." >&5
12931 echo "$as_me: error: conditional \"S390\" was never defined.
12932 Usually this means the macro was only invoked conditionally." >&2;}
12933 { (exit 1); exit 1; }; }
12935 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12936 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
12937 Usually this means the macro was only invoked conditionally." >&5
12938 echo "$as_me: error: conditional \"X86_64\" was never defined.
12939 Usually this means the macro was only invoked conditionally." >&2;}
12940 { (exit 1); exit 1; }; }
12942 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12943 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
12944 Usually this means the macro was only invoked conditionally." >&5
12945 echo "$as_me: error: conditional \"SH\" was never defined.
12946 Usually this means the macro was only invoked conditionally." >&2;}
12947 { (exit 1); exit 1; }; }
12949 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12950 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
12951 Usually this means the macro was only invoked conditionally." >&5
12952 echo "$as_me: error: conditional \"SH64\" was never defined.
12953 Usually this means the macro was only invoked conditionally." >&2;}
12954 { (exit 1); exit 1; }; }
12956 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12957 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
12958 Usually this means the macro was only invoked conditionally." >&5
12959 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
12960 Usually this means the macro was only invoked conditionally." >&2;}
12961 { (exit 1); exit 1; }; }
12963 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12964 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
12965 Usually this means the macro was only invoked conditionally." >&5
12966 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
12967 Usually this means the macro was only invoked conditionally." >&2;}
12968 { (exit 1); exit 1; }; }
12970 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12971 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
12972 Usually this means the macro was only invoked conditionally." >&5
12973 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
12974 Usually this means the macro was only invoked conditionally." >&2;}
12975 { (exit 1); exit 1; }; }
12978 : ${CONFIG_STATUS=./config.status}
12979 ac_clean_files_save
=$ac_clean_files
12980 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12981 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12982 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12983 cat >$CONFIG_STATUS <<_ACEOF
12985 # Generated by $as_me.
12986 # Run this file to recreate the current configuration.
12987 # Compiler output produced by configure, useful for debugging
12988 # configure, is in config.log if it exists.
12991 ac_cs_recheck=false
12993 SHELL=\${CONFIG_SHELL-$SHELL}
12996 cat >>$CONFIG_STATUS <<\_ACEOF
12997 ## --------------------- ##
12998 ## M4sh Initialization. ##
12999 ## --------------------- ##
13001 # Be Bourne compatible
13002 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
13005 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13006 # is contrary to our usage. Disable this feature.
13007 alias -g '${1+"$@"}'='"$@"'
13008 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
13011 DUALCASE
=1; export DUALCASE
# for MKS sh
13013 # Support unset when possible.
13014 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
13021 # Work around bugs in pre-3.0 UWIN ksh.
13022 $as_unset ENV MAIL MAILPATH
13029 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13030 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13031 LC_TELEPHONE LC_TIME
13033 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13034 eval $as_var=C
; export $as_var
13040 # Required to use basename.
13041 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13047 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
13048 as_basename
=basename
13054 # Name of the executable.
13055 as_me
=`$as_basename "$0" ||
13056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13057 X"$0" : 'X\(//\)$' \| \
13058 X"$0" : 'X\(/\)$' \| \
13059 . : '\(.\)' 2>/dev/null ||
13061 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13062 /^X\/\(\/\/\)$/{ s//\1/; q; }
13063 /^X\/\(\/\).*/{ s//\1/; q; }
13067 # PATH needs CR, and LINENO needs CR and PATH.
13068 # Avoid depending upon Character Ranges.
13069 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13070 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13071 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13072 as_cr_digits
='0123456789'
13073 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13075 # The user is always right.
13076 if test "${PATH_SEPARATOR+set}" != set; then
13077 echo "#! /bin/sh" >conf$$.sh
13078 echo "exit 0" >>conf$$.sh
13080 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13089 as_lineno_1
=$LINENO
13090 as_lineno_2
=$LINENO
13091 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
13092 test "x$as_lineno_1" != "x$as_lineno_2" &&
13093 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
13094 # Find who we are. Look in the path if we contain no path at all
13097 *[\\/]* ) as_myself
=$0 ;;
13098 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13099 for as_dir
in $PATH
13102 test -z "$as_dir" && as_dir
=.
13103 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
13108 # We did not find ourselves, most probably we were run as `sh COMMAND'
13109 # in which case we are not to be found in the path.
13110 if test "x$as_myself" = x
; then
13113 if test ! -f "$as_myself"; then
13114 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13115 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13116 { (exit 1); exit 1; }; }
13118 case $CONFIG_SHELL in
13120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13121 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
13124 test -z "$as_dir" && as_dir
=.
13125 for as_base
in sh bash ksh sh5
; do
13128 if ("$as_dir/$as_base" -c '
13129 as_lineno_1=$LINENO
13130 as_lineno_2=$LINENO
13131 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13132 test "x$as_lineno_1" != "x$as_lineno_2" &&
13133 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
13134 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
13135 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
13136 CONFIG_SHELL
=$as_dir/$as_base
13137 export CONFIG_SHELL
13138 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13146 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13147 # uniformly replaced by the line number. The first 'sed' inserts a
13148 # line-number line before each line; the second 'sed' does the real
13149 # work. The second script uses 'N' to pair each line-number line
13150 # with the numbered line, and appends trailing '-' during
13151 # substitution so that $LINENO is not a special case at line end.
13152 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13153 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13154 sed '=' <$as_myself |
13159 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13162 s,^['$as_cr_digits']*\n,,
13163 ' >$as_me.lineno
&&
13164 chmod +x
$as_me.lineno ||
13165 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13166 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13167 { (exit 1); exit 1; }; }
13169 # Don't try to exec as it changes $[0], causing all sort of problems
13170 # (the dirname of $[0] is not the place where we might find the
13171 # original and so on. Autoconf is especially sensible to this).
13173 # Exit status is that of the last command.
13178 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13179 *c
*,-n*) ECHO_N
= ECHO_C
='
13181 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
13182 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
13185 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13191 rm -f conf$$ conf$$.exe conf$$.
file
13193 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13194 # We could just check for DJGPP; but this test a) works b) is more generic
13195 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13196 if test -f conf$$.exe
; then
13197 # Don't use ln at all; we don't have any links
13202 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13207 rm -f conf$$ conf$$.exe conf$$.
file
13209 if mkdir
-p .
2>/dev
/null
; then
13212 test -d .
/-p && rmdir .
/-p
13216 as_executable_p
="test -f"
13218 # Sed expression to map a string onto a valid CPP name.
13219 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13221 # Sed expression to map a string onto a valid variable name.
13222 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13226 # We need space, tab and new line, in precisely that order.
13236 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13237 # report actual input values of CONFIG_FILES etc. instead of their
13238 # values after options handling. Logging --version etc. is OK.
13242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13243 ## Running $as_me. ##
13248 This file was extended by libffi $as_me 2.1, which was
13249 generated by GNU Autoconf 2.59. Invocation command line was
13251 CONFIG_FILES = $CONFIG_FILES
13252 CONFIG_HEADERS = $CONFIG_HEADERS
13253 CONFIG_LINKS = $CONFIG_LINKS
13254 CONFIG_COMMANDS = $CONFIG_COMMANDS
13258 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13262 # Files that config.status was made for.
13263 if test -n "$ac_config_files"; then
13264 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13267 if test -n "$ac_config_headers"; then
13268 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13271 if test -n "$ac_config_links"; then
13272 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13275 if test -n "$ac_config_commands"; then
13276 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13279 cat >>$CONFIG_STATUS <<\_ACEOF
13282 \`$as_me' instantiates files from templates according to the
13283 current configuration.
13285 Usage: $0 [OPTIONS] [FILE]...
13287 -h, --help print this help, then exit
13288 -V, --version print version number, then exit
13289 -q, --quiet do not print progress messages
13290 -d, --debug don't remove temporary files
13291 --recheck update $as_me by reconfiguring in the same conditions
13292 --file=FILE[:TEMPLATE]
13293 instantiate the configuration file FILE
13294 --header=FILE[:TEMPLATE]
13295 instantiate the configuration header FILE
13297 Configuration files:
13300 Configuration headers:
13303 Configuration links:
13306 Configuration commands:
13309 Report bugs to <bug-autoconf@gnu.org>."
13312 cat >>$CONFIG_STATUS <<_ACEOF
13314 libffi config.status 2.1
13315 configured by $0, generated by GNU Autoconf 2.59,
13316 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13318 Copyright (C) 2003 Free Software Foundation, Inc.
13319 This config.status script is free software; the Free Software Foundation
13320 gives unlimited permission to copy, distribute and modify it."
13325 cat >>$CONFIG_STATUS <<\_ACEOF
13326 # If no file are specified by the user, then we need to provide default
13327 # value. By we need to know if files were specified by the user.
13333 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
13334 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
13342 *) # This is not an option, so the user has probably given explicit
13345 ac_need_defaults
=false
;;
13349 # Handling of the options.
13351 cat >>$CONFIG_STATUS <<\_ACEOF
13352 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13354 --version |
--vers* |
-V )
13355 echo "$ac_cs_version"; exit 0 ;;
13357 # Conflict between --help and --header
13358 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13359 Try \`$0 --help' for more information." >&5
13360 echo "$as_me: error: ambiguous option: $1
13361 Try \`$0 --help' for more information." >&2;}
13362 { (exit 1); exit 1; }; };;
13363 --help |
--hel |
-h )
13364 echo "$ac_cs_usage"; exit 0 ;;
13365 --debug |
--d* |
-d )
13367 --file |
--fil |
--fi |
--f )
13369 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
13370 ac_need_defaults
=false
;;
13371 --header |
--heade |
--head |
--hea )
13373 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
13374 ac_need_defaults
=false
;;
13375 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13376 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13379 # This is an error.
13380 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13381 Try \`$0 --help' for more information." >&5
13382 echo "$as_me: error: unrecognized option: $1
13383 Try \`$0 --help' for more information." >&2;}
13384 { (exit 1); exit 1; }; } ;;
13386 *) ac_config_targets
="$ac_config_targets $1" ;;
13392 ac_configure_extra_args
=
13394 if $ac_cs_silent; then
13396 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13400 cat >>$CONFIG_STATUS <<_ACEOF
13401 if \$ac_cs_recheck; then
13402 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13403 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13408 cat >>$CONFIG_STATUS <<_ACEOF
13410 # INIT-COMMANDS section.
13417 with_multisubdir="$with_multisubdir"
13418 with_multisrctop="$with_multisrctop"
13419 with_target_subdir="$with_target_subdir"
13420 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13421 multi_basedir="$multi_basedir"
13422 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13424 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13427 # The HP-UX ksh and POSIX shell print the target directory to stdout
13428 # if CDPATH is set.
13429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13431 sed_quote_subst='$sed_quote_subst'
13432 double_quote_subst='$double_quote_subst'
13433 delay_variable_subst='$delay_variable_subst'
13434 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13435 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13436 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13437 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13438 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13439 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13440 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13441 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13442 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13443 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13444 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13445 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13446 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13447 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13448 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13449 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13450 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13451 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13452 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13453 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13454 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13455 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13456 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13457 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13458 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13459 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13460 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13461 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13462 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13463 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13464 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13465 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13466 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13467 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13468 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13469 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13470 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13471 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13472 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13473 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13474 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13475 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13476 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13477 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13478 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13479 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13480 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13481 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13482 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13483 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13484 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13485 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13486 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13487 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13488 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13489 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13490 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13492 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13493 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13494 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13495 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13496 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13497 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13498 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13499 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13500 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13502 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13503 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13504 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13505 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13506 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13507 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13508 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13509 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13510 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13511 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13512 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13513 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13514 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13515 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13516 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13517 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13518 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13519 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13520 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13521 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13522 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13523 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13524 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13525 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13526 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13527 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13528 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13529 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13530 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13531 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13532 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13533 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13534 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13535 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13536 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13537 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13538 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13539 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13540 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13541 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13542 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13543 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13544 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13547 LTCFLAGS='$LTCFLAGS'
13548 compiler='$compiler_DEFAULT'
13550 # Quote evaled strings.
13561 deplibs_check_method \
13570 lt_cv_sys_global_symbol_pipe \
13571 lt_cv_sys_global_symbol_to_cdecl \
13572 lt_cv_sys_global_symbol_to_c_name_address \
13575 lt_prog_compiler_no_builtin_flag \
13576 lt_prog_compiler_wl \
13577 lt_prog_compiler_pic \
13578 lt_prog_compiler_static \
13579 lt_cv_prog_compiler_c_o \
13582 export_dynamic_flag_spec \
13583 whole_archive_flag_spec \
13584 compiler_needs_object \
13586 allow_undefined_flag \
13587 no_undefined_flag \
13588 hardcode_libdir_flag_spec \
13589 hardcode_libdir_flag_spec_ld \
13590 hardcode_libdir_separator \
13595 variables_saved_for_relink \
13597 library_names_spec \
13602 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13603 *[\\\\\\\`\\"\\\$]*)
13604 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13607 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13612 # Double-quote double-evaled strings.
13613 for var in reload_cmds \
13614 old_postinstall_cmds \
13615 old_postuninstall_cmds \
13617 extract_expsyms_cmds \
13618 old_archive_from_new_cmds \
13619 old_archive_from_expsyms_cmds \
13621 archive_expsym_cmds \
13623 module_expsym_cmds \
13624 export_symbols_cmds \
13627 postuninstall_cmds \
13629 sys_lib_search_path_spec \
13630 sys_lib_dlsearch_path_spec; do
13631 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13632 *[\\\\\\\`\\"\\\$]*)
13633 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13636 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13641 # Fix-up fallback echo if it was mangled by the above quoting rules.
13643 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13647 ac_aux_dir='$ac_aux_dir'
13648 xsi_shell='$xsi_shell'
13649 lt_shell_append='$lt_shell_append'
13651 # See if we are running on zsh, and set the options which allow our
13652 # commands through without removal of \ escapes INIT.
13653 if test -n "\${ZSH_VERSION+set}" ; then
13654 setopt NO_GLOB_SUBST
13660 TIMESTAMP='$TIMESTAMP'
13666 TARGETDIR="$TARGETDIR"
13672 cat >>$CONFIG_STATUS <<\_ACEOF
13673 for ac_config_target
in $ac_config_targets
13675 case "$ac_config_target" in
13676 # Handling of arguments.
13677 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
13678 "include/ffi.h" ) CONFIG_FILES
="$CONFIG_FILES include/ffi.h" ;;
13679 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13680 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
13681 "include/ffitarget.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13682 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
13683 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13684 "libtool" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
13685 "include" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS include" ;;
13686 "src" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS src" ;;
13687 "fficonfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS fficonfig.h" ;;
13688 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13689 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13690 { (exit 1); exit 1; }; };;
13694 # If the user did not use the arguments to specify the items to instantiate,
13695 # then the envvar interface is used. Set only those that are not.
13696 # We use the long form for the default assignment because of an extremely
13697 # bizarre bug on SunOS 4.1.3.
13698 if $ac_need_defaults; then
13699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13701 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
13702 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13705 # Have a temporary directory for convenience. Make it in the build tree
13706 # simply because there is no reason to put it here, and in addition,
13707 # creating and moving files from /tmp can sometimes cause problems.
13708 # Create a temporary directory, and hook for its removal unless debugging.
13711 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13712 trap '{ (exit 1); exit 1; }' 1 2 13 15
13715 # Create a (secure) tmp directory for tmp files.
13718 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13719 test -n "$tmp" && test -d "$tmp"
13722 tmp
=.
/confstat$$
-$RANDOM
13723 (umask 077 && mkdir
$tmp)
13726 echo "$me: cannot create a temporary directory in ." >&2
13727 { (exit 1); exit 1; }
13732 cat >>$CONFIG_STATUS <<_ACEOF
13735 # CONFIG_FILES section.
13738 # No need to generate the scripts if there are no CONFIG_FILES.
13739 # This happens for instance when ./config.status config.h
13740 if test -n "\$CONFIG_FILES"; then
13741 # Protect against being on the right side of a sed subst in config.status.
13742 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13743 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13744 s,@SHELL@,$SHELL,;t t
13745 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13746 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13747 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13748 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13749 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13750 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13751 s,@exec_prefix@,$exec_prefix,;t t
13752 s,@prefix@,$prefix,;t t
13753 s,@program_transform_name@,$program_transform_name,;t t
13754 s,@bindir@,$bindir,;t t
13755 s,@sbindir@,$sbindir,;t t
13756 s,@libexecdir@,$libexecdir,;t t
13757 s,@datadir@,$datadir,;t t
13758 s,@sysconfdir@,$sysconfdir,;t t
13759 s,@sharedstatedir@,$sharedstatedir,;t t
13760 s,@localstatedir@,$localstatedir,;t t
13761 s,@libdir@,$libdir,;t t
13762 s,@includedir@,$includedir,;t t
13763 s,@oldincludedir@,$oldincludedir,;t t
13764 s,@infodir@,$infodir,;t t
13765 s,@mandir@,$mandir,;t t
13766 s,@build_alias@,$build_alias,;t t
13767 s,@host_alias@,$host_alias,;t t
13768 s,@target_alias@,$target_alias,;t t
13769 s,@DEFS@,$DEFS,;t t
13770 s,@ECHO_C@,$ECHO_C,;t t
13771 s,@ECHO_N@,$ECHO_N,;t t
13772 s,@ECHO_T@,$ECHO_T,;t t
13773 s,@LIBS@,$LIBS,;t t
13774 s,@multi_basedir@,$multi_basedir,;t t
13775 s,@build@,$build,;t t
13776 s,@build_cpu@,$build_cpu,;t t
13777 s,@build_vendor@,$build_vendor,;t t
13778 s,@build_os@,$build_os,;t t
13779 s,@host@,$host,;t t
13780 s,@host_cpu@,$host_cpu,;t t
13781 s,@host_vendor@,$host_vendor,;t t
13782 s,@host_os@,$host_os,;t t
13783 s,@target@,$target,;t t
13784 s,@target_cpu@,$target_cpu,;t t
13785 s,@target_vendor@,$target_vendor,;t t
13786 s,@target_os@,$target_os,;t t
13787 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13788 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13789 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13790 s,@CYGPATH_W@,$CYGPATH_W,;t t
13791 s,@PACKAGE@,$PACKAGE,;t t
13792 s,@VERSION@,$VERSION,;t t
13793 s,@ACLOCAL@,$ACLOCAL,;t t
13794 s,@AUTOCONF@,$AUTOCONF,;t t
13795 s,@AUTOMAKE@,$AUTOMAKE,;t t
13796 s,@AUTOHEADER@,$AUTOHEADER,;t t
13797 s,@MAKEINFO@,$MAKEINFO,;t t
13798 s,@install_sh@,$install_sh,;t t
13799 s,@STRIP@,$STRIP,;t t
13800 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13801 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13802 s,@mkdir_p@,$mkdir_p,;t t
13804 s,@SET_MAKE@,$SET_MAKE,;t t
13805 s,@am__leading_dot@,$am__leading_dot,;t t
13806 s,@AMTAR@,$AMTAR,;t t
13807 s,@am__tar@,$am__tar,;t t
13808 s,@am__untar@,$am__untar,;t t
13810 s,@ac_ct_CC@,$ac_ct_CC,;t t
13811 s,@EXEEXT@,$EXEEXT,;t t
13812 s,@OBJEXT@,$OBJEXT,;t t
13813 s,@DEPDIR@,$DEPDIR,;t t
13814 s,@am__include@,$am__include,;t t
13815 s,@am__quote@,$am__quote,;t t
13816 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13817 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13818 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13819 s,@CCDEPMODE@,$CCDEPMODE,;t t
13820 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13821 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13822 s,@CFLAGS@,$CFLAGS,;t t
13823 s,@CCAS@,$CCAS,;t t
13824 s,@CCASFLAGS@,$CCASFLAGS,;t t
13825 s,@LIBTOOL@,$LIBTOOL,;t t
13827 s,@EGREP@,$EGREP,;t t
13828 s,@FGREP@,$FGREP,;t t
13829 s,@GREP@,$GREP,;t t
13831 s,@DUMPBIN@,$DUMPBIN,;t t
13832 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13834 s,@LN_S@,$LN_S,;t t
13836 s,@ac_ct_AR@,$ac_ct_AR,;t t
13837 s,@RANLIB@,$RANLIB,;t t
13838 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13839 s,@lt_ECHO@,$lt_ECHO,;t t
13841 s,@CPPFLAGS@,$CPPFLAGS,;t t
13842 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13843 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13844 s,@MAINT@,$MAINT,;t t
13845 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
13846 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
13847 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
13848 s,@MIPS_TRUE@,$MIPS_TRUE,;t t
13849 s,@MIPS_FALSE@,$MIPS_FALSE,;t t
13850 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
13851 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
13852 s,@X86_TRUE@,$X86_TRUE,;t t
13853 s,@X86_FALSE@,$X86_FALSE,;t t
13854 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
13855 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
13856 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
13857 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
13858 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
13859 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
13860 s,@IA64_TRUE@,$IA64_TRUE,;t t
13861 s,@IA64_FALSE@,$IA64_FALSE,;t t
13862 s,@M32R_TRUE@,$M32R_TRUE,;t t
13863 s,@M32R_FALSE@,$M32R_FALSE,;t t
13864 s,@M68K_TRUE@,$M68K_TRUE,;t t
13865 s,@M68K_FALSE@,$M68K_FALSE,;t t
13866 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
13867 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
13868 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
13869 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
13870 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
13871 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
13872 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
13873 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
13874 s,@ARM_TRUE@,$ARM_TRUE,;t t
13875 s,@ARM_FALSE@,$ARM_FALSE,;t t
13876 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
13877 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
13878 s,@FRV_TRUE@,$FRV_TRUE,;t t
13879 s,@FRV_FALSE@,$FRV_FALSE,;t t
13880 s,@S390_TRUE@,$S390_TRUE,;t t
13881 s,@S390_FALSE@,$S390_FALSE,;t t
13882 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
13883 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
13884 s,@SH_TRUE@,$SH_TRUE,;t t
13885 s,@SH_FALSE@,$SH_FALSE,;t t
13886 s,@SH64_TRUE@,$SH64_TRUE,;t t
13887 s,@SH64_FALSE@,$SH64_FALSE,;t t
13888 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
13889 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
13890 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
13891 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
13892 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
13893 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
13894 s,@ALLOCA@,$ALLOCA,;t t
13895 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
13896 s,@TARGET@,$TARGET,;t t
13897 s,@TARGETDIR@,$TARGETDIR,;t t
13898 s,@toolexecdir@,$toolexecdir,;t t
13899 s,@toolexeclibdir@,$toolexeclibdir,;t t
13900 s,@LIBOBJS@,$LIBOBJS,;t t
13901 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13906 cat >>$CONFIG_STATUS <<\_ACEOF
13907 # Split the substitutions into bite-sized pieces for seds with
13908 # small command number limits, like on Digital OSF/1 and HP-UX.
13909 ac_max_sed_lines
=48
13910 ac_sed_frag
=1 # Number of current file.
13911 ac_beg
=1 # First line for current file.
13912 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13915 while $ac_more_lines; do
13916 if test $ac_beg -gt 1; then
13917 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13919 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13921 if test ! -s $tmp/subs.frag
; then
13922 ac_more_lines
=false
13924 # The purpose of the label and of the branching condition is to
13925 # speed up the sed processing (if there are no `@' at all, there
13926 # is no need to browse any of the substitutions).
13927 # These are the two extra sed commands mentioned above.
13929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13930 if test -z "$ac_sed_cmds"; then
13931 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13933 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13935 ac_sed_frag
=`expr $ac_sed_frag + 1`
13937 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13940 if test -z "$ac_sed_cmds"; then
13943 fi # test -n "$CONFIG_FILES"
13946 cat >>$CONFIG_STATUS <<\_ACEOF
13947 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13950 - |
*:- |
*:-:* ) # input from stdin
13952 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13953 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13954 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13955 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13956 * ) ac_file_in
=$ac_file.
in ;;
13959 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13960 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13962 X"$ac_file" : 'X\(//\)[^/]' \| \
13963 X"$ac_file" : 'X\(//\)$' \| \
13964 X"$ac_file" : 'X\(/\)' \| \
13965 . : '\(.\)' 2>/dev/null ||
13967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13969 /^X\(\/\/\)$/{ s//\1/; q; }
13970 /^X\(\/\).*/{ s//\1/; q; }
13972 { if $as_mkdir_p; then
13977 while test ! -d "$as_dir"; do
13978 as_dirs
="$as_dir $as_dirs"
13979 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13981 X"$as_dir" : 'X\(//\)[^/]' \| \
13982 X"$as_dir" : 'X\(//\)$' \| \
13983 X"$as_dir" : 'X\(/\)' \| \
13984 . : '\(.\)' 2>/dev/null ||
13986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13988 /^X\(\/\/\)$/{ s//\1/; q; }
13989 /^X\(\/\).*/{ s//\1/; q; }
13992 test ! -n "$as_dirs" || mkdir
$as_dirs
13993 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13995 { (exit 1); exit 1; }; }; }
13999 if test "$ac_dir" != .
; then
14000 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14001 # A "../" for each directory in $ac_dir_suffix.
14002 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14004 ac_dir_suffix
= ac_top_builddir
=
14008 .
) # No --srcdir option. We are building in place.
14010 if test -z "$ac_top_builddir"; then
14013 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14015 [\\/]* | ?
:[\\/]* ) # Absolute path.
14016 ac_srcdir
=$srcdir$ac_dir_suffix;
14017 ac_top_srcdir
=$srcdir ;;
14018 *) # Relative path.
14019 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14020 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14023 # Do not use `cd foo && pwd` to compute absolute paths, because
14024 # the directories may not exist.
14026 .
) ac_abs_builddir
="$ac_dir";;
14029 .
) ac_abs_builddir
=`pwd`;;
14030 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14031 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14034 case $ac_abs_builddir in
14035 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14037 case ${ac_top_builddir}.
in
14038 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14039 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14040 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14043 case $ac_abs_builddir in
14044 .
) ac_abs_srcdir
=$ac_srcdir;;
14047 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14048 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14049 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14052 case $ac_abs_builddir in
14053 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14055 case $ac_top_srcdir in
14056 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14057 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14058 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14064 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14065 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
14068 if test x
"$ac_file" != x-
; then
14069 { echo "$as_me:$LINENO: creating $ac_file" >&5
14070 echo "$as_me: creating $ac_file" >&6;}
14073 # Let's still pretend it is `configure' which instantiates (i.e., don't
14074 # use $as_me), people would be surprised to read:
14075 # /* config.h. Generated by config.status. */
14076 if test x
"$ac_file" = x-
; then
14079 configure_input
="$ac_file. "
14081 configure_input
=$configure_input"Generated from `echo $ac_file_in |
14082 sed 's,.*/,,'` by configure."
14084 # First look for the input files in the build tree, otherwise in the
14086 ac_file_inputs
=`IFS=:
14087 for f in $ac_file_in; do
14089 -) echo $tmp/stdin ;;
14091 # Absolute (can't be DOS-style, as IFS=:)
14092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14093 echo "$as_me: error: cannot find input file: $f" >&2;}
14094 { (exit 1); exit 1; }; }
14097 if test -f "$f"; then
14100 elif test -f "$srcdir/$f"; then
14105 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14106 echo "$as_me: error: cannot find input file: $f" >&2;}
14107 { (exit 1); exit 1; }; }
14110 done` ||
{ (exit 1); exit 1; }
14112 cat >>$CONFIG_STATUS <<_ACEOF
14116 cat >>$CONFIG_STATUS <<\_ACEOF
14118 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14119 s
,@configure_input@
,$configure_input,;t t
14120 s
,@srcdir@
,$ac_srcdir,;t t
14121 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
14122 s
,@top_srcdir@
,$ac_top_srcdir,;t t
14123 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
14124 s
,@builddir@
,$ac_builddir,;t t
14125 s
,@abs_builddir@
,$ac_abs_builddir,;t t
14126 s
,@top_builddir@
,$ac_top_builddir,;t t
14127 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
14128 s
,@INSTALL@
,$ac_INSTALL,;t t
14129 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14131 if test x"$ac_file" != x-; then
14132 mv $tmp/out $ac_file
14140 cat >>$CONFIG_STATUS <<\_ACEOF
14143 # CONFIG_HEADER section.
14146 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
14147 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14149 # ac_d sets the value in "#define NAME VALUE" lines.
14150 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14151 ac_dB
='[ ].*$,\1#\2'
14154 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14155 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14156 ac_uB
='$,\1#\2define\3'
14160 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
14161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14163 - |
*:- |
*:-:* ) # input from stdin
14165 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14166 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14167 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14168 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14169 * ) ac_file_in
=$ac_file.
in ;;
14172 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
14173 echo "$as_me: creating $ac_file" >&6;}
14175 # First look for the input files in the build tree, otherwise in the
14177 ac_file_inputs
=`IFS=:
14178 for f in $ac_file_in; do
14180 -) echo $tmp/stdin ;;
14182 # Absolute (can't be DOS-style, as IFS=:)
14183 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14184 echo "$as_me: error: cannot find input file: $f" >&2;}
14185 { (exit 1); exit 1; }; }
14186 # Do quote $f, to prevent DOS paths from being IFS'd.
14189 if test -f "$f"; then
14192 elif test -f "$srcdir/$f"; then
14197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14198 echo "$as_me: error: cannot find input file: $f" >&2;}
14199 { (exit 1); exit 1; }; }
14202 done` ||
{ (exit 1); exit 1; }
14203 # Remove the trailing spaces.
14204 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14208 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14209 # `conftest.undefs', that substitutes the proper values into
14210 # config.h.in to produce config.h. The first handles `#define'
14211 # templates, and the second `#undef' templates.
14212 # And first: Protect against being on the right side of a sed subst in
14213 # config.status. Protect against being in an unquoted here document
14214 # in config.status.
14215 rm -f conftest.defines conftest.undefs
14216 # Using a here document instead of a string reduces the quoting nightmare.
14217 # Putting comments in sed scripts is not portable.
14219 # `end' is used to avoid that the second main sed command (meant for
14220 # 0-ary CPP macros) applies to n-ary macro definitions.
14221 # See the Autoconf documentation for `clear'.
14222 cat >confdef2sed.
sed <<\_ACEOF
14227 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14229 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14232 # If some macros were called several times there might be several times
14233 # the same #defines, which is useless. Nevertheless, we may not want to
14234 # sort them, since we want the *last* AC-DEFINE to be honored.
14235 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14236 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14237 rm -f confdef2sed.sed
14239 # This sed command replaces #undef with comments. This is necessary, for
14240 # example, in the case of _POSIX_SOURCE, which is predefined and required
14241 # on some systems where configure will not decide to define it.
14242 cat >>conftest.undefs <<\_ACEOF
14243 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14246 # Break up conftest.defines because some shells have a limit on the size
14247 # of here documents, and old seds have small limits too (100 cmds).
14248 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14249 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14250 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14251 echo ' :' >>$CONFIG_STATUS
14252 rm -f conftest.tail
14253 while grep . conftest.defines >/dev/null
14255 # Write a limited-size here document to $tmp/defines.sed.
14256 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14257 # Speed up: don't consider the non `#define' lines.
14258 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14259 # Work around the forget-to-reset-the-flag bug.
14260 echo 't clr' >>$CONFIG_STATUS
14261 echo ': clr' >>$CONFIG_STATUS
14262 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
14264 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14266 mv $tmp/out $tmp/in
14268 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
14269 rm -f conftest.defines
14270 mv conftest.
tail conftest.defines
14272 rm -f conftest.defines
14273 echo ' fi # grep' >>$CONFIG_STATUS
14274 echo >>$CONFIG_STATUS
14276 # Break up conftest.undefs because some shells have a limit on the size
14277 # of here documents, and old seds have small limits too (100 cmds).
14278 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14279 rm -f conftest.
tail
14280 while grep . conftest.undefs
>/dev
/null
14282 # Write a limited-size here document to $tmp/undefs.sed.
14283 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14284 # Speed up: don't consider the non
`#undef'
14285 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14286 # Work around the forget-to-reset-the-flag bug.
14287 echo 't clr' >>$CONFIG_STATUS
14288 echo ': clr' >>$CONFIG_STATUS
14289 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14291 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14293 mv $tmp/out $tmp/in
14295 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14296 rm -f conftest.undefs
14297 mv conftest.tail conftest.undefs
14299 rm -f conftest.undefs
14301 cat >>$CONFIG_STATUS <<\_ACEOF
14302 # Let's still pretend it is `configure
' which instantiates (i.e., don't
14303 # use $as_me), people would be surprised to read:
14304 # /* config.h. Generated by config.status. */
14305 if test x
"$ac_file" = x-
; then
14306 echo "/* Generated by configure. */" >$tmp/config.h
14308 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14310 cat $tmp/in >>$tmp/config.h
14312 if test x
"$ac_file" != x-
; then
14313 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
14314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14315 echo "$as_me: $ac_file is unchanged" >&6;}
14317 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
14318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14319 X"$ac_file" : 'X\(//\)[^/]' \| \
14320 X"$ac_file" : 'X\(//\)$' \| \
14321 X"$ac_file" : 'X\(/\)' \| \
14322 . : '\(.\)' 2>/dev/null ||
14324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14326 /^X\(\/\/\)$/{ s//\1/; q; }
14327 /^X\(\/\).*/{ s//\1/; q; }
14329 { if $as_mkdir_p; then
14334 while test ! -d "$as_dir"; do
14335 as_dirs
="$as_dir $as_dirs"
14336 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14338 X"$as_dir" : 'X\(//\)[^/]' \| \
14339 X"$as_dir" : 'X\(//\)$' \| \
14340 X"$as_dir" : 'X\(/\)' \| \
14341 . : '\(.\)' 2>/dev/null ||
14343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14345 /^X\(\/\/\)$/{ s//\1/; q; }
14346 /^X\(\/\).*/{ s//\1/; q; }
14349 test ! -n "$as_dirs" || mkdir
$as_dirs
14350 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14352 { (exit 1); exit 1; }; }; }
14355 mv $tmp/config.h
$ac_file
14359 rm -f $tmp/config.h
14361 # Compute $ac_file's index in $config_headers.
14363 for _am_header
in $config_headers :; do
14364 case $_am_header in
14365 $ac_file |
$ac_file:* )
14368 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
14371 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14372 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14373 X$ac_file : 'X\(//\)[^/]' \| \
14374 X$ac_file : 'X\(//\)$' \| \
14375 X$ac_file : 'X\(/\)' \| \
14376 . : '\(.\)' 2>/dev/null ||
14378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14380 /^X\(\/\/\)$/{ s//\1/; q; }
14381 /^X\(\/\).*/{ s//\1/; q; }
14382 s/.*/./; q'`/stamp-h
$_am_stamp_count
14385 cat >>$CONFIG_STATUS <<\_ACEOF
14388 # CONFIG_LINKS section.
14391 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
14392 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
14393 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14395 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14396 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
14398 if test ! -r $srcdir/$ac_source; then
14399 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14400 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14401 { (exit 1); exit 1; }; }
14405 # Make relative symlinks.
14406 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
14407 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14408 X"$ac_dest" : 'X\(//\)[^/]' \| \
14409 X"$ac_dest" : 'X\(//\)$' \| \
14410 X"$ac_dest" : 'X\(/\)' \| \
14411 . : '\(.\)' 2>/dev/null ||
14413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14415 /^X\(\/\/\)$/{ s//\1/; q; }
14416 /^X\(\/\).*/{ s//\1/; q; }
14418 { if $as_mkdir_p; then
14419 mkdir
-p "$ac_dest_dir"
14421 as_dir
="$ac_dest_dir"
14423 while test ! -d "$as_dir"; do
14424 as_dirs
="$as_dir $as_dirs"
14425 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14427 X"$as_dir" : 'X\(//\)[^/]' \| \
14428 X"$as_dir" : 'X\(//\)$' \| \
14429 X"$as_dir" : 'X\(/\)' \| \
14430 . : '\(.\)' 2>/dev/null ||
14432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14434 /^X\(\/\/\)$/{ s//\1/; q; }
14435 /^X\(\/\).*/{ s//\1/; q; }
14438 test ! -n "$as_dirs" || mkdir
$as_dirs
14439 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14440 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14441 { (exit 1); exit 1; }; }; }
14445 if test "$ac_dest_dir" != .
; then
14446 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14447 # A "../" for each directory in $ac_dir_suffix.
14448 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14450 ac_dir_suffix
= ac_top_builddir
=
14454 .
) # No --srcdir option. We are building in place.
14456 if test -z "$ac_top_builddir"; then
14459 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14461 [\\/]* | ?
:[\\/]* ) # Absolute path.
14462 ac_srcdir
=$srcdir$ac_dir_suffix;
14463 ac_top_srcdir
=$srcdir ;;
14464 *) # Relative path.
14465 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14466 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14469 # Do not use `cd foo && pwd` to compute absolute paths, because
14470 # the directories may not exist.
14472 .
) ac_abs_builddir
="$ac_dest_dir";;
14474 case "$ac_dest_dir" in
14475 .
) ac_abs_builddir
=`pwd`;;
14476 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
14477 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
14480 case $ac_abs_builddir in
14481 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14483 case ${ac_top_builddir}.
in
14484 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14485 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14486 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14489 case $ac_abs_builddir in
14490 .
) ac_abs_srcdir
=$ac_srcdir;;
14493 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14494 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14495 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14498 case $ac_abs_builddir in
14499 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14501 case $ac_top_srcdir in
14502 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14503 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14504 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14510 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
14511 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
14514 # Try a symlink, then a hard link, then a copy.
14515 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
14516 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
14517 cp -p $srcdir/$ac_source $ac_dest ||
14518 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14519 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14520 { (exit 1); exit 1; }; }
14523 cat >>$CONFIG_STATUS <<\_ACEOF
14526 # CONFIG_COMMANDS section.
14528 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
14529 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
14530 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14531 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
14532 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14533 X"$ac_dest" : 'X\(//\)[^/]' \| \
14534 X"$ac_dest" : 'X\(//\)$' \| \
14535 X"$ac_dest" : 'X\(/\)' \| \
14536 . : '\(.\)' 2>/dev/null ||
14538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14540 /^X\(\/\/\)$/{ s//\1/; q; }
14541 /^X\(\/\).*/{ s//\1/; q; }
14543 { if $as_mkdir_p; then
14548 while test ! -d "$as_dir"; do
14549 as_dirs
="$as_dir $as_dirs"
14550 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14552 X"$as_dir" : 'X\(//\)[^/]' \| \
14553 X"$as_dir" : 'X\(//\)$' \| \
14554 X"$as_dir" : 'X\(/\)' \| \
14555 . : '\(.\)' 2>/dev/null ||
14557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14559 /^X\(\/\/\)$/{ s//\1/; q; }
14560 /^X\(\/\).*/{ s//\1/; q; }
14563 test ! -n "$as_dirs" || mkdir
$as_dirs
14564 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14565 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14566 { (exit 1); exit 1; }; }; }
14570 if test "$ac_dir" != .
; then
14571 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14572 # A "../" for each directory in $ac_dir_suffix.
14573 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14575 ac_dir_suffix
= ac_top_builddir
=
14579 .
) # No --srcdir option. We are building in place.
14581 if test -z "$ac_top_builddir"; then
14584 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14586 [\\/]* | ?
:[\\/]* ) # Absolute path.
14587 ac_srcdir
=$srcdir$ac_dir_suffix;
14588 ac_top_srcdir
=$srcdir ;;
14589 *) # Relative path.
14590 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14591 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14594 # Do not use `cd foo && pwd` to compute absolute paths, because
14595 # the directories may not exist.
14597 .
) ac_abs_builddir
="$ac_dir";;
14600 .
) ac_abs_builddir
=`pwd`;;
14601 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14602 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14605 case $ac_abs_builddir in
14606 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14608 case ${ac_top_builddir}.
in
14609 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14610 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14611 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14614 case $ac_abs_builddir in
14615 .
) ac_abs_srcdir
=$ac_srcdir;;
14618 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14619 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14620 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14623 case $ac_abs_builddir in
14624 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14626 case $ac_top_srcdir in
14627 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14628 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14629 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14634 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14635 echo "$as_me: executing $ac_dest commands" >&6;}
14638 # Only add multilib support code if we just rebuilt the top-level
14640 case " $CONFIG_FILES " in
14642 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
14645 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
14646 # Strip MF so we end up with the name of the file.
14647 mf
=`echo "$mf" | sed -e 's/:.*$//'`
14648 # Check whether this is an Automake generated Makefile or not.
14649 # We used to match only the files named `Makefile.in', but
14650 # some people rename them; so instead we look at the file content.
14651 # Grep'ing the first line is not enough: some people post-process
14652 # each Makefile.in and add a new line on top of each file to say so.
14653 # So let's grep whole file.
14654 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
14655 dirpart
=`(dirname "$mf") 2>/dev/null ||
14656 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14657 X"$mf" : 'X\(//\)[^/]' \| \
14658 X"$mf" : 'X\(//\)$' \| \
14659 X"$mf" : 'X\(/\)' \| \
14660 . : '\(.\)' 2>/dev/null ||
14662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14664 /^X\(\/\/\)$/{ s//\1/; q; }
14665 /^X\(\/\).*/{ s//\1/; q; }
14670 # Extract the definition of DEPDIR, am__include, and am__quote
14671 # from the Makefile without running `make'.
14672 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
14673 test -z "$DEPDIR" && continue
14674 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
14675 test -z "am__include" && continue
14676 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
14677 # When using ansi2knr, U may be empty or an underscore; expand it
14678 U
=`sed -n 's/^U = //p' < "$mf"`
14679 # Find all dependency output files, they are included files with
14680 # $(DEPDIR) in their names. We invoke sed twice because it is the
14681 # simplest approach to changing $(DEPDIR) to its actual value in the
14683 for file in `sed -n "
14684 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14685 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14686 # Make sure the directory exists.
14687 test -f "$dirpart/$file" && continue
14688 fdir
=`(dirname "$file") 2>/dev/null ||
14689 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14690 X"$file" : 'X\(//\)[^/]' \| \
14691 X"$file" : 'X\(//\)$' \| \
14692 X"$file" : 'X\(/\)' \| \
14693 . : '\(.\)' 2>/dev/null ||
14695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14697 /^X\(\/\/\)$/{ s//\1/; q; }
14698 /^X\(\/\).*/{ s//\1/; q; }
14700 { if $as_mkdir_p; then
14701 mkdir
-p $dirpart/$fdir
14703 as_dir
=$dirpart/$fdir
14705 while test ! -d "$as_dir"; do
14706 as_dirs
="$as_dir $as_dirs"
14707 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14709 X"$as_dir" : 'X\(//\)[^/]' \| \
14710 X"$as_dir" : 'X\(//\)$' \| \
14711 X"$as_dir" : 'X\(/\)' \| \
14712 . : '\(.\)' 2>/dev/null ||
14714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14716 /^X\(\/\/\)$/{ s//\1/; q; }
14717 /^X\(\/\).*/{ s//\1/; q; }
14720 test ! -n "$as_dirs" || mkdir
$as_dirs
14721 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14722 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14723 { (exit 1); exit 1; }; }; }
14725 # echo "creating $dirpart/$file"
14726 echo '# dummy' > "$dirpart/$file"
14732 # See if we are running on zsh, and set the options which allow our
14733 # commands through without removal of \ escapes.
14734 if test -n "${ZSH_VERSION+set}" ; then
14735 setopt NO_GLOB_SUBST
14738 cfgfile
="${ofile}T"
14739 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14742 cat <<_LT_EOF >> "$cfgfile"
14745 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14746 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14748 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14750 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14751 # 2006, 2007 Free Software Foundation, Inc.
14753 # This file is part of GNU Libtool:
14754 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14756 # This program is free software; you can redistribute it and/or modify
14757 # it under the terms of the GNU General Public License as published by
14758 # the Free Software Foundation; either version 2 of the License, or
14759 # (at your option) any later version.
14761 # This program is distributed in the hope that it will be useful, but
14762 # WITHOUT ANY WARRANTY; without even the implied warranty of
14763 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14764 # General Public License for more details.
14766 # You should have received a copy of the GNU General Public License
14767 # along with this program; if not, a copy can be downloaded from
14768 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14769 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14770 # MA 02110-1301, USA.
14772 # As a special exception to the GNU General Public License, if you
14773 # distribute this file as part of a program that contains a
14774 # configuration script generated by Autoconf, you may include it under
14775 # the same distribution terms that you use for the rest of that program.
14778 # The names of the tagged configurations supported by this script.
14781 # ### BEGIN LIBTOOL CONFIG
14783 # Which release of libtool.m4 was used?
14784 macro_version=$macro_version
14785 macro_revision=$macro_revision
14787 # Whether or not to build shared libraries.
14788 build_libtool_libs=$enable_shared
14790 # Whether or not to build static libraries.
14791 build_old_libs=$enable_static
14793 # What type of objects to build.
14796 # Whether or not to optimize for fast installation.
14797 fast_install=$enable_fast_install
14800 host_alias=$host_alias
14804 # The build system.
14805 build_alias=$build_alias
14809 # A sed program that does not truncate output.
14812 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14813 Xsed="\$SED -e 1s/^X//"
14815 # A grep program that handles long lines.
14821 # A literal string matcher.
14824 # A BSD- or MS-compatible name lister.
14827 # Whether we need soft or hard links.
14830 # What is the maximum length of a command?
14831 max_cmd_len=$max_cmd_len
14833 # Object file suffix (normally "o").
14836 # Executable file suffix (normally "").
14839 # whether the shell understands "unset".
14842 # turn spaces into newlines.
14845 # turn newlines into spaces.
14848 # How to create reloadable object files.
14849 reload_flag=$lt_reload_flag
14850 reload_cmds=$lt_reload_cmds
14852 # Method to check whether dependent libraries are shared objects.
14853 deplibs_check_method=$lt_deplibs_check_method
14855 # Command to use when deplibs_check_method == "file_magic".
14856 file_magic_cmd=$lt_file_magic_cmd
14860 AR_FLAGS=$lt_AR_FLAGS
14862 # A symbol stripping program.
14865 # Commands used to install an old-style archive.
14867 old_postinstall_cmds=$lt_old_postinstall_cmds
14868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14873 # LTCC compiler flags.
14874 LTCFLAGS=$lt_CFLAGS
14876 # Take the output of nm and produce a listing of raw symbols and C names.
14877 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14879 # Transform the output of nm in a proper C declaration.
14880 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14882 # Transform the output of nm in a C name address pair.
14883 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14885 # The name of the directory that contains temporary libtool files.
14888 # Shell to use when invoking shell scripts.
14891 # An echo program that does not interpret backslashes.
14894 # Used to examine libraries when file_magic_cmd begins with "file".
14895 MAGIC_CMD=$MAGIC_CMD
14897 # Must we lock files when doing compilation?
14898 need_locks=$lt_need_locks
14900 # Old archive suffix (normally "a").
14903 # Shared library suffix (normally ".so").
14904 shrext_cmds=$lt_shrext_cmds
14906 # The commands to extract the exported symbol list from a shared archive.
14907 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14909 # Variables whose values should be saved in libtool wrapper scripts and
14910 # restored at link time.
14911 variables_saved_for_relink=$lt_variables_saved_for_relink
14913 # Do we need the "lib" prefix for modules?
14914 need_lib_prefix=$need_lib_prefix
14916 # Do we need a version for libraries?
14917 need_version=$need_version
14919 # Library versioning type.
14920 version_type=$version_type
14922 # Shared library runtime path variable.
14923 runpath_var=$runpath_var
14925 # Shared library path variable.
14926 shlibpath_var=$shlibpath_var
14928 # Is shlibpath searched before the hard-coded library search path?
14929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14931 # Format of library name prefix.
14932 libname_spec=$lt_libname_spec
14934 # List of archive names. First name is the real one, the rest are links.
14935 # The last name is the one that the linker finds with -lNAME
14936 library_names_spec=$lt_library_names_spec
14938 # The coded name of the library, if different from the real name.
14939 soname_spec=$lt_soname_spec
14941 # Command to use after installation of a shared archive.
14942 postinstall_cmds=$lt_postinstall_cmds
14944 # Command to use after uninstallation of a shared archive.
14945 postuninstall_cmds=$lt_postuninstall_cmds
14947 # Commands used to finish a libtool library installation in a directory.
14948 finish_cmds=$lt_finish_cmds
14950 # As "finish_cmds", except a single script fragment to be evaled but
14952 finish_eval=$lt_finish_eval
14954 # Whether we should hardcode library paths into libraries.
14955 hardcode_into_libs=$hardcode_into_libs
14957 # Compile-time system search path for libraries.
14958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14960 # Run-time system search path for libraries.
14961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14963 # Whether dlopen is supported.
14964 dlopen_support=$enable_dlopen
14966 # Whether dlopen of programs is supported.
14967 dlopen_self=$enable_dlopen_self
14969 # Whether dlopen of statically linked programs is supported.
14970 dlopen_self_static=$enable_dlopen_self_static
14972 # Commands to strip libraries.
14973 old_striplib=$lt_old_striplib
14974 striplib=$lt_striplib
14977 # The linker used to build libraries.
14980 # Commands used to build an old-style archive.
14981 old_archive_cmds=$lt_old_archive_cmds
14983 # A language specific compiler.
14986 # Is the compiler the GNU compiler?
14989 # Compiler flag to turn off builtin functions.
14990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14992 # How to pass a linker flag through the compiler.
14993 wl=$lt_lt_prog_compiler_wl
14995 # Additional compiler flags for building library objects.
14996 pic_flag=$lt_lt_prog_compiler_pic
14998 # Compiler flag to prevent dynamic linking.
14999 link_static_flag=$lt_lt_prog_compiler_static
15001 # Does compiler simultaneously support -c and -o options?
15002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15004 # Whether or not to add -lc for building shared libraries.
15005 build_libtool_need_lc=$archive_cmds_need_lc
15007 # Whether or not to disallow shared libs when runtime libs are static.
15008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15010 # Compiler flag to allow reflexive dlopens.
15011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15013 # Compiler flag to generate shared objects directly from archives.
15014 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15016 # Whether the compiler copes with passing no objects directly.
15017 compiler_needs_object=$lt_compiler_needs_object
15019 # Create an old-style archive from a shared archive.
15020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15022 # Create a temporary old-style archive to link instead of a shared archive.
15023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15025 # Commands used to build a shared archive.
15026 archive_cmds=$lt_archive_cmds
15027 archive_expsym_cmds=$lt_archive_expsym_cmds
15029 # Commands used to build a loadable module if different from building
15030 # a shared archive.
15031 module_cmds=$lt_module_cmds
15032 module_expsym_cmds=$lt_module_expsym_cmds
15034 # Whether we are building with GNU ld or not.
15035 with_gnu_ld=$lt_with_gnu_ld
15037 # Flag that allows shared libraries with undefined symbols to be built.
15038 allow_undefined_flag=$lt_allow_undefined_flag
15040 # Flag that enforces no undefined symbols.
15041 no_undefined_flag=$lt_no_undefined_flag
15043 # Flag to hardcode \$libdir into a binary during linking.
15044 # This must work even if \$libdir does not exist
15045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15047 # If ld is used when linking, flag to hardcode \$libdir into a binary
15048 # during linking. This must work even if \$libdir does not exist.
15049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15051 # Whether we need a single "-rpath" flag with a separated argument.
15052 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15055 # DIR into the resulting binary.
15056 hardcode_direct=$hardcode_direct
15058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15059 # DIR into the resulting binary and the resulting library dependency is
15060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15061 # library is relocated.
15062 hardcode_direct_absolute=$hardcode_direct_absolute
15064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15065 # into the resulting binary.
15066 hardcode_minus_L=$hardcode_minus_L
15068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15069 # into the resulting binary.
15070 hardcode_shlibpath_var=$hardcode_shlibpath_var
15072 # Set to "yes" if building a shared library automatically hardcodes DIR
15073 # into the library and all subsequent libraries and executables linked
15075 hardcode_automatic=$hardcode_automatic
15077 # Set to yes if linker adds runtime paths of dependent libraries
15078 # to runtime path list.
15079 inherit_rpath=$inherit_rpath
15081 # Whether libtool must link a program against all its dependency libraries.
15082 link_all_deplibs=$link_all_deplibs
15084 # Fix the shell variable \$srcfile for the compiler.
15085 fix_srcfile_path=$lt_fix_srcfile_path
15087 # Set to "yes" if exported symbols are required.
15088 always_export_symbols=$always_export_symbols
15090 # The commands to list exported symbols.
15091 export_symbols_cmds=$lt_export_symbols_cmds
15093 # Symbols that should not be listed in the preloaded symbols.
15094 exclude_expsyms=$lt_exclude_expsyms
15096 # Symbols that must always be exported.
15097 include_expsyms=$lt_include_expsyms
15099 # Commands necessary for linking programs (against libraries) with templates.
15100 prelink_cmds=$lt_prelink_cmds
15102 # Specify filename containing input files.
15103 file_list_spec=$lt_file_list_spec
15105 # How to hardcode a shared library path into an executable.
15106 hardcode_action=$hardcode_action
15108 # ### END LIBTOOL CONFIG
15114 cat <<\_LT_EOF
>> "$cfgfile"
15115 # AIX sometimes has problems with the GCC collect2 program. For some
15116 # reason, if we set the COLLECT_NAMES environment variable, the problems
15117 # vanish in a puff of smoke.
15118 if test "X${COLLECT_NAMES+set}" != Xset
; then
15120 export COLLECT_NAMES
15127 ltmain
="$ac_aux_dir/ltmain.sh"
15130 # We use sed instead of cat because bash on DJGPP gets confused if
15131 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15132 # text mode, it properly converts lines to CR/LF. This bash problem
15133 # is reportedly fixed, but why not run on old versions too?
15134 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15135 ||
(rm -f "$cfgfile"; exit 1)
15139 cat << \_LT_EOF
>> "$cfgfile"
15140 # func_dirname file append nondir_replacement
15141 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15142 # otherwise set result to NONDIR_REPLACEMENT.
15146 */*) func_dirname_result
="${1%/*}${2}" ;;
15147 * ) func_dirname_result
="${3}" ;;
15151 # func_basename file
15154 func_basename_result
="${1##*/}"
15157 # func_stripname prefix suffix name
15158 # strip PREFIX and SUFFIX off of NAME.
15159 # PREFIX and SUFFIX must not contain globbing or regex special
15160 # characters, hashes, percent signs, but SUFFIX may contain a leading
15161 # dot (in which case that matches only a dot).
15164 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15165 # positional parameters, so assign one to ordinary parameter first.
15166 func_stripname_result
=${3}
15167 func_stripname_result
=${func_stripname_result#"${1}"}
15168 func_stripname_result
=${func_stripname_result%"${2}"}
15174 func_opt_split_opt
=${1%%=*}
15175 func_opt_split_arg
=${1#*=}
15182 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
15183 *) func_lo2o_result
=${1} ;;
15188 *) # Bourne compatible functions.
15189 cat << \_LT_EOF
>> "$cfgfile"
15190 # func_dirname file append nondir_replacement
15191 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15192 # otherwise set result to NONDIR_REPLACEMENT.
15195 # Extract subdirectory from the argument.
15196 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15197 if test "X$func_dirname_result" = "X${1}"; then
15198 func_dirname_result
="${3}"
15200 func_dirname_result
="$func_dirname_result${2}"
15204 # func_basename file
15207 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
15210 # func_stripname prefix suffix name
15211 # strip PREFIX and SUFFIX off of NAME.
15212 # PREFIX and SUFFIX must not contain globbing or regex special
15213 # characters, hashes, percent signs, but SUFFIX may contain a leading
15214 # dot (in which case that matches only a dot).
15215 # func_strip_suffix prefix name
15219 .
*) func_stripname_result
=`$ECHO "X${3}" \
15220 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15221 *) func_stripname_result
=`$ECHO "X${3}" \
15222 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15227 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
15228 my_sed_long_arg
='1s/^-[^=]*=//'
15233 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15234 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15240 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15245 case $lt_shell_append in
15247 cat << \_LT_EOF
>> "$cfgfile"
15249 # func_append var value
15250 # Append VALUE to the end of shell variable VAR.
15258 cat << \_LT_EOF
>> "$cfgfile"
15260 # func_append var value
15261 # Append VALUE to the end of shell variable VAR.
15271 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15272 ||
(rm -f "$cfgfile"; exit 1)
15274 mv -f "$cfgfile" "$ofile" ||
15275 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15279 include
) test -d include || mkdir include
;;
15281 test -d src || mkdir src
15282 test -d src
/$TARGETDIR || mkdir src
/$TARGETDIR
15288 cat >>$CONFIG_STATUS <<\_ACEOF
15290 { (exit 0); exit 0; }
15292 chmod +x
$CONFIG_STATUS
15293 ac_clean_files
=$ac_clean_files_save
15296 # configure is writing to config.log, and then calls config.status.
15297 # config.status does its own redirection, appending to config.log.
15298 # Unfortunately, on DOS this fails, as config.log is still kept open
15299 # by configure, so config.status won't be able to write to it; its
15300 # output is simply discarded. So we exec the FD to /dev/null,
15301 # effectively closing config.log, so it can be properly (re)opened and
15302 # appended to by config.status. When coming back to configure, we
15303 # need to make the FD available again.
15304 if test "$no_create" != yes; then
15306 ac_config_status_args
=
15307 test "$silent" = yes &&
15308 ac_config_status_args
="$ac_config_status_args --quiet"
15310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15313 # would make configure fail if this is the last instruction.
15314 $ac_cs_success ||
{ (exit 1); exit 1; }