2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libffi 3.0.10rc3.
5 # Report bugs to <http://sourceware.org/libffi.html>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='libffi'
747 PACKAGE_TARNAME='libffi'
748 PACKAGE_VERSION='3.0.10rc3'
749 PACKAGE_STRING='libffi 3.0.10rc3'
750 PACKAGE_BUGREPORT='http://sourceware.org/libffi.html'
752 # Factoring default headers for most tests.
753 ac_includes_default="\
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
765 # ifdef HAVE_STDLIB_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
788 ac_subst_vars='am__EXEEXT_FALSE
798 FFI_EXEC_TRAMPOLINE_TABLE
799 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
800 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
801 sys_symbol_underscore
826 POWERPC_FREEBSD_FALSE
863 MAINTAINER_MODE_FALSE
885 am__fastdepCCAS_FALSE
914 INSTALL_STRIP_PROGRAM
968 program_transform_name
980 enable_option_checking
981 enable_dependency_tracking
988 enable_maintainer_mode
994 ac_precious_vars='build_alias
1003 # Initialize some variables set by options.
1005 ac_init_version=false
1006 ac_unrecognized_opts=
1007 ac_unrecognized_sep=
1008 # The variables have the same names as the options, with
1009 # dashes changed to underlines.
1010 cache_file=/dev/null
1017 program_transform_name=s,x,x,
1025 # Installation directory options.
1026 # These are left unexpanded so users can "make install exec_prefix=/foo"
1027 # and all the variables that are supposed to be based on exec_prefix
1028 # by default will actually change.
1029 # Use braces instead of parens because sh, perl, etc. also accept them.
1030 # (The list follows the same order as the GNU Coding Standards.)
1031 bindir='${exec_prefix}/bin'
1032 sbindir='${exec_prefix}/sbin'
1033 libexecdir='${exec_prefix}/libexec'
1034 datarootdir='${prefix}/share'
1035 datadir='${datarootdir}'
1036 sysconfdir='${prefix}/etc'
1037 sharedstatedir='${prefix}/com'
1038 localstatedir='${prefix}/var'
1039 includedir='${prefix}/include'
1040 oldincludedir='/usr/include'
1041 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1042 infodir='${datarootdir}/info'
1047 libdir='${exec_prefix}/lib'
1048 localedir='${datarootdir}/locale'
1049 mandir='${datarootdir}/man'
1055 # If the previous option needs an argument, assign it.
1056 if test -n "$ac_prev"; then
1057 eval $ac_prev=\$ac_option
1063 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067 # Accept the important Cygnus configure options, so we can diagnose typos.
1069 case $ac_dashdash$ac_option in
1073 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076 bindir=$ac_optarg ;;
1078 -build | --build | --buil | --bui | --bu)
1079 ac_prev=build_alias ;;
1080 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081 build_alias=$ac_optarg ;;
1083 -cache-file | --cache-file | --cache-fil | --cache-fi \
1084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085 ac_prev=cache_file ;;
1086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088 cache_file=$ac_optarg ;;
1090 --config-cache | -C)
1091 cache_file=config.cache ;;
1093 -datadir | --datadir | --datadi | --datad)
1095 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096 datadir=$ac_optarg ;;
1098 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099 | --dataroo | --dataro | --datar)
1100 ac_prev=datarootdir ;;
1101 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103 datarootdir=$ac_optarg ;;
1105 -disable-* | --disable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "enable_$ac_useropt"
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval enable_$ac_useropt=no ;;
1122 -docdir | --docdir | --docdi | --doc | --do)
1124 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125 docdir=$ac_optarg ;;
1127 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1129 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130 dvidir=$ac_optarg ;;
1132 -enable-* | --enable-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1137 { (exit 1); exit 1; }; }
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1142 "enable_$ac_useropt"
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval enable_$ac_useropt=\$ac_optarg ;;
1149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1151 | --exec | --exe | --ex)
1152 ac_prev=exec_prefix ;;
1153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1155 | --exec=* | --exe=* | --ex=*)
1156 exec_prefix=$ac_optarg ;;
1158 -gas | --gas | --ga | --g)
1159 # Obsolete; use --with-gas.
1162 -help | --help | --hel | --he | -h)
1163 ac_init_help=long ;;
1164 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1165 ac_init_help=recursive ;;
1166 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1167 ac_init_help=short ;;
1169 -host | --host | --hos | --ho)
1170 ac_prev=host_alias ;;
1171 -host=* | --host=* | --hos=* | --ho=*)
1172 host_alias=$ac_optarg ;;
1174 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1176 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1178 htmldir=$ac_optarg ;;
1180 -includedir | --includedir | --includedi | --included | --include \
1181 | --includ | --inclu | --incl | --inc)
1182 ac_prev=includedir ;;
1183 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1184 | --includ=* | --inclu=* | --incl=* | --inc=*)
1185 includedir=$ac_optarg ;;
1187 -infodir | --infodir | --infodi | --infod | --info | --inf)
1189 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1190 infodir=$ac_optarg ;;
1192 -libdir | --libdir | --libdi | --libd)
1194 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1195 libdir=$ac_optarg ;;
1197 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1198 | --libexe | --libex | --libe)
1199 ac_prev=libexecdir ;;
1200 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1201 | --libexe=* | --libex=* | --libe=*)
1202 libexecdir=$ac_optarg ;;
1204 -localedir | --localedir | --localedi | --localed | --locale)
1205 ac_prev=localedir ;;
1206 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1207 localedir=$ac_optarg ;;
1209 -localstatedir | --localstatedir | --localstatedi | --localstated \
1210 | --localstate | --localstat | --localsta | --localst | --locals)
1211 ac_prev=localstatedir ;;
1212 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1213 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1214 localstatedir=$ac_optarg ;;
1216 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1218 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1219 mandir=$ac_optarg ;;
1221 -nfp | --nfp | --nf)
1222 # Obsolete; use --without-fp.
1225 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1226 | --no-cr | --no-c | -n)
1229 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1230 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1233 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1234 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1235 | --oldin | --oldi | --old | --ol | --o)
1236 ac_prev=oldincludedir ;;
1237 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1238 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1239 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1240 oldincludedir=$ac_optarg ;;
1242 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1244 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1245 prefix=$ac_optarg ;;
1247 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1248 | --program-pre | --program-pr | --program-p)
1249 ac_prev=program_prefix ;;
1250 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1251 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1252 program_prefix=$ac_optarg ;;
1254 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1255 | --program-suf | --program-su | --program-s)
1256 ac_prev=program_suffix ;;
1257 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1258 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1259 program_suffix=$ac_optarg ;;
1261 -program-transform-name | --program-transform-name \
1262 | --program-transform-nam | --program-transform-na \
1263 | --program-transform-n | --program-transform- \
1264 | --program-transform | --program-transfor \
1265 | --program-transfo | --program-transf \
1266 | --program-trans | --program-tran \
1267 | --progr-tra | --program-tr | --program-t)
1268 ac_prev=program_transform_name ;;
1269 -program-transform-name=* | --program-transform-name=* \
1270 | --program-transform-nam=* | --program-transform-na=* \
1271 | --program-transform-n=* | --program-transform-=* \
1272 | --program-transform=* | --program-transfor=* \
1273 | --program-transfo=* | --program-transf=* \
1274 | --program-trans=* | --program-tran=* \
1275 | --progr-tra=* | --program-tr=* | --program-t=*)
1276 program_transform_name=$ac_optarg ;;
1278 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1280 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1281 pdfdir=$ac_optarg ;;
1283 -psdir | --psdir | --psdi | --psd | --ps)
1285 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289 | -silent | --silent | --silen | --sile | --sil)
1292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1296 sbindir=$ac_optarg ;;
1298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1300 | --sharedst | --shareds | --shared | --share | --shar \
1302 ac_prev=sharedstatedir ;;
1303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1307 sharedstatedir=$ac_optarg ;;
1309 -site | --site | --sit)
1311 -site=* | --site=* | --sit=*)
1314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1317 srcdir=$ac_optarg ;;
1319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1320 | --syscon | --sysco | --sysc | --sys | --sy)
1321 ac_prev=sysconfdir ;;
1322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1324 sysconfdir=$ac_optarg ;;
1326 -target | --target | --targe | --targ | --tar | --ta | --t)
1327 ac_prev=target_alias ;;
1328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1329 target_alias=$ac_optarg ;;
1331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1334 -version | --version | --versio | --versi | --vers | -V)
1335 ac_init_version=: ;;
1338 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1342 { (exit 1); exit 1; }; }
1343 ac_useropt_orig=$ac_useropt
1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1352 eval with_$ac_useropt=\$ac_optarg ;;
1354 -without-* | --without-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1359 { (exit 1); exit 1; }; }
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1369 eval with_$ac_useropt=no ;;
1372 # Obsolete; use --with-x.
1375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1376 | --x-incl | --x-inc | --x-in | --x-i)
1377 ac_prev=x_includes ;;
1378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1380 x_includes=$ac_optarg ;;
1382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1384 ac_prev=x_libraries ;;
1385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1387 x_libraries=$ac_optarg ;;
1389 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1390 Try \`$0 --help' for more information." >&2
1391 { (exit 1); exit 1; }; }
1395 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1398 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1399 { (exit 1); exit 1; }; }
1400 eval $ac_envvar=\$ac_optarg
1401 export $ac_envvar ;;
1404 # FIXME: should be removed in autoconf 3.0.
1405 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1406 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1407 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1408 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1414 if test -n "$ac_prev"; then
1415 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1416 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1417 { (exit 1); exit 1; }; }
1420 if test -n "$ac_unrecognized_opts"; then
1421 case $enable_option_checking in
1423 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1424 { (exit 1); exit 1; }; } ;;
1425 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429 # Check all directory arguments for consistency.
1430 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431 datadir sysconfdir sharedstatedir localstatedir includedir \
1432 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433 libdir localedir mandir
1435 eval ac_val=\$$ac_var
1436 # Remove trailing slashes.
1439 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440 eval $ac_var=\$ac_val;;
1442 # Be sure to have absolute directory names.
1444 [\\/$]* | ?:[\\/]* ) continue;;
1445 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1447 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1448 { (exit 1); exit 1; }; }
1451 # There might be people who depend on the old broken behavior: `$host'
1452 # used to hold the argument of --host etc.
1453 # FIXME: To remove some day.
1456 target=$target_alias
1458 # FIXME: To remove some day.
1459 if test "x$host_alias" != x; then
1460 if test "x$build_alias" = x; then
1461 cross_compiling=maybe
1462 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1463 If a cross compiler is detected then cross compile mode will be used." >&2
1464 elif test "x$build_alias" != "x$host_alias"; then
1470 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1472 test "$silent" = yes && exec 6>/dev/null
1475 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di=`ls -di .` &&
1477 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1479 { (exit 1); exit 1; }; }
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1482 { (exit 1); exit 1; }; }
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487 ac_srcdir_defaulted=yes
1488 # Try the directory containing this script, then the parent directory.
1489 ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491 X"$as_myself" : 'X\(//\)[^/]' \| \
1492 X"$as_myself" : 'X\(//\)$' \| \
1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1517 ac_srcdir_defaulted=no
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1522 { (exit 1); exit 1; }; }
1524 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1526 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1527 { (exit 1); exit 1; }; }
1529 # When building in place, set srcdir=.
1530 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533 # Remove unnecessary trailing slashes from srcdir.
1534 # Double slashes in file names in object file debugging info
1535 # mess up M-x gdb in Emacs.
1537 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1539 for ac_var in $ac_precious_vars; do
1540 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_env_${ac_var}_value=\$${ac_var}
1542 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1547 # Report the --help message.
1549 if test "$ac_init_help" = "long"; then
1550 # Omit some internal or obsolete options to make the list less imposing.
1551 # This message is too long to be a string in the A/UX 3.1 sh.
1553 \`configure' configures libffi 3.0.10rc3 to adapt to many kinds of systems.
1555 Usage: $0 [OPTION]... [VAR=VALUE]...
1557 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1558 VAR=VALUE. See below for descriptions of some of the useful variables.
1560 Defaults for the options are specified in brackets.
1563 -h, --help display this help and exit
1564 --help=short display options specific to this package
1565 --help=recursive display the short help of all the included packages
1566 -V, --version display version information and exit
1567 -q, --quiet, --silent do not print \`checking...' messages
1568 --cache-file=FILE cache test results in FILE [disabled]
1569 -C, --config-cache alias for \`--cache-file=config.cache'
1570 -n, --no-create do not create output files
1571 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1573 Installation directories:
1574 --prefix=PREFIX install architecture-independent files in PREFIX
1575 [$ac_default_prefix]
1576 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1579 By default, \`make install' will install all the files in
1580 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1581 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1582 for instance \`--prefix=\$HOME'.
1584 For better control, use the options below.
1586 Fine tuning of the installation directories:
1587 --bindir=DIR user executables [EPREFIX/bin]
1588 --sbindir=DIR system admin executables [EPREFIX/sbin]
1589 --libexecdir=DIR program executables [EPREFIX/libexec]
1590 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1591 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1592 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1593 --libdir=DIR object code libraries [EPREFIX/lib]
1594 --includedir=DIR C header files [PREFIX/include]
1595 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1596 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1597 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1598 --infodir=DIR info documentation [DATAROOTDIR/info]
1599 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1600 --mandir=DIR man documentation [DATAROOTDIR/man]
1601 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1602 --htmldir=DIR html documentation [DOCDIR]
1603 --dvidir=DIR dvi documentation [DOCDIR]
1604 --pdfdir=DIR pdf documentation [DOCDIR]
1605 --psdir=DIR ps documentation [DOCDIR]
1611 --program-prefix=PREFIX prepend PREFIX to installed program names
1612 --program-suffix=SUFFIX append SUFFIX to installed program names
1613 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1616 --build=BUILD configure for building on BUILD [guessed]
1617 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1618 --target=TARGET configure for building compilers for TARGET [HOST]
1622 if test -n "$ac_init_help"; then
1623 case $ac_init_help in
1624 short | recursive ) echo "Configuration of libffi 3.0.10rc3:";;
1629 --disable-option-checking ignore unrecognized --enable/--with options
1630 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1631 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1632 --disable-dependency-tracking speeds up one-time build
1633 --enable-dependency-tracking do not reject slow dependency extractors
1634 --enable-shared[=PKGS] build shared libraries [default=yes]
1635 --enable-static[=PKGS] build static libraries [default=yes]
1636 --enable-fast-install[=PKGS]
1637 optimize for fast installation [default=yes]
1638 --disable-libtool-lock avoid locking (might break parallel builds)
1639 --enable-maintainer-mode enable make rules and dependencies not useful
1640 (and sometimes confusing) to the casual installer
1641 --enable-debug debugging mode
1642 --disable-structs omit code for struct support
1643 --disable-raw-api make the raw api unavailable
1644 --enable-purify-safety purify-safe mode
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-pic try to use only PIC/non-PIC objects [default=use
1651 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1653 Some influential environment variables:
1654 CC C compiler command
1655 CFLAGS C compiler flags
1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1657 nonstandard directory <lib dir>
1658 LIBS libraries to pass to the linker, e.g. -l<library>
1659 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1660 you have headers in a nonstandard directory <include dir>
1661 CCAS assembler compiler command (defaults to CC)
1662 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1665 Use these variables to override the choices made by `configure' or to help
1666 it to find libraries and programs with nonstandard names/locations.
1668 Report bugs to <http://sourceware.org/libffi.html>.
1673 if test "$ac_init_help" = "recursive"; then
1674 # If there are subdirs, report their specific --help.
1675 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1676 test -d "$ac_dir" ||
1677 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1685 # A ".." for each directory in $ac_dir_suffix.
1686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1687 case $ac_top_builddir_sub in
1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692 ac_abs_top_builddir=$ac_pwd
1693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1694 # for backward compatibility:
1695 ac_top_builddir=$ac_top_build_prefix
1698 .) # We are building in place.
1700 ac_top_srcdir=$ac_top_builddir_sub
1701 ac_abs_top_srcdir=$ac_pwd ;;
1702 [\\/]* | ?:[\\/]* ) # Absolute name.
1703 ac_srcdir=$srcdir$ac_dir_suffix;
1704 ac_top_srcdir=$srcdir
1705 ac_abs_top_srcdir=$srcdir ;;
1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1708 ac_top_srcdir=$ac_top_build_prefix$srcdir
1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1713 cd "$ac_dir" || { ac_status=$?; continue; }
1714 # Check for guested configure.
1715 if test -f "$ac_srcdir/configure.gnu"; then
1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1718 elif test -f "$ac_srcdir/configure"; then
1720 $SHELL "$ac_srcdir/configure" --help=recursive
1722 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1724 cd "$ac_pwd" || { ac_status=$?; break; }
1728 test -n "$ac_init_help" && exit $ac_status
1729 if $ac_init_version; then
1731 libffi configure 3.0.10rc3
1732 generated by GNU Autoconf 2.63
1734 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1735 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1736 This configure script is free software; the Free Software Foundation
1737 gives unlimited permission to copy, distribute and modify it.
1741 cat >config.log <<_ACEOF
1742 This file contains any messages produced by compilers while
1743 running configure, to aid debugging if configure makes a mistake.
1745 It was created by libffi $as_me 3.0.10rc3, which was
1746 generated by GNU Autoconf 2.63. Invocation command line was
1758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1759 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1760 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1761 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1762 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1765 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1767 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1768 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1770 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1771 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1772 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1773 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 test -z "$as_dir" && as_dir=.
1782 $as_echo "PATH: $as_dir"
1798 # Keep a trace of the command line.
1799 # Strip out --no-create and --no-recursion so they do not pile up.
1800 # Strip out --silent because we don't want to record it for future runs.
1801 # Also quote any args containing shell meta-characters.
1802 # Make two passes to allow for proper duplicate-argument suppression.
1806 ac_must_keep_next=false
1812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814 | -silent | --silent | --silen | --sile | --sil)
1817 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1822 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1823 if test $ac_must_keep_next = true; then
1824 ac_must_keep_next=false # Got value, back to normal.
1827 *=* | --config-cache | -C | -disable-* | --disable-* \
1828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830 | -with-* | --with-* | -without-* | --without-* | --x)
1831 case "$ac_configure_args0 " in
1832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 -* ) ac_must_keep_next=true ;;
1838 ac_configure_args="$ac_configure_args '$ac_arg'"
1843 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1844 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1846 # When interrupted or exit'd, cleanup temporary files, and complete
1847 # config.log. We remove comments because anyway the quotes in there
1848 # would cause problems or look ugly.
1849 # WARNING: Use '\'' to represent an apostrophe within the trap.
1850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851 trap 'exit_status=$?
1852 # Save into config.log some information that might help in debugging.
1857 ## ---------------- ##
1858 ## Cache variables. ##
1859 ## ---------------- ##
1862 # The following way of writing the cache mishandles newlines in values,
1864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865 eval ac_val=\$$ac_var
1869 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1870 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 _ | IFS | as_nl) ;; #(
1874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1875 *) $as_unset $ac_var ;;
1880 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881 *${as_nl}ac_space=\ *)
1883 "s/'\''/'\''\\\\'\'''\''/g;
1884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1895 ## ----------------- ##
1896 ## Output variables. ##
1897 ## ----------------- ##
1900 for ac_var in $ac_subst_vars
1902 eval ac_val=\$$ac_var
1904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 $as_echo "$ac_var='\''$ac_val'\''"
1910 if test -n "$ac_subst_files"; then
1912 ## ------------------- ##
1913 ## File substitutions. ##
1914 ## ------------------- ##
1917 for ac_var in $ac_subst_files
1919 eval ac_val=\$$ac_var
1921 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 $as_echo "$ac_var='\''$ac_val'\''"
1928 if test -s confdefs.h; then
1938 test "$ac_signal" != 0 &&
1939 $as_echo "$as_me: caught signal $ac_signal"
1940 $as_echo "$as_me: exit $exit_status"
1942 rm -f core *.core core.conftest.* &&
1943 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946 for ac_signal in 1 2 13 15; do
1947 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1951 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1952 rm -f -r conftest* confdefs.h
1954 # Predefined preprocessor variables.
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_NAME "$PACKAGE_NAME"
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_STRING "$PACKAGE_STRING"
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1981 # Let the site file select an alternate cache file if it wants to.
1982 # Prefer an explicitly selected file to automatically selected ones.
1985 if test -n "$CONFIG_SITE"; then
1986 ac_site_file1=$CONFIG_SITE
1987 elif test "x$prefix" != xNONE; then
1988 ac_site_file1=$prefix/share/config.site
1989 ac_site_file2=$prefix/etc/config.site
1991 ac_site_file1=$ac_default_prefix/share/config.site
1992 ac_site_file2=$ac_default_prefix/etc/config.site
1994 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1996 test "x$ac_site_file" = xNONE && continue
1997 if test -r "$ac_site_file"; then
1998 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1999 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2000 sed 's/^/| /' "$ac_site_file" >&5
2005 if test -r "$cache_file"; then
2006 # Some versions of bash will fail to source /dev/null (special
2007 # files actually), so we avoid doing that.
2008 if test -f "$cache_file"; then
2009 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2010 $as_echo "$as_me: loading cache $cache_file" >&6;}
2012 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013 *) . "./$cache_file";;
2017 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2018 $as_echo "$as_me: creating cache $cache_file" >&6;}
2022 # Check that the precious variables saved in the cache have kept the same
2024 ac_cache_corrupted=false
2025 for ac_var in $ac_precious_vars; do
2026 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2027 eval ac_new_set=\$ac_env_${ac_var}_set
2028 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2029 eval ac_new_val=\$ac_env_${ac_var}_value
2030 case $ac_old_set,$ac_new_set in
2032 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2034 ac_cache_corrupted=: ;;
2036 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2037 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2038 ac_cache_corrupted=: ;;
2041 if test "x$ac_old_val" != "x$ac_new_val"; then
2042 # differences in whitespace do not lead to failure.
2043 ac_old_val_w=`echo x $ac_old_val`
2044 ac_new_val_w=`echo x $ac_new_val`
2045 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2046 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2047 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2048 ac_cache_corrupted=:
2050 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2051 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2052 eval $ac_var=\$ac_old_val
2054 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2055 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2056 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2057 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2060 # Pass precious variables to config.status.
2061 if test "$ac_new_set" = set; then
2063 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2064 *) ac_arg=$ac_var=$ac_new_val ;;
2066 case " $ac_configure_args " in
2067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2068 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2072 if $ac_cache_corrupted; then
2073 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2076 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2077 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2078 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2079 { (exit 1); exit 1; }; }
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 ac_config_headers="$ac_config_headers fficonfig.h"
2117 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2118 if test -f "$ac_dir/install-sh"; then
2120 ac_install_sh="$ac_aux_dir/install-sh -c"
2122 elif test -f "$ac_dir/install.sh"; then
2124 ac_install_sh="$ac_aux_dir/install.sh -c"
2126 elif test -f "$ac_dir/shtool"; then
2128 ac_install_sh="$ac_aux_dir/shtool install -c"
2132 if test -z "$ac_aux_dir"; then
2133 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2134 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2135 { (exit 1); exit 1; }; }
2138 # These three variables are undocumented and unsupported,
2139 # and are intended to be withdrawn in a future Autoconf release.
2140 # They can cause serious problems if a builder's source tree is in a directory
2141 # whose full name contains unusual characters.
2142 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2143 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2144 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2147 # Make sure we can run config.sub.
2148 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2149 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2150 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2151 { (exit 1); exit 1; }; }
2153 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2154 $as_echo_n "checking build system type... " >&6; }
2155 if test "${ac_cv_build+set}" = set; then
2156 $as_echo_n "(cached) " >&6
2158 ac_build_alias=$build_alias
2159 test "x$ac_build_alias" = x &&
2160 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2161 test "x$ac_build_alias" = x &&
2162 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2163 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2164 { (exit 1); exit 1; }; }
2165 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2166 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2167 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2168 { (exit 1); exit 1; }; }
2171 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2172 $as_echo "$ac_cv_build" >&6; }
2173 case $ac_cv_build in
2175 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2176 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2177 { (exit 1); exit 1; }; };;
2180 ac_save_IFS=$IFS; IFS='-'
2186 # Remember, the first character of IFS is used to create $*,
2187 # except with old shells:
2190 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2193 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2194 $as_echo_n "checking host system type... " >&6; }
2195 if test "${ac_cv_host+set}" = set; then
2196 $as_echo_n "(cached) " >&6
2198 if test "x$host_alias" = x; then
2199 ac_cv_host=$ac_cv_build
2201 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2202 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2203 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2204 { (exit 1); exit 1; }; }
2208 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2209 $as_echo "$ac_cv_host" >&6; }
2212 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2213 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2214 { (exit 1); exit 1; }; };;
2217 ac_save_IFS=$IFS; IFS='-'
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2230 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2231 $as_echo_n "checking target system type... " >&6; }
2232 if test "${ac_cv_target+set}" = set; then
2233 $as_echo_n "(cached) " >&6
2235 if test "x$target_alias" = x; then
2236 ac_cv_target=$ac_cv_host
2238 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2239 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2240 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2241 { (exit 1); exit 1; }; }
2245 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2246 $as_echo "$ac_cv_target" >&6; }
2247 case $ac_cv_target in
2249 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2250 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2251 { (exit 1); exit 1; }; };;
2253 target=$ac_cv_target
2254 ac_save_IFS=$IFS; IFS='-'
2260 # Remember, the first character of IFS is used to create $*,
2261 # except with old shells:
2264 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2267 # The aliases save the names the user supplied, while $host etc.
2268 # will get canonicalized.
2269 test -n "$target_alias" &&
2270 test "$program_prefix$program_suffix$program_transform_name" = \
2272 program_prefix=${target_alias}-
2273 target_alias=${target_alias-$host_alias}
2275 . ${srcdir}/configure.host
2277 am__api_version='1.11'
2279 # Find a good install program. We prefer a C program (faster),
2280 # so one script is as good as another. But avoid the broken or
2281 # incompatible versions:
2282 # SysV /etc/install, /usr/sbin/install
2283 # SunOS /usr/etc/install
2284 # IRIX /sbin/install
2286 # AmigaOS /C/install, which installs bootblocks on floppy discs
2287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2290 # OS/2's system install, which has a completely different semantic
2291 # ./install, which can be erroneously created by make from ./install.sh.
2292 # Reject install programs that cannot install multiple files.
2293 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2294 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2295 if test -z "$INSTALL"; then
2296 if test "${ac_cv_path_install+set}" = set; then
2297 $as_echo_n "(cached) " >&6
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir=.
2304 # Account for people who put trailing slashes in PATH elements.
2306 ./ | .// | /cC/* | \
2307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2311 # OSF1 and SCO ODT 3.0 have their own names for install.
2312 # Don't use installbsd from OSF since it installs stuff as root
2314 for ac_prog in ginstall scoinst install; do
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2317 if test $ac_prog = install &&
2318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2319 # AIX install. It has an incompatible calling convention.
2321 elif test $ac_prog = install &&
2322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2323 # program-specific install script used by HP pwplus--don't use.
2326 rm -rf conftest.one conftest.two conftest.dir
2327 echo one > conftest.one
2328 echo two > conftest.two
2330 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2331 test -s conftest.one && test -s conftest.two &&
2332 test -s conftest.dir/conftest.one &&
2333 test -s conftest.dir/conftest.two
2335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2348 rm -rf conftest.one conftest.two conftest.dir
2351 if test "${ac_cv_path_install+set}" = set; then
2352 INSTALL=$ac_cv_path_install
2354 # As a last resort, use the slow shell script. Don't cache a
2355 # value for INSTALL within a source directory, because that will
2356 # break other packages using the cache if that directory is
2357 # removed, or if the value is a relative name.
2358 INSTALL=$ac_install_sh
2361 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2362 $as_echo "$INSTALL" >&6; }
2364 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2365 # It thinks the first close brace ends the variable substitution.
2366 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2368 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2370 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2372 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2373 $as_echo_n "checking whether build environment is sane... " >&6; }
2376 echo timestamp > conftest.file
2377 # Reject unsafe characters in $srcdir or the absolute working directory
2378 # name. Accept space and tab only in the latter.
2382 *[\\\"\#\$\&\'\`$am_lf]*)
2383 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2384 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2385 { (exit 1); exit 1; }; };;
2388 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2389 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2390 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2391 { (exit 1); exit 1; }; };;
2394 # Do `set' in a subshell so we don't clobber the current shell's
2395 # arguments. Must try -L first in case configure is actually a
2396 # symlink; some systems play weird games with the mod time of symlinks
2397 # (eg FreeBSD returns the mod time of the symlink's containing
2400 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2401 if test "$*" = "X"; then
2403 set X `ls -t "$srcdir/configure" conftest.file`
2406 if test "$*" != "X $srcdir/configure conftest.file" \
2407 && test "$*" != "X conftest.file $srcdir/configure"; then
2409 # If neither matched, then we have a broken ls. This can happen
2410 # if, for instance, CONFIG_SHELL is bash and it inherits a
2411 # broken ls alias from the environment. This has actually
2412 # happened. Such a system could not be considered "sane".
2413 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2414 alias in your environment" >&5
2415 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2416 alias in your environment" >&2;}
2417 { (exit 1); exit 1; }; }
2420 test "$2" = conftest.file
2426 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2427 Check your system clock" >&5
2428 $as_echo "$as_me: error: newly created file is older than distributed files!
2429 Check your system clock" >&2;}
2430 { (exit 1); exit 1; }; }
2432 { $as_echo "$as_me:$LINENO: result: yes" >&5
2433 $as_echo "yes" >&6; }
2434 test "$program_prefix" != NONE &&
2435 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2436 # Use a double $ so make ignores it.
2437 test "$program_suffix" != NONE &&
2438 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2439 # Double any \ or $.
2440 # By default was `s,x,x', remove it if useless.
2441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444 # expand $ac_aux_dir to an absolute path
2445 am_aux_dir=`cd $ac_aux_dir && pwd`
2447 if test x"${MISSING+set}" != xset; then
2450 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2452 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2455 # Use eval to expand $SHELL
2456 if eval "$MISSING --run true"; then
2457 am_missing_run="$MISSING --run "
2460 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2461 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2464 if test x"${install_sh}" != xset; then
2467 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2469 install_sh="\${SHELL} $am_aux_dir/install-sh"
2473 # Installed binaries are usually stripped using `strip' when the user
2474 # run `make install-strip'. However `strip' might not be the right
2475 # tool to use in cross-compilation environments, therefore Automake
2476 # will honor the `STRIP' environment variable to overrule this program.
2477 if test "$cross_compiling" != no; then
2478 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}strip; ac_word=$2
2481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if test "${ac_cv_prog_STRIP+set}" = set; then
2484 $as_echo_n "(cached) " >&6
2486 if test -n "$STRIP"; then
2487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 STRIP=$ac_cv_prog_STRIP
2507 if test -n "$STRIP"; then
2508 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2509 $as_echo "$STRIP" >&6; }
2511 { $as_echo "$as_me:$LINENO: result: no" >&5
2512 $as_echo "no" >&6; }
2517 if test -z "$ac_cv_prog_STRIP"; then
2519 # Extract the first word of "strip", so it can be a program name with args.
2520 set dummy strip; ac_word=$2
2521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2524 $as_echo_n "(cached) " >&6
2526 if test -n "$ac_ct_STRIP"; then
2527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_ac_ct_STRIP="strip"
2537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2547 if test -n "$ac_ct_STRIP"; then
2548 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2549 $as_echo "$ac_ct_STRIP" >&6; }
2551 { $as_echo "$as_me:$LINENO: result: no" >&5
2552 $as_echo "no" >&6; }
2555 if test "x$ac_ct_STRIP" = x; then
2558 case $cross_compiling:$ac_tool_warned in
2560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2567 STRIP="$ac_cv_prog_STRIP"
2571 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2573 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2574 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2575 if test -z "$MKDIR_P"; then
2576 if test "${ac_cv_path_mkdir+set}" = set; then
2577 $as_echo_n "(cached) " >&6
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in mkdir gmkdir; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2587 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2588 'mkdir (GNU coreutils) '* | \
2589 'mkdir (coreutils) '* | \
2590 'mkdir (fileutils) '4.1*)
2591 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2601 if test "${ac_cv_path_mkdir+set}" = set; then
2602 MKDIR_P="$ac_cv_path_mkdir -p"
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for MKDIR_P within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 test -d ./--version && rmdir ./--version
2609 MKDIR_P="$ac_install_sh -d"
2612 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2613 $as_echo "$MKDIR_P" >&6; }
2617 [\\/$]* | ?:[\\/]*) ;;
2618 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2621 for ac_prog in gawk mawk nawk awk
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if test "${ac_cv_prog_AWK+set}" = set; then
2628 $as_echo_n "(cached) " >&6
2630 if test -n "$AWK"; then
2631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_AWK="$ac_prog"
2641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 if test -n "$AWK"; then
2652 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2653 $as_echo "$AWK" >&6; }
2655 { $as_echo "$as_me:$LINENO: result: no" >&5
2656 $as_echo "no" >&6; }
2660 test -n "$AWK" && break
2663 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2667 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2668 $as_echo_n "(cached) " >&6
2670 cat >conftest.make <<\_ACEOF
2673 @echo '@@@%%%=$(MAKE)=@@@%%%'
2675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2678 eval ac_cv_prog_make_${ac_make}_set=yes;;
2680 eval ac_cv_prog_make_${ac_make}_set=no;;
2684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2685 { $as_echo "$as_me:$LINENO: result: yes" >&5
2686 $as_echo "yes" >&6; }
2689 { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2691 SET_MAKE="MAKE=${MAKE-make}"
2694 rm -rf .tst 2>/dev/null
2695 mkdir .tst 2>/dev/null
2696 if test -d .tst; then
2701 rmdir .tst 2>/dev/null
2703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2704 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2705 # is not polluted with repeated "-I."
2706 am__isrc=' -I$(srcdir)'
2707 # test to see if srcdir already configured
2708 if test -f $srcdir/config.status; then
2709 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2710 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2711 { (exit 1); exit 1; }; }
2715 # test whether we have cygpath
2716 if test -z "$CYGPATH_W"; then
2717 if (cygpath --version) >/dev/null 2>/dev/null; then
2718 CYGPATH_W='cygpath -w'
2725 # Define the identity of the package.
2730 cat >>confdefs.h <<_ACEOF
2731 #define PACKAGE "$PACKAGE"
2735 cat >>confdefs.h <<_ACEOF
2736 #define VERSION "$VERSION"
2739 # Some tools Automake needs.
2741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2755 # We need awk for the "check" target. The system "awk" is bad on
2757 # Always define AMTAR for backward compatibility.
2759 AMTAR=${AMTAR-"${am_missing_run}tar"}
2761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2768 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2769 # We must force CC to /not/ be precious variables; otherwise
2770 # the wrong, non-multilib-adjusted value will be used in multilibs.
2771 # As a side effect, we have to subst CFLAGS ourselves.
2772 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
2773 # defaults of its own if none are provided.
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_CC+set}" = set; then
2789 $as_echo_n "(cached) " >&6
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2816 { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2822 if test -z "$ac_cv_prog_CC"; then
2824 # Extract the first word of "gcc", so it can be a program name with args.
2825 set dummy gcc; ac_word=$2
2826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CC="gcc"
2842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2856 { $as_echo "$as_me:$LINENO: result: no" >&5
2857 $as_echo "no" >&6; }
2860 if test "x$ac_ct_CC" = x; then
2863 case $cross_compiling:$ac_tool_warned in
2865 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}cc; ac_word=$2
2879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then
2882 $as_echo_n "(cached) " >&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_CC="${ac_tool_prefix}cc"
2895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2909 { $as_echo "$as_me:$LINENO: result: no" >&5
2910 $as_echo "no" >&6; }
2916 if test -z "$CC"; then
2917 # Extract the first word of "cc", so it can be a program name with args.
2918 set dummy cc; ac_word=$2
2919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 $as_echo_n "(cached) " >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936 ac_prog_rejected=yes
2940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 if test $ac_prog_rejected = yes; then
2948 # We found a bogon in the path, so make sure we never use it.
2949 set dummy $ac_cv_prog_CC
2951 if test $# != 0; then
2952 # We chose a different compiler from the bogus one.
2953 # However, it has the same basename, so the bogon will be chosen
2954 # first if we set CC to just the basename; use the full file name.
2956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2966 { $as_echo "$as_me:$LINENO: result: no" >&5
2967 $as_echo "no" >&6; }
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 for ac_prog in cl.exe
2976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if test "${ac_cv_prog_CC+set}" = set; then
2981 $as_echo_n "(cached) " >&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3008 { $as_echo "$as_me:$LINENO: result: no" >&5
3009 $as_echo "no" >&6; }
3013 test -n "$CC" && break
3016 if test -z "$CC"; then
3018 for ac_prog in cl.exe
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_ac_ct_CC="$ac_prog"
3038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3052 { $as_echo "$as_me:$LINENO: result: no" >&5
3053 $as_echo "no" >&6; }
3057 test -n "$ac_ct_CC" && break
3060 if test "x$ac_ct_CC" = x; then
3063 case $cross_compiling:$ac_tool_warned in
3065 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3076 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details." >&5
3080 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3081 See \`config.log' for more details." >&2;}
3082 { (exit 1); exit 1; }; }; }
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3088 { (ac_try="$ac_compiler --version >&5"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_compiler --version >&5") 2>&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }
3099 { (ac_try="$ac_compiler -v >&5"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3105 $as_echo "$ac_try_echo") >&5
3106 (eval "$ac_compiler -v >&5") 2>&5
3108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }
3110 { (ac_try="$ac_compiler -V >&5"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3116 $as_echo "$ac_try_echo") >&5
3117 (eval "$ac_compiler -V >&5") 2>&5
3119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 ac_clean_files_save=$ac_clean_files
3138 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3139 # Try to create an executable without -o first, disregard a.out.
3140 # It will help us diagnose broken compilers, and finding out an intuition
3142 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3143 $as_echo_n "checking for C compiler default output file name... " >&6; }
3144 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3146 # The possible output files:
3147 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3150 for ac_file in $ac_files
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 if { (ac_try="$ac_link_default"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166 (eval "$ac_link_default") 2>&5
3168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; then
3170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3175 for ac_file in $ac_files ''
3177 test -f "$ac_file" || continue
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3182 # We found the default executable, but exeext='' is most
3186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 # We set ac_cv_exeext here because the later test for it is not
3191 # safe: cross compilers may not add the suffix if given an `-o'
3192 # argument, so we may need to know it at that point already.
3193 # Even if this section looks crufty: it has the advantage of
3200 test "$ac_cv_exeext" = no && ac_cv_exeext=
3206 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3207 $as_echo "$ac_file" >&6; }
3208 if test -z "$ac_file"; then
3209 $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3215 See \`config.log' for more details." >&5
3216 $as_echo "$as_me: error: C compiler cannot create executables
3217 See \`config.log' for more details." >&2;}
3218 { (exit 77); exit 77; }; }; }
3221 ac_exeext=$ac_cv_exeext
3223 # Check that the compiler produces executables we can run. If not, either
3224 # the compiler is broken, or we cross compile.
3225 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3226 $as_echo_n "checking whether the C compiler works... " >&6; }
3227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3228 # If not cross compiling, check that we can run a simple program.
3229 if test "$cross_compiling" != yes; then
3230 if { ac_try='./$ac_file'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237 (eval "$ac_try") 2>&5
3239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3243 if test "$cross_compiling" = maybe; then
3246 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3249 If you meant to cross compile, use \`--host'.
3250 See \`config.log' for more details." >&5
3251 $as_echo "$as_me: error: cannot run C compiled programs.
3252 If you meant to cross compile, use \`--host'.
3253 See \`config.log' for more details." >&2;}
3254 { (exit 1); exit 1; }; }; }
3258 { $as_echo "$as_me:$LINENO: result: yes" >&5
3259 $as_echo "yes" >&6; }
3261 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3262 ac_clean_files=$ac_clean_files_save
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3268 $as_echo "$cross_compiling" >&6; }
3270 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3271 $as_echo_n "checking for suffix of executables... " >&6; }
3272 if { (ac_try="$ac_link"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279 (eval "$ac_link") 2>&5
3281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; then
3283 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3284 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3285 # work properly (i.e., refer to `conftest.exe'), while it won't with
3287 for ac_file in conftest.exe conftest conftest.*; do
3288 test -f "$ac_file" || continue
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3300 See \`config.log' for more details." >&5
3301 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details." >&2;}
3303 { (exit 1); exit 1; }; }; }
3306 rm -f conftest$ac_cv_exeext
3307 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3308 $as_echo "$ac_cv_exeext" >&6; }
3310 rm -f conftest.$ac_ext
3311 EXEEXT=$ac_cv_exeext
3313 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3314 $as_echo_n "checking for suffix of object files... " >&6; }
3315 if test "${ac_cv_objext+set}" = set; then
3316 $as_echo_n "(cached) " >&6
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3333 rm -f conftest.o conftest.obj
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340 $as_echo "$ac_try_echo") >&5
3341 (eval "$ac_compile") 2>&5
3343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; then
3345 for ac_file in conftest.o conftest.obj conftest.*; do
3346 test -f "$ac_file" || continue;
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3354 $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3360 See \`config.log' for more details." >&5
3361 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3362 See \`config.log' for more details." >&2;}
3363 { (exit 1); exit 1; }; }; }
3366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3368 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3369 $as_echo "$ac_cv_objext" >&6; }
3370 OBJEXT=$ac_cv_objext
3372 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3373 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3375 $as_echo_n "(cached) " >&6
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3426 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3427 if test $ac_compiler_gnu = yes; then
3432 ac_test_CFLAGS=${CFLAGS+set}
3433 ac_save_CFLAGS=$CFLAGS
3434 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3435 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3436 if test "${ac_cv_prog_cc_g+set}" = set; then
3437 $as_echo_n "(cached) " >&6
3439 ac_save_c_werror_flag=$ac_c_werror_flag
3440 ac_c_werror_flag=yes
3443 cat >conftest.$ac_ext <<_ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3458 rm -f conftest.$ac_objext
3459 if { (ac_try="$ac_compile"
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465 $as_echo "$ac_try_echo") >&5
3466 (eval "$ac_compile") 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && {
3473 test -z "$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 } && test -s conftest.$ac_objext; then
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest.$ac_objext; then
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 ac_c_werror_flag=$ac_save_c_werror_flag
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3544 $as_echo "$ac_try_echo") >&5
3545 (eval "$ac_compile") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } && {
3552 test -z "$ac_c_werror_flag" ||
3553 test ! -s conftest.err
3554 } && test -s conftest.$ac_objext; then
3557 $as_echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3572 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575 CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577 if test "$GCC" = yes; then
3583 if test "$GCC" = yes; then
3589 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if test "${ac_cv_prog_cc_c89+set}" = set; then
3592 $as_echo_n "(cached) " >&6
3594 ac_cv_prog_cc_c89=no
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3604 #include <sys/types.h>
3605 #include <sys/stat.h>
3606 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3607 struct buf { int x; };
3608 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3609 static char *e (p, i)
3615 static char *f (char * (*g) (char **, int), char **p, ...)
3620 s = g (p, va_arg (v,int));
3625 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3626 function prototypes and stuff, but not '\xHH' hex character constants.
3627 These don't provoke an error unfortunately, instead are silently treated
3628 as 'x'. The following induces an error, until -std is added to get
3629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3630 array size at least. It's necessary to write '\x00'==0 to get something
3631 that's true only with -std. */
3632 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3634 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3635 inside strings and character constants. */
3637 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3639 int test (int i, double x);
3640 struct s1 {int (*f) (int a);};
3641 struct s2 {int (*f) (double a);};
3642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3648 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3653 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3654 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3656 CC="$ac_save_CC $ac_arg"
3657 rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664 $as_echo "$ac_try_echo") >&5
3665 (eval "$ac_compile") 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } && {
3672 test -z "$ac_c_werror_flag" ||
3673 test ! -s conftest.err
3674 } && test -s conftest.$ac_objext; then
3675 ac_cv_prog_cc_c89=$ac_arg
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3683 rm -f core conftest.err conftest.$ac_objext
3684 test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 rm -f conftest.$ac_ext
3691 case "x$ac_cv_prog_cc_c89" in
3693 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3694 $as_echo "none needed" >&6; } ;;
3696 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3697 $as_echo "unsupported" >&6; } ;;
3699 CC="$CC $ac_cv_prog_cc_c89"
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3701 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 DEPDIR="${am__leading_dot}deps"
3712 ac_config_commands="$ac_config_commands depfiles"
3715 am_make=${MAKE-make}
3716 cat > confinc << 'END'
3718 @echo this is the am__doit target
3721 # If we don't find an include directive, just comment out the code.
3722 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3723 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3727 # First try GNU make style include.
3728 echo "include confinc" > confmf
3729 # Ignore all kinds of additional output from `make'.
3730 case `$am_make -s -f confmf 2> /dev/null` in #(
3731 *the\ am__doit\ target*)
3737 # Now try BSD make style include.
3738 if test "$am__include" = "#"; then
3739 echo '.include "confinc"' > confmf
3740 case `$am_make -s -f confmf 2> /dev/null` in #(
3741 *the\ am__doit\ target*)
3742 am__include=.include
3750 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3751 $as_echo "$_am_result" >&6; }
3752 rm -f confinc confmf
3754 # Check whether --enable-dependency-tracking was given.
3755 if test "${enable_dependency_tracking+set}" = set; then
3756 enableval=$enable_dependency_tracking;
3759 if test "x$enable_dependency_tracking" != xno; then
3760 am_depcomp="$ac_aux_dir/depcomp"
3763 if test "x$enable_dependency_tracking" != xno; then
3773 depcc="$CC" am_compiler_list=
3775 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3778 $as_echo_n "(cached) " >&6
3780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781 # We make a subdir and do the tests there. Otherwise we can end up
3782 # making bogus files that we don't know about and never remove. For
3783 # instance it was reported that on HP-UX the gcc test will end up
3784 # making a dummy file named `D' -- because `-MD' means `put the output
3787 # Copy depcomp to subdir because otherwise we won't find it if we're
3788 # using a relative directory.
3789 cp "$am_depcomp" conftest.dir
3791 # We will build objects and dependencies in a subdirectory because
3792 # it helps to detect inapplicable dependency modes. For instance
3793 # both Tru64's cc and ICC support -MD to output dependencies as a
3794 # side effect of compilation, but ICC will put the dependencies in
3795 # the current directory while Tru64 will put them in the object
3799 am_cv_CC_dependencies_compiler_type=none
3800 if test "$am_compiler_list" = ""; then
3801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804 case " $depcc " in #(
3805 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3808 for depmode in $am_compiler_list; do
3809 # Setup a source with many dependencies, because some compilers
3810 # like to wrap large dependency lists on column 80 (with \), and
3811 # we should not choose a depcomp mode which is confused by this.
3813 # We need to recreate these files for each test, as the compiler may
3814 # overwrite some of them when testing with obscure command lines.
3815 # This happens at least with the AIX C compiler.
3817 for i in 1 2 3 4 5 6; do
3818 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3820 # Solaris 8's {/usr,}/bin/sh.
3821 touch sub/conftst$i.h
3823 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3825 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3826 # mode. It turns out that the SunPro C++ compiler does not properly
3827 # handle `-M -o', and we need to detect this. Also, some Intel
3828 # versions had trouble with output in subdirs
3829 am__obj=sub/conftest.${OBJEXT-o}
3830 am__minus_obj="-o $am__obj"
3833 # This depmode causes a compiler race in universal mode.
3834 test "$am__universal" = false || continue
3837 # after this tag, mechanisms are not by side-effect, so they'll
3838 # only be used when explicitly requested
3839 if test "x$enable_dependency_tracking" = xyes; then
3845 msvisualcpp | msvcmsys)
3846 # This compiler won't grok `-c -o', but also, the minuso test has
3847 # not run yet. These depmodes are late enough in the game, and
3848 # so weak that their functioning should not be impacted.
3849 am__obj=conftest.${OBJEXT-o}
3854 if depmode=$depmode \
3855 source=sub/conftest.c object=$am__obj \
3856 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3857 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3858 >/dev/null 2>conftest.err &&
3859 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3860 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3861 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3862 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3863 # icc doesn't choke on unknown options, it will just issue warnings
3864 # or remarks (even with -Werror). So we grep stderr for any message
3865 # that says an option was ignored or not supported.
3866 # When given -MP, icc 7.0 and 7.1 complain thusly:
3867 # icc: Command line warning: ignoring option '-M'; no argument required
3868 # The diagnosis changed in icc 8.0:
3869 # icc: Command line remark: option '-MP' not supported
3870 if (grep 'ignoring option' conftest.err ||
3871 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3872 am_cv_CC_dependencies_compiler_type=$depmode
3881 am_cv_CC_dependencies_compiler_type=none
3885 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3886 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3887 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890 test "x$enable_dependency_tracking" != xno \
3891 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893 am__fastdepCC_FALSE='#'
3895 am__fastdepCC_TRUE='#'
3896 am__fastdepCC_FALSE=
3906 # By default we simply use the C compiler to build assembly code.
3908 test "${CCAS+set}" = set || CCAS=$CC
3909 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3913 depcc="$CCAS" am_compiler_list=
3915 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3916 $as_echo_n "checking dependency style of $depcc... " >&6; }
3917 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921 # We make a subdir and do the tests there. Otherwise we can end up
3922 # making bogus files that we don't know about and never remove. For
3923 # instance it was reported that on HP-UX the gcc test will end up
3924 # making a dummy file named `D' -- because `-MD' means `put the output
3927 # Copy depcomp to subdir because otherwise we won't find it if we're
3928 # using a relative directory.
3929 cp "$am_depcomp" conftest.dir
3931 # We will build objects and dependencies in a subdirectory because
3932 # it helps to detect inapplicable dependency modes. For instance
3933 # both Tru64's cc and ICC support -MD to output dependencies as a
3934 # side effect of compilation, but ICC will put the dependencies in
3935 # the current directory while Tru64 will put them in the object
3939 am_cv_CCAS_dependencies_compiler_type=none
3940 if test "$am_compiler_list" = ""; then
3941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3946 for depmode in $am_compiler_list; do
3947 # Setup a source with many dependencies, because some compilers
3948 # like to wrap large dependency lists on column 80 (with \), and
3949 # we should not choose a depcomp mode which is confused by this.
3951 # We need to recreate these files for each test, as the compiler may
3952 # overwrite some of them when testing with obscure command lines.
3953 # This happens at least with the AIX C compiler.
3955 for i in 1 2 3 4 5 6; do
3956 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3957 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3958 # Solaris 8's {/usr,}/bin/sh.
3959 touch sub/conftst$i.h
3961 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3963 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3964 # mode. It turns out that the SunPro C++ compiler does not properly
3965 # handle `-M -o', and we need to detect this. Also, some Intel
3966 # versions had trouble with output in subdirs
3967 am__obj=sub/conftest.${OBJEXT-o}
3968 am__minus_obj="-o $am__obj"
3971 # This depmode causes a compiler race in universal mode.
3972 test "$am__universal" = false || continue
3975 # after this tag, mechanisms are not by side-effect, so they'll
3976 # only be used when explicitly requested
3977 if test "x$enable_dependency_tracking" = xyes; then
3983 msvisualcpp | msvcmsys)
3984 # This compiler won't grok `-c -o', but also, the minuso test has
3985 # not run yet. These depmodes are late enough in the game, and
3986 # so weak that their functioning should not be impacted.
3987 am__obj=conftest.${OBJEXT-o}
3992 if depmode=$depmode \
3993 source=sub/conftest.c object=$am__obj \
3994 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3995 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3996 >/dev/null 2>conftest.err &&
3997 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3998 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3999 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4000 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4001 # icc doesn't choke on unknown options, it will just issue warnings
4002 # or remarks (even with -Werror). So we grep stderr for any message
4003 # that says an option was ignored or not supported.
4004 # When given -MP, icc 7.0 and 7.1 complain thusly:
4005 # icc: Command line warning: ignoring option '-M'; no argument required
4006 # The diagnosis changed in icc 8.0:
4007 # icc: Command line remark: option '-MP' not supported
4008 if (grep 'ignoring option' conftest.err ||
4009 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4010 am_cv_CCAS_dependencies_compiler_type=$depmode
4019 am_cv_CCAS_dependencies_compiler_type=none
4023 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4024 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4025 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4028 test "x$enable_dependency_tracking" != xno \
4029 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4030 am__fastdepCCAS_TRUE=
4031 am__fastdepCCAS_FALSE='#'
4033 am__fastdepCCAS_TRUE='#'
4034 am__fastdepCCAS_FALSE=
4038 if test "x$CC" != xcc; then
4039 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4040 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4042 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4043 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4045 set dummy $CC; ac_cc=`$as_echo "$2" |
4046 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4047 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4048 $as_echo_n "(cached) " >&6
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4065 # Make sure it works both with $CC and with simple cc.
4066 # We do the test twice because some compilers refuse to overwrite an
4067 # existing .o file with -o, though they will create one.
4068 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4070 if { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076 (eval "$ac_try") 2>&5
4078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4085 $as_echo "$ac_try_echo") >&5
4086 (eval "$ac_try") 2>&5
4088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); };
4091 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4092 if test "x$CC" != xcc; then
4093 # Test first that cc exists at all.
4094 if { ac_try='cc -c conftest.$ac_ext >&5'
4095 { (case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100 $as_echo "$ac_try_echo") >&5
4101 (eval "$ac_try") 2>&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4107 if { (case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4112 $as_echo "$ac_try_echo") >&5
4113 (eval "$ac_try") 2>&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122 $as_echo "$ac_try_echo") >&5
4123 (eval "$ac_try") 2>&5
4125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); };
4131 # cc exists but doesn't like -o.
4132 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4137 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4139 rm -f core conftest*
4142 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4143 { $as_echo "$as_me:$LINENO: result: yes" >&5
4144 $as_echo "yes" >&6; }
4146 { $as_echo "$as_me:$LINENO: result: no" >&5
4147 $as_echo "no" >&6; }
4149 cat >>confdefs.h <<\_ACEOF
4150 #define NO_MINUS_C_MINUS_O 1
4155 # FIXME: we rely on the cache variable name because
4156 # there is no other way.
4158 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4159 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4160 if test "$am_t" != yes; then
4161 # Losing compiler, so override with the script.
4162 # FIXME: It is wrong to rewrite CC.
4163 # But if we don't then we get into trouble of one sort or another.
4164 # A longer-term fix would be to have automake use am__CC in this case,
4165 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4166 CC="$am_aux_dir/compile $CC"
4172 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4173 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4178 macro_version='2.2.6b'
4179 macro_revision='1.3017'
4193 ltmain="$ac_aux_dir/ltmain.sh"
4195 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4196 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4197 if test "${ac_cv_path_SED+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4200 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4201 for ac_i in 1 2 3 4 5 6 7; do
4202 ac_script="$ac_script$as_nl$ac_script"
4204 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4205 $as_unset ac_script || ac_script=
4206 if test -z "$SED"; then
4207 ac_path_SED_found=false
4208 # Loop through the user's path and test for each of PROGNAME-LIST
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_prog in sed gsed; do
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4217 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4218 # Check for GNU ac_path_SED and select it if it is found.
4219 # Check for GNU $ac_path_SED
4220 case `"$ac_path_SED" --version 2>&1` in
4222 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4225 $as_echo_n 0123456789 >"conftest.in"
4228 cat "conftest.in" "conftest.in" >"conftest.tmp"
4229 mv "conftest.tmp" "conftest.in"
4230 cp "conftest.in" "conftest.nl"
4231 $as_echo '' >> "conftest.nl"
4232 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234 ac_count=`expr $ac_count + 1`
4235 if test $ac_count -gt ${ac_path_SED_max-0}; then
4236 # Best one so far, save it but keep looking for a better one
4237 ac_cv_path_SED="$ac_path_SED"
4238 ac_path_SED_max=$ac_count
4240 # 10*(2^10) chars as input seems more than enough
4241 test $ac_count -gt 10 && break
4243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246 $ac_path_SED_found && break 3
4251 if test -z "$ac_cv_path_SED"; then
4252 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4253 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4254 { (exit 1); exit 1; }; }
4261 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4262 $as_echo "$ac_cv_path_SED" >&6; }
4263 SED="$ac_cv_path_SED"
4266 test -z "$SED" && SED=sed
4267 Xsed="$SED -e 1s/^X//"
4279 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4280 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4281 if test "${ac_cv_path_GREP+set}" = set; then
4282 $as_echo_n "(cached) " >&6
4284 if test -z "$GREP"; then
4285 ac_path_GREP_found=false
4286 # Loop through the user's path and test for each of PROGNAME-LIST
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4291 test -z "$as_dir" && as_dir=.
4292 for ac_prog in grep ggrep; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4295 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4296 # Check for GNU ac_path_GREP and select it if it is found.
4297 # Check for GNU $ac_path_GREP
4298 case `"$ac_path_GREP" --version 2>&1` in
4300 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4303 $as_echo_n 0123456789 >"conftest.in"
4306 cat "conftest.in" "conftest.in" >"conftest.tmp"
4307 mv "conftest.tmp" "conftest.in"
4308 cp "conftest.in" "conftest.nl"
4309 $as_echo 'GREP' >> "conftest.nl"
4310 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312 ac_count=`expr $ac_count + 1`
4313 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4314 # Best one so far, save it but keep looking for a better one
4315 ac_cv_path_GREP="$ac_path_GREP"
4316 ac_path_GREP_max=$ac_count
4318 # 10*(2^10) chars as input seems more than enough
4319 test $ac_count -gt 10 && break
4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4324 $ac_path_GREP_found && break 3
4329 if test -z "$ac_cv_path_GREP"; then
4330 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4331 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4332 { (exit 1); exit 1; }; }
4335 ac_cv_path_GREP=$GREP
4339 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4340 $as_echo "$ac_cv_path_GREP" >&6; }
4341 GREP="$ac_cv_path_GREP"
4344 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4345 $as_echo_n "checking for egrep... " >&6; }
4346 if test "${ac_cv_path_EGREP+set}" = set; then
4347 $as_echo_n "(cached) " >&6
4349 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4350 then ac_cv_path_EGREP="$GREP -E"
4352 if test -z "$EGREP"; then
4353 ac_path_EGREP_found=false
4354 # Loop through the user's path and test for each of PROGNAME-LIST
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4359 test -z "$as_dir" && as_dir=.
4360 for ac_prog in egrep; do
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4363 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4364 # Check for GNU ac_path_EGREP and select it if it is found.
4365 # Check for GNU $ac_path_EGREP
4366 case `"$ac_path_EGREP" --version 2>&1` in
4368 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4371 $as_echo_n 0123456789 >"conftest.in"
4374 cat "conftest.in" "conftest.in" >"conftest.tmp"
4375 mv "conftest.tmp" "conftest.in"
4376 cp "conftest.in" "conftest.nl"
4377 $as_echo 'EGREP' >> "conftest.nl"
4378 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4380 ac_count=`expr $ac_count + 1`
4381 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4382 # Best one so far, save it but keep looking for a better one
4383 ac_cv_path_EGREP="$ac_path_EGREP"
4384 ac_path_EGREP_max=$ac_count
4386 # 10*(2^10) chars as input seems more than enough
4387 test $ac_count -gt 10 && break
4389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392 $ac_path_EGREP_found && break 3
4397 if test -z "$ac_cv_path_EGREP"; then
4398 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4399 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4400 { (exit 1); exit 1; }; }
4403 ac_cv_path_EGREP=$EGREP
4408 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4409 $as_echo "$ac_cv_path_EGREP" >&6; }
4410 EGREP="$ac_cv_path_EGREP"
4413 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4414 $as_echo_n "checking for fgrep... " >&6; }
4415 if test "${ac_cv_path_FGREP+set}" = set; then
4416 $as_echo_n "(cached) " >&6
4418 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4419 then ac_cv_path_FGREP="$GREP -F"
4421 if test -z "$FGREP"; then
4422 ac_path_FGREP_found=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428 test -z "$as_dir" && as_dir=.
4429 for ac_prog in fgrep; do
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4432 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4433 # Check for GNU ac_path_FGREP and select it if it is found.
4434 # Check for GNU $ac_path_FGREP
4435 case `"$ac_path_FGREP" --version 2>&1` in
4437 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4440 $as_echo_n 0123456789 >"conftest.in"
4443 cat "conftest.in" "conftest.in" >"conftest.tmp"
4444 mv "conftest.tmp" "conftest.in"
4445 cp "conftest.in" "conftest.nl"
4446 $as_echo 'FGREP' >> "conftest.nl"
4447 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449 ac_count=`expr $ac_count + 1`
4450 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4451 # Best one so far, save it but keep looking for a better one
4452 ac_cv_path_FGREP="$ac_path_FGREP"
4453 ac_path_FGREP_max=$ac_count
4455 # 10*(2^10) chars as input seems more than enough
4456 test $ac_count -gt 10 && break
4458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4461 $ac_path_FGREP_found && break 3
4466 if test -z "$ac_cv_path_FGREP"; then
4467 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4468 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4469 { (exit 1); exit 1; }; }
4472 ac_cv_path_FGREP=$FGREP
4477 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4478 $as_echo "$ac_cv_path_FGREP" >&6; }
4479 FGREP="$ac_cv_path_FGREP"
4482 test -z "$GREP" && GREP=grep
4502 # Check whether --with-gnu-ld was given.
4503 if test "${with_gnu_ld+set}" = set; then
4504 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4510 if test "$GCC" = yes; then
4511 # Check if gcc -print-prog-name=ld gives a path.
4512 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4513 $as_echo_n "checking for ld used by $CC... " >&6; }
4516 # gcc leaves a trailing carriage return which upsets mingw
4517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4522 # Accept absolute paths.
4524 re_direlt='/[^/][^/]*/\.\./'
4525 # Canonicalize the pathname of ld
4526 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4527 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4528 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4530 test -z "$LD" && LD="$ac_prog"
4533 # If it fails, then pretend we aren't using GCC.
4537 # If it is relative, then search for the first ld in PATH.
4541 elif test "$with_gnu_ld" = yes; then
4542 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4543 $as_echo_n "checking for GNU ld... " >&6; }
4545 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4546 $as_echo_n "checking for non-GNU ld... " >&6; }
4548 if test "${lt_cv_path_LD+set}" = set; then
4549 $as_echo_n "(cached) " >&6
4551 if test -z "$LD"; then
4552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4553 for ac_dir in $PATH; do
4555 test -z "$ac_dir" && ac_dir=.
4556 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4557 lt_cv_path_LD="$ac_dir/$ac_prog"
4558 # Check to see if the program is GNU ld. I'd rather use --version,
4559 # but apparently some variants of GNU ld only accept -v.
4560 # Break only if it was the GNU/non-GNU ld that we prefer.
4561 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4562 *GNU* | *'with BFD'*)
4563 test "$with_gnu_ld" != no && break
4566 test "$with_gnu_ld" != yes && break
4573 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4578 if test -n "$LD"; then
4579 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4580 $as_echo "$LD" >&6; }
4582 { $as_echo "$as_me:$LINENO: result: no" >&5
4583 $as_echo "no" >&6; }
4585 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4586 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4587 { (exit 1); exit 1; }; }
4588 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4589 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4590 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4591 $as_echo_n "(cached) " >&6
4593 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4594 case `$LD -v 2>&1 </dev/null` in
4595 *GNU* | *'with BFD'*)
4596 lt_cv_prog_gnu_ld=yes
4599 lt_cv_prog_gnu_ld=no
4603 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4604 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4605 with_gnu_ld=$lt_cv_prog_gnu_ld
4615 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4616 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4617 if test "${lt_cv_path_NM+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$NM"; then
4621 # Let the user override the test.
4624 lt_nm_to_check="${ac_tool_prefix}nm"
4625 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4626 lt_nm_to_check="$lt_nm_to_check nm"
4628 for lt_tmp_nm in $lt_nm_to_check; do
4629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4630 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4632 test -z "$ac_dir" && ac_dir=.
4633 tmp_nm="$ac_dir/$lt_tmp_nm"
4634 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4635 # Check to see if the nm accepts a BSD-compat flag.
4636 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4637 # nm: unknown option "B" ignored
4638 # Tru64's nm complains that /dev/null is an invalid object file
4639 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4640 */dev/null* | *'Invalid file or object type'*)
4641 lt_cv_path_NM="$tmp_nm -B"
4645 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4647 lt_cv_path_NM="$tmp_nm -p"
4651 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4652 continue # so that we can try to find one that supports BSD flags
4661 : ${lt_cv_path_NM=no}
4664 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4665 $as_echo "$lt_cv_path_NM" >&6; }
4666 if test "$lt_cv_path_NM" != "no"; then
4669 # Didn't find any BSD compatible name lister, look for dumpbin.
4670 if test -n "$ac_tool_prefix"; then
4671 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4678 $as_echo_n "(cached) " >&6
4680 if test -n "$DUMPBIN"; then
4681 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 DUMPBIN=$ac_cv_prog_DUMPBIN
4701 if test -n "$DUMPBIN"; then
4702 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4703 $as_echo "$DUMPBIN" >&6; }
4705 { $as_echo "$as_me:$LINENO: result: no" >&5
4706 $as_echo "no" >&6; }
4710 test -n "$DUMPBIN" && break
4713 if test -z "$DUMPBIN"; then
4714 ac_ct_DUMPBIN=$DUMPBIN
4715 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4717 # Extract the first word of "$ac_prog", so it can be a program name with args.
4718 set dummy $ac_prog; ac_word=$2
4719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4722 $as_echo_n "(cached) " >&6
4724 if test -n "$ac_ct_DUMPBIN"; then
4725 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4745 if test -n "$ac_ct_DUMPBIN"; then
4746 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4747 $as_echo "$ac_ct_DUMPBIN" >&6; }
4749 { $as_echo "$as_me:$LINENO: result: no" >&5
4750 $as_echo "no" >&6; }
4754 test -n "$ac_ct_DUMPBIN" && break
4757 if test "x$ac_ct_DUMPBIN" = x; then
4760 case $cross_compiling:$ac_tool_warned in
4762 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764 ac_tool_warned=yes ;;
4766 DUMPBIN=$ac_ct_DUMPBIN
4771 if test "$DUMPBIN" != ":"; then
4775 test -z "$NM" && NM=nm
4782 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4783 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4784 if test "${lt_cv_nm_interface+set}" = set; then
4785 $as_echo_n "(cached) " >&6
4787 lt_cv_nm_interface="BSD nm"
4788 echo "int some_variable = 0;" > conftest.$ac_ext
4789 (eval echo "\"\$as_me:4789: $ac_compile\"" >&5)
4790 (eval "$ac_compile" 2>conftest.err)
4791 cat conftest.err >&5
4792 (eval echo "\"\$as_me:4792: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4793 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4794 cat conftest.err >&5
4795 (eval echo "\"\$as_me:4795: output\"" >&5)
4796 cat conftest.out >&5
4797 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4798 lt_cv_nm_interface="MS dumpbin"
4802 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4803 $as_echo "$lt_cv_nm_interface" >&6; }
4805 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4806 $as_echo_n "checking whether ln -s works... " >&6; }
4808 if test "$LN_S" = "ln -s"; then
4809 { $as_echo "$as_me:$LINENO: result: yes" >&5
4810 $as_echo "yes" >&6; }
4812 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4813 $as_echo "no, using $LN_S" >&6; }
4816 # find the maximum length of command line arguments
4817 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4818 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4819 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4820 $as_echo_n "(cached) " >&6
4827 # On DJGPP, this test can blow up pretty badly due to problems in libc
4828 # (any single argument exceeding 2000 bytes causes a buffer overrun
4829 # during glob expansion). Even if it were fixed, the result of this
4830 # check would be larger than it should be.
4831 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4835 # Under GNU Hurd, this test is not required because there is
4836 # no limit to the length of command line arguments.
4837 # Libtool will interpret -1 as no limit whatsoever
4838 lt_cv_sys_max_cmd_len=-1;
4841 cygwin* | mingw* | cegcc*)
4842 # On Win9x/ME, this test blows up -- it succeeds, but takes
4843 # about 5 minutes as the teststring grows exponentially.
4844 # Worse, since 9x/ME are not pre-emptively multitasking,
4845 # you end up with a "frozen" computer, even though with patience
4846 # the test eventually succeeds (with a max line length of 256k).
4847 # Instead, let's just punt: use the minimum linelength reported by
4848 # all of the supported platforms: 8192 (on NT/2K/XP).
4849 lt_cv_sys_max_cmd_len=8192;
4853 # On AmigaOS with pdksh, this test takes hours, literally.
4854 # So we just punt and use a minimum line length of 8192.
4855 lt_cv_sys_max_cmd_len=8192;
4858 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4859 # This has been around since 386BSD, at least. Likely further.
4860 if test -x /sbin/sysctl; then
4861 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4862 elif test -x /usr/sbin/sysctl; then
4863 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4865 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4867 # And add a safety zone
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4873 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4874 lt_cv_sys_max_cmd_len=196608
4878 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4879 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4880 # nice to cause kernel panics so lets avoid the loop below.
4881 # First set a reasonable default.
4882 lt_cv_sys_max_cmd_len=16384
4884 if test -x /sbin/sysconfig; then
4885 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4886 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4891 lt_cv_sys_max_cmd_len=102400
4893 sysv5* | sco5v6* | sysv4.2uw2*)
4894 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4895 if test -n "$kargmax"; then
4896 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4898 lt_cv_sys_max_cmd_len=32768
4902 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4903 if test -n "$lt_cv_sys_max_cmd_len"; then
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4907 # Make teststring a little bigger before we do anything with it.
4908 # a 1K string should be a reasonable start.
4909 for i in 1 2 3 4 5 6 7 8 ; do
4910 teststring=$teststring$teststring
4912 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4913 # If test is not a shell built-in, we'll probably end up computing a
4914 # maximum length that is only half of the actual maximum length, but
4916 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4917 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4918 test $i != 17 # 1/2 MB should be enough
4921 teststring=$teststring$teststring
4923 # Only check the string length outside the loop.
4924 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4926 # Add a significant safety factor because C++ compilers can tack on
4927 # massive amounts of additional arguments before passing them to the
4928 # linker. It appears as though 1/2 is a usable value.
4929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4936 if test -n $lt_cv_sys_max_cmd_len ; then
4937 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4938 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4940 { $as_echo "$as_me:$LINENO: result: none" >&5
4941 $as_echo "none" >&6; }
4943 max_cmd_len=$lt_cv_sys_max_cmd_len
4954 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4955 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4956 # Try some XSI features
4959 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4961 && eval 'test $(( 1 + 1 )) -eq 2 \
4962 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4964 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4965 $as_echo "$xsi_shell" >&6; }
4968 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4969 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4971 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4973 && lt_shell_append=yes
4974 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4975 $as_echo "$lt_shell_append" >&6; }
4978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4988 # test EBCDIC or ASCII
4989 case `echo X|tr X '\101'` in
4990 A) # ASCII based system
4991 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4992 lt_SP2NL='tr \040 \012'
4993 lt_NL2SP='tr \015\012 \040\040'
4995 *) # EBCDIC based system
4996 lt_SP2NL='tr \100 \n'
4997 lt_NL2SP='tr \r\n \100\100'
5009 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5010 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5011 if test "${lt_cv_ld_reload_flag+set}" = set; then
5012 $as_echo_n "(cached) " >&6
5014 lt_cv_ld_reload_flag='-r'
5016 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5017 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5018 reload_flag=$lt_cv_ld_reload_flag
5019 case $reload_flag in
5021 *) reload_flag=" $reload_flag" ;;
5023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5026 if test "$GCC" = yes; then
5027 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5042 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5048 $as_echo_n "(cached) " >&6
5050 if test -n "$OBJDUMP"; then
5051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 OBJDUMP=$ac_cv_prog_OBJDUMP
5071 if test -n "$OBJDUMP"; then
5072 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5073 $as_echo "$OBJDUMP" >&6; }
5075 { $as_echo "$as_me:$LINENO: result: no" >&5
5076 $as_echo "no" >&6; }
5081 if test -z "$ac_cv_prog_OBJDUMP"; then
5082 ac_ct_OBJDUMP=$OBJDUMP
5083 # Extract the first word of "objdump", so it can be a program name with args.
5084 set dummy objdump; ac_word=$2
5085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5088 $as_echo_n "(cached) " >&6
5090 if test -n "$ac_ct_OBJDUMP"; then
5091 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5111 if test -n "$ac_ct_OBJDUMP"; then
5112 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5113 $as_echo "$ac_ct_OBJDUMP" >&6; }
5115 { $as_echo "$as_me:$LINENO: result: no" >&5
5116 $as_echo "no" >&6; }
5119 if test "x$ac_ct_OBJDUMP" = x; then
5122 case $cross_compiling:$ac_tool_warned in
5124 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5128 OBJDUMP=$ac_ct_OBJDUMP
5131 OBJDUMP="$ac_cv_prog_OBJDUMP"
5134 test -z "$OBJDUMP" && OBJDUMP=objdump
5144 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5145 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5146 if test "${lt_cv_deplibs_check_method+set}" = set; then
5147 $as_echo_n "(cached) " >&6
5149 lt_cv_file_magic_cmd='$MAGIC_CMD'
5150 lt_cv_file_magic_test_file=
5151 lt_cv_deplibs_check_method='unknown'
5152 # Need to set the preceding variable on all platforms that support
5153 # interlibrary dependencies.
5154 # 'none' -- dependencies not supported.
5155 # `unknown' -- same as none, but documents that we really don't know.
5156 # 'pass_all' -- all dependencies passed with no checks.
5157 # 'test_compile' -- check by making test program.
5158 # 'file_magic [[regex]]' -- check by looking for files in library path
5159 # which responds to the $file_magic_cmd with a given extended regex.
5160 # If you have `file' or equivalent on your system and you're not sure
5161 # whether `pass_all' will *always* work, you probably want this one.
5165 lt_cv_deplibs_check_method=pass_all
5169 lt_cv_deplibs_check_method=pass_all
5173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5174 lt_cv_file_magic_cmd='/usr/bin/file -L'
5175 lt_cv_file_magic_test_file=/shlib/libc.so
5179 # func_win32_libid is a shell function defined in ltmain.sh
5180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181 lt_cv_file_magic_cmd='func_win32_libid'
5185 # Base MSYS/MinGW do not provide the 'file' command needed by
5186 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5187 # unless we find 'file', for example because we are cross-compiling.
5188 if ( file / ) >/dev/null 2>&1; then
5189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190 lt_cv_file_magic_cmd='func_win32_libid'
5192 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5193 lt_cv_file_magic_cmd='$OBJDUMP -f'
5198 # use the weaker test based on 'objdump'. See mingw*.
5199 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5200 lt_cv_file_magic_cmd='$OBJDUMP -f'
5203 darwin* | rhapsody*)
5204 lt_cv_deplibs_check_method=pass_all
5207 freebsd* | dragonfly*)
5208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5211 # Not sure whether the presence of OpenBSD here was a mistake.
5212 # Let's accept both of them until this is cleared up.
5213 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5214 lt_cv_file_magic_cmd=/usr/bin/file
5215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5219 lt_cv_deplibs_check_method=pass_all
5224 lt_cv_deplibs_check_method=pass_all
5227 hpux10.20* | hpux11*)
5228 lt_cv_file_magic_cmd=/usr/bin/file
5231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5232 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5235 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]'
5236 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5240 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5246 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5250 irix5* | irix6* | nonstopux*)
5252 *-32|*"-32 ") libmagic=32-bit;;
5253 *-n32|*"-n32 ") libmagic=N32;;
5254 *-64|*"-64 ") libmagic=64-bit;;
5255 *) libmagic=never-match;;
5257 lt_cv_deplibs_check_method=pass_all
5260 # This must be Linux ELF.
5261 linux* | k*bsd*-gnu)
5262 lt_cv_deplibs_check_method=pass_all
5266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5275 lt_cv_file_magic_cmd=/usr/bin/file
5276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5280 lt_cv_deplibs_check_method=pass_all
5284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5291 osf3* | osf4* | osf5*)
5292 lt_cv_deplibs_check_method=pass_all
5296 lt_cv_deplibs_check_method=pass_all
5300 lt_cv_deplibs_check_method=pass_all
5303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5304 lt_cv_deplibs_check_method=pass_all
5308 case $host_vendor in
5310 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]'
5311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5314 lt_cv_deplibs_check_method=pass_all
5317 lt_cv_file_magic_cmd='/bin/file'
5318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5321 lt_cv_file_magic_cmd='/bin/file'
5322 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5323 lt_cv_file_magic_test_file=/lib/libc.so
5326 lt_cv_deplibs_check_method=pass_all
5329 lt_cv_deplibs_check_method=pass_all
5335 lt_cv_deplibs_check_method=pass_all
5340 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5342 file_magic_cmd=$lt_cv_file_magic_cmd
5343 deplibs_check_method=$lt_cv_deplibs_check_method
5344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5357 if test -n "$ac_tool_prefix"; then
5358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5359 set dummy ${ac_tool_prefix}ar; ac_word=$2
5360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if test "${ac_cv_prog_AR+set}" = set; then
5363 $as_echo_n "(cached) " >&6
5365 if test -n "$AR"; then
5366 ac_cv_prog_AR="$AR" # Let the user override the test.
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 ac_cv_prog_AR="${ac_tool_prefix}ar"
5376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 if test -n "$AR"; then
5387 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5388 $as_echo "$AR" >&6; }
5390 { $as_echo "$as_me:$LINENO: result: no" >&5
5391 $as_echo "no" >&6; }
5396 if test -z "$ac_cv_prog_AR"; then
5398 # Extract the first word of "ar", so it can be a program name with args.
5399 set dummy ar; ac_word=$2
5400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5403 $as_echo_n "(cached) " >&6
5405 if test -n "$ac_ct_AR"; then
5406 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_ac_ct_AR="ar"
5416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5426 if test -n "$ac_ct_AR"; then
5427 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5428 $as_echo "$ac_ct_AR" >&6; }
5430 { $as_echo "$as_me:$LINENO: result: no" >&5
5431 $as_echo "no" >&6; }
5434 if test "x$ac_ct_AR" = x; then
5437 case $cross_compiling:$ac_tool_warned in
5439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5449 test -z "$AR" && AR=ar
5450 test -z "$AR_FLAGS" && AR_FLAGS=cru
5462 if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}strip; ac_word=$2
5465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if test "${ac_cv_prog_STRIP+set}" = set; then
5468 $as_echo_n "(cached) " >&6
5470 if test -n "$STRIP"; then
5471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 STRIP=$ac_cv_prog_STRIP
5491 if test -n "$STRIP"; then
5492 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5493 $as_echo "$STRIP" >&6; }
5495 { $as_echo "$as_me:$LINENO: result: no" >&5
5496 $as_echo "no" >&6; }
5501 if test -z "$ac_cv_prog_STRIP"; then
5503 # Extract the first word of "strip", so it can be a program name with args.
5504 set dummy strip; ac_word=$2
5505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5508 $as_echo_n "(cached) " >&6
5510 if test -n "$ac_ct_STRIP"; then
5511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_prog_ac_ct_STRIP="strip"
5521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5531 if test -n "$ac_ct_STRIP"; then
5532 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5533 $as_echo "$ac_ct_STRIP" >&6; }
5535 { $as_echo "$as_me:$LINENO: result: no" >&5
5536 $as_echo "no" >&6; }
5539 if test "x$ac_ct_STRIP" = x; then
5542 case $cross_compiling:$ac_tool_warned in
5544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546 ac_tool_warned=yes ;;
5551 STRIP="$ac_cv_prog_STRIP"
5554 test -z "$STRIP" && STRIP=:
5561 if test -n "$ac_tool_prefix"; then
5562 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if test "${ac_cv_prog_RANLIB+set}" = set; then
5567 $as_echo_n "(cached) " >&6
5569 if test -n "$RANLIB"; then
5570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 RANLIB=$ac_cv_prog_RANLIB
5590 if test -n "$RANLIB"; then
5591 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5592 $as_echo "$RANLIB" >&6; }
5594 { $as_echo "$as_me:$LINENO: result: no" >&5
5595 $as_echo "no" >&6; }
5600 if test -z "$ac_cv_prog_RANLIB"; then
5601 ac_ct_RANLIB=$RANLIB
5602 # Extract the first word of "ranlib", so it can be a program name with args.
5603 set dummy ranlib; ac_word=$2
5604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5607 $as_echo_n "(cached) " >&6
5609 if test -n "$ac_ct_RANLIB"; then
5610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_ac_ct_RANLIB="ranlib"
5620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5630 if test -n "$ac_ct_RANLIB"; then
5631 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5632 $as_echo "$ac_ct_RANLIB" >&6; }
5634 { $as_echo "$as_me:$LINENO: result: no" >&5
5635 $as_echo "no" >&6; }
5638 if test "x$ac_ct_RANLIB" = x; then
5641 case $cross_compiling:$ac_tool_warned in
5643 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5647 RANLIB=$ac_ct_RANLIB
5650 RANLIB="$ac_cv_prog_RANLIB"
5653 test -z "$RANLIB" && RANLIB=:
5660 # Determine commands to create old-style static archives.
5661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5662 old_postinstall_cmds='chmod 644 $oldlib'
5663 old_postuninstall_cmds=
5665 if test -n "$RANLIB"; then
5668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5671 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5674 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5710 # If no C compiler was specified, use CC.
5713 # If no C compiler flags were specified, use CFLAGS.
5714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5716 # Allow CC to be a program name with arguments.
5720 # Check for command to grab the raw symbol name followed by C symbol from nm.
5721 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5722 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5724 $as_echo_n "(cached) " >&6
5727 # These are sane defaults that work on at least a few old systems.
5728 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5730 # Character class describing NM global symbol codes.
5731 symcode='[BCDEGRST]'
5733 # Regexp to match symbols that can be accessed directly from C.
5734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5736 # Define system-specific variables.
5741 cygwin* | mingw* | pw32* | cegcc*)
5742 symcode='[ABCDGISTW]'
5745 if test "$host_cpu" = ia64; then
5746 symcode='[ABCDEGRST]'
5750 symcode='[BCDEGRST]'
5753 symcode='[BCDEGQRST]'
5764 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5772 # If we're using GNU nm, then use its standard symbol codes.
5773 case `$NM -V 2>&1` in
5774 *GNU* | *'with BFD'*)
5775 symcode='[ABCDGIRSTW]' ;;
5778 # Transform an extracted symbol line into a proper C declaration.
5779 # Some systems (esp. on ia64) link data and code symbols differently,
5780 # so use this general approach.
5781 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5783 # Transform an extracted symbol line into symbol name and symbol address
5784 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5785 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5787 # Handle CRLF in mingw tool chain
5791 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5795 # Try without a prefix underscore, then with it.
5796 for ac_symprfx in "" "_"; do
5798 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5799 symxfrm="\\1 $ac_symprfx\\2 \\2"
5801 # Write the raw and C identifiers.
5802 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5803 # Fake it for dumpbin and say T for any non-static function
5804 # and D for any global variable.
5805 # Also find C++ and __fastcall symbols from MSVC++,
5806 # which start with @ or ?.
5807 lt_cv_sys_global_symbol_pipe="$AWK '"\
5808 " {last_section=section; section=\$ 3};"\
5809 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5810 " \$ 0!~/External *\|/{next};"\
5811 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5812 " {if(hide[section]) next};"\
5813 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5814 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5815 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5816 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5817 " ' prfx=^$ac_symprfx"
5819 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5822 # Check to see that the pipe works correctly.
5826 cat > conftest.$ac_ext <<_LT_EOF
5831 void nm_test_func(void);
5832 void nm_test_func(void){}
5836 int main(){nm_test_var='a';nm_test_func();return(0);}
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>&5
5842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; then
5844 # Now try to grab the symbols.
5846 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5847 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && test -s "$nlist"; then
5851 # Try sorting and uniquifying the output.
5852 if sort "$nlist" | uniq > "$nlist"T; then
5853 mv -f "$nlist"T "$nlist"
5858 # Make sure that we snagged all the symbols we need.
5859 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5860 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5861 cat <<_LT_EOF > conftest.$ac_ext
5867 # Now generate the symbol file.
5868 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5870 cat <<_LT_EOF >> conftest.$ac_ext
5872 /* The mapping between symbol names and symbols. */
5877 lt__PROGRAM__LTX_preloaded_symbols[] =
5879 { "@PROGRAM@", (void *) 0 },
5881 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5882 cat <<\_LT_EOF >> conftest.$ac_ext
5886 /* This works around a problem in FreeBSD linker */
5887 #ifdef FREEBSD_WORKAROUND
5888 static const void *lt_preloaded_setup() {
5889 return lt__PROGRAM__LTX_preloaded_symbols;
5897 # Now try linking the two files.
5898 mv conftest.$ac_objext conftstm.$ac_objext
5899 lt_save_LIBS="$LIBS"
5900 lt_save_CFLAGS="$CFLAGS"
5901 LIBS="conftstm.$ac_objext"
5902 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904 (eval $ac_link) 2>&5
5906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5910 LIBS="$lt_save_LIBS"
5911 CFLAGS="$lt_save_CFLAGS"
5913 echo "cannot find nm_test_func in $nlist" >&5
5916 echo "cannot find nm_test_var in $nlist" >&5
5919 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5922 echo "$progname: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5925 rm -rf conftest* conftst*
5927 # Do not use the global_symbol_pipe unless it works.
5928 if test "$pipe_works" = yes; then
5931 lt_cv_sys_global_symbol_pipe=
5937 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5938 lt_cv_sys_global_symbol_to_cdecl=
5940 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5941 { $as_echo "$as_me:$LINENO: result: failed" >&5
5942 $as_echo "failed" >&6; }
5944 { $as_echo "$as_me:$LINENO: result: ok" >&5
5945 $as_echo "ok" >&6; }
5970 # Check whether --enable-libtool-lock was given.
5971 if test "${enable_libtool_lock+set}" = set; then
5972 enableval=$enable_libtool_lock;
5975 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5977 # Some flags need to be propagated to the compiler or linker for good
5981 # Find out which ABI we are using.
5982 echo 'int i;' > conftest.$ac_ext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; then
5988 case `/usr/bin/file conftest.$ac_objext` in
6000 # Find out which ABI we are using.
6001 echo '#line 6001 "configure"' > conftest.$ac_ext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>&5
6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; then
6007 if test "$lt_cv_prog_gnu_ld" = yes; then
6008 case `/usr/bin/file conftest.$ac_objext` in
6010 LD="${LD-ld} -melf32bsmip"
6013 LD="${LD-ld} -melf32bmipn32"
6016 LD="${LD-ld} -melf64bmip"
6020 case `/usr/bin/file conftest.$ac_objext` in
6036 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6037 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6038 # Find out which ABI we are using.
6039 echo 'int i;' > conftest.$ac_ext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041 (eval $ac_compile) 2>&5
6043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; then
6045 case `/usr/bin/file conftest.o` in
6048 x86_64-*kfreebsd*-gnu)
6049 LD="${LD-ld} -m elf_i386_fbsd"
6052 LD="${LD-ld} -m elf_i386"
6054 ppc64-*linux*|powerpc64-*linux*)
6055 LD="${LD-ld} -m elf32ppclinux"
6058 LD="${LD-ld} -m elf_s390"
6061 LD="${LD-ld} -m elf32_sparc"
6067 x86_64-*kfreebsd*-gnu)
6068 LD="${LD-ld} -m elf_x86_64_fbsd"
6071 LD="${LD-ld} -m elf_x86_64"
6073 ppc*-*linux*|powerpc*-*linux*)
6074 LD="${LD-ld} -m elf64ppc"
6076 s390*-*linux*|s390*-*tpf*)
6077 LD="${LD-ld} -m elf64_s390"
6080 LD="${LD-ld} -m elf64_sparc"
6090 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6091 SAVE_CFLAGS="$CFLAGS"
6092 CFLAGS="$CFLAGS -belf"
6093 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6094 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6095 if test "${lt_cv_cc_needs_belf+set}" = set; then
6096 $as_echo_n "(cached) " >&6
6099 ac_cpp='$CPP $CPPFLAGS'
6100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6104 cat >conftest.$ac_ext <<_ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (ac_try="$ac_link"
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6126 $as_echo "$ac_try_echo") >&5
6127 (eval "$ac_link") 2>conftest.er1
6129 grep -v '^ *+' conftest.er1 >conftest.err
6131 cat conftest.err >&5
6132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && {
6134 test -z "$ac_c_werror_flag" ||
6135 test ! -s conftest.err
6136 } && test -s conftest$ac_exeext && {
6137 test "$cross_compiling" = yes ||
6138 $as_test_x conftest$ac_exeext
6140 lt_cv_cc_needs_belf=yes
6142 $as_echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 lt_cv_cc_needs_belf=no
6148 rm -rf conftest.dSYM
6149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6150 conftest$ac_exeext conftest.$ac_ext
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6158 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6159 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6160 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6161 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6162 CFLAGS="$SAVE_CFLAGS"
6166 # Find out which ABI we are using.
6167 echo 'int i;' > conftest.$ac_ext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169 (eval $ac_compile) 2>&5
6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; then
6173 case `/usr/bin/file conftest.o` in
6175 case $lt_cv_prog_gnu_ld in
6176 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6178 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6190 need_locks="$enable_libtool_lock"
6194 rhapsody* | darwin*)
6195 if test -n "$ac_tool_prefix"; then
6196 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6203 if test -n "$DSYMUTIL"; then
6204 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6224 if test -n "$DSYMUTIL"; then
6225 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6226 $as_echo "$DSYMUTIL" >&6; }
6228 { $as_echo "$as_me:$LINENO: result: no" >&5
6229 $as_echo "no" >&6; }
6234 if test -z "$ac_cv_prog_DSYMUTIL"; then
6235 ac_ct_DSYMUTIL=$DSYMUTIL
6236 # Extract the first word of "dsymutil", so it can be a program name with args.
6237 set dummy dsymutil; ac_word=$2
6238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6241 $as_echo_n "(cached) " >&6
6243 if test -n "$ac_ct_DSYMUTIL"; then
6244 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6264 if test -n "$ac_ct_DSYMUTIL"; then
6265 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6266 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6268 { $as_echo "$as_me:$LINENO: result: no" >&5
6269 $as_echo "no" >&6; }
6272 if test "x$ac_ct_DSYMUTIL" = x; then
6275 case $cross_compiling:$ac_tool_warned in
6277 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6281 DSYMUTIL=$ac_ct_DSYMUTIL
6284 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6287 if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$NMEDIT"; then
6296 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 NMEDIT=$ac_cv_prog_NMEDIT
6316 if test -n "$NMEDIT"; then
6317 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6318 $as_echo "$NMEDIT" >&6; }
6320 { $as_echo "$as_me:$LINENO: result: no" >&5
6321 $as_echo "no" >&6; }
6326 if test -z "$ac_cv_prog_NMEDIT"; then
6327 ac_ct_NMEDIT=$NMEDIT
6328 # Extract the first word of "nmedit", so it can be a program name with args.
6329 set dummy nmedit; ac_word=$2
6330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6333 $as_echo_n "(cached) " >&6
6335 if test -n "$ac_ct_NMEDIT"; then
6336 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6356 if test -n "$ac_ct_NMEDIT"; then
6357 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6358 $as_echo "$ac_ct_NMEDIT" >&6; }
6360 { $as_echo "$as_me:$LINENO: result: no" >&5
6361 $as_echo "no" >&6; }
6364 if test "x$ac_ct_NMEDIT" = x; then
6367 case $cross_compiling:$ac_tool_warned in
6369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6373 NMEDIT=$ac_ct_NMEDIT
6376 NMEDIT="$ac_cv_prog_NMEDIT"
6379 if test -n "$ac_tool_prefix"; then
6380 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_LIPO+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6387 if test -n "$LIPO"; then
6388 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 LIPO=$ac_cv_prog_LIPO
6408 if test -n "$LIPO"; then
6409 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6410 $as_echo "$LIPO" >&6; }
6412 { $as_echo "$as_me:$LINENO: result: no" >&5
6413 $as_echo "no" >&6; }
6418 if test -z "$ac_cv_prog_LIPO"; then
6420 # Extract the first word of "lipo", so it can be a program name with args.
6421 set dummy lipo; ac_word=$2
6422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6425 $as_echo_n "(cached) " >&6
6427 if test -n "$ac_ct_LIPO"; then
6428 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_ac_ct_LIPO="lipo"
6438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6448 if test -n "$ac_ct_LIPO"; then
6449 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6450 $as_echo "$ac_ct_LIPO" >&6; }
6452 { $as_echo "$as_me:$LINENO: result: no" >&5
6453 $as_echo "no" >&6; }
6456 if test "x$ac_ct_LIPO" = x; then
6459 case $cross_compiling:$ac_tool_warned in
6461 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6468 LIPO="$ac_cv_prog_LIPO"
6471 if test -n "$ac_tool_prefix"; then
6472 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}otool; ac_word=$2
6474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if test "${ac_cv_prog_OTOOL+set}" = set; then
6477 $as_echo_n "(cached) " >&6
6479 if test -n "$OTOOL"; then
6480 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 OTOOL=$ac_cv_prog_OTOOL
6500 if test -n "$OTOOL"; then
6501 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6502 $as_echo "$OTOOL" >&6; }
6504 { $as_echo "$as_me:$LINENO: result: no" >&5
6505 $as_echo "no" >&6; }
6510 if test -z "$ac_cv_prog_OTOOL"; then
6512 # Extract the first word of "otool", so it can be a program name with args.
6513 set dummy otool; ac_word=$2
6514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6517 $as_echo_n "(cached) " >&6
6519 if test -n "$ac_ct_OTOOL"; then
6520 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_ac_ct_OTOOL="otool"
6530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6540 if test -n "$ac_ct_OTOOL"; then
6541 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6542 $as_echo "$ac_ct_OTOOL" >&6; }
6544 { $as_echo "$as_me:$LINENO: result: no" >&5
6545 $as_echo "no" >&6; }
6548 if test "x$ac_ct_OTOOL" = x; then
6551 case $cross_compiling:$ac_tool_warned in
6553 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6560 OTOOL="$ac_cv_prog_OTOOL"
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6569 $as_echo_n "(cached) " >&6
6571 if test -n "$OTOOL64"; then
6572 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 OTOOL64=$ac_cv_prog_OTOOL64
6592 if test -n "$OTOOL64"; then
6593 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6594 $as_echo "$OTOOL64" >&6; }
6596 { $as_echo "$as_me:$LINENO: result: no" >&5
6597 $as_echo "no" >&6; }
6602 if test -z "$ac_cv_prog_OTOOL64"; then
6603 ac_ct_OTOOL64=$OTOOL64
6604 # Extract the first word of "otool64", so it can be a program name with args.
6605 set dummy otool64; ac_word=$2
6606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$ac_ct_OTOOL64"; then
6612 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_ac_ct_OTOOL64="otool64"
6622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6632 if test -n "$ac_ct_OTOOL64"; then
6633 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6634 $as_echo "$ac_ct_OTOOL64" >&6; }
6636 { $as_echo "$as_me:$LINENO: result: no" >&5
6637 $as_echo "no" >&6; }
6640 if test "x$ac_ct_OTOOL64" = x; then
6643 case $cross_compiling:$ac_tool_warned in
6645 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6649 OTOOL64=$ac_ct_OTOOL64
6652 OTOOL64="$ac_cv_prog_OTOOL64"
6681 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6682 $as_echo_n "checking for -single_module linker flag... " >&6; }
6683 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6686 lt_cv_apple_cc_single_mod=no
6687 if test -z "${LT_MULTI_MODULE}"; then
6688 # By default we will add the -single_module flag. You can override
6689 # by either setting the environment variable LT_MULTI_MODULE
6690 # non-empty at configure time, or by adding -multi_module to the
6692 rm -rf libconftest.dylib*
6693 echo "int foo(void){return 1;}" > conftest.c
6694 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6695 -dynamiclib -Wl,-single_module conftest.c" >&5
6696 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6697 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6699 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6700 lt_cv_apple_cc_single_mod=yes
6702 cat conftest.err >&5
6704 rm -rf libconftest.dylib*
6708 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6709 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6710 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6711 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6712 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6713 $as_echo_n "(cached) " >&6
6715 lt_cv_ld_exported_symbols_list=no
6716 save_LDFLAGS=$LDFLAGS
6717 echo "_main" > conftest.sym
6718 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (ac_try="$ac_link"
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6741 $as_echo "$ac_try_echo") >&5
6742 (eval "$ac_link") 2>conftest.er1
6744 grep -v '^ *+' conftest.er1 >conftest.err
6746 cat conftest.err >&5
6747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } && {
6749 test -z "$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 } && test -s conftest$ac_exeext && {
6752 test "$cross_compiling" = yes ||
6753 $as_test_x conftest$ac_exeext
6755 lt_cv_ld_exported_symbols_list=yes
6757 $as_echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 lt_cv_ld_exported_symbols_list=no
6763 rm -rf conftest.dSYM
6764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6765 conftest$ac_exeext conftest.$ac_ext
6766 LDFLAGS="$save_LDFLAGS"
6769 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6770 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6772 rhapsody* | darwin1.[012])
6773 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6775 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6776 darwin*) # darwin 5.x on
6777 # if running on 10.5 or later, the deployment target defaults
6778 # to the OS version, if on x86, and 10.4, the deployment
6779 # target defaults to 10.4. Don't you love it?
6780 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6781 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6782 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6784 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6786 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6790 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6791 _lt_dar_single_mod='$single_module'
6793 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6794 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6796 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6798 if test "$DSYMUTIL" != ":"; then
6799 _lt_dsymutil='~$DSYMUTIL $lib || :'
6807 ac_cpp='$CPP $CPPFLAGS'
6808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6813 # On Suns, sometimes $CPP names a directory.
6814 if test -n "$CPP" && test -d "$CPP"; then
6817 if test -z "$CPP"; then
6818 if test "${ac_cv_prog_CPP+set}" = set; then
6819 $as_echo_n "(cached) " >&6
6821 # Double quotes because CPP needs to be expanded
6822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6825 for ac_c_preproc_warn_flag in '' yes
6827 # Use a header file that comes with gcc, so configuring glibc
6828 # with a fresh cross-compiler works.
6829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6830 # <limits.h> exists even on freestanding compilers.
6831 # On the NeXT, cc -E runs the code through the compiler's parser,
6832 # not just through cpp. "Syntax error" is here to catch this case.
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6840 # include <limits.h>
6842 # include <assert.h>
6846 if { (ac_try="$ac_cpp conftest.$ac_ext"
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } >/dev/null && {
6860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6865 $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 # Broken: fails on valid input.
6872 rm -f conftest.err conftest.$ac_ext
6874 # OK, works on sane cases. Now check whether nonexistent headers
6875 # can be detected and how.
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 #include <ac_nonexistent.h>
6884 if { (ac_try="$ac_cpp conftest.$ac_ext"
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } >/dev/null && {
6898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6901 # Broken: success on invalid input.
6904 $as_echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 # Passes both tests.
6912 rm -f conftest.err conftest.$ac_ext
6915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6916 rm -f conftest.err conftest.$ac_ext
6917 if $ac_preproc_ok; then
6929 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6930 $as_echo "$CPP" >&6; }
6932 for ac_c_preproc_warn_flag in '' yes
6934 # Use a header file that comes with gcc, so configuring glibc
6935 # with a fresh cross-compiler works.
6936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6937 # <limits.h> exists even on freestanding compilers.
6938 # On the NeXT, cc -E runs the code through the compiler's parser,
6939 # not just through cpp. "Syntax error" is here to catch this case.
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6947 # include <limits.h>
6949 # include <assert.h>
6953 if { (ac_try="$ac_cpp conftest.$ac_ext"
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6959 $as_echo "$ac_try_echo") >&5
6960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } >/dev/null && {
6967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6972 $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 # Broken: fails on valid input.
6979 rm -f conftest.err conftest.$ac_ext
6981 # OK, works on sane cases. Now check whether nonexistent headers
6982 # can be detected and how.
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <ac_nonexistent.h>
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } >/dev/null && {
7005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7008 # Broken: success on invalid input.
7011 $as_echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 # Passes both tests.
7019 rm -f conftest.err conftest.$ac_ext
7022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7023 rm -f conftest.err conftest.$ac_ext
7024 if $ac_preproc_ok; then
7027 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7029 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7030 See \`config.log' for more details." >&5
7031 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7032 See \`config.log' for more details." >&2;}
7033 { (exit 1); exit 1; }; }; }
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7044 $as_echo_n "checking for ANSI C header files... " >&6; }
7045 if test "${ac_cv_header_stdc+set}" = set; then
7046 $as_echo_n "(cached) " >&6
7048 cat >conftest.$ac_ext <<_ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074 $as_echo "$ac_try_echo") >&5
7075 (eval "$ac_compile") 2>conftest.er1
7077 grep -v '^ *+' conftest.er1 >conftest.err
7079 cat conftest.err >&5
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
7085 ac_cv_header_stdc=yes
7087 $as_echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_header_stdc=no
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 if test $ac_cv_header_stdc = yes; then
7096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107 $EGREP "memchr" >/dev/null 2>&1; then
7110 ac_cv_header_stdc=no
7116 if test $ac_cv_header_stdc = yes; then
7117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7128 $EGREP "free" >/dev/null 2>&1; then
7131 ac_cv_header_stdc=no
7137 if test $ac_cv_header_stdc = yes; then
7138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7139 if test "$cross_compiling" = yes; then
7142 cat >conftest.$ac_ext <<_ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7150 #if ((' ' & 0x0FF) == 0x020)
7151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7154 # define ISLOWER(c) \
7155 (('a' <= (c) && (c) <= 'i') \
7156 || ('j' <= (c) && (c) <= 'r') \
7157 || ('s' <= (c) && (c) <= 'z'))
7158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7166 for (i = 0; i < 256; i++)
7167 if (XOR (islower (i), ISLOWER (i))
7168 || toupper (i) != TOUPPER (i))
7173 rm -f conftest$ac_exeext
7174 if { (ac_try="$ac_link"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7180 $as_echo "$ac_try_echo") >&5
7181 (eval "$ac_link") 2>&5
7183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7185 { (case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7190 $as_echo "$ac_try_echo") >&5
7191 (eval "$ac_try") 2>&5
7193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7197 $as_echo "$as_me: program exited with status $ac_status" >&5
7198 $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_header_stdc=no
7204 rm -rf conftest.dSYM
7205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7212 $as_echo "$ac_cv_header_stdc" >&6; }
7213 if test $ac_cv_header_stdc = yes; then
7215 cat >>confdefs.h <<\_ACEOF
7216 #define STDC_HEADERS 1
7221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7232 inttypes.h stdint.h unistd.h
7234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7236 $as_echo_n "checking for $ac_header... " >&6; }
7237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7238 $as_echo_n "(cached) " >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 $ac_includes_default
7248 #include <$ac_header>
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7257 $as_echo "$ac_try_echo") >&5
7258 (eval "$ac_compile") 2>conftest.er1
7260 grep -v '^ *+' conftest.er1 >conftest.err
7262 cat conftest.err >&5
7263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && {
7265 test -z "$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7267 } && test -s conftest.$ac_objext; then
7268 eval "$as_ac_Header=yes"
7270 $as_echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 eval "$as_ac_Header=no"
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 ac_res=`eval 'as_val=${'$as_ac_Header'}
7279 $as_echo "$as_val"'`
7280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7281 $as_echo "$ac_res" >&6; }
7282 as_val=`eval 'as_val=${'$as_ac_Header'}
7283 $as_echo "$as_val"'`
7284 if test "x$as_val" = x""yes; then
7285 cat >>confdefs.h <<_ACEOF
7286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 for ac_header in dlfcn.h
7297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 $as_echo_n "checking for $ac_header... " >&6; }
7300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7301 $as_echo_n "(cached) " >&6
7303 cat >conftest.$ac_ext <<_ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7311 #include <$ac_header>
7313 rm -f conftest.$ac_objext
7314 if { (ac_try="$ac_compile"
7316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317 *) ac_try_echo=$ac_try;;
7319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7320 $as_echo "$ac_try_echo") >&5
7321 (eval "$ac_compile") 2>conftest.er1
7323 grep -v '^ *+' conftest.er1 >conftest.err
7325 cat conftest.err >&5
7326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } && {
7328 test -z "$ac_c_werror_flag" ||
7329 test ! -s conftest.err
7330 } && test -s conftest.$ac_objext; then
7331 eval "$as_ac_Header=yes"
7333 $as_echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 eval "$as_ac_Header=no"
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 ac_res=`eval 'as_val=${'$as_ac_Header'}
7342 $as_echo "$as_val"'`
7343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7344 $as_echo "$ac_res" >&6; }
7345 as_val=`eval 'as_val=${'$as_ac_Header'}
7346 $as_echo "$as_val"'`
7347 if test "x$as_val" = x""yes; then
7348 cat >>confdefs.h <<_ACEOF
7349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7368 # Check whether --enable-shared was given.
7369 if test "${enable_shared+set}" = set; then
7370 enableval=$enable_shared; p=${PACKAGE-default}
7372 yes) enable_shared=yes ;;
7373 no) enable_shared=no ;;
7376 # Look at the argument we got. We use all the common list separators.
7377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378 for pkg in $enableval; do
7380 if test "X$pkg" = "X$p"; then
7399 # Check whether --enable-static was given.
7400 if test "${enable_static+set}" = set; then
7401 enableval=$enable_static; p=${PACKAGE-default}
7403 yes) enable_static=yes ;;
7404 no) enable_static=no ;;
7407 # Look at the argument we got. We use all the common list separators.
7408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409 for pkg in $enableval; do
7411 if test "X$pkg" = "X$p"; then
7431 # Check whether --with-pic was given.
7432 if test "${with_pic+set}" = set; then
7433 withval=$with_pic; pic_mode="$withval"
7439 test -z "$pic_mode" && pic_mode=default
7447 # Check whether --enable-fast-install was given.
7448 if test "${enable_fast_install+set}" = set; then
7449 enableval=$enable_fast_install; p=${PACKAGE-default}
7451 yes) enable_fast_install=yes ;;
7452 no) enable_fast_install=no ;;
7454 enable_fast_install=no
7455 # Look at the argument we got. We use all the common list separators.
7456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7457 for pkg in $enableval; do
7459 if test "X$pkg" = "X$p"; then
7460 enable_fast_install=yes
7467 enable_fast_install=yes
7480 # This can be used to rebuild libtool when needed
7481 LIBTOOL_DEPS="$ltmain"
7483 # Always use our own libtool.
7484 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7510 test -z "$LN_S" && LN_S="ln -s"
7525 if test -n "${ZSH_VERSION+set}" ; then
7526 setopt NO_GLOB_SUBST
7529 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7530 $as_echo_n "checking for objdir... " >&6; }
7531 if test "${lt_cv_objdir+set}" = set; then
7532 $as_echo_n "(cached) " >&6
7534 rm -f .libs 2>/dev/null
7535 mkdir .libs 2>/dev/null
7536 if test -d .libs; then
7539 # MS-DOS does not allow filenames that begin with a dot.
7542 rmdir .libs 2>/dev/null
7544 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7545 $as_echo "$lt_cv_objdir" >&6; }
7546 objdir=$lt_cv_objdir
7552 cat >>confdefs.h <<_ACEOF
7553 #define LT_OBJDIR "$lt_cv_objdir/"
7574 # AIX sometimes has problems with the GCC collect2 program. For some
7575 # reason, if we set the COLLECT_NAMES environment variable, the problems
7576 # vanish in a puff of smoke.
7577 if test "X${COLLECT_NAMES+set}" != Xset; then
7579 export COLLECT_NAMES
7584 # Sed substitution that helps us do robust quoting. It backslashifies
7585 # metacharacters that are still active within double-quoted strings.
7586 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7588 # Same as above, but do not quote variable references.
7589 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7591 # Sed substitution to delay expansion of an escaped shell variable in a
7592 # double_quote_subst'ed string.
7593 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7595 # Sed substitution to delay expansion of an escaped single quote.
7596 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7598 # Sed substitution to avoid accidental globbing in evaled expressions
7599 no_glob_subst='s/\*/\\\*/g'
7603 can_build_shared=yes
7605 # All known linkers require a `.a' archive for static linking (except MSVC,
7606 # which needs '.lib').
7609 with_gnu_ld="$lt_cv_prog_gnu_ld"
7612 old_CFLAGS="$CFLAGS"
7614 # Set sane defaults for various variables
7615 test -z "$CC" && CC=cc
7616 test -z "$LTCC" && LTCC=$CC
7617 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7618 test -z "$LD" && LD=ld
7619 test -z "$ac_objext" && ac_objext=o
7621 for cc_temp in $compiler""; do
7623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7629 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7632 # Only perform the check for file, if the check method requires it
7633 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7634 case $deplibs_check_method in
7636 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7637 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7638 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7639 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7640 $as_echo_n "(cached) " >&6
7644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7647 lt_save_MAGIC_CMD="$MAGIC_CMD"
7648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7650 for ac_dir in $ac_dummy; do
7652 test -z "$ac_dir" && ac_dir=.
7653 if test -f $ac_dir/${ac_tool_prefix}file; then
7654 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7655 if test -n "$file_magic_test_file"; then
7656 case $deplibs_check_method in
7658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7661 $EGREP "$file_magic_regex" > /dev/null; then
7666 *** Warning: the command libtool uses to detect shared libraries,
7667 *** $file_magic_cmd, produces output that libtool cannot recognize.
7668 *** The result is that libtool may fail to recognize shared libraries
7669 *** as such. This will affect the creation of libtool libraries that
7670 *** depend on shared libraries, but programs linked with such libtool
7671 *** libraries will work regardless of this problem. Nevertheless, you
7672 *** may want to report the problem to your system manager and/or to
7673 *** bug-libtool@gnu.org
7683 MAGIC_CMD="$lt_save_MAGIC_CMD"
7688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7689 if test -n "$MAGIC_CMD"; then
7690 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7691 $as_echo "$MAGIC_CMD" >&6; }
7693 { $as_echo "$as_me:$LINENO: result: no" >&5
7694 $as_echo "no" >&6; }
7701 if test -z "$lt_cv_path_MAGIC_CMD"; then
7702 if test -n "$ac_tool_prefix"; then
7703 { $as_echo "$as_me:$LINENO: checking for file" >&5
7704 $as_echo_n "checking for file... " >&6; }
7705 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7706 $as_echo_n "(cached) " >&6
7710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7713 lt_save_MAGIC_CMD="$MAGIC_CMD"
7714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7716 for ac_dir in $ac_dummy; do
7718 test -z "$ac_dir" && ac_dir=.
7719 if test -f $ac_dir/file; then
7720 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7721 if test -n "$file_magic_test_file"; then
7722 case $deplibs_check_method in
7724 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7727 $EGREP "$file_magic_regex" > /dev/null; then
7732 *** Warning: the command libtool uses to detect shared libraries,
7733 *** $file_magic_cmd, produces output that libtool cannot recognize.
7734 *** The result is that libtool may fail to recognize shared libraries
7735 *** as such. This will affect the creation of libtool libraries that
7736 *** depend on shared libraries, but programs linked with such libtool
7737 *** libraries will work regardless of this problem. Nevertheless, you
7738 *** may want to report the problem to your system manager and/or to
7739 *** bug-libtool@gnu.org
7749 MAGIC_CMD="$lt_save_MAGIC_CMD"
7754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755 if test -n "$MAGIC_CMD"; then
7756 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7757 $as_echo "$MAGIC_CMD" >&6; }
7759 { $as_echo "$as_me:$LINENO: result: no" >&5
7760 $as_echo "no" >&6; }
7773 # Use C for the default configuration in the libtool script
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783 # Source file extension for C test sources.
7786 # Object file extension for compiled C test sources.
7790 # Code to be used in simple compile tests
7791 lt_simple_compile_test_code="int some_variable = 0;"
7793 # Code to be used in simple link tests
7794 lt_simple_link_test_code='int main(){return(0);}'
7802 # If no C compiler was specified, use CC.
7805 # If no C compiler flags were specified, use CFLAGS.
7806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7808 # Allow CC to be a program name with arguments.
7811 # Save the default compiler, since it gets overwritten when the other
7812 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7813 compiler_DEFAULT=$CC
7815 # save warnings/boilerplate of simple test code
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7819 _lt_compiler_boilerplate=`cat conftest.err`
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825 _lt_linker_boilerplate=`cat conftest.err`
7829 if test -n "$compiler"; then
7831 lt_prog_compiler_no_builtin_flag=
7833 if test "$GCC" = yes; then
7834 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7836 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7837 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7838 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7839 $as_echo_n "(cached) " >&6
7841 lt_cv_prog_compiler_rtti_exceptions=no
7842 ac_outfile=conftest.$ac_objext
7843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7844 lt_compiler_flag="-fno-rtti -fno-exceptions"
7845 # Insert the option either (1) after the last *FLAGS variable, or
7846 # (2) before a word containing "conftest.", or (3) at the end.
7847 # Note that $ac_compile itself does not contain backslashes and begins
7848 # with a dollar sign (not a hyphen), so the echo should work correctly.
7849 # The option is referenced via a variable to avoid confusing sed.
7850 lt_compile=`echo "$ac_compile" | $SED \
7851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7853 -e 's:$: $lt_compiler_flag:'`
7854 (eval echo "\"\$as_me:7854: $lt_compile\"" >&5)
7855 (eval "$lt_compile" 2>conftest.err)
7857 cat conftest.err >&5
7858 echo "$as_me:7858: \$? = $ac_status" >&5
7859 if (exit $ac_status) && test -s "$ac_outfile"; then
7860 # The compiler can only warn and ignore the option if not recognized
7861 # So say no if there are warnings other than the usual output.
7862 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7864 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7865 lt_cv_prog_compiler_rtti_exceptions=yes
7871 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7872 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7874 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7875 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7887 lt_prog_compiler_wl=
7888 lt_prog_compiler_pic=
7889 lt_prog_compiler_static=
7891 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7892 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7894 if test "$GCC" = yes; then
7895 lt_prog_compiler_wl='-Wl,'
7896 lt_prog_compiler_static='-static'
7900 # All AIX code is PIC.
7901 if test "$host_cpu" = ia64; then
7902 # AIX 5 now supports IA64 processor
7903 lt_prog_compiler_static='-Bstatic'
7910 # see comment about AmigaOS4 .so support
7911 lt_prog_compiler_pic='-fPIC'
7914 # FIXME: we need at least 68020 code to build shared libraries, but
7915 # adding the `-m68020' flag to GCC prevents building anything better,
7917 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7922 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7923 # PIC is the default for these OSes.
7926 mingw* | cygwin* | pw32* | os2* | cegcc*)
7927 # This hack is so that the source file can tell whether it is being
7928 # built for inclusion in a dll (and should export symbols for example).
7929 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7930 # (--disable-auto-import) libraries
7931 lt_prog_compiler_pic='-DDLL_EXPORT'
7934 darwin* | rhapsody*)
7935 # PIC is the default on this platform
7936 # Common symbols not allowed in MH_DYLIB files
7937 lt_prog_compiler_pic='-fno-common'
7941 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7942 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7943 # sets the default TLS model and affects inlining.
7949 lt_prog_compiler_pic='-fPIC'
7955 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7956 # Instead, we relocate shared libraries at runtime.
7960 # Just because we use GCC doesn't mean we suddenly get shared libraries
7961 # on systems that don't support them.
7962 lt_prog_compiler_can_build_shared=no
7967 # QNX uses GNU C++, but need to define -shared option too, otherwise
7969 lt_prog_compiler_pic='-fPIC -shared'
7973 if test -d /usr/nec; then
7974 lt_prog_compiler_pic=-Kconform_pic
7979 lt_prog_compiler_pic='-fPIC'
7983 # PORTME Check for flag to pass linker flags through the system compiler.
7986 lt_prog_compiler_wl='-Wl,'
7987 if test "$host_cpu" = ia64; then
7988 # AIX 5 now supports IA64 processor
7989 lt_prog_compiler_static='-Bstatic'
7991 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7995 mingw* | cygwin* | pw32* | os2* | cegcc*)
7996 # This hack is so that the source file can tell whether it is being
7997 # built for inclusion in a dll (and should export symbols for example).
7998 lt_prog_compiler_pic='-DDLL_EXPORT'
8001 hpux9* | hpux10* | hpux11*)
8002 lt_prog_compiler_wl='-Wl,'
8003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8010 lt_prog_compiler_pic='+Z'
8013 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8014 lt_prog_compiler_static='${wl}-a ${wl}archive'
8017 irix5* | irix6* | nonstopux*)
8018 lt_prog_compiler_wl='-Wl,'
8019 # PIC (with -KPIC) is the default.
8020 lt_prog_compiler_static='-non_shared'
8023 linux* | k*bsd*-gnu)
8024 case $cc_basename in
8025 # old Intel for x86_64 which still supported -KPIC.
8027 lt_prog_compiler_wl='-Wl,'
8028 lt_prog_compiler_pic='-KPIC'
8029 lt_prog_compiler_static='-static'
8031 # icc used to be incompatible with GCC.
8032 # ICC 10 doesn't accept -KPIC any more.
8034 lt_prog_compiler_wl='-Wl,'
8035 lt_prog_compiler_pic='-fPIC'
8036 lt_prog_compiler_static='-static'
8038 # Lahey Fortran 8.1.
8040 lt_prog_compiler_wl='-Wl,'
8041 lt_prog_compiler_pic='--shared'
8042 lt_prog_compiler_static='--static'
8044 pgcc* | pgf77* | pgf90* | pgf95*)
8045 # Portland Group compilers (*not* the Pentium gcc compiler,
8046 # which looks to be a dead project)
8047 lt_prog_compiler_wl='-Wl,'
8048 lt_prog_compiler_pic='-fpic'
8049 lt_prog_compiler_static='-Bstatic'
8052 lt_prog_compiler_wl='-Wl,'
8053 # All Alpha code is PIC.
8054 lt_prog_compiler_static='-non_shared'
8057 # IBM XL C 8.0/Fortran 10.1 on PPC
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_pic='-qpic'
8060 lt_prog_compiler_static='-qstaticlink'
8063 case `$CC -V 2>&1 | sed 5q` in
8066 lt_prog_compiler_pic='-KPIC'
8067 lt_prog_compiler_static='-Bstatic'
8068 lt_prog_compiler_wl='-Wl,'
8071 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8072 lt_prog_compiler_pic='-KPIC'
8073 lt_prog_compiler_static='-Bstatic'
8074 lt_prog_compiler_wl=''
8082 lt_prog_compiler_pic='-KPIC'
8083 lt_prog_compiler_static='-Bstatic'
8087 # QNX uses GNU C++, but need to define -shared option too, otherwise
8089 lt_prog_compiler_pic='-fPIC -shared'
8092 osf3* | osf4* | osf5*)
8093 lt_prog_compiler_wl='-Wl,'
8094 # All OSF/1 code is PIC.
8095 lt_prog_compiler_static='-non_shared'
8099 lt_prog_compiler_static='-non_shared'
8103 lt_prog_compiler_pic='-KPIC'
8104 lt_prog_compiler_static='-Bstatic'
8105 case $cc_basename in
8107 lt_prog_compiler_wl='-Qoption ld ';;
8109 lt_prog_compiler_wl='-Wl,';;
8114 lt_prog_compiler_wl='-Qoption ld '
8115 lt_prog_compiler_pic='-PIC'
8116 lt_prog_compiler_static='-Bstatic'
8119 sysv4 | sysv4.2uw2* | sysv4.3*)
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_pic='-KPIC'
8122 lt_prog_compiler_static='-Bstatic'
8126 if test -d /usr/nec ;then
8127 lt_prog_compiler_pic='-Kconform_pic'
8128 lt_prog_compiler_static='-Bstatic'
8132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8133 lt_prog_compiler_wl='-Wl,'
8134 lt_prog_compiler_pic='-KPIC'
8135 lt_prog_compiler_static='-Bstatic'
8139 lt_prog_compiler_wl='-Wl,'
8140 lt_prog_compiler_can_build_shared=no
8144 lt_prog_compiler_pic='-pic'
8145 lt_prog_compiler_static='-Bstatic'
8149 lt_prog_compiler_can_build_shared=no
8155 # For platforms which do not support PIC, -DPIC is meaningless:
8157 lt_prog_compiler_pic=
8160 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8163 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8164 $as_echo "$lt_prog_compiler_pic" >&6; }
8172 # Check to make sure the PIC flag actually works.
8174 if test -n "$lt_prog_compiler_pic"; then
8175 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8176 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8177 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8178 $as_echo_n "(cached) " >&6
8180 lt_cv_prog_compiler_pic_works=no
8181 ac_outfile=conftest.$ac_objext
8182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8184 # Insert the option either (1) after the last *FLAGS variable, or
8185 # (2) before a word containing "conftest.", or (3) at the end.
8186 # Note that $ac_compile itself does not contain backslashes and begins
8187 # with a dollar sign (not a hyphen), so the echo should work correctly.
8188 # The option is referenced via a variable to avoid confusing sed.
8189 lt_compile=`echo "$ac_compile" | $SED \
8190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192 -e 's:$: $lt_compiler_flag:'`
8193 (eval echo "\"\$as_me:8193: $lt_compile\"" >&5)
8194 (eval "$lt_compile" 2>conftest.err)
8196 cat conftest.err >&5
8197 echo "$as_me:8197: \$? = $ac_status" >&5
8198 if (exit $ac_status) && test -s "$ac_outfile"; then
8199 # The compiler can only warn and ignore the option if not recognized
8200 # So say no if there are warnings other than the usual output.
8201 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204 lt_cv_prog_compiler_pic_works=yes
8210 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8211 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8213 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8214 case $lt_prog_compiler_pic in
8216 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8219 lt_prog_compiler_pic=
8220 lt_prog_compiler_can_build_shared=no
8231 # Check to make sure the static flag actually works.
8233 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8234 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8235 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8236 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8237 $as_echo_n "(cached) " >&6
8239 lt_cv_prog_compiler_static_works=no
8240 save_LDFLAGS="$LDFLAGS"
8241 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8244 # The linker can only warn and ignore the option if not recognized
8245 # So say no if there are warnings
8246 if test -s conftest.err; then
8247 # Append any errors to the config.log.
8248 cat conftest.err 1>&5
8249 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8251 if diff conftest.exp conftest.er2 >/dev/null; then
8252 lt_cv_prog_compiler_static_works=yes
8255 lt_cv_prog_compiler_static_works=yes
8259 LDFLAGS="$save_LDFLAGS"
8262 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8263 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8265 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8268 lt_prog_compiler_static=
8277 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8279 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8280 $as_echo_n "(cached) " >&6
8282 lt_cv_prog_compiler_c_o=no
8283 $RM -r conftest 2>/dev/null
8287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8289 lt_compiler_flag="-o out/conftest2.$ac_objext"
8290 # Insert the option either (1) after the last *FLAGS variable, or
8291 # (2) before a word containing "conftest.", or (3) at the end.
8292 # Note that $ac_compile itself does not contain backslashes and begins
8293 # with a dollar sign (not a hyphen), so the echo should work correctly.
8294 lt_compile=`echo "$ac_compile" | $SED \
8295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8297 -e 's:$: $lt_compiler_flag:'`
8298 (eval echo "\"\$as_me:8298: $lt_compile\"" >&5)
8299 (eval "$lt_compile" 2>out/conftest.err)
8301 cat out/conftest.err >&5
8302 echo "$as_me:8302: \$? = $ac_status" >&5
8303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8305 # The compiler can only warn and ignore the option if not recognized
8306 # So say no if there are warnings
8307 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8310 lt_cv_prog_compiler_c_o=yes
8315 # SGI C++ compiler will create directory out/ii_files/ for
8316 # template instantiation
8317 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8318 $RM out/* && rmdir out
8324 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8325 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8332 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8334 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8335 $as_echo_n "(cached) " >&6
8337 lt_cv_prog_compiler_c_o=no
8338 $RM -r conftest 2>/dev/null
8342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8344 lt_compiler_flag="-o out/conftest2.$ac_objext"
8345 # Insert the option either (1) after the last *FLAGS variable, or
8346 # (2) before a word containing "conftest.", or (3) at the end.
8347 # Note that $ac_compile itself does not contain backslashes and begins
8348 # with a dollar sign (not a hyphen), so the echo should work correctly.
8349 lt_compile=`echo "$ac_compile" | $SED \
8350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8352 -e 's:$: $lt_compiler_flag:'`
8353 (eval echo "\"\$as_me:8353: $lt_compile\"" >&5)
8354 (eval "$lt_compile" 2>out/conftest.err)
8356 cat out/conftest.err >&5
8357 echo "$as_me:8357: \$? = $ac_status" >&5
8358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8360 # The compiler can only warn and ignore the option if not recognized
8361 # So say no if there are warnings
8362 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8365 lt_cv_prog_compiler_c_o=yes
8370 # SGI C++ compiler will create directory out/ii_files/ for
8371 # template instantiation
8372 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8373 $RM out/* && rmdir out
8379 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8380 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8385 hard_links="nottested"
8386 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8387 # do not overwrite the value of need_locks provided by the user
8388 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8389 $as_echo_n "checking if we can lock with hard links... " >&6; }
8392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8394 ln conftest.a conftest.b 2>&5 || hard_links=no
8395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8396 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8397 $as_echo "$hard_links" >&6; }
8398 if test "$hard_links" = no; then
8399 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8400 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8412 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8413 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8416 allow_undefined_flag=
8417 always_export_symbols=no
8419 archive_expsym_cmds=
8420 compiler_needs_object=no
8421 enable_shared_with_static_runtimes=no
8422 export_dynamic_flag_spec=
8423 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8424 hardcode_automatic=no
8426 hardcode_direct_absolute=no
8427 hardcode_libdir_flag_spec=
8428 hardcode_libdir_flag_spec_ld=
8429 hardcode_libdir_separator=
8431 hardcode_shlibpath_var=unsupported
8433 link_all_deplibs=unknown
8436 old_archive_from_new_cmds=
8437 old_archive_from_expsyms_cmds=
8438 thread_safe_flag_spec=
8439 whole_archive_flag_spec=
8440 # include_expsyms should be a list of space-separated symbols to be *always*
8441 # included in the symbol list
8443 # exclude_expsyms can be an extended regexp of symbols to exclude
8444 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8445 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8446 # as well as any symbol that contains `d'.
8447 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8448 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8449 # platforms (ab)use it in PIC code, but their linkers get confused if
8450 # the symbol is explicitly referenced. Since portable code cannot
8451 # rely on this symbol name, it's probably fine to never include it in
8452 # preloaded symbol tables.
8453 # Exclude shared library initialization/finalization symbols.
8454 extract_expsyms_cmds=
8457 cygwin* | mingw* | pw32* | cegcc*)
8458 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8459 # When not using gcc, we currently assume that we are using
8460 # Microsoft Visual C++.
8461 if test "$GCC" != yes; then
8466 # we just hope/assume this is gcc and not c89 (= MSVC++)
8475 if test "$with_gnu_ld" = yes; then
8476 # If archive_cmds runs LD, not CC, wlarc should be empty
8479 # Set some defaults for GNU ld with shared library support. These
8480 # are reset later if shared libraries are not supported. Putting them
8481 # here allows them to be overridden if necessary.
8482 runpath_var=LD_RUN_PATH
8483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8484 export_dynamic_flag_spec='${wl}--export-dynamic'
8485 # ancient GNU ld didn't support --whole-archive et. al.
8486 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8487 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8489 whole_archive_flag_spec=
8491 supports_anon_versioning=no
8492 case `$LD -v 2>&1` in
8493 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8494 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8495 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8496 *\ 2.11.*) ;; # other 2.11 versions
8497 *) supports_anon_versioning=yes ;;
8500 # See if GNU ld supports shared libraries.
8503 # On AIX/PPC, the GNU linker is very broken
8504 if test "$host_cpu" != ia64; then
8508 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8509 *** to be unable to reliably create shared libraries on AIX.
8510 *** Therefore, libtool is disabling shared libraries support. If you
8511 *** really care for shared libraries, you may want to modify your PATH
8512 *** so that a non-GNU linker is found, and then restart.
8521 # see comment about AmigaOS4 .so support
8522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523 archive_expsym_cmds=''
8526 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)'
8527 hardcode_libdir_flag_spec='-L$libdir'
8528 hardcode_minus_L=yes
8534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8535 allow_undefined_flag=unsupported
8536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8537 # support --undefined. This deserves some investigation. FIXME
8538 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544 cygwin* | mingw* | pw32* | cegcc*)
8545 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8546 # as there is no search path for DLLs.
8547 hardcode_libdir_flag_spec='-L$libdir'
8548 allow_undefined_flag=unsupported
8549 always_export_symbols=no
8550 enable_shared_with_static_runtimes=yes
8551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8553 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8555 # If the export-symbols file already is a .def file (1st line
8556 # is EXPORTS), use it as is; otherwise, prepend...
8557 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8558 cp $export_symbols $output_objdir/$soname.def;
8560 echo EXPORTS > $output_objdir/$soname.def;
8561 cat $export_symbols >> $output_objdir/$soname.def;
8563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8571 hardcode_shlibpath_var=no
8572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8573 export_dynamic_flag_spec='${wl}-E'
8574 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8575 # Instead, shared libraries are loaded at an image base (0x10000000 by
8576 # default) and relocated if they conflict, which is a slow very memory
8577 # consuming and fragmenting process. To avoid this, we pick a random,
8578 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8579 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8580 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8581 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'
8584 gnu* | linux* | tpf* | k*bsd*-gnu)
8586 if test "$host_os" = linux-dietlibc; then
8587 case $cc_basename in
8588 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8591 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8592 && test "$tmp_diet" = no
8595 tmp_sharedflag='-shared'
8596 case $cc_basename,$host_cpu in
8597 pgcc*) # Portland Group C compiler
8598 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'
8599 tmp_addflag=' $pic_flag'
8601 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8602 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'
8603 tmp_addflag=' $pic_flag -Mnomain' ;;
8604 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8605 tmp_addflag=' -i_dynamic' ;;
8606 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8607 tmp_addflag=' -i_dynamic -nofor_main' ;;
8608 ifc* | ifort*) # Intel Fortran compiler
8609 tmp_addflag=' -nofor_main' ;;
8610 lf95*) # Lahey Fortran 8.1
8611 whole_archive_flag_spec=
8612 tmp_sharedflag='--shared' ;;
8613 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8614 tmp_sharedflag='-qmkshrobj'
8617 case `$CC -V 2>&1 | sed 5q` in
8618 *Sun\ C*) # Sun C 5.9
8619 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'
8620 compiler_needs_object=yes
8621 tmp_sharedflag='-G' ;;
8622 *Sun\ F*) # Sun Fortran 8.3
8623 tmp_sharedflag='-G' ;;
8625 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 if test "x$supports_anon_versioning" = xyes; then
8628 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8630 echo "local: *; };" >> $output_objdir/$libname.ver~
8631 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8634 case $cc_basename in
8636 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8637 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8638 hardcode_libdir_flag_spec=
8639 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8640 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8641 if test "x$supports_anon_versioning" = xyes; then
8642 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8643 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8644 echo "local: *; };" >> $output_objdir/$libname.ver~
8645 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8656 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8665 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8669 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8670 *** create shared libraries on Solaris systems. Therefore, libtool
8671 *** is disabling shared libraries support. We urge you to upgrade GNU
8672 *** binutils to release 2.9.1 or newer. Another option is to modify
8673 *** your PATH or compiler configuration so that the native linker is
8674 *** used, and then restart.
8677 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8686 case `$LD -v 2>&1` in
8687 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8691 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8692 *** reliably create shared libraries on SCO systems. Therefore, libtool
8693 *** is disabling shared libraries support. We urge you to upgrade GNU
8694 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8695 *** your PATH or compiler configuration so that the native linker is
8696 *** used, and then restart.
8701 # For security reasons, it is highly recommended that you always
8702 # use absolute paths for naming shared libraries, and exclude the
8703 # DT_RUNPATH tag from executables and libraries. But doing so
8704 # requires that you compile everything twice, which is a pain.
8705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8717 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8720 hardcode_shlibpath_var=no
8724 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8733 if test "$ld_shlibs" = no; then
8735 hardcode_libdir_flag_spec=
8736 export_dynamic_flag_spec=
8737 whole_archive_flag_spec=
8740 # PORTME fill in a description of your system's linker (not GNU ld)
8743 allow_undefined_flag=unsupported
8744 always_export_symbols=yes
8745 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'
8746 # Note: this linker hardcodes the directories in LIBPATH if there
8747 # are no directories specified by -L.
8748 hardcode_minus_L=yes
8749 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8750 # Neither direct hardcoding nor static linking is supported with a
8752 hardcode_direct=unsupported
8757 if test "$host_cpu" = ia64; then
8758 # On IA64, the linker does run time linking by default, so we don't
8759 # have to do anything special.
8760 aix_use_runtimelinking=no
8761 exp_sym_flag='-Bexport'
8764 # If we're using GNU nm, then we don't want the "-C" option.
8765 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8766 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8767 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'
8769 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'
8771 aix_use_runtimelinking=no
8773 # Test if we are trying to use run time linking or normal
8774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8775 # need to do runtime linking.
8776 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8777 for ld_flag in $LDFLAGS; do
8778 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8779 aix_use_runtimelinking=yes
8786 exp_sym_flag='-bexport'
8787 no_entry_flag='-bnoentry'
8790 # When large executables or shared objects are built, AIX ld can
8791 # have problems creating the table of contents. If linking a library
8792 # or program results in "error TOC overflow" add -mminimal-toc to
8793 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8794 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8798 hardcode_direct_absolute=yes
8799 hardcode_libdir_separator=':'
8800 link_all_deplibs=yes
8801 file_list_spec='${wl}-f,'
8803 if test "$GCC" = yes; then
8804 case $host_os in aix4.[012]|aix4.[012].*)
8805 # We only want to do this on AIX 4.2 and lower, the check
8806 # below for broken collect2 doesn't work under 4.3+
8807 collect2name=`${CC} -print-prog-name=collect2`
8808 if test -f "$collect2name" &&
8809 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8811 # We have reworked collect2
8814 # We have old collect2
8815 hardcode_direct=unsupported
8816 # It fails to find uninstalled libraries when the uninstalled
8817 # path is not listed in the libpath. Setting hardcode_minus_L
8818 # to unsupported forces relinking
8819 hardcode_minus_L=yes
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_libdir_separator=
8825 shared_flag='-shared'
8826 if test "$aix_use_runtimelinking" = yes; then
8827 shared_flag="$shared_flag "'${wl}-G'
8831 if test "$host_cpu" = ia64; then
8832 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8833 # chokes on -Wl,-G. The following line is correct:
8836 if test "$aix_use_runtimelinking" = yes; then
8837 shared_flag='${wl}-G'
8839 shared_flag='${wl}-bM:SRE'
8844 export_dynamic_flag_spec='${wl}-bexpall'
8845 # It seems that -bexpall does not export symbols beginning with
8846 # underscore (_), so it is better to generate a list of symbols to export.
8847 always_export_symbols=yes
8848 if test "$aix_use_runtimelinking" = yes; then
8849 # Warning - without using the other runtime loading flags (-brtl),
8850 # -berok will link without error, but may produce a broken library.
8851 allow_undefined_flag='-berok'
8852 # Determine the default libpath from the value encoded in an
8854 cat >conftest.$ac_ext <<_ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (ac_try="$ac_link"
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8876 $as_echo "$ac_try_echo") >&5
8877 (eval "$ac_link") 2>conftest.er1
8879 grep -v '^ *+' conftest.er1 >conftest.err
8881 cat conftest.err >&5
8882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && {
8884 test -z "$ac_c_werror_flag" ||
8885 test ! -s conftest.err
8886 } && test -s conftest$ac_exeext && {
8887 test "$cross_compiling" = yes ||
8888 $as_test_x conftest$ac_exeext
8891 lt_aix_libpath_sed='
8892 /Import File Strings/,/^$/ {
8898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899 # Check for a 64-bit object if we didn't find anything.
8900 if test -z "$aix_libpath"; then
8901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8904 $as_echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8910 rm -rf conftest.dSYM
8911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8912 conftest$ac_exeext conftest.$ac_ext
8913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8916 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"
8918 if test "$host_cpu" = ia64; then
8919 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8920 allow_undefined_flag="-z nodefs"
8921 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"
8923 # Determine the default libpath from the value encoded in an
8925 cat >conftest.$ac_ext <<_ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948 (eval "$ac_link") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest$ac_exeext && {
8958 test "$cross_compiling" = yes ||
8959 $as_test_x conftest$ac_exeext
8962 lt_aix_libpath_sed='
8963 /Import File Strings/,/^$/ {
8969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970 # Check for a 64-bit object if we didn't find anything.
8971 if test -z "$aix_libpath"; then
8972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8975 $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8981 rm -rf conftest.dSYM
8982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983 conftest$ac_exeext conftest.$ac_ext
8984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8987 # Warning - without using the other run time loading flags,
8988 # -berok will link without error, but may produce a broken library.
8989 no_undefined_flag=' ${wl}-bernotok'
8990 allow_undefined_flag=' ${wl}-berok'
8991 # Exported symbols can be pulled into shared objects from archives
8992 whole_archive_flag_spec='$convenience'
8993 archive_cmds_need_lc=yes
8994 # This is similar to how AIX traditionally builds its shared libraries.
8995 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'
9003 # see comment about AmigaOS4 .so support
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 archive_expsym_cmds=''
9008 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)'
9009 hardcode_libdir_flag_spec='-L$libdir'
9010 hardcode_minus_L=yes
9016 export_dynamic_flag_spec=-rdynamic
9019 cygwin* | mingw* | pw32* | cegcc*)
9020 # When not using gcc, we currently assume that we are using
9021 # Microsoft Visual C++.
9022 # hardcode_libdir_flag_spec is actually meaningless, as there is
9023 # no search path for DLLs.
9024 hardcode_libdir_flag_spec=' '
9025 allow_undefined_flag=unsupported
9026 # Tell ltmain to make .lib files, not .a files.
9028 # Tell ltmain to make .dll files, not .so files.
9030 # FIXME: Setting linknames here is a bad hack.
9031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9032 # The linker will automatically build a .lib file if we build a DLL.
9033 old_archive_from_new_cmds='true'
9034 # FIXME: Should let the user specify the lib program.
9035 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9036 fix_srcfile_path='`cygpath -w "$srcfile"`'
9037 enable_shared_with_static_runtimes=yes
9040 darwin* | rhapsody*)
9043 archive_cmds_need_lc=no
9045 hardcode_automatic=yes
9046 hardcode_shlibpath_var=unsupported
9047 whole_archive_flag_spec=''
9048 link_all_deplibs=yes
9049 allow_undefined_flag="$_lt_dar_allow_undefined"
9050 case $cc_basename in
9051 ifort*) _lt_dar_can_shared=yes ;;
9052 *) _lt_dar_can_shared=$GCC ;;
9054 if test "$_lt_dar_can_shared" = "yes"; then
9055 output_verbose_link_cmd=echo
9056 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9057 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9058 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9059 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_shlibpath_var=no
9077 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9078 # support. Future versions do this automatically, but an explicit c++rt0.o
9079 # does not break anything, and helps significantly (at the cost of a little
9082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9083 hardcode_libdir_flag_spec='-R$libdir'
9085 hardcode_shlibpath_var=no
9088 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9092 hardcode_minus_L=yes
9093 hardcode_shlibpath_var=no
9096 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9097 freebsd* | dragonfly*)
9098 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9099 hardcode_libdir_flag_spec='-R$libdir'
9101 hardcode_shlibpath_var=no
9105 if test "$GCC" = yes; then
9106 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'
9108 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'
9110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9111 hardcode_libdir_separator=:
9114 # hardcode_minus_L: Not really in the search PATH,
9115 # but as the default location of the library.
9116 hardcode_minus_L=yes
9117 export_dynamic_flag_spec='${wl}-E'
9121 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9122 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9124 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9126 if test "$with_gnu_ld" = no; then
9127 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9128 hardcode_libdir_flag_spec_ld='+b $libdir'
9129 hardcode_libdir_separator=:
9131 hardcode_direct_absolute=yes
9132 export_dynamic_flag_spec='${wl}-E'
9133 # hardcode_minus_L: Not really in the search PATH,
9134 # but as the default location of the library.
9135 hardcode_minus_L=yes
9140 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9143 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9149 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9161 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9165 if test "$with_gnu_ld" = no; then
9166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167 hardcode_libdir_separator=:
9172 hardcode_shlibpath_var=no
9176 hardcode_direct_absolute=yes
9177 export_dynamic_flag_spec='${wl}-E'
9179 # hardcode_minus_L: Not really in the search PATH,
9180 # but as the default location of the library.
9181 hardcode_minus_L=yes
9187 irix5* | irix6* | nonstopux*)
9188 if test "$GCC" = yes; then
9189 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'
9190 # Try to use the -exported_symbol ld option, if it does not
9191 # work, assume that -exports_file does not work either and
9192 # implicitly export all symbols.
9193 save_LDFLAGS="$LDFLAGS"
9194 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9195 cat >conftest.$ac_ext <<_ACEOF
9198 rm -f conftest.$ac_objext conftest$ac_exeext
9199 if { (ac_try="$ac_link"
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9205 $as_echo "$ac_try_echo") >&5
9206 (eval "$ac_link") 2>conftest.er1
9208 grep -v '^ *+' conftest.er1 >conftest.err
9210 cat conftest.err >&5
9211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } && {
9213 test -z "$ac_c_werror_flag" ||
9214 test ! -s conftest.err
9215 } && test -s conftest$ac_exeext && {
9216 test "$cross_compiling" = yes ||
9217 $as_test_x conftest$ac_exeext
9219 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'
9222 $as_echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9228 rm -rf conftest.dSYM
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LDFLAGS="$save_LDFLAGS"
9233 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'
9234 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'
9236 archive_cmds_need_lc='no'
9237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238 hardcode_libdir_separator=:
9240 link_all_deplibs=yes
9244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9245 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9247 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9249 hardcode_libdir_flag_spec='-R$libdir'
9251 hardcode_shlibpath_var=no
9255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9258 hardcode_libdir_separator=:
9259 hardcode_shlibpath_var=no
9266 if test -f /usr/libexec/ld.so; then
9268 hardcode_shlibpath_var=no
9269 hardcode_direct_absolute=yes
9270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9272 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9273 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9274 export_dynamic_flag_spec='${wl}-E'
9277 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9279 hardcode_libdir_flag_spec='-R$libdir'
9282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9293 hardcode_libdir_flag_spec='-L$libdir'
9294 hardcode_minus_L=yes
9295 allow_undefined_flag=unsupported
9296 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'
9297 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9301 if test "$GCC" = yes; then
9302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9303 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'
9305 allow_undefined_flag=' -expect_unresolved \*'
9306 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'
9308 archive_cmds_need_lc='no'
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 hardcode_libdir_separator=:
9313 osf4* | osf5*) # as osf3* with the addition of -msym flag
9314 if test "$GCC" = yes; then
9315 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9316 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'
9317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319 allow_undefined_flag=' -expect_unresolved \*'
9320 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'
9321 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~
9322 $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'
9324 # Both c and cxx compiler support -rpath directly
9325 hardcode_libdir_flag_spec='-rpath $libdir'
9327 archive_cmds_need_lc='no'
9328 hardcode_libdir_separator=:
9332 no_undefined_flag=' -z defs'
9333 if test "$GCC" = yes; then
9335 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9336 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9337 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9339 case `$CC -V 2>&1` in
9342 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9344 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9348 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9350 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9354 hardcode_libdir_flag_spec='-R$libdir'
9355 hardcode_shlibpath_var=no
9357 solaris2.[0-5] | solaris2.[0-5].*) ;;
9359 # The compiler driver will combine and reorder linker options,
9360 # but understands `-z linker_flag'. GCC discards it without `$wl',
9361 # but is careful enough not to reorder.
9362 # Supported since Solaris 2.6 (maybe 2.5.1?)
9363 if test "$GCC" = yes; then
9364 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9366 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9370 link_all_deplibs=yes
9374 if test "x$host_vendor" = xsequent; then
9375 # Use $CC to link under sequent, because it throws in some extra .o
9376 # files that make .init and .fini sections work.
9377 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9381 hardcode_libdir_flag_spec='-L$libdir'
9383 hardcode_minus_L=yes
9384 hardcode_shlibpath_var=no
9388 case $host_vendor in
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_direct=yes # is this really true???
9394 ## LD is ld it makes a PLAMLIB
9395 ## CC just makes a GrossModule.
9396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9397 reload_cmds='$CC -r -o $output$reload_objs'
9401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9405 runpath_var='LD_RUN_PATH'
9406 hardcode_shlibpath_var=no
9410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411 hardcode_shlibpath_var=no
9412 export_dynamic_flag_spec='-Bexport'
9416 if test -d /usr/nec; then
9417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9418 hardcode_shlibpath_var=no
9419 runpath_var=LD_RUN_PATH
9420 hardcode_runpath_var=yes
9425 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9426 no_undefined_flag='${wl}-z,text'
9427 archive_cmds_need_lc=no
9428 hardcode_shlibpath_var=no
9429 runpath_var='LD_RUN_PATH'
9431 if test "$GCC" = yes; then
9432 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 sysv5* | sco3.2v5* | sco5v6*)
9441 # Note: We can NOT use -z defs as we might desire, because we do not
9442 # link with -lc, and that would cause any symbols used from libc to
9443 # always be unresolved, which means just about no library would
9444 # ever link correctly. If we're not using GNU ld we use -z text
9445 # though, which does catch some bad symbols but isn't as heavy-handed
9447 no_undefined_flag='${wl}-z,text'
9448 allow_undefined_flag='${wl}-z,nodefs'
9449 archive_cmds_need_lc=no
9450 hardcode_shlibpath_var=no
9451 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9452 hardcode_libdir_separator=':'
9453 link_all_deplibs=yes
9454 export_dynamic_flag_spec='${wl}-Bexport'
9455 runpath_var='LD_RUN_PATH'
9457 if test "$GCC" = yes; then
9458 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_libdir_flag_spec='-L$libdir'
9469 hardcode_shlibpath_var=no
9477 if test x$host_vendor = xsni; then
9479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9480 export_dynamic_flag_spec='${wl}-Blargedynsym'
9486 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9487 $as_echo "$ld_shlibs" >&6; }
9488 test "$ld_shlibs" = no && can_build_shared=no
9490 with_gnu_ld=$with_gnu_ld
9507 # Do we need to explicitly link libc?
9509 case "x$archive_cmds_need_lc" in
9511 # Assume -lc should be added
9512 archive_cmds_need_lc=yes
9514 if test "$enable_shared" = yes && test "$GCC" = yes; then
9515 case $archive_cmds in
9517 # FIXME: we may have to deal with multi-command sequences.
9520 # Test whether the compiler implicitly links with -lc since on some
9521 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9522 # to ld, don't add -lc before -lgcc.
9523 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9524 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529 (eval $ac_compile) 2>&5
9531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } 2>conftest.err; then
9535 libobjs=conftest.$ac_objext
9537 wl=$lt_prog_compiler_wl
9538 pic_flag=$lt_prog_compiler_pic
9544 lt_save_allow_undefined_flag=$allow_undefined_flag
9545 allow_undefined_flag=
9546 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9547 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }
9552 archive_cmds_need_lc=no
9554 archive_cmds_need_lc=yes
9556 allow_undefined_flag=$lt_save_allow_undefined_flag
9558 cat conftest.err 1>&5
9561 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9562 $as_echo "$archive_cmds_need_lc" >&6; }
9725 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9726 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9728 if test "$GCC" = yes; then
9730 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9731 *) lt_awk_arg="/^libraries:/" ;;
9733 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9734 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9735 # if the path contains ";" then we assume it to be the separator
9736 # otherwise default to the standard path separator (i.e. ":") - it is
9737 # assumed that no part of a normal pathname contains ";" but that should
9738 # okay in the real world where ";" in dirpaths is itself problematic.
9739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9743 # Ok, now we have the path, separated by spaces, we can step through it
9744 # and add multilib dir if necessary.
9745 lt_tmp_lt_search_path_spec=
9746 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9747 for lt_sys_path in $lt_search_path_spec; do
9748 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9751 test -d "$lt_sys_path" && \
9752 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9755 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9756 BEGIN {RS=" "; FS="/|\n";} {
9759 for (lt_i = NF; lt_i > 0; lt_i--) {
9760 if ($lt_i != "" && $lt_i != ".") {
9761 if ($lt_i == "..") {
9764 if (lt_count == 0) {
9765 lt_foo="/" $lt_i lt_foo;
9772 if (lt_foo != "") { lt_freq[lt_foo]++; }
9773 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9775 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9780 libname_spec='lib$name'
9788 shlibpath_overrides_runpath=unknown
9790 dynamic_linker="$host_os ld.so"
9791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9792 need_lib_prefix=unknown
9793 hardcode_into_libs=no
9795 # when you set need_version to no, make sure it does not cause -set_version
9796 # flags to be left without arguments
9797 need_version=unknown
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9803 shlibpath_var=LIBPATH
9805 # AIX 3 has no versioning support, so we append a major version to the name.
9806 soname_spec='${libname}${release}${shared_ext}$major'
9813 hardcode_into_libs=yes
9814 if test "$host_cpu" = ia64; then
9815 # AIX 5 supports IA64
9816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9817 shlibpath_var=LD_LIBRARY_PATH
9819 # With GCC up to 2.95.x, collect2 would create an import file
9820 # for dependence libraries. The import file would start with
9821 # the line `#! .'. This would cause the generated library to
9822 # depend on `.', always an invalid library. This was fixed in
9823 # development snapshots of GCC prior to 3.0.
9825 aix4 | aix4.[01] | aix4.[01].*)
9826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9828 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9836 # soname into executable. Probably we can add versioning support to
9837 # collect2, so additional links can be useful in future.
9838 if test "$aix_use_runtimelinking" = yes; then
9839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9840 # instead of lib<name>.a to let people know that these are not
9841 # typical AIX shared libraries.
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 # We preserve .a as extension for shared libraries through AIX4.2
9845 # and later when we are not doing run time linking.
9846 library_names_spec='${libname}${release}.a $libname.a'
9847 soname_spec='${libname}${release}${shared_ext}$major'
9849 shlibpath_var=LIBPATH
9856 # Since July 2007 AmigaOS4 officially supports .so libraries.
9857 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 library_names_spec='$libname.ixlibrary $libname.a'
9862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9863 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'
9869 library_names_spec='${libname}${shared_ext}'
9870 dynamic_linker="$host_os ld.so"
9871 shlibpath_var=LIBRARY_PATH
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 soname_spec='${libname}${release}${shared_ext}$major'
9879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9883 # the default ld.so.conf also contains /usr/contrib/lib and
9884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9885 # libtool to hard-code these into programs
9888 cygwin* | mingw* | pw32* | cegcc*)
9889 version_type=windows
9894 case $GCC,$host_os in
9895 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9896 library_names_spec='$libname.dll.a'
9897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9898 postinstall_cmds='base_file=`basename \${file}`~
9899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9900 dldir=$destdir/`dirname \$dlpath`~
9901 test -d \$dldir || mkdir -p \$dldir~
9902 $install_prog $dir/$dlname \$dldir/$dlname~
9903 chmod a+x \$dldir/$dlname~
9904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9908 dlpath=$dir/\$dldll~
9910 shlibpath_overrides_runpath=yes
9914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9916 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9919 # MinGW DLLs use traditional 'lib' prefix
9920 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9921 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9922 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9923 # It is most probably a Windows format PATH printed by
9924 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9925 # path with ; separators, and with drive letters. We can handle the
9926 # drive letters (cygwin fileutils understands them), so leave them,
9927 # especially as we might pass files found there to a mingw objdump,
9928 # which wouldn't understand a cygwinified path. Ahh.
9929 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9935 # pw32 DLLs use 'pw' prefix rather than 'lib'
9936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9945 dynamic_linker='Win32 ld.exe'
9946 # FIXME: first we should search . and the directory the executable is in
9950 darwin* | rhapsody*)
9951 dynamic_linker="$host_os dyld"
9955 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9956 soname_spec='${libname}${release}${major}$shared_ext'
9957 shlibpath_overrides_runpath=yes
9958 shlibpath_var=DYLD_LIBRARY_PATH
9959 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9961 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 shlibpath_var=LD_LIBRARY_PATH
9978 freebsd* | dragonfly*)
9979 # DragonFly does not have aout. When/if they implement a new
9980 # versioning mechanism, adjust this.
9981 if test -x /usr/bin/objformat; then
9982 objformat=`/usr/bin/objformat`
9985 freebsd[123]*) objformat=aout ;;
9989 version_type=freebsd-$objformat
9990 case $version_type in
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10001 shlibpath_var=LD_LIBRARY_PATH
10004 shlibpath_overrides_runpath=yes
10006 freebsd3.[01]* | freebsdelf3.[01]*)
10007 shlibpath_overrides_runpath=yes
10008 hardcode_into_libs=yes
10010 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10011 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10012 shlibpath_overrides_runpath=no
10013 hardcode_into_libs=yes
10015 *) # from 4.6 on, and DragonFly
10016 shlibpath_overrides_runpath=yes
10017 hardcode_into_libs=yes
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 hardcode_into_libs=yes
10032 hpux9* | hpux10* | hpux11*)
10033 # Give a soname corresponding to the major version so that dld.sl refuses to
10034 # link against other versions.
10041 hardcode_into_libs=yes
10042 dynamic_linker="$host_os dld.so"
10043 shlibpath_var=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 if test "X$HPUX_IA64_MODE" = X32; then
10048 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10050 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10056 hardcode_into_libs=yes
10057 dynamic_linker="$host_os dld.sl"
10058 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10067 dynamic_linker="$host_os dld.sl"
10068 shlibpath_var=SHLIB_PATH
10069 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10074 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10075 postinstall_cmds='chmod 555 $lib'
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=no
10087 hardcode_into_libs=yes
10090 irix5* | irix6* | nonstopux*)
10092 nonstopux*) version_type=nonstopux ;;
10094 if test "$lt_cv_prog_gnu_ld" = yes; then
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10105 irix5* | nonstopux*)
10106 libsuff= shlibsuff=
10109 case $LD in # libtool.m4 will add one of these switches to LD
10110 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10111 libsuff= shlibsuff= libmagic=32-bit;;
10112 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10113 libsuff=32 shlibsuff=N32 libmagic=N32;;
10114 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10115 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10116 *) libsuff= shlibsuff= libmagic=never-match;;
10120 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10121 shlibpath_overrides_runpath=no
10122 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10123 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10124 hardcode_into_libs=yes
10127 # No shared lib support for Linux oldld, aout, or coff.
10128 linux*oldld* | linux*aout* | linux*coff*)
10132 # This must be Linux ELF.
10133 linux* | k*bsd*-gnu)
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10140 shlibpath_var=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath=no
10142 # Some binutils ld are patched to set DT_RUNPATH
10143 save_LDFLAGS=$LDFLAGS
10144 save_libdir=$libdir
10145 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10146 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10162 rm -f conftest.$ac_objext conftest$ac_exeext
10163 if { (ac_try="$ac_link"
10164 case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169 $as_echo "$ac_try_echo") >&5
10170 (eval "$ac_link") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext && {
10180 test "$cross_compiling" = yes ||
10181 $as_test_x conftest$ac_exeext
10183 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10184 shlibpath_overrides_runpath=yes
10188 $as_echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10194 rm -rf conftest.dSYM
10195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10196 conftest$ac_exeext conftest.$ac_ext
10197 LDFLAGS=$save_LDFLAGS
10198 libdir=$save_libdir
10200 # This implies no fast_install, which is unacceptable.
10201 # Some rework will be needed to allow for fast_install
10202 # before this can be enabled.
10203 hardcode_into_libs=yes
10205 # Add ABI-specific directories to the system library path.
10206 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10208 # Append ld.so.conf contents to the search path
10209 if test -f /etc/ld.so.conf; then
10210 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10211 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10214 # We used to test for /lib/ld.so.1 and disable shared libraries on
10215 # powerpc, because MkLinux only supported shared libraries with the
10216 # GNU dynamic linker. Since this was broken with cross compilers,
10217 # most powerpc-linux boxes support dynamic linking these days and
10218 # people can always --disable-shared, the test was removed, and we
10219 # assume the GNU/Linux dynamic linker is in use.
10220 dynamic_linker='GNU/Linux ld.so'
10227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10230 dynamic_linker='NetBSD (a.out) ld.so'
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 dynamic_linker='NetBSD ld.elf_so'
10236 shlibpath_var=LD_LIBRARY_PATH
10237 shlibpath_overrides_runpath=yes
10238 hardcode_into_libs=yes
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=yes
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 shlibpath_overrides_runpath=no
10256 hardcode_into_libs=yes
10257 dynamic_linker='ldqnx.so'
10262 sys_lib_dlsearch_path_spec="/usr/lib"
10264 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10266 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10267 *) need_version=no ;;
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10274 openbsd2.[89] | openbsd2.[89].*)
10275 shlibpath_overrides_runpath=no
10278 shlibpath_overrides_runpath=yes
10282 shlibpath_overrides_runpath=yes
10287 libname_spec='$name'
10290 library_names_spec='$libname${shared_ext} $libname.a'
10291 dynamic_linker='OS/2 ld.exe'
10292 shlibpath_var=LIBPATH
10295 osf3* | osf4* | osf5*)
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10303 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 shlibpath_var=LD_LIBRARY_PATH
10317 shlibpath_overrides_runpath=yes
10318 hardcode_into_libs=yes
10319 # ldd complains unless libraries are executable
10320 postinstall_cmds='chmod +x $lib'
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 shlibpath_overrides_runpath=yes
10329 if test "$with_gnu_ld" = yes; then
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 case $host_vendor in
10342 shlibpath_overrides_runpath=no
10344 runpath_var=LD_RUN_PATH
10352 shlibpath_overrides_runpath=no
10353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10359 if test -d /usr/nec ;then
10361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10362 soname_spec='$libname${shared_ext}.$major'
10363 shlibpath_var=LD_LIBRARY_PATH
10367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10368 version_type=freebsd-elf
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=yes
10375 hardcode_into_libs=yes
10376 if test "$with_gnu_ld" = yes; then
10377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10382 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10386 sys_lib_dlsearch_path_spec='/usr/lib'
10390 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 shlibpath_overrides_runpath=no
10397 hardcode_into_libs=yes
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10403 soname_spec='${libname}${release}${shared_ext}$major'
10404 shlibpath_var=LD_LIBRARY_PATH
10411 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10412 $as_echo "$dynamic_linker" >&6; }
10413 test "$dynamic_linker" = no && can_build_shared=no
10415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10416 if test "$GCC" = yes; then
10417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10420 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10421 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10423 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10424 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10513 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10514 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10516 if test -n "$hardcode_libdir_flag_spec" ||
10517 test -n "$runpath_var" ||
10518 test "X$hardcode_automatic" = "Xyes" ; then
10520 # We can hardcode non-existent directories.
10521 if test "$hardcode_direct" != no &&
10522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10523 # have to relink, otherwise we might link with an installed library
10524 # when we should be linking with a yet-to-be-installed one
10525 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10526 test "$hardcode_minus_L" != no; then
10527 # Linking always hardcodes the temporary library directory.
10528 hardcode_action=relink
10530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10531 hardcode_action=immediate
10534 # We cannot hardcode anything, or else we can only hardcode existing
10536 hardcode_action=unsupported
10538 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10539 $as_echo "$hardcode_action" >&6; }
10541 if test "$hardcode_action" = relink ||
10542 test "$inherit_rpath" = yes; then
10543 # Fast installation is not supported
10544 enable_fast_install=no
10545 elif test "$shlibpath_overrides_runpath" = yes ||
10546 test "$enable_shared" = no; then
10547 # Fast installation is not necessary
10548 enable_fast_install=needless
10556 if test "x$enable_dlopen" != xyes; then
10557 enable_dlopen=unknown
10558 enable_dlopen_self=unknown
10559 enable_dlopen_self_static=unknown
10566 lt_cv_dlopen="load_add_on"
10568 lt_cv_dlopen_self=yes
10571 mingw* | pw32* | cegcc*)
10572 lt_cv_dlopen="LoadLibrary"
10577 lt_cv_dlopen="dlopen"
10582 # if libdl is installed we need to link against it
10583 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10584 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10586 $as_echo_n "(cached) " >&6
10588 ac_check_lib_save_LIBS=$LIBS
10590 cat >conftest.$ac_ext <<_ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (ac_try="$ac_link"
10614 case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10619 $as_echo "$ac_try_echo") >&5
10620 (eval "$ac_link") 2>conftest.er1
10622 grep -v '^ *+' conftest.er1 >conftest.err
10624 cat conftest.err >&5
10625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && {
10627 test -z "$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 } && test -s conftest$ac_exeext && {
10630 test "$cross_compiling" = yes ||
10631 $as_test_x conftest$ac_exeext
10633 ac_cv_lib_dl_dlopen=yes
10635 $as_echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 ac_cv_lib_dl_dlopen=no
10641 rm -rf conftest.dSYM
10642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS=$ac_check_lib_save_LIBS
10646 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10648 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10652 lt_cv_dlopen="dyld"
10654 lt_cv_dlopen_self=yes
10661 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10662 $as_echo_n "checking for shl_load... " >&6; }
10663 if test "${ac_cv_func_shl_load+set}" = set; then
10664 $as_echo_n "(cached) " >&6
10666 cat >conftest.$ac_ext <<_ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10674 #define shl_load innocuous_shl_load
10676 /* System header to define __stub macros and hopefully few prototypes,
10677 which can conflict with char shl_load (); below.
10678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10679 <limits.h> exists even on freestanding compilers. */
10682 # include <limits.h>
10684 # include <assert.h>
10689 /* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10696 /* The GNU C library defines this for functions which it implements
10697 to always fail with ENOSYS. Some functions are actually named
10698 something starting with __ and the normal name is an alias. */
10699 #if defined __stub_shl_load || defined __stub___shl_load
10706 return shl_load ();
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10718 $as_echo "$ac_try_echo") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext && {
10729 test "$cross_compiling" = yes ||
10730 $as_test_x conftest$ac_exeext
10732 ac_cv_func_shl_load=yes
10734 $as_echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10737 ac_cv_func_shl_load=no
10740 rm -rf conftest.dSYM
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10744 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10745 $as_echo "$ac_cv_func_shl_load" >&6; }
10746 if test "x$ac_cv_func_shl_load" = x""yes; then
10747 lt_cv_dlopen="shl_load"
10749 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10750 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10751 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10752 $as_echo_n "(cached) " >&6
10754 ac_check_lib_save_LIBS=$LIBS
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10773 return shl_load ();
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (ac_try="$ac_link"
10780 case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10785 $as_echo "$ac_try_echo") >&5
10786 (eval "$ac_link") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest$ac_exeext && {
10796 test "$cross_compiling" = yes ||
10797 $as_test_x conftest$ac_exeext
10799 ac_cv_lib_dld_shl_load=yes
10801 $as_echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ac_cv_lib_dld_shl_load=no
10807 rm -rf conftest.dSYM
10808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10812 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10813 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10814 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10815 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10817 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10818 $as_echo_n "checking for dlopen... " >&6; }
10819 if test "${ac_cv_func_dlopen+set}" = set; then
10820 $as_echo_n "(cached) " >&6
10822 cat >conftest.$ac_ext <<_ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10828 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10830 #define dlopen innocuous_dlopen
10832 /* System header to define __stub macros and hopefully few prototypes,
10833 which can conflict with char dlopen (); below.
10834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10835 <limits.h> exists even on freestanding compilers. */
10838 # include <limits.h>
10840 # include <assert.h>
10845 /* Override any GCC internal prototype to avoid an error.
10846 Use char because int might match the return type of a GCC
10847 builtin and then its argument prototype would still apply. */
10852 /* The GNU C library defines this for functions which it implements
10853 to always fail with ENOSYS. Some functions are actually named
10854 something starting with __ and the normal name is an alias. */
10855 #if defined __stub_dlopen || defined __stub___dlopen
10867 rm -f conftest.$ac_objext conftest$ac_exeext
10868 if { (ac_try="$ac_link"
10869 case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10874 $as_echo "$ac_try_echo") >&5
10875 (eval "$ac_link") 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest$ac_exeext && {
10885 test "$cross_compiling" = yes ||
10886 $as_test_x conftest$ac_exeext
10888 ac_cv_func_dlopen=yes
10890 $as_echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_cv_func_dlopen=no
10896 rm -rf conftest.dSYM
10897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10898 conftest$ac_exeext conftest.$ac_ext
10900 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10901 $as_echo "$ac_cv_func_dlopen" >&6; }
10902 if test "x$ac_cv_func_dlopen" = x""yes; then
10903 lt_cv_dlopen="dlopen"
10905 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10908 $as_echo_n "(cached) " >&6
10910 ac_check_lib_save_LIBS=$LIBS
10912 cat >conftest.$ac_ext <<_ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10919 /* Override any GCC internal prototype to avoid an error.
10920 Use char because int might match the return type of a GCC
10921 builtin and then its argument prototype would still apply. */
10934 rm -f conftest.$ac_objext conftest$ac_exeext
10935 if { (ac_try="$ac_link"
10936 case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942 (eval "$ac_link") 2>conftest.er1
10944 grep -v '^ *+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } && {
10949 test -z "$ac_c_werror_flag" ||
10950 test ! -s conftest.err
10951 } && test -s conftest$ac_exeext && {
10952 test "$cross_compiling" = yes ||
10953 $as_test_x conftest$ac_exeext
10955 ac_cv_lib_dl_dlopen=yes
10957 $as_echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10960 ac_cv_lib_dl_dlopen=no
10963 rm -rf conftest.dSYM
10964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10968 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10970 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10973 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10974 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10975 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10976 $as_echo_n "(cached) " >&6
10978 ac_check_lib_save_LIBS=$LIBS
10979 LIBS="-lsvld $LIBS"
10980 cat >conftest.$ac_ext <<_ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
11002 rm -f conftest.$ac_objext conftest$ac_exeext
11003 if { (ac_try="$ac_link"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11009 $as_echo "$ac_try_echo") >&5
11010 (eval "$ac_link") 2>conftest.er1
11012 grep -v '^ *+' conftest.er1 >conftest.err
11014 cat conftest.err >&5
11015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } && {
11017 test -z "$ac_c_werror_flag" ||
11018 test ! -s conftest.err
11019 } && test -s conftest$ac_exeext && {
11020 test "$cross_compiling" = yes ||
11021 $as_test_x conftest$ac_exeext
11023 ac_cv_lib_svld_dlopen=yes
11025 $as_echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 ac_cv_lib_svld_dlopen=no
11031 rm -rf conftest.dSYM
11032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11033 conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11036 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11037 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11038 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11041 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11042 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11043 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11044 $as_echo_n "(cached) " >&6
11046 ac_check_lib_save_LIBS=$LIBS
11048 cat >conftest.$ac_ext <<_ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11065 return dld_link ();
11070 rm -f conftest.$ac_objext conftest$ac_exeext
11071 if { (ac_try="$ac_link"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11077 $as_echo "$ac_try_echo") >&5
11078 (eval "$ac_link") 2>conftest.er1
11080 grep -v '^ *+' conftest.er1 >conftest.err
11082 cat conftest.err >&5
11083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest$ac_exeext && {
11088 test "$cross_compiling" = yes ||
11089 $as_test_x conftest$ac_exeext
11091 ac_cv_lib_dld_dld_link=yes
11093 $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 ac_cv_lib_dld_dld_link=no
11099 rm -rf conftest.dSYM
11100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11104 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11105 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11106 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11107 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11128 if test "x$lt_cv_dlopen" != xno; then
11134 case $lt_cv_dlopen in
11136 save_CPPFLAGS="$CPPFLAGS"
11137 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11139 save_LDFLAGS="$LDFLAGS"
11140 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11143 LIBS="$lt_cv_dlopen_libs $LIBS"
11145 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11146 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11147 if test "${lt_cv_dlopen_self+set}" = set; then
11148 $as_echo_n "(cached) " >&6
11150 if test "$cross_compiling" = yes; then :
11151 lt_cv_dlopen_self=cross
11153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11154 lt_status=$lt_dlunknown
11155 cat > conftest.$ac_ext <<_LT_EOF
11156 #line 11156 "configure"
11157 #include "confdefs.h"
11166 # define LT_DLGLOBAL RTLD_GLOBAL
11169 # define LT_DLGLOBAL DL_GLOBAL
11171 # define LT_DLGLOBAL 0
11175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11176 find out it does not work in some platform. */
11177 #ifndef LT_DLLAZY_OR_NOW
11179 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11182 # define LT_DLLAZY_OR_NOW DL_LAZY
11185 # define LT_DLLAZY_OR_NOW RTLD_NOW
11188 # define LT_DLLAZY_OR_NOW DL_NOW
11190 # define LT_DLLAZY_OR_NOW 0
11197 void fnord() { int i=42;}
11200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11201 int status = $lt_dlunknown;
11205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11206 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11207 /* dlclose (self); */
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>&5
11218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11220 (./conftest; exit; ) >&5 2>/dev/null
11222 case x$lt_status in
11223 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11224 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11225 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11228 # compilation failed
11229 lt_cv_dlopen_self=no
11236 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11237 $as_echo "$lt_cv_dlopen_self" >&6; }
11239 if test "x$lt_cv_dlopen_self" = xyes; then
11240 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11241 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11242 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11243 if test "${lt_cv_dlopen_self_static+set}" = set; then
11244 $as_echo_n "(cached) " >&6
11246 if test "$cross_compiling" = yes; then :
11247 lt_cv_dlopen_self_static=cross
11249 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11250 lt_status=$lt_dlunknown
11251 cat > conftest.$ac_ext <<_LT_EOF
11252 #line 11252 "configure"
11253 #include "confdefs.h"
11262 # define LT_DLGLOBAL RTLD_GLOBAL
11265 # define LT_DLGLOBAL DL_GLOBAL
11267 # define LT_DLGLOBAL 0
11271 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11272 find out it does not work in some platform. */
11273 #ifndef LT_DLLAZY_OR_NOW
11275 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11278 # define LT_DLLAZY_OR_NOW DL_LAZY
11281 # define LT_DLLAZY_OR_NOW RTLD_NOW
11284 # define LT_DLLAZY_OR_NOW DL_NOW
11286 # define LT_DLLAZY_OR_NOW 0
11293 void fnord() { int i=42;}
11296 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11297 int status = $lt_dlunknown;
11301 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11302 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11303 /* dlclose (self); */
11311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11312 (eval $ac_link) 2>&5
11314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11316 (./conftest; exit; ) >&5 2>/dev/null
11318 case x$lt_status in
11319 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11320 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11321 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11324 # compilation failed
11325 lt_cv_dlopen_self_static=no
11332 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11333 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11336 CPPFLAGS="$save_CPPFLAGS"
11337 LDFLAGS="$save_LDFLAGS"
11342 case $lt_cv_dlopen_self in
11343 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11344 *) enable_dlopen_self=unknown ;;
11347 case $lt_cv_dlopen_self_static in
11348 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11349 *) enable_dlopen_self_static=unknown ;;
11371 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11372 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11373 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11374 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11375 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11376 { $as_echo "$as_me:$LINENO: result: yes" >&5
11377 $as_echo "yes" >&6; }
11379 # FIXME - insert some real tests, host_os isn't really good enough
11382 if test -n "$STRIP" ; then
11383 striplib="$STRIP -x"
11384 old_striplib="$STRIP -S"
11385 { $as_echo "$as_me:$LINENO: result: yes" >&5
11386 $as_echo "yes" >&6; }
11388 { $as_echo "$as_me:$LINENO: result: no" >&5
11389 $as_echo "no" >&6; }
11393 { $as_echo "$as_me:$LINENO: result: no" >&5
11394 $as_echo "no" >&6; }
11410 # Report which library types will actually be built
11411 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11412 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11413 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11414 $as_echo "$can_build_shared" >&6; }
11416 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11417 $as_echo_n "checking whether to build shared libraries... " >&6; }
11418 test "$can_build_shared" = "no" && enable_shared=no
11420 # On AIX, shared libraries and static libraries use the same namespace, and
11421 # are all built from PIC.
11424 test "$enable_shared" = yes && enable_static=no
11425 if test -n "$RANLIB"; then
11426 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11427 postinstall_cmds='$RANLIB $lib'
11432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11433 test "$enable_shared" = yes && enable_static=no
11437 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11438 $as_echo "$enable_shared" >&6; }
11440 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11441 $as_echo_n "checking whether to build static libraries... " >&6; }
11442 # Make sure either enable_shared or enable_static is yes.
11443 test "$enable_shared" = yes || enable_static=yes
11444 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11445 $as_echo "$enable_static" >&6; }
11452 ac_cpp='$CPP $CPPFLAGS'
11453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11471 ac_config_commands="$ac_config_commands libtool"
11476 # Only expand once:
11482 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11483 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11484 # Check whether --enable-maintainer-mode was given.
11485 if test "${enable_maintainer_mode+set}" = set; then
11486 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11488 USE_MAINTAINER_MODE=no
11491 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11492 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11493 if test $USE_MAINTAINER_MODE = yes; then
11494 MAINTAINER_MODE_TRUE=
11495 MAINTAINER_MODE_FALSE='#'
11497 MAINTAINER_MODE_TRUE='#'
11498 MAINTAINER_MODE_FALSE=
11501 MAINT=$MAINTAINER_MODE_TRUE
11506 for ac_header in sys/mman.h
11508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11510 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11511 $as_echo_n "checking for $ac_header... " >&6; }
11512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513 $as_echo_n "(cached) " >&6
11515 ac_res=`eval 'as_val=${'$as_ac_Header'}
11516 $as_echo "$as_val"'`
11517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11518 $as_echo "$ac_res" >&6; }
11520 # Is the header compilable?
11521 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522 $as_echo_n "checking $ac_header usability... " >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #include <$ac_header>
11532 rm -f conftest.$ac_objext
11533 if { (ac_try="$ac_compile"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11539 $as_echo "$ac_try_echo") >&5
11540 (eval "$ac_compile") 2>conftest.er1
11542 grep -v '^ *+' conftest.er1 >conftest.err
11544 cat conftest.err >&5
11545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest.$ac_objext; then
11550 ac_header_compiler=yes
11552 $as_echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11555 ac_header_compiler=no
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11560 $as_echo "$ac_header_compiler" >&6; }
11562 # Is the header present?
11563 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11564 $as_echo_n "checking $ac_header presence... " >&6; }
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 #include <$ac_header>
11573 if { (ac_try="$ac_cpp conftest.$ac_ext"
11574 case "(($ac_try" in
11575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11579 $as_echo "$ac_try_echo") >&5
11580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11582 grep -v '^ *+' conftest.er1 >conftest.err
11584 cat conftest.err >&5
11585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } >/dev/null && {
11587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11588 test ! -s conftest.err
11590 ac_header_preproc=yes
11592 $as_echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ac_header_preproc=no
11598 rm -f conftest.err conftest.$ac_ext
11599 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11600 $as_echo "$ac_header_preproc" >&6; }
11602 # So? What about this header?
11603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11609 ac_header_preproc=yes
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11625 ## ------------------------------------------------ ##
11626 ## Report this to http://sourceware.org/libffi.html ##
11627 ## ------------------------------------------------ ##
11629 ) | sed "s/^/$as_me: WARNING: /" >&2
11632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 $as_echo_n "checking for $ac_header... " >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 $as_echo_n "(cached) " >&6
11637 eval "$as_ac_Header=\$ac_header_preproc"
11639 ac_res=`eval 'as_val=${'$as_ac_Header'}
11640 $as_echo "$as_val"'`
11641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11642 $as_echo "$ac_res" >&6; }
11645 as_val=`eval 'as_val=${'$as_ac_Header'}
11646 $as_echo "$as_val"'`
11647 if test "x$as_val" = x""yes; then
11648 cat >>confdefs.h <<_ACEOF
11649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11657 for ac_func in mmap
11659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11661 $as_echo_n "checking for $ac_func... " >&6; }
11662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11663 $as_echo_n "(cached) " >&6
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11673 #define $ac_func innocuous_$ac_func
11675 /* System header to define __stub macros and hopefully few prototypes,
11676 which can conflict with char $ac_func (); below.
11677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678 <limits.h> exists even on freestanding compilers. */
11681 # include <limits.h>
11683 # include <assert.h>
11688 /* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11695 /* The GNU C library defines this for functions which it implements
11696 to always fail with ENOSYS. Some functions are actually named
11697 something starting with __ and the normal name is an alias. */
11698 #if defined __stub_$ac_func || defined __stub___$ac_func
11705 return $ac_func ();
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (ac_try="$ac_link"
11712 case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11717 $as_echo "$ac_try_echo") >&5
11718 (eval "$ac_link") 2>conftest.er1
11720 grep -v '^ *+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && {
11725 test -z "$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11727 } && test -s conftest$ac_exeext && {
11728 test "$cross_compiling" = yes ||
11729 $as_test_x conftest$ac_exeext
11731 eval "$as_ac_var=yes"
11733 $as_echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 eval "$as_ac_var=no"
11739 rm -rf conftest.dSYM
11740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11741 conftest$ac_exeext conftest.$ac_ext
11743 ac_res=`eval 'as_val=${'$as_ac_var'}
11744 $as_echo "$as_val"'`
11745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11746 $as_echo "$ac_res" >&6; }
11747 as_val=`eval 'as_val=${'$as_ac_var'}
11748 $as_echo "$as_val"'`
11749 if test "x$as_val" = x""yes; then
11750 cat >>confdefs.h <<_ACEOF
11751 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11758 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11759 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11760 $as_echo_n "checking for sys/mman.h... " >&6; }
11761 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11762 $as_echo_n "(cached) " >&6
11764 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11765 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11767 # Is the header compilable?
11768 { $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
11769 $as_echo_n "checking sys/mman.h usability... " >&6; }
11770 cat >conftest.$ac_ext <<_ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 #include <sys/mman.h>
11779 rm -f conftest.$ac_objext
11780 if { (ac_try="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11786 $as_echo "$ac_try_echo") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest.$ac_objext; then
11797 ac_header_compiler=yes
11799 $as_echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 ac_header_compiler=no
11805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11807 $as_echo "$ac_header_compiler" >&6; }
11809 # Is the header present?
11810 { $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
11811 $as_echo_n "checking sys/mman.h presence... " >&6; }
11812 cat >conftest.$ac_ext <<_ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 #include <sys/mman.h>
11820 if { (ac_try="$ac_cpp conftest.$ac_ext"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11826 $as_echo "$ac_try_echo") >&5
11827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11829 grep -v '^ *+' conftest.er1 >conftest.err
11831 cat conftest.err >&5
11832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } >/dev/null && {
11834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11835 test ! -s conftest.err
11837 ac_header_preproc=yes
11839 $as_echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 ac_header_preproc=no
11845 rm -f conftest.err conftest.$ac_ext
11846 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11847 $as_echo "$ac_header_preproc" >&6; }
11849 # So? What about this header?
11850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11852 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
11853 $as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11854 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
11855 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
11856 ac_header_preproc=yes
11859 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
11860 $as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
11861 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
11862 $as_echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
11863 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
11864 $as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
11865 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
11866 $as_echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
11867 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
11868 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
11869 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
11870 $as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
11872 ## ------------------------------------------------ ##
11873 ## Report this to http://sourceware.org/libffi.html ##
11874 ## ------------------------------------------------ ##
11876 ) | sed "s/^/$as_me: WARNING: /" >&2
11879 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11880 $as_echo_n "checking for sys/mman.h... " >&6; }
11881 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11882 $as_echo_n "(cached) " >&6
11884 ac_cv_header_sys_mman_h=$ac_header_preproc
11886 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11887 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11890 if test "x$ac_cv_header_sys_mman_h" = x""yes; then
11891 libffi_header_sys_mman_h=yes
11893 libffi_header_sys_mman_h=no
11897 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
11898 $as_echo_n "checking for mmap... " >&6; }
11899 if test "${ac_cv_func_mmap+set}" = set; then
11900 $as_echo_n "(cached) " >&6
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11910 #define mmap innocuous_mmap
11912 /* System header to define __stub macros and hopefully few prototypes,
11913 which can conflict with char mmap (); below.
11914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11915 <limits.h> exists even on freestanding compilers. */
11918 # include <limits.h>
11920 # include <assert.h>
11925 /* Override any GCC internal prototype to avoid an error.
11926 Use char because int might match the return type of a GCC
11927 builtin and then its argument prototype would still apply. */
11932 /* The GNU C library defines this for functions which it implements
11933 to always fail with ENOSYS. Some functions are actually named
11934 something starting with __ and the normal name is an alias. */
11935 #if defined __stub_mmap || defined __stub___mmap
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (ac_try="$ac_link"
11949 case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11954 $as_echo "$ac_try_echo") >&5
11955 (eval "$ac_link") 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } && {
11962 test -z "$ac_c_werror_flag" ||
11963 test ! -s conftest.err
11964 } && test -s conftest$ac_exeext && {
11965 test "$cross_compiling" = yes ||
11966 $as_test_x conftest$ac_exeext
11968 ac_cv_func_mmap=yes
11970 $as_echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11976 rm -rf conftest.dSYM
11977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11978 conftest$ac_exeext conftest.$ac_ext
11980 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11981 $as_echo "$ac_cv_func_mmap" >&6; }
11982 if test "x$ac_cv_func_mmap" = x""yes; then
11983 libffi_func_mmap=yes
11985 libffi_func_mmap=no
11988 if test "$libffi_header_sys_mman_h" != yes \
11989 || test "$libffi_func_mmap" != yes; then
11990 ac_cv_func_mmap_file=no
11991 ac_cv_func_mmap_dev_zero=no
11992 ac_cv_func_mmap_anon=no
11994 { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11995 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11996 if test "${ac_cv_func_mmap_file+set}" = set; then
11997 $as_echo_n "(cached) " >&6
11999 # Add a system to this blacklist if
12000 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
12001 # memory area containing the same data that you'd get if you applied
12002 # read() to the same fd. The only system known to have a problem here
12003 # is VMS, where text files have record structure.
12006 ac_cv_func_mmap_file=no ;;
12008 ac_cv_func_mmap_file=yes;;
12011 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12012 $as_echo "$ac_cv_func_mmap_file" >&6; }
12013 { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12014 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12015 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12016 $as_echo_n "(cached) " >&6
12018 # Add a system to this blacklist if it has mmap() but /dev/zero
12019 # does not exist, or if mmapping /dev/zero does not give anonymous
12020 # zeroed pages with both the following properties:
12021 # 1. If you map N consecutive pages in with one call, and then
12022 # unmap any subset of those pages, the pages that were not
12023 # explicitly unmapped remain accessible.
12024 # 2. If you map two adjacent blocks of memory and then unmap them
12025 # both at once, they must both go away.
12026 # Systems known to be in this category are Windows (all variants),
12029 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12030 ac_cv_func_mmap_dev_zero=no ;;
12032 ac_cv_func_mmap_dev_zero=yes;;
12035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12036 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12038 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12039 { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12040 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12041 if test "${ac_cv_decl_map_anon+set}" = set; then
12042 $as_echo_n "(cached) " >&6
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 #include <sys/types.h>
12051 #include <sys/mman.h>
12052 #include <unistd.h>
12054 #ifndef MAP_ANONYMOUS
12055 #define MAP_ANONYMOUS MAP_ANON
12061 int n = MAP_ANONYMOUS;
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073 $as_echo "$ac_try_echo") >&5
12074 (eval "$ac_compile") 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest.$ac_objext; then
12084 ac_cv_decl_map_anon=yes
12086 $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 ac_cv_decl_map_anon=no
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12095 $as_echo "$ac_cv_decl_map_anon" >&6; }
12097 if test $ac_cv_decl_map_anon = no; then
12098 ac_cv_func_mmap_anon=no
12100 { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12101 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12102 if test "${ac_cv_func_mmap_anon+set}" = set; then
12103 $as_echo_n "(cached) " >&6
12105 # Add a system to this blacklist if it has mmap() and MAP_ANON or
12106 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12107 # doesn't give anonymous zeroed pages with the same properties listed
12108 # above for use of /dev/zero.
12109 # Systems known to be in this category are Windows, VMS, and SCO Unix.
12111 vms* | cygwin* | pe | mingw* | sco* | udk* )
12112 ac_cv_func_mmap_anon=no ;;
12114 ac_cv_func_mmap_anon=yes;;
12117 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12118 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12122 if test $ac_cv_func_mmap_file = yes; then
12124 cat >>confdefs.h <<\_ACEOF
12125 #define HAVE_MMAP_FILE 1
12129 if test $ac_cv_func_mmap_dev_zero = yes; then
12131 cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_MMAP_DEV_ZERO 1
12136 if test $ac_cv_func_mmap_anon = yes; then
12138 cat >>confdefs.h <<\_ACEOF
12139 #define HAVE_MMAP_ANON 1
12145 if test -d $srcdir/testsuite; then
12147 TESTSUBDIR_FALSE='#'
12149 TESTSUBDIR_TRUE='#'
12154 TARGETDIR="unknown"
12157 TARGET=ALPHA; TARGETDIR=alpha;
12158 # Support 128-bit long double, changeable via command-line switch.
12159 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12163 TARGET=ARM; TARGETDIR=arm
12166 amd64-*-freebsd* | amd64-*-openbsd*)
12167 TARGET=X86_64; TARGETDIR=x86
12171 TARGET=X86_64; TARGETDIR=x86
12175 TARGET=AVR32; TARGETDIR=avr32
12179 TARGET=LIBFFI_CRIS; TARGETDIR=cris
12183 TARGET=FRV; TARGETDIR=frv
12186 hppa*-*-linux* | parisc*-*-linux*)
12187 TARGET=PA_LINUX; TARGETDIR=pa
12190 TARGET=PA64_HPUX; TARGETDIR=pa
12193 TARGET=PA_HPUX; TARGETDIR=pa
12196 i?86-*-freebsd* | i?86-*-openbsd*)
12197 TARGET=X86_FREEBSD; TARGETDIR=x86
12199 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
12200 TARGET=X86_WIN32; TARGETDIR=x86
12201 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12202 # We must also check with_cross_host to decide if this is a native
12203 # or cross-build and select where to install dlls appropriately.
12204 if test -n "$with_cross_host" &&
12205 test x"$with_cross_host" != x"no"; then
12206 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12208 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12212 TARGET=X86_DARWIN; TARGETDIR=x86
12214 i?86-*-solaris2.1[0-9]*)
12215 TARGET=X86_64; TARGETDIR=x86
12218 TARGET=X86; TARGETDIR=x86
12222 TARGET=IA64; TARGETDIR=ia64
12226 TARGET=M32R; TARGETDIR=m32r
12230 TARGET=M68K; TARGETDIR=m68k
12233 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
12234 TARGET=MIPS; TARGETDIR=mips
12237 # Support 128-bit long double for NewABI.
12238 HAVE_LONG_DOUBLE='defined(__mips64)'
12239 TARGET=MIPS; TARGETDIR=mips
12242 powerpc*-*-linux* | powerpc-*-sysv*)
12243 TARGET=POWERPC; TARGETDIR=powerpc
12246 TARGET=POWERPC; TARGETDIR=powerpc
12248 powerpc-*-darwin* | powerpc64-*-darwin*)
12249 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12251 powerpc-*-aix* | rs6000-*-aix*)
12252 TARGET=POWERPC_AIX; TARGETDIR=powerpc
12254 powerpc-*-freebsd*)
12255 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12257 powerpc64-*-freebsd*)
12258 TARGET=POWERPC; TARGETDIR=powerpc
12261 TARGET=POWERPC; TARGETDIR=powerpc
12264 s390-*-* | s390x-*-*)
12265 TARGET=S390; TARGETDIR=s390
12268 sh-*-* | sh[34]*-*-*)
12269 TARGET=SH; TARGETDIR=sh
12271 sh64-*-* | sh5*-*-*)
12272 TARGET=SH64; TARGETDIR=sh64
12276 TARGET=SPARC; TARGETDIR=sparc
12280 TARGET=X86_DARWIN; TARGETDIR=x86
12283 x86_64-*-cygwin* | x86_64-*-mingw*)
12284 TARGET=X86_WIN64; TARGETDIR=x86
12288 TARGET=X86_64; TARGETDIR=x86
12295 if test $TARGETDIR = unknown; then
12296 { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
12297 $as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
12298 { (exit 1); exit 1; }; }
12301 if test x$TARGET = xMIPS; then
12309 if test x$TARGET = xSPARC; then
12317 if test x$TARGET = xX86; then
12325 if test x$TARGET = xX86_FREEBSD; then
12327 X86_FREEBSD_FALSE='#'
12329 X86_FREEBSD_TRUE='#'
12333 if test x$TARGET = xX86_WIN32; then
12335 X86_WIN32_FALSE='#'
12341 if test x$TARGET = xX86_WIN64; then
12343 X86_WIN64_FALSE='#'
12349 if test x$TARGET = xX86_DARWIN; then
12351 X86_DARWIN_FALSE='#'
12353 X86_DARWIN_TRUE='#'
12357 if test x$TARGET = xALPHA; then
12365 if test x$TARGET = xIA64; then
12373 if test x$TARGET = xM32R; then
12381 if test x$TARGET = xM68K; then
12389 if test x$TARGET = xMOXIE; then
12397 if test x$TARGET = xPOWERPC; then
12405 if test x$TARGET = xPOWERPC_AIX; then
12407 POWERPC_AIX_FALSE='#'
12409 POWERPC_AIX_TRUE='#'
12413 if test x$TARGET = xPOWERPC_DARWIN; then
12414 POWERPC_DARWIN_TRUE=
12415 POWERPC_DARWIN_FALSE='#'
12417 POWERPC_DARWIN_TRUE='#'
12418 POWERPC_DARWIN_FALSE=
12421 if test x$TARGET = xPOWERPC_FREEBSD; then
12422 POWERPC_FREEBSD_TRUE=
12423 POWERPC_FREEBSD_FALSE='#'
12425 POWERPC_FREEBSD_TRUE='#'
12426 POWERPC_FREEBSD_FALSE=
12429 if test x$TARGET = xARM; then
12437 if test x$TARGET = xAVR32; then
12445 if test x$TARGET = xLIBFFI_CRIS; then
12447 LIBFFI_CRIS_FALSE='#'
12449 LIBFFI_CRIS_TRUE='#'
12453 if test x$TARGET = xFRV; then
12461 if test x$TARGET = xS390; then
12469 if test x$TARGET = xX86_64; then
12477 if test x$TARGET = xSH; then
12485 if test x$TARGET = xSH64; then
12493 if test x$TARGET = xPA_LINUX; then
12501 if test x$TARGET = xPA_HPUX; then
12509 if test x$TARGET = xPA64_HPUX; then
12511 PA64_HPUX_FALSE='#'
12518 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12519 $as_echo_n "checking for ANSI C header files... " >&6; }
12520 if test "${ac_cv_header_stdc+set}" = set; then
12521 $as_echo_n "(cached) " >&6
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 #include <stdlib.h>
12530 #include <stdarg.h>
12531 #include <string.h>
12542 rm -f conftest.$ac_objext
12543 if { (ac_try="$ac_compile"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12549 $as_echo "$ac_try_echo") >&5
12550 (eval "$ac_compile") 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest.$ac_objext; then
12560 ac_cv_header_stdc=yes
12562 $as_echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_cv_header_stdc=no
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 if test $ac_cv_header_stdc = yes; then
12571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 #include <string.h>
12581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12582 $EGREP "memchr" >/dev/null 2>&1; then
12585 ac_cv_header_stdc=no
12591 if test $ac_cv_header_stdc = yes; then
12592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12593 cat >conftest.$ac_ext <<_ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 #include <stdlib.h>
12602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12603 $EGREP "free" >/dev/null 2>&1; then
12606 ac_cv_header_stdc=no
12612 if test $ac_cv_header_stdc = yes; then
12613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12614 if test "$cross_compiling" = yes; then
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12624 #include <stdlib.h>
12625 #if ((' ' & 0x0FF) == 0x020)
12626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12629 # define ISLOWER(c) \
12630 (('a' <= (c) && (c) <= 'i') \
12631 || ('j' <= (c) && (c) <= 'r') \
12632 || ('s' <= (c) && (c) <= 'z'))
12633 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12641 for (i = 0; i < 256; i++)
12642 if (XOR (islower (i), ISLOWER (i))
12643 || toupper (i) != TOUPPER (i))
12648 rm -f conftest$ac_exeext
12649 if { (ac_try="$ac_link"
12650 case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12655 $as_echo "$ac_try_echo") >&5
12656 (eval "$ac_link") 2>&5
12658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12660 { (case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12665 $as_echo "$ac_try_echo") >&5
12666 (eval "$ac_try") 2>&5
12668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12672 $as_echo "$as_me: program exited with status $ac_status" >&5
12673 $as_echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12676 ( exit $ac_status )
12677 ac_cv_header_stdc=no
12679 rm -rf conftest.dSYM
12680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12687 $as_echo "$ac_cv_header_stdc" >&6; }
12688 if test $ac_cv_header_stdc = yes; then
12690 cat >>confdefs.h <<\_ACEOF
12691 #define STDC_HEADERS 1
12697 for ac_func in memcpy
12699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12700 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12701 $as_echo_n "checking for $ac_func... " >&6; }
12702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12703 $as_echo_n "(cached) " >&6
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12713 #define $ac_func innocuous_$ac_func
12715 /* System header to define __stub macros and hopefully few prototypes,
12716 which can conflict with char $ac_func (); below.
12717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12718 <limits.h> exists even on freestanding compilers. */
12721 # include <limits.h>
12723 # include <assert.h>
12728 /* Override any GCC internal prototype to avoid an error.
12729 Use char because int might match the return type of a GCC
12730 builtin and then its argument prototype would still apply. */
12735 /* The GNU C library defines this for functions which it implements
12736 to always fail with ENOSYS. Some functions are actually named
12737 something starting with __ and the normal name is an alias. */
12738 #if defined __stub_$ac_func || defined __stub___$ac_func
12745 return $ac_func ();
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (ac_try="$ac_link"
12752 case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757 $as_echo "$ac_try_echo") >&5
12758 (eval "$ac_link") 2>conftest.er1
12760 grep -v '^ *+' conftest.er1 >conftest.err
12762 cat conftest.err >&5
12763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && {
12765 test -z "$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12767 } && test -s conftest$ac_exeext && {
12768 test "$cross_compiling" = yes ||
12769 $as_test_x conftest$ac_exeext
12771 eval "$as_ac_var=yes"
12773 $as_echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12776 eval "$as_ac_var=no"
12779 rm -rf conftest.dSYM
12780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12781 conftest$ac_exeext conftest.$ac_ext
12783 ac_res=`eval 'as_val=${'$as_ac_var'}
12784 $as_echo "$as_val"'`
12785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12786 $as_echo "$ac_res" >&6; }
12787 as_val=`eval 'as_val=${'$as_ac_var'}
12788 $as_echo "$as_val"'`
12789 if test "x$as_val" = x""yes; then
12790 cat >>confdefs.h <<_ACEOF
12791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12797 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12798 # for constant arguments. Useless!
12799 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12800 $as_echo_n "checking for working alloca.h... " >&6; }
12801 if test "${ac_cv_working_alloca_h+set}" = set; then
12802 $as_echo_n "(cached) " >&6
12804 cat >conftest.$ac_ext <<_ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 #include <alloca.h>
12814 char *p = (char *) alloca (2 * sizeof (int));
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12827 $as_echo "$ac_try_echo") >&5
12828 (eval "$ac_link") 2>conftest.er1
12830 grep -v '^ *+' conftest.er1 >conftest.err
12832 cat conftest.err >&5
12833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } && {
12835 test -z "$ac_c_werror_flag" ||
12836 test ! -s conftest.err
12837 } && test -s conftest$ac_exeext && {
12838 test "$cross_compiling" = yes ||
12839 $as_test_x conftest$ac_exeext
12841 ac_cv_working_alloca_h=yes
12843 $as_echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 ac_cv_working_alloca_h=no
12849 rm -rf conftest.dSYM
12850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12851 conftest$ac_exeext conftest.$ac_ext
12853 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12854 $as_echo "$ac_cv_working_alloca_h" >&6; }
12855 if test $ac_cv_working_alloca_h = yes; then
12857 cat >>confdefs.h <<\_ACEOF
12858 #define HAVE_ALLOCA_H 1
12863 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12864 $as_echo_n "checking for alloca... " >&6; }
12865 if test "${ac_cv_func_alloca_works+set}" = set; then
12866 $as_echo_n "(cached) " >&6
12868 cat >conftest.$ac_ext <<_ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12875 # define alloca __builtin_alloca
12878 # include <malloc.h>
12879 # define alloca _alloca
12881 # ifdef HAVE_ALLOCA_H
12882 # include <alloca.h>
12887 # ifndef alloca /* predefined by HP cc +Olibcalls */
12898 char *p = (char *) alloca (1);
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12911 $as_echo "$ac_try_echo") >&5
12912 (eval "$ac_link") 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && {
12919 test -z "$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 } && test -s conftest$ac_exeext && {
12922 test "$cross_compiling" = yes ||
12923 $as_test_x conftest$ac_exeext
12925 ac_cv_func_alloca_works=yes
12927 $as_echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 ac_cv_func_alloca_works=no
12933 rm -rf conftest.dSYM
12934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12935 conftest$ac_exeext conftest.$ac_ext
12937 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12938 $as_echo "$ac_cv_func_alloca_works" >&6; }
12940 if test $ac_cv_func_alloca_works = yes; then
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_ALLOCA 1
12947 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12948 # that cause trouble. Some versions do not even contain alloca or
12949 # contain a buggy version. If you still want to use their alloca,
12950 # use ar to extract alloca.o from them instead of compiling alloca.c.
12952 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12954 cat >>confdefs.h <<\_ACEOF
12959 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12960 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12961 if test "${ac_cv_os_cray+set}" = set; then
12962 $as_echo_n "(cached) " >&6
12964 cat >conftest.$ac_ext <<_ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #if defined CRAY && ! defined CRAY2
12977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12978 $EGREP "webecray" >/dev/null 2>&1; then
12986 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12987 $as_echo "$ac_cv_os_cray" >&6; }
12988 if test $ac_cv_os_cray = yes; then
12989 for ac_func in _getb67 GETB67 getb67; do
12990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12991 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12992 $as_echo_n "checking for $ac_func... " >&6; }
12993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12994 $as_echo_n "(cached) " >&6
12996 cat >conftest.$ac_ext <<_ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h. */
13002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13004 #define $ac_func innocuous_$ac_func
13006 /* System header to define __stub macros and hopefully few prototypes,
13007 which can conflict with char $ac_func (); below.
13008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13009 <limits.h> exists even on freestanding compilers. */
13012 # include <limits.h>
13014 # include <assert.h>
13019 /* Override any GCC internal prototype to avoid an error.
13020 Use char because int might match the return type of a GCC
13021 builtin and then its argument prototype would still apply. */
13026 /* The GNU C library defines this for functions which it implements
13027 to always fail with ENOSYS. Some functions are actually named
13028 something starting with __ and the normal name is an alias. */
13029 #if defined __stub_$ac_func || defined __stub___$ac_func
13036 return $ac_func ();
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13048 $as_echo "$ac_try_echo") >&5
13049 (eval "$ac_link") 2>conftest.er1
13051 grep -v '^ *+' conftest.er1 >conftest.err
13053 cat conftest.err >&5
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } && {
13056 test -z "$ac_c_werror_flag" ||
13057 test ! -s conftest.err
13058 } && test -s conftest$ac_exeext && {
13059 test "$cross_compiling" = yes ||
13060 $as_test_x conftest$ac_exeext
13062 eval "$as_ac_var=yes"
13064 $as_echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 eval "$as_ac_var=no"
13070 rm -rf conftest.dSYM
13071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13072 conftest$ac_exeext conftest.$ac_ext
13074 ac_res=`eval 'as_val=${'$as_ac_var'}
13075 $as_echo "$as_val"'`
13076 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13077 $as_echo "$ac_res" >&6; }
13078 as_val=`eval 'as_val=${'$as_ac_var'}
13079 $as_echo "$as_val"'`
13080 if test "x$as_val" = x""yes; then
13082 cat >>confdefs.h <<_ACEOF
13083 #define CRAY_STACKSEG_END $ac_func
13092 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13093 $as_echo_n "checking stack direction for C alloca... " >&6; }
13094 if test "${ac_cv_c_stack_direction+set}" = set; then
13095 $as_echo_n "(cached) " >&6
13097 if test "$cross_compiling" = yes; then
13098 ac_cv_c_stack_direction=0
13100 cat >conftest.$ac_ext <<_ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13106 $ac_includes_default
13108 find_stack_direction ()
13110 static char *addr = 0;
13115 return find_stack_direction ();
13118 return (&dummy > addr) ? 1 : -1;
13124 return find_stack_direction () < 0;
13127 rm -f conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13134 $as_echo "$ac_try_echo") >&5
13135 (eval "$ac_link") 2>&5
13137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13139 { (case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13144 $as_echo "$ac_try_echo") >&5
13145 (eval "$ac_try") 2>&5
13147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 ac_cv_c_stack_direction=1
13151 $as_echo "$as_me: program exited with status $ac_status" >&5
13152 $as_echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13155 ( exit $ac_status )
13156 ac_cv_c_stack_direction=-1
13158 rm -rf conftest.dSYM
13159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13164 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13165 $as_echo "$ac_cv_c_stack_direction" >&6; }
13167 cat >>confdefs.h <<_ACEOF
13168 #define STACK_DIRECTION $ac_cv_c_stack_direction
13175 # The cast to long int works around a bug in the HP C Compiler
13176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13178 # This bug is HP SR number 8606223364.
13179 { $as_echo "$as_me:$LINENO: checking size of double" >&5
13180 $as_echo_n "checking size of double... " >&6; }
13181 if test "${ac_cv_sizeof_double+set}" = set; then
13182 $as_echo_n "(cached) " >&6
13184 if test "$cross_compiling" = yes; then
13185 # Depending upon the size, compute the lo and hi bounds.
13186 cat >conftest.$ac_ext <<_ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13192 $ac_includes_default
13196 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13203 rm -f conftest.$ac_objext
13204 if { (ac_try="$ac_compile"
13205 case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13210 $as_echo "$ac_try_echo") >&5
13211 (eval "$ac_compile") 2>conftest.er1
13213 grep -v '^ *+' conftest.er1 >conftest.err
13215 cat conftest.err >&5
13216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && {
13218 test -z "$ac_c_werror_flag" ||
13219 test ! -s conftest.err
13220 } && test -s conftest.$ac_objext; then
13223 cat >conftest.$ac_ext <<_ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 $ac_includes_default
13233 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13247 $as_echo "$ac_try_echo") >&5
13248 (eval "$ac_compile") 2>conftest.er1
13250 grep -v '^ *+' conftest.er1 >conftest.err
13252 cat conftest.err >&5
13253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } && {
13255 test -z "$ac_c_werror_flag" ||
13256 test ! -s conftest.err
13257 } && test -s conftest.$ac_objext; then
13258 ac_hi=$ac_mid; break
13260 $as_echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 ac_lo=`expr $ac_mid + 1`
13264 if test $ac_lo -le $ac_mid; then
13268 ac_mid=`expr 2 '*' $ac_mid + 1`
13271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 $as_echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 cat >conftest.$ac_ext <<_ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 $ac_includes_default
13287 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13294 rm -f conftest.$ac_objext
13295 if { (ac_try="$ac_compile"
13296 case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13301 $as_echo "$ac_try_echo") >&5
13302 (eval "$ac_compile") 2>conftest.er1
13304 grep -v '^ *+' conftest.er1 >conftest.err
13306 cat conftest.err >&5
13307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } && {
13309 test -z "$ac_c_werror_flag" ||
13310 test ! -s conftest.err
13311 } && test -s conftest.$ac_objext; then
13314 cat >conftest.$ac_ext <<_ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13320 $ac_includes_default
13324 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13331 rm -f conftest.$ac_objext
13332 if { (ac_try="$ac_compile"
13333 case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13338 $as_echo "$ac_try_echo") >&5
13339 (eval "$ac_compile") 2>conftest.er1
13341 grep -v '^ *+' conftest.er1 >conftest.err
13343 cat conftest.err >&5
13344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest.$ac_objext; then
13349 ac_lo=$ac_mid; break
13351 $as_echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13354 ac_hi=`expr '(' $ac_mid ')' - 1`
13355 if test $ac_mid -le $ac_hi; then
13359 ac_mid=`expr 2 '*' $ac_mid`
13362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365 $as_echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375 # Binary search between lo and hi bounds.
13376 while test "x$ac_lo" != "x$ac_hi"; do
13377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13378 cat >conftest.$ac_ext <<_ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384 $ac_includes_default
13388 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13395 rm -f conftest.$ac_objext
13396 if { (ac_try="$ac_compile"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13402 $as_echo "$ac_try_echo") >&5
13403 (eval "$ac_compile") 2>conftest.er1
13405 grep -v '^ *+' conftest.er1 >conftest.err
13407 cat conftest.err >&5
13408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } && {
13410 test -z "$ac_c_werror_flag" ||
13411 test ! -s conftest.err
13412 } && test -s conftest.$ac_objext; then
13415 $as_echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13418 ac_lo=`expr '(' $ac_mid ')' + 1`
13421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424 ?*) ac_cv_sizeof_double=$ac_lo;;
13425 '') if test "$ac_cv_type_double" = yes; then
13426 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13428 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13429 See \`config.log' for more details." >&5
13430 $as_echo "$as_me: error: cannot compute sizeof (double)
13431 See \`config.log' for more details." >&2;}
13432 { (exit 77); exit 77; }; }; }
13434 ac_cv_sizeof_double=0
13438 cat >conftest.$ac_ext <<_ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 $ac_includes_default
13445 static long int longval () { return (long int) (sizeof (double)); }
13446 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13448 #include <stdlib.h>
13453 FILE *f = fopen ("conftest.val", "w");
13456 if (((long int) (sizeof (double))) < 0)
13458 long int i = longval ();
13459 if (i != ((long int) (sizeof (double))))
13461 fprintf (f, "%ld", i);
13465 unsigned long int i = ulongval ();
13466 if (i != ((long int) (sizeof (double))))
13468 fprintf (f, "%lu", i);
13470 /* Do not output a trailing newline, as this causes \r\n confusion
13471 on some platforms. */
13472 return ferror (f) || fclose (f) != 0;
13478 rm -f conftest$ac_exeext
13479 if { (ac_try="$ac_link"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13485 $as_echo "$ac_try_echo") >&5
13486 (eval "$ac_link") 2>&5
13488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13495 $as_echo "$ac_try_echo") >&5
13496 (eval "$ac_try") 2>&5
13498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
13500 ac_cv_sizeof_double=`cat conftest.val`
13502 $as_echo "$as_me: program exited with status $ac_status" >&5
13503 $as_echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ( exit $ac_status )
13507 if test "$ac_cv_type_double" = yes; then
13508 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13510 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13511 See \`config.log' for more details." >&5
13512 $as_echo "$as_me: error: cannot compute sizeof (double)
13513 See \`config.log' for more details." >&2;}
13514 { (exit 77); exit 77; }; }; }
13516 ac_cv_sizeof_double=0
13519 rm -rf conftest.dSYM
13520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13524 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
13525 $as_echo "$ac_cv_sizeof_double" >&6; }
13529 cat >>confdefs.h <<_ACEOF
13530 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13534 # The cast to long int works around a bug in the HP C Compiler
13535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13537 # This bug is HP SR number 8606223364.
13538 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
13539 $as_echo_n "checking size of long double... " >&6; }
13540 if test "${ac_cv_sizeof_long_double+set}" = set; then
13541 $as_echo_n "(cached) " >&6
13543 if test "$cross_compiling" = yes; then
13544 # Depending upon the size, compute the lo and hi bounds.
13545 cat >conftest.$ac_ext <<_ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h. */
13551 $ac_includes_default
13555 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
13562 rm -f conftest.$ac_objext
13563 if { (ac_try="$ac_compile"
13564 case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569 $as_echo "$ac_try_echo") >&5
13570 (eval "$ac_compile") 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest.$ac_objext; then
13582 cat >conftest.$ac_ext <<_ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13588 $ac_includes_default
13592 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13599 rm -f conftest.$ac_objext
13600 if { (ac_try="$ac_compile"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13606 $as_echo "$ac_try_echo") >&5
13607 (eval "$ac_compile") 2>conftest.er1
13609 grep -v '^ *+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } && {
13614 test -z "$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 } && test -s conftest.$ac_objext; then
13617 ac_hi=$ac_mid; break
13619 $as_echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 ac_lo=`expr $ac_mid + 1`
13623 if test $ac_lo -le $ac_mid; then
13627 ac_mid=`expr 2 '*' $ac_mid + 1`
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 $as_echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 cat >conftest.$ac_ext <<_ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 $ac_includes_default
13646 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
13653 rm -f conftest.$ac_objext
13654 if { (ac_try="$ac_compile"
13655 case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13660 $as_echo "$ac_try_echo") >&5
13661 (eval "$ac_compile") 2>conftest.er1
13663 grep -v '^ *+' conftest.er1 >conftest.err
13665 cat conftest.err >&5
13666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } && {
13668 test -z "$ac_c_werror_flag" ||
13669 test ! -s conftest.err
13670 } && test -s conftest.$ac_objext; then
13673 cat >conftest.$ac_ext <<_ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 $ac_includes_default
13683 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
13690 rm -f conftest.$ac_objext
13691 if { (ac_try="$ac_compile"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13697 $as_echo "$ac_try_echo") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 ac_lo=$ac_mid; break
13710 $as_echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 ac_hi=`expr '(' $ac_mid ')' - 1`
13714 if test $ac_mid -le $ac_hi; then
13718 ac_mid=`expr 2 '*' $ac_mid`
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 $as_echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 # Binary search between lo and hi bounds.
13735 while test "x$ac_lo" != "x$ac_hi"; do
13736 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13737 cat >conftest.$ac_ext <<_ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13743 $ac_includes_default
13747 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13754 rm -f conftest.$ac_objext
13755 if { (ac_try="$ac_compile"
13756 case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13761 $as_echo "$ac_try_echo") >&5
13762 (eval "$ac_compile") 2>conftest.er1
13764 grep -v '^ *+' conftest.er1 >conftest.err
13766 cat conftest.err >&5
13767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest.$ac_objext; then
13774 $as_echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 ac_lo=`expr '(' $ac_mid ')' + 1`
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783 ?*) ac_cv_sizeof_long_double=$ac_lo;;
13784 '') if test "$ac_cv_type_long_double" = yes; then
13785 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13787 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13788 See \`config.log' for more details." >&5
13789 $as_echo "$as_me: error: cannot compute sizeof (long double)
13790 See \`config.log' for more details." >&2;}
13791 { (exit 77); exit 77; }; }; }
13793 ac_cv_sizeof_long_double=0
13797 cat >conftest.$ac_ext <<_ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 $ac_includes_default
13804 static long int longval () { return (long int) (sizeof (long double)); }
13805 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
13807 #include <stdlib.h>
13812 FILE *f = fopen ("conftest.val", "w");
13815 if (((long int) (sizeof (long double))) < 0)
13817 long int i = longval ();
13818 if (i != ((long int) (sizeof (long double))))
13820 fprintf (f, "%ld", i);
13824 unsigned long int i = ulongval ();
13825 if (i != ((long int) (sizeof (long double))))
13827 fprintf (f, "%lu", i);
13829 /* Do not output a trailing newline, as this causes \r\n confusion
13830 on some platforms. */
13831 return ferror (f) || fclose (f) != 0;
13837 rm -f conftest$ac_exeext
13838 if { (ac_try="$ac_link"
13839 case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13844 $as_echo "$ac_try_echo") >&5
13845 (eval "$ac_link") 2>&5
13847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13849 { (case "(($ac_try" in
13850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855 (eval "$ac_try") 2>&5
13857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 ac_cv_sizeof_long_double=`cat conftest.val`
13861 $as_echo "$as_me: program exited with status $ac_status" >&5
13862 $as_echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13865 ( exit $ac_status )
13866 if test "$ac_cv_type_long_double" = yes; then
13867 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13869 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13870 See \`config.log' for more details." >&5
13871 $as_echo "$as_me: error: cannot compute sizeof (long double)
13872 See \`config.log' for more details." >&2;}
13873 { (exit 77); exit 77; }; }; }
13875 ac_cv_sizeof_long_double=0
13878 rm -rf conftest.dSYM
13879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
13884 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13888 cat >>confdefs.h <<_ACEOF
13889 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13894 # Also AC_SUBST this variable for ffi.h.
13895 if test -z "$HAVE_LONG_DOUBLE"; then
13897 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13898 if test $ac_cv_sizeof_long_double != 0; then
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_LONG_DOUBLE 1
13911 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13912 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13913 if test "${ac_cv_c_bigendian+set}" = set; then
13914 $as_echo_n "(cached) " >&6
13916 ac_cv_c_bigendian=unknown
13917 # See if we're dealing with a universal compiler.
13918 cat >conftest.$ac_ext <<_ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h. */
13924 #ifndef __APPLE_CC__
13925 not a universal capable compiler
13930 rm -f conftest.$ac_objext
13931 if { (ac_try="$ac_compile"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938 (eval "$ac_compile") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } && {
13945 test -z "$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 } && test -s conftest.$ac_objext; then
13949 # Check for potential -arch flags. It is not universal unless
13950 # there are some -arch flags. Note that *ppc* also matches
13951 # ppc64. This check is also rather less than ideal.
13952 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13953 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13956 $as_echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 if test $ac_cv_c_bigendian = unknown; then
13964 # See if sys/param.h defines the BYTE_ORDER macro.
13965 cat >conftest.$ac_ext <<_ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 #include <sys/types.h>
13972 #include <sys/param.h>
13977 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13978 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13980 bogus endian macros
13987 rm -f conftest.$ac_objext
13988 if { (ac_try="$ac_compile"
13989 case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13994 $as_echo "$ac_try_echo") >&5
13995 (eval "$ac_compile") 2>conftest.er1
13997 grep -v '^ *+' conftest.er1 >conftest.err
13999 cat conftest.err >&5
14000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } && {
14002 test -z "$ac_c_werror_flag" ||
14003 test ! -s conftest.err
14004 } && test -s conftest.$ac_objext; then
14005 # It does; now see whether it defined to BIG_ENDIAN or not.
14006 cat >conftest.$ac_ext <<_ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14012 #include <sys/types.h>
14013 #include <sys/param.h>
14018 #if BYTE_ORDER != BIG_ENDIAN
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_compile") 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest.$ac_objext; then
14044 ac_cv_c_bigendian=yes
14046 $as_echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_cv_c_bigendian=no
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 $as_echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 if test $ac_cv_c_bigendian = unknown; then
14063 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14064 cat >conftest.$ac_ext <<_ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 #include <limits.h>
14075 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14076 bogus endian macros
14083 rm -f conftest.$ac_objext
14084 if { (ac_try="$ac_compile"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14090 $as_echo "$ac_try_echo") >&5
14091 (eval "$ac_compile") 2>conftest.er1
14093 grep -v '^ *+' conftest.er1 >conftest.err
14095 cat conftest.err >&5
14096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } && {
14098 test -z "$ac_c_werror_flag" ||
14099 test ! -s conftest.err
14100 } && test -s conftest.$ac_objext; then
14101 # It does; now see whether it defined to _BIG_ENDIAN or not.
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 #include <limits.h>
14113 #ifndef _BIG_ENDIAN
14121 rm -f conftest.$ac_objext
14122 if { (ac_try="$ac_compile"
14123 case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14128 $as_echo "$ac_try_echo") >&5
14129 (eval "$ac_compile") 2>conftest.er1
14131 grep -v '^ *+' conftest.er1 >conftest.err
14133 cat conftest.err >&5
14134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } && {
14136 test -z "$ac_c_werror_flag" ||
14137 test ! -s conftest.err
14138 } && test -s conftest.$ac_objext; then
14139 ac_cv_c_bigendian=yes
14141 $as_echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 ac_cv_c_bigendian=no
14147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14149 $as_echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14157 if test $ac_cv_c_bigendian = unknown; then
14158 # Compile a test program.
14159 if test "$cross_compiling" = yes; then
14160 # Try to guess by grepping values from an object file.
14161 cat >conftest.$ac_ext <<_ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 short int ascii_mm[] =
14168 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14169 short int ascii_ii[] =
14170 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14171 int use_ascii (int i) {
14172 return ascii_mm[i] + ascii_ii[i];
14174 short int ebcdic_ii[] =
14175 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14176 short int ebcdic_mm[] =
14177 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14178 int use_ebcdic (int i) {
14179 return ebcdic_mm[i] + ebcdic_ii[i];
14186 return use_ascii (foo) == use_ebcdic (foo);
14191 rm -f conftest.$ac_objext
14192 if { (ac_try="$ac_compile"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14198 $as_echo "$ac_try_echo") >&5
14199 (eval "$ac_compile") 2>conftest.er1
14201 grep -v '^ *+' conftest.er1 >conftest.err
14203 cat conftest.err >&5
14204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest.$ac_objext; then
14209 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14210 ac_cv_c_bigendian=yes
14212 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14213 if test "$ac_cv_c_bigendian" = unknown; then
14214 ac_cv_c_bigendian=no
14216 # finding both strings is unlikely to happen, but who knows?
14217 ac_cv_c_bigendian=unknown
14221 $as_echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 $ac_includes_default
14240 /* Are we little or big endian? From Harbison&Steele. */
14244 char c[sizeof (long int)];
14247 return u.c[sizeof (long int) - 1] == 1;
14253 rm -f conftest$ac_exeext
14254 if { (ac_try="$ac_link"
14255 case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14260 $as_echo "$ac_try_echo") >&5
14261 (eval "$ac_link") 2>&5
14263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14265 { (case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270 $as_echo "$ac_try_echo") >&5
14271 (eval "$ac_try") 2>&5
14273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_c_bigendian=no
14277 $as_echo "$as_me: program exited with status $ac_status" >&5
14278 $as_echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 ( exit $ac_status )
14282 ac_cv_c_bigendian=yes
14284 rm -rf conftest.dSYM
14285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14291 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14292 $as_echo "$ac_cv_c_bigendian" >&6; }
14293 case $ac_cv_c_bigendian in #(
14295 cat >>confdefs.h <<\_ACEOF
14296 #define WORDS_BIGENDIAN 1
14303 cat >>confdefs.h <<\_ACEOF
14304 #define AC_APPLE_UNIVERSAL_BUILD 1
14309 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14310 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14311 $as_echo "$as_me: error: unknown endianness
14312 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14313 { (exit 1); exit 1; }; } ;;
14317 { $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14318 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14319 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14320 $as_echo_n "(cached) " >&6
14323 libffi_cv_as_cfi_pseudo_op=unknown
14324 cat >conftest.$ac_ext <<_ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 asm (".cfi_startproc\n\t.cfi_endproc");
14339 rm -f conftest.$ac_objext
14340 if { (ac_try="$ac_compile"
14341 case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14346 $as_echo "$ac_try_echo") >&5
14347 (eval "$ac_compile") 2>conftest.er1
14349 grep -v '^ *+' conftest.er1 >conftest.err
14351 cat conftest.err >&5
14352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && {
14354 test -z "$ac_c_werror_flag" ||
14355 test ! -s conftest.err
14356 } && test -s conftest.$ac_objext; then
14357 libffi_cv_as_cfi_pseudo_op=yes
14359 $as_echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 libffi_cv_as_cfi_pseudo_op=no
14365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14368 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14369 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14370 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14372 cat >>confdefs.h <<\_ACEOF
14373 #define HAVE_AS_CFI_PSEUDO_OP 1
14378 if test x$TARGET = xSPARC; then
14379 { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14380 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14381 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14382 $as_echo_n "(cached) " >&6
14385 save_CFLAGS="$CFLAGS"
14386 save_LDFLAGS="$LDFLAGS"
14387 CFLAGS="$CFLAGS -fpic"
14388 LDFLAGS="$LDFLAGS -shared"
14389 cat >conftest.$ac_ext <<_ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14411 $as_echo "$ac_try_echo") >&5
14412 (eval "$ac_link") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest$ac_exeext && {
14422 test "$cross_compiling" = yes ||
14423 $as_test_x conftest$ac_exeext
14425 libffi_cv_as_sparc_ua_pcrel=yes
14427 $as_echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14430 libffi_cv_as_sparc_ua_pcrel=no
14433 rm -rf conftest.dSYM
14434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14435 conftest$ac_exeext conftest.$ac_ext
14436 CFLAGS="$save_CFLAGS"
14437 LDFLAGS="$save_LDFLAGS"
14439 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14440 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14441 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14443 cat >>confdefs.h <<\_ACEOF
14444 #define HAVE_AS_SPARC_UA_PCREL 1
14449 { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14450 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14451 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14452 $as_echo_n "(cached) " >&6
14455 libffi_cv_as_register_pseudo_op=unknown
14456 # Check if we have .register
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 asm (".register %g2, #scratch");
14472 rm -f conftest.$ac_objext
14473 if { (ac_try="$ac_compile"
14474 case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14479 $as_echo "$ac_try_echo") >&5
14480 (eval "$ac_compile") 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } && {
14487 test -z "$ac_c_werror_flag" ||
14488 test ! -s conftest.err
14489 } && test -s conftest.$ac_objext; then
14490 libffi_cv_as_register_pseudo_op=yes
14492 $as_echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 libffi_cv_as_register_pseudo_op=no
14498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14501 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
14502 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14503 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14512 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14513 { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
14514 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14515 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
14516 $as_echo_n "(cached) " >&6
14519 libffi_cv_as_x86_pcrel=no
14520 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14521 if $CC $CFLAGS -c conftest.s > /dev/null; then
14522 libffi_cv_as_x86_pcrel=yes
14526 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
14527 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14528 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14530 cat >>confdefs.h <<\_ACEOF
14531 #define HAVE_AS_X86_PCREL 1
14536 { $as_echo "$as_me:$LINENO: checking assembler .ascii pseudo-op support" >&5
14537 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14538 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then
14539 $as_echo_n "(cached) " >&6
14542 libffi_cv_as_ascii_pseudo_op=unknown
14543 # Check if we have .ascii
14544 cat >conftest.$ac_ext <<_ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 asm (".ascii \\"string\\"");
14559 rm -f conftest.$ac_objext
14560 if { (ac_try="$ac_compile"
14561 case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14566 $as_echo "$ac_try_echo") >&5
14567 (eval "$ac_compile") 2>conftest.er1
14569 grep -v '^ *+' conftest.er1 >conftest.err
14571 cat conftest.err >&5
14572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } && {
14574 test -z "$ac_c_werror_flag" ||
14575 test ! -s conftest.err
14576 } && test -s conftest.$ac_objext; then
14577 libffi_cv_as_ascii_pseudo_op=yes
14579 $as_echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14582 libffi_cv_as_ascii_pseudo_op=no
14585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_ascii_pseudo_op" >&5
14589 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14590 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14592 cat >>confdefs.h <<\_ACEOF
14593 #define HAVE_AS_ASCII_PSEUDO_OP 1
14598 { $as_echo "$as_me:$LINENO: checking assembler .string pseudo-op support" >&5
14599 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14600 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then
14601 $as_echo_n "(cached) " >&6
14604 libffi_cv_as_string_pseudo_op=unknown
14605 # Check if we have .string
14606 cat >conftest.$ac_ext <<_ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 asm (".string \\"string\\"");
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629 (eval "$ac_compile") 2>conftest.er1
14631 grep -v '^ *+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } && {
14636 test -z "$ac_c_werror_flag" ||
14637 test ! -s conftest.err
14638 } && test -s conftest.$ac_objext; then
14639 libffi_cv_as_string_pseudo_op=yes
14641 $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 libffi_cv_as_string_pseudo_op=no
14647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_string_pseudo_op" >&5
14651 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14652 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_AS_STRING_PSEUDO_OP 1
14661 if test x$TARGET = xX86_WIN64; then
14662 { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
14663 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14664 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
14665 $as_echo_n "(cached) " >&6
14667 lt_cv_sys_symbol_underscore=no
14668 cat > conftest.$ac_ext <<_LT_EOF
14669 void nm_test_func(){}
14670 int main(){nm_test_func;return 0;}
14672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14673 (eval $ac_compile) 2>&5
14675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; then
14677 # Now try to grab the symbols.
14678 ac_nlist=conftest.nm
14679 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
14680 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } && test -s "$ac_nlist"; then
14684 # See whether the symbols have a leading underscore.
14685 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14686 lt_cv_sys_symbol_underscore=yes
14688 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14691 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14695 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14698 echo "configure: failed program was:" >&5
14704 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
14705 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14706 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14709 if test "x$sys_symbol_underscore" = xyes; then
14711 cat >>confdefs.h <<\_ACEOF
14712 #define SYMBOL_UNDERSCORE 1
14719 FFI_EXEC_TRAMPOLINE_TABLE=0
14721 *arm*-apple-darwin*)
14722 FFI_EXEC_TRAMPOLINE_TABLE=1
14724 cat >>confdefs.h <<\_ACEOF
14725 #define FFI_EXEC_TRAMPOLINE_TABLE 1
14729 *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14731 cat >>confdefs.h <<\_ACEOF
14732 #define FFI_MMAP_EXEC_WRIT 1
14737 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14738 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14739 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14741 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14742 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14747 if test x$TARGET = xX86_64; then
14748 { $as_echo "$as_me:$LINENO: checking assembler supports unwind section type" >&5
14749 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14750 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then
14751 $as_echo_n "(cached) " >&6
14754 libffi_cv_as_x86_64_unwind_section_type=yes
14755 echo '.section .eh_frame,"a",@unwind' > conftest.s
14756 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14757 libffi_cv_as_x86_64_unwind_section_type=no
14761 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14762 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14763 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1
14772 { $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
14773 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14774 if test "${libffi_cv_ro_eh_frame+set}" = set; then
14775 $as_echo_n "(cached) " >&6
14778 libffi_cv_ro_eh_frame=no
14779 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14780 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14781 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14782 libffi_cv_ro_eh_frame=yes
14783 elif grep '.section.*eh_frame.*#alloc' conftest.c \
14784 | grep -v '#write' > /dev/null; then
14785 libffi_cv_ro_eh_frame=yes
14791 { $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
14792 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14793 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14795 cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_RO_EH_FRAME 1
14800 cat >>confdefs.h <<\_ACEOF
14801 #define EH_FRAME_FLAGS "a"
14806 cat >>confdefs.h <<\_ACEOF
14807 #define EH_FRAME_FLAGS "aw"
14812 { $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
14813 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14814 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
14815 $as_echo_n "(cached) " >&6
14818 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
14819 libffi_cv_hidden_visibility_attribute=no
14820 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14827 libffi_cv_hidden_visibility_attribute=yes
14833 { $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
14834 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14835 if test $libffi_cv_hidden_visibility_attribute = yes; then
14837 cat >>confdefs.h <<\_ACEOF
14838 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
14851 # Check whether --enable-debug was given.
14852 if test "${enable_debug+set}" = set; then
14853 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14855 cat >>confdefs.h <<\_ACEOF
14856 #define FFI_DEBUG 1
14862 if test "$enable_debug" = "yes"; then
14864 FFI_DEBUG_FALSE='#'
14871 # Check whether --enable-structs was given.
14872 if test "${enable_structs+set}" = set; then
14873 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14875 cat >>confdefs.h <<\_ACEOF
14876 #define FFI_NO_STRUCTS 1
14883 # Check whether --enable-raw-api was given.
14884 if test "${enable_raw_api+set}" = set; then
14885 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14887 cat >>confdefs.h <<\_ACEOF
14888 #define FFI_NO_RAW_API 1
14895 # Check whether --enable-purify-safety was given.
14896 if test "${enable_purify_safety+set}" = set; then
14897 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14899 cat >>confdefs.h <<\_ACEOF
14900 #define USING_PURIFY 1
14907 if test -n "$with_cross_host" &&
14908 test x"$with_cross_host" != x"no"; then
14909 toolexecdir='$(exec_prefix)/$(target_alias)'
14910 toolexeclibdir='$(toolexecdir)/lib'
14912 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14913 toolexeclibdir='$(libdir)'
14915 multi_os_directory=`$CC -print-multi-os-directory`
14916 case $multi_os_directory in
14917 .) ;; # Avoid trailing /.
14918 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14923 if test "${multilib}" = "yes"; then
14924 multilib_arg="--enable-multilib"
14929 ac_config_commands="$ac_config_commands include"
14931 ac_config_commands="$ac_config_commands src"
14934 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14937 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14940 cat >confcache <<\_ACEOF
14941 # This file is a shell script that caches the results of configure
14942 # tests run on this system so they can be shared between configure
14943 # scripts and configure runs, see configure's option --config-cache.
14944 # It is not useful on other systems. If it contains results you don't
14945 # want to keep, you may remove or edit it.
14947 # config.status only pays attention to the cache file if you give it
14948 # the --recheck option to rerun configure.
14950 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14951 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14952 # following values.
14956 # The following way of writing the cache mishandles newlines in values,
14957 # but we know of no workaround that is simple, portable, and efficient.
14958 # So, we kill variables containing newlines.
14959 # Ultrix sh set writes to stderr and can't be redirected directly,
14960 # and sets the high bit in the cache file unless we assign to the vars.
14962 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14963 eval ac_val=\$$ac_var
14967 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14968 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14971 _ | IFS | as_nl) ;; #(
14972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14973 *) $as_unset $ac_var ;;
14979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14980 *${as_nl}ac_space=\ *)
14981 # `set' does not quote correctly, so add quotes (double-quote
14982 # substitution turns \\\\ into \\, and sed turns \\ into \).
14985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14988 # `set' quotes correctly as required by POSIX, so do not add quotes.
14989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15000 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15002 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15003 if test -w "$cache_file"; then
15004 test "x$cache_file" != "x/dev/null" &&
15005 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15006 $as_echo "$as_me: updating cache $cache_file" >&6;}
15007 cat confcache >$cache_file
15009 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15010 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15016 # Let make expand exec_prefix.
15017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15019 DEFS=-DHAVE_CONFIG_H
15023 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15024 # 1. Remove the extension, and $U if already installed.
15025 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15026 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15027 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15028 # will be set to the directory where LIBOBJS objects are built.
15029 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15030 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15032 LIBOBJS=$ac_libobjs
15034 LTLIBOBJS=$ac_ltlibobjs
15037 if test -n "$EXEEXT"; then
15039 am__EXEEXT_FALSE='#'
15041 am__EXEEXT_TRUE='#'
15045 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15046 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15047 Usually this means the macro was only invoked conditionally." >&5
15048 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
15049 Usually this means the macro was only invoked conditionally." >&2;}
15050 { (exit 1); exit 1; }; }
15052 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15053 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15054 Usually this means the macro was only invoked conditionally." >&5
15055 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15056 Usually this means the macro was only invoked conditionally." >&2;}
15057 { (exit 1); exit 1; }; }
15059 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15060 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
15061 Usually this means the macro was only invoked conditionally." >&5
15062 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
15063 Usually this means the macro was only invoked conditionally." >&2;}
15064 { (exit 1); exit 1; }; }
15066 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15067 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15068 Usually this means the macro was only invoked conditionally." >&5
15069 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15070 Usually this means the macro was only invoked conditionally." >&2;}
15071 { (exit 1); exit 1; }; }
15073 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15074 { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15075 Usually this means the macro was only invoked conditionally." >&5
15076 $as_echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15077 Usually this means the macro was only invoked conditionally." >&2;}
15078 { (exit 1); exit 1; }; }
15080 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15081 { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
15082 Usually this means the macro was only invoked conditionally." >&5
15083 $as_echo "$as_me: error: conditional \"MIPS\" was never defined.
15084 Usually this means the macro was only invoked conditionally." >&2;}
15085 { (exit 1); exit 1; }; }
15087 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15088 { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
15089 Usually this means the macro was only invoked conditionally." >&5
15090 $as_echo "$as_me: error: conditional \"SPARC\" was never defined.
15091 Usually this means the macro was only invoked conditionally." >&2;}
15092 { (exit 1); exit 1; }; }
15094 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15095 { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
15096 Usually this means the macro was only invoked conditionally." >&5
15097 $as_echo "$as_me: error: conditional \"X86\" was never defined.
15098 Usually this means the macro was only invoked conditionally." >&2;}
15099 { (exit 1); exit 1; }; }
15101 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15102 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
15103 Usually this means the macro was only invoked conditionally." >&5
15104 $as_echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
15105 Usually this means the macro was only invoked conditionally." >&2;}
15106 { (exit 1); exit 1; }; }
15108 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15109 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
15110 Usually this means the macro was only invoked conditionally." >&5
15111 $as_echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
15112 Usually this means the macro was only invoked conditionally." >&2;}
15113 { (exit 1); exit 1; }; }
15115 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15116 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
15117 Usually this means the macro was only invoked conditionally." >&5
15118 $as_echo "$as_me: error: conditional \"X86_WIN64\" was never defined.
15119 Usually this means the macro was only invoked conditionally." >&2;}
15120 { (exit 1); exit 1; }; }
15122 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15123 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
15124 Usually this means the macro was only invoked conditionally." >&5
15125 $as_echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
15126 Usually this means the macro was only invoked conditionally." >&2;}
15127 { (exit 1); exit 1; }; }
15129 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15130 { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
15131 Usually this means the macro was only invoked conditionally." >&5
15132 $as_echo "$as_me: error: conditional \"ALPHA\" was never defined.
15133 Usually this means the macro was only invoked conditionally." >&2;}
15134 { (exit 1); exit 1; }; }
15136 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15137 { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
15138 Usually this means the macro was only invoked conditionally." >&5
15139 $as_echo "$as_me: error: conditional \"IA64\" was never defined.
15140 Usually this means the macro was only invoked conditionally." >&2;}
15141 { (exit 1); exit 1; }; }
15143 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15144 { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
15145 Usually this means the macro was only invoked conditionally." >&5
15146 $as_echo "$as_me: error: conditional \"M32R\" was never defined.
15147 Usually this means the macro was only invoked conditionally." >&2;}
15148 { (exit 1); exit 1; }; }
15150 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15151 { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
15152 Usually this means the macro was only invoked conditionally." >&5
15153 $as_echo "$as_me: error: conditional \"M68K\" was never defined.
15154 Usually this means the macro was only invoked conditionally." >&2;}
15155 { (exit 1); exit 1; }; }
15157 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15158 { { $as_echo "$as_me:$LINENO: error: conditional \"MOXIE\" was never defined.
15159 Usually this means the macro was only invoked conditionally." >&5
15160 $as_echo "$as_me: error: conditional \"MOXIE\" was never defined.
15161 Usually this means the macro was only invoked conditionally." >&2;}
15162 { (exit 1); exit 1; }; }
15164 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15165 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
15166 Usually this means the macro was only invoked conditionally." >&5
15167 $as_echo "$as_me: error: conditional \"POWERPC\" was never defined.
15168 Usually this means the macro was only invoked conditionally." >&2;}
15169 { (exit 1); exit 1; }; }
15171 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15172 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
15173 Usually this means the macro was only invoked conditionally." >&5
15174 $as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
15175 Usually this means the macro was only invoked conditionally." >&2;}
15176 { (exit 1); exit 1; }; }
15178 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15179 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
15180 Usually this means the macro was only invoked conditionally." >&5
15181 $as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
15182 Usually this means the macro was only invoked conditionally." >&2;}
15183 { (exit 1); exit 1; }; }
15185 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15186 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
15187 Usually this means the macro was only invoked conditionally." >&5
15188 $as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
15189 Usually this means the macro was only invoked conditionally." >&2;}
15190 { (exit 1); exit 1; }; }
15192 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15193 { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
15194 Usually this means the macro was only invoked conditionally." >&5
15195 $as_echo "$as_me: error: conditional \"ARM\" was never defined.
15196 Usually this means the macro was only invoked conditionally." >&2;}
15197 { (exit 1); exit 1; }; }
15199 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15200 { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
15201 Usually this means the macro was only invoked conditionally." >&5
15202 $as_echo "$as_me: error: conditional \"AVR32\" was never defined.
15203 Usually this means the macro was only invoked conditionally." >&2;}
15204 { (exit 1); exit 1; }; }
15206 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15207 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
15208 Usually this means the macro was only invoked conditionally." >&5
15209 $as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
15210 Usually this means the macro was only invoked conditionally." >&2;}
15211 { (exit 1); exit 1; }; }
15213 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15214 { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
15215 Usually this means the macro was only invoked conditionally." >&5
15216 $as_echo "$as_me: error: conditional \"FRV\" was never defined.
15217 Usually this means the macro was only invoked conditionally." >&2;}
15218 { (exit 1); exit 1; }; }
15220 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15221 { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
15222 Usually this means the macro was only invoked conditionally." >&5
15223 $as_echo "$as_me: error: conditional \"S390\" was never defined.
15224 Usually this means the macro was only invoked conditionally." >&2;}
15225 { (exit 1); exit 1; }; }
15227 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15228 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
15229 Usually this means the macro was only invoked conditionally." >&5
15230 $as_echo "$as_me: error: conditional \"X86_64\" was never defined.
15231 Usually this means the macro was only invoked conditionally." >&2;}
15232 { (exit 1); exit 1; }; }
15234 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15235 { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
15236 Usually this means the macro was only invoked conditionally." >&5
15237 $as_echo "$as_me: error: conditional \"SH\" was never defined.
15238 Usually this means the macro was only invoked conditionally." >&2;}
15239 { (exit 1); exit 1; }; }
15241 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15242 { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
15243 Usually this means the macro was only invoked conditionally." >&5
15244 $as_echo "$as_me: error: conditional \"SH64\" was never defined.
15245 Usually this means the macro was only invoked conditionally." >&2;}
15246 { (exit 1); exit 1; }; }
15248 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15249 { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
15250 Usually this means the macro was only invoked conditionally." >&5
15251 $as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
15252 Usually this means the macro was only invoked conditionally." >&2;}
15253 { (exit 1); exit 1; }; }
15255 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15256 { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
15257 Usually this means the macro was only invoked conditionally." >&5
15258 $as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
15259 Usually this means the macro was only invoked conditionally." >&2;}
15260 { (exit 1); exit 1; }; }
15262 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15263 { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
15264 Usually this means the macro was only invoked conditionally." >&5
15265 $as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
15266 Usually this means the macro was only invoked conditionally." >&2;}
15267 { (exit 1); exit 1; }; }
15270 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15271 { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15272 Usually this means the macro was only invoked conditionally." >&5
15273 $as_echo "$as_me: error: conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15274 Usually this means the macro was only invoked conditionally." >&2;}
15275 { (exit 1); exit 1; }; }
15277 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15278 { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_DEBUG\" was never defined.
15279 Usually this means the macro was only invoked conditionally." >&5
15280 $as_echo "$as_me: error: conditional \"FFI_DEBUG\" was never defined.
15281 Usually this means the macro was only invoked conditionally." >&2;}
15282 { (exit 1); exit 1; }; }
15285 : ${CONFIG_STATUS=./config.status}
15287 ac_clean_files_save=$ac_clean_files
15288 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15289 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15290 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15291 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15293 # Generated by $as_me.
15294 # Run this file to recreate the current configuration.
15295 # Compiler output produced by configure, useful for debugging
15296 # configure, is in config.log if it exists.
15299 ac_cs_recheck=false
15301 SHELL=\${CONFIG_SHELL-$SHELL}
15304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15305 ## --------------------- ##
15306 ## M4sh Initialization. ##
15307 ## --------------------- ##
15309 # Be more Bourne compatible
15310 DUALCASE=1; export DUALCASE # for MKS sh
15311 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15314 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15315 # is contrary to our usage. Disable this feature.
15316 alias -g '${1+"$@"}'='"$@"'
15317 setopt NO_GLOB_SUBST
15319 case `(set -o) 2>/dev/null` in
15320 *posix*) set -o posix ;;
15329 # Avoid depending upon Character Ranges.
15330 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15331 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15332 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15333 as_cr_digits='0123456789'
15334 as_cr_alnum=$as_cr_Letters$as_cr_digits
15339 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15340 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15341 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15342 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15343 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15344 as_echo='printf %s\n'
15345 as_echo_n='printf %s'
15347 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15348 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15349 as_echo_n='/usr/ucb/echo -n'
15351 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15352 as_echo_n_body='eval
15356 expr "X$arg" : "X\\(.*\\)$as_nl";
15357 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15359 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15361 export as_echo_n_body
15362 as_echo_n='sh -c $as_echo_n_body as_echo'
15364 export as_echo_body
15365 as_echo='sh -c $as_echo_body as_echo'
15368 # The user is always right.
15369 if test "${PATH_SEPARATOR+set}" != set; then
15371 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15372 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15377 # Support unset when possible.
15378 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15386 # We need space, tab and new line, in precisely that order. Quoting is
15387 # there to prevent editors from complaining about space-tab.
15388 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15389 # splitting by setting IFS to empty value.)
15392 # Find who we are. Look in the path if we contain no directory separator.
15394 *[\\/]* ) as_myself=$0 ;;
15395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15399 test -z "$as_dir" && as_dir=.
15400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15406 # We did not find ourselves, most probably we were run as `sh COMMAND'
15407 # in which case we are not to be found in the path.
15408 if test "x$as_myself" = x; then
15411 if test ! -f "$as_myself"; then
15412 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15413 { (exit 1); exit 1; }
15416 # Work around bugs in pre-3.0 UWIN ksh.
15417 for as_var in ENV MAIL MAILPATH
15418 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15430 # Required to use basename.
15431 if expr a : '\(a\)' >/dev/null 2>&1 &&
15432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15439 as_basename=basename
15445 # Name of the executable.
15446 as_me=`$as_basename -- "$0" ||
15447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15448 X"$0" : 'X\(//\)$' \| \
15449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15451 sed '/^.*\/\([^/][^/]*\)\/*$/{
15470 as_lineno_1=$LINENO
15471 as_lineno_2=$LINENO
15472 test "x$as_lineno_1" != "x$as_lineno_2" &&
15473 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15475 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15476 # uniformly replaced by the line number. The first 'sed' inserts a
15477 # line-number line after each line using $LINENO; the second 'sed'
15478 # does the real work. The second script uses 'N' to pair each
15479 # line-number line with the line containing $LINENO, and appends
15480 # trailing '-' during substitution so that $LINENO is not a special
15481 # case at line end.
15482 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15483 # scripts with optimization help from Paolo Bonzini. Blame Lee
15484 # E. McMahon (1931-1989) for sed's syntax. :-)
15496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15499 ' >$as_me.lineno &&
15500 chmod +x "$as_me.lineno" ||
15501 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15502 { (exit 1); exit 1; }; }
15504 # Don't try to exec as it changes $[0], causing all sort of problems
15505 # (the dirname of $[0] is not the place where we might find the
15506 # original and so on. Autoconf is especially sensitive to this).
15507 . "./$as_me.lineno"
15508 # Exit status is that of the last command.
15513 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15519 ECHO_C= ECHO_N= ECHO_T=
15520 case `echo -n x` in
15522 case `echo 'x\c'` in
15523 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15529 if expr a : '\(a\)' >/dev/null 2>&1 &&
15530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15536 rm -f conf$$ conf$$.exe conf$$.file
15537 if test -d conf$$.dir; then
15538 rm -f conf$$.dir/conf$$.file
15541 mkdir conf$$.dir 2>/dev/null
15543 if (echo >conf$$.file) 2>/dev/null; then
15544 if ln -s conf$$.file conf$$ 2>/dev/null; then
15546 # ... but there are two gotchas:
15547 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15548 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15549 # In both cases, we have to default to `cp -p'.
15550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15552 elif ln conf$$.file conf$$ 2>/dev/null; then
15560 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15561 rmdir conf$$.dir 2>/dev/null
15563 if mkdir -p . 2>/dev/null; then
15566 test -d ./-p && rmdir ./-p
15570 if test -x / >/dev/null 2>&1; then
15571 as_test_x='test -x'
15573 if ls -dL / >/dev/null 2>&1; then
15580 if test -d "$1"; then
15586 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15587 ???[sx]*):;;*)false;;esac;fi
15591 as_executable_p=$as_test_x
15593 # Sed expression to map a string onto a valid CPP name.
15594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15596 # Sed expression to map a string onto a valid variable name.
15597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15602 # Save the log message, to keep $[0] and so on meaningful, and to
15603 # report actual input values of CONFIG_FILES etc. instead of their
15604 # values after options handling.
15606 This file was extended by libffi $as_me 3.0.10rc3, which was
15607 generated by GNU Autoconf 2.63. Invocation command line was
15609 CONFIG_FILES = $CONFIG_FILES
15610 CONFIG_HEADERS = $CONFIG_HEADERS
15611 CONFIG_LINKS = $CONFIG_LINKS
15612 CONFIG_COMMANDS = $CONFIG_COMMANDS
15615 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15620 case $ac_config_files in *"
15621 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15624 case $ac_config_headers in *"
15625 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15630 # Files that config.status was made for.
15631 config_files="$ac_config_files"
15632 config_headers="$ac_config_headers"
15633 config_links="$ac_config_links"
15634 config_commands="$ac_config_commands"
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15640 \`$as_me' instantiates files from templates according to the
15641 current configuration.
15643 Usage: $0 [OPTION]... [FILE]...
15645 -h, --help print this help, then exit
15646 -V, --version print version number and configuration settings, then exit
15647 -q, --quiet, --silent
15648 do not print progress messages
15649 -d, --debug don't remove temporary files
15650 --recheck update $as_me by reconfiguring in the same conditions
15651 --file=FILE[:TEMPLATE]
15652 instantiate the configuration file FILE
15653 --header=FILE[:TEMPLATE]
15654 instantiate the configuration header FILE
15656 Configuration files:
15659 Configuration headers:
15662 Configuration links:
15665 Configuration commands:
15668 Report bugs to <bug-autoconf@gnu.org>."
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15673 libffi config.status 3.0.10rc3
15674 configured by $0, generated by GNU Autoconf 2.63,
15675 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15677 Copyright (C) 2008 Free Software Foundation, Inc.
15678 This config.status script is free software; the Free Software Foundation
15679 gives unlimited permission to copy, distribute and modify it."
15686 test -n "\$AWK" || AWK=awk
15689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15690 # The default lists apply if the user does not specify any file.
15696 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15697 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15708 # Handling of the options.
15709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15711 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15712 $as_echo "$ac_cs_version"; exit ;;
15713 --debug | --debu | --deb | --de | --d | -d )
15715 --file | --fil | --fi | --f )
15718 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15720 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15721 ac_need_defaults=false;;
15722 --header | --heade | --head | --hea )
15725 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15727 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15728 ac_need_defaults=false;;
15730 # Conflict between --help and --header
15731 { $as_echo "$as_me: error: ambiguous option: $1
15732 Try \`$0 --help' for more information." >&2
15733 { (exit 1); exit 1; }; };;
15734 --help | --hel | -h )
15735 $as_echo "$ac_cs_usage"; exit ;;
15736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15737 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15740 # This is an error.
15741 -*) { $as_echo "$as_me: error: unrecognized option: $1
15742 Try \`$0 --help' for more information." >&2
15743 { (exit 1); exit 1; }; } ;;
15745 *) ac_config_targets="$ac_config_targets $1"
15746 ac_need_defaults=false ;;
15752 ac_configure_extra_args=
15754 if $ac_cs_silent; then
15756 ac_configure_extra_args="$ac_configure_extra_args --silent"
15760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761 if \$ac_cs_recheck; then
15762 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15764 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15765 CONFIG_SHELL='$SHELL'
15766 export CONFIG_SHELL
15771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15776 ## Running $as_me. ##
15782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15786 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15789 # The HP-UX ksh and POSIX shell print the target directory to stdout
15790 # if CDPATH is set.
15791 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15793 sed_quote_subst='$sed_quote_subst'
15794 double_quote_subst='$double_quote_subst'
15795 delay_variable_subst='$delay_variable_subst'
15796 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15797 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15798 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15799 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15800 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15801 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15802 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15803 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15804 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15805 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15806 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15807 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15808 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15809 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15810 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15811 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15812 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15813 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15814 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15815 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15816 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15817 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15818 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15819 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15820 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15821 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15822 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15823 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15824 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15825 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15826 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15827 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15828 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15829 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15830 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15831 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15832 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15833 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15834 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15835 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15836 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15837 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15838 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15839 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15840 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"`'
15841 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15842 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15843 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15844 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15845 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15846 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15847 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15848 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15849 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15850 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15851 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15852 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15853 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15854 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15855 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15856 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15857 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15858 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15859 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15860 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15861 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15862 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15863 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15864 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15865 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15866 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15867 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15868 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15869 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15870 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15871 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15872 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15873 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15874 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15875 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15876 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15877 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15878 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15879 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15880 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15881 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15882 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15883 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15884 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15885 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15886 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15887 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15888 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15889 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15890 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15891 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15892 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15893 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15894 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15895 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15896 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15897 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15898 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15899 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15900 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15901 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15902 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15903 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15904 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15905 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15906 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15907 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15908 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15909 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15910 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15911 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15912 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15913 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15916 LTCFLAGS='$LTCFLAGS'
15917 compiler='$compiler_DEFAULT'
15919 # Quote evaled strings.
15931 deplibs_check_method \
15940 lt_cv_sys_global_symbol_pipe \
15941 lt_cv_sys_global_symbol_to_cdecl \
15942 lt_cv_sys_global_symbol_to_c_name_address \
15943 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15946 lt_prog_compiler_no_builtin_flag \
15947 lt_prog_compiler_wl \
15948 lt_prog_compiler_pic \
15949 lt_prog_compiler_static \
15950 lt_cv_prog_compiler_c_o \
15958 export_dynamic_flag_spec \
15959 whole_archive_flag_spec \
15960 compiler_needs_object \
15962 allow_undefined_flag \
15963 no_undefined_flag \
15964 hardcode_libdir_flag_spec \
15965 hardcode_libdir_flag_spec_ld \
15966 hardcode_libdir_separator \
15971 variables_saved_for_relink \
15973 library_names_spec \
15978 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15979 *[\\\\\\\`\\"\\\$]*)
15980 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15983 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15988 # Double-quote double-evaled strings.
15989 for var in reload_cmds \
15990 old_postinstall_cmds \
15991 old_postuninstall_cmds \
15993 extract_expsyms_cmds \
15994 old_archive_from_new_cmds \
15995 old_archive_from_expsyms_cmds \
15997 archive_expsym_cmds \
15999 module_expsym_cmds \
16000 export_symbols_cmds \
16003 postuninstall_cmds \
16005 sys_lib_search_path_spec \
16006 sys_lib_dlsearch_path_spec; do
16007 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16008 *[\\\\\\\`\\"\\\$]*)
16009 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16012 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16017 # Fix-up fallback echo if it was mangled by the above quoting rules.
16019 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16023 ac_aux_dir='$ac_aux_dir'
16024 xsi_shell='$xsi_shell'
16025 lt_shell_append='$lt_shell_append'
16027 # See if we are running on zsh, and set the options which allow our
16028 # commands through without removal of \ escapes INIT.
16029 if test -n "\${ZSH_VERSION+set}" ; then
16030 setopt NO_GLOB_SUBST
16036 TIMESTAMP='$TIMESTAMP'
16042 TARGETDIR="$TARGETDIR"
16046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16048 # Handling of arguments.
16049 for ac_config_target in $ac_config_targets
16051 case $ac_config_target in
16052 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16053 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16054 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16055 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16056 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16057 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16058 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16059 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16061 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16062 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16063 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16065 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16066 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16067 { (exit 1); exit 1; }; };;
16072 # If the user did not use the arguments to specify the items to instantiate,
16073 # then the envvar interface is used. Set only those that are not.
16074 # We use the long form for the default assignment because of an extremely
16075 # bizarre bug on SunOS 4.1.3.
16076 if $ac_need_defaults; then
16077 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16078 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16079 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16080 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16083 # Have a temporary directory for convenience. Make it in the build tree
16084 # simply because there is no reason against having it here, and in addition,
16085 # creating and moving files from /tmp can sometimes cause problems.
16086 # Hook for its removal unless debugging.
16087 # Note that there is a small window in which the directory will not be cleaned:
16088 # after its creation but before its name has been assigned to `$tmp'.
16092 trap 'exit_status=$?
16093 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16095 trap '{ (exit 1); exit 1; }' 1 2 13 15
16097 # Create a (secure) tmp directory for tmp files.
16100 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16101 test -n "$tmp" && test -d "$tmp"
16104 tmp=./conf$$-$RANDOM
16105 (umask 077 && mkdir "$tmp")
16108 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16109 { (exit 1); exit 1; }
16112 # Set up the scripts for CONFIG_FILES section.
16113 # No need to generate them if there are no CONFIG_FILES.
16114 # This happens for instance with `./config.status config.h'.
16115 if test -n "$CONFIG_FILES"; then
16119 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16120 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16123 ac_cs_awk_cr=$ac_cr
16126 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16131 echo "cat >conf$$subs.awk <<_ACEOF" &&
16132 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16134 } >conf$$subs.sh ||
16135 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16136 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16137 { (exit 1); exit 1; }; }
16138 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16140 for ac_last_try in false false false false false :; do
16141 . ./conf$$subs.sh ||
16142 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16143 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16144 { (exit 1); exit 1; }; }
16146 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16147 if test $ac_delim_n = $ac_delim_num; then
16149 elif $ac_last_try; then
16150 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16151 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16152 { (exit 1); exit 1; }; }
16154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16157 rm -f conf$$subs.sh
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16164 s/^/S["/; s/!.*/"]=/
16174 s/\(.\{148\}\).*/\1/
16176 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16181 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16188 s/\(.\{148\}\).*/\1/
16190 s/["\\]/\\&/g; s/^/"/; s/$/"/
16194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16199 ' <conf$$subs.awk | sed '
16204 ' >>$CONFIG_STATUS || ac_write_fail=1
16205 rm -f conf$$subs.awk
16206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16209 for (key in S) S_is_set[key] = 1
16215 nfields = split(line, field, "@")
16217 len = length(field[1])
16218 for (i = 2; i < nfields; i++) {
16220 keylen = length(key)
16221 if (S_is_set[key]) {
16223 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16224 len += length(value) + length(field[++i])
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16237 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16240 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16241 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16242 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16243 { (exit 1); exit 1; }; }
16246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16248 # trailing colons and then remove the whole line if VPATH becomes empty
16249 # (actually we leave an empty line to preserve line numbers).
16250 if test "x$srcdir" = x.; then
16251 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16252 s/:*\$(srcdir):*/:/
16253 s/:*\${srcdir}:*/:/
16255 s/^\([^=]*=[ ]*\):*/\1/
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16262 fi # test -n "$CONFIG_FILES"
16264 # Set up the scripts for CONFIG_HEADERS section.
16265 # No need to generate them if there are no CONFIG_HEADERS.
16266 # This happens for instance with `./config.status Makefile'.
16267 if test -n "$CONFIG_HEADERS"; then
16268 cat >"$tmp/defines.awk" <<\_ACAWK ||
16272 # Transform confdefs.h into an awk script `defines.awk', embedded as
16273 # here-document in config.status, that substitutes the proper values into
16274 # config.h.in to produce config.h.
16276 # Create a delimiter string that does not exist in confdefs.h, to ease
16277 # handling of long lines.
16279 for ac_last_try in false false :; do
16280 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16281 if test -z "$ac_t"; then
16283 elif $ac_last_try; then
16284 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16285 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16286 { (exit 1); exit 1; }; }
16288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16292 # For the awk script, D is an array of macro values keyed by name,
16293 # likewise P contains macro parameters if any. Preserve backslash
16294 # newline sequences.
16296 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16298 s/.\{148\}/&'"$ac_delim"'/g
16301 s/^[ ]*#[ ]*define[ ][ ]*/ /
16308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16315 D["\1"]=" \3\\\\\\n"\\/p
16317 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16322 s/.\{148\}/&'"$ac_delim"'/g
16327 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16330 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16332 ' <confdefs.h | sed '
16333 s/'"$ac_delim"'/"\\\
16334 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337 for (key in D) D_is_set[key] = 1
16340 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16342 split(line, arg, " ")
16343 if (arg[1] == "#") {
16347 defundef = substr(arg[1], 2)
16350 split(mac1, mac2, "(") #)
16352 prefix = substr(line, 1, index(line, defundef) - 1)
16353 if (D_is_set[macro]) {
16354 # Preserve the white space surrounding the "#".
16355 print prefix "define", macro P[macro] D[macro]
16358 # Replace #undef with comments. This is necessary, for example,
16359 # in the case of _POSIX_SOURCE, which is predefined and required
16360 # on some systems where configure will not decide to define it.
16361 if (defundef == "undef") {
16362 print "/*", prefix defundef, macro, "*/"
16370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16372 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16373 { (exit 1); exit 1; }; }
16374 fi # test -n "$CONFIG_HEADERS"
16377 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16382 :[FHLC]) ac_mode=$ac_tag; continue;;
16384 case $ac_mode$ac_tag in
16386 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16387 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16388 { (exit 1); exit 1; }; };;
16389 :[FH]-) ac_tag=-:-;;
16390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16407 -) ac_f="$tmp/stdin";;
16408 *) # Look for the file first in the build tree, then in the source tree
16409 # (if the path is not absolute). The absolute path cannot be DOS-style,
16410 # because $ac_f cannot contain `:'.
16414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16416 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16417 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16418 { (exit 1); exit 1; }; };;
16420 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16421 ac_file_inputs="$ac_file_inputs '$ac_f'"
16424 # Let's still pretend it is `configure' which instantiates (i.e., don't
16425 # use $as_me), people would be surprised to read:
16426 # /* config.h. Generated by config.status. */
16427 configure_input='Generated from '`
16428 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16430 if test x"$ac_file" != x-; then
16431 configure_input="$ac_file. $configure_input"
16432 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16433 $as_echo "$as_me: creating $ac_file" >&6;}
16435 # Neutralize special characters interpreted by sed in replacement strings.
16436 case $configure_input in #(
16437 *\&* | *\|* | *\\* )
16438 ac_sed_conf_input=`$as_echo "$configure_input" |
16439 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16440 *) ac_sed_conf_input=$configure_input;;
16444 *:-:* | *:-) cat >"$tmp/stdin" \
16445 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16446 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16447 { (exit 1); exit 1; }; } ;;
16452 ac_dir=`$as_dirname -- "$ac_file" ||
16453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16454 X"$ac_file" : 'X\(//\)[^/]' \| \
16455 X"$ac_file" : 'X\(//\)$' \| \
16456 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16457 $as_echo X"$ac_file" |
16458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16462 /^X\(\/\/\)[^/].*/{
16477 -*) as_dir=./$as_dir;;
16479 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16483 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16484 *) as_qdir=$as_dir;;
16486 as_dirs="'$as_qdir' $as_dirs"
16487 as_dir=`$as_dirname -- "$as_dir" ||
16488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16489 X"$as_dir" : 'X\(//\)[^/]' \| \
16490 X"$as_dir" : 'X\(//\)$' \| \
16491 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16492 $as_echo X"$as_dir" |
16493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16497 /^X\(\/\/\)[^/].*/{
16510 test -d "$as_dir" && break
16512 test -z "$as_dirs" || eval "mkdir $as_dirs"
16513 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16514 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16515 { (exit 1); exit 1; }; }; }
16519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16522 # A ".." for each directory in $ac_dir_suffix.
16523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16524 case $ac_top_builddir_sub in
16525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16529 ac_abs_top_builddir=$ac_pwd
16530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16531 # for backward compatibility:
16532 ac_top_builddir=$ac_top_build_prefix
16535 .) # We are building in place.
16537 ac_top_srcdir=$ac_top_builddir_sub
16538 ac_abs_top_srcdir=$ac_pwd ;;
16539 [\\/]* | ?:[\\/]* ) # Absolute name.
16540 ac_srcdir=$srcdir$ac_dir_suffix;
16541 ac_top_srcdir=$srcdir
16542 ac_abs_top_srcdir=$srcdir ;;
16543 *) # Relative name.
16544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16545 ac_top_srcdir=$ac_top_build_prefix$srcdir
16546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16558 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16559 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16561 ac_MKDIR_P=$MKDIR_P
16563 [\\/$]* | ?:[\\/]* ) ;;
16564 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16569 # If the template does not know about datarootdir, expand it.
16570 # FIXME: This hack should be removed a few years after 2.60.
16571 ac_datarootdir_hack=; ac_datarootdir_seen=
16584 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16585 *datarootdir*) ac_datarootdir_seen=yes;;
16586 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16587 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16588 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16591 ac_datarootdir_hack='
16592 s&@datadir@&$datadir&g
16593 s&@docdir@&$docdir&g
16594 s&@infodir@&$infodir&g
16595 s&@localedir@&$localedir&g
16596 s&@mandir@&$mandir&g
16597 s&\\\${datarootdir}&$datarootdir&g' ;;
16601 # Neutralize VPATH when `$srcdir' = `.'.
16602 # Shell code in configure.ac might set extrasub.
16603 # FIXME: do we really want to maintain this feature?
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16605 ac_sed_extra="$ac_vpsub
16608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16611 s|@configure_input@|$ac_sed_conf_input|;t t
16612 s&@top_builddir@&$ac_top_builddir_sub&;t t
16613 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16614 s&@srcdir@&$ac_srcdir&;t t
16615 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16616 s&@top_srcdir@&$ac_top_srcdir&;t t
16617 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16618 s&@builddir@&$ac_builddir&;t t
16619 s&@abs_builddir@&$ac_abs_builddir&;t t
16620 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16621 s&@INSTALL@&$ac_INSTALL&;t t
16622 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16623 $ac_datarootdir_hack
16625 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16626 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16627 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16628 { (exit 1); exit 1; }; }
16630 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16631 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16632 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16633 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16634 which seems to be undefined. Please make sure it is defined." >&5
16635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16636 which seems to be undefined. Please make sure it is defined." >&2;}
16640 -) cat "$tmp/out" && rm -f "$tmp/out";;
16641 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16643 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16644 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16645 { (exit 1); exit 1; }; }
16651 if test x"$ac_file" != x-; then
16653 $as_echo "/* $configure_input */" \
16654 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16655 } >"$tmp/config.h" \
16656 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16657 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16658 { (exit 1); exit 1; }; }
16659 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16660 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16661 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16664 mv "$tmp/config.h" "$ac_file" \
16665 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16666 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16667 { (exit 1); exit 1; }; }
16670 $as_echo "/* $configure_input */" \
16671 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16672 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16673 $as_echo "$as_me: error: could not create -" >&2;}
16674 { (exit 1); exit 1; }; }
16676 # Compute "$ac_file"'s index in $config_headers.
16679 for _am_header in $config_headers :; do
16680 case $_am_header in
16681 $_am_arg | $_am_arg:* )
16684 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16687 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16688 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16689 X"$_am_arg" : 'X\(//\)[^/]' \| \
16690 X"$_am_arg" : 'X\(//\)$' \| \
16691 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16692 $as_echo X"$_am_arg" |
16693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16697 /^X\(\/\/\)[^/].*/{
16709 s/.*/./; q'`/stamp-h$_am_stamp_count
16716 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16719 # Prefer the file from the source tree if names are identical.
16720 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16721 ac_source=$srcdir/$ac_source
16724 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16725 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16727 if test ! -r "$ac_source"; then
16728 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16729 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
16730 { (exit 1); exit 1; }; }
16734 # Try a relative symlink, then a hard link, then a copy.
16736 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16737 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16739 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16740 ln "$ac_source" "$ac_file" 2>/dev/null ||
16741 cp -p "$ac_source" "$ac_file" ||
16742 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16743 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16744 { (exit 1); exit 1; }; }
16747 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16748 $as_echo "$as_me: executing $ac_file commands" >&6;}
16753 case $ac_file$ac_mode in
16754 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16755 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16756 # are listed without --file. Let's play safe and only enable the eval
16757 # if we detect the quoting.
16758 case $CONFIG_FILES in
16759 *\'*) eval set x "$CONFIG_FILES" ;;
16760 *) set x $CONFIG_FILES ;;
16765 # Strip MF so we end up with the name of the file.
16766 mf=`echo "$mf" | sed -e 's/:.*$//'`
16767 # Check whether this is an Automake generated Makefile or not.
16768 # We used to match only the files named `Makefile.in', but
16769 # some people rename them; so instead we look at the file content.
16770 # Grep'ing the first line is not enough: some people post-process
16771 # each Makefile.in and add a new line on top of each file to say so.
16772 # Grep'ing the whole file is not good either: AIX grep has a line
16773 # limit of 2048, but all sed's we know have understand at least 4000.
16774 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16775 dirpart=`$as_dirname -- "$mf" ||
16776 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16777 X"$mf" : 'X\(//\)[^/]' \| \
16778 X"$mf" : 'X\(//\)$' \| \
16779 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16785 /^X\(\/\/\)[^/].*/{
16801 # Extract the definition of DEPDIR, am__include, and am__quote
16802 # from the Makefile without running `make'.
16803 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16804 test -z "$DEPDIR" && continue
16805 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16806 test -z "am__include" && continue
16807 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16808 # When using ansi2knr, U may be empty or an underscore; expand it
16809 U=`sed -n 's/^U = //p' < "$mf"`
16810 # Find all dependency output files, they are included files with
16811 # $(DEPDIR) in their names. We invoke sed twice because it is the
16812 # simplest approach to changing $(DEPDIR) to its actual value in the
16814 for file in `sed -n "
16815 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16816 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16817 # Make sure the directory exists.
16818 test -f "$dirpart/$file" && continue
16819 fdir=`$as_dirname -- "$file" ||
16820 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16821 X"$file" : 'X\(//\)[^/]' \| \
16822 X"$file" : 'X\(//\)$' \| \
16823 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16824 $as_echo X"$file" |
16825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16829 /^X\(\/\/\)[^/].*/{
16842 { as_dir=$dirpart/$fdir
16844 -*) as_dir=./$as_dir;;
16846 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16850 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16851 *) as_qdir=$as_dir;;
16853 as_dirs="'$as_qdir' $as_dirs"
16854 as_dir=`$as_dirname -- "$as_dir" ||
16855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16856 X"$as_dir" : 'X\(//\)[^/]' \| \
16857 X"$as_dir" : 'X\(//\)$' \| \
16858 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16859 $as_echo X"$as_dir" |
16860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16864 /^X\(\/\/\)[^/].*/{
16877 test -d "$as_dir" && break
16879 test -z "$as_dirs" || eval "mkdir $as_dirs"
16880 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16881 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16882 { (exit 1); exit 1; }; }; }
16883 # echo "creating $dirpart/$file"
16884 echo '# dummy' > "$dirpart/$file"
16891 # See if we are running on zsh, and set the options which allow our
16892 # commands through without removal of \ escapes.
16893 if test -n "${ZSH_VERSION+set}" ; then
16894 setopt NO_GLOB_SUBST
16897 cfgfile="${ofile}T"
16898 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16901 cat <<_LT_EOF >> "$cfgfile"
16904 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16905 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16906 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16907 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16909 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16910 # 2006, 2007, 2008 Free Software Foundation, Inc.
16911 # Written by Gordon Matzigkeit, 1996
16913 # This file is part of GNU Libtool.
16915 # GNU Libtool is free software; you can redistribute it and/or
16916 # modify it under the terms of the GNU General Public License as
16917 # published by the Free Software Foundation; either version 2 of
16918 # the License, or (at your option) any later version.
16920 # As a special exception to the GNU General Public License,
16921 # if you distribute this file as part of a program or library that
16922 # is built using GNU Libtool, you may include this file under the
16923 # same distribution terms that you use for the rest of that program.
16925 # GNU Libtool is distributed in the hope that it will be useful,
16926 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16927 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16928 # GNU General Public License for more details.
16930 # You should have received a copy of the GNU General Public License
16931 # along with GNU Libtool; see the file COPYING. If not, a copy
16932 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16933 # obtained by writing to the Free Software Foundation, Inc.,
16934 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16937 # The names of the tagged configurations supported by this script.
16940 # ### BEGIN LIBTOOL CONFIG
16942 # Which release of libtool.m4 was used?
16943 macro_version=$macro_version
16944 macro_revision=$macro_revision
16946 # Whether or not to build shared libraries.
16947 build_libtool_libs=$enable_shared
16949 # Whether or not to build static libraries.
16950 build_old_libs=$enable_static
16952 # What type of objects to build.
16955 # Whether or not to optimize for fast installation.
16956 fast_install=$enable_fast_install
16959 host_alias=$host_alias
16963 # The build system.
16964 build_alias=$build_alias
16968 # A sed program that does not truncate output.
16971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16972 Xsed="\$SED -e 1s/^X//"
16974 # A grep program that handles long lines.
16980 # A literal string matcher.
16983 # A BSD- or MS-compatible name lister.
16986 # Whether we need soft or hard links.
16989 # What is the maximum length of a command?
16990 max_cmd_len=$max_cmd_len
16992 # Object file suffix (normally "o").
16995 # Executable file suffix (normally "").
16998 # whether the shell understands "unset".
17001 # turn spaces into newlines.
17004 # turn newlines into spaces.
17007 # How to create reloadable object files.
17008 reload_flag=$lt_reload_flag
17009 reload_cmds=$lt_reload_cmds
17011 # An object symbol dumper.
17012 OBJDUMP=$lt_OBJDUMP
17014 # Method to check whether dependent libraries are shared objects.
17015 deplibs_check_method=$lt_deplibs_check_method
17017 # Command to use when deplibs_check_method == "file_magic".
17018 file_magic_cmd=$lt_file_magic_cmd
17022 AR_FLAGS=$lt_AR_FLAGS
17024 # A symbol stripping program.
17027 # Commands used to install an old-style archive.
17029 old_postinstall_cmds=$lt_old_postinstall_cmds
17030 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17035 # LTCC compiler flags.
17036 LTCFLAGS=$lt_CFLAGS
17038 # Take the output of nm and produce a listing of raw symbols and C names.
17039 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17041 # Transform the output of nm in a proper C declaration.
17042 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17044 # Transform the output of nm in a C name address pair.
17045 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17047 # Transform the output of nm in a C name address pair when lib prefix is needed.
17048 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17050 # The name of the directory that contains temporary libtool files.
17053 # Shell to use when invoking shell scripts.
17056 # An echo program that does not interpret backslashes.
17059 # Used to examine libraries when file_magic_cmd begins with "file".
17060 MAGIC_CMD=$MAGIC_CMD
17062 # Must we lock files when doing compilation?
17063 need_locks=$lt_need_locks
17065 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17066 DSYMUTIL=$lt_DSYMUTIL
17068 # Tool to change global to local symbols on Mac OS X.
17071 # Tool to manipulate fat objects and archives on Mac OS X.
17074 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17077 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17078 OTOOL64=$lt_OTOOL64
17080 # Old archive suffix (normally "a").
17083 # Shared library suffix (normally ".so").
17084 shrext_cmds=$lt_shrext_cmds
17086 # The commands to extract the exported symbol list from a shared archive.
17087 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17089 # Variables whose values should be saved in libtool wrapper scripts and
17090 # restored at link time.
17091 variables_saved_for_relink=$lt_variables_saved_for_relink
17093 # Do we need the "lib" prefix for modules?
17094 need_lib_prefix=$need_lib_prefix
17096 # Do we need a version for libraries?
17097 need_version=$need_version
17099 # Library versioning type.
17100 version_type=$version_type
17102 # Shared library runtime path variable.
17103 runpath_var=$runpath_var
17105 # Shared library path variable.
17106 shlibpath_var=$shlibpath_var
17108 # Is shlibpath searched before the hard-coded library search path?
17109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17111 # Format of library name prefix.
17112 libname_spec=$lt_libname_spec
17114 # List of archive names. First name is the real one, the rest are links.
17115 # The last name is the one that the linker finds with -lNAME
17116 library_names_spec=$lt_library_names_spec
17118 # The coded name of the library, if different from the real name.
17119 soname_spec=$lt_soname_spec
17121 # Command to use after installation of a shared archive.
17122 postinstall_cmds=$lt_postinstall_cmds
17124 # Command to use after uninstallation of a shared archive.
17125 postuninstall_cmds=$lt_postuninstall_cmds
17127 # Commands used to finish a libtool library installation in a directory.
17128 finish_cmds=$lt_finish_cmds
17130 # As "finish_cmds", except a single script fragment to be evaled but
17132 finish_eval=$lt_finish_eval
17134 # Whether we should hardcode library paths into libraries.
17135 hardcode_into_libs=$hardcode_into_libs
17137 # Compile-time system search path for libraries.
17138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17140 # Run-time system search path for libraries.
17141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17143 # Whether dlopen is supported.
17144 dlopen_support=$enable_dlopen
17146 # Whether dlopen of programs is supported.
17147 dlopen_self=$enable_dlopen_self
17149 # Whether dlopen of statically linked programs is supported.
17150 dlopen_self_static=$enable_dlopen_self_static
17152 # Commands to strip libraries.
17153 old_striplib=$lt_old_striplib
17154 striplib=$lt_striplib
17157 # The linker used to build libraries.
17160 # Commands used to build an old-style archive.
17161 old_archive_cmds=$lt_old_archive_cmds
17163 # A language specific compiler.
17166 # Is the compiler the GNU compiler?
17169 # Compiler flag to turn off builtin functions.
17170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17172 # How to pass a linker flag through the compiler.
17173 wl=$lt_lt_prog_compiler_wl
17175 # Additional compiler flags for building library objects.
17176 pic_flag=$lt_lt_prog_compiler_pic
17178 # Compiler flag to prevent dynamic linking.
17179 link_static_flag=$lt_lt_prog_compiler_static
17181 # Does compiler simultaneously support -c and -o options?
17182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17184 # Whether or not to add -lc for building shared libraries.
17185 build_libtool_need_lc=$archive_cmds_need_lc
17187 # Whether or not to disallow shared libs when runtime libs are static.
17188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17190 # Compiler flag to allow reflexive dlopens.
17191 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17193 # Compiler flag to generate shared objects directly from archives.
17194 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17196 # Whether the compiler copes with passing no objects directly.
17197 compiler_needs_object=$lt_compiler_needs_object
17199 # Create an old-style archive from a shared archive.
17200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17202 # Create a temporary old-style archive to link instead of a shared archive.
17203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17205 # Commands used to build a shared archive.
17206 archive_cmds=$lt_archive_cmds
17207 archive_expsym_cmds=$lt_archive_expsym_cmds
17209 # Commands used to build a loadable module if different from building
17210 # a shared archive.
17211 module_cmds=$lt_module_cmds
17212 module_expsym_cmds=$lt_module_expsym_cmds
17214 # Whether we are building with GNU ld or not.
17215 with_gnu_ld=$lt_with_gnu_ld
17217 # Flag that allows shared libraries with undefined symbols to be built.
17218 allow_undefined_flag=$lt_allow_undefined_flag
17220 # Flag that enforces no undefined symbols.
17221 no_undefined_flag=$lt_no_undefined_flag
17223 # Flag to hardcode \$libdir into a binary during linking.
17224 # This must work even if \$libdir does not exist
17225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17227 # If ld is used when linking, flag to hardcode \$libdir into a binary
17228 # during linking. This must work even if \$libdir does not exist.
17229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17231 # Whether we need a single "-rpath" flag with a separated argument.
17232 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17234 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17235 # DIR into the resulting binary.
17236 hardcode_direct=$hardcode_direct
17238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17239 # DIR into the resulting binary and the resulting library dependency is
17240 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17241 # library is relocated.
17242 hardcode_direct_absolute=$hardcode_direct_absolute
17244 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17245 # into the resulting binary.
17246 hardcode_minus_L=$hardcode_minus_L
17248 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17249 # into the resulting binary.
17250 hardcode_shlibpath_var=$hardcode_shlibpath_var
17252 # Set to "yes" if building a shared library automatically hardcodes DIR
17253 # into the library and all subsequent libraries and executables linked
17255 hardcode_automatic=$hardcode_automatic
17257 # Set to yes if linker adds runtime paths of dependent libraries
17258 # to runtime path list.
17259 inherit_rpath=$inherit_rpath
17261 # Whether libtool must link a program against all its dependency libraries.
17262 link_all_deplibs=$link_all_deplibs
17264 # Fix the shell variable \$srcfile for the compiler.
17265 fix_srcfile_path=$lt_fix_srcfile_path
17267 # Set to "yes" if exported symbols are required.
17268 always_export_symbols=$always_export_symbols
17270 # The commands to list exported symbols.
17271 export_symbols_cmds=$lt_export_symbols_cmds
17273 # Symbols that should not be listed in the preloaded symbols.
17274 exclude_expsyms=$lt_exclude_expsyms
17276 # Symbols that must always be exported.
17277 include_expsyms=$lt_include_expsyms
17279 # Commands necessary for linking programs (against libraries) with templates.
17280 prelink_cmds=$lt_prelink_cmds
17282 # Specify filename containing input files.
17283 file_list_spec=$lt_file_list_spec
17285 # How to hardcode a shared library path into an executable.
17286 hardcode_action=$hardcode_action
17288 # ### END LIBTOOL CONFIG
17294 cat <<\_LT_EOF >> "$cfgfile"
17295 # AIX sometimes has problems with the GCC collect2 program. For some
17296 # reason, if we set the COLLECT_NAMES environment variable, the problems
17297 # vanish in a puff of smoke.
17298 if test "X${COLLECT_NAMES+set}" != Xset; then
17300 export COLLECT_NAMES
17307 ltmain="$ac_aux_dir/ltmain.sh"
17310 # We use sed instead of cat because bash on DJGPP gets confused if
17311 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17312 # text mode, it properly converts lines to CR/LF. This bash problem
17313 # is reportedly fixed, but why not run on old versions too?
17314 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17315 || (rm -f "$cfgfile"; exit 1)
17319 cat << \_LT_EOF >> "$cfgfile"
17321 # func_dirname file append nondir_replacement
17322 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17323 # otherwise set result to NONDIR_REPLACEMENT.
17327 */*) func_dirname_result="${1%/*}${2}" ;;
17328 * ) func_dirname_result="${3}" ;;
17332 # func_basename file
17335 func_basename_result="${1##*/}"
17338 # func_dirname_and_basename file append nondir_replacement
17339 # perform func_basename and func_dirname in a single function
17341 # dirname: Compute the dirname of FILE. If nonempty,
17342 # add APPEND to the result, otherwise set result
17343 # to NONDIR_REPLACEMENT.
17344 # value returned in "$func_dirname_result"
17345 # basename: Compute filename of FILE.
17346 # value retuned in "$func_basename_result"
17347 # Implementation must be kept synchronized with func_dirname
17348 # and func_basename. For efficiency, we do not delegate to
17349 # those functions but instead duplicate the functionality here.
17350 func_dirname_and_basename ()
17353 */*) func_dirname_result="${1%/*}${2}" ;;
17354 * ) func_dirname_result="${3}" ;;
17356 func_basename_result="${1##*/}"
17359 # func_stripname prefix suffix name
17360 # strip PREFIX and SUFFIX off of NAME.
17361 # PREFIX and SUFFIX must not contain globbing or regex special
17362 # characters, hashes, percent signs, but SUFFIX may contain a leading
17363 # dot (in which case that matches only a dot).
17366 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17367 # positional parameters, so assign one to ordinary parameter first.
17368 func_stripname_result=${3}
17369 func_stripname_result=${func_stripname_result#"${1}"}
17370 func_stripname_result=${func_stripname_result%"${2}"}
17376 func_opt_split_opt=${1%%=*}
17377 func_opt_split_arg=${1#*=}
17384 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17385 *) func_lo2o_result=${1} ;;
17389 # func_xform libobj-or-source
17392 func_xform_result=${1%.*}.lo
17395 # func_arith arithmetic-term...
17398 func_arith_result=$(( $* ))
17402 # STRING may not start with a hyphen.
17405 func_len_result=${#1}
17410 *) # Bourne compatible functions.
17411 cat << \_LT_EOF >> "$cfgfile"
17413 # func_dirname file append nondir_replacement
17414 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17415 # otherwise set result to NONDIR_REPLACEMENT.
17418 # Extract subdirectory from the argument.
17419 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17420 if test "X$func_dirname_result" = "X${1}"; then
17421 func_dirname_result="${3}"
17423 func_dirname_result="$func_dirname_result${2}"
17427 # func_basename file
17430 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17434 # func_stripname prefix suffix name
17435 # strip PREFIX and SUFFIX off of NAME.
17436 # PREFIX and SUFFIX must not contain globbing or regex special
17437 # characters, hashes, percent signs, but SUFFIX may contain a leading
17438 # dot (in which case that matches only a dot).
17439 # func_strip_suffix prefix name
17443 .*) func_stripname_result=`$ECHO "X${3}" \
17444 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17445 *) func_stripname_result=`$ECHO "X${3}" \
17446 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17451 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17452 my_sed_long_arg='1s/^-[^=]*=//'
17457 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17458 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17464 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17467 # func_xform libobj-or-source
17470 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17473 # func_arith arithmetic-term...
17476 func_arith_result=`expr "$@"`
17480 # STRING may not start with a hyphen.
17483 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17489 case $lt_shell_append in
17491 cat << \_LT_EOF >> "$cfgfile"
17493 # func_append var value
17494 # Append VALUE to the end of shell variable VAR.
17502 cat << \_LT_EOF >> "$cfgfile"
17504 # func_append var value
17505 # Append VALUE to the end of shell variable VAR.
17516 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17517 || (rm -f "$cfgfile"; exit 1)
17519 mv -f "$cfgfile" "$ofile" ||
17520 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17524 "include":C) test -d include || mkdir include ;;
17526 test -d src || mkdir src
17527 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17534 { (exit 0); exit 0; }
17536 chmod +x $CONFIG_STATUS
17537 ac_clean_files=$ac_clean_files_save
17539 test $ac_write_fail = 0 ||
17540 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17541 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17542 { (exit 1); exit 1; }; }
17545 # configure is writing to config.log, and then calls config.status.
17546 # config.status does its own redirection, appending to config.log.
17547 # Unfortunately, on DOS this fails, as config.log is still kept open
17548 # by configure, so config.status won't be able to write to it; its
17549 # output is simply discarded. So we exec the FD to /dev/null,
17550 # effectively closing config.log, so it can be properly (re)opened and
17551 # appended to by config.status. When coming back to configure, we
17552 # need to make the FD available again.
17553 if test "$no_create" != yes; then
17555 ac_config_status_args=
17556 test "$silent" = yes &&
17557 ac_config_status_args="$ac_config_status_args --quiet"
17559 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17561 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17562 # would make configure fail if this is the last instruction.
17563 $ac_cs_success || { (exit 1); exit 1; }
17565 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17566 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17567 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}