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 # differences in whitespace do not lead to failure.
1424 ac_old_val_w=`echo x $ac_old_val`
1425 ac_new_val_w=`echo x $ac_new_val`
1426 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1427 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1428 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1429 ac_cache_corrupted=:
1431 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1432 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1433 eval $ac_var=\$ac_old_val
1435 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1436 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1437 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1438 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1454 if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1458 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1465 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494 ac_config_headers="$ac_config_headers fficonfig.h"
1497 # Default to --enable-multilib
1498 # Check whether --enable-multilib or --disable-multilib was given.
1499 if test "${enable_multilib+set}" = set; then
1500 enableval="$enable_multilib"
1501 case "$enableval" in
1502 yes) multilib=yes ;;
1504 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1505 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1506 { (exit 1); exit 1; }; } ;;
1512 # We may get other options which we leave undocumented:
1513 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1514 # See config-ml.in if you want the gory details.
1516 if test "$srcdir" = "."; then
1517 if test "$with_target_subdir" != "."; then
1518 multi_basedir="$srcdir/$with_multisrctop../.."
1520 multi_basedir="$srcdir/$with_multisrctop.."
1523 multi_basedir="$srcdir/.."
1527 # Even if the default multilib is not a cross compilation,
1528 # it may be that some of the other multilibs are.
1529 if test $cross_compiling = no && test $multilib = yes \
1530 && test "x${with_multisubdir}" != x ; then
1531 cross_compiling=maybe
1534 ac_config_commands="$ac_config_commands default-1"
1538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1539 if test -f $ac_dir/install-sh; then
1541 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 elif test -f $ac_dir/install.sh; then
1545 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 elif test -f $ac_dir/shtool; then
1549 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 if test -z "$ac_aux_dir"; then
1554 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1555 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1556 { (exit 1); exit 1; }; }
1558 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562 # Make sure we can run config.sub.
1563 $ac_config_sub sun4 >/dev/null 2>&1 ||
1564 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1565 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1566 { (exit 1); exit 1; }; }
1568 echo "$as_me:$LINENO: checking build system type" >&5
1569 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1570 if test "${ac_cv_build+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 ac_cv_build_alias=$build_alias
1574 test -z "$ac_cv_build_alias" &&
1575 ac_cv_build_alias=`$ac_config_guess`
1576 test -z "$ac_cv_build_alias" &&
1577 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1578 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1579 { (exit 1); exit 1; }; }
1580 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1586 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1587 echo "${ECHO_T}$ac_cv_build" >&6
1589 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1590 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1591 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1594 echo "$as_me:$LINENO: checking host system type" >&5
1595 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1596 if test "${ac_cv_host+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 ac_cv_host_alias=$host_alias
1600 test -z "$ac_cv_host_alias" &&
1601 ac_cv_host_alias=$ac_cv_build_alias
1602 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1604 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1609 echo "${ECHO_T}$ac_cv_host" >&6
1611 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1612 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1613 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1616 echo "$as_me:$LINENO: checking target system type" >&5
1617 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1618 if test "${ac_cv_target+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_target_alias=$target_alias
1622 test "x$ac_cv_target_alias" = "x" &&
1623 ac_cv_target_alias=$ac_cv_host_alias
1624 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1626 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1630 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1631 echo "${ECHO_T}$ac_cv_target" >&6
1632 target=$ac_cv_target
1633 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1634 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1635 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1638 # The aliases save the names the user supplied, while $host etc.
1639 # will get canonicalized.
1640 test -n "$target_alias" &&
1641 test "$program_prefix$program_suffix$program_transform_name" = \
1643 program_prefix=${target_alias}-
1644 target_alias=${target_alias-$host_alias}
1646 . ${srcdir}/configure.host
1648 am__api_version="1.9"
1649 # Find a good install program. We prefer a C program (faster),
1650 # so one script is as good as another. But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # OS/2's system install, which has a completely different semantic
1661 # ./install, which can be erroneously created by make from ./install.sh.
1662 # Reject install programs that cannot install multiple files.
1663 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1664 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1665 if test -z "$INSTALL"; then
1666 if test "${ac_cv_path_install+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir
=.
1674 # Account for people who put trailing slashes in PATH elements.
1676 .
/ | .
// |
/cC
/* | \
1677 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1678 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1681 # OSF1 and SCO ODT 3.0 have their own names for install.
1682 # Don't use installbsd from OSF since it installs stuff as root
1684 for ac_prog
in ginstall scoinst
install; do
1685 for ac_exec_ext
in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1687 if test $ac_prog = install &&
1688 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1689 # AIX install. It has an incompatible calling convention.
1691 elif test $ac_prog = install &&
1692 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1693 # program-specific install script used by HP pwplus--don't use.
1696 rm -rf conftest.one conftest.two conftest.dir
1697 echo one
> conftest.one
1698 echo two
> conftest.two
1700 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
1701 test -s conftest.one
&& test -s conftest.two
&&
1702 test -s conftest.dir
/conftest.one
&&
1703 test -s conftest.dir
/conftest.two
1705 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1716 rm -rf conftest.one conftest.two conftest.dir
1719 if test "${ac_cv_path_install+set}" = set; then
1720 INSTALL
=$ac_cv_path_install
1722 # As a last resort, use the slow shell script. Don't cache a
1723 # value for INSTALL within a source directory, because that will
1724 # break other packages using the cache if that directory is
1725 # removed, or if the value is a relative name.
1726 INSTALL
=$ac_install_sh
1729 echo "$as_me:$LINENO: result: $INSTALL" >&5
1730 echo "${ECHO_T}$INSTALL" >&6
1732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1733 # It thinks the first close brace ends the variable substitution.
1734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1738 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1740 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1741 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1744 echo timestamp
> conftest.
file
1745 # Do `set' in a subshell so we don't clobber the current shell's
1746 # arguments. Must try -L first in case configure is actually a
1747 # symlink; some systems play weird games with the mod time of symlinks
1748 # (eg FreeBSD returns the mod time of the symlink's containing
1751 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1752 if test "$*" = "X"; then
1754 set X
`ls -t $srcdir/configure conftest.file`
1757 if test "$*" != "X $srcdir/configure conftest.file" \
1758 && test "$*" != "X conftest.file $srcdir/configure"; then
1760 # If neither matched, then we have a broken ls. This can happen
1761 # if, for instance, CONFIG_SHELL is bash and it inherits a
1762 # broken ls alias from the environment. This has actually
1763 # happened. Such a system could not be considered "sane".
1764 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1765 alias in your environment" >&5
1766 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1767 alias in your environment" >&2;}
1768 { (exit 1); exit 1; }; }
1771 test "$2" = conftest.
file
1777 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1778 Check your system clock" >&5
1779 echo "$as_me: error: newly created file is older than distributed files!
1780 Check your system clock" >&2;}
1781 { (exit 1); exit 1; }; }
1783 echo "$as_me:$LINENO: result: yes" >&5
1784 echo "${ECHO_T}yes" >&6
1785 test "$program_prefix" != NONE
&&
1786 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1787 # Use a double $ so make ignores it.
1788 test "$program_suffix" != NONE
&&
1789 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1790 # Double any \ or $. echo might interpret backslashes.
1791 # By default was `s,x,x', remove it if useless.
1792 cat <<\_ACEOF
>conftest.
sed
1793 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1795 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1798 # expand $ac_aux_dir to an absolute path
1799 am_aux_dir
=`cd $ac_aux_dir && pwd`
1801 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1802 # Use eval to expand $SHELL
1803 if eval "$MISSING --run true"; then
1804 am_missing_run
="$MISSING --run "
1807 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1808 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1811 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1812 # We used to keeping the `.' as first argument, in order to
1813 # allow $(mkdir_p) to be used without argument. As in
1814 # $(mkdir_p) $(somedir)
1815 # where $(somedir) is conditionally defined. However this is wrong
1817 # 1. if the package is installed by a user who cannot write `.'
1818 # make install will fail,
1819 # 2. the above comment should most certainly read
1820 # $(mkdir_p) $(DESTDIR)$(somedir)
1821 # so it does not work when $(somedir) is undefined and
1822 # $(DESTDIR) is not.
1823 # To support the latter case, we have to write
1824 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1825 # so the `.' trick is pointless.
1826 mkdir_p
='mkdir -p --'
1828 # On NextStep and OpenStep, the `mkdir' command does not
1829 # recognize any option. It will interpret all options as
1830 # directories to create, and then abort because `.' already
1832 for d
in .
/-p .
/--version;
1834 test -d $d && rmdir $d
1836 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1837 if test -f "$ac_aux_dir/mkinstalldirs"; then
1838 mkdir_p
='$(mkinstalldirs)'
1840 mkdir_p
='$(install_sh) -d'
1844 for ac_prog
in gawk mawk nawk
awk
1846 # Extract the first word of "$ac_prog", so it can be a program name with args.
1847 set dummy
$ac_prog; ac_word
=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_AWK+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 if test -n "$AWK"; then
1854 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir
=.
1861 for ac_exec_ext
in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_AWK
="$ac_prog"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 if test -n "$AWK"; then
1874 echo "$as_me:$LINENO: result: $AWK" >&5
1875 echo "${ECHO_T}$AWK" >&6
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1881 test -n "$AWK" && break
1884 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1885 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1886 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1887 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 cat >conftest.
make <<\_ACEOF
1892 @
echo 'ac_maketemp="$(MAKE)"'
1894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1895 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1896 if test -n "$ac_maketemp"; then
1897 eval ac_cv_prog_make_
${ac_make}_set
=yes
1899 eval ac_cv_prog_make_
${ac_make}_set
=no
1903 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1904 echo "$as_me:$LINENO: result: yes" >&5
1905 echo "${ECHO_T}yes" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 SET_MAKE
="MAKE=${MAKE-make}"
1913 rm -rf .tst
2>/dev
/null
1914 mkdir .tst
2>/dev
/null
1915 if test -d .tst
; then
1920 rmdir .tst
2>/dev
/null
1922 # test to see if srcdir already configured
1923 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1924 test -f $srcdir/config.status
; then
1925 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1926 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1927 { (exit 1); exit 1; }; }
1930 # test whether we have cygpath
1931 if test -z "$CYGPATH_W"; then
1932 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1933 CYGPATH_W
='cygpath -w'
1940 # Define the identity of the package.
1945 cat >>confdefs.h
<<_ACEOF
1946 #define PACKAGE "$PACKAGE"
1950 cat >>confdefs.h
<<_ACEOF
1951 #define VERSION "$VERSION"
1954 # Some tools Automake needs.
1956 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1959 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1962 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1965 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1968 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1970 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1972 # Installed binaries are usually stripped using `strip' when the user
1973 # run `make install-strip'. However `strip' might not be the right
1974 # tool to use in cross-compilation environments, therefore Automake
1975 # will honor the `STRIP' environment variable to overrule this program.
1976 if test "$cross_compiling" != no
; then
1977 if test -n "$ac_tool_prefix"; then
1978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1979 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_STRIP+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$STRIP"; then
1986 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir
=.
1993 for ac_exec_ext
in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 STRIP
=$ac_cv_prog_STRIP
2005 if test -n "$STRIP"; then
2006 echo "$as_me:$LINENO: result: $STRIP" >&5
2007 echo "${ECHO_T}$STRIP" >&6
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2014 if test -z "$ac_cv_prog_STRIP"; then
2016 # Extract the first word of "strip", so it can be a program name with args.
2017 set dummy strip
; ac_word
=$2
2018 echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$ac_ct_STRIP"; then
2024 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir
=.
2031 for ac_exec_ext
in '' $ac_executable_extensions; do
2032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033 ac_cv_prog_ac_ct_STRIP
="strip"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
2043 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2044 if test -n "$ac_ct_STRIP"; then
2045 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2046 echo "${ECHO_T}$ac_ct_STRIP" >&6
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2054 STRIP
="$ac_cv_prog_STRIP"
2058 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2060 # We need awk for the "check" target. The system "awk" is bad on
2062 # Always define AMTAR for backward compatibility.
2064 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2066 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2073 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2074 # We must force CC to /not/ be precious variables; otherwise
2075 # the wrong, non-multilib-adjusted value will be used in multilibs.
2076 # As a side effect, we have to subst CFLAGS ourselves.
2081 ac_cpp
='$CPP $CPPFLAGS'
2082 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2085 if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2087 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC
="$CC" # Let the user override the test.
2096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2100 test -z "$as_dir" && as_dir
=.
2101 for ac_exec_ext
in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 if test -n "$CC"; then
2114 echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2122 if test -z "$ac_cv_prog_CC"; then
2124 # Extract the first word of "gcc", so it can be a program name with args.
2125 set dummy gcc
; ac_word
=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir
=.
2139 for ac_exec_ext
in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_CC
="gcc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 echo "${ECHO_T}$ac_ct_CC" >&6
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2164 if test -z "$CC"; then
2165 if test -n "$ac_tool_prefix"; then
2166 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2167 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC
="$CC" # Let the user override the test.
2176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2180 test -z "$as_dir" && as_dir
=.
2181 for ac_exec_ext
in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 if test -n "$CC"; then
2194 echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6
2197 echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2202 if test -z "$ac_cv_prog_CC"; then
2204 # Extract the first word of "cc", so it can be a program name with args.
2205 set dummy cc
; ac_word
=$2
2206 echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 if test -n "$ac_ct_CC"; then
2212 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir
=.
2219 for ac_exec_ext
in '' $ac_executable_extensions; do
2220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221 ac_cv_prog_ac_ct_CC
="cc"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2231 if test -n "$ac_ct_CC"; then
2232 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233 echo "${ECHO_T}$ac_ct_CC" >&6
2235 echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6
2245 if test -z "$CC"; then
2246 # Extract the first word of "cc", so it can be a program name with args.
2247 set dummy cc
; ac_word
=$2
2248 echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC
="$CC" # Let the user override the test.
2257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir
=.
2262 for ac_exec_ext
in '' $ac_executable_extensions; do
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2265 ac_prog_rejected
=yes
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275 if test $ac_prog_rejected = yes; then
2276 # We found a bogon in the path, so make sure we never use it.
2277 set dummy
$ac_cv_prog_CC
2279 if test $# != 0; then
2280 # We chose a different compiler from the bogus one.
2281 # However, it has the same basename, so the bogon will be chosen
2282 # first if we set CC to just the basename; use the full file name.
2284 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2290 if test -n "$CC"; then
2291 echo "$as_me:$LINENO: result: $CC" >&5
2292 echo "${ECHO_T}$CC" >&6
2294 echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6
2299 if test -z "$CC"; then
2300 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2304 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2305 echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307 if test "${ac_cv_prog_CC+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 if test -n "$CC"; then
2311 ac_cv_prog_CC
="$CC" # Let the user override the test.
2313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2317 test -z "$as_dir" && as_dir
=.
2318 for ac_exec_ext
in '' $ac_executable_extensions; do
2319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2320 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 if test -n "$CC"; then
2331 echo "$as_me:$LINENO: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6
2334 echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6
2338 test -n "$CC" && break
2341 if test -z "$CC"; then
2345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy
$ac_prog; ac_word
=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$ac_ct_CC"; then
2353 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir
=.
2360 for ac_exec_ext
in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 ac_cv_prog_ac_ct_CC
="$ac_prog"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2372 if test -n "$ac_ct_CC"; then
2373 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2374 echo "${ECHO_T}$ac_ct_CC" >&6
2376 echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2380 test -n "$ac_ct_CC" && break
2389 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: no acceptable C compiler found in \$PATH
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2395 # Provide some information about the compiler.
2396 echo "$as_me:$LINENO:" \
2397 "checking for C compiler version" >&5
2398 ac_compiler
=`set X $ac_compile; echo $2`
2399 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2400 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }
2404 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2405 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }
2409 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2410 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }
2415 cat >conftest.
$ac_ext <<_ACEOF
2418 cat confdefs.h
>>conftest.
$ac_ext
2419 cat >>conftest.
$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2430 ac_clean_files_save
=$ac_clean_files
2431 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2432 # Try to create an executable without -o first, disregard a.out.
2433 # It will help us diagnose broken compilers, and finding out an intuition
2435 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2436 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2437 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2438 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2439 (eval $ac_link_default) 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; then
2443 # Find the output, starting from the most likely. This scheme is
2444 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2447 # Be careful to initialize this variable, since it used to be cached.
2448 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2450 # b.out is created by i960 compilers.
2451 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2453 test -f "$ac_file" ||
continue
2455 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2458 # This is the source file.
2461 # We found the default executable, but exeext='' is most
2465 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466 # FIXME: I believe we export ac_cv_exeext for Libtool,
2467 # but it would be cool to find out if it's true. Does anybody
2468 # maintain Libtool? --akim.
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.
$ac_ext >&5
2479 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: C compiler cannot create executables
2482 See \`config.log' for more details." >&2;}
2483 { (exit 77); exit 77; }; }
2486 ac_exeext
=$ac_cv_exeext
2487 echo "$as_me:$LINENO: result: $ac_file" >&5
2488 echo "${ECHO_T}$ac_file" >&6
2490 # Check the compiler produces executables we can run. If not, either
2491 # the compiler is broken, or we cross compile.
2492 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2493 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2494 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2495 # If not cross compiling, check that we can run a simple program.
2496 if test "$cross_compiling" != yes; then
2497 if { ac_try
='./$ac_file'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2505 if test "$cross_compiling" = maybe
; then
2508 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2509 If you meant to cross compile, use \`--host'.
2510 See \`config.log' for more details." >&5
2511 echo "$as_me: error: cannot run C compiled programs.
2512 If you meant to cross compile, use \`--host'.
2513 See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }
2518 echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6
2521 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2522 ac_clean_files
=$ac_clean_files_save
2523 # Check the compiler produces executables we can run. If not, either
2524 # the compiler is broken, or we cross compile.
2525 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2526 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2527 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2528 echo "${ECHO_T}$cross_compiling" >&6
2530 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2531 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533 (eval $ac_link) 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; then
2537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2539 # work properly (i.e., refer to `conftest.exe'), while it won't with
2541 for ac_file
in conftest.exe conftest conftest.
*; do
2542 test -f "$ac_file" ||
continue
2544 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2545 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2553 See \`config.log' for more details." >&5
2554 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&2;}
2556 { (exit 1); exit 1; }; }
2559 rm -f conftest
$ac_cv_exeext
2560 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2561 echo "${ECHO_T}$ac_cv_exeext" >&6
2563 rm -f conftest.
$ac_ext
2564 EXEEXT
=$ac_cv_exeext
2566 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2567 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2568 if test "${ac_cv_objext+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 cat >conftest.
$ac_ext <<_ACEOF
2574 cat confdefs.h
>>conftest.
$ac_ext
2575 cat >>conftest.
$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2586 rm -f conftest.o conftest.obj
2587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2594 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2595 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.
$ac_ext >&5
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2610 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2612 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613 echo "${ECHO_T}$ac_cv_objext" >&6
2614 OBJEXT
=$ac_cv_objext
2616 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.
$ac_ext <<_ACEOF
2624 cat confdefs.h
>>conftest.
$ac_ext
2625 cat >>conftest.
$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2639 rm -f conftest.
$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2643 grep -v '^ *+' conftest.er1
>conftest.err
2645 cat conftest.err
>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try
='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try
='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.
$ac_ext >&5
2668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2669 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2672 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2673 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2674 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2675 ac_test_CFLAGS
=${CFLAGS+set}
2676 ac_save_CFLAGS
=$CFLAGS
2678 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2679 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2680 if test "${ac_cv_prog_cc_g+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 cat >conftest.
$ac_ext <<_ACEOF
2686 cat confdefs.h
>>conftest.
$ac_ext
2687 cat >>conftest.
$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.
$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2702 grep -v '^ *+' conftest.er1
>conftest.err
2704 cat conftest.err
>&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try
='test -z "$ac_c_werror_flag"
2708 || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try
='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.
$ac_ext >&5
2727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2729 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2731 if test "$ac_test_CFLAGS" = set; then
2732 CFLAGS
=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734 if test "$GCC" = yes; then
2740 if test "$GCC" = yes; then
2746 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2747 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2748 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 ac_cv_prog_cc_stdc
=no
2753 cat >conftest.
$ac_ext <<_ACEOF
2756 cat confdefs.h
>>conftest.
$ac_ext
2757 cat >>conftest.
$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2777 s = g (p, va_arg (v,int));
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2783 function prototypes and stuff, but not '\xHH' hex character constants.
2784 These don't provoke an error unfortunately, instead are silently treated
2785 as 'x'. The following induces an error, until -std1 is added to get
2786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2787 array size at least. It's necessary to write '\x00'==0 to get something
2788 that's true only with -std1. */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791 int test (int i, double x);
2792 struct s1 {int (*f) (int a);};
2793 struct s2 {int (*f) (double a);};
2794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2805 # Don't try gcc -ansi; that turns off useful extensions and
2806 # breaks some systems' header files.
2807 # AIX -qlanglvl=ansi
2808 # Ultrix and OSF/1 -std1
2809 # HP-UX 10.20 and later -Ae
2810 # HP-UX older versions -Aa -D_HPUX_SOURCE
2811 # SVR4 -Xc -D__EXTENSIONS__
2812 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2814 CC
="$ac_save_CC $ac_arg"
2815 rm -f conftest.
$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>conftest.er1
2819 grep -v '^ *+' conftest.er1
>conftest.err
2821 cat conftest.err
>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try
='test -z "$ac_c_werror_flag"
2825 || test ! -s conftest.err'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; } &&
2831 { ac_try
='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_cv_prog_cc_stdc
=$ac_arg
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.
$ac_ext >&5
2844 rm -f conftest.err conftest.
$ac_objext
2846 rm -f conftest.
$ac_ext conftest.
$ac_objext
2851 case "x$ac_cv_prog_cc_stdc" in
2853 echo "$as_me:$LINENO: result: none needed" >&5
2854 echo "${ECHO_T}none needed" >&6 ;;
2856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2858 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2861 # Some people use a C++ compiler to compile C. Since we use `exit',
2862 # in C++ we need to declare it. In case someone uses the same compiler
2863 # for both compiling C and C++ we need to have the C++ compiler decide
2864 # the declaration of exit, since it's the most demanding environment.
2865 cat >conftest.
$ac_ext <<_ACEOF
2870 rm -f conftest.
$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2874 grep -v '^ *+' conftest.er1
>conftest.err
2876 cat conftest.err
>&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try
='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try
='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 for ac_declaration
in \
2894 'extern "C" void std::exit (int) throw (); using std::exit;' \
2895 'extern "C" void std::exit (int); using std::exit;' \
2896 'extern "C" void exit (int) throw ();' \
2897 'extern "C" void exit (int);' \
2900 cat >conftest.
$ac_ext <<_ACEOF
2903 cat confdefs.h
>>conftest.
$ac_ext
2904 cat >>conftest.
$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2916 rm -f conftest.
$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>conftest.er1
2920 grep -v '^ *+' conftest.er1
>conftest.err
2922 cat conftest.err
>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try
='test -z "$ac_c_werror_flag"
2926 || test ! -s conftest.err'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try
='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.
$ac_ext >&5
2945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2946 cat >conftest.
$ac_ext <<_ACEOF
2949 cat confdefs.h
>>conftest.
$ac_ext
2950 cat >>conftest.
$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2961 rm -f conftest.
$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963 (eval $ac_compile) 2>conftest.er1
2965 grep -v '^ *+' conftest.er1
>conftest.err
2967 cat conftest.err
>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try
='test -z "$ac_c_werror_flag"
2971 || test ! -s conftest.err'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try
='test -s conftest.$ac_objext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.
$ac_ext >&5
2989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2992 if test -n "$ac_declaration"; then
2993 echo '#ifdef __cplusplus' >>confdefs.h
2994 echo $ac_declaration >>confdefs.h
2995 echo '#endif' >>confdefs.h
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.
$ac_ext >&5
3003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3005 ac_cpp
='$CPP $CPPFLAGS'
3006 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3009 DEPDIR
="${am__leading_dot}deps"
3011 ac_config_commands
="$ac_config_commands depfiles"
3014 am_make
=${MAKE-make}
3015 cat > confinc
<< 'END'
3020 # If we don't find an include directive, just comment out the code.
3021 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3022 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3026 # First try GNU make style include.
3027 echo "include confinc" > confmf
3028 # We grep out `Entering directory' and `Leaving directory'
3029 # messages which can occur if `w' ends up in MAKEFLAGS.
3030 # In particular we don't look at `^make:' because GNU make might
3031 # be invoked under some other name (usually "gmake"), in which
3032 # case it prints its new name instead of `make'.
3033 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3038 # Now try BSD make style include.
3039 if test "$am__include" = "#"; then
3040 echo '.include "confinc"' > confmf
3041 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3042 am__include
=.include
3049 echo "$as_me:$LINENO: result: $_am_result" >&5
3050 echo "${ECHO_T}$_am_result" >&6
3051 rm -f confinc confmf
3053 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3054 if test "${enable_dependency_tracking+set}" = set; then
3055 enableval
="$enable_dependency_tracking"
3058 if test "x$enable_dependency_tracking" != xno
; then
3059 am_depcomp
="$ac_aux_dir/depcomp"
3064 if test "x$enable_dependency_tracking" != xno; then
3075 depcc
="$CC" am_compiler_list
=
3077 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3078 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3079 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3083 # We make a subdir and do the tests there. Otherwise we can end up
3084 # making bogus files that we don't know about and never remove. For
3085 # instance it was reported that on HP-UX the gcc test will end up
3086 # making a dummy file named `D' -- because `-MD' means `put the output
3089 # Copy depcomp to subdir because otherwise we won't find it if we're
3090 # using a relative directory.
3091 cp "$am_depcomp" conftest.dir
3093 # We will build objects and dependencies in a subdirectory because
3094 # it helps to detect inapplicable dependency modes. For instance
3095 # both Tru64's cc and ICC support -MD to output dependencies as a
3096 # side effect of compilation, but ICC will put the dependencies in
3097 # the current directory while Tru64 will put them in the object
3101 am_cv_CC_dependencies_compiler_type
=none
3102 if test "$am_compiler_list" = ""; then
3103 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3105 for depmode
in $am_compiler_list; do
3106 # Setup a source with many dependencies, because some compilers
3107 # like to wrap large dependency lists on column 80 (with \), and
3108 # we should not choose a depcomp mode which is confused by this.
3110 # We need to recreate these files for each test, as the compiler may
3111 # overwrite some of them when testing with obscure command lines.
3112 # This happens at least with the AIX C compiler.
3114 for i
in 1 2 3 4 5 6; do
3115 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3116 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3117 # Solaris 8's {/usr,}/bin/sh.
3118 touch sub
/conftst
$i.h
3120 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3124 # after this tag, mechanisms are not by side-effect, so they'll
3125 # only be used when explicitly requested
3126 if test "x$enable_dependency_tracking" = xyes
; then
3134 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3135 # mode. It turns out that the SunPro C++ compiler does not properly
3136 # handle `-M -o', and we need to detect this.
3137 if depmode
=$depmode \
3138 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3139 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3140 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3141 >/dev
/null
2>conftest.err
&&
3142 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3143 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3144 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3145 # icc doesn't choke on unknown options, it will just issue warnings
3146 # or remarks (even with -Werror). So we grep stderr for any message
3147 # that says an option was ignored or not supported.
3148 # When given -MP, icc 7.0 and 7.1 complain thusly:
3149 # icc: Command line warning: ignoring option '-M'; no argument required
3150 # The diagnosis changed in icc 8.0:
3151 # icc: Command line remark: option '-MP' not supported
3152 if (grep 'ignoring option' conftest.err ||
3153 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3154 am_cv_CC_dependencies_compiler_type
=$depmode
3163 am_cv_CC_dependencies_compiler_type
=none
3167 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3168 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3169 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3174 test "x$enable_dependency_tracking" != xno \
3175 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3177 am__fastdepCC_FALSE
='#'
3179 am__fastdepCC_TRUE
='#'
3180 am__fastdepCC_FALSE
=
3188 # By default we simply use the C compiler to build assembly code.
3190 test "${CCAS+set}" = set || CCAS
=$CC
3191 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
3195 if test "x$CC" != xcc
; then
3196 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3197 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3199 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3200 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3202 set dummy
$CC; ac_cc
=`echo $2 |
3203 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3204 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 cat >conftest.
$ac_ext <<_ACEOF
3210 cat confdefs.h
>>conftest.
$ac_ext
3211 cat >>conftest.
$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3222 # Make sure it works both with $CC and with simple cc.
3223 # We do the test twice because some compilers refuse to overwrite an
3224 # existing .o file with -o, though they will create one.
3225 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3226 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); };
3237 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3238 if test "x$CC" != xcc
; then
3239 # Test first that cc exists at all.
3240 if { ac_try
='cc -c conftest.$ac_ext >&5'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3247 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); };
3261 # cc exists but doesn't like -o.
3262 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3267 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3272 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3273 echo "$as_me:$LINENO: result: yes" >&5
3274 echo "${ECHO_T}yes" >&6
3276 echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6
3279 cat >>confdefs.h
<<\_ACEOF
3280 #define NO_MINUS_C_MINUS_O 1
3285 # FIXME: we rely on the cache variable name because
3286 # there is no other way.
3288 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3289 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3290 # Losing compiler, so override with the script.
3291 # FIXME: It is wrong to rewrite CC.
3292 # But if we don't then we get into trouble of one sort or another.
3293 # A longer-term fix would be to have automake use am__CC in this case,
3294 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3295 CC
="$am_aux_dir/compile $CC"
3300 macro_version
='2.1a'
3301 macro_revision
='1.2435'
3314 ltmain
="$ac_aux_dir/ltmain.sh"
3324 # Check whether --enable-shared or --disable-shared was given.
3325 if test "${enable_shared+set}" = set; then
3326 enableval
="$enable_shared"
3327 p
=${PACKAGE-default}
3329 yes) enable_shared
=yes ;;
3330 no
) enable_shared
=no
;;
3333 # Look at the argument we got. We use all the common list separators.
3334 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3335 for pkg
in $enableval; do
3337 if test "X$pkg" = "X$p"; then
3355 # Check whether --enable-static or --disable-static was given.
3356 if test "${enable_static+set}" = set; then
3357 enableval
="$enable_static"
3358 p
=${PACKAGE-default}
3360 yes) enable_static
=yes ;;
3361 no
) enable_static
=no
;;
3364 # Look at the argument we got. We use all the common list separators.
3365 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3366 for pkg
in $enableval; do
3368 if test "X$pkg" = "X$p"; then
3387 # Check whether --with-pic or --without-pic was given.
3388 if test "${with_pic+set}" = set; then
3395 test -z "$pic_mode" && pic_mode
=default
3403 # Check whether --enable-fast-install or --disable-fast-install was given.
3404 if test "${enable_fast_install+set}" = set; then
3405 enableval
="$enable_fast_install"
3406 p
=${PACKAGE-default}
3408 yes) enable_fast_install
=yes ;;
3409 no
) enable_fast_install
=no
;;
3411 enable_fast_install
=no
3412 # Look at the argument we got. We use all the common list separators.
3413 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
3414 for pkg
in $enableval; do
3416 if test "X$pkg" = "X$p"; then
3417 enable_fast_install
=yes
3424 enable_fast_install
=yes
3434 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3435 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3436 if test "${lt_cv_path_SED+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 # Loop through the user's path and test for sed and gsed.
3440 # Then use that list of sed's as ones to test for truncation.
3441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir
=.
3446 for lt_ac_prog
in sed gsed
; do
3447 for ac_exec_ext
in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3449 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3457 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3458 # along with /bin/sed that truncates output.
3459 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3460 test ! -f $lt_ac_sed && continue
3461 cat /dev
/null
> conftest.
in
3463 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3464 # Check for GNU sed and select it if it is found.
3465 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3466 lt_cv_path_SED
=$lt_ac_sed
3470 cat conftest.
in conftest.
in >conftest.tmp
3471 mv conftest.tmp conftest.
in
3472 cp conftest.
in conftest.
nl
3474 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3475 cmp -s conftest.out conftest.
nl ||
break
3476 # 10000 chars as input seems more than enough
3477 test $lt_ac_count -gt 10 && break
3478 lt_ac_count
=`expr $lt_ac_count + 1`
3479 if test $lt_ac_count -gt $lt_ac_max; then
3480 lt_ac_max
=$lt_ac_count
3481 lt_cv_path_SED
=$lt_ac_sed
3490 echo "$as_me:$LINENO: result: $SED" >&5
3491 echo "${ECHO_T}$SED" >&6
3493 test -z "$SED" && SED
=sed
3494 Xsed
="$SED -e 1s/^X//"
3506 echo "$as_me:$LINENO: checking for egrep" >&5
3507 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3508 if test "${ac_cv_prog_egrep+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3512 then ac_cv_prog_egrep
='grep -E'
3513 else ac_cv_prog_egrep
='egrep'
3516 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3517 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3518 EGREP
=$ac_cv_prog_egrep
3521 echo "$as_me:$LINENO: checking for fgrep" >&5
3522 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3523 if test "${ac_cv_prog_fgrep+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
3527 then ac_cv_prog_fgrep
='grep -F'
3528 else ac_cv_prog_fgrep
='fgrep'
3531 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3532 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3533 FGREP
=$ac_cv_prog_fgrep
3536 test -z "$GREP" && GREP
=grep
3556 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3557 if test "${with_gnu_ld+set}" = set; then
3558 withval
="$with_gnu_ld"
3559 test "$withval" = no || with_gnu_ld
=yes
3564 if test "$GCC" = yes; then
3565 # Check if gcc -print-prog-name=ld gives a path.
3566 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3567 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3570 # gcc leaves a trailing carriage return which upsets mingw
3571 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3573 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3576 # Accept absolute paths.
3578 re_direlt
='/[^/][^/]*/\.\./'
3579 # Canonicalize the pathname of ld
3580 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3581 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
3582 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3584 test -z "$LD" && LD
="$ac_prog"
3587 # If it fails, then pretend we aren't using GCC.
3591 # If it is relative, then search for the first ld in PATH.
3595 elif test "$with_gnu_ld" = yes; then
3596 echo "$as_me:$LINENO: checking for GNU ld" >&5
3597 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3599 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3600 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3602 if test "${lt_cv_path_LD+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if test -z "$LD"; then
3606 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3607 for ac_dir
in $PATH; do
3609 test -z "$ac_dir" && ac_dir
=.
3610 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3611 lt_cv_path_LD
="$ac_dir/$ac_prog"
3612 # Check to see if the program is GNU ld. I'd rather use --version,
3613 # but apparently some variants of GNU ld only accept -v.
3614 # Break only if it was the GNU/non-GNU ld that we prefer.
3615 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3616 *GNU
* |
*'with BFD'*)
3617 test "$with_gnu_ld" != no
&& break
3620 test "$with_gnu_ld" != yes && break
3627 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3632 if test -n "$LD"; then
3633 echo "$as_me:$LINENO: result: $LD" >&5
3634 echo "${ECHO_T}$LD" >&6
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3639 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3640 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3641 { (exit 1); exit 1; }; }
3642 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3643 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3644 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3648 case `$LD -v 2>&1 </dev/null` in
3649 *GNU
* |
*'with BFD'*)
3650 lt_cv_prog_gnu_ld
=yes
3653 lt_cv_prog_gnu_ld
=no
3657 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3658 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3659 with_gnu_ld
=$lt_cv_prog_gnu_ld
3670 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3671 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3672 if test "${lt_cv_path_NM+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 if test -n "$NM"; then
3676 # Let the user override the test.
3679 lt_nm_to_check
="${ac_tool_prefix}nm"
3680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3681 lt_nm_to_check
="$lt_nm_to_check nm"
3683 for lt_tmp_nm
in $lt_nm_to_check; do
3684 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3685 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
3687 test -z "$ac_dir" && ac_dir
=.
3688 tmp_nm
="$ac_dir/$lt_tmp_nm"
3689 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3690 # Check to see if the nm accepts a BSD-compat flag.
3691 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3692 # nm: unknown option "B" ignored
3693 # Tru64's nm complains that /dev/null is an invalid object file
3694 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3695 */dev
/null
* |
*'Invalid file or object type'*)
3696 lt_cv_path_NM
="$tmp_nm -B"
3700 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3702 lt_cv_path_NM
="$tmp_nm -p"
3706 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3707 continue # so that we can try to find one that supports BSD flags
3716 : ${lt_cv_path_NM=no}
3719 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3720 echo "${ECHO_T}$lt_cv_path_NM" >&6
3721 if test "$lt_cv_path_NM" != "no"; then
3724 # Didn't find any BSD compatible name lister, look for dumpbin.
3725 if test -n "$ac_tool_prefix"; then
3726 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
3728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if test -n "$DUMPBIN"; then
3736 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
3738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir
=.
3743 for ac_exec_ext
in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 DUMPBIN
=$ac_cv_prog_DUMPBIN
3755 if test -n "$DUMPBIN"; then
3756 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3757 echo "${ECHO_T}$DUMPBIN" >&6
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3763 test -n "$DUMPBIN" && break
3766 if test -z "$DUMPBIN"; then
3767 ac_ct_DUMPBIN
=$DUMPBIN
3768 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
3770 # Extract the first word of "$ac_prog", so it can be a program name with args.
3771 set dummy
$ac_prog; ac_word
=$2
3772 echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 if test -n "$ac_ct_DUMPBIN"; then
3778 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
3780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir
=.
3785 for ac_exec_ext
in '' $ac_executable_extensions; do
3786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
3788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
3797 if test -n "$ac_ct_DUMPBIN"; then
3798 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3799 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3801 echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6
3805 test -n "$ac_ct_DUMPBIN" && break
3807 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
3809 DUMPBIN
=$ac_ct_DUMPBIN
3813 if test "$DUMPBIN" != ":"; then
3817 test -z "$NM" && NM
=nm
3824 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3825 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3826 if test "${lt_cv_nm_interface+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 lt_cv_nm_interface
="BSD nm"
3830 echo "int some_variable = 0;" > conftest.
$ac_ext
3831 (eval echo "\"\$as_me:3831: $ac_compile\"" >&5)
3832 (eval "$ac_compile" 2>conftest.err
)
3833 cat conftest.err
>&5
3834 (eval echo "\"\$as_me:3834: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3835 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
3836 cat conftest.err
>&5
3837 (eval echo "\"\$as_me:3837: output\"" >&5)
3838 cat conftest.out
>&5
3839 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
3840 lt_cv_nm_interface
="MS dumpbin"
3844 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3845 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3847 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3848 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3850 if test "$LN_S" = "ln -s"; then
3851 echo "$as_me:$LINENO: result: yes" >&5
3852 echo "${ECHO_T}yes" >&6
3854 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3855 echo "${ECHO_T}no, using $LN_S" >&6
3858 # find the maximum length of command line arguments
3859 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3860 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3861 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 # On DJGPP, this test can blow up pretty badly due to problems in libc
3870 # (any single argument exceeding 2000 bytes causes a buffer overrun
3871 # during glob expansion). Even if it were fixed, the result of this
3872 # check would be larger than it should be.
3873 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
3877 # Under GNU Hurd, this test is not required because there is
3878 # no limit to the length of command line arguments.
3879 # Libtool will interpret -1 as no limit whatsoever
3880 lt_cv_sys_max_cmd_len
=-1;
3884 # On Win9x/ME, this test blows up -- it succeeds, but takes
3885 # about 5 minutes as the teststring grows exponentially.
3886 # Worse, since 9x/ME are not pre-emptively multitasking,
3887 # you end up with a "frozen" computer, even though with patience
3888 # the test eventually succeeds (with a max line length of 256k).
3889 # Instead, let's just punt: use the minimum linelength reported by
3890 # all of the supported platforms: 8192 (on NT/2K/XP).
3891 lt_cv_sys_max_cmd_len
=8192;
3895 # On AmigaOS with pdksh, this test takes hours, literally.
3896 # So we just punt and use a minimum line length of 8192.
3897 lt_cv_sys_max_cmd_len
=8192;
3900 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
3901 # This has been around since 386BSD, at least. Likely further.
3902 if test -x /sbin
/sysctl
; then
3903 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
3904 elif test -x /usr
/sbin
/sysctl
; then
3905 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
3907 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
3909 # And add a safety zone
3910 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
3911 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
3915 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3916 lt_cv_sys_max_cmd_len
=196608
3920 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3921 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3922 # nice to cause kernel panics so lets avoid the loop below.
3923 # First set a reasonable default.
3924 lt_cv_sys_max_cmd_len
=16384
3926 if test -x /sbin
/sysconfig
; then
3927 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3928 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
3933 lt_cv_sys_max_cmd_len
=102400
3935 sysv5
* | sco5v6
* | sysv4.2uw2
*)
3936 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3937 if test -n "$kargmax"; then
3938 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
3940 lt_cv_sys_max_cmd_len
=32768
3944 lt_cv_sys_max_cmd_len
=`getconf ARG_MAX 2> /dev/null`
3945 if test -n $lt_cv_sys_max_cmd_len; then
3946 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
3947 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
3949 # Make teststring a little bigger before we do anything with it.
3950 # a 1K string should be a reasonable start.
3951 for i
in 1 2 3 4 5 6 7 8 ; do
3952 teststring
=$teststring$teststring
3954 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
3955 # If test is not a shell built-in, we'll probably end up computing a
3956 # maximum length that is only half of the actual maximum length, but
3958 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3959 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
3960 test $i != 17 # 1/2 MB should be enough
3963 teststring
=$teststring$teststring
3965 # Only check the string length outside the loop.
3966 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
3968 # Add a significant safety factor because C++ compilers can tack on
3969 # massive amounts of additional arguments before passing them to the
3970 # linker. It appears as though 1/2 is a usable value.
3971 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
3978 if test -n $lt_cv_sys_max_cmd_len ; then
3979 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3980 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3982 echo "$as_me:$LINENO: result: none" >&5
3983 echo "${ECHO_T}none" >&6
3985 max_cmd_len
=$lt_cv_sys_max_cmd_len
3997 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3998 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3999 # Try some XSI features
4002 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4003 = c,a/b,, ) >/dev/null 2>&1 \
4005 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
4006 echo "${ECHO_T}$xsi_shell" >&6
4009 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
4010 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
4012 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
4014 && lt_shell_append=yes
4015 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
4016 echo "${ECHO_T}$lt_shell_append" >&6
4019 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4029 # test EBCDIC or ASCII
4030 case `echo X|tr X '\101'` in
4031 A) # ASCII based system
4032 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4033 lt_SP2NL='tr \040 \012'
4034 lt_NL2SP='tr \015\012 \040\040'
4036 *) # EBCDIC based system
4037 lt_SP2NL='tr \100 \n'
4038 lt_NL2SP='tr \r\n \100\100'
4050 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
4051 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
4052 if test "${lt_cv_ld_reload_flag+set}" = set; then
4053 echo $ECHO_N "(cached
) $ECHO_C" >&6
4055 lt_cv_ld_reload_flag='-r'
4057 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
4058 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4059 reload_flag=$lt_cv_ld_reload_flag
4060 case $reload_flag in
4062 *) reload_flag=" $reload_flag" ;;
4064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4067 if test "$GCC" = yes; then
4068 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4084 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
4085 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
4086 if test "${lt_cv_deplibs_check_method+set}" = set; then
4087 echo $ECHO_N "(cached
) $ECHO_C" >&6
4089 lt_cv_file_magic_cmd='$MAGIC_CMD'
4090 lt_cv_file_magic_test_file=
4091 lt_cv_deplibs_check_method='unknown'
4092 # Need to set the preceding variable on all platforms that support
4093 # interlibrary dependencies.
4094 # 'none' -- dependencies not supported.
4095 # `unknown' -- same as none, but documents that we really don't know.
4096 # 'pass_all' -- all dependencies passed with no checks.
4097 # 'test_compile' -- check by making test program.
4098 # 'file_magic [[regex]]' -- check by looking for files in library path
4099 # which responds to the $file_magic_cmd with a given extended regex.
4100 # If you have `file' or equivalent on your system and you're not sure
4101 # whether `pass_all' will *always* work, you probably want this one.
4105 lt_cv_deplibs_check_method=pass_all
4109 lt_cv_deplibs_check_method=pass_all
4113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4114 lt_cv_file_magic_cmd='/usr/bin/file -L'
4115 lt_cv_file_magic_test_file=/shlib/libc.so
4119 # func_win32_libid is a shell function defined in ltmain.sh
4120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4121 lt_cv_file_magic_cmd='func_win32_libid'
4125 # Base MSYS/MinGW do not provide the 'file' command needed by
4126 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4127 # unless we find 'file', for example because we are cross-compiling.
4128 if ( file / ) >/dev/null 2>&1; then
4129 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4130 lt_cv_file_magic_cmd='func_win32_libid'
4132 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4133 lt_cv_file_magic_cmd='$OBJDUMP -f'
4137 darwin* | rhapsody*)
4138 lt_cv_deplibs_check_method=pass_all
4141 freebsd* | dragonfly*)
4142 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4145 # Not sure whether the presence of OpenBSD here was a mistake.
4146 # Let's accept both of them until this is cleared up.
4147 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4148 lt_cv_file_magic_cmd=/usr/bin/file
4149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4153 lt_cv_deplibs_check_method=pass_all
4158 lt_cv_deplibs_check_method=pass_all
4161 hpux10.20* | hpux11*)
4162 lt_cv_file_magic_cmd=/usr/bin/file
4165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4166 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4169 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]'
4170 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4174 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4180 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4184 irix5* | irix6* | nonstopux*)
4186 *-32|*"-32 ") libmagic=32-bit;;
4187 *-n32|*"-n32 ") libmagic=N32;;
4188 *-64|*"-64 ") libmagic=64-bit;;
4189 *) libmagic=never-match;;
4191 lt_cv_deplibs_check_method=pass_all
4194 # This must be Linux ELF.
4195 linux* | k*bsd*-gnu)
4196 lt_cv_deplibs_check_method=pass_all
4200 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4209 lt_cv_file_magic_cmd=/usr/bin/file
4210 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4214 lt_cv_deplibs_check_method=pass_all
4218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
4219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4225 osf3* | osf4* | osf5*)
4226 lt_cv_deplibs_check_method=pass_all
4230 lt_cv_deplibs_check_method=pass_all
4234 lt_cv_deplibs_check_method=pass_all
4237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4238 lt_cv_deplibs_check_method=pass_all
4242 case $host_vendor in
4244 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]'
4245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4248 lt_cv_deplibs_check_method=pass_all
4251 lt_cv_file_magic_cmd='/bin/file'
4252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4255 lt_cv_file_magic_cmd='/bin/file'
4256 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
4257 lt_cv_file_magic_test_file=/lib/libc.so
4260 lt_cv_deplibs_check_method=pass_all
4263 lt_cv_deplibs_check_method=pass_all
4269 lt_cv_deplibs_check_method=pass_all
4274 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
4275 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4276 file_magic_cmd=$lt_cv_file_magic_cmd
4277 deplibs_check_method=$lt_cv_deplibs_check_method
4278 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4293 set dummy ${ac_tool_prefix}ar; ac_word=$2
4294 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4295 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4296 if test "${ac_cv_prog_AR+set}" = set; then
4297 echo $ECHO_N "(cached
) $ECHO_C" >&6
4299 if test -n "$AR"; then
4300 ac_cv_prog_AR="$AR" # Let the user override the test.
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_AR="${ac_tool_prefix}ar"
4310 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4319 if test -n "$AR"; then
4320 echo "$as_me:$LINENO: result
: $AR" >&5
4321 echo "${ECHO_T}$AR" >&6
4323 echo "$as_me:$LINENO: result
: no
" >&5
4324 echo "${ECHO_T}no
" >&6
4328 if test -z "$ac_cv_prog_AR"; then
4330 # Extract the first word of "ar", so it can be a program name with args.
4331 set dummy ar; ac_word=$2
4332 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4333 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4334 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4335 echo $ECHO_N "(cached
) $ECHO_C" >&6
4337 if test -n "$ac_ct_AR"; then
4338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_AR="ar"
4348 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4354 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
4357 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358 if test -n "$ac_ct_AR"; then
4359 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
4360 echo "${ECHO_T}$ac_ct_AR" >&6
4362 echo "$as_me:$LINENO: result
: no
" >&5
4363 echo "${ECHO_T}no
" >&6
4371 test -z "$AR" && AR=ar
4372 test -z "$AR_FLAGS" && AR_FLAGS=cru
4384 if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
4386 set dummy ${ac_tool_prefix}strip; ac_word=$2
4387 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4388 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4389 if test "${ac_cv_prog_STRIP+set}" = set; then
4390 echo $ECHO_N "(cached
) $ECHO_C" >&6
4392 if test -n "$STRIP"; then
4393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
4403 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4411 STRIP=$ac_cv_prog_STRIP
4412 if test -n "$STRIP"; then
4413 echo "$as_me:$LINENO: result
: $STRIP" >&5
4414 echo "${ECHO_T}$STRIP" >&6
4416 echo "$as_me:$LINENO: result
: no
" >&5
4417 echo "${ECHO_T}no
" >&6
4421 if test -z "$ac_cv_prog_STRIP"; then
4423 # Extract the first word of "strip
", so it can be a program name with args.
4424 set dummy strip; ac_word=$2
4425 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4426 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4427 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4428 echo $ECHO_N "(cached
) $ECHO_C" >&6
4430 if test -n "$ac_ct_STRIP"; then
4431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_STRIP="strip
"
4441 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4447 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4451 if test -n "$ac_ct_STRIP"; then
4452 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
4453 echo "${ECHO_T}$ac_ct_STRIP" >&6
4455 echo "$as_me:$LINENO: result
: no
" >&5
4456 echo "${ECHO_T}no
" >&6
4461 STRIP="$ac_cv_prog_STRIP"
4464 test -z "$STRIP" && STRIP=:
4471 if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
4473 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4474 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4475 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4476 if test "${ac_cv_prog_RANLIB+set}" = set; then
4477 echo $ECHO_N "(cached
) $ECHO_C" >&6
4479 if test -n "$RANLIB"; then
4480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
4490 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4498 RANLIB=$ac_cv_prog_RANLIB
4499 if test -n "$RANLIB"; then
4500 echo "$as_me:$LINENO: result
: $RANLIB" >&5
4501 echo "${ECHO_T}$RANLIB" >&6
4503 echo "$as_me:$LINENO: result
: no
" >&5
4504 echo "${ECHO_T}no
" >&6
4508 if test -z "$ac_cv_prog_RANLIB"; then
4509 ac_ct_RANLIB=$RANLIB
4510 # Extract the first word of "ranlib
", so it can be a program name with args.
4511 set dummy ranlib; ac_word=$2
4512 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4513 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4515 echo $ECHO_N "(cached
) $ECHO_C" >&6
4517 if test -n "$ac_ct_RANLIB"; then
4518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_ac_ct_RANLIB="ranlib
"
4528 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4534 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4538 if test -n "$ac_ct_RANLIB"; then
4539 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
4540 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4542 echo "$as_me:$LINENO: result
: no
" >&5
4543 echo "${ECHO_T}no
" >&6
4546 RANLIB=$ac_ct_RANLIB
4548 RANLIB="$ac_cv_prog_RANLIB"
4551 test -z "$RANLIB" && RANLIB=:
4558 # Determine commands to create old-style static archives.
4559 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4560 old_postinstall_cmds='chmod 644 $oldlib'
4561 old_postuninstall_cmds=
4563 if test -n "$RANLIB"; then
4566 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
4569 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
4572 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
4608 # If no C compiler was specified, use CC.
4611 # If no C compiler flags were specified, use CFLAGS.
4612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4614 # Allow CC to be a program name with arguments.
4618 # Check for command to grab the raw symbol name followed by C symbol from nm.
4619 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
4620 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
4621 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4622 echo $ECHO_N "(cached
) $ECHO_C" >&6
4625 # These are sane defaults that work on at least a few old systems.
4626 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4628 # Character class describing NM global symbol codes.
4629 symcode='[BCDEGRST]'
4631 # Regexp to match symbols that can be accessed directly from C.
4632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4634 # Define system-specific variables.
4639 cygwin* | mingw* | pw32*)
4640 symcode='[ABCDGISTW]'
4643 if test "$host_cpu" = ia64; then
4644 symcode='[ABCDEGRST]'
4648 symcode='[BCDEGRST]'
4651 symcode='[BCDEGQRST]'
4662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4670 # If we're using GNU nm, then use its standard symbol codes.
4671 case `$NM -V 2>&1` in
4672 *GNU* | *'with BFD'*)
4673 symcode='[ABCDGIRSTW]' ;;
4676 # Transform an extracted symbol line into a proper C declaration.
4677 # Some systems (esp. on ia64) link data and code symbols differently,
4678 # so use this general approach.
4679 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4681 # Transform an extracted symbol line into symbol name and symbol address
4682 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4684 # Handle CRLF in mingw tool chain
4688 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4692 # Try without a prefix underscore, then with it.
4693 for ac_symprfx in "" "_
"; do
4695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4696 symxfrm="\\1 $ac_symprfx\\2 \\2"
4698 # Write the raw and C identifiers.
4699 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
4700 # Fake it for dumpbin and say T for any non-static function
4701 # and D for any global variable.
4702 # Also find C++ and __fastcall symbols from MSVC++,
4703 # which start with @ or ?.
4704 lt_cv_sys_global_symbol_pipe="$AWK '"\
4705 " {last_section=section; section=\$ 3};"\
4706 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4707 " \$ 0!~/External *\|/{next};"\
4708 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4709 " {if(hide[section]) next};"\
4710 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4711 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4712 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4713 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4714 " ' prfx
=^
$ac_symprfx"
4716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4719 # Check to see that the pipe works correctly.
4723 cat > conftest.$ac_ext <<_LT_EOF
4728 void nm_test_func(void);
4729 void nm_test_func(void){}
4733 int main(){nm_test_var='a';nm_test_func();return(0);}
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>&5
4739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4740 (exit $ac_status); }; then
4741 # Now try to grab the symbols.
4743 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
4744 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4747 (exit $ac_status); } && test -s "$nlist"; then
4748 # Try sorting and uniquifying the output.
4749 if sort "$nlist" | uniq > "$nlist"T; then
4750 mv -f "$nlist"T "$nlist"
4755 # Make sure that we snagged all the symbols we need.
4756 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4757 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4758 cat <<_LT_EOF > conftest.$ac_ext
4764 # Now generate the symbol file.
4765 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4767 cat <<_LT_EOF >> conftest.$ac_ext
4769 /* The mapping between symbol names and symbols. */
4774 lt__PROGRAM__LTX_preloaded_symbols[] =
4776 { "@PROGRAM@
", (void *) 0 },
4778 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4779 cat <<\_LT_EOF >> conftest.$ac_ext
4783 /* This works around a problem in FreeBSD linker */
4784 #ifdef FREEBSD_WORKAROUND
4785 static const void *lt_preloaded_setup() {
4786 return lt__PROGRAM__LTX_preloaded_symbols;
4794 # Now try linking the two files.
4795 mv conftest.$ac_objext conftstm.$ac_objext
4796 lt_save_LIBS="$LIBS"
4797 lt_save_CFLAGS="$CFLAGS"
4798 LIBS="conftstm.
$ac_objext"
4799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801 (eval $ac_link) 2>&5
4803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4804 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4807 LIBS="$lt_save_LIBS"
4808 CFLAGS="$lt_save_CFLAGS"
4810 echo "cannot
find nm_test_func
in $nlist" >&5
4813 echo "cannot
find nm_test_var
in $nlist" >&5
4816 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
4819 echo "$progname: failed program was
:" >&5
4820 cat conftest.$ac_ext >&5
4822 rm -f conftest* conftst*
4824 # Do not use the global_symbol_pipe unless it works.
4825 if test "$pipe_works" = yes; then
4828 lt_cv_sys_global_symbol_pipe=
4834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4835 lt_cv_sys_global_symbol_to_cdecl=
4837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4838 echo "$as_me:$LINENO: result
: failed
" >&5
4839 echo "${ECHO_T}failed
" >&6
4841 echo "$as_me:$LINENO: result
: ok
" >&5
4842 echo "${ECHO_T}ok
" >&6
4862 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4863 if test "${enable_libtool_lock+set}" = set; then
4864 enableval="$enable_libtool_lock"
4867 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
4869 # Some flags need to be propagated to the compiler or linker for good
4873 # Find out which ABI we are using.
4874 echo 'int i;' > conftest.$ac_ext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>&5
4878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4879 (exit $ac_status); }; then
4880 case `/usr/bin/file conftest.$ac_objext` in
4892 # Find out which ABI we are using.
4893 echo '#line 4893 "configure
"' > conftest.$ac_ext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4898 (exit $ac_status); }; then
4899 if test "$lt_cv_prog_gnu_ld" = yes; then
4900 case `/usr/bin/file conftest.$ac_objext` in
4902 LD="${LD-ld} -melf32bsmip"
4905 LD="${LD-ld} -melf32bmipn32"
4908 LD="${LD-ld} -melf64bmip"
4912 case `/usr/bin/file conftest.$ac_objext` in
4928 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4929 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4930 # Find out which ABI we are using.
4931 echo 'int i;' > conftest.$ac_ext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>&5
4935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4936 (exit $ac_status); }; then
4937 case `/usr/bin/file conftest.o` in
4940 x86_64-*kfreebsd*-gnu)
4941 LD="${LD-ld} -m elf_i386_fbsd
"
4944 LD="${LD-ld} -m elf_i386
"
4946 ppc64-*linux*|powerpc64-*linux*)
4947 LD="${LD-ld} -m elf32ppclinux
"
4950 LD="${LD-ld} -m elf_s390
"
4953 LD="${LD-ld} -m elf32_sparc
"
4959 x86_64-*kfreebsd*-gnu)
4960 LD="${LD-ld} -m elf_x86_64_fbsd
"
4963 LD="${LD-ld} -m elf_x86_64
"
4965 ppc*-*linux*|powerpc*-*linux*)
4966 LD="${LD-ld} -m elf64ppc
"
4968 s390*-*linux*|s390*-*tpf*)
4969 LD="${LD-ld} -m elf64_s390
"
4972 LD="${LD-ld} -m elf64_sparc
"
4982 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4983 SAVE_CFLAGS="$CFLAGS"
4984 CFLAGS="$CFLAGS -belf"
4985 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
4986 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
4987 if test "${lt_cv_cc_needs_belf+set}" = set; then
4988 echo $ECHO_N "(cached
) $ECHO_C" >&6
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5011 rm -f conftest.$ac_objext conftest$ac_exeext
5012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5013 (eval $ac_link) 2>conftest.er1
5015 grep -v '^ *+' conftest.er1 >conftest.err
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest$ac_exeext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 lt_cv_cc_needs_belf=yes
5035 echo "$as_me: failed program was
:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5038 lt_cv_cc_needs_belf=no
5040 rm -f conftest.err conftest.$ac_objext \
5041 conftest$ac_exeext conftest.$ac_ext
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
5050 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5051 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5052 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5053 CFLAGS="$SAVE_CFLAGS"
5057 # Find out which ABI we are using.
5058 echo 'int i;' > conftest.$ac_ext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5063 (exit $ac_status); }; then
5064 case `/usr/bin/file conftest.o` in
5066 case $lt_cv_prog_gnu_ld in
5067 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
5068 *) LD="${LD-ld} -64" ;;
5077 need_locks="$enable_libtool_lock"
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5085 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6
5086 # On Suns, sometimes $CPP names a directory.
5087 if test -n "$CPP" && test -d "$CPP"; then
5090 if test -z "$CPP"; then
5091 if test "${ac_cv_prog_CPP+set}" = set; then
5092 echo $ECHO_N "(cached
) $ECHO_C" >&6
5094 # Double quotes because CPP needs to be expanded
5095 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5098 for ac_c_preproc_warn_flag in '' yes
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error
" is here to catch this case.
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5113 # include <limits.h>
5115 # include <assert.h>
5119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122 grep -v '^ *+' conftest.er1 >conftest.err
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5126 (exit $ac_status); } >/dev/null; then
5127 if test -s conftest.err; then
5128 ac_cpp_err=$ac_c_preproc_warn_flag
5129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5136 if test -z "$ac_cpp_err"; then
5139 echo "$as_me: failed program was
:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 # Broken: fails on valid input.
5145 rm -f conftest.err conftest.$ac_ext
5147 # OK, works on sane cases. Now check whether non-existent headers
5148 # can be detected and how.
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 #include <ac_nonexistent.h>
5157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5160 grep -v '^ *+' conftest.er1 >conftest.err
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5164 (exit $ac_status); } >/dev/null; then
5165 if test -s conftest.err; then
5166 ac_cpp_err=$ac_c_preproc_warn_flag
5167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5174 if test -z "$ac_cpp_err"; then
5175 # Broken: success on invalid input.
5178 echo "$as_me: failed program was
:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 # Passes both tests.
5185 rm -f conftest.err conftest.$ac_ext
5188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5189 rm -f conftest.err conftest.$ac_ext
5190 if $ac_preproc_ok; then
5202 echo "$as_me:$LINENO: result
: $CPP" >&5
5203 echo "${ECHO_T}$CPP" >&6
5205 for ac_c_preproc_warn_flag in '' yes
5207 # Use a header file that comes with gcc, so configuring glibc
5208 # with a fresh cross-compiler works.
5209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 # <limits.h> exists even on freestanding compilers.
5211 # On the NeXT, cc -E runs the code through the compiler's parser,
5212 # not just through cpp. "Syntax error
" is here to catch this case.
5213 cat >conftest.$ac_ext <<_ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5220 # include <limits.h>
5222 # include <assert.h>
5226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5229 grep -v '^ *+' conftest.er1 >conftest.err
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5233 (exit $ac_status); } >/dev/null; then
5234 if test -s conftest.err; then
5235 ac_cpp_err=$ac_c_preproc_warn_flag
5236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5243 if test -z "$ac_cpp_err"; then
5246 echo "$as_me: failed program was
:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 # Broken: fails on valid input.
5252 rm -f conftest.err conftest.$ac_ext
5254 # OK, works on sane cases. Now check whether non-existent headers
5255 # can be detected and how.
5256 cat >conftest.$ac_ext <<_ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <ac_nonexistent.h>
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_c_preproc_warn_flag
5274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5281 if test -z "$ac_cpp_err"; then
5282 # Broken: success on invalid input.
5285 echo "$as_me: failed program was
:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 # Passes both tests.
5292 rm -f conftest.err conftest.$ac_ext
5295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5296 rm -f conftest.err conftest.$ac_ext
5297 if $ac_preproc_ok; then
5300 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
5301 See \
`config.log' for more details." >&5
5302 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5303 See \`config.log
' for more details." >&2;}
5304 { (exit 1); exit 1; }; }
5308 ac_cpp='$CPP $CPPFLAGS'
5309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5310 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5314 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5315 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5316 if test "${ac_cv_header_stdc+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5338 rm -f conftest.$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>conftest.er1
5342 grep -v '^
*+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag"
5348 ||
test ! -s conftest.err
'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest.
$ac_objext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_header_stdc=yes
5362 echo "$as_me: failed program was:" >&5
5363 sed 's
/^
/|
/' conftest.$ac_ext >&5
5365 ac_cv_header_stdc=no
5367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5369 if test $ac_cv_header_stdc = yes; then
5370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "memchr" >/dev/null 2>&1; then
5384 ac_cv_header_stdc=no
5390 if test $ac_cv_header_stdc = yes; then
5391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5392 cat >conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev/null 2>&1; then
5405 ac_cv_header_stdc=no
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5423 #if ((' ' & 0x0FF) == 0x020)
5424 # define ISLOWER(c) ('a
' <= (c) && (c) <= 'z
')
5425 # define TOUPPER(c) (ISLOWER(c) ? 'A
' + ((c) - 'a
') : (c))
5427 # define ISLOWER(c) \
5428 (('a
' <= (c) && (c) <= 'i
') \
5429 || ('j
' <= (c) && (c) <= 'r
') \
5430 || ('s
' <= (c) && (c) <= 'z
'))
5431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5439 for (i = 0; i < 256; i++)
5440 if (XOR (islower (i), ISLOWER (i))
5441 || toupper (i) != TOUPPER (i))
5446 rm -f conftest$ac_exeext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5448 (eval $ac_link) 2>&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5459 echo "$as_me: program exited with status $ac_status" >&5
5460 echo "$as_me: failed program was:" >&5
5461 sed 's
/^
/|
/' conftest.$ac_ext >&5
5464 ac_cv_header_stdc=no
5466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5472 if test $ac_cv_header_stdc = yes; then
5474 cat >>confdefs.h <<\_ACEOF
5475 #define STDC_HEADERS 1
5480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5491 inttypes.h stdint.h unistd.h
5493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5494 echo "$as_me:$LINENO: checking for $ac_header" >&5
5495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5507 #include <$ac_header>
5509 rm -f conftest.$ac_objext
5510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>conftest.er1
5513 grep -v '^
*+' conftest.er1 >conftest.err
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -z "$ac_c_werror_flag"
5519 ||
test ! -s conftest.err
'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try='test -s conftest.
$ac_objext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 eval "$as_ac_Header=yes"
5533 echo "$as_me: failed program was:" >&5
5534 sed 's
/^
/|
/' conftest.$ac_ext >&5
5536 eval "$as_ac_Header=no"
5538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5553 for ac_header in dlfcn.h
5555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556 echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 cat >conftest.$ac_ext <<_ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5569 #include <$ac_header>
5571 rm -f conftest.$ac_objext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573 (eval $ac_compile) 2>conftest.er1
5575 grep -v '^
*+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -z "$ac_c_werror_flag"
5581 ||
test ! -s conftest.err
'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; } &&
5587 { ac_try='test -s conftest.
$ac_objext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 eval "$as_ac_Header=yes"
5595 echo "$as_me: failed program was:" >&5
5596 sed 's
/^
/|
/' conftest.$ac_ext >&5
5598 eval "$as_ac_Header=no"
5600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5605 cat >>confdefs.h <<_ACEOF
5606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5615 # This can be used to rebuild libtool when needed
5616 LIBTOOL_DEPS="$ltmain"
5618 # Always use our own libtool.
5619 LIBTOOL='$
(SHELL
) $
(top_builddir
)/libtool
'
5645 test -z "$LN_S" && LN_S="ln -s"
5660 if test -n "${ZSH_VERSION+set}" ; then
5661 setopt NO_GLOB_SUBST
5664 echo "$as_me:$LINENO: checking for objdir" >&5
5665 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5666 if test "${lt_cv_objdir+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 rm -f .libs 2>/dev/null
5670 mkdir .libs 2>/dev/null
5671 if test -d .libs; then
5674 # MS-DOS does not allow filenames that begin with a dot.
5677 rmdir .libs 2>/dev/null
5679 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5680 echo "${ECHO_T}$lt_cv_objdir" >&6
5681 objdir=$lt_cv_objdir
5687 cat >>confdefs.h <<_ACEOF
5688 #define LT_OBJDIR "$lt_cv_objdir/"
5709 # AIX sometimes has problems with the GCC collect2 program. For some
5710 # reason, if we set the COLLECT_NAMES environment variable, the problems
5711 # vanish in a puff of smoke.
5712 if test "X${COLLECT_NAMES+set}" != Xset; then
5714 export COLLECT_NAMES
5719 # Sed substitution that helps us do robust quoting. It backslashifies
5720 # metacharacters that are still active within double-quoted strings.
5721 sed_quote_subst='s
/\
(["`$\\]\)/\\\1/g'
5723 # Same as above, but do not quote variable references.
5724 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5726 # Sed substitution to delay expansion of an escaped shell variable in a
5727 # double_quote_subst'ed string.
5728 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5730 # Sed substitution to delay expansion of an escaped single quote.
5731 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5733 # Sed substitution to avoid accidental globbing in evaled expressions
5734 no_glob_subst='s/\*/\\\*/g'
5738 can_build_shared=yes
5740 # All known linkers require a `.a
' archive for static linking (except MSVC,
5741 # which needs '.lib
').
5744 with_gnu_ld="$lt_cv_prog_gnu_ld"
5747 old_CFLAGS="$CFLAGS"
5749 # Set sane defaults for various variables
5750 test -z "$CC" && CC=cc
5751 test -z "$LTCC" && LTCC=$CC
5752 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5753 test -z "$LD" && LD=ld
5754 test -z "$ac_objext" && ac_objext=o
5756 for cc_temp in $compiler""; do
5758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5764 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's
%.
*/%%' -e "s%^$host_alias-%%"`
5767 # Only perform the check for file, if the check method requires it
5768 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5769 case $deplibs_check_method in
5771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5772 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5773 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5774 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5782 lt_save_MAGIC_CMD="$MAGIC_CMD"
5783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5785 for ac_dir in $ac_dummy; do
5787 test -z "$ac_dir" && ac_dir=.
5788 if test -f $ac_dir/${ac_tool_prefix}file; then
5789 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5790 if test -n "$file_magic_test_file"; then
5791 case $deplibs_check_method in
5793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5796 $EGREP "$file_magic_regex" > /dev/null; then
5801 *** Warning: the command libtool uses to detect shared libraries,
5802 *** $file_magic_cmd, produces output that libtool cannot recognize.
5803 *** The result is that libtool may fail to recognize shared libraries
5804 *** as such. This will affect the creation of libtool libraries that
5805 *** depend on shared libraries, but programs linked with such libtool
5806 *** libraries will work regardless of this problem. Nevertheless, you
5807 *** may want to report the problem to your system manager and/or to
5808 *** bug-libtool@gnu.org
5818 MAGIC_CMD="$lt_save_MAGIC_CMD"
5823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5824 if test -n "$MAGIC_CMD"; then
5825 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5826 echo "${ECHO_T}$MAGIC_CMD" >&6
5828 echo "$as_me:$LINENO: result: no" >&5
5829 echo "${ECHO_T}no" >&6
5836 if test -z "$lt_cv_path_MAGIC_CMD"; then
5837 if test -n "$ac_tool_prefix"; then
5838 echo "$as_me:$LINENO: checking for file" >&5
5839 echo $ECHO_N "checking for file... $ECHO_C" >&6
5840 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5848 lt_save_MAGIC_CMD="$MAGIC_CMD"
5849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5851 for ac_dir in $ac_dummy; do
5853 test -z "$ac_dir" && ac_dir=.
5854 if test -f $ac_dir/file; then
5855 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5856 if test -n "$file_magic_test_file"; then
5857 case $deplibs_check_method in
5859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5862 $EGREP "$file_magic_regex" > /dev/null; then
5867 *** Warning: the command libtool uses to detect shared libraries,
5868 *** $file_magic_cmd, produces output that libtool cannot recognize.
5869 *** The result is that libtool may fail to recognize shared libraries
5870 *** as such. This will affect the creation of libtool libraries that
5871 *** depend on shared libraries, but programs linked with such libtool
5872 *** libraries will work regardless of this problem. Nevertheless, you
5873 *** may want to report the problem to your system manager and/or to
5874 *** bug-libtool@gnu.org
5884 MAGIC_CMD="$lt_save_MAGIC_CMD"
5889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5890 if test -n "$MAGIC_CMD"; then
5891 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5892 echo "${ECHO_T}$MAGIC_CMD" >&6
5894 echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5908 # Use C for the default configuration in the libtool script
5912 ac_cpp='$CPP $CPPFLAGS'
5913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5914 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5918 # Source file extension for C test sources.
5921 # Object file extension for compiled C test sources.
5925 # Code to be used in simple compile tests
5926 lt_simple_compile_test_code="int some_variable = 0;"
5928 # Code to be used in simple link tests
5929 lt_simple_link_test_code='int main
(){return(0);}'
5937 # If no C compiler was specified, use CC.
5940 # If no C compiler flags were specified, use CFLAGS.
5941 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5943 # Allow CC to be a program name with arguments.
5946 # Save the default compiler, since it gets overwritten when the other
5947 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5948 compiler_DEFAULT=$CC
5950 # save warnings/boilerplate of simple test code
5951 ac_outfile=conftest.$ac_objext
5952 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5953 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
5954 _lt_compiler_boilerplate=`cat conftest.err`
5957 ac_outfile=conftest.$ac_objext
5958 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5959 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$
/d
; /^
*+/d
' >conftest.err
5960 _lt_linker_boilerplate=`cat conftest.err`
5965 ## There is no encapsulation within the following macros, do not change
5966 ## the running order or otherwise move them around unless you know exactly
5967 ## what you are doing...
5968 if test -n "$compiler"; then
5970 lt_prog_compiler_no_builtin_flag=
5972 if test "$GCC" = yes; then
5973 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5975 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5976 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5977 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 lt_cv_prog_compiler_rtti_exceptions=no
5981 ac_outfile=conftest.$ac_objext
5982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5983 lt_compiler_flag="-fno-rtti -fno-exceptions"
5984 # Insert the option either (1) after the last *FLAGS variable, or
5985 # (2) before a word containing "conftest.", or (3) at the end.
5986 # Note that $ac_compile itself does not contain backslashes and begins
5987 # with a dollar sign (not a hyphen), so the echo should work correctly.
5988 # The option is referenced via a variable to avoid confusing sed.
5989 lt_compile=`echo "$ac_compile" | $SED \
5990 -e 's
:.
*FLAGS
}\
{0,1\
} :&$lt_compiler_flag :; t
' \
5991 -e 's
: [^
]*conftest\.
: $lt_compiler_flag&:; t
' \
5992 -e 's
:$
: $lt_compiler_flag:'`
5993 (eval echo "\"\$as_me:5993: $lt_compile\"" >&5)
5994 (eval "$lt_compile" 2>conftest.err)
5996 cat conftest.err >&5
5997 echo "$as_me:5997: \$? = $ac_status" >&5
5998 if (exit $ac_status) && test -s "$ac_outfile"; then
5999 # The compiler can only warn and ignore the option if not recognized
6000 # So say no if there are warnings other than the usual output.
6001 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$
/d
' >conftest.exp
6002 $SED '/^$
/d
; /^
*+/d
' conftest.err >conftest.er2
6003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6004 lt_cv_prog_compiler_rtti_exceptions=yes
6010 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6011 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6014 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6026 lt_prog_compiler_wl=
6027 lt_prog_compiler_pic=
6028 lt_prog_compiler_static=
6030 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6031 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6033 if test "$GCC" = yes; then
6034 lt_prog_compiler_wl='-Wl,'
6035 lt_prog_compiler_static='-static'
6039 # All AIX code is PIC.
6040 if test "$host_cpu" = ia64; then
6041 # AIX 5 now supports IA64 processor
6042 lt_prog_compiler_static='-Bstatic'
6047 if test "$host_cpu" = m68k; then
6048 # FIXME: we need at least 68020 code to build shared libraries, but
6049 # adding the `-m68020' flag to GCC prevents building anything better
,
6051 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
6055 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
6056 # PIC is the default for these OSes.
6059 mingw
* | cygwin
* | pw32
* | os2
*)
6060 # This hack is so that the source file can tell whether it is being
6061 # built for inclusion in a dll (and should export symbols for example).
6062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6063 # (--disable-auto-import) libraries
6064 lt_prog_compiler_pic
='-DDLL_EXPORT'
6067 darwin
* | rhapsody
*)
6068 # PIC is the default on this platform
6069 # Common symbols not allowed in MH_DYLIB files
6070 lt_prog_compiler_pic
='-fno-common'
6074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6081 lt_prog_compiler_pic
='-fPIC'
6087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6088 # Instead, we relocate shared libraries at runtime.
6092 # Just because we use GCC doesn't mean we suddenly get shared libraries
6093 # on systems that don't support them.
6094 lt_prog_compiler_can_build_shared
=no
6099 # QNX uses GNU C++, but need to define -shared option too, otherwise
6101 lt_prog_compiler_pic
='-fPIC -shared'
6105 if test -d /usr
/nec
; then
6106 lt_prog_compiler_pic
=-Kconform_pic
6111 lt_prog_compiler_pic
='-fPIC'
6115 # PORTME Check for flag to pass linker flags through the system compiler.
6118 lt_prog_compiler_wl
='-Wl,'
6119 if test "$host_cpu" = ia64
; then
6120 # AIX 5 now supports IA64 processor
6121 lt_prog_compiler_static
='-Bstatic'
6123 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
6127 # PIC is the default on this platform
6128 # Common symbols not allowed in MH_DYLIB files
6129 case $cc_basename in
6131 lt_prog_compiler_pic
='-qnocommon'
6132 lt_prog_compiler_wl
='-Wl,'
6137 mingw
* | cygwin
* | pw32
* | os2
*)
6138 # This hack is so that the source file can tell whether it is being
6139 # built for inclusion in a dll (and should export symbols for example).
6140 lt_prog_compiler_pic
='-DDLL_EXPORT'
6143 hpux9
* | hpux10
* | hpux11
*)
6144 lt_prog_compiler_wl
='-Wl,'
6145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6152 lt_prog_compiler_pic
='+Z'
6155 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6156 lt_prog_compiler_static
='${wl}-a ${wl}archive'
6159 irix5
* | irix6
* | nonstopux
*)
6160 lt_prog_compiler_wl
='-Wl,'
6161 # PIC (with -KPIC) is the default.
6162 lt_prog_compiler_static
='-non_shared'
6165 linux
* | k
*bsd
*-gnu)
6166 case $cc_basename in
6168 lt_prog_compiler_wl
='-Wl,'
6169 lt_prog_compiler_pic
='-KPIC'
6170 lt_prog_compiler_static
='-static'
6172 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
6173 # Portland Group compilers (*not* the Pentium gcc compiler,
6174 # which looks to be a dead project)
6175 lt_prog_compiler_wl
='-Wl,'
6176 lt_prog_compiler_pic
='-fpic'
6177 lt_prog_compiler_static
='-Bstatic'
6180 lt_prog_compiler_wl
='-Wl,'
6181 # All Alpha code is PIC.
6182 lt_prog_compiler_static
='-non_shared'
6185 case `$CC -V 2>&1 | sed 5q` in
6188 lt_prog_compiler_pic
='-KPIC'
6189 lt_prog_compiler_static
='-Bstatic'
6190 lt_prog_compiler_wl
='-Wl,'
6193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6194 lt_prog_compiler_pic
='-KPIC'
6195 lt_prog_compiler_static
='-Bstatic'
6196 lt_prog_compiler_wl
=''
6204 lt_prog_compiler_pic
='-KPIC'
6205 lt_prog_compiler_static
='-Bstatic'
6209 # QNX uses GNU C++, but need to define -shared option too, otherwise
6211 lt_prog_compiler_pic
='-fPIC -shared'
6214 osf3
* | osf4
* | osf5
*)
6215 lt_prog_compiler_wl
='-Wl,'
6216 # All OSF/1 code is PIC.
6217 lt_prog_compiler_static
='-non_shared'
6221 lt_prog_compiler_static
='-non_shared'
6225 lt_prog_compiler_pic
='-KPIC'
6226 lt_prog_compiler_static
='-Bstatic'
6227 case $cc_basename in
6229 lt_prog_compiler_wl
='-Qoption ld ';;
6231 lt_prog_compiler_wl
='-Wl,';;
6236 lt_prog_compiler_wl
='-Qoption ld '
6237 lt_prog_compiler_pic
='-PIC'
6238 lt_prog_compiler_static
='-Bstatic'
6241 sysv4 | sysv4.2uw2
* | sysv4.3
*)
6242 lt_prog_compiler_wl
='-Wl,'
6243 lt_prog_compiler_pic
='-KPIC'
6244 lt_prog_compiler_static
='-Bstatic'
6248 if test -d /usr
/nec
;then
6249 lt_prog_compiler_pic
='-Kconform_pic'
6250 lt_prog_compiler_static
='-Bstatic'
6254 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
6255 lt_prog_compiler_wl
='-Wl,'
6256 lt_prog_compiler_pic
='-KPIC'
6257 lt_prog_compiler_static
='-Bstatic'
6261 lt_prog_compiler_wl
='-Wl,'
6262 lt_prog_compiler_can_build_shared
=no
6266 lt_prog_compiler_pic
='-pic'
6267 lt_prog_compiler_static
='-Bstatic'
6271 lt_prog_compiler_can_build_shared
=no
6277 # For platforms which do not support PIC, -DPIC is meaningless:
6279 lt_prog_compiler_pic
=
6282 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
6285 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6286 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6294 # Check to make sure the PIC flag actually works.
6296 if test -n "$lt_prog_compiler_pic"; then
6297 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6298 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6299 if test "${lt_prog_compiler_pic_works+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 lt_prog_compiler_pic_works
=no
6303 ac_outfile
=conftest.
$ac_objext
6304 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
6305 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
6306 # Insert the option either (1) after the last *FLAGS variable, or
6307 # (2) before a word containing "conftest.", or (3) at the end.
6308 # Note that $ac_compile itself does not contain backslashes and begins
6309 # with a dollar sign (not a hyphen), so the echo should work correctly.
6310 # The option is referenced via a variable to avoid confusing sed.
6311 lt_compile
=`echo "$ac_compile" | $SED \
6312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6314 -e 's:$: $lt_compiler_flag:'`
6315 (eval echo "\"\$as_me:6315: $lt_compile\"" >&5)
6316 (eval "$lt_compile" 2>conftest.err
)
6318 cat conftest.err
>&5
6319 echo "$as_me:6319: \$? = $ac_status" >&5
6320 if (exit $ac_status) && test -s "$ac_outfile"; then
6321 # The compiler can only warn and ignore the option if not recognized
6322 # So say no if there are warnings other than the usual output.
6323 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
6324 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6325 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
6326 lt_prog_compiler_pic_works
=yes
6332 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6333 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6335 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
6336 case $lt_prog_compiler_pic in
6338 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
6341 lt_prog_compiler_pic
=
6342 lt_prog_compiler_can_build_shared
=no
6353 # Check to make sure the static flag actually works.
6355 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
6356 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6357 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6358 if test "${lt_prog_compiler_static_works+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 lt_prog_compiler_static_works
=no
6362 save_LDFLAGS
="$LDFLAGS"
6363 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
6364 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
6365 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
6366 # The linker can only warn and ignore the option if not recognized
6367 # So say no if there are warnings
6368 if test -s conftest.err
; then
6369 # Append any errors to the config.log.
6370 cat conftest.err
1>&5
6371 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
6372 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
6373 if diff conftest.exp conftest.er2
>/dev
/null
; then
6374 lt_prog_compiler_static_works
=yes
6377 lt_prog_compiler_static_works
=yes
6381 LDFLAGS
="$save_LDFLAGS"
6384 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6385 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6387 if test x
"$lt_prog_compiler_static_works" = xyes
; then
6390 lt_prog_compiler_static
=
6399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 lt_cv_prog_compiler_c_o
=no
6405 $RM -r conftest
2>/dev
/null
6409 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
6411 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6412 # Insert the option either (1) after the last *FLAGS variable, or
6413 # (2) before a word containing "conftest.", or (3) at the end.
6414 # Note that $ac_compile itself does not contain backslashes and begins
6415 # with a dollar sign (not a hyphen), so the echo should work correctly.
6416 lt_compile
=`echo "$ac_compile" | $SED \
6417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419 -e 's:$: $lt_compiler_flag:'`
6420 (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
6421 (eval "$lt_compile" 2>out
/conftest.err
)
6423 cat out
/conftest.err
>&5
6424 echo "$as_me:6424: \$? = $ac_status" >&5
6425 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6427 # The compiler can only warn and ignore the option if not recognized
6428 # So say no if there are warnings
6429 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
6430 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
6431 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
6432 lt_cv_prog_compiler_c_o
=yes
6437 # SGI C++ compiler will create directory out/ii_files/ for
6438 # template instantiation
6439 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
6440 $RM out
/* && rmdir out
6446 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6447 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6454 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6455 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6456 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 lt_cv_prog_compiler_c_o
=no
6460 $RM -r conftest
2>/dev
/null
6464 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
6466 lt_compiler_flag
="-o out/conftest2.$ac_objext"
6467 # Insert the option either (1) after the last *FLAGS variable, or
6468 # (2) before a word containing "conftest.", or (3) at the end.
6469 # Note that $ac_compile itself does not contain backslashes and begins
6470 # with a dollar sign (not a hyphen), so the echo should work correctly.
6471 lt_compile
=`echo "$ac_compile" | $SED \
6472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6474 -e 's:$: $lt_compiler_flag:'`
6475 (eval echo "\"\$as_me:6475: $lt_compile\"" >&5)
6476 (eval "$lt_compile" 2>out
/conftest.err
)
6478 cat out
/conftest.err
>&5
6479 echo "$as_me:6479: \$? = $ac_status" >&5
6480 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
6482 # The compiler can only warn and ignore the option if not recognized
6483 # So say no if there are warnings
6484 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
6485 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
6486 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
6487 lt_cv_prog_compiler_c_o
=yes
6492 # SGI C++ compiler will create directory out/ii_files/ for
6493 # template instantiation
6494 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
6495 $RM out
/* && rmdir out
6501 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6502 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6507 hard_links
="nottested"
6508 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
6509 # do not overwrite the value of need_locks provided by the user
6510 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6511 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6514 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6516 ln conftest.a conftest.b
2>&5 || hard_links
=no
6517 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
6518 echo "$as_me:$LINENO: result: $hard_links" >&5
6519 echo "${ECHO_T}$hard_links" >&6
6520 if test "$hard_links" = no
; then
6521 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6522 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6535 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6538 allow_undefined_flag
=
6539 always_export_symbols
=no
6541 archive_expsym_cmds
=
6542 compiler_needs_object
=no
6543 enable_shared_with_static_runtimes
=no
6544 export_dynamic_flag_spec
=
6545 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6546 hardcode_automatic
=no
6548 hardcode_direct_absolute
=no
6549 hardcode_libdir_flag_spec
=
6550 hardcode_libdir_flag_spec_ld
=
6551 hardcode_libdir_separator
=
6553 hardcode_shlibpath_var
=unsupported
6555 link_all_deplibs
=unknown
6558 old_archive_from_new_cmds
=
6559 old_archive_from_expsyms_cmds
=
6560 thread_safe_flag_spec
=
6561 whole_archive_flag_spec
=
6562 # include_expsyms should be a list of space-separated symbols to be *always*
6563 # included in the symbol list
6565 # exclude_expsyms can be an extended regexp of symbols to exclude
6566 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6567 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6568 # as well as any symbol that contains `d'.
6569 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
6570 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6571 # platforms (ab)use it in PIC code, but their linkers get confused if
6572 # the symbol is explicitly referenced. Since portable code cannot
6573 # rely on this symbol name, it's probably fine to never include it in
6574 # preloaded symbol tables.
6575 extract_expsyms_cmds
=
6578 cygwin
* | mingw
* | pw32
*)
6579 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6580 # When not using gcc, we currently assume that we are using
6581 # Microsoft Visual C++.
6582 if test "$GCC" != yes; then
6587 # we just hope/assume this is gcc and not c89 (= MSVC++)
6596 if test "$with_gnu_ld" = yes; then
6597 # If archive_cmds runs LD, not CC, wlarc should be empty
6600 # Set some defaults for GNU ld with shared library support. These
6601 # are reset later if shared libraries are not supported. Putting them
6602 # here allows them to be overridden if necessary.
6603 runpath_var
=LD_RUN_PATH
6604 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6605 export_dynamic_flag_spec
='${wl}--export-dynamic'
6606 # ancient GNU ld didn't support --whole-archive et. al.
6607 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
6608 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6610 whole_archive_flag_spec
=
6612 supports_anon_versioning
=no
6613 case `$LD -v 2>&1` in
6614 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
6615 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
6616 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
6617 *\
2.11.
*) ;; # other 2.11 versions
6618 *) supports_anon_versioning
=yes ;;
6621 # See if GNU ld supports shared libraries.
6624 # On AIX/PPC, the GNU linker is very broken
6625 if test "$host_cpu" != ia64
; then
6629 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6630 *** to be unable to reliably create shared libraries on AIX.
6631 *** Therefore, libtool is disabling shared libraries support. If you
6632 *** really care for shared libraries, you may want to modify your PATH
6633 *** so that a non-GNU linker is found, and then restart.
6640 if test "$host_cpu" = m68k
; then
6641 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)'
6642 hardcode_libdir_flag_spec
='-L$libdir'
6643 hardcode_minus_L
=yes
6646 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6647 # that the semantics of dynamic libraries on AmigaOS, at least up
6648 # to version 4, is to share data among multiple programs linked
6649 # with the same dynamic library. Since this doesn't match the
6650 # behavior of shared libraries on other platforms, we can't use
6656 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
6657 allow_undefined_flag
=unsupported
6658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6659 # support --undefined. This deserves some investigation. FIXME
6660 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6666 cygwin
* | mingw
* | pw32
*)
6667 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6668 # as there is no search path for DLLs.
6669 hardcode_libdir_flag_spec
='-L$libdir'
6670 allow_undefined_flag
=unsupported
6671 always_export_symbols
=no
6672 enable_shared_with_static_runtimes
=yes
6673 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6675 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
6676 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6677 # If the export-symbols file already is a .def file (1st line
6678 # is EXPORTS), use it as is; otherwise, prepend...
6679 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6680 cp $export_symbols $output_objdir/$soname.def;
6682 echo EXPORTS > $output_objdir/$soname.def;
6683 cat $export_symbols >> $output_objdir/$soname.def;
6685 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6693 hardcode_shlibpath_var
=no
6694 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
6695 export_dynamic_flag_spec
='${wl}-E'
6696 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6697 # Instead, shared libraries are loaded at an image base (0x10000000 by
6698 # default) and relocated if they conflict, which is a slow very memory
6699 # consuming and fragmenting process. To avoid this, we pick a random,
6700 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6701 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6702 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6703 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'
6706 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
6708 if test "$host_os" = linux-dietlibc
; then
6709 case $cc_basename in
6710 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
6713 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
6714 && test "$tmp_diet" = no
6717 case $cc_basename,$host_cpu in
6718 pgcc
*) # Portland Group C compiler
6719 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'
6720 tmp_addflag
=' $pic_flag'
6722 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
6723 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'
6724 tmp_addflag
=' $pic_flag -Mnomain' ;;
6725 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
6726 tmp_addflag
=' -i_dynamic' ;;
6727 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
6728 tmp_addflag
=' -i_dynamic -nofor_main' ;;
6729 ifc
* | ifort
*) # Intel Fortran compiler
6730 tmp_addflag
=' -nofor_main' ;;
6732 case `$CC -V 2>&1 | sed 5q` in
6733 *Sun\ C
*) # Sun C 5.9
6734 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'
6735 compiler_needs_object
=yes
6736 tmp_sharedflag
='-G' ;;
6737 *Sun\ F
*) # Sun Fortran 8.3
6738 tmp_sharedflag
='-G' ;;
6740 tmp_sharedflag
='-shared' ;;
6742 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6744 if test "x$supports_anon_versioning" = xyes
; then
6745 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
6746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6747 echo "local: *; };" >> $output_objdir/$libname.ver~
6748 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6756 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
6757 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6760 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6766 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
6770 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6771 *** create shared libraries on Solaris systems. Therefore, libtool
6772 *** is disabling shared libraries support. We urge you to upgrade GNU
6773 *** binutils to release 2.9.1 or newer. Another option is to modify
6774 *** your PATH or compiler configuration so that the native linker is
6775 *** used, and then restart.
6778 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
6779 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6780 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6786 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6787 case `$LD -v 2>&1` in
6788 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
6792 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6793 *** reliably create shared libraries on SCO systems. Therefore, libtool
6794 *** is disabling shared libraries support. We urge you to upgrade GNU
6795 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6796 *** your PATH or compiler configuration so that the native linker is
6797 *** used, and then restart.
6802 # For security reasons, it is highly recommended that you always
6803 # use absolute paths for naming shared libraries, and exclude the
6804 # DT_RUNPATH tag from executables and libraries. But doing so
6805 # requires that you compile everything twice, which is a pain.
6806 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
6807 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
6808 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6809 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6818 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6821 hardcode_shlibpath_var
=no
6825 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
6826 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6827 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6834 if test "$ld_shlibs" = no
; then
6836 hardcode_libdir_flag_spec
=
6837 export_dynamic_flag_spec
=
6838 whole_archive_flag_spec
=
6841 # PORTME fill in a description of your system's linker (not GNU ld)
6844 allow_undefined_flag
=unsupported
6845 always_export_symbols
=yes
6846 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'
6847 # Note: this linker hardcodes the directories in LIBPATH if there
6848 # are no directories specified by -L.
6849 hardcode_minus_L
=yes
6850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6851 # Neither direct hardcoding nor static linking is supported with a
6853 hardcode_direct
=unsupported
6858 if test "$host_cpu" = ia64
; then
6859 # On IA64, the linker does run time linking by default, so we don't
6860 # have to do anything special.
6861 aix_use_runtimelinking
=no
6862 exp_sym_flag
='-Bexport'
6865 # If we're using GNU nm, then we don't want the "-C" option.
6866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6867 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
6868 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'
6870 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'
6872 aix_use_runtimelinking
=no
6874 # Test if we are trying to use run time linking or normal
6875 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6876 # need to do runtime linking.
6877 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
6878 for ld_flag
in $LDFLAGS; do
6879 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
6880 aix_use_runtimelinking
=yes
6887 exp_sym_flag
='-bexport'
6888 no_entry_flag
='-bnoentry'
6891 # When large executables or shared objects are built, AIX ld can
6892 # have problems creating the table of contents. If linking a library
6893 # or program results in "error TOC overflow" add -mminimal-toc to
6894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6899 hardcode_direct_absolute
=yes
6900 hardcode_libdir_separator
=':'
6901 link_all_deplibs
=yes
6902 file_list_spec
='${wl}-f,'
6904 if test "$GCC" = yes; then
6905 case $host_os in aix4.
[012]|aix4.
[012].
*)
6906 # We only want to do this on AIX 4.2 and lower, the check
6907 # below for broken collect2 doesn't work under 4.3+
6908 collect2name
=`${CC} -print-prog-name=collect2`
6909 if test -f "$collect2name" &&
6910 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
6912 # We have reworked collect2
6915 # We have old collect2
6916 hardcode_direct
=unsupported
6917 # It fails to find uninstalled libraries when the uninstalled
6918 # path is not listed in the libpath. Setting hardcode_minus_L
6919 # to unsupported forces relinking
6920 hardcode_minus_L
=yes
6921 hardcode_libdir_flag_spec
='-L$libdir'
6922 hardcode_libdir_separator
=
6926 shared_flag
='-shared'
6927 if test "$aix_use_runtimelinking" = yes; then
6928 shared_flag
="$shared_flag "'${wl}-G'
6932 if test "$host_cpu" = ia64
; then
6933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6934 # chokes on -Wl,-G. The following line is correct:
6937 if test "$aix_use_runtimelinking" = yes; then
6938 shared_flag
='${wl}-G'
6940 shared_flag
='${wl}-bM:SRE'
6945 # It seems that -bexpall does not export symbols beginning with
6946 # underscore (_), so it is better to generate a list of symbols to export.
6947 always_export_symbols
=yes
6948 if test "$aix_use_runtimelinking" = yes; then
6949 # Warning - without using the other runtime loading flags (-brtl),
6950 # -berok will link without error, but may produce a broken library.
6951 allow_undefined_flag
='-berok'
6952 # Determine the default libpath from the value encoded in an
6954 cat >conftest.
$ac_ext <<_ACEOF
6957 cat confdefs.h
>>conftest.
$ac_ext
6958 cat >>conftest.
$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6969 rm -f conftest.
$ac_objext conftest
$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>conftest.er1
6973 grep -v '^ *+' conftest.er1
>conftest.err
6975 cat conftest.err
>&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try
='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try
='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6992 lt_aix_libpath_sed
='
6993 /Import File Strings/,/^$/ {
6999 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7000 # Check for a 64-bit object if we didn't find anything.
7001 if test -z "$aix_libpath"; then
7002 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.
$ac_ext >&5
7009 rm -f conftest.err conftest.
$ac_objext \
7010 conftest
$ac_exeext conftest.
$ac_ext
7011 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7013 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7014 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"
7016 if test "$host_cpu" = ia64
; then
7017 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
7018 allow_undefined_flag
="-z nodefs"
7019 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"
7021 # Determine the default libpath from the value encoded in an
7023 cat >conftest.
$ac_ext <<_ACEOF
7026 cat confdefs.h
>>conftest.
$ac_ext
7027 cat >>conftest.
$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7038 rm -f conftest.
$ac_objext conftest
$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>conftest.er1
7042 grep -v '^ *+' conftest.er1
>conftest.err
7044 cat conftest.err
>&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try
='test -z "$ac_c_werror_flag"
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try
='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7061 lt_aix_libpath_sed
='
7062 /Import File Strings/,/^$/ {
7068 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7069 # Check for a 64-bit object if we didn't find anything.
7070 if test -z "$aix_libpath"; then
7071 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.
$ac_ext >&5
7078 rm -f conftest.err conftest.
$ac_objext \
7079 conftest
$ac_exeext conftest.
$ac_ext
7080 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7082 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7083 # Warning - without using the other run time loading flags,
7084 # -berok will link without error, but may produce a broken library.
7085 no_undefined_flag
=' ${wl}-bernotok'
7086 allow_undefined_flag
=' ${wl}-berok'
7087 # Exported symbols can be pulled into shared objects from archives
7088 whole_archive_flag_spec
='$convenience'
7089 archive_cmds_need_lc
=yes
7090 # This is similar to how AIX traditionally builds its shared libraries.
7091 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'
7097 if test "$host_cpu" = m68k
; then
7098 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)'
7099 hardcode_libdir_flag_spec
='-L$libdir'
7100 hardcode_minus_L
=yes
7102 # see comment about different semantics on the GNU ld section
7107 export_dynamic_flag_spec
=-rdynamic
7110 cygwin
* | mingw
* | pw32
*)
7111 # When not using gcc, we currently assume that we are using
7112 # Microsoft Visual C++.
7113 # hardcode_libdir_flag_spec is actually meaningless, as there is
7114 # no search path for DLLs.
7115 hardcode_libdir_flag_spec
=' '
7116 allow_undefined_flag
=unsupported
7117 # Tell ltmain to make .lib files, not .a files.
7119 # Tell ltmain to make .dll files, not .so files.
7121 # FIXME: Setting linknames here is a bad hack.
7122 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7123 # The linker will automatically build a .lib file if we build a DLL.
7124 old_archive_from_new_cmds
='true'
7125 # FIXME: Should let the user specify the lib program.
7126 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
7127 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7128 enable_shared_with_static_runtimes
=yes
7131 darwin
* | rhapsody
*)
7133 rhapsody
* | darwin1.
[012])
7134 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
7137 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7139 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7142 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
7147 archive_cmds_need_lc
=no
7149 hardcode_automatic
=yes
7150 hardcode_shlibpath_var
=unsupported
7151 whole_archive_flag_spec
=''
7152 link_all_deplibs
=yes
7153 if test "$GCC" = yes ; then
7154 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 lt_cv_apple_cc_single_mod
=no
7158 if test -z "${LT_MULTI_MODULE}"; then
7159 # By default we will add the -single_module flag. You can override
7160 # by either setting the environment variable LT_MULTI_MODULE
7161 # non-empty at configure time, or by adding -multi-module to the
7163 echo "int foo(void){return 1;}" > conftest.c
7164 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7165 -dynamiclib ${wl}-single_module conftest.c
7166 if test -f libconftest.dylib
; then
7167 lt_cv_apple_cc_single_mod
=yes
7168 rm libconftest.dylib
7174 output_verbose_link_cmd
=echo
7175 if test "X$lt_cv_apple_cc_single_mod" = Xyes
; then
7176 archive_cmds
='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7177 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}'
7179 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7180 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}'
7182 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7183 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}'
7185 case $cc_basename in
7187 output_verbose_link_cmd
=echo
7188 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7189 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7190 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7191 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}'
7192 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}'
7202 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7203 hardcode_libdir_flag_spec
='-L$libdir'
7204 hardcode_shlibpath_var
=no
7211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7212 # support. Future versions do this automatically, but an explicit c++rt0.o
7213 # does not break anything, and helps significantly (at the cost of a little
7216 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7217 hardcode_libdir_flag_spec
='-R$libdir'
7219 hardcode_shlibpath_var
=no
7222 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7224 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7226 hardcode_minus_L
=yes
7227 hardcode_shlibpath_var
=no
7230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7231 freebsd
* | dragonfly
*)
7232 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7233 hardcode_libdir_flag_spec
='-R$libdir'
7235 hardcode_shlibpath_var
=no
7239 if test "$GCC" = yes; then
7240 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'
7242 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'
7244 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7245 hardcode_libdir_separator
=:
7248 # hardcode_minus_L: Not really in the search PATH,
7249 # but as the default location of the library.
7250 hardcode_minus_L
=yes
7251 export_dynamic_flag_spec
='${wl}-E'
7255 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7256 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7258 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7260 if test "$with_gnu_ld" = no
; then
7261 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7262 hardcode_libdir_flag_spec_ld
='+b $libdir'
7263 hardcode_libdir_separator
=:
7265 hardcode_direct_absolute
=yes
7266 export_dynamic_flag_spec
='${wl}-E'
7267 # hardcode_minus_L: Not really in the search PATH,
7268 # but as the default location of the library.
7269 hardcode_minus_L
=yes
7274 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7277 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7280 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7283 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7289 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7292 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7295 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7299 if test "$with_gnu_ld" = no
; then
7300 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7301 hardcode_libdir_separator
=:
7306 hardcode_shlibpath_var
=no
7310 hardcode_direct_absolute
=yes
7311 export_dynamic_flag_spec
='${wl}-E'
7313 # hardcode_minus_L: Not really in the search PATH,
7314 # but as the default location of the library.
7315 hardcode_minus_L
=yes
7321 irix5
* | irix6
* | nonstopux
*)
7322 if test "$GCC" = yes; then
7323 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'
7324 # Try to use the -exported_symbol ld option, if it does not
7325 # work, assume that -exports_file does not work either and
7326 # implicitly export all symbols.
7327 save_LDFLAGS
="$LDFLAGS"
7328 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7329 cat >conftest.
$ac_ext <<_ACEOF
7332 rm -f conftest.
$ac_objext conftest
$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>conftest.er1
7336 grep -v '^ *+' conftest.er1
>conftest.err
7338 cat conftest.err
>&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try
='test -z "$ac_c_werror_flag"
7342 || test ! -s conftest.err'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; } &&
7348 { ac_try
='test -s conftest$ac_exeext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 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'
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7361 rm -f conftest.err conftest.
$ac_objext \
7362 conftest
$ac_exeext conftest.
$ac_ext
7363 LDFLAGS
="$save_LDFLAGS"
7365 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'
7366 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'
7368 archive_cmds_need_lc
='no'
7369 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7370 hardcode_libdir_separator
=:
7372 link_all_deplibs
=yes
7376 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
7377 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7379 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7381 hardcode_libdir_flag_spec
='-R$libdir'
7383 hardcode_shlibpath_var
=no
7387 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7389 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7390 hardcode_libdir_separator
=:
7391 hardcode_shlibpath_var
=no
7399 hardcode_shlibpath_var
=no
7400 hardcode_direct_absolute
=yes
7401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7402 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7403 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7404 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7405 export_dynamic_flag_spec
='${wl}-E'
7408 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
7409 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7410 hardcode_libdir_flag_spec
='-R$libdir'
7413 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7414 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7421 hardcode_libdir_flag_spec
='-L$libdir'
7422 hardcode_minus_L
=yes
7423 allow_undefined_flag
=unsupported
7424 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'
7425 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7429 if test "$GCC" = yes; then
7430 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7431 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'
7433 allow_undefined_flag
=' -expect_unresolved \*'
7434 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'
7436 archive_cmds_need_lc
='no'
7437 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7438 hardcode_libdir_separator
=:
7441 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
7442 if test "$GCC" = yes; then
7443 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
7444 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'
7445 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7447 allow_undefined_flag
=' -expect_unresolved \*'
7448 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'
7449 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~
7450 $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'
7452 # Both c and cxx compiler support -rpath directly
7453 hardcode_libdir_flag_spec
='-rpath $libdir'
7455 archive_cmds_need_lc
='no'
7456 hardcode_libdir_separator
=:
7460 no_undefined_flag
=' -z defs'
7461 if test "$GCC" = yes; then
7463 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7464 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7465 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7467 case `$CC -V 2>&1` in
7470 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7476 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7477 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7478 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7482 hardcode_libdir_flag_spec
='-R$libdir'
7483 hardcode_shlibpath_var
=no
7485 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
7487 # The compiler driver will combine and reorder linker options,
7488 # but understands `-z linker_flag'. GCC discards it without `$wl',
7489 # but is careful enough not to reorder.
7490 # Supported since Solaris 2.6 (maybe 2.5.1?)
7491 if test "$GCC" = yes; then
7492 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7494 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
7498 link_all_deplibs
=yes
7502 if test "x$host_vendor" = xsequent
; then
7503 # Use $CC to link under sequent, because it throws in some extra .o
7504 # files that make .init and .fini sections work.
7505 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7507 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7509 hardcode_libdir_flag_spec
='-L$libdir'
7511 hardcode_minus_L
=yes
7512 hardcode_shlibpath_var
=no
7516 case $host_vendor in
7518 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519 hardcode_direct
=yes # is this really true???
7522 ## LD is ld it makes a PLAMLIB
7523 ## CC just makes a GrossModule.
7524 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7525 reload_cmds
='$CC -r -o $output$reload_objs'
7529 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7530 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
7533 runpath_var
='LD_RUN_PATH'
7534 hardcode_shlibpath_var
=no
7538 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539 hardcode_shlibpath_var
=no
7540 export_dynamic_flag_spec
='-Bexport'
7544 if test -d /usr
/nec
; then
7545 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546 hardcode_shlibpath_var
=no
7547 runpath_var
=LD_RUN_PATH
7548 hardcode_runpath_var
=yes
7553 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
7554 no_undefined_flag
='${wl}-z,text'
7555 archive_cmds_need_lc
=no
7556 hardcode_shlibpath_var
=no
7557 runpath_var
='LD_RUN_PATH'
7559 if test "$GCC" = yes; then
7560 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7561 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7563 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7564 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7568 sysv5
* | sco3.2v5
* | sco5v6
*)
7569 # Note: We can NOT use -z defs as we might desire, because we do not
7570 # link with -lc, and that would cause any symbols used from libc to
7571 # always be unresolved, which means just about no library would
7572 # ever link correctly. If we're not using GNU ld we use -z text
7573 # though, which does catch some bad symbols but isn't as heavy-handed
7575 no_undefined_flag
='${wl}-z,text'
7576 allow_undefined_flag
='${wl}-z,nodefs'
7577 archive_cmds_need_lc
=no
7578 hardcode_shlibpath_var
=no
7579 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
7580 hardcode_libdir_separator
=':'
7581 link_all_deplibs
=yes
7582 export_dynamic_flag_spec
='${wl}-Bexport'
7583 runpath_var
='LD_RUN_PATH'
7585 if test "$GCC" = yes; then
7586 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7587 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7589 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7590 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7595 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7596 hardcode_libdir_flag_spec
='-L$libdir'
7597 hardcode_shlibpath_var
=no
7605 if test x
$host_vendor = xsni
; then
7607 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
7608 export_dynamic_flag_spec
='${wl}-Blargedynsym'
7614 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7615 echo "${ECHO_T}$ld_shlibs" >&6
7616 test "$ld_shlibs" = no
&& can_build_shared
=no
7618 with_gnu_ld
=$with_gnu_ld
7635 # Do we need to explicitly link libc?
7637 case "x$archive_cmds_need_lc" in
7639 # Assume -lc should be added
7640 archive_cmds_need_lc
=yes
7642 if test "$enable_shared" = yes && test "$GCC" = yes; then
7643 case $archive_cmds in
7645 # FIXME: we may have to deal with multi-command sequences.
7648 # Test whether the compiler implicitly links with -lc since on some
7649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7650 # to ld, don't add -lc before -lgcc.
7651 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7652 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7654 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657 (eval $ac_compile) 2>&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } 2>conftest.err
; then
7663 libobjs
=conftest.
$ac_objext
7665 wl
=$lt_prog_compiler_wl
7666 pic_flag
=$lt_prog_compiler_pic
7672 lt_save_allow_undefined_flag
=$allow_undefined_flag
7673 allow_undefined_flag
=
7674 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7675 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }
7680 archive_cmds_need_lc
=no
7682 archive_cmds_need_lc
=yes
7684 allow_undefined_flag
=$lt_save_allow_undefined_flag
7686 cat conftest.err
1>&5
7689 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7690 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7853 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7854 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7856 if test "$withGCC" = yes; then
7858 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
7859 *) lt_awk_arg
="/^libraries:/" ;;
7861 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7862 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
7863 # if the path contains ";" then we assume it to be the separator
7864 # otherwise default to the standard path separator (i.e. ":") - it is
7865 # assumed that no part of a normal pathname contains ";" but that should
7866 # okay in the real world where ";" in dirpaths is itself problematic.
7867 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7869 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7871 # Ok, now we have the path, separated by spaces, we can step through it
7872 # and add multilib dir if necessary.
7873 lt_tmp_lt_search_path_spec
=
7874 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7875 for lt_sys_path
in $lt_search_path_spec; do
7876 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7877 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7879 test -d "$lt_sys_path" && \
7880 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
7883 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7884 BEGIN {RS=" "; FS="/|\n";} {
7887 for (lt_i = NF; lt_i > 0; lt_i--) {
7888 if ($lt_i != "" && $lt_i != ".") {
7889 if ($lt_i == "..") {
7892 if (lt_count == 0) {
7893 lt_foo="/" $lt_i lt_foo;
7900 if (lt_foo != "") { lt_freq[lt_foo]++; }
7901 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7903 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
7905 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
7908 libname_spec
='lib$name'
7916 shlibpath_overrides_runpath
=unknown
7918 dynamic_linker
="$host_os ld.so"
7919 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
7920 need_lib_prefix
=unknown
7921 hardcode_into_libs
=no
7923 # when you set need_version to no, make sure it does not cause -set_version
7924 # flags to be left without arguments
7925 need_version
=unknown
7930 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
7931 shlibpath_var
=LIBPATH
7933 # AIX 3 has no versioning support, so we append a major version to the name.
7934 soname_spec
='${libname}${release}${shared_ext}$major'
7941 hardcode_into_libs
=yes
7942 if test "$host_cpu" = ia64
; then
7943 # AIX 5 supports IA64
7944 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7945 shlibpath_var
=LD_LIBRARY_PATH
7947 # With GCC up to 2.95.x, collect2 would create an import file
7948 # for dependence libraries. The import file would start with
7949 # the line `#! .'. This would cause the generated library to
7950 # depend on `.', always an invalid library. This was fixed in
7951 # development snapshots of GCC prior to 3.0.
7953 aix4 | aix4.
[01] | aix4.
[01].
*)
7954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7956 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
7963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7964 # soname into executable. Probably we can add versioning support to
7965 # collect2, so additional links can be useful in future.
7966 if test "$aix_use_runtimelinking" = yes; then
7967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7968 # instead of lib<name>.a to let people know that these are not
7969 # typical AIX shared libraries.
7970 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7972 # We preserve .a as extension for shared libraries through AIX4.2
7973 # and later when we are not doing run time linking.
7974 library_names_spec
='${libname}${release}.a $libname.a'
7975 soname_spec
='${libname}${release}${shared_ext}$major'
7977 shlibpath_var
=LIBPATH
7982 if test "$host_cpu" = m68k
; then
7983 library_names_spec
='$libname.ixlibrary $libname.a'
7984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7985 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'
7992 library_names_spec
='${libname}${shared_ext}'
7993 dynamic_linker
="$host_os ld.so"
7994 shlibpath_var
=LIBRARY_PATH
8000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8001 soname_spec
='${libname}${release}${shared_ext}$major'
8002 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8003 shlibpath_var
=LD_LIBRARY_PATH
8004 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8005 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8006 # the default ld.so.conf also contains /usr/contrib/lib and
8007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8008 # libtool to hard-code these into programs
8011 cygwin
* | mingw
* | pw32
*)
8012 version_type
=windows
8017 case $withGCC,$host_os in
8018 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8019 library_names_spec
='$libname.dll.a'
8020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8021 postinstall_cmds
='base_file=`basename \${file}`~
8022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8023 dldir=$destdir/`dirname \$dlpath`~
8024 test -d \$dldir || mkdir -p \$dldir~
8025 $install_prog $dir/$dlname \$dldir/$dlname~
8026 chmod a+x \$dldir/$dlname~
8027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8030 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8031 dlpath=$dir/\$dldll~
8033 shlibpath_overrides_runpath
=yes
8037 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8038 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8039 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8042 # MinGW DLLs use traditional 'lib' prefix
8043 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8044 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8045 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
8046 # It is most probably a Windows format PATH printed by
8047 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8048 # path with ; separators, and with drive letters. We can handle the
8049 # drive letters (cygwin fileutils understands them), so leave them,
8050 # especially as we might pass files found there to a mingw objdump,
8051 # which wouldn't understand a cygwinified path. Ahh.
8052 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8054 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8058 # pw32 DLLs use 'pw' prefix rather than 'lib'
8059 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8065 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8068 dynamic_linker
='Win32 ld.exe'
8069 # FIXME: first we should search . and the directory the executable is in
8073 darwin
* | rhapsody
*)
8074 dynamic_linker
="$host_os dyld"
8078 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8079 soname_spec
='${libname}${release}${major}$shared_ext'
8080 shlibpath_overrides_runpath
=yes
8081 shlibpath_var
=DYLD_LIBRARY_PATH
8082 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8084 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
8085 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8093 soname_spec
='${libname}${release}${shared_ext}$major'
8094 shlibpath_var
=LD_LIBRARY_PATH
8101 freebsd
* | dragonfly
*)
8102 # DragonFly does not have aout. When/if they implement a new
8103 # versioning mechanism, adjust this.
8104 if test -x /usr
/bin
/objformat
; then
8105 objformat
=`/usr/bin/objformat`
8108 freebsd
[123]*) objformat
=aout
;;
8112 version_type
=freebsd-
$objformat
8113 case $version_type in
8115 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8120 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8124 shlibpath_var
=LD_LIBRARY_PATH
8127 shlibpath_overrides_runpath
=yes
8129 freebsd3.
[01]* | freebsdelf3.
[01]*)
8130 shlibpath_overrides_runpath
=yes
8131 hardcode_into_libs
=yes
8133 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8134 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8135 shlibpath_overrides_runpath
=no
8136 hardcode_into_libs
=yes
8138 *) # from 4.6 on, and DragonFly
8139 shlibpath_overrides_runpath
=yes
8140 hardcode_into_libs
=yes
8149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8150 soname_spec
='${libname}${release}${shared_ext}$major'
8151 shlibpath_var
=LD_LIBRARY_PATH
8152 hardcode_into_libs
=yes
8155 hpux9
* | hpux10
* | hpux11
*)
8156 # Give a soname corresponding to the major version so that dld.sl refuses to
8157 # link against other versions.
8164 hardcode_into_libs
=yes
8165 dynamic_linker
="$host_os dld.so"
8166 shlibpath_var
=LD_LIBRARY_PATH
8167 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8169 soname_spec
='${libname}${release}${shared_ext}$major'
8170 if test "X$HPUX_IA64_MODE" = X32
; then
8171 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8173 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8175 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8179 hardcode_into_libs
=yes
8180 dynamic_linker
="$host_os dld.sl"
8181 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8182 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8183 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8184 soname_spec
='${libname}${release}${shared_ext}$major'
8185 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8186 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8190 dynamic_linker
="$host_os dld.sl"
8191 shlibpath_var
=SHLIB_PATH
8192 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8194 soname_spec
='${libname}${release}${shared_ext}$major'
8197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8198 postinstall_cmds
='chmod 555 $lib'
8205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8206 soname_spec
='${libname}${release}${shared_ext}$major'
8207 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8208 shlibpath_var
=LD_LIBRARY_PATH
8209 shlibpath_overrides_runpath
=no
8210 hardcode_into_libs
=yes
8213 irix5
* | irix6
* | nonstopux
*)
8215 nonstopux
*) version_type
=nonstopux
;;
8217 if test "$lt_cv_prog_gnu_ld" = yes; then
8225 soname_spec
='${libname}${release}${shared_ext}$major'
8226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8228 irix5
* | nonstopux
*)
8232 case $LD in # libtool.m4 will add one of these switches to LD
8233 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8234 libsuff
= shlibsuff
= libmagic
=32-bit;;
8235 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8236 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8237 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8238 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8239 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8243 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8244 shlibpath_overrides_runpath
=no
8245 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8246 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8247 hardcode_into_libs
=yes
8250 # No shared lib support for Linux oldld, aout, or coff.
8251 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8255 # This must be Linux ELF.
8256 linux
* | k
*bsd
*-gnu)
8260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8261 soname_spec
='${libname}${release}${shared_ext}$major'
8262 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8263 shlibpath_var
=LD_LIBRARY_PATH
8264 shlibpath_overrides_runpath
=no
8265 # Some binutils ld are patched to set DT_RUNPATH
8266 save_LDFLAGS
=$LDFLAGS
8268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8270 cat >conftest.
$ac_ext <<_ACEOF
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8285 rm -f conftest.
$ac_objext conftest
$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8289 grep -v '^ *+' conftest.er1
>conftest.err
8291 cat conftest.err
>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try
='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try
='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir"; then
8308 shlibpath_overrides_runpath
=yes
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.
$ac_ext >&5
8316 rm -f conftest.err conftest.
$ac_objext \
8317 conftest
$ac_exeext conftest.
$ac_ext
8318 LDFLAGS
=$save_LDFLAGS
8321 # This implies no fast_install, which is unacceptable.
8322 # Some rework will be needed to allow for fast_install
8323 # before this can be enabled.
8324 hardcode_into_libs
=yes
8326 # Append ld.so.conf contents to the search path
8327 if test -f /etc
/ld.so.conf
; then
8328 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' ' '`
8329 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
8332 # We used to test for /lib/ld.so.1 and disable shared libraries on
8333 # powerpc, because MkLinux only supported shared libraries with the
8334 # GNU dynamic linker. Since this was broken with cross compilers,
8335 # most powerpc-linux boxes support dynamic linking these days and
8336 # people can always --disable-shared, the test was removed, and we
8337 # assume the GNU/Linux dynamic linker is in use.
8338 dynamic_linker
='GNU/Linux ld.so'
8345 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8347 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8348 dynamic_linker
='NetBSD (a.out) ld.so'
8350 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8351 soname_spec
='${libname}${release}${shared_ext}$major'
8352 dynamic_linker
='NetBSD ld.elf_so'
8354 shlibpath_var
=LD_LIBRARY_PATH
8355 shlibpath_overrides_runpath
=yes
8356 hardcode_into_libs
=yes
8361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 shlibpath_var
=LD_LIBRARY_PATH
8363 shlibpath_overrides_runpath
=yes
8370 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8371 soname_spec
='${libname}${release}${shared_ext}$major'
8372 shlibpath_var
=LD_LIBRARY_PATH
8373 shlibpath_overrides_runpath
=no
8374 hardcode_into_libs
=yes
8375 dynamic_linker
='ldqnx.so'
8380 sys_lib_dlsearch_path_spec
="/usr/lib"
8382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8384 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
8385 *) need_version
=no
;;
8387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8388 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8389 shlibpath_var
=LD_LIBRARY_PATH
8390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8392 openbsd2.
[89] | openbsd2.
[89].
*)
8393 shlibpath_overrides_runpath
=no
8396 shlibpath_overrides_runpath
=yes
8400 shlibpath_overrides_runpath
=yes
8405 libname_spec
='$name'
8408 library_names_spec
='$libname${shared_ext} $libname.a'
8409 dynamic_linker
='OS/2 ld.exe'
8410 shlibpath_var
=LIBPATH
8413 osf3
* | osf4
* | osf5
*)
8417 soname_spec
='${libname}${release}${shared_ext}$major'
8418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8419 shlibpath_var
=LD_LIBRARY_PATH
8420 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8421 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
8432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8433 soname_spec
='${libname}${release}${shared_ext}$major'
8434 shlibpath_var
=LD_LIBRARY_PATH
8435 shlibpath_overrides_runpath
=yes
8436 hardcode_into_libs
=yes
8437 # ldd complains unless libraries are executable
8438 postinstall_cmds
='chmod +x $lib'
8443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8444 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8445 shlibpath_var
=LD_LIBRARY_PATH
8446 shlibpath_overrides_runpath
=yes
8447 if test "$with_gnu_ld" = yes; then
8455 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456 soname_spec
='${libname}${release}${shared_ext}$major'
8457 shlibpath_var
=LD_LIBRARY_PATH
8458 case $host_vendor in
8460 shlibpath_overrides_runpath
=no
8462 runpath_var
=LD_RUN_PATH
8470 shlibpath_overrides_runpath
=no
8471 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
8477 if test -d /usr
/nec
;then
8479 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8480 soname_spec
='$libname${shared_ext}.$major'
8481 shlibpath_var
=LD_LIBRARY_PATH
8485 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
8486 version_type
=freebsd-elf
8489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8490 soname_spec
='${libname}${release}${shared_ext}$major'
8491 shlibpath_var
=LD_LIBRARY_PATH
8492 shlibpath_overrides_runpath
=yes
8493 hardcode_into_libs
=yes
8494 if test "$with_gnu_ld" = yes; then
8495 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8497 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
8500 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
8504 sys_lib_dlsearch_path_spec
='/usr/lib'
8508 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8512 library_name_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8513 shlibpath_var
=LD_LIBRARY_PATH
8514 shlibpath_overrides_runpath
=no
8515 hardcode_into_libs
=yes
8520 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8521 soname_spec
='${libname}${release}${shared_ext}$major'
8522 shlibpath_var
=LD_LIBRARY_PATH
8529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8530 echo "${ECHO_T}$dynamic_linker" >&6
8531 test "$dynamic_linker" = no
&& can_build_shared
=no
8533 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
8534 if test "$GCC" = yes; then
8535 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8624 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8625 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8627 if test -n "$hardcode_libdir_flag_spec" ||
8628 test -n "$runpath_var" ||
8629 test "X$hardcode_automatic" = "Xyes" ; then
8631 # We can hardcode non-existent directories.
8632 if test "$hardcode_direct" != no
&&
8633 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8634 # have to relink, otherwise we might link with an installed library
8635 # when we should be linking with a yet-to-be-installed one
8636 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8637 test "$hardcode_minus_L" != no
; then
8638 # Linking always hardcodes the temporary library directory.
8639 hardcode_action
=relink
8641 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8642 hardcode_action
=immediate
8645 # We cannot hardcode anything, or else we can only hardcode existing
8647 hardcode_action
=unsupported
8649 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8650 echo "${ECHO_T}$hardcode_action" >&6
8652 if test "$hardcode_action" = relink ||
8653 test "$inherit_rpath" = yes; then
8654 # Fast installation is not supported
8655 enable_fast_install
=no
8656 elif test "$shlibpath_overrides_runpath" = yes ||
8657 test "$enable_shared" = no
; then
8658 # Fast installation is not necessary
8659 enable_fast_install
=needless
8667 if test "x$enable_dlopen" != xyes
; then
8668 enable_dlopen
=unknown
8669 enable_dlopen_self
=unknown
8670 enable_dlopen_self_static
=unknown
8677 lt_cv_dlopen
="load_add_on"
8679 lt_cv_dlopen_self
=yes
8683 lt_cv_dlopen
="LoadLibrary"
8688 lt_cv_dlopen
="dlopen"
8693 # if libdl is installed we need to link against it
8694 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8695 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8696 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 ac_check_lib_save_LIBS
=$LIBS
8701 cat >conftest.
$ac_ext <<_ACEOF
8704 cat confdefs.h
>>conftest.
$ac_ext
8705 cat >>conftest.
$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8708 /* Override any gcc2 internal prototype to avoid an error. */
8712 /* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8723 rm -f conftest.
$ac_objext conftest
$ac_exeext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8725 (eval $ac_link) 2>conftest.er1
8727 grep -v '^ *+' conftest.er1
>conftest.err
8729 cat conftest.err
>&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try
='test -z "$ac_c_werror_flag"
8733 || test ! -s conftest.err'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try
='test -s conftest$ac_exeext'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_cv_lib_dl_dlopen
=yes
8747 echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.
$ac_ext >&5
8750 ac_cv_lib_dl_dlopen
=no
8752 rm -f conftest.err conftest.
$ac_objext \
8753 conftest
$ac_exeext conftest.
$ac_ext
8754 LIBS
=$ac_check_lib_save_LIBS
8756 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8757 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8758 if test $ac_cv_lib_dl_dlopen = yes; then
8759 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
8764 lt_cv_dlopen_self
=yes
8771 echo "$as_me:$LINENO: checking for shl_load" >&5
8772 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8773 if test "${ac_cv_func_shl_load+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 cat >conftest.
$ac_ext <<_ACEOF
8779 cat confdefs.h
>>conftest.
$ac_ext
8780 cat >>conftest.
$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8784 #define shl_load innocuous_shl_load
8786 /* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char shl_load (); below.
8788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 <limits.h> exists even on freestanding compilers. */
8792 # include <limits.h>
8794 # include <assert.h>
8799 /* Override any gcc2 internal prototype to avoid an error. */
8804 /* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8807 /* The GNU C library defines this for functions which it implements
8808 to always fail with ENOSYS. Some functions are actually named
8809 something starting with __ and the normal name is an alias. */
8810 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8813 char (*f) () = shl_load;
8822 return f != shl_load;
8827 rm -f conftest.
$ac_objext conftest
$ac_exeext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829 (eval $ac_link) 2>conftest.er1
8831 grep -v '^ *+' conftest.er1
>conftest.err
8833 cat conftest.err
>&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try
='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try
='test -s conftest$ac_exeext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_func_shl_load
=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.
$ac_ext >&5
8854 ac_cv_func_shl_load
=no
8856 rm -f conftest.err conftest.
$ac_objext \
8857 conftest
$ac_exeext conftest.
$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8860 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8861 if test $ac_cv_func_shl_load = yes; then
8862 lt_cv_dlopen
="shl_load"
8864 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8865 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8866 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 ac_check_lib_save_LIBS
=$LIBS
8871 cat >conftest.
$ac_ext <<_ACEOF
8874 cat confdefs.h
>>conftest.
$ac_ext
8875 cat >>conftest.
$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8878 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8893 rm -f conftest.
$ac_objext conftest
$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>conftest.er1
8897 grep -v '^ *+' conftest.er1
>conftest.err
8899 cat conftest.err
>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try
='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try
='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_lib_dld_shl_load
=yes
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.
$ac_ext >&5
8920 ac_cv_lib_dld_shl_load
=no
8922 rm -f conftest.err conftest.
$ac_objext \
8923 conftest
$ac_exeext conftest.
$ac_ext
8924 LIBS
=$ac_check_lib_save_LIBS
8926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8927 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8928 if test $ac_cv_lib_dld_shl_load = yes; then
8929 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
8931 echo "$as_me:$LINENO: checking for dlopen" >&5
8932 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8933 if test "${ac_cv_func_dlopen+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 cat >conftest.
$ac_ext <<_ACEOF
8939 cat confdefs.h
>>conftest.
$ac_ext
8940 cat >>conftest.
$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8944 #define dlopen innocuous_dlopen
8946 /* System header to define __stub macros and hopefully few prototypes,
8947 which can conflict with char dlopen (); below.
8948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8949 <limits.h> exists even on freestanding compilers. */
8952 # include <limits.h>
8954 # include <assert.h>
8959 /* Override any gcc2 internal prototype to avoid an error. */
8964 /* We use char because int might match the return type of a gcc2
8965 builtin and then its argument prototype would still apply. */
8967 /* The GNU C library defines this for functions which it implements
8968 to always fail with ENOSYS. Some functions are actually named
8969 something starting with __ and the normal name is an alias. */
8970 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8973 char (*f) () = dlopen;
8987 rm -f conftest.
$ac_objext conftest
$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>conftest.er1
8991 grep -v '^ *+' conftest.er1
>conftest.err
8993 cat conftest.err
>&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } &&
8996 { ac_try
='test -z "$ac_c_werror_flag"
8997 || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try
='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_cv_func_dlopen
=yes
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.
$ac_ext >&5
9014 ac_cv_func_dlopen
=no
9016 rm -f conftest.err conftest.
$ac_objext \
9017 conftest
$ac_exeext conftest.
$ac_ext
9019 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9020 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9021 if test $ac_cv_func_dlopen = yes; then
9022 lt_cv_dlopen
="dlopen"
9024 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9025 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9026 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 ac_check_lib_save_LIBS
=$LIBS
9031 cat >conftest.
$ac_ext <<_ACEOF
9034 cat confdefs.h
>>conftest.
$ac_ext
9035 cat >>conftest.
$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9038 /* Override any gcc2 internal prototype to avoid an error. */
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9053 rm -f conftest.
$ac_objext conftest
$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9057 grep -v '^ *+' conftest.er1
>conftest.err
9059 cat conftest.err
>&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try
='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try
='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_lib_dl_dlopen
=yes
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.
$ac_ext >&5
9080 ac_cv_lib_dl_dlopen
=no
9082 rm -f conftest.err conftest.
$ac_objext \
9083 conftest
$ac_exeext conftest.
$ac_ext
9084 LIBS
=$ac_check_lib_save_LIBS
9086 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9087 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9088 if test $ac_cv_lib_dl_dlopen = yes; then
9089 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
9091 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9092 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9093 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 ac_check_lib_save_LIBS
=$LIBS
9098 cat >conftest.
$ac_ext <<_ACEOF
9101 cat confdefs.h
>>conftest.
$ac_ext
9102 cat >>conftest.
$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9105 /* Override any gcc2 internal prototype to avoid an error. */
9109 /* We use char because int might match the return type of a gcc2
9110 builtin and then its argument prototype would still apply. */
9120 rm -f conftest.
$ac_objext conftest
$ac_exeext
9121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9122 (eval $ac_link) 2>conftest.er1
9124 grep -v '^ *+' conftest.er1
>conftest.err
9126 cat conftest.err
>&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try
='test -z "$ac_c_werror_flag"
9130 || test ! -s conftest.err'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; } &&
9136 { ac_try
='test -s conftest$ac_exeext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_cv_lib_svld_dlopen
=yes
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.
$ac_ext >&5
9147 ac_cv_lib_svld_dlopen
=no
9149 rm -f conftest.err conftest.
$ac_objext \
9150 conftest
$ac_exeext conftest.
$ac_ext
9151 LIBS
=$ac_check_lib_save_LIBS
9153 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9154 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9155 if test $ac_cv_lib_svld_dlopen = yes; then
9156 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9158 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9159 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9160 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 ac_check_lib_save_LIBS
=$LIBS
9165 cat >conftest.
$ac_ext <<_ACEOF
9168 cat confdefs.h
>>conftest.
$ac_ext
9169 cat >>conftest.
$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9172 /* Override any gcc2 internal prototype to avoid an error. */
9176 /* We use char because int might match the return type of a gcc2
9177 builtin and then its argument prototype would still apply. */
9187 rm -f conftest.
$ac_objext conftest
$ac_exeext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>conftest.er1
9191 grep -v '^ *+' conftest.er1
>conftest.err
9193 cat conftest.err
>&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try
='test -z "$ac_c_werror_flag"
9197 || test ! -s conftest.err'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try
='test -s conftest$ac_exeext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 ac_cv_lib_dld_dld_link
=yes
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.
$ac_ext >&5
9214 ac_cv_lib_dld_dld_link
=no
9216 rm -f conftest.err conftest.
$ac_objext \
9217 conftest
$ac_exeext conftest.
$ac_ext
9218 LIBS
=$ac_check_lib_save_LIBS
9220 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9221 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9222 if test $ac_cv_lib_dld_dld_link = yes; then
9223 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
9244 if test "x$lt_cv_dlopen" != xno
; then
9250 case $lt_cv_dlopen in
9252 save_CPPFLAGS
="$CPPFLAGS"
9253 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
9255 save_LDFLAGS
="$LDFLAGS"
9256 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
9259 LIBS
="$lt_cv_dlopen_libs $LIBS"
9261 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9262 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9263 if test "${lt_cv_dlopen_self+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 if test "$cross_compiling" = yes; then :
9267 lt_cv_dlopen_self
=cross
9269 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9270 lt_status
=$lt_dlunknown
9271 cat > conftest.
$ac_ext <<_LT_EOF
9272 #line 9272 "configure"
9273 #include "confdefs.h"
9282 # define LT_DLGLOBAL RTLD_GLOBAL
9285 # define LT_DLGLOBAL DL_GLOBAL
9287 # define LT_DLGLOBAL 0
9291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9292 find out it does not work in some platform. */
9293 #ifndef LT_DLLAZY_OR_NOW
9295 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9298 # define LT_DLLAZY_OR_NOW DL_LAZY
9301 # define LT_DLLAZY_OR_NOW RTLD_NOW
9304 # define LT_DLLAZY_OR_NOW DL_NOW
9306 # define LT_DLLAZY_OR_NOW 0
9314 extern "C" void exit (int);
9317 void fnord() { int i=42;}
9320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9321 int status = $lt_dlunknown;
9325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9327 /* dlclose (self); */
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336 (eval $ac_link) 2>&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9340 (.
/conftest
; exit; ) >&5 2>/dev
/null
9343 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
9344 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
9345 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
9348 # compilation failed
9349 lt_cv_dlopen_self
=no
9356 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9357 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9359 if test "x$lt_cv_dlopen_self" = xyes
; then
9360 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
9361 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9362 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9363 if test "${lt_cv_dlopen_self_static+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 if test "$cross_compiling" = yes; then :
9367 lt_cv_dlopen_self_static
=cross
9369 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9370 lt_status
=$lt_dlunknown
9371 cat > conftest.
$ac_ext <<_LT_EOF
9372 #line 9372 "configure"
9373 #include "confdefs.h"
9382 # define LT_DLGLOBAL RTLD_GLOBAL
9385 # define LT_DLGLOBAL DL_GLOBAL
9387 # define LT_DLGLOBAL 0
9391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9392 find out it does not work in some platform. */
9393 #ifndef LT_DLLAZY_OR_NOW
9395 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9398 # define LT_DLLAZY_OR_NOW DL_LAZY
9401 # define LT_DLLAZY_OR_NOW RTLD_NOW
9404 # define LT_DLLAZY_OR_NOW DL_NOW
9406 # define LT_DLLAZY_OR_NOW 0
9414 extern "C" void exit (int);
9417 void fnord() { int i=42;}
9420 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9421 int status = $lt_dlunknown;
9425 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9426 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9427 /* dlclose (self); */
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9440 (.
/conftest
; exit; ) >&5 2>/dev
/null
9443 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
9444 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
9445 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
9448 # compilation failed
9449 lt_cv_dlopen_self_static
=no
9456 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9457 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9460 CPPFLAGS
="$save_CPPFLAGS"
9461 LDFLAGS
="$save_LDFLAGS"
9466 case $lt_cv_dlopen_self in
9467 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
9468 *) enable_dlopen_self
=unknown
;;
9471 case $lt_cv_dlopen_self_static in
9472 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
9473 *) enable_dlopen_self_static
=unknown
;;
9495 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9496 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9497 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
9498 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9499 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9500 echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6
9503 # FIXME - insert some real tests, host_os isn't really good enough
9506 if test -n "$STRIP" ; then
9507 striplib
="$STRIP -x"
9508 old_striplib
="$STRIP -S"
9509 echo "$as_me:$LINENO: result: yes" >&5
9510 echo "${ECHO_T}yes" >&6
9512 echo "$as_me:$LINENO: result: no" >&5
9513 echo "${ECHO_T}no" >&6
9517 echo "$as_me:$LINENO: result: no" >&5
9518 echo "${ECHO_T}no" >&6
9534 # Report which library types will actually be built
9535 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9536 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9537 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9538 echo "${ECHO_T}$can_build_shared" >&6
9540 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9541 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9542 test "$can_build_shared" = "no" && enable_shared
=no
9544 # On AIX, shared libraries and static libraries use the same namespace, and
9545 # are all built from PIC.
9548 test "$enable_shared" = yes && enable_static
=no
9549 if test -n "$RANLIB"; then
9550 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
9551 postinstall_cmds
='$RANLIB $lib'
9556 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
9557 test "$enable_shared" = yes && enable_static
=no
9561 echo "$as_me:$LINENO: result: $enable_shared" >&5
9562 echo "${ECHO_T}$enable_shared" >&6
9564 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9565 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9566 # Make sure either enable_shared or enable_static is yes.
9567 test "$enable_shared" = yes || enable_static
=yes
9568 echo "$as_me:$LINENO: result: $enable_static" >&5
9569 echo "${ECHO_T}$enable_static" >&6
9576 ac_cpp
='$CPP $CPPFLAGS'
9577 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9578 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9579 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9595 ac_config_commands
="$ac_config_commands libtool"
9604 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9605 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9606 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9607 if test "${enable_maintainer_mode+set}" = set; then
9608 enableval
="$enable_maintainer_mode"
9609 USE_MAINTAINER_MODE
=$enableval
9611 USE_MAINTAINER_MODE
=no
9613 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9614 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9617 if test $USE_MAINTAINER_MODE = yes; then
9618 MAINTAINER_MODE_TRUE
=
9619 MAINTAINER_MODE_FALSE
='#'
9621 MAINTAINER_MODE_TRUE
='#'
9622 MAINTAINER_MODE_FALSE
=
9625 MAINT
=$MAINTAINER_MODE_TRUE
9630 for ac_header
in sys
/mman.h
9632 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9634 echo "$as_me:$LINENO: checking for $ac_header" >&5
9635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9642 # Is the header compilable?
9643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9645 cat >conftest.
$ac_ext <<_ACEOF
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 $ac_includes_default
9652 #include <$ac_header>
9654 rm -f conftest.
$ac_objext
9655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>conftest.er1
9658 grep -v '^ *+' conftest.er1
>conftest.err
9660 cat conftest.err
>&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try
='test -z "$ac_c_werror_flag"
9664 || test ! -s conftest.err'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; } &&
9670 { ac_try
='test -s conftest.$ac_objext'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 ac_header_compiler
=yes
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.
$ac_ext >&5
9681 ac_header_compiler
=no
9683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9685 echo "${ECHO_T}$ac_header_compiler" >&6
9687 # Is the header present?
9688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9690 cat >conftest.
$ac_ext <<_ACEOF
9693 cat confdefs.h
>>conftest.
$ac_ext
9694 cat >>conftest.
$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 #include <$ac_header>
9698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9699 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9701 grep -v '^ *+' conftest.er1
>conftest.err
9703 cat conftest.err
>&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } >/dev
/null
; then
9706 if test -s conftest.err
; then
9707 ac_cpp_err
=$ac_c_preproc_warn_flag
9708 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9715 if test -z "$ac_cpp_err"; then
9716 ac_header_preproc
=yes
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.
$ac_ext >&5
9721 ac_header_preproc
=no
9723 rm -f conftest.err conftest.
$ac_ext
9724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9725 echo "${ECHO_T}$ac_header_preproc" >&6
9727 # So? What about this header?
9728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9734 ac_header_preproc
=yes
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9751 ## ------------------------------------------- ##
9752 ## Report this to http://gcc.gnu.org/bugs.html ##
9753 ## ------------------------------------------- ##
9756 sed "s/^/$as_me: WARNING: /" >&2
9759 echo "$as_me:$LINENO: checking for $ac_header" >&5
9760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9764 eval "$as_ac_Header=\$ac_header_preproc"
9766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9771 cat >>confdefs.h
<<_ACEOF
9772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9782 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783 echo "$as_me:$LINENO: checking for $ac_func" >&5
9784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9785 if eval "test \"\${$as_ac_var+set}\" = set"; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 cat >conftest.
$ac_ext <<_ACEOF
9791 cat confdefs.h
>>conftest.
$ac_ext
9792 cat >>conftest.
$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define $ac_func innocuous_$ac_func
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9804 # include <limits.h>
9806 # include <assert.h>
9811 /* Override any gcc2 internal prototype to avoid an error. */
9816 /* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9819 /* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9825 char (*f) () = $ac_func;
9834 return f != $ac_func;
9839 rm -f conftest.
$ac_objext conftest
$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1
>conftest.err
9845 cat conftest.err
>&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try
='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try
='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 eval "$as_ac_var=yes"
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9866 eval "$as_ac_var=no"
9868 rm -f conftest.err conftest.
$ac_objext \
9869 conftest
$ac_exeext conftest.
$ac_ext
9871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9873 if test `eval echo '${'$as_ac_var'}'` = yes; then
9874 cat >>confdefs.h
<<_ACEOF
9875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9882 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9883 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9884 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9885 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9889 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9891 # Is the header compilable?
9892 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
9893 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
9894 cat >conftest.
$ac_ext <<_ACEOF
9897 cat confdefs.h
>>conftest.
$ac_ext
9898 cat >>conftest.
$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 $ac_includes_default
9901 #include <sys/mman.h>
9903 rm -f conftest.
$ac_objext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9905 (eval $ac_compile) 2>conftest.er1
9907 grep -v '^ *+' conftest.er1
>conftest.err
9909 cat conftest.err
>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try
='test -z "$ac_c_werror_flag"
9913 || test ! -s conftest.err'
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; } &&
9919 { ac_try
='test -s conftest.$ac_objext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_header_compiler
=yes
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.
$ac_ext >&5
9930 ac_header_compiler
=no
9932 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9934 echo "${ECHO_T}$ac_header_compiler" >&6
9936 # Is the header present?
9937 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
9938 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
9939 cat >conftest.
$ac_ext <<_ACEOF
9942 cat confdefs.h
>>conftest.
$ac_ext
9943 cat >>conftest.
$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 #include <sys/mman.h>
9947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9948 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9950 grep -v '^ *+' conftest.er1
>conftest.err
9952 cat conftest.err
>&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } >/dev
/null
; then
9955 if test -s conftest.err
; then
9956 ac_cpp_err
=$ac_c_preproc_warn_flag
9957 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9964 if test -z "$ac_cpp_err"; then
9965 ac_header_preproc
=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.
$ac_ext >&5
9970 ac_header_preproc
=no
9972 rm -f conftest.err conftest.
$ac_ext
9973 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9974 echo "${ECHO_T}$ac_header_preproc" >&6
9976 # So? What about this header?
9977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9979 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
9980 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
9982 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
9983 ac_header_preproc
=yes
9986 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
9987 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
9989 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
9991 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
9992 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
9993 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
9995 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
9996 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
9997 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
10000 ## ------------------------------------------- ##
10001 ## Report this to http://gcc.gnu.org/bugs.html ##
10002 ## ------------------------------------------- ##
10005 sed "s/^/$as_me: WARNING: /" >&2
10008 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10009 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10010 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 ac_cv_header_sys_mman_h
=$ac_header_preproc
10015 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10016 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10019 if test $ac_cv_header_sys_mman_h = yes; then
10020 libffi_header_sys_mman_h
=yes
10022 libffi_header_sys_mman_h
=no
10026 echo "$as_me:$LINENO: checking for mmap" >&5
10027 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10028 if test "${ac_cv_func_mmap+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 cat >conftest.
$ac_ext <<_ACEOF
10034 cat confdefs.h
>>conftest.
$ac_ext
10035 cat >>conftest.
$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10039 #define mmap innocuous_mmap
10041 /* System header to define __stub macros and hopefully few prototypes,
10042 which can conflict with char mmap (); below.
10043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10044 <limits.h> exists even on freestanding compilers. */
10047 # include <limits.h>
10049 # include <assert.h>
10054 /* Override any gcc2 internal prototype to avoid an error. */
10059 /* We use char because int might match the return type of a gcc2
10060 builtin and then its argument prototype would still apply. */
10062 /* The GNU C library defines this for functions which it implements
10063 to always fail with ENOSYS. Some functions are actually named
10064 something starting with __ and the normal name is an alias. */
10065 #if defined (__stub_mmap) || defined (__stub___mmap)
10068 char (*f) () = mmap;
10082 rm -f conftest.
$ac_objext conftest
$ac_exeext
10083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10084 (eval $ac_link) 2>conftest.er1
10086 grep -v '^ *+' conftest.er1
>conftest.err
10088 cat conftest.err
>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
10091 { ac_try
='test -z "$ac_c_werror_flag"
10092 || test ! -s conftest.err'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try
='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_func_mmap
=yes
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.
$ac_ext >&5
10111 rm -f conftest.err conftest.
$ac_objext \
10112 conftest
$ac_exeext conftest.
$ac_ext
10114 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10115 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10116 if test $ac_cv_func_mmap = yes; then
10117 libffi_func_mmap
=yes
10119 libffi_func_mmap
=no
10122 if test "$libffi_header_sys_mman_h" != yes \
10123 ||
test "$libffi_func_mmap" != yes; then
10124 ac_cv_func_mmap_file
=no
10125 ac_cv_func_mmap_dev_zero
=no
10126 ac_cv_func_mmap_anon
=no
10128 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10129 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10130 if test "${ac_cv_func_mmap_file+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 # Add a system to this blacklist if
10134 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10135 # memory area containing the same data that you'd get if you applied
10136 # read() to the same fd. The only system known to have a problem here
10137 # is VMS, where text files have record structure.
10140 ac_cv_func_mmap_file
=no
;;
10142 ac_cv_func_mmap_file
=yes;;
10145 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
10146 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
10147 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10148 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10149 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 # Add a system to this blacklist if it has mmap() but /dev/zero
10153 # does not exist, or if mmapping /dev/zero does not give anonymous
10154 # zeroed pages with both the following properties:
10155 # 1. If you map N consecutive pages in with one call, and then
10156 # unmap any subset of those pages, the pages that were not
10157 # explicitly unmapped remain accessible.
10158 # 2. If you map two adjacent blocks of memory and then unmap them
10159 # both at once, they must both go away.
10160 # Systems known to be in this category are Windows (all variants),
10163 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10164 ac_cv_func_mmap_dev_zero
=no
;;
10166 ac_cv_func_mmap_dev_zero
=yes;;
10169 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
10170 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
10172 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10173 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10174 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10175 if test "${ac_cv_decl_map_anon+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 cat >conftest.
$ac_ext <<_ACEOF
10181 cat confdefs.h
>>conftest.
$ac_ext
10182 cat >>conftest.
$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <sys/types.h>
10185 #include <sys/mman.h>
10186 #include <unistd.h>
10188 #ifndef MAP_ANONYMOUS
10189 #define MAP_ANONYMOUS MAP_ANON
10195 int n = MAP_ANONYMOUS;
10200 rm -f conftest.
$ac_objext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>conftest.er1
10204 grep -v '^ *+' conftest.er1
>conftest.err
10206 cat conftest.err
>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try
='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try
='test -s conftest.$ac_objext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_decl_map_anon
=yes
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.
$ac_ext >&5
10227 ac_cv_decl_map_anon
=no
10229 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10231 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
10232 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
10234 if test $ac_cv_decl_map_anon = no
; then
10235 ac_cv_func_mmap_anon
=no
10237 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10238 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10239 if test "${ac_cv_func_mmap_anon+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10243 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10244 # doesn't give anonymous zeroed pages with the same properties listed
10245 # above for use of /dev/zero.
10246 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10248 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10249 ac_cv_func_mmap_anon
=no
;;
10251 ac_cv_func_mmap_anon
=yes;;
10254 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
10255 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
10259 if test $ac_cv_func_mmap_file = yes; then
10261 cat >>confdefs.h
<<\_ACEOF
10262 #define HAVE_MMAP_FILE 1
10266 if test $ac_cv_func_mmap_dev_zero = yes; then
10268 cat >>confdefs.h
<<\_ACEOF
10269 #define HAVE_MMAP_DEV_ZERO 1
10273 if test $ac_cv_func_mmap_anon = yes; then
10275 cat >>confdefs.h
<<\_ACEOF
10276 #define HAVE_MMAP_ANON 1
10284 if test -d $srcdir/testsuite
; then
10286 TESTSUBDIR_FALSE
='#'
10288 TESTSUBDIR_TRUE
='#'
10293 TARGETDIR
="unknown"
10296 TARGET
=ALPHA
; TARGETDIR
=alpha
;
10297 # Support 128-bit long double, changable via command-line switch.
10298 HAVE_LONG_DOUBLE
='defined(__LONG_DOUBLE_128__)'
10302 TARGET
=ARM
; TARGETDIR
=arm
10306 TARGET
=X86_64
; TARGETDIR
=x86
10310 TARGET
=LIBFFI_CRIS
; TARGETDIR
=cris
10314 TARGET
=FRV
; TARGETDIR
=frv
10318 TARGET
=PA_LINUX
; TARGETDIR
=pa
10321 TARGET
=PA64_HPUX
; TARGETDIR
=pa
10324 TARGET
=PA_HPUX
; TARGETDIR
=pa
10327 i?
86-win32* | i?
86-*-cygwin* | i?
86-*-mingw*)
10328 TARGET
=X86_WIN32
; TARGETDIR
=x86
10331 TARGET
=X86_DARWIN
; TARGETDIR
=x86
10333 i?
86-*-solaris2.1
[0-9]*)
10334 TARGET
=X86_64
; TARGETDIR
=x86
10337 TARGET
=X86
; TARGETDIR
=x86
10341 TARGET
=IA64
; TARGETDIR
=ia64
10345 TARGET
=M32R
; TARGETDIR
=m32r
10349 TARGET
=M68K
; TARGETDIR
=m68k
10352 mips-sgi-irix5.
* | mips-sgi-irix6.
*)
10353 TARGET
=MIPS
; TARGETDIR
=mips
10356 TARGET
=MIPS
; TARGETDIR
=mips
10360 TARGET
=POWERPC
; TARGETDIR
=powerpc
10363 TARGET
=POWERPC_DARWIN
; TARGETDIR
=powerpc
10365 powerpc-
*-aix* | rs6000-
*-aix*)
10366 TARGET
=POWERPC_AIX
; TARGETDIR
=powerpc
10368 powerpc-
*-freebsd*)
10369 TARGET
=POWERPC_FREEBSD
; TARGETDIR
=powerpc
10372 TARGET
=POWERPC
; TARGETDIR
=powerpc
10375 s390-
*-* | s390x-
*-*)
10376 TARGET
=S390
; TARGETDIR
=s390
10379 sh-
*-* | sh
[34]*-*-*)
10380 TARGET
=SH
; TARGETDIR
=sh
10382 sh64-
*-* | sh5
*-*-*)
10383 TARGET
=SH64
; TARGETDIR
=sh64
10387 TARGET
=SPARC
; TARGETDIR
=sparc
10391 TARGET
=X86_DARWIN
; TARGETDIR
=x86
10393 x86_64-
*-cygwin* | x86_64-
*-mingw*)
10396 TARGET
=X86_64
; TARGETDIR
=x86
10402 if test $TARGETDIR = unknown
; then
10403 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
10404 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
10405 { (exit 1); exit 1; }; }
10410 if test x
$TARGET = xMIPS
; then
10420 if test x
$TARGET = xSPARC
; then
10430 if test x
$TARGET = xX86
; then
10440 if test x
$TARGET = xX86_WIN32
; then
10442 X86_WIN32_FALSE
='#'
10450 if test x
$TARGET = xX86_DARWIN
; then
10452 X86_DARWIN_FALSE
='#'
10454 X86_DARWIN_TRUE
='#'
10460 if test x
$TARGET = xALPHA
; then
10470 if test x
$TARGET = xIA64
; then
10480 if test x
$TARGET = xM32R
; then
10490 if test x
$TARGET = xM68K
; then
10500 if test x
$TARGET = xPOWERPC
; then
10510 if test x
$TARGET = xPOWERPC_AIX
; then
10512 POWERPC_AIX_FALSE
='#'
10514 POWERPC_AIX_TRUE
='#'
10520 if test x
$TARGET = xPOWERPC_DARWIN
; then
10521 POWERPC_DARWIN_TRUE
=
10522 POWERPC_DARWIN_FALSE
='#'
10524 POWERPC_DARWIN_TRUE
='#'
10525 POWERPC_DARWIN_FALSE
=
10530 if test x
$TARGET = xPOWERPC_FREEBSD
; then
10531 POWERPC_FREEBSD_TRUE
=
10532 POWERPC_FREEBSD_FALSE
='#'
10534 POWERPC_FREEBSD_TRUE
='#'
10535 POWERPC_FREEBSD_FALSE
=
10540 if test x
$TARGET = xARM
; then
10550 if test x
$TARGET = xLIBFFI_CRIS
; then
10552 LIBFFI_CRIS_FALSE
='#'
10554 LIBFFI_CRIS_TRUE
='#'
10560 if test x
$TARGET = xFRV
; then
10570 if test x
$TARGET = xS390
; then
10580 if test x
$TARGET = xX86_64
; then
10590 if test x
$TARGET = xSH
; then
10600 if test x
$TARGET = xSH64
; then
10610 if test x
$TARGET = xPA_LINUX
; then
10620 if test x
$TARGET = xPA_HPUX
; then
10630 if test x
$TARGET = xPA64_HPUX
; then
10632 PA64_HPUX_FALSE
='#'
10639 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10640 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10641 if test "${ac_cv_header_stdc+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 cat >conftest.
$ac_ext <<_ACEOF
10647 cat confdefs.h
>>conftest.
$ac_ext
10648 cat >>conftest.
$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <stdlib.h>
10651 #include <stdarg.h>
10652 #include <string.h>
10663 rm -f conftest.
$ac_objext
10664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10665 (eval $ac_compile) 2>conftest.er1
10667 grep -v '^ *+' conftest.er1
>conftest.err
10669 cat conftest.err
>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } &&
10672 { ac_try
='test -z "$ac_c_werror_flag"
10673 || test ! -s conftest.err'
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); }; } &&
10679 { ac_try
='test -s conftest.$ac_objext'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; }; then
10685 ac_cv_header_stdc
=yes
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.
$ac_ext >&5
10690 ac_cv_header_stdc
=no
10692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10694 if test $ac_cv_header_stdc = yes; then
10695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10696 cat >conftest.
$ac_ext <<_ACEOF
10699 cat confdefs.h
>>conftest.
$ac_ext
10700 cat >>conftest.
$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 #include <string.h>
10705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10706 $EGREP "memchr" >/dev
/null
2>&1; then
10709 ac_cv_header_stdc
=no
10715 if test $ac_cv_header_stdc = yes; then
10716 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10717 cat >conftest.
$ac_ext <<_ACEOF
10720 cat confdefs.h
>>conftest.
$ac_ext
10721 cat >>conftest.
$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10723 #include <stdlib.h>
10726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10727 $EGREP "free" >/dev
/null
2>&1; then
10730 ac_cv_header_stdc
=no
10736 if test $ac_cv_header_stdc = yes; then
10737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10738 if test "$cross_compiling" = yes; then
10741 cat >conftest.
$ac_ext <<_ACEOF
10744 cat confdefs.h
>>conftest.
$ac_ext
10745 cat >>conftest.
$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10748 #if ((' ' & 0x0FF) == 0x020)
10749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10752 # define ISLOWER(c) \
10753 (('a' <= (c) && (c) <= 'i') \
10754 || ('j' <= (c) && (c) <= 'r') \
10755 || ('s' <= (c) && (c) <= 'z'))
10756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10764 for (i = 0; i < 256; i++)
10765 if (XOR (islower (i), ISLOWER (i))
10766 || toupper (i) != TOUPPER (i))
10771 rm -f conftest
$ac_exeext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773 (eval $ac_link) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10784 echo "$as_me: program exited with status $ac_status" >&5
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.
$ac_ext >&5
10788 ( exit $ac_status )
10789 ac_cv_header_stdc
=no
10791 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10795 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10796 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10797 if test $ac_cv_header_stdc = yes; then
10799 cat >>confdefs.h
<<\_ACEOF
10800 #define STDC_HEADERS 1
10806 for ac_func
in memcpy
10808 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10809 echo "$as_me:$LINENO: checking for $ac_func" >&5
10810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10811 if eval "test \"\${$as_ac_var+set}\" = set"; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 cat >conftest.
$ac_ext <<_ACEOF
10817 cat confdefs.h
>>conftest.
$ac_ext
10818 cat >>conftest.
$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10822 #define $ac_func innocuous_$ac_func
10824 /* System header to define __stub macros and hopefully few prototypes,
10825 which can conflict with char $ac_func (); below.
10826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10827 <limits.h> exists even on freestanding compilers. */
10830 # include <limits.h>
10832 # include <assert.h>
10837 /* Override any gcc2 internal prototype to avoid an error. */
10842 /* We use char because int might match the return type of a gcc2
10843 builtin and then its argument prototype would still apply. */
10845 /* The GNU C library defines this for functions which it implements
10846 to always fail with ENOSYS. Some functions are actually named
10847 something starting with __ and the normal name is an alias. */
10848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10851 char (*f) () = $ac_func;
10860 return f != $ac_func;
10865 rm -f conftest.
$ac_objext conftest
$ac_exeext
10866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10867 (eval $ac_link) 2>conftest.er1
10869 grep -v '^ *+' conftest.er1
>conftest.err
10871 cat conftest.err
>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try
='test -z "$ac_c_werror_flag"
10875 || test ! -s conftest.err'
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); }; } &&
10881 { ac_try
='test -s conftest$ac_exeext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 eval "$as_ac_var=yes"
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.
$ac_ext >&5
10892 eval "$as_ac_var=no"
10894 rm -f conftest.err conftest.
$ac_objext \
10895 conftest
$ac_exeext conftest.
$ac_ext
10897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10899 if test `eval echo '${'$as_ac_var'}'` = yes; then
10900 cat >>confdefs.h
<<_ACEOF
10901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10907 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10908 # for constant arguments. Useless!
10909 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10910 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10911 if test "${ac_cv_working_alloca_h+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 cat >conftest.
$ac_ext <<_ACEOF
10917 cat confdefs.h
>>conftest.
$ac_ext
10918 cat >>conftest.
$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10920 #include <alloca.h>
10924 char *p = (char *) alloca (2 * sizeof (int));
10929 rm -f conftest.
$ac_objext conftest
$ac_exeext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10931 (eval $ac_link) 2>conftest.er1
10933 grep -v '^ *+' conftest.er1
>conftest.err
10935 cat conftest.err
>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try
='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
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); }; } &&
10945 { ac_try
='test -s conftest$ac_exeext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_cv_working_alloca_h
=yes
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.
$ac_ext >&5
10956 ac_cv_working_alloca_h
=no
10958 rm -f conftest.err conftest.
$ac_objext \
10959 conftest
$ac_exeext conftest.
$ac_ext
10961 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10962 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10963 if test $ac_cv_working_alloca_h = yes; then
10965 cat >>confdefs.h
<<\_ACEOF
10966 #define HAVE_ALLOCA_H 1
10971 echo "$as_me:$LINENO: checking for alloca" >&5
10972 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10973 if test "${ac_cv_func_alloca_works+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 cat >conftest.
$ac_ext <<_ACEOF
10979 cat confdefs.h
>>conftest.
$ac_ext
10980 cat >>conftest.
$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10983 # define alloca __builtin_alloca
10986 # include <malloc.h>
10987 # define alloca _alloca
10990 # include <alloca.h>
10995 # ifndef alloca /* predefined by HP cc +Olibcalls */
11006 char *p = (char *) alloca (1);
11011 rm -f conftest.
$ac_objext conftest
$ac_exeext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013 (eval $ac_link) 2>conftest.er1
11015 grep -v '^ *+' conftest.er1
>conftest.err
11017 cat conftest.err
>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try
='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
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); }; } &&
11027 { ac_try
='test -s conftest$ac_exeext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_func_alloca_works
=yes
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.
$ac_ext >&5
11038 ac_cv_func_alloca_works
=no
11040 rm -f conftest.err conftest.
$ac_objext \
11041 conftest
$ac_exeext conftest.
$ac_ext
11043 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11044 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11046 if test $ac_cv_func_alloca_works = yes; then
11048 cat >>confdefs.h
<<\_ACEOF
11049 #define HAVE_ALLOCA 1
11053 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11054 # that cause trouble. Some versions do not even contain alloca or
11055 # contain a buggy version. If you still want to use their alloca,
11056 # use ar to extract alloca.o from them instead of compiling alloca.c.
11058 ALLOCA
=alloca.
$ac_objext
11060 cat >>confdefs.h
<<\_ACEOF
11065 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11066 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11067 if test "${ac_cv_os_cray+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 cat >conftest.
$ac_ext <<_ACEOF
11073 cat confdefs.h
>>conftest.
$ac_ext
11074 cat >>conftest.
$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 #if defined(CRAY) && ! defined(CRAY2)
11083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11084 $EGREP "webecray" >/dev
/null
2>&1; then
11092 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11093 echo "${ECHO_T}$ac_cv_os_cray" >&6
11094 if test $ac_cv_os_cray = yes; then
11095 for ac_func
in _getb67 GETB67 getb67
; do
11096 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11097 echo "$as_me:$LINENO: checking for $ac_func" >&5
11098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11099 if eval "test \"\${$as_ac_var+set}\" = set"; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 cat >conftest.
$ac_ext <<_ACEOF
11105 cat confdefs.h
>>conftest.
$ac_ext
11106 cat >>conftest.
$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11110 #define $ac_func innocuous_$ac_func
11112 /* System header to define __stub macros and hopefully few prototypes,
11113 which can conflict with char $ac_func (); below.
11114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11115 <limits.h> exists even on freestanding compilers. */
11118 # include <limits.h>
11120 # include <assert.h>
11125 /* Override any gcc2 internal prototype to avoid an error. */
11130 /* We use char because int might match the return type of a gcc2
11131 builtin and then its argument prototype would still apply. */
11133 /* The GNU C library defines this for functions which it implements
11134 to always fail with ENOSYS. Some functions are actually named
11135 something starting with __ and the normal name is an alias. */
11136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11139 char (*f) () = $ac_func;
11148 return f != $ac_func;
11153 rm -f conftest.
$ac_objext conftest
$ac_exeext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155 (eval $ac_link) 2>conftest.er1
11157 grep -v '^ *+' conftest.er1
>conftest.err
11159 cat conftest.err
>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try
='test -z "$ac_c_werror_flag"
11163 || test ! -s conftest.err'
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); }; } &&
11169 { ac_try
='test -s conftest$ac_exeext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 eval "$as_ac_var=yes"
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.
$ac_ext >&5
11180 eval "$as_ac_var=no"
11182 rm -f conftest.err conftest.
$ac_objext \
11183 conftest
$ac_exeext conftest.
$ac_ext
11185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11187 if test `eval echo '${'$as_ac_var'}'` = yes; then
11189 cat >>confdefs.h
<<_ACEOF
11190 #define CRAY_STACKSEG_END $ac_func
11199 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11200 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11201 if test "${ac_cv_c_stack_direction+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 if test "$cross_compiling" = yes; then
11205 ac_cv_c_stack_direction
=0
11207 cat >conftest.
$ac_ext <<_ACEOF
11210 cat confdefs.h
>>conftest.
$ac_ext
11211 cat >>conftest.
$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11214 find_stack_direction ()
11216 static char *addr = 0;
11221 return find_stack_direction ();
11224 return (&dummy > addr) ? 1 : -1;
11230 exit (find_stack_direction () < 0);
11233 rm -f conftest
$ac_exeext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11235 (eval $ac_link) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 ac_cv_c_stack_direction
=1
11246 echo "$as_me: program exited with status $ac_status" >&5
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.
$ac_ext >&5
11250 ( exit $ac_status )
11251 ac_cv_c_stack_direction
=-1
11253 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11256 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11257 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11259 cat >>confdefs.h
<<_ACEOF
11260 #define STACK_DIRECTION $ac_cv_c_stack_direction
11267 echo "$as_me:$LINENO: checking for double" >&5
11268 echo $ECHO_N "checking for double... $ECHO_C" >&6
11269 if test "${ac_cv_type_double+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 cat >conftest.
$ac_ext <<_ACEOF
11275 cat confdefs.h
>>conftest.
$ac_ext
11276 cat >>conftest.
$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 $ac_includes_default
11284 if (sizeof (double))
11290 rm -f conftest.
$ac_objext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11292 (eval $ac_compile) 2>conftest.er1
11294 grep -v '^ *+' conftest.er1
>conftest.err
11296 cat conftest.err
>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try
='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
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); }; } &&
11306 { ac_try
='test -s conftest.$ac_objext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_type_double
=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.
$ac_ext >&5
11317 ac_cv_type_double
=no
11319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11321 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11322 echo "${ECHO_T}$ac_cv_type_double" >&6
11324 echo "$as_me:$LINENO: checking size of double" >&5
11325 echo $ECHO_N "checking size of double... $ECHO_C" >&6
11326 if test "${ac_cv_sizeof_double+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 if test "$ac_cv_type_double" = yes; then
11330 # The cast to unsigned long works around a bug in the HP C Compiler
11331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11333 # This bug is HP SR number 8606223364.
11334 if test "$cross_compiling" = yes; then
11335 # Depending upon the size, compute the lo and hi bounds.
11336 cat >conftest.
$ac_ext <<_ACEOF
11339 cat confdefs.h
>>conftest.
$ac_ext
11340 cat >>conftest.
$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 $ac_includes_default
11346 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
11353 rm -f conftest.
$ac_objext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11355 (eval $ac_compile) 2>conftest.er1
11357 grep -v '^ *+' conftest.er1
>conftest.err
11359 cat conftest.err
>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try
='test -z "$ac_c_werror_flag"
11363 || test ! -s conftest.err'
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); }; } &&
11369 { ac_try
='test -s conftest.$ac_objext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11377 cat >conftest.
$ac_ext <<_ACEOF
11380 cat confdefs.h
>>conftest.
$ac_ext
11381 cat >>conftest.
$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383 $ac_includes_default
11387 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11394 rm -f conftest.
$ac_objext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11396 (eval $ac_compile) 2>conftest.er1
11398 grep -v '^ *+' conftest.er1
>conftest.err
11400 cat conftest.err
>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try
='test -z "$ac_c_werror_flag"
11404 || test ! -s conftest.err'
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); }; } &&
11410 { ac_try
='test -s conftest.$ac_objext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_hi
=$ac_mid; break
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.
$ac_ext >&5
11421 ac_lo
=`expr $ac_mid + 1`
11422 if test $ac_lo -le $ac_mid; then
11426 ac_mid
=`expr 2 '*' $ac_mid + 1`
11428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.
$ac_ext >&5
11434 cat >conftest.
$ac_ext <<_ACEOF
11437 cat confdefs.h
>>conftest.
$ac_ext
11438 cat >>conftest.
$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11440 $ac_includes_default
11444 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
11451 rm -f conftest.
$ac_objext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11453 (eval $ac_compile) 2>conftest.er1
11455 grep -v '^ *+' conftest.er1
>conftest.err
11457 cat conftest.err
>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } &&
11460 { ac_try
='test -z "$ac_c_werror_flag"
11461 || test ! -s conftest.err'
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); }; } &&
11467 { ac_try
='test -s conftest.$ac_objext'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11475 cat >conftest.
$ac_ext <<_ACEOF
11478 cat confdefs.h
>>conftest.
$ac_ext
11479 cat >>conftest.
$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 $ac_includes_default
11485 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
11492 rm -f conftest.
$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494 (eval $ac_compile) 2>conftest.er1
11496 grep -v '^ *+' conftest.er1
>conftest.err
11498 cat conftest.err
>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try
='test -z "$ac_c_werror_flag"
11502 || test ! -s conftest.err'
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); }; } &&
11508 { ac_try
='test -s conftest.$ac_objext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_lo
=$ac_mid; break
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.
$ac_ext >&5
11519 ac_hi
=`expr '(' $ac_mid ')' - 1`
11520 if test $ac_mid -le $ac_hi; then
11524 ac_mid
=`expr 2 '*' $ac_mid`
11526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.
$ac_ext >&5
11534 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11536 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11537 # Binary search between lo and hi bounds.
11538 while test "x$ac_lo" != "x$ac_hi"; do
11539 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11540 cat >conftest.
$ac_ext <<_ACEOF
11543 cat confdefs.h
>>conftest.
$ac_ext
11544 cat >>conftest.
$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 $ac_includes_default
11550 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11557 rm -f conftest.
$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>conftest.er1
11561 grep -v '^ *+' conftest.er1
>conftest.err
11563 cat conftest.err
>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try
='test -z "$ac_c_werror_flag"
11567 || test ! -s conftest.err'
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); }; } &&
11573 { ac_try
='test -s conftest.$ac_objext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.
$ac_ext >&5
11584 ac_lo
=`expr '(' $ac_mid ')' + 1`
11586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11589 ?
*) ac_cv_sizeof_double
=$ac_lo;;
11590 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11591 See \`config.log' for more details." >&5
11592 echo "$as_me: error: cannot compute sizeof (double), 77
11593 See \`config.log' for more details." >&2;}
11594 { (exit 1); exit 1; }; } ;;
11597 if test "$cross_compiling" = yes; then
11598 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11599 See \`config.log' for more details." >&5
11600 echo "$as_me: error: cannot run test program while cross compiling
11601 See \`config.log' for more details." >&2;}
11602 { (exit 1); exit 1; }; }
11604 cat >conftest.
$ac_ext <<_ACEOF
11607 cat confdefs.h
>>conftest.
$ac_ext
11608 cat >>conftest.
$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 $ac_includes_default
11611 long longval () { return (long) (sizeof (double)); }
11612 unsigned long ulongval () { return (long) (sizeof (double)); }
11614 #include <stdlib.h>
11619 FILE *f = fopen ("conftest.val", "w");
11622 if (((long) (sizeof (double))) < 0)
11624 long i = longval ();
11625 if (i != ((long) (sizeof (double))))
11627 fprintf (f, "%ld\n", i);
11631 unsigned long i = ulongval ();
11632 if (i != ((long) (sizeof (double))))
11634 fprintf (f, "%lu\n", i);
11636 exit (ferror (f) || fclose (f) != 0);
11642 rm -f conftest
$ac_exeext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; }; then
11653 ac_cv_sizeof_double
=`cat conftest.val`
11655 echo "$as_me: program exited with status $ac_status" >&5
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.
$ac_ext >&5
11659 ( exit $ac_status )
11660 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11661 See \`config.log' for more details." >&5
11662 echo "$as_me: error: cannot compute sizeof (double), 77
11663 See \`config.log' for more details." >&2;}
11664 { (exit 1); exit 1; }; }
11666 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11671 ac_cv_sizeof_double
=0
11674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11675 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
11676 cat >>confdefs.h
<<_ACEOF
11677 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11681 echo "$as_me:$LINENO: checking for long double" >&5
11682 echo $ECHO_N "checking for long double... $ECHO_C" >&6
11683 if test "${ac_cv_type_long_double+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 cat >conftest.
$ac_ext <<_ACEOF
11689 cat confdefs.h
>>conftest.
$ac_ext
11690 cat >>conftest.
$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 $ac_includes_default
11696 if ((long double *) 0)
11698 if (sizeof (long double))
11704 rm -f conftest.
$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706 (eval $ac_compile) 2>conftest.er1
11708 grep -v '^ *+' conftest.er1
>conftest.err
11710 cat conftest.err
>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } &&
11713 { ac_try
='test -z "$ac_c_werror_flag"
11714 || test ! -s conftest.err'
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); }; } &&
11720 { ac_try
='test -s conftest.$ac_objext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 ac_cv_type_long_double
=yes
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.
$ac_ext >&5
11731 ac_cv_type_long_double
=no
11733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11735 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11736 echo "${ECHO_T}$ac_cv_type_long_double" >&6
11738 echo "$as_me:$LINENO: checking size of long double" >&5
11739 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
11740 if test "${ac_cv_sizeof_long_double+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11743 if test "$ac_cv_type_long_double" = yes; then
11744 # The cast to unsigned long works around a bug in the HP C Compiler
11745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11747 # This bug is HP SR number 8606223364.
11748 if test "$cross_compiling" = yes; then
11749 # Depending upon the size, compute the lo and hi bounds.
11750 cat >conftest.
$ac_ext <<_ACEOF
11753 cat confdefs.h
>>conftest.
$ac_ext
11754 cat >>conftest.
$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 $ac_includes_default
11760 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
11767 rm -f conftest.
$ac_objext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11769 (eval $ac_compile) 2>conftest.er1
11771 grep -v '^ *+' conftest.er1
>conftest.err
11773 cat conftest.err
>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try
='test -z "$ac_c_werror_flag"
11777 || test ! -s conftest.err'
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); }; } &&
11783 { ac_try
='test -s conftest.$ac_objext'
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11791 cat >conftest.
$ac_ext <<_ACEOF
11794 cat confdefs.h
>>conftest.
$ac_ext
11795 cat >>conftest.
$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 $ac_includes_default
11801 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11808 rm -f conftest.
$ac_objext
11809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11810 (eval $ac_compile) 2>conftest.er1
11812 grep -v '^ *+' conftest.er1
>conftest.err
11814 cat conftest.err
>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try
='test -z "$ac_c_werror_flag"
11818 || test ! -s conftest.err'
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); }; } &&
11824 { ac_try
='test -s conftest.$ac_objext'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; }; then
11830 ac_hi
=$ac_mid; break
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.
$ac_ext >&5
11835 ac_lo
=`expr $ac_mid + 1`
11836 if test $ac_lo -le $ac_mid; then
11840 ac_mid
=`expr 2 '*' $ac_mid + 1`
11842 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.
$ac_ext >&5
11848 cat >conftest.
$ac_ext <<_ACEOF
11851 cat confdefs.h
>>conftest.
$ac_ext
11852 cat >>conftest.
$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 $ac_includes_default
11858 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
11865 rm -f conftest.
$ac_objext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867 (eval $ac_compile) 2>conftest.er1
11869 grep -v '^ *+' conftest.er1
>conftest.err
11871 cat conftest.err
>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try
='test -z "$ac_c_werror_flag"
11875 || test ! -s conftest.err'
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); }; } &&
11881 { ac_try
='test -s conftest.$ac_objext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11889 cat >conftest.
$ac_ext <<_ACEOF
11892 cat confdefs.h
>>conftest.
$ac_ext
11893 cat >>conftest.
$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 $ac_includes_default
11899 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
11906 rm -f conftest.
$ac_objext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11908 (eval $ac_compile) 2>conftest.er1
11910 grep -v '^ *+' conftest.er1
>conftest.err
11912 cat conftest.err
>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try
='test -z "$ac_c_werror_flag"
11916 || test ! -s conftest.err'
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); }; } &&
11922 { ac_try
='test -s conftest.$ac_objext'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; }; then
11928 ac_lo
=$ac_mid; break
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.
$ac_ext >&5
11933 ac_hi
=`expr '(' $ac_mid ')' - 1`
11934 if test $ac_mid -le $ac_hi; then
11938 ac_mid
=`expr 2 '*' $ac_mid`
11940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11943 echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.
$ac_ext >&5
11948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11951 # Binary search between lo and hi bounds.
11952 while test "x$ac_lo" != "x$ac_hi"; do
11953 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11954 cat >conftest.
$ac_ext <<_ACEOF
11957 cat confdefs.h
>>conftest.
$ac_ext
11958 cat >>conftest.
$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 $ac_includes_default
11964 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11971 rm -f conftest.
$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>conftest.er1
11975 grep -v '^ *+' conftest.er1
>conftest.err
11977 cat conftest.err
>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try
='test -z "$ac_c_werror_flag"
11981 || test ! -s conftest.err'
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); }; } &&
11987 { ac_try
='test -s conftest.$ac_objext'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.
$ac_ext >&5
11998 ac_lo
=`expr '(' $ac_mid ')' + 1`
12000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12003 ?
*) ac_cv_sizeof_long_double
=$ac_lo;;
12004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12005 See \`config.log' for more details." >&5
12006 echo "$as_me: error: cannot compute sizeof (long double), 77
12007 See \`config.log' for more details." >&2;}
12008 { (exit 1); exit 1; }; } ;;
12011 if test "$cross_compiling" = yes; then
12012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12013 See \`config.log' for more details." >&5
12014 echo "$as_me: error: cannot run test program while cross compiling
12015 See \`config.log' for more details." >&2;}
12016 { (exit 1); exit 1; }; }
12018 cat >conftest.
$ac_ext <<_ACEOF
12021 cat confdefs.h
>>conftest.
$ac_ext
12022 cat >>conftest.
$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 long longval () { return (long) (sizeof (long double)); }
12026 unsigned long ulongval () { return (long) (sizeof (long double)); }
12028 #include <stdlib.h>
12033 FILE *f = fopen ("conftest.val", "w");
12036 if (((long) (sizeof (long double))) < 0)
12038 long i = longval ();
12039 if (i != ((long) (sizeof (long double))))
12041 fprintf (f, "%ld\n", i);
12045 unsigned long i = ulongval ();
12046 if (i != ((long) (sizeof (long double))))
12048 fprintf (f, "%lu\n", i);
12050 exit (ferror (f) || fclose (f) != 0);
12056 rm -f conftest
$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058 (eval $ac_link) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_cv_sizeof_long_double
=`cat conftest.val`
12069 echo "$as_me: program exited with status $ac_status" >&5
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.
$ac_ext >&5
12073 ( exit $ac_status )
12074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12075 See \`config.log' for more details." >&5
12076 echo "$as_me: error: cannot compute sizeof (long double), 77
12077 See \`config.log' for more details." >&2;}
12078 { (exit 1); exit 1; }; }
12080 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12085 ac_cv_sizeof_long_double
=0
12088 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12089 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
12090 cat >>confdefs.h
<<_ACEOF
12091 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12096 # Also AC_SUBST this variable for ffi.h.
12097 if test -z "$HAVE_LONG_DOUBLE"; then
12099 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12100 if test $ac_cv_sizeof_long_double != 0; then
12103 cat >>confdefs.h
<<\_ACEOF
12104 #define HAVE_LONG_DOUBLE 1
12112 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12113 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12114 if test "${ac_cv_c_bigendian+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 # See if sys/param.h defines the BYTE_ORDER macro.
12118 cat >conftest.
$ac_ext <<_ACEOF
12121 cat confdefs.h
>>conftest.
$ac_ext
12122 cat >>conftest.
$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 #include <sys/types.h>
12125 #include <sys/param.h>
12130 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12131 bogus endian macros
12138 rm -f conftest.
$ac_objext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>conftest.er1
12142 grep -v '^ *+' conftest.er1
>conftest.err
12144 cat conftest.err
>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try
='test -z "$ac_c_werror_flag"
12148 || test ! -s conftest.err'
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); }; } &&
12154 { ac_try
='test -s conftest.$ac_objext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 # It does; now see whether it defined to BIG_ENDIAN or not.
12161 cat >conftest.
$ac_ext <<_ACEOF
12164 cat confdefs.h
>>conftest.
$ac_ext
12165 cat >>conftest.
$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 #include <sys/types.h>
12168 #include <sys/param.h>
12173 #if BYTE_ORDER != BIG_ENDIAN
12181 rm -f conftest.
$ac_objext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>conftest.er1
12185 grep -v '^ *+' conftest.er1
>conftest.err
12187 cat conftest.err
>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try
='test -z "$ac_c_werror_flag"
12191 || test ! -s conftest.err'
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); }; } &&
12197 { ac_try
='test -s conftest.$ac_objext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_cv_c_bigendian
=yes
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.
$ac_ext >&5
12208 ac_cv_c_bigendian
=no
12210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.
$ac_ext >&5
12215 # It does not; compile a test program.
12216 if test "$cross_compiling" = yes; then
12217 # try to guess the endianness by grepping values into an object file
12218 ac_cv_c_bigendian
=unknown
12219 cat >conftest.
$ac_ext <<_ACEOF
12222 cat confdefs.h
>>conftest.
$ac_ext
12223 cat >>conftest.
$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12226 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12227 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12228 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12229 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12230 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12234 _ascii (); _ebcdic ();
12239 rm -f conftest.
$ac_objext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241 (eval $ac_compile) 2>conftest.er1
12243 grep -v '^ *+' conftest.er1
>conftest.err
12245 cat conftest.err
>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try
='test -z "$ac_c_werror_flag"
12249 || test ! -s conftest.err'
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); }; } &&
12255 { ac_try
='test -s conftest.$ac_objext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12262 ac_cv_c_bigendian
=yes
12264 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12265 if test "$ac_cv_c_bigendian" = unknown
; then
12266 ac_cv_c_bigendian
=no
12268 # finding both strings is unlikely to happen, but who knows?
12269 ac_cv_c_bigendian
=unknown
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.
$ac_ext >&5
12277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12279 cat >conftest.
$ac_ext <<_ACEOF
12282 cat confdefs.h
>>conftest.
$ac_ext
12283 cat >>conftest.
$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12288 /* Are we little or big endian? From Harbison&Steele. */
12292 char c[sizeof (long)];
12295 exit (u.c[sizeof (long) - 1] == 1);
12298 rm -f conftest
$ac_exeext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300 (eval $ac_link) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_c_bigendian
=no
12311 echo "$as_me: program exited with status $ac_status" >&5
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.
$ac_ext >&5
12315 ( exit $ac_status )
12316 ac_cv_c_bigendian
=yes
12318 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12323 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12324 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12325 case $ac_cv_c_bigendian in
12328 cat >>confdefs.h
<<\_ACEOF
12329 #define WORDS_BIGENDIAN 1
12335 { { echo "$as_me:$LINENO: error: unknown endianness
12336 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12337 echo "$as_me: error: unknown endianness
12338 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12339 { (exit 1); exit 1; }; } ;;
12343 echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
12344 echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6
12345 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 libffi_cv_as_cfi_pseudo_op
=unknown
12350 cat >conftest.
$ac_ext <<_ACEOF
12353 cat confdefs.h
>>conftest.
$ac_ext
12354 cat >>conftest.
$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12356 asm (".cfi_startproc\n\t.cfi_endproc");
12365 rm -f conftest.
$ac_objext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12367 (eval $ac_compile) 2>conftest.er1
12369 grep -v '^ *+' conftest.er1
>conftest.err
12371 cat conftest.err
>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } &&
12374 { ac_try
='test -z "$ac_c_werror_flag"
12375 || test ! -s conftest.err'
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); }; } &&
12381 { ac_try
='test -s conftest.$ac_objext'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; }; then
12387 libffi_cv_as_cfi_pseudo_op
=yes
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.
$ac_ext >&5
12392 libffi_cv_as_cfi_pseudo_op
=no
12394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12397 echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
12398 echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6
12399 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes
; then
12401 cat >>confdefs.h
<<\_ACEOF
12402 #define HAVE_AS_CFI_PSEUDO_OP 1
12407 if test x
$TARGET = xSPARC
; then
12408 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
12409 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
12410 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 save_CFLAGS
="$CFLAGS"
12415 save_LDFLAGS
="$LDFLAGS"
12416 CFLAGS
="$CFLAGS -fpic"
12417 LDFLAGS
="$LDFLAGS -shared"
12418 cat >conftest.
$ac_ext <<_ACEOF
12421 cat confdefs.h
>>conftest.
$ac_ext
12422 cat >>conftest.
$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12433 rm -f conftest.
$ac_objext conftest
$ac_exeext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12435 (eval $ac_link) 2>conftest.er1
12437 grep -v '^ *+' conftest.er1
>conftest.err
12439 cat conftest.err
>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try
='test -z "$ac_c_werror_flag"
12443 || test ! -s conftest.err'
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); }; } &&
12449 { ac_try
='test -s conftest$ac_exeext'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 libffi_cv_as_sparc_ua_pcrel
=yes
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.
$ac_ext >&5
12460 libffi_cv_as_sparc_ua_pcrel
=no
12462 rm -f conftest.err conftest.
$ac_objext \
12463 conftest
$ac_exeext conftest.
$ac_ext
12464 CFLAGS
="$save_CFLAGS"
12465 LDFLAGS
="$save_LDFLAGS"
12467 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12468 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
12469 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
12471 cat >>confdefs.h
<<\_ACEOF
12472 #define HAVE_AS_SPARC_UA_PCREL 1
12477 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
12478 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
12479 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 libffi_cv_as_register_pseudo_op
=unknown
12484 # Check if we have .register
12485 cat >conftest.
$ac_ext <<_ACEOF
12488 cat confdefs.h
>>conftest.
$ac_ext
12489 cat >>conftest.
$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 asm (".register %g2, #scratch");
12500 rm -f conftest.
$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>conftest.er1
12504 grep -v '^ *+' conftest.er1
>conftest.err
12506 cat conftest.err
>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try
='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
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); }; } &&
12516 { ac_try
='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 libffi_cv_as_register_pseudo_op
=yes
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.
$ac_ext >&5
12527 libffi_cv_as_register_pseudo_op
=no
12529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12532 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
12533 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
12534 if test "x$libffi_cv_as_register_pseudo_op" = xyes
; then
12536 cat >>confdefs.h
<<\_ACEOF
12537 #define HAVE_AS_REGISTER_PSEUDO_OP 1
12543 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
12544 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
12545 if test "${libffi_cv_ro_eh_frame+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 libffi_cv_ro_eh_frame
=no
12550 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12551 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c
> /dev
/null
2>&1; then
12552 if grep '.section.*eh_frame.*"a"' conftest.s
> /dev
/null
; then
12553 libffi_cv_ro_eh_frame
=yes
12554 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12555 |
grep -v '#write' > /dev
/null
; then
12556 libffi_cv_ro_eh_frame
=yes
12562 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
12563 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
12564 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
12566 cat >>confdefs.h
<<\_ACEOF
12567 #define HAVE_RO_EH_FRAME 1
12571 cat >>confdefs.h
<<\_ACEOF
12572 #define EH_FRAME_FLAGS "a"
12577 cat >>confdefs.h
<<\_ACEOF
12578 #define EH_FRAME_FLAGS "aw"
12583 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
12584 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
12585 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12590 libffi_cv_hidden_visibility_attribute
=no
12591 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
12598 libffi_cv_hidden_visibility_attribute
=yes
12604 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
12605 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
12606 if test $libffi_cv_hidden_visibility_attribute = yes; then
12608 cat >>confdefs.h
<<\_ACEOF
12609 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
12622 # Check whether --enable-debug or --disable-debug was given.
12623 if test "${enable_debug+set}" = set; then
12624 enableval
="$enable_debug"
12625 if test "$enable_debug" = "yes"; then
12627 cat >>confdefs.h
<<\_ACEOF
12628 #define FFI_DEBUG 1
12634 # Check whether --enable-structs or --disable-structs was given.
12635 if test "${enable_structs+set}" = set; then
12636 enableval
="$enable_structs"
12637 if test "$enable_structs" = "no"; then
12639 cat >>confdefs.h
<<\_ACEOF
12640 #define FFI_NO_STRUCTS 1
12646 # Check whether --enable-raw-api or --disable-raw-api was given.
12647 if test "${enable_raw_api+set}" = set; then
12648 enableval
="$enable_raw_api"
12649 if test "$enable_raw_api" = "no"; then
12651 cat >>confdefs.h
<<\_ACEOF
12652 #define FFI_NO_RAW_API 1
12658 # Check whether --enable-purify-safety or --disable-purify-safety was given.
12659 if test "${enable_purify_safety+set}" = set; then
12660 enableval
="$enable_purify_safety"
12661 if test "$enable_purify_safety" = "yes"; then
12663 cat >>confdefs.h
<<\_ACEOF
12664 #define USING_PURIFY 1
12670 if test -n "$with_cross_host" &&
12671 test x
"$with_cross_host" != x
"no"; then
12672 toolexecdir
='$(exec_prefix)/$(target_alias)'
12673 toolexeclibdir
='$(toolexecdir)/lib'
12675 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
12676 toolexeclibdir
='$(libdir)'
12678 multi_os_directory
=`$CC -print-multi-os-directory`
12679 case $multi_os_directory in
12680 .
) ;; # Avoid trailing /.
12681 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
12686 if test "${multilib}" = "yes"; then
12687 multilib_arg
="--enable-multilib"
12692 ac_config_commands
="$ac_config_commands include"
12694 ac_config_commands
="$ac_config_commands src"
12697 ac_config_links
="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12700 ac_config_files
="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
12703 cat >confcache
<<\_ACEOF
12704 # This file is a shell script that caches the results of configure
12705 # tests run on this system so they can be shared between configure
12706 # scripts and configure runs, see configure's option --config-cache.
12707 # It is not useful on other systems. If it contains results you don't
12708 # want to keep, you may remove or edit it.
12710 # config.status only pays attention to the cache file if you give it
12711 # the --recheck option to rerun configure.
12713 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12714 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12715 # following values.
12719 # The following way of writing the cache mishandles newlines in values,
12720 # but we know of no workaround that is simple, portable, and efficient.
12721 # So, don't put newlines in cache variables' values.
12722 # Ultrix sh set writes to stderr and can't be redirected directly,
12723 # and sets the high bit in the cache file unless we assign to the vars.
12726 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12728 # `set' does not quote correctly, so add quotes (double-quote
12729 # substitution turns \\\\ into \\, and sed turns \\ into \).
12732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12735 # `set' quotes correctly as required by POSIX, so do not add quotes.
12737 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12746 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12748 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
12749 if test -w $cache_file; then
12750 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12751 cat confcache
>$cache_file
12753 echo "not updating unwritable cache $cache_file"
12758 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12759 # Let make expand exec_prefix.
12760 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12762 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12763 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12764 # trailing colons and then remove the whole line if VPATH becomes empty
12765 # (actually we leave an empty line to preserve line numbers).
12766 if test "x$srcdir" = x.
; then
12767 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12768 s/:*\$(srcdir):*/:/;
12769 s/:*\${srcdir}:*/:/;
12771 s/^\([^=]*=[ ]*\):*/\1/;
12777 DEFS
=-DHAVE_CONFIG_H
12781 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12782 # 1. Remove the extension, and $U if already installed.
12783 ac_i
=`echo "$ac_i" |
12784 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12786 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
12787 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
12789 LIBOBJS
=$ac_libobjs
12791 LTLIBOBJS
=$ac_ltlibobjs
12794 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12795 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12796 Usually this means the macro was only invoked conditionally." >&5
12797 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12798 Usually this means the macro was only invoked conditionally." >&2;}
12799 { (exit 1); exit 1; }; }
12801 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12802 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12803 Usually this means the macro was only invoked conditionally." >&5
12804 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12805 Usually this means the macro was only invoked conditionally." >&2;}
12806 { (exit 1); exit 1; }; }
12808 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12809 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12810 Usually this means the macro was only invoked conditionally." >&5
12811 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12812 Usually this means the macro was only invoked conditionally." >&2;}
12813 { (exit 1); exit 1; }; }
12815 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12816 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
12817 Usually this means the macro was only invoked conditionally." >&5
12818 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
12819 Usually this means the macro was only invoked conditionally." >&2;}
12820 { (exit 1); exit 1; }; }
12822 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12823 { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
12824 Usually this means the macro was only invoked conditionally." >&5
12825 echo "$as_me: error: conditional \"MIPS\" was never defined.
12826 Usually this means the macro was only invoked conditionally." >&2;}
12827 { (exit 1); exit 1; }; }
12829 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12830 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
12831 Usually this means the macro was only invoked conditionally." >&5
12832 echo "$as_me: error: conditional \"SPARC\" was never defined.
12833 Usually this means the macro was only invoked conditionally." >&2;}
12834 { (exit 1); exit 1; }; }
12836 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12837 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
12838 Usually this means the macro was only invoked conditionally." >&5
12839 echo "$as_me: error: conditional \"X86\" was never defined.
12840 Usually this means the macro was only invoked conditionally." >&2;}
12841 { (exit 1); exit 1; }; }
12843 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12844 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
12845 Usually this means the macro was only invoked conditionally." >&5
12846 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
12847 Usually this means the macro was only invoked conditionally." >&2;}
12848 { (exit 1); exit 1; }; }
12850 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12851 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
12852 Usually this means the macro was only invoked conditionally." >&5
12853 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
12854 Usually this means the macro was only invoked conditionally." >&2;}
12855 { (exit 1); exit 1; }; }
12857 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12858 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
12859 Usually this means the macro was only invoked conditionally." >&5
12860 echo "$as_me: error: conditional \"ALPHA\" was never defined.
12861 Usually this means the macro was only invoked conditionally." >&2;}
12862 { (exit 1); exit 1; }; }
12864 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12865 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
12866 Usually this means the macro was only invoked conditionally." >&5
12867 echo "$as_me: error: conditional \"IA64\" was never defined.
12868 Usually this means the macro was only invoked conditionally." >&2;}
12869 { (exit 1); exit 1; }; }
12871 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12872 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
12873 Usually this means the macro was only invoked conditionally." >&5
12874 echo "$as_me: error: conditional \"M32R\" was never defined.
12875 Usually this means the macro was only invoked conditionally." >&2;}
12876 { (exit 1); exit 1; }; }
12878 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12879 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
12880 Usually this means the macro was only invoked conditionally." >&5
12881 echo "$as_me: error: conditional \"M68K\" was never defined.
12882 Usually this means the macro was only invoked conditionally." >&2;}
12883 { (exit 1); exit 1; }; }
12885 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12886 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
12887 Usually this means the macro was only invoked conditionally." >&5
12888 echo "$as_me: error: conditional \"POWERPC\" was never defined.
12889 Usually this means the macro was only invoked conditionally." >&2;}
12890 { (exit 1); exit 1; }; }
12892 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12893 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
12894 Usually this means the macro was only invoked conditionally." >&5
12895 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
12896 Usually this means the macro was only invoked conditionally." >&2;}
12897 { (exit 1); exit 1; }; }
12899 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12900 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
12901 Usually this means the macro was only invoked conditionally." >&5
12902 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
12903 Usually this means the macro was only invoked conditionally." >&2;}
12904 { (exit 1); exit 1; }; }
12906 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12907 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
12908 Usually this means the macro was only invoked conditionally." >&5
12909 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
12910 Usually this means the macro was only invoked conditionally." >&2;}
12911 { (exit 1); exit 1; }; }
12913 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12914 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
12915 Usually this means the macro was only invoked conditionally." >&5
12916 echo "$as_me: error: conditional \"ARM\" was never defined.
12917 Usually this means the macro was only invoked conditionally." >&2;}
12918 { (exit 1); exit 1; }; }
12920 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12921 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
12922 Usually this means the macro was only invoked conditionally." >&5
12923 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
12924 Usually this means the macro was only invoked conditionally." >&2;}
12925 { (exit 1); exit 1; }; }
12927 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12928 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
12929 Usually this means the macro was only invoked conditionally." >&5
12930 echo "$as_me: error: conditional \"FRV\" was never defined.
12931 Usually this means the macro was only invoked conditionally." >&2;}
12932 { (exit 1); exit 1; }; }
12934 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12935 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
12936 Usually this means the macro was only invoked conditionally." >&5
12937 echo "$as_me: error: conditional \"S390\" was never defined.
12938 Usually this means the macro was only invoked conditionally." >&2;}
12939 { (exit 1); exit 1; }; }
12941 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12942 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
12943 Usually this means the macro was only invoked conditionally." >&5
12944 echo "$as_me: error: conditional \"X86_64\" was never defined.
12945 Usually this means the macro was only invoked conditionally." >&2;}
12946 { (exit 1); exit 1; }; }
12948 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12949 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
12950 Usually this means the macro was only invoked conditionally." >&5
12951 echo "$as_me: error: conditional \"SH\" was never defined.
12952 Usually this means the macro was only invoked conditionally." >&2;}
12953 { (exit 1); exit 1; }; }
12955 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12956 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
12957 Usually this means the macro was only invoked conditionally." >&5
12958 echo "$as_me: error: conditional \"SH64\" was never defined.
12959 Usually this means the macro was only invoked conditionally." >&2;}
12960 { (exit 1); exit 1; }; }
12962 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12963 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
12964 Usually this means the macro was only invoked conditionally." >&5
12965 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
12966 Usually this means the macro was only invoked conditionally." >&2;}
12967 { (exit 1); exit 1; }; }
12969 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12970 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
12971 Usually this means the macro was only invoked conditionally." >&5
12972 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
12973 Usually this means the macro was only invoked conditionally." >&2;}
12974 { (exit 1); exit 1; }; }
12976 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12977 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
12978 Usually this means the macro was only invoked conditionally." >&5
12979 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
12980 Usually this means the macro was only invoked conditionally." >&2;}
12981 { (exit 1); exit 1; }; }
12984 : ${CONFIG_STATUS=./config.status}
12985 ac_clean_files_save
=$ac_clean_files
12986 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12987 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12988 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12989 cat >$CONFIG_STATUS <<_ACEOF
12991 # Generated by $as_me.
12992 # Run this file to recreate the current configuration.
12993 # Compiler output produced by configure, useful for debugging
12994 # configure, is in config.log if it exists.
12997 ac_cs_recheck=false
12999 SHELL=\${CONFIG_SHELL-$SHELL}
13002 cat >>$CONFIG_STATUS <<\_ACEOF
13003 ## --------------------- ##
13004 ## M4sh Initialization. ##
13005 ## --------------------- ##
13007 # Be Bourne compatible
13008 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
13011 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13012 # is contrary to our usage. Disable this feature.
13013 alias -g '${1+"$@"}'='"$@"'
13014 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
13017 DUALCASE
=1; export DUALCASE
# for MKS sh
13019 # Support unset when possible.
13020 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
13027 # Work around bugs in pre-3.0 UWIN ksh.
13028 $as_unset ENV MAIL MAILPATH
13035 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13036 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13037 LC_TELEPHONE LC_TIME
13039 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13040 eval $as_var=C
; export $as_var
13046 # Required to use basename.
13047 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13053 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
13054 as_basename
=basename
13060 # Name of the executable.
13061 as_me
=`$as_basename "$0" ||
13062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13063 X"$0" : 'X\(//\)$' \| \
13064 X"$0" : 'X\(/\)$' \| \
13065 . : '\(.\)' 2>/dev/null ||
13067 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13068 /^X\/\(\/\/\)$/{ s//\1/; q; }
13069 /^X\/\(\/\).*/{ s//\1/; q; }
13073 # PATH needs CR, and LINENO needs CR and PATH.
13074 # Avoid depending upon Character Ranges.
13075 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13076 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13077 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13078 as_cr_digits
='0123456789'
13079 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13081 # The user is always right.
13082 if test "${PATH_SEPARATOR+set}" != set; then
13083 echo "#! /bin/sh" >conf$$.sh
13084 echo "exit 0" >>conf$$.sh
13086 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13095 as_lineno_1
=$LINENO
13096 as_lineno_2
=$LINENO
13097 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
13098 test "x$as_lineno_1" != "x$as_lineno_2" &&
13099 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
13100 # Find who we are. Look in the path if we contain no path at all
13103 *[\\/]* ) as_myself
=$0 ;;
13104 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13105 for as_dir
in $PATH
13108 test -z "$as_dir" && as_dir
=.
13109 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
13114 # We did not find ourselves, most probably we were run as `sh COMMAND'
13115 # in which case we are not to be found in the path.
13116 if test "x$as_myself" = x
; then
13119 if test ! -f "$as_myself"; then
13120 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13121 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13122 { (exit 1); exit 1; }; }
13124 case $CONFIG_SHELL in
13126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13127 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
13130 test -z "$as_dir" && as_dir
=.
13131 for as_base
in sh bash ksh sh5
; do
13134 if ("$as_dir/$as_base" -c '
13135 as_lineno_1=$LINENO
13136 as_lineno_2=$LINENO
13137 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13138 test "x$as_lineno_1" != "x$as_lineno_2" &&
13139 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
13140 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
13141 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
13142 CONFIG_SHELL
=$as_dir/$as_base
13143 export CONFIG_SHELL
13144 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13152 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13153 # uniformly replaced by the line number. The first 'sed' inserts a
13154 # line-number line before each line; the second 'sed' does the real
13155 # work. The second script uses 'N' to pair each line-number line
13156 # with the numbered line, and appends trailing '-' during
13157 # substitution so that $LINENO is not a special case at line end.
13158 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13159 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13160 sed '=' <$as_myself |
13165 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13168 s,^['$as_cr_digits']*\n,,
13169 ' >$as_me.lineno
&&
13170 chmod +x
$as_me.lineno ||
13171 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13172 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13173 { (exit 1); exit 1; }; }
13175 # Don't try to exec as it changes $[0], causing all sort of problems
13176 # (the dirname of $[0] is not the place where we might find the
13177 # original and so on. Autoconf is especially sensible to this).
13179 # Exit status is that of the last command.
13184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13185 *c
*,-n*) ECHO_N
= ECHO_C
='
13187 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
13188 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
13191 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13197 rm -f conf$$ conf$$.exe conf$$.
file
13199 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13200 # We could just check for DJGPP; but this test a) works b) is more generic
13201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13202 if test -f conf$$.exe
; then
13203 # Don't use ln at all; we don't have any links
13208 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13213 rm -f conf$$ conf$$.exe conf$$.
file
13215 if mkdir
-p .
2>/dev
/null
; then
13218 test -d .
/-p && rmdir .
/-p
13222 as_executable_p
="test -f"
13224 # Sed expression to map a string onto a valid CPP name.
13225 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13227 # Sed expression to map a string onto a valid variable name.
13228 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13232 # We need space, tab and new line, in precisely that order.
13242 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13243 # report actual input values of CONFIG_FILES etc. instead of their
13244 # values after options handling. Logging --version etc. is OK.
13248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13249 ## Running $as_me. ##
13254 This file was extended by libffi $as_me 2.1, which was
13255 generated by GNU Autoconf 2.59. Invocation command line was
13257 CONFIG_FILES = $CONFIG_FILES
13258 CONFIG_HEADERS = $CONFIG_HEADERS
13259 CONFIG_LINKS = $CONFIG_LINKS
13260 CONFIG_COMMANDS = $CONFIG_COMMANDS
13264 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13268 # Files that config.status was made for.
13269 if test -n "$ac_config_files"; then
13270 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13273 if test -n "$ac_config_headers"; then
13274 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13277 if test -n "$ac_config_links"; then
13278 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13281 if test -n "$ac_config_commands"; then
13282 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13285 cat >>$CONFIG_STATUS <<\_ACEOF
13288 \`$as_me' instantiates files from templates according to the
13289 current configuration.
13291 Usage: $0 [OPTIONS] [FILE]...
13293 -h, --help print this help, then exit
13294 -V, --version print version number, then exit
13295 -q, --quiet do not print progress messages
13296 -d, --debug don't remove temporary files
13297 --recheck update $as_me by reconfiguring in the same conditions
13298 --file=FILE[:TEMPLATE]
13299 instantiate the configuration file FILE
13300 --header=FILE[:TEMPLATE]
13301 instantiate the configuration header FILE
13303 Configuration files:
13306 Configuration headers:
13309 Configuration links:
13312 Configuration commands:
13315 Report bugs to <bug-autoconf@gnu.org>."
13318 cat >>$CONFIG_STATUS <<_ACEOF
13320 libffi config.status 2.1
13321 configured by $0, generated by GNU Autoconf 2.59,
13322 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13324 Copyright (C) 2003 Free Software Foundation, Inc.
13325 This config.status script is free software; the Free Software Foundation
13326 gives unlimited permission to copy, distribute and modify it."
13331 cat >>$CONFIG_STATUS <<\_ACEOF
13332 # If no file are specified by the user, then we need to provide default
13333 # value. By we need to know if files were specified by the user.
13339 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
13340 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
13348 *) # This is not an option, so the user has probably given explicit
13351 ac_need_defaults
=false
;;
13355 # Handling of the options.
13357 cat >>$CONFIG_STATUS <<\_ACEOF
13358 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13360 --version |
--vers* |
-V )
13361 echo "$ac_cs_version"; exit 0 ;;
13363 # Conflict between --help and --header
13364 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13365 Try \`$0 --help' for more information." >&5
13366 echo "$as_me: error: ambiguous option: $1
13367 Try \`$0 --help' for more information." >&2;}
13368 { (exit 1); exit 1; }; };;
13369 --help |
--hel |
-h )
13370 echo "$ac_cs_usage"; exit 0 ;;
13371 --debug |
--d* |
-d )
13373 --file |
--fil |
--fi |
--f )
13375 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
13376 ac_need_defaults
=false
;;
13377 --header |
--heade |
--head |
--hea )
13379 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
13380 ac_need_defaults
=false
;;
13381 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13382 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13385 # This is an error.
13386 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13387 Try \`$0 --help' for more information." >&5
13388 echo "$as_me: error: unrecognized option: $1
13389 Try \`$0 --help' for more information." >&2;}
13390 { (exit 1); exit 1; }; } ;;
13392 *) ac_config_targets
="$ac_config_targets $1" ;;
13398 ac_configure_extra_args
=
13400 if $ac_cs_silent; then
13402 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13406 cat >>$CONFIG_STATUS <<_ACEOF
13407 if \$ac_cs_recheck; then
13408 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13409 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13414 cat >>$CONFIG_STATUS <<_ACEOF
13416 # INIT-COMMANDS section.
13423 with_multisubdir="$with_multisubdir"
13424 with_multisrctop="$with_multisrctop"
13425 with_target_subdir="$with_target_subdir"
13426 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13427 multi_basedir="$multi_basedir"
13428 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13430 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13433 # The HP-UX ksh and POSIX shell print the target directory to stdout
13434 # if CDPATH is set.
13435 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13437 sed_quote_subst='$sed_quote_subst'
13438 double_quote_subst='$double_quote_subst'
13439 delay_variable_subst='$delay_variable_subst'
13440 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13441 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13442 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13443 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13444 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13445 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13446 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13447 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13448 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13449 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13450 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13451 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13452 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13453 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13454 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13455 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13456 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13457 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13458 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13459 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13460 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13461 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13462 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13463 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13464 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13465 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13466 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13467 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13468 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13469 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13470 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13471 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13472 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13473 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13474 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13475 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13476 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13477 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13478 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13479 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13480 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13481 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13482 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13483 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"`'
13484 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13485 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13486 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13487 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13488 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13489 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13490 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13491 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13492 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13493 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13494 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13495 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13496 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13497 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13498 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13499 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13500 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13501 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13502 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13503 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13504 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13505 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13506 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13507 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13508 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13509 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13510 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13511 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13512 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13513 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13514 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13515 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13516 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13517 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13518 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13519 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13520 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13521 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13522 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13523 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13524 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13525 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13526 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13528 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13529 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13530 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13531 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13532 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13533 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13534 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13535 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13536 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13537 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13538 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13539 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13540 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13541 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13542 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13543 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13544 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13545 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13546 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13547 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13548 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13549 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13550 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13553 LTCFLAGS='$LTCFLAGS'
13554 compiler='$compiler_DEFAULT'
13556 # Quote evaled strings.
13567 deplibs_check_method \
13576 lt_cv_sys_global_symbol_pipe \
13577 lt_cv_sys_global_symbol_to_cdecl \
13578 lt_cv_sys_global_symbol_to_c_name_address \
13581 lt_prog_compiler_no_builtin_flag \
13582 lt_prog_compiler_wl \
13583 lt_prog_compiler_pic \
13584 lt_prog_compiler_static \
13585 lt_cv_prog_compiler_c_o \
13588 export_dynamic_flag_spec \
13589 whole_archive_flag_spec \
13590 compiler_needs_object \
13592 allow_undefined_flag \
13593 no_undefined_flag \
13594 hardcode_libdir_flag_spec \
13595 hardcode_libdir_flag_spec_ld \
13596 hardcode_libdir_separator \
13601 variables_saved_for_relink \
13603 library_names_spec \
13608 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13609 *[\\\\\\\`\\"\\\$]*)
13610 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13613 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13618 # Double-quote double-evaled strings.
13619 for var in reload_cmds \
13620 old_postinstall_cmds \
13621 old_postuninstall_cmds \
13623 extract_expsyms_cmds \
13624 old_archive_from_new_cmds \
13625 old_archive_from_expsyms_cmds \
13627 archive_expsym_cmds \
13629 module_expsym_cmds \
13630 export_symbols_cmds \
13633 postuninstall_cmds \
13635 sys_lib_search_path_spec \
13636 sys_lib_dlsearch_path_spec; do
13637 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13638 *[\\\\\\\`\\"\\\$]*)
13639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13647 # Fix-up fallback echo if it was mangled by the above quoting rules.
13649 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13653 ac_aux_dir='$ac_aux_dir'
13654 xsi_shell='$xsi_shell'
13655 lt_shell_append='$lt_shell_append'
13657 # See if we are running on zsh, and set the options which allow our
13658 # commands through without removal of \ escapes INIT.
13659 if test -n "\${ZSH_VERSION+set}" ; then
13660 setopt NO_GLOB_SUBST
13666 TIMESTAMP='$TIMESTAMP'
13672 TARGETDIR="$TARGETDIR"
13678 cat >>$CONFIG_STATUS <<\_ACEOF
13679 for ac_config_target
in $ac_config_targets
13681 case "$ac_config_target" in
13682 # Handling of arguments.
13683 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
13684 "include/ffi.h" ) CONFIG_FILES
="$CONFIG_FILES include/ffi.h" ;;
13685 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13686 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
13687 "include/ffitarget.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13688 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
13689 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13690 "libtool" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
13691 "include" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS include" ;;
13692 "src" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS src" ;;
13693 "fficonfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS fficonfig.h" ;;
13694 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13695 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13696 { (exit 1); exit 1; }; };;
13700 # If the user did not use the arguments to specify the items to instantiate,
13701 # then the envvar interface is used. Set only those that are not.
13702 # We use the long form for the default assignment because of an extremely
13703 # bizarre bug on SunOS 4.1.3.
13704 if $ac_need_defaults; then
13705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13707 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
13708 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13711 # Have a temporary directory for convenience. Make it in the build tree
13712 # simply because there is no reason to put it here, and in addition,
13713 # creating and moving files from /tmp can sometimes cause problems.
13714 # Create a temporary directory, and hook for its removal unless debugging.
13717 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13718 trap '{ (exit 1); exit 1; }' 1 2 13 15
13721 # Create a (secure) tmp directory for tmp files.
13724 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13725 test -n "$tmp" && test -d "$tmp"
13728 tmp
=.
/confstat$$
-$RANDOM
13729 (umask 077 && mkdir
$tmp)
13732 echo "$me: cannot create a temporary directory in ." >&2
13733 { (exit 1); exit 1; }
13738 cat >>$CONFIG_STATUS <<_ACEOF
13741 # CONFIG_FILES section.
13744 # No need to generate the scripts if there are no CONFIG_FILES.
13745 # This happens for instance when ./config.status config.h
13746 if test -n "\$CONFIG_FILES"; then
13747 # Protect against being on the right side of a sed subst in config.status.
13748 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13749 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13750 s,@SHELL@,$SHELL,;t t
13751 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13752 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13753 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13754 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13755 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13756 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13757 s,@exec_prefix@,$exec_prefix,;t t
13758 s,@prefix@,$prefix,;t t
13759 s,@program_transform_name@,$program_transform_name,;t t
13760 s,@bindir@,$bindir,;t t
13761 s,@sbindir@,$sbindir,;t t
13762 s,@libexecdir@,$libexecdir,;t t
13763 s,@datadir@,$datadir,;t t
13764 s,@sysconfdir@,$sysconfdir,;t t
13765 s,@sharedstatedir@,$sharedstatedir,;t t
13766 s,@localstatedir@,$localstatedir,;t t
13767 s,@libdir@,$libdir,;t t
13768 s,@includedir@,$includedir,;t t
13769 s,@oldincludedir@,$oldincludedir,;t t
13770 s,@infodir@,$infodir,;t t
13771 s,@mandir@,$mandir,;t t
13772 s,@build_alias@,$build_alias,;t t
13773 s,@host_alias@,$host_alias,;t t
13774 s,@target_alias@,$target_alias,;t t
13775 s,@DEFS@,$DEFS,;t t
13776 s,@ECHO_C@,$ECHO_C,;t t
13777 s,@ECHO_N@,$ECHO_N,;t t
13778 s,@ECHO_T@,$ECHO_T,;t t
13779 s,@LIBS@,$LIBS,;t t
13780 s,@multi_basedir@,$multi_basedir,;t t
13781 s,@build@,$build,;t t
13782 s,@build_cpu@,$build_cpu,;t t
13783 s,@build_vendor@,$build_vendor,;t t
13784 s,@build_os@,$build_os,;t t
13785 s,@host@,$host,;t t
13786 s,@host_cpu@,$host_cpu,;t t
13787 s,@host_vendor@,$host_vendor,;t t
13788 s,@host_os@,$host_os,;t t
13789 s,@target@,$target,;t t
13790 s,@target_cpu@,$target_cpu,;t t
13791 s,@target_vendor@,$target_vendor,;t t
13792 s,@target_os@,$target_os,;t t
13793 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13794 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13795 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13796 s,@CYGPATH_W@,$CYGPATH_W,;t t
13797 s,@PACKAGE@,$PACKAGE,;t t
13798 s,@VERSION@,$VERSION,;t t
13799 s,@ACLOCAL@,$ACLOCAL,;t t
13800 s,@AUTOCONF@,$AUTOCONF,;t t
13801 s,@AUTOMAKE@,$AUTOMAKE,;t t
13802 s,@AUTOHEADER@,$AUTOHEADER,;t t
13803 s,@MAKEINFO@,$MAKEINFO,;t t
13804 s,@install_sh@,$install_sh,;t t
13805 s,@STRIP@,$STRIP,;t t
13806 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13807 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13808 s,@mkdir_p@,$mkdir_p,;t t
13810 s,@SET_MAKE@,$SET_MAKE,;t t
13811 s,@am__leading_dot@,$am__leading_dot,;t t
13812 s,@AMTAR@,$AMTAR,;t t
13813 s,@am__tar@,$am__tar,;t t
13814 s,@am__untar@,$am__untar,;t t
13816 s,@ac_ct_CC@,$ac_ct_CC,;t t
13817 s,@EXEEXT@,$EXEEXT,;t t
13818 s,@OBJEXT@,$OBJEXT,;t t
13819 s,@DEPDIR@,$DEPDIR,;t t
13820 s,@am__include@,$am__include,;t t
13821 s,@am__quote@,$am__quote,;t t
13822 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13823 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13824 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13825 s,@CCDEPMODE@,$CCDEPMODE,;t t
13826 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13827 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13828 s,@CFLAGS@,$CFLAGS,;t t
13829 s,@CCAS@,$CCAS,;t t
13830 s,@CCASFLAGS@,$CCASFLAGS,;t t
13831 s,@LIBTOOL@,$LIBTOOL,;t t
13833 s,@EGREP@,$EGREP,;t t
13834 s,@FGREP@,$FGREP,;t t
13835 s,@GREP@,$GREP,;t t
13837 s,@DUMPBIN@,$DUMPBIN,;t t
13838 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13840 s,@LN_S@,$LN_S,;t t
13842 s,@ac_ct_AR@,$ac_ct_AR,;t t
13843 s,@RANLIB@,$RANLIB,;t t
13844 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13845 s,@lt_ECHO@,$lt_ECHO,;t t
13847 s,@CPPFLAGS@,$CPPFLAGS,;t t
13848 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13849 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13850 s,@MAINT@,$MAINT,;t t
13851 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
13852 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
13853 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
13854 s,@MIPS_TRUE@,$MIPS_TRUE,;t t
13855 s,@MIPS_FALSE@,$MIPS_FALSE,;t t
13856 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
13857 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
13858 s,@X86_TRUE@,$X86_TRUE,;t t
13859 s,@X86_FALSE@,$X86_FALSE,;t t
13860 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
13861 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
13862 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
13863 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
13864 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
13865 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
13866 s,@IA64_TRUE@,$IA64_TRUE,;t t
13867 s,@IA64_FALSE@,$IA64_FALSE,;t t
13868 s,@M32R_TRUE@,$M32R_TRUE,;t t
13869 s,@M32R_FALSE@,$M32R_FALSE,;t t
13870 s,@M68K_TRUE@,$M68K_TRUE,;t t
13871 s,@M68K_FALSE@,$M68K_FALSE,;t t
13872 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
13873 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
13874 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
13875 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
13876 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
13877 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
13878 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
13879 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
13880 s,@ARM_TRUE@,$ARM_TRUE,;t t
13881 s,@ARM_FALSE@,$ARM_FALSE,;t t
13882 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
13883 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
13884 s,@FRV_TRUE@,$FRV_TRUE,;t t
13885 s,@FRV_FALSE@,$FRV_FALSE,;t t
13886 s,@S390_TRUE@,$S390_TRUE,;t t
13887 s,@S390_FALSE@,$S390_FALSE,;t t
13888 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
13889 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
13890 s,@SH_TRUE@,$SH_TRUE,;t t
13891 s,@SH_FALSE@,$SH_FALSE,;t t
13892 s,@SH64_TRUE@,$SH64_TRUE,;t t
13893 s,@SH64_FALSE@,$SH64_FALSE,;t t
13894 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
13895 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
13896 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
13897 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
13898 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
13899 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
13900 s,@ALLOCA@,$ALLOCA,;t t
13901 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
13902 s,@TARGET@,$TARGET,;t t
13903 s,@TARGETDIR@,$TARGETDIR,;t t
13904 s,@toolexecdir@,$toolexecdir,;t t
13905 s,@toolexeclibdir@,$toolexeclibdir,;t t
13906 s,@LIBOBJS@,$LIBOBJS,;t t
13907 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13912 cat >>$CONFIG_STATUS <<\_ACEOF
13913 # Split the substitutions into bite-sized pieces for seds with
13914 # small command number limits, like on Digital OSF/1 and HP-UX.
13915 ac_max_sed_lines
=48
13916 ac_sed_frag
=1 # Number of current file.
13917 ac_beg
=1 # First line for current file.
13918 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13921 while $ac_more_lines; do
13922 if test $ac_beg -gt 1; then
13923 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13925 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13927 if test ! -s $tmp/subs.frag
; then
13928 ac_more_lines
=false
13930 # The purpose of the label and of the branching condition is to
13931 # speed up the sed processing (if there are no `@' at all, there
13932 # is no need to browse any of the substitutions).
13933 # These are the two extra sed commands mentioned above.
13935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13936 if test -z "$ac_sed_cmds"; then
13937 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13939 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13941 ac_sed_frag
=`expr $ac_sed_frag + 1`
13943 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13946 if test -z "$ac_sed_cmds"; then
13949 fi # test -n "$CONFIG_FILES"
13952 cat >>$CONFIG_STATUS <<\_ACEOF
13953 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13956 - |
*:- |
*:-:* ) # input from stdin
13958 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13959 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13960 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13961 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13962 * ) ac_file_in
=$ac_file.
in ;;
13965 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13966 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13967 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13968 X"$ac_file" : 'X\(//\)[^/]' \| \
13969 X"$ac_file" : 'X\(//\)$' \| \
13970 X"$ac_file" : 'X\(/\)' \| \
13971 . : '\(.\)' 2>/dev/null ||
13973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13975 /^X\(\/\/\)$/{ s//\1/; q; }
13976 /^X\(\/\).*/{ s//\1/; q; }
13978 { if $as_mkdir_p; then
13983 while test ! -d "$as_dir"; do
13984 as_dirs
="$as_dir $as_dirs"
13985 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13986 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13987 X"$as_dir" : 'X\(//\)[^/]' \| \
13988 X"$as_dir" : 'X\(//\)$' \| \
13989 X"$as_dir" : 'X\(/\)' \| \
13990 . : '\(.\)' 2>/dev/null ||
13992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13994 /^X\(\/\/\)$/{ s//\1/; q; }
13995 /^X\(\/\).*/{ s//\1/; q; }
13998 test ! -n "$as_dirs" || mkdir
$as_dirs
13999 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14001 { (exit 1); exit 1; }; }; }
14005 if test "$ac_dir" != .
; then
14006 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14007 # A "../" for each directory in $ac_dir_suffix.
14008 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14010 ac_dir_suffix
= ac_top_builddir
=
14014 .
) # No --srcdir option. We are building in place.
14016 if test -z "$ac_top_builddir"; then
14019 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14021 [\\/]* | ?
:[\\/]* ) # Absolute path.
14022 ac_srcdir
=$srcdir$ac_dir_suffix;
14023 ac_top_srcdir
=$srcdir ;;
14024 *) # Relative path.
14025 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14026 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14029 # Do not use `cd foo && pwd` to compute absolute paths, because
14030 # the directories may not exist.
14032 .
) ac_abs_builddir
="$ac_dir";;
14035 .
) ac_abs_builddir
=`pwd`;;
14036 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14037 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14040 case $ac_abs_builddir in
14041 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14043 case ${ac_top_builddir}.
in
14044 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14045 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14046 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14049 case $ac_abs_builddir in
14050 .
) ac_abs_srcdir
=$ac_srcdir;;
14053 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14054 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14055 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14058 case $ac_abs_builddir in
14059 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14061 case $ac_top_srcdir in
14062 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14063 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14064 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14070 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14071 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
14074 if test x
"$ac_file" != x-
; then
14075 { echo "$as_me:$LINENO: creating $ac_file" >&5
14076 echo "$as_me: creating $ac_file" >&6;}
14079 # Let's still pretend it is `configure' which instantiates (i.e., don't
14080 # use $as_me), people would be surprised to read:
14081 # /* config.h. Generated by config.status. */
14082 if test x
"$ac_file" = x-
; then
14085 configure_input
="$ac_file. "
14087 configure_input
=$configure_input"Generated from `echo $ac_file_in |
14088 sed 's,.*/,,'` by configure."
14090 # First look for the input files in the build tree, otherwise in the
14092 ac_file_inputs
=`IFS=:
14093 for f in $ac_file_in; do
14095 -) echo $tmp/stdin ;;
14097 # Absolute (can't be DOS-style, as IFS=:)
14098 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14099 echo "$as_me: error: cannot find input file: $f" >&2;}
14100 { (exit 1); exit 1; }; }
14103 if test -f "$f"; then
14106 elif test -f "$srcdir/$f"; then
14111 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14112 echo "$as_me: error: cannot find input file: $f" >&2;}
14113 { (exit 1); exit 1; }; }
14116 done` ||
{ (exit 1); exit 1; }
14118 cat >>$CONFIG_STATUS <<_ACEOF
14122 cat >>$CONFIG_STATUS <<\_ACEOF
14124 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14125 s
,@configure_input@
,$configure_input,;t t
14126 s
,@srcdir@
,$ac_srcdir,;t t
14127 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
14128 s
,@top_srcdir@
,$ac_top_srcdir,;t t
14129 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
14130 s
,@builddir@
,$ac_builddir,;t t
14131 s
,@abs_builddir@
,$ac_abs_builddir,;t t
14132 s
,@top_builddir@
,$ac_top_builddir,;t t
14133 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
14134 s
,@INSTALL@
,$ac_INSTALL,;t t
14135 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14137 if test x"$ac_file" != x-; then
14138 mv $tmp/out $ac_file
14146 cat >>$CONFIG_STATUS <<\_ACEOF
14149 # CONFIG_HEADER section.
14152 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
14153 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14155 # ac_d sets the value in "#define NAME VALUE" lines.
14156 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14157 ac_dB
='[ ].*$,\1#\2'
14160 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14161 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14162 ac_uB
='$,\1#\2define\3'
14166 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
14167 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14169 - |
*:- |
*:-:* ) # input from stdin
14171 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14172 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14173 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14174 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14175 * ) ac_file_in
=$ac_file.
in ;;
14178 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
14179 echo "$as_me: creating $ac_file" >&6;}
14181 # First look for the input files in the build tree, otherwise in the
14183 ac_file_inputs
=`IFS=:
14184 for f in $ac_file_in; do
14186 -) echo $tmp/stdin ;;
14188 # Absolute (can't be DOS-style, as IFS=:)
14189 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14190 echo "$as_me: error: cannot find input file: $f" >&2;}
14191 { (exit 1); exit 1; }; }
14192 # Do quote $f, to prevent DOS paths from being IFS'd.
14195 if test -f "$f"; then
14198 elif test -f "$srcdir/$f"; then
14203 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14204 echo "$as_me: error: cannot find input file: $f" >&2;}
14205 { (exit 1); exit 1; }; }
14208 done` ||
{ (exit 1); exit 1; }
14209 # Remove the trailing spaces.
14210 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14214 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14215 # `conftest.undefs', that substitutes the proper values into
14216 # config.h.in to produce config.h. The first handles `#define'
14217 # templates, and the second `#undef' templates.
14218 # And first: Protect against being on the right side of a sed subst in
14219 # config.status. Protect against being in an unquoted here document
14220 # in config.status.
14221 rm -f conftest.defines conftest.undefs
14222 # Using a here document instead of a string reduces the quoting nightmare.
14223 # Putting comments in sed scripts is not portable.
14225 # `end' is used to avoid that the second main sed command (meant for
14226 # 0-ary CPP macros) applies to n-ary macro definitions.
14227 # See the Autoconf documentation for `clear'.
14228 cat >confdef2sed.
sed <<\_ACEOF
14233 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14235 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14238 # If some macros were called several times there might be several times
14239 # the same #defines, which is useless. Nevertheless, we may not want to
14240 # sort them, since we want the *last* AC-DEFINE to be honored.
14241 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14242 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14243 rm -f confdef2sed.sed
14245 # This sed command replaces #undef with comments. This is necessary, for
14246 # example, in the case of _POSIX_SOURCE, which is predefined and required
14247 # on some systems where configure will not decide to define it.
14248 cat >>conftest.undefs <<\_ACEOF
14249 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14252 # Break up conftest.defines because some shells have a limit on the size
14253 # of here documents, and old seds have small limits too (100 cmds).
14254 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14255 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14256 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14257 echo ' :' >>$CONFIG_STATUS
14258 rm -f conftest.tail
14259 while grep . conftest.defines >/dev/null
14261 # Write a limited-size here document to $tmp/defines.sed.
14262 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14263 # Speed up: don't consider the non `#define' lines.
14264 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14265 # Work around the forget-to-reset-the-flag bug.
14266 echo 't clr' >>$CONFIG_STATUS
14267 echo ': clr' >>$CONFIG_STATUS
14268 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
14270 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14272 mv $tmp/out $tmp/in
14274 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
14275 rm -f conftest.defines
14276 mv conftest.
tail conftest.defines
14278 rm -f conftest.defines
14279 echo ' fi # grep' >>$CONFIG_STATUS
14280 echo >>$CONFIG_STATUS
14282 # Break up conftest.undefs because some shells have a limit on the size
14283 # of here documents, and old seds have small limits too (100 cmds).
14284 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14285 rm -f conftest.
tail
14286 while grep . conftest.undefs
>/dev
/null
14288 # Write a limited-size here document to $tmp/undefs.sed.
14289 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14290 # Speed up: don't consider the non
`#undef'
14291 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14292 # Work around the forget-to-reset-the-flag bug.
14293 echo 't clr' >>$CONFIG_STATUS
14294 echo ': clr' >>$CONFIG_STATUS
14295 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14297 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14299 mv $tmp/out $tmp/in
14301 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14302 rm -f conftest.undefs
14303 mv conftest.tail conftest.undefs
14305 rm -f conftest.undefs
14307 cat >>$CONFIG_STATUS <<\_ACEOF
14308 # Let's still pretend it is `configure
' which instantiates (i.e., don't
14309 # use $as_me), people would be surprised to read:
14310 # /* config.h. Generated by config.status. */
14311 if test x
"$ac_file" = x-
; then
14312 echo "/* Generated by configure. */" >$tmp/config.h
14314 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14316 cat $tmp/in >>$tmp/config.h
14318 if test x
"$ac_file" != x-
; then
14319 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
14320 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14321 echo "$as_me: $ac_file is unchanged" >&6;}
14323 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
14324 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14325 X"$ac_file" : 'X\(//\)[^/]' \| \
14326 X"$ac_file" : 'X\(//\)$' \| \
14327 X"$ac_file" : 'X\(/\)' \| \
14328 . : '\(.\)' 2>/dev/null ||
14330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14332 /^X\(\/\/\)$/{ s//\1/; q; }
14333 /^X\(\/\).*/{ s//\1/; q; }
14335 { if $as_mkdir_p; then
14340 while test ! -d "$as_dir"; do
14341 as_dirs
="$as_dir $as_dirs"
14342 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14344 X"$as_dir" : 'X\(//\)[^/]' \| \
14345 X"$as_dir" : 'X\(//\)$' \| \
14346 X"$as_dir" : 'X\(/\)' \| \
14347 . : '\(.\)' 2>/dev/null ||
14349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14351 /^X\(\/\/\)$/{ s//\1/; q; }
14352 /^X\(\/\).*/{ s//\1/; q; }
14355 test ! -n "$as_dirs" || mkdir
$as_dirs
14356 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14357 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14358 { (exit 1); exit 1; }; }; }
14361 mv $tmp/config.h
$ac_file
14365 rm -f $tmp/config.h
14367 # Compute $ac_file's index in $config_headers.
14369 for _am_header
in $config_headers :; do
14370 case $_am_header in
14371 $ac_file |
$ac_file:* )
14374 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
14377 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14378 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14379 X$ac_file : 'X\(//\)[^/]' \| \
14380 X$ac_file : 'X\(//\)$' \| \
14381 X$ac_file : 'X\(/\)' \| \
14382 . : '\(.\)' 2>/dev/null ||
14384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14386 /^X\(\/\/\)$/{ s//\1/; q; }
14387 /^X\(\/\).*/{ s//\1/; q; }
14388 s/.*/./; q'`/stamp-h
$_am_stamp_count
14391 cat >>$CONFIG_STATUS <<\_ACEOF
14394 # CONFIG_LINKS section.
14397 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
14398 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
14399 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14401 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14402 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
14404 if test ! -r $srcdir/$ac_source; then
14405 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14406 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14407 { (exit 1); exit 1; }; }
14411 # Make relative symlinks.
14412 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
14413 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14414 X"$ac_dest" : 'X\(//\)[^/]' \| \
14415 X"$ac_dest" : 'X\(//\)$' \| \
14416 X"$ac_dest" : 'X\(/\)' \| \
14417 . : '\(.\)' 2>/dev/null ||
14419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14421 /^X\(\/\/\)$/{ s//\1/; q; }
14422 /^X\(\/\).*/{ s//\1/; q; }
14424 { if $as_mkdir_p; then
14425 mkdir
-p "$ac_dest_dir"
14427 as_dir
="$ac_dest_dir"
14429 while test ! -d "$as_dir"; do
14430 as_dirs
="$as_dir $as_dirs"
14431 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14433 X"$as_dir" : 'X\(//\)[^/]' \| \
14434 X"$as_dir" : 'X\(//\)$' \| \
14435 X"$as_dir" : 'X\(/\)' \| \
14436 . : '\(.\)' 2>/dev/null ||
14438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14440 /^X\(\/\/\)$/{ s//\1/; q; }
14441 /^X\(\/\).*/{ s//\1/; q; }
14444 test ! -n "$as_dirs" || mkdir
$as_dirs
14445 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14446 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14447 { (exit 1); exit 1; }; }; }
14451 if test "$ac_dest_dir" != .
; then
14452 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14453 # A "../" for each directory in $ac_dir_suffix.
14454 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14456 ac_dir_suffix
= ac_top_builddir
=
14460 .
) # No --srcdir option. We are building in place.
14462 if test -z "$ac_top_builddir"; then
14465 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14467 [\\/]* | ?
:[\\/]* ) # Absolute path.
14468 ac_srcdir
=$srcdir$ac_dir_suffix;
14469 ac_top_srcdir
=$srcdir ;;
14470 *) # Relative path.
14471 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14472 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14475 # Do not use `cd foo && pwd` to compute absolute paths, because
14476 # the directories may not exist.
14478 .
) ac_abs_builddir
="$ac_dest_dir";;
14480 case "$ac_dest_dir" in
14481 .
) ac_abs_builddir
=`pwd`;;
14482 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
14483 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
14486 case $ac_abs_builddir in
14487 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14489 case ${ac_top_builddir}.
in
14490 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14491 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14492 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14495 case $ac_abs_builddir in
14496 .
) ac_abs_srcdir
=$ac_srcdir;;
14499 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14500 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14501 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14504 case $ac_abs_builddir in
14505 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14507 case $ac_top_srcdir in
14508 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14509 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14510 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14516 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
14517 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
14520 # Try a symlink, then a hard link, then a copy.
14521 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
14522 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
14523 cp -p $srcdir/$ac_source $ac_dest ||
14524 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14525 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14526 { (exit 1); exit 1; }; }
14529 cat >>$CONFIG_STATUS <<\_ACEOF
14532 # CONFIG_COMMANDS section.
14534 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
14535 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
14536 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14537 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
14538 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14539 X"$ac_dest" : 'X\(//\)[^/]' \| \
14540 X"$ac_dest" : 'X\(//\)$' \| \
14541 X"$ac_dest" : 'X\(/\)' \| \
14542 . : '\(.\)' 2>/dev/null ||
14544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14546 /^X\(\/\/\)$/{ s//\1/; q; }
14547 /^X\(\/\).*/{ s//\1/; q; }
14549 { if $as_mkdir_p; then
14554 while test ! -d "$as_dir"; do
14555 as_dirs
="$as_dir $as_dirs"
14556 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14558 X"$as_dir" : 'X\(//\)[^/]' \| \
14559 X"$as_dir" : 'X\(//\)$' \| \
14560 X"$as_dir" : 'X\(/\)' \| \
14561 . : '\(.\)' 2>/dev/null ||
14563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14565 /^X\(\/\/\)$/{ s//\1/; q; }
14566 /^X\(\/\).*/{ s//\1/; q; }
14569 test ! -n "$as_dirs" || mkdir
$as_dirs
14570 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14571 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14572 { (exit 1); exit 1; }; }; }
14576 if test "$ac_dir" != .
; then
14577 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14578 # A "../" for each directory in $ac_dir_suffix.
14579 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14581 ac_dir_suffix
= ac_top_builddir
=
14585 .
) # No --srcdir option. We are building in place.
14587 if test -z "$ac_top_builddir"; then
14590 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14592 [\\/]* | ?
:[\\/]* ) # Absolute path.
14593 ac_srcdir
=$srcdir$ac_dir_suffix;
14594 ac_top_srcdir
=$srcdir ;;
14595 *) # Relative path.
14596 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14597 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14600 # Do not use `cd foo && pwd` to compute absolute paths, because
14601 # the directories may not exist.
14603 .
) ac_abs_builddir
="$ac_dir";;
14606 .
) ac_abs_builddir
=`pwd`;;
14607 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14608 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14611 case $ac_abs_builddir in
14612 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14614 case ${ac_top_builddir}.
in
14615 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14616 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14617 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14620 case $ac_abs_builddir in
14621 .
) ac_abs_srcdir
=$ac_srcdir;;
14624 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14625 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14626 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14629 case $ac_abs_builddir in
14630 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14632 case $ac_top_srcdir in
14633 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14634 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14635 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14640 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14641 echo "$as_me: executing $ac_dest commands" >&6;}
14644 # Only add multilib support code if we just rebuilt the top-level
14646 case " $CONFIG_FILES " in
14648 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
14651 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
14652 # Strip MF so we end up with the name of the file.
14653 mf
=`echo "$mf" | sed -e 's/:.*$//'`
14654 # Check whether this is an Automake generated Makefile or not.
14655 # We used to match only the files named `Makefile.in', but
14656 # some people rename them; so instead we look at the file content.
14657 # Grep'ing the first line is not enough: some people post-process
14658 # each Makefile.in and add a new line on top of each file to say so.
14659 # So let's grep whole file.
14660 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
14661 dirpart
=`(dirname "$mf") 2>/dev/null ||
14662 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14663 X"$mf" : 'X\(//\)[^/]' \| \
14664 X"$mf" : 'X\(//\)$' \| \
14665 X"$mf" : 'X\(/\)' \| \
14666 . : '\(.\)' 2>/dev/null ||
14668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14670 /^X\(\/\/\)$/{ s//\1/; q; }
14671 /^X\(\/\).*/{ s//\1/; q; }
14676 # Extract the definition of DEPDIR, am__include, and am__quote
14677 # from the Makefile without running `make'.
14678 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
14679 test -z "$DEPDIR" && continue
14680 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
14681 test -z "am__include" && continue
14682 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
14683 # When using ansi2knr, U may be empty or an underscore; expand it
14684 U
=`sed -n 's/^U = //p' < "$mf"`
14685 # Find all dependency output files, they are included files with
14686 # $(DEPDIR) in their names. We invoke sed twice because it is the
14687 # simplest approach to changing $(DEPDIR) to its actual value in the
14689 for file in `sed -n "
14690 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14691 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14692 # Make sure the directory exists.
14693 test -f "$dirpart/$file" && continue
14694 fdir
=`(dirname "$file") 2>/dev/null ||
14695 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14696 X"$file" : 'X\(//\)[^/]' \| \
14697 X"$file" : 'X\(//\)$' \| \
14698 X"$file" : 'X\(/\)' \| \
14699 . : '\(.\)' 2>/dev/null ||
14701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14703 /^X\(\/\/\)$/{ s//\1/; q; }
14704 /^X\(\/\).*/{ s//\1/; q; }
14706 { if $as_mkdir_p; then
14707 mkdir
-p $dirpart/$fdir
14709 as_dir
=$dirpart/$fdir
14711 while test ! -d "$as_dir"; do
14712 as_dirs
="$as_dir $as_dirs"
14713 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14715 X"$as_dir" : 'X\(//\)[^/]' \| \
14716 X"$as_dir" : 'X\(//\)$' \| \
14717 X"$as_dir" : 'X\(/\)' \| \
14718 . : '\(.\)' 2>/dev/null ||
14720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14722 /^X\(\/\/\)$/{ s//\1/; q; }
14723 /^X\(\/\).*/{ s//\1/; q; }
14726 test ! -n "$as_dirs" || mkdir
$as_dirs
14727 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14728 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14729 { (exit 1); exit 1; }; }; }
14731 # echo "creating $dirpart/$file"
14732 echo '# dummy' > "$dirpart/$file"
14738 # See if we are running on zsh, and set the options which allow our
14739 # commands through without removal of \ escapes.
14740 if test -n "${ZSH_VERSION+set}" ; then
14741 setopt NO_GLOB_SUBST
14744 cfgfile
="${ofile}T"
14745 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14748 cat <<_LT_EOF >> "$cfgfile"
14751 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14752 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14753 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14754 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14756 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14757 # 2006, 2007 Free Software Foundation, Inc.
14759 # This file is part of GNU Libtool:
14760 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14762 # This program is free software; you can redistribute it and/or modify
14763 # it under the terms of the GNU General Public License as published by
14764 # the Free Software Foundation; either version 2 of the License, or
14765 # (at your option) any later version.
14767 # This program is distributed in the hope that it will be useful, but
14768 # WITHOUT ANY WARRANTY; without even the implied warranty of
14769 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14770 # General Public License for more details.
14772 # You should have received a copy of the GNU General Public License
14773 # along with this program; if not, a copy can be downloaded from
14774 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14775 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14776 # MA 02110-1301, USA.
14778 # As a special exception to the GNU General Public License, if you
14779 # distribute this file as part of a program that contains a
14780 # configuration script generated by Autoconf, you may include it under
14781 # the same distribution terms that you use for the rest of that program.
14784 # The names of the tagged configurations supported by this script.
14787 # ### BEGIN LIBTOOL CONFIG
14789 # Which release of libtool.m4 was used?
14790 macro_version=$macro_version
14791 macro_revision=$macro_revision
14793 # Whether or not to build shared libraries.
14794 build_libtool_libs=$enable_shared
14796 # Whether or not to build static libraries.
14797 build_old_libs=$enable_static
14799 # What type of objects to build.
14802 # Whether or not to optimize for fast installation.
14803 fast_install=$enable_fast_install
14806 host_alias=$host_alias
14810 # The build system.
14811 build_alias=$build_alias
14815 # A sed program that does not truncate output.
14818 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14819 Xsed="\$SED -e 1s/^X//"
14821 # A grep program that handles long lines.
14827 # A literal string matcher.
14830 # A BSD- or MS-compatible name lister.
14833 # Whether we need soft or hard links.
14836 # What is the maximum length of a command?
14837 max_cmd_len=$max_cmd_len
14839 # Object file suffix (normally "o").
14842 # Executable file suffix (normally "").
14845 # whether the shell understands "unset".
14848 # turn spaces into newlines.
14851 # turn newlines into spaces.
14854 # How to create reloadable object files.
14855 reload_flag=$lt_reload_flag
14856 reload_cmds=$lt_reload_cmds
14858 # Method to check whether dependent libraries are shared objects.
14859 deplibs_check_method=$lt_deplibs_check_method
14861 # Command to use when deplibs_check_method == "file_magic".
14862 file_magic_cmd=$lt_file_magic_cmd
14866 AR_FLAGS=$lt_AR_FLAGS
14868 # A symbol stripping program.
14871 # Commands used to install an old-style archive.
14873 old_postinstall_cmds=$lt_old_postinstall_cmds
14874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14879 # LTCC compiler flags.
14880 LTCFLAGS=$lt_CFLAGS
14882 # Take the output of nm and produce a listing of raw symbols and C names.
14883 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14885 # Transform the output of nm in a proper C declaration.
14886 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14888 # Transform the output of nm in a C name address pair.
14889 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14891 # The name of the directory that contains temporary libtool files.
14894 # Shell to use when invoking shell scripts.
14897 # An echo program that does not interpret backslashes.
14900 # Used to examine libraries when file_magic_cmd begins with "file".
14901 MAGIC_CMD=$MAGIC_CMD
14903 # Must we lock files when doing compilation?
14904 need_locks=$lt_need_locks
14906 # Old archive suffix (normally "a").
14909 # Shared library suffix (normally ".so").
14910 shrext_cmds=$lt_shrext_cmds
14912 # The commands to extract the exported symbol list from a shared archive.
14913 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14915 # Variables whose values should be saved in libtool wrapper scripts and
14916 # restored at link time.
14917 variables_saved_for_relink=$lt_variables_saved_for_relink
14919 # Do we need the "lib" prefix for modules?
14920 need_lib_prefix=$need_lib_prefix
14922 # Do we need a version for libraries?
14923 need_version=$need_version
14925 # Library versioning type.
14926 version_type=$version_type
14928 # Shared library runtime path variable.
14929 runpath_var=$runpath_var
14931 # Shared library path variable.
14932 shlibpath_var=$shlibpath_var
14934 # Is shlibpath searched before the hard-coded library search path?
14935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14937 # Format of library name prefix.
14938 libname_spec=$lt_libname_spec
14940 # List of archive names. First name is the real one, the rest are links.
14941 # The last name is the one that the linker finds with -lNAME
14942 library_names_spec=$lt_library_names_spec
14944 # The coded name of the library, if different from the real name.
14945 soname_spec=$lt_soname_spec
14947 # Command to use after installation of a shared archive.
14948 postinstall_cmds=$lt_postinstall_cmds
14950 # Command to use after uninstallation of a shared archive.
14951 postuninstall_cmds=$lt_postuninstall_cmds
14953 # Commands used to finish a libtool library installation in a directory.
14954 finish_cmds=$lt_finish_cmds
14956 # As "finish_cmds", except a single script fragment to be evaled but
14958 finish_eval=$lt_finish_eval
14960 # Whether we should hardcode library paths into libraries.
14961 hardcode_into_libs=$hardcode_into_libs
14963 # Compile-time system search path for libraries.
14964 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14966 # Run-time system search path for libraries.
14967 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14969 # Whether dlopen is supported.
14970 dlopen_support=$enable_dlopen
14972 # Whether dlopen of programs is supported.
14973 dlopen_self=$enable_dlopen_self
14975 # Whether dlopen of statically linked programs is supported.
14976 dlopen_self_static=$enable_dlopen_self_static
14978 # Commands to strip libraries.
14979 old_striplib=$lt_old_striplib
14980 striplib=$lt_striplib
14983 # The linker used to build libraries.
14986 # Commands used to build an old-style archive.
14987 old_archive_cmds=$lt_old_archive_cmds
14989 # A language specific compiler.
14992 # Is the compiler the GNU compiler?
14995 # Compiler flag to turn off builtin functions.
14996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14998 # How to pass a linker flag through the compiler.
14999 wl=$lt_lt_prog_compiler_wl
15001 # Additional compiler flags for building library objects.
15002 pic_flag=$lt_lt_prog_compiler_pic
15004 # Compiler flag to prevent dynamic linking.
15005 link_static_flag=$lt_lt_prog_compiler_static
15007 # Does compiler simultaneously support -c and -o options?
15008 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15010 # Whether or not to add -lc for building shared libraries.
15011 build_libtool_need_lc=$archive_cmds_need_lc
15013 # Whether or not to disallow shared libs when runtime libs are static.
15014 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15016 # Compiler flag to allow reflexive dlopens.
15017 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15019 # Compiler flag to generate shared objects directly from archives.
15020 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15022 # Whether the compiler copes with passing no objects directly.
15023 compiler_needs_object=$lt_compiler_needs_object
15025 # Create an old-style archive from a shared archive.
15026 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15028 # Create a temporary old-style archive to link instead of a shared archive.
15029 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15031 # Commands used to build a shared archive.
15032 archive_cmds=$lt_archive_cmds
15033 archive_expsym_cmds=$lt_archive_expsym_cmds
15035 # Commands used to build a loadable module if different from building
15036 # a shared archive.
15037 module_cmds=$lt_module_cmds
15038 module_expsym_cmds=$lt_module_expsym_cmds
15040 # Whether we are building with GNU ld or not.
15041 with_gnu_ld=$lt_with_gnu_ld
15043 # Flag that allows shared libraries with undefined symbols to be built.
15044 allow_undefined_flag=$lt_allow_undefined_flag
15046 # Flag that enforces no undefined symbols.
15047 no_undefined_flag=$lt_no_undefined_flag
15049 # Flag to hardcode \$libdir into a binary during linking.
15050 # This must work even if \$libdir does not exist
15051 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15053 # If ld is used when linking, flag to hardcode \$libdir into a binary
15054 # during linking. This must work even if \$libdir does not exist.
15055 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15057 # Whether we need a single "-rpath" flag with a separated argument.
15058 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15060 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15061 # DIR into the resulting binary.
15062 hardcode_direct=$hardcode_direct
15064 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15065 # DIR into the resulting binary and the resulting library dependency is
15066 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15067 # library is relocated.
15068 hardcode_direct_absolute=$hardcode_direct_absolute
15070 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15071 # into the resulting binary.
15072 hardcode_minus_L=$hardcode_minus_L
15074 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15075 # into the resulting binary.
15076 hardcode_shlibpath_var=$hardcode_shlibpath_var
15078 # Set to "yes" if building a shared library automatically hardcodes DIR
15079 # into the library and all subsequent libraries and executables linked
15081 hardcode_automatic=$hardcode_automatic
15083 # Set to yes if linker adds runtime paths of dependent libraries
15084 # to runtime path list.
15085 inherit_rpath=$inherit_rpath
15087 # Whether libtool must link a program against all its dependency libraries.
15088 link_all_deplibs=$link_all_deplibs
15090 # Fix the shell variable \$srcfile for the compiler.
15091 fix_srcfile_path=$lt_fix_srcfile_path
15093 # Set to "yes" if exported symbols are required.
15094 always_export_symbols=$always_export_symbols
15096 # The commands to list exported symbols.
15097 export_symbols_cmds=$lt_export_symbols_cmds
15099 # Symbols that should not be listed in the preloaded symbols.
15100 exclude_expsyms=$lt_exclude_expsyms
15102 # Symbols that must always be exported.
15103 include_expsyms=$lt_include_expsyms
15105 # Commands necessary for linking programs (against libraries) with templates.
15106 prelink_cmds=$lt_prelink_cmds
15108 # Specify filename containing input files.
15109 file_list_spec=$lt_file_list_spec
15111 # How to hardcode a shared library path into an executable.
15112 hardcode_action=$hardcode_action
15114 # ### END LIBTOOL CONFIG
15120 cat <<\_LT_EOF
>> "$cfgfile"
15121 # AIX sometimes has problems with the GCC collect2 program. For some
15122 # reason, if we set the COLLECT_NAMES environment variable, the problems
15123 # vanish in a puff of smoke.
15124 if test "X${COLLECT_NAMES+set}" != Xset
; then
15126 export COLLECT_NAMES
15133 ltmain
="$ac_aux_dir/ltmain.sh"
15136 # We use sed instead of cat because bash on DJGPP gets confused if
15137 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15138 # text mode, it properly converts lines to CR/LF. This bash problem
15139 # is reportedly fixed, but why not run on old versions too?
15140 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15141 ||
(rm -f "$cfgfile"; exit 1)
15145 cat << \_LT_EOF
>> "$cfgfile"
15146 # func_dirname file append nondir_replacement
15147 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15148 # otherwise set result to NONDIR_REPLACEMENT.
15152 */*) func_dirname_result
="${1%/*}${2}" ;;
15153 * ) func_dirname_result
="${3}" ;;
15157 # func_basename file
15160 func_basename_result
="${1##*/}"
15163 # func_stripname prefix suffix name
15164 # strip PREFIX and SUFFIX off of NAME.
15165 # PREFIX and SUFFIX must not contain globbing or regex special
15166 # characters, hashes, percent signs, but SUFFIX may contain a leading
15167 # dot (in which case that matches only a dot).
15170 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15171 # positional parameters, so assign one to ordinary parameter first.
15172 func_stripname_result
=${3}
15173 func_stripname_result
=${func_stripname_result#"${1}"}
15174 func_stripname_result
=${func_stripname_result%"${2}"}
15180 func_opt_split_opt
=${1%%=*}
15181 func_opt_split_arg
=${1#*=}
15188 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
15189 *) func_lo2o_result
=${1} ;;
15194 *) # Bourne compatible functions.
15195 cat << \_LT_EOF
>> "$cfgfile"
15196 # func_dirname file append nondir_replacement
15197 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15198 # otherwise set result to NONDIR_REPLACEMENT.
15201 # Extract subdirectory from the argument.
15202 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15203 if test "X$func_dirname_result" = "X${1}"; then
15204 func_dirname_result
="${3}"
15206 func_dirname_result
="$func_dirname_result${2}"
15210 # func_basename file
15213 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
15216 # func_stripname prefix suffix name
15217 # strip PREFIX and SUFFIX off of NAME.
15218 # PREFIX and SUFFIX must not contain globbing or regex special
15219 # characters, hashes, percent signs, but SUFFIX may contain a leading
15220 # dot (in which case that matches only a dot).
15221 # func_strip_suffix prefix name
15225 .
*) func_stripname_result
=`$ECHO "X${3}" \
15226 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15227 *) func_stripname_result
=`$ECHO "X${3}" \
15228 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15233 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
15234 my_sed_long_arg
='1s/^-[^=]*=//'
15239 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15240 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15246 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15251 case $lt_shell_append in
15253 cat << \_LT_EOF
>> "$cfgfile"
15255 # func_append var value
15256 # Append VALUE to the end of shell variable VAR.
15264 cat << \_LT_EOF
>> "$cfgfile"
15266 # func_append var value
15267 # Append VALUE to the end of shell variable VAR.
15277 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15278 ||
(rm -f "$cfgfile"; exit 1)
15280 mv -f "$cfgfile" "$ofile" ||
15281 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15285 include
) test -d include || mkdir include
;;
15287 test -d src || mkdir src
15288 test -d src
/$TARGETDIR || mkdir src
/$TARGETDIR
15294 cat >>$CONFIG_STATUS <<\_ACEOF
15296 { (exit 0); exit 0; }
15298 chmod +x
$CONFIG_STATUS
15299 ac_clean_files
=$ac_clean_files_save
15302 # configure is writing to config.log, and then calls config.status.
15303 # config.status does its own redirection, appending to config.log.
15304 # Unfortunately, on DOS this fails, as config.log is still kept open
15305 # by configure, so config.status won't be able to write to it; its
15306 # output is simply discarded. So we exec the FD to /dev/null,
15307 # effectively closing config.log, so it can be properly (re)opened and
15308 # appended to by config.status. When coming back to configure, we
15309 # need to make the FD available again.
15310 if test "$no_create" != yes; then
15312 ac_config_status_args
=
15313 test "$silent" = yes &&
15314 ac_config_status_args
="$ac_config_status_args --quiet"
15316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15319 # would make configure fail if this is the last instruction.
15320 $ac_cs_success ||
{ (exit 1); exit 1; }