2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.99999.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (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 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev
/null
; then :
188 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
193 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
196 test -z "$as_dir" && as_dir
=.
200 for as_base
in sh bash ksh sh5
; do
201 # Try only shells that exist, to save several forks.
202 as_shell
=$as_dir/$as_base
203 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
205 CONFIG_SHELL
=$as_shell as_have_required
=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
214 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
216 CONFIG_SHELL
=$SHELL as_have_required
=yes
221 if test "x$CONFIG_SHELL" != x
; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
227 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x
$as_have_required = xno
; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x
${ZSH_VERSION+set} = xset
; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240 $0: http://github.com/atgreen/libffi/issues about your
241 $0: system, including any error possibly output before this
242 $0: message. Then install a modern shell, or manually run
243 $0: the script under such a shell if you do have one."
249 SHELL
=${CONFIG_SHELL-/bin/sh}
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE
= GREP_OPTIONS
=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
260 # Portably unset VAR.
263 { eval $1=; unset $1;}
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
287 # Create "$as_dir" as a directory, including parents if necessary.
292 -*) as_dir
=.
/$as_dir;;
294 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
298 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 as_dirs
="'$as_qdir' $as_dirs"
302 as_dir
=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
325 test -d "$as_dir" && break
327 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
328 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
339 eval 'as_fn_append ()
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
363 as_val
=`expr "$@" || test $? -eq 1`
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
375 as_status
=$?
; test $as_status -eq 0 && as_status
=1
377 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit
$as_status
384 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
391 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
397 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
403 as_me
=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
422 # Avoid depending upon Character Ranges.
423 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits
='0123456789'
427 as_cr_alnum
=$as_cr_Letters$as_cr_digits
430 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
431 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x
"$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
461 ECHO_C
= ECHO_N
= ECHO_T
=
462 case `echo -n x` in #(((((
464 case `echo 'xy\c'` in
465 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
474 rm -f conf$$ conf$$.exe conf$$.
file
475 if test -d conf$$.dir
; then
476 rm -f conf$$.dir
/conf$$.
file
479 mkdir conf$$.dir
2>/dev
/null
481 if (echo >conf$$.
file) 2>/dev
/null
; then
482 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
490 elif ln conf$$.
file conf$$
2>/dev
/null
; then
498 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
499 rmdir conf$$.dir
2>/dev
/null
501 if mkdir
-p .
2>/dev
/null
; then
502 as_mkdir_p
='mkdir -p "$as_dir"'
504 test -d .
/-p && rmdir .
/-p
508 if test -x / >/dev
/null
2>&1; then
511 if ls -dL / >/dev
/null
2>&1; then
518 if test -d "$1"; then
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
529 as_executable_p
=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL
=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev
/null
6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
559 # Identity of this package.
560 PACKAGE_NAME
='libffi'
561 PACKAGE_TARNAME
='libffi'
562 PACKAGE_VERSION
='3.99999'
563 PACKAGE_STRING
='libffi 3.99999'
564 PACKAGE_BUGREPORT
='http://github.com/atgreen/libffi/issues'
567 # Factoring default headers for most tests.
568 ac_includes_default
="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
603 ac_subst_vars
='am__EXEEXT_FALSE
614 FFI_EXEC_TRAMPOLINE_TABLE
615 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
616 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
617 HAVE_LONG_DOUBLE_VARIANT
625 MAINTAINER_MODE_FALSE
647 am__fastdepCCAS_FALSE
687 INSTALL_STRIP_PROGRAM
742 program_transform_name
755 enable_option_checking
757 enable_generated_files_in_srcdir
758 enable_dependency_tracking
765 enable_maintainer_mode
772 ac_precious_vars
='build_alias
782 # Initialize some variables set by options.
784 ac_init_version
=false
785 ac_unrecognized_opts
=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
796 program_transform_name
=s
,x
,x
,
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir
='${exec_prefix}/bin'
811 sbindir
='${exec_prefix}/sbin'
812 libexecdir
='${exec_prefix}/libexec'
813 datarootdir
='${prefix}/share'
814 datadir
='${datarootdir}'
815 sysconfdir
='${prefix}/etc'
816 sharedstatedir
='${prefix}/com'
817 localstatedir
='${prefix}/var'
818 includedir
='${prefix}/include'
819 oldincludedir
='/usr/include'
820 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir
='${datarootdir}/info'
826 libdir
='${exec_prefix}/lib'
827 localedir
='${datarootdir}/locale'
828 mandir
='${datarootdir}/man'
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\
$ac_option
842 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
854 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
857 -build |
--build |
--buil |
--bui |
--bu)
858 ac_prev
=build_alias
;;
859 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
860 build_alias
=$ac_optarg ;;
862 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
863 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
864 ac_prev
=cache_file
;;
865 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
866 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
867 cache_file
=$ac_optarg ;;
870 cache_file
=config.cache
;;
872 -datadir |
--datadir |
--datadi |
--datad)
874 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
875 datadir
=$ac_optarg ;;
877 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
878 |
--dataroo |
--dataro |
--datar)
879 ac_prev
=datarootdir
;;
880 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
881 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
882 datarootdir
=$ac_optarg ;;
884 -disable-* |
--disable-*)
885 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
888 as_fn_error
"invalid feature name: $ac_useropt"
889 ac_useropt_orig
=$ac_useropt
890 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep
=', ';;
898 eval enable_
$ac_useropt=no
;;
900 -docdir |
--docdir |
--docdi |
--doc |
--do)
902 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
905 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
907 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
910 -enable-* |
--enable-*)
911 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
914 as_fn_error
"invalid feature name: $ac_useropt"
915 ac_useropt_orig
=$ac_useropt
916 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep
=', ';;
924 eval enable_
$ac_useropt=\
$ac_optarg ;;
926 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
927 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
928 |
--exec |
--exe |
--ex)
929 ac_prev
=exec_prefix
;;
930 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
931 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
932 |
--exec=* |
--exe=* |
--ex=*)
933 exec_prefix
=$ac_optarg ;;
935 -gas |
--gas |
--ga |
--g)
936 # Obsolete; use --with-gas.
939 -help |
--help |
--hel |
--he |
-h)
941 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
942 ac_init_help
=recursive
;;
943 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
944 ac_init_help
=short
;;
946 -host |
--host |
--hos |
--ho)
947 ac_prev
=host_alias
;;
948 -host=* |
--host=* |
--hos=* |
--ho=*)
949 host_alias
=$ac_optarg ;;
951 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
953 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
955 htmldir
=$ac_optarg ;;
957 -includedir |
--includedir |
--includedi |
--included |
--include \
958 |
--includ |
--inclu |
--incl |
--inc)
959 ac_prev
=includedir
;;
960 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
961 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
962 includedir
=$ac_optarg ;;
964 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
966 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
967 infodir
=$ac_optarg ;;
969 -libdir |
--libdir |
--libdi |
--libd)
971 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
974 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
975 |
--libexe |
--libex |
--libe)
976 ac_prev
=libexecdir
;;
977 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
978 |
--libexe=* |
--libex=* |
--libe=*)
979 libexecdir
=$ac_optarg ;;
981 -localedir |
--localedir |
--localedi |
--localed |
--locale)
983 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
984 localedir
=$ac_optarg ;;
986 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
987 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
988 ac_prev
=localstatedir
;;
989 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
990 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
991 localstatedir
=$ac_optarg ;;
993 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
995 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
999 # Obsolete; use --without-fp.
1002 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1003 |
--no-cr |
--no-c |
-n)
1006 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1007 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1010 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1011 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1012 |
--oldin |
--oldi |
--old |
--ol |
--o)
1013 ac_prev
=oldincludedir
;;
1014 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1015 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1016 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1017 oldincludedir
=$ac_optarg ;;
1019 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1021 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1022 prefix
=$ac_optarg ;;
1024 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1025 |
--program-pre |
--program-pr |
--program-p)
1026 ac_prev
=program_prefix
;;
1027 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1028 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1029 program_prefix
=$ac_optarg ;;
1031 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1032 |
--program-suf |
--program-su |
--program-s)
1033 ac_prev
=program_suffix
;;
1034 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1035 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1036 program_suffix
=$ac_optarg ;;
1038 -program-transform-name |
--program-transform-name \
1039 |
--program-transform-nam |
--program-transform-na \
1040 |
--program-transform-n |
--program-transform- \
1041 |
--program-transform |
--program-transfor \
1042 |
--program-transfo |
--program-transf \
1043 |
--program-trans |
--program-tran \
1044 |
--progr-tra |
--program-tr |
--program-t)
1045 ac_prev
=program_transform_name
;;
1046 -program-transform-name=* |
--program-transform-name=* \
1047 |
--program-transform-nam=* |
--program-transform-na=* \
1048 |
--program-transform-n=* |
--program-transform-=* \
1049 |
--program-transform=* |
--program-transfor=* \
1050 |
--program-transfo=* |
--program-transf=* \
1051 |
--program-trans=* |
--program-tran=* \
1052 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1053 program_transform_name
=$ac_optarg ;;
1055 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1057 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1058 pdfdir
=$ac_optarg ;;
1060 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1062 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1065 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1066 |
-silent |
--silent |
--silen |
--sile |
--sil)
1069 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1071 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1073 sbindir
=$ac_optarg ;;
1075 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1076 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1077 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1079 ac_prev
=sharedstatedir
;;
1080 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1081 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1082 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1084 sharedstatedir
=$ac_optarg ;;
1086 -site |
--site |
--sit)
1088 -site=* |
--site=* |
--sit=*)
1091 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1093 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1094 srcdir
=$ac_optarg ;;
1096 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1097 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1098 ac_prev
=sysconfdir
;;
1099 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1100 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1101 sysconfdir
=$ac_optarg ;;
1103 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1104 ac_prev
=target_alias
;;
1105 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1106 target_alias
=$ac_optarg ;;
1108 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1111 -version |
--version |
--versio |
--versi |
--vers |
-V)
1112 ac_init_version
=: ;;
1115 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1118 as_fn_error
"invalid package name: $ac_useropt"
1119 ac_useropt_orig
=$ac_useropt
1120 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep
=', ';;
1128 eval with_
$ac_useropt=\
$ac_optarg ;;
1130 -without-* |
--without-*)
1131 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1134 as_fn_error
"invalid package name: $ac_useropt"
1135 ac_useropt_orig
=$ac_useropt
1136 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1141 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep
=', ';;
1144 eval with_
$ac_useropt=no
;;
1147 # Obsolete; use --with-x.
1150 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1151 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1152 ac_prev
=x_includes
;;
1153 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1154 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1155 x_includes
=$ac_optarg ;;
1157 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1158 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1159 ac_prev
=x_libraries
;;
1160 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1161 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1162 x_libraries
=$ac_optarg ;;
1164 -*) as_fn_error
"unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information."
1169 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1173 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1175 eval $ac_envvar=\
$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1189 if test -n "$ac_prev"; then
1190 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error
"missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1197 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 # Check all directory arguments for consistency.
1203 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val
=\$
$ac_var
1209 # Remove trailing slashes.
1212 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\
$ac_val;;
1215 # Be sure to have absolute directory names.
1217 [\\/$
]* | ?
:[\\/]* ) continue;;
1218 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1220 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target
=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x
; then
1232 if test "x$build_alias" = x
; then
1233 cross_compiling
=maybe
1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1244 test "$silent" = yes && exec 6>/dev
/null
1247 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di
=`ls -di .` &&
1249 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error
"working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error
"pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted
=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir
=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted
=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1291 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var
in $ac_precious_vars; do
1308 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1310 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1384 --build=BUILD configure
for building on BUILD
[guessed
]
1385 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1386 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive
) echo "Configuration of libffi 3.99999:";;
1397 --disable-option-checking ignore unrecognized
--enable/--with options
1398 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1399 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1400 --enable-multilib build many library versions
(default
)
1401 --enable-generated-files-in-srcdir
1402 put copies of generated files
in source dir intended
1403 for creating
source tarballs
for users without
1404 texinfo bison or flex
1405 --disable-dependency-tracking speeds up one-time build
1406 --enable-dependency-tracking do not reject slow dependency extractors
1407 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1408 --enable-static[=PKGS
] build static libraries
[default
=yes]
1409 --enable-fast-install[=PKGS
]
1410 optimize
for fast installation
[default
=yes]
1411 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1412 --enable-maintainer-mode enable make rules and dependencies not useful
1413 (and sometimes confusing
) to the casual installer
1414 --enable-pax_emutramp enable pax emulated trampolines
, for we can
't use PROT_EXEC
1415 --enable-debug debugging mode
1416 --disable-structs omit code for struct support
1417 --disable-raw-api make the raw api unavailable
1418 --enable-purify-safety purify-safe mode
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic try to use only PIC/non-PIC objects [default=use
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1435 CXX C++ compiler command
1436 CXXFLAGS C++ compiler flags
1437 CCAS assembler compiler command (defaults to CC)
1438 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1440 CXXCPP C++ preprocessor
1442 Use these variables to override the choices made by `configure' or to
help
1443 it to
find libraries and programs with nonstandard names
/locations.
1445 Report bugs to
<http
://github.com
/atgreen
/libffi
/issues
>.
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1459 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1461 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1466 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1469 ac_abs_top_builddir
=$ac_pwd
1470 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir
=$ac_top_build_prefix
1475 .
) # We are building in place.
1477 ac_top_srcdir
=$ac_top_builddir_sub
1478 ac_abs_top_srcdir
=$ac_pwd ;;
1479 [\\/]* | ?
:[\\/]* ) # Absolute name.
1480 ac_srcdir
=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir
=$srcdir
1482 ac_abs_top_srcdir
=$srcdir ;;
1484 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1488 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1508 libffi configure
3.99999
1509 generated by GNU Autoconf
2.64
1511 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1512 This configure
script is free software
; the Free Software Foundation
1513 gives unlimited permission to copy
, distribute and modify it.
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile
()
1527 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1528 rm -f conftest.
$ac_objext
1529 if { { ac_try
="$ac_compile"
1531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558 } # ac_fn_c_try_compile
1560 # ac_fn_cxx_try_compile LINENO
1561 # ----------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_cxx_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1570 *) ac_try_echo
=$ac_try;;
1572 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1576 if test -s conftest.err
; then
1577 grep -v '^ *+' conftest.err
>conftest.er1
1578 cat conftest.er1
>&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_cxx_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.
$ac_objext; then :
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.
$ac_ext >&5
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1596 } # ac_fn_cxx_try_compile
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1603 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1604 rm -f conftest.
$ac_objext conftest
$ac_exeext
1605 if { { ac_try
="$ac_link"
1607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 } # ac_fn_c_try_link
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 $as_echo_n "(cached) " >&6
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1661 if ac_fn_c_try_compile "$LINENO"; then :
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 } # ac_fn_c_check_header_compile
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1684 *) ac_try_echo
=$ac_try;;
1686 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 if test -s conftest.err
; then
1691 grep -v '^ *+' conftest.err
>conftest.er1
1692 cat conftest.er1
>&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } >/dev
/null
&& {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.
$ac_ext >&5
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1718 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1719 if { { ac_try
="$ac_link"
1721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1732 *) ac_try_echo
=$ac_try;;
1734 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.
$ac_ext >&5
1746 ac_retval
=$ac_status
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1754 # ac_fn_c_check_func LINENO FUNC VAR
1755 # ----------------------------------
1756 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1757 ac_fn_c_check_func
()
1759 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 $as_echo_n "(cached) " >&6
1765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1769 #define $2 innocuous_$2
1771 /* System header to define __stub macros and hopefully few prototypes,
1772 which can conflict with char $2 (); below.
1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1774 <limits.h> exists even on freestanding compilers. */
1777 # include <limits.h>
1779 # include <assert.h>
1784 /* Override any GCC internal prototype to avoid an error.
1785 Use char because int might match the return type of a GCC
1786 builtin and then its argument prototype would still apply. */
1791 /* The GNU C library defines this for functions which it implements
1792 to always fail with ENOSYS. Some functions are actually named
1793 something starting with __ and the normal name is an alias. */
1794 #if defined __stub_$2 || defined __stub___$2
1806 if ac_fn_c_try_link
"$LINENO"; then :
1811 rm -f core conftest.err conftest.
$ac_objext \
1812 conftest
$ac_exeext conftest.
$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1819 } # ac_fn_c_check_func
1821 # ac_fn_cxx_try_cpp LINENO
1822 # ------------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_cxx_try_cpp
()
1826 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1827 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } >/dev/null && {
1843 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 } # ac_fn_cxx_try_cpp
1858 # ac_fn_cxx_try_link LINENO
1859 # -------------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_cxx_try_link ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1868 *) ac_try_echo
=$ac_try;;
1870 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1874 if test -s conftest.err
; then
1875 grep -v '^ *+' conftest.err
>conftest.er1
1876 cat conftest.er1
>&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_cxx_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest
$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 $as_test_x conftest
$ac_exeext
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.
$ac_ext >&5
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1902 } # ac_fn_cxx_try_link
1904 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1905 # --------------------------------------------
1906 # Tries to find the compile-time value of EXPR in a program that includes
1907 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1909 ac_fn_c_compute_int
()
1911 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1912 if test "$cross_compiling" = yes; then
1913 # Depending upon the size, compute the lo and hi bounds.
1914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1920 static int test_array [1 - 2 * !(($2) >= 0)];
1927 if ac_fn_c_try_compile
"$LINENO"; then :
1930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1936 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1943 if ac_fn_c_try_compile
"$LINENO"; then :
1944 ac_hi
=$ac_mid; break
1946 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
1947 if test $ac_lo -le $ac_mid; then
1951 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
1953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1962 static int test_array [1 - 2 * !(($2) < 0)];
1969 if ac_fn_c_try_compile
"$LINENO"; then :
1972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1978 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1985 if ac_fn_c_try_compile
"$LINENO"; then :
1986 ac_lo
=$ac_mid; break
1988 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
1989 if test $ac_mid -le $ac_hi; then
1993 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
1995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2003 # Binary search between lo and hi bounds.
2004 while test "x$ac_lo" != "x$ac_hi"; do
2005 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2012 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2019 if ac_fn_c_try_compile
"$LINENO"; then :
2022 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2027 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2034 static long int longval () { return $2; }
2035 static unsigned long int ulongval () { return $2; }
2042 FILE *f = fopen ("conftest.val", "w");
2047 long int i = longval ();
2050 fprintf (f, "%ld", i);
2054 unsigned long int i = ulongval ();
2057 fprintf (f, "%lu", i);
2059 /* Do not output a trailing newline, as this causes \r\n confusion
2060 on some platforms. */
2061 return ferror (f) || fclose (f) != 0;
2067 if ac_fn_c_try_run
"$LINENO"; then :
2068 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2073 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2080 } # ac_fn_c_compute_int
2082 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2083 # -------------------------------------------------------
2084 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2085 # the include files in INCLUDES and setting the cache variable VAR
2087 ac_fn_c_check_header_mongrel
()
2089 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2090 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2094 $as_echo_n "(cached) " >&6
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2100 # Is the header compilable?
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2102 $as_echo_n "checking $2 usability... " >&6; }
2103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2108 if ac_fn_c_try_compile
"$LINENO"; then :
2109 ac_header_compiler
=yes
2111 ac_header_compiler
=no
2113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2115 $as_echo "$ac_header_compiler" >&6; }
2117 # Is the header present?
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2119 $as_echo_n "checking $2 presence... " >&6; }
2120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2124 if ac_fn_c_try_cpp
"$LINENO"; then :
2125 ac_header_preproc
=yes
2127 ac_header_preproc
=no
2129 rm -f conftest.err conftest.
$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2131 $as_echo "$ac_header_preproc" >&6; }
2133 # So? What about this header?
2134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2137 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2143 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2145 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2147 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2149 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2153 ## ------------------------------------------------------ ##
2154 ## Report this to http://github.com/atgreen/libffi/issues ##
2155 ## ------------------------------------------------------ ##
2157 ) |
sed "s/^/$as_me: WARNING: /" >&2
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161 $as_echo_n "checking for $2... " >&6; }
2162 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2163 $as_echo_n "(cached) " >&6
2165 eval "$3=\$ac_header_compiler"
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2173 } # ac_fn_c_check_header_mongrel
2174 cat >config.log
<<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2178 It was created by libffi $as_me 3.99999, which was
2179 generated by GNU Autoconf 2.64. Invocation command line was
2191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir
=.
2215 $as_echo "PATH: $as_dir"
2231 # Keep a trace of the command line.
2232 # Strip out --no-create and --no-recursion so they do not pile up.
2233 # Strip out --silent because we don't want to record it for future runs.
2234 # Also quote any args containing shell meta-characters.
2235 # Make two passes to allow for proper duplicate-argument suppression.
2239 ac_must_keep_next
=false
2245 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2246 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2247 |
-silent |
--silent |
--silen |
--sile |
--sil)
2250 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2255 as_fn_append ac_configure_args1
" '$ac_arg'"
2256 if test $ac_must_keep_next = true
; then
2257 ac_must_keep_next
=false
# Got value, back to normal.
2260 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2261 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2262 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2263 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2268 -* ) ac_must_keep_next
=true
;;
2271 as_fn_append ac_configure_args
" '$ac_arg'"
2276 { ac_configure_args0
=; unset ac_configure_args0
;}
2277 { ac_configure_args1
=; unset ac_configure_args1
;}
2279 # When interrupted or exit'd, cleanup temporary files, and complete
2280 # config.log. We remove comments because anyway the quotes in there
2281 # would cause problems or look ugly.
2282 # WARNING: Use '\'' to represent an apostrophe within the trap.
2283 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284 trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2290 ## ---------------- ##
2291 ## Cache variables. ##
2292 ## ---------------- ##
2295 # The following way of writing the cache mishandles newlines in values,
2297 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2298 eval ac_val=\$$ac_var
2302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2303 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2306 _ | IFS | as_nl) ;; #(
2307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2308 *) { eval $ac_var=; unset $ac_var;} ;;
2313 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2314 *${as_nl}ac_space=\ *)
2316 "s/'\''/'\''\\\\'\'''\''/g;
2317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2328 ## ----------------- ##
2329 ## Output variables. ##
2330 ## ----------------- ##
2333 for ac_var in $ac_subst_vars
2335 eval ac_val=\$$ac_var
2337 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 $as_echo "$ac_var='\''$ac_val'\''"
2343 if test -n "$ac_subst_files"; then
2345 ## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##
2350 for ac_var
in $ac_subst_files
2352 eval ac_val
=\$
$ac_var
2354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2356 $as_echo "$ac_var='\''$ac_val'\''"
2361 if test -s confdefs.h; then
2371 test "$ac_signal" != 0 &&
2372 $as_echo "$as_me: caught signal $ac_signal"
2373 $as_echo "$as_me: exit $exit_status"
2375 rm -f core *.core core.conftest.* &&
2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2379 for ac_signal
in 1 2 13 15; do
2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2385 rm -f -r conftest
* confdefs.h
2387 $as_echo "/* confdefs.h */" > confdefs.h
2389 # Predefined preprocessor variables.
2391 cat >>confdefs.h
<<_ACEOF
2392 #define PACKAGE_NAME "$PACKAGE_NAME"
2395 cat >>confdefs.h
<<_ACEOF
2396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2399 cat >>confdefs.h
<<_ACEOF
2400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2403 cat >>confdefs.h
<<_ACEOF
2404 #define PACKAGE_STRING "$PACKAGE_STRING"
2407 cat >>confdefs.h
<<_ACEOF
2408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2411 cat >>confdefs.h
<<_ACEOF
2412 #define PACKAGE_URL "$PACKAGE_URL"
2416 # Let the site file select an alternate cache file if it wants to.
2417 # Prefer an explicitly selected file to automatically selected ones.
2420 if test -n "$CONFIG_SITE"; then
2421 ac_site_file1
=$CONFIG_SITE
2422 elif test "x$prefix" != xNONE
; then
2423 ac_site_file1
=$prefix/share
/config.site
2424 ac_site_file2
=$prefix/etc
/config.site
2426 ac_site_file1
=$ac_default_prefix/share
/config.site
2427 ac_site_file2
=$ac_default_prefix/etc
/config.site
2429 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2431 test "x$ac_site_file" = xNONE
&& continue
2432 if test -r "$ac_site_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2434 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2435 sed 's/^/| /' "$ac_site_file" >&5
2440 if test -r "$cache_file"; then
2441 # Some versions of bash will fail to source /dev/null (special
2442 # files actually), so we avoid doing that.
2443 if test -f "$cache_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2445 $as_echo "$as_me: loading cache $cache_file" >&6;}
2447 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2448 *) .
"./$cache_file";;
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2453 $as_echo "$as_me: creating cache $cache_file" >&6;}
2457 # Check that the precious variables saved in the cache have kept the same
2459 ac_cache_corrupted
=false
2460 for ac_var
in $ac_precious_vars; do
2461 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2462 eval ac_new_set
=\
$ac_env_${ac_var}_set
2463 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2464 eval ac_new_val
=\
$ac_env_${ac_var}_value
2465 case $ac_old_set,$ac_new_set in
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469 ac_cache_corrupted
=: ;;
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2472 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2473 ac_cache_corrupted
=: ;;
2476 if test "x$ac_old_val" != "x$ac_new_val"; then
2477 # differences in whitespace do not lead to failure.
2478 ac_old_val_w
=`echo x $ac_old_val`
2479 ac_new_val_w
=`echo x $ac_new_val`
2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2483 ac_cache_corrupted
=:
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2486 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487 eval $ac_var=\
$ac_old_val
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2490 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2492 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2495 # Pass precious variables to config.status.
2496 if test "$ac_new_set" = set; then
2498 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2499 *) ac_arg
=$ac_var=$ac_new_val ;;
2501 case " $ac_configure_args " in
2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2503 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2507 if $ac_cache_corrupted; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2512 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2514 ## -------------------- ##
2515 ## Main body of script. ##
2516 ## -------------------- ##
2519 ac_cpp
='$CPP $CPPFLAGS'
2520 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2528 ac_config_headers
="$ac_config_headers fficonfig.h"
2531 # Default to --enable-multilib
2532 # Check whether --enable-multilib was given.
2533 if test "${enable_multilib+set}" = set; then :
2534 enableval
=$enable_multilib; case "$enableval" in
2535 yes) multilib
=yes ;;
2537 *) as_fn_error
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2544 # We may get other options which we leave undocumented:
2545 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2546 # See config-ml.in if you want the gory details.
2548 if test "$srcdir" = "."; then
2549 if test "$with_target_subdir" != "."; then
2550 multi_basedir
="$srcdir/$with_multisrctop../.."
2552 multi_basedir
="$srcdir/$with_multisrctop.."
2555 multi_basedir
="$srcdir/.."
2559 # Even if the default multilib is not a cross compilation,
2560 # it may be that some of the other multilibs are.
2561 if test $cross_compiling = no
&& test $multilib = yes \
2562 && test "x${with_multisubdir}" != x
; then
2563 cross_compiling
=maybe
2566 ac_config_commands
="$ac_config_commands default-1"
2570 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2571 for ac_t
in install-sh
install.sh shtool
; do
2572 if test -f "$ac_dir/$ac_t"; then
2574 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2579 if test -z "$ac_aux_dir"; then
2580 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2583 # These three variables are undocumented and unsupported,
2584 # and are intended to be withdrawn in a future Autoconf release.
2585 # They can cause serious problems if a builder's source tree is in a directory
2586 # whose full name contains unusual characters.
2587 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2588 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2589 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2592 # Make sure we can run config.sub.
2593 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2594 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2597 $as_echo_n "checking build system type... " >&6; }
2598 if test "${ac_cv_build+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2601 ac_build_alias
=$build_alias
2602 test "x$ac_build_alias" = x
&&
2603 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2604 test "x$ac_build_alias" = x
&&
2605 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2606 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2607 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2611 $as_echo "$ac_cv_build" >&6; }
2612 case $ac_cv_build in
2614 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2617 ac_save_IFS
=$IFS; IFS
='-'
2623 # Remember, the first character of IFS is used to create $*,
2624 # except with old shells:
2627 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2631 $as_echo_n "checking host system type... " >&6; }
2632 if test "${ac_cv_host+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2635 if test "x$host_alias" = x
; then
2636 ac_cv_host
=$ac_cv_build
2638 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2639 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2644 $as_echo "$ac_cv_host" >&6; }
2647 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2650 ac_save_IFS
=$IFS; IFS
='-'
2656 # Remember, the first character of IFS is used to create $*,
2657 # except with old shells:
2660 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2664 $as_echo_n "checking target system type... " >&6; }
2665 if test "${ac_cv_target+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2668 if test "x$target_alias" = x
; then
2669 ac_cv_target
=$ac_cv_host
2671 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2672 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2677 $as_echo "$ac_cv_target" >&6; }
2678 case $ac_cv_target in
2680 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2682 target
=$ac_cv_target
2683 ac_save_IFS
=$IFS; IFS
='-'
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2693 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2696 # The aliases save the names the user supplied, while $host etc.
2697 # will get canonicalized.
2698 test -n "$target_alias" &&
2699 test "$program_prefix$program_suffix$program_transform_name" = \
2701 program_prefix
=${target_alias}-
2703 target_alias
=${target_alias-$host_alias}
2705 am__api_version
='1.11'
2707 # Find a good install program. We prefer a C program (faster),
2708 # so one script is as good as another. But avoid the broken or
2709 # incompatible versions:
2710 # SysV /etc/install, /usr/sbin/install
2711 # SunOS /usr/etc/install
2712 # IRIX /sbin/install
2714 # AmigaOS /C/install, which installs bootblocks on floppy discs
2715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2718 # OS/2's system install, which has a completely different semantic
2719 # ./install, which can be erroneously created by make from ./install.sh.
2720 # Reject install programs that cannot install multiple files.
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2722 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2723 if test -z "$INSTALL"; then
2724 if test "${ac_cv_path_install+set}" = set; then :
2725 $as_echo_n "(cached) " >&6
2727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir
=.
2732 # Account for people who put trailing slashes in PATH elements.
2733 case $as_dir/ in #((
2734 .
/ | .
// |
/[cC
]/* | \
2735 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2736 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2739 # OSF1 and SCO ODT 3.0 have their own names for install.
2740 # Don't use installbsd from OSF since it installs stuff as root
2742 for ac_prog
in ginstall scoinst
install; do
2743 for ac_exec_ext
in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2745 if test $ac_prog = install &&
2746 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2747 # AIX install. It has an incompatible calling convention.
2749 elif test $ac_prog = install &&
2750 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2751 # program-specific install script used by HP pwplus--don't use.
2754 rm -rf conftest.one conftest.two conftest.dir
2755 echo one
> conftest.one
2756 echo two
> conftest.two
2758 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2759 test -s conftest.one
&& test -s conftest.two
&&
2760 test -s conftest.dir
/conftest.one
&&
2761 test -s conftest.dir
/conftest.two
2763 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2776 rm -rf conftest.one conftest.two conftest.dir
2779 if test "${ac_cv_path_install+set}" = set; then
2780 INSTALL
=$ac_cv_path_install
2782 # As a last resort, use the slow shell script. Don't cache a
2783 # value for INSTALL within a source directory, because that will
2784 # break other packages using the cache if that directory is
2785 # removed, or if the value is a relative name.
2786 INSTALL
=$ac_install_sh
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2790 $as_echo "$INSTALL" >&6; }
2792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2793 # It thinks the first close brace ends the variable substitution.
2794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2798 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2801 $as_echo_n "checking whether build environment is sane... " >&6; }
2804 echo timestamp
> conftest.
file
2805 # Reject unsafe characters in $srcdir or the absolute working directory
2806 # name. Accept space and tab only in the latter.
2810 *[\\\"\
#\$\&\'\`$am_lf]*)
2811 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2814 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2815 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2818 # Do `set' in a subshell so we don't clobber the current shell's
2819 # arguments. Must try -L first in case configure is actually a
2820 # symlink; some systems play weird games with the mod time of symlinks
2821 # (eg FreeBSD returns the mod time of the symlink's containing
2824 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2825 if test "$*" = "X"; then
2827 set X
`ls -t "$srcdir/configure" conftest.file`
2830 if test "$*" != "X $srcdir/configure conftest.file" \
2831 && test "$*" != "X conftest.file $srcdir/configure"; then
2833 # If neither matched, then we have a broken ls. This can happen
2834 # if, for instance, CONFIG_SHELL is bash and it inherits a
2835 # broken ls alias from the environment. This has actually
2836 # happened. Such a system could not be considered "sane".
2837 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2838 alias in your environment" "$LINENO" 5
2841 test "$2" = conftest.
file
2847 as_fn_error
"newly created file is older than distributed files!
2848 Check your system clock" "$LINENO" 5
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2851 $as_echo "yes" >&6; }
2852 test "$program_prefix" != NONE
&&
2853 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2854 # Use a double $ so make ignores it.
2855 test "$program_suffix" != NONE
&&
2856 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2857 # Double any \ or $.
2858 # By default was `s,x,x', remove it if useless.
2859 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2860 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2862 # expand $ac_aux_dir to an absolute path
2863 am_aux_dir
=`cd $ac_aux_dir && pwd`
2865 if test x
"${MISSING+set}" != xset
; then
2868 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2870 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2873 # Use eval to expand $SHELL
2874 if eval "$MISSING --run true"; then
2875 am_missing_run
="$MISSING --run "
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2879 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2882 if test x
"${install_sh}" != xset
; then
2885 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2891 # Installed binaries are usually stripped using `strip' when the user
2892 # run `make install-strip'. However `strip' might not be the right
2893 # tool to use in cross-compilation environments, therefore Automake
2894 # will honor the `STRIP' environment variable to overrule this program.
2895 if test "$cross_compiling" != no
; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2898 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_STRIP+set}" = set; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$STRIP"; then
2905 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir
=.
2912 for ac_exec_ext
in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 STRIP
=$ac_cv_prog_STRIP
2925 if test -n "$STRIP"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2927 $as_echo "$STRIP" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2935 if test -z "$ac_cv_prog_STRIP"; then
2937 # Extract the first word of "strip", so it can be a program name with args.
2938 set dummy strip
; ac_word
=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$ac_ct_STRIP"; then
2945 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir
=.
2952 for ac_exec_ext
in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_ac_ct_STRIP
="strip"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2965 if test -n "$ac_ct_STRIP"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2967 $as_echo "$ac_ct_STRIP" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2973 if test "x$ac_ct_STRIP" = x
; then
2976 case $cross_compiling:$ac_tool_warned in
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned
=yes ;;
2985 STRIP
="$ac_cv_prog_STRIP"
2989 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2992 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2993 if test -z "$MKDIR_P"; then
2994 if test "${ac_cv_path_mkdir+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2998 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_prog
in mkdir gmkdir
; do
3003 for ac_exec_ext
in '' $ac_executable_extensions; do
3004 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3005 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3006 'mkdir (GNU coreutils) '* | \
3007 'mkdir (coreutils) '* | \
3008 'mkdir (fileutils) '4.1*)
3009 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3019 if test "${ac_cv_path_mkdir+set}" = set; then
3020 MKDIR_P
="$ac_cv_path_mkdir -p"
3022 # As a last resort, use the slow shell script. Don't cache a
3023 # value for MKDIR_P within a source directory, because that will
3024 # break other packages using the cache if that directory is
3025 # removed, or if the value is a relative name.
3026 test -d .
/--version && rmdir .
/--version
3027 MKDIR_P
="$ac_install_sh -d"
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3031 $as_echo "$MKDIR_P" >&6; }
3035 [\\/$
]* | ?
:[\\/]*) ;;
3036 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3039 for ac_prog
in gawk mawk nawk
awk
3041 # Extract the first word of "$ac_prog", so it can be a program name with args.
3042 set dummy
$ac_prog; ac_word
=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_AWK+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$AWK"; then
3049 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir
=.
3056 for ac_exec_ext
in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_AWK
="$ac_prog"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 if test -n "$AWK"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3071 $as_echo "$AWK" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3078 test -n "$AWK" && break
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3082 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3084 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3085 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3086 $as_echo_n "(cached) " >&6
3088 cat >conftest.
make <<\_ACEOF
3091 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3093 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3094 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3096 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3098 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3102 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3104 $as_echo "yes" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 SET_MAKE
="MAKE=${MAKE-make}"
3112 rm -rf .tst
2>/dev
/null
3113 mkdir .tst
2>/dev
/null
3114 if test -d .tst
; then
3119 rmdir .tst
2>/dev
/null
3121 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3122 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3123 # is not polluted with repeated "-I."
3124 am__isrc
=' -I$(srcdir)'
3125 # test to see if srcdir already configured
3126 if test -f $srcdir/config.status
; then
3127 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131 # test whether we have cygpath
3132 if test -z "$CYGPATH_W"; then
3133 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3134 CYGPATH_W
='cygpath -w'
3141 # Define the identity of the package.
3146 cat >>confdefs.h
<<_ACEOF
3147 #define PACKAGE "$PACKAGE"
3151 cat >>confdefs.h
<<_ACEOF
3152 #define VERSION "$VERSION"
3155 # Some tools Automake needs.
3157 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3160 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3163 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3166 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3169 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3171 # We need awk for the "check" target. The system "awk" is bad on
3173 # Always define AMTAR for backward compatibility. Yes, it's still used
3174 # in the wild :-( We should find a proper way to deprecate it ...
3177 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3184 # See if makeinfo has been installed and is modern enough
3185 # that we can use it.
3187 # Extract the first word of "makeinfo", so it can be a program name with args.
3188 set dummy makeinfo
; ac_word
=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
3194 if test -n "$MAKEINFO"; then
3195 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
3197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir
=.
3202 for ac_exec_ext
in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_MAKEINFO
="makeinfo"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 MAKEINFO
=$ac_cv_prog_MAKEINFO
3215 if test -n "$MAKEINFO"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3217 $as_echo "$MAKEINFO" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3224 if test -n "$MAKEINFO"; then
3225 # Found it, now check the version.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3227 $as_echo_n "checking for modern makeinfo... " >&6; }
3228 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3231 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
3232 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3234 case $ac_prog_version in
3235 '') gcc_cv_prog_makeinfo_modern
=no
;;
3236 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
3237 *) gcc_cv_prog_makeinfo_modern
=no
;;
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3242 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3244 gcc_cv_prog_makeinfo_modern
=no
3246 if test $gcc_cv_prog_makeinfo_modern = no
; then
3247 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3250 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3252 BUILD_INFO_FALSE
='#'
3259 # We would like our source tree to be readonly. However when releases or
3260 # pre-releases are generated, the flex/bison generated files as well as the
3261 # various formats of manuals need to be included along with the rest of the
3262 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3265 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3266 # Check whether --enable-generated-files-in-srcdir was given.
3267 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3268 enableval
=$enable_generated_files_in_srcdir; case "$enableval" in
3269 yes) enable_generated_files_in_srcdir
=yes ;;
3270 no
) enable_generated_files_in_srcdir
=no
;;
3271 *) as_fn_error
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3274 enable_generated_files_in_srcdir
=no
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3278 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3279 if test "$enable_generated_files_in_srcdir" = yes; then
3288 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3289 # We must force CC to /not/ be precious variables; otherwise
3290 # the wrong, non-multilib-adjusted value will be used in multilibs.
3291 # As a side effect, we have to subst CFLAGS ourselves.
3292 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3293 # defaults of its own if none are provided.
3299 ac_cpp
='$CPP $CPPFLAGS'
3300 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3305 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC
="$CC" # Let the user override the test.
3314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir
=.
3319 for ac_exec_ext
in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3342 if test -z "$ac_cv_prog_CC"; then
3344 # Extract the first word of "gcc", so it can be a program name with args.
3345 set dummy gcc
; ac_word
=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3351 if test -n "$ac_ct_CC"; then
3352 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir
=.
3359 for ac_exec_ext
in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_ac_ct_CC
="gcc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3372 if test -n "$ac_ct_CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374 $as_echo "$ac_ct_CC" >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3380 if test "x$ac_ct_CC" = x
; then
3383 case $cross_compiling:$ac_tool_warned in
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387 ac_tool_warned
=yes ;;
3395 if test -z "$CC"; then
3396 if test -n "$ac_tool_prefix"; then
3397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3398 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then :
3402 $as_echo_n "(cached) " >&6
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC
="$CC" # Let the user override the test.
3407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir
=.
3412 for ac_exec_ext
in '' $ac_executable_extensions; do
3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 if test -n "$CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3436 if test -z "$CC"; then
3437 # Extract the first word of "cc", so it can be a program name with args.
3438 set dummy cc
; ac_word
=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if test "${ac_cv_prog_CC+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC
="$CC" # Let the user override the test.
3448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir
=.
3453 for ac_exec_ext
in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456 ac_prog_rejected
=yes
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 if test $ac_prog_rejected = yes; then
3468 # We found a bogon in the path, so make sure we never use it.
3469 set dummy
$ac_cv_prog_CC
3471 if test $# != 0; then
3472 # We chose a different compiler from the bogus one.
3473 # However, it has the same basename, so the bogon will be chosen
3474 # first if we set CC to just the basename; use the full file name.
3476 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3492 if test -z "$CC"; then
3493 if test -n "$ac_tool_prefix"; then
3494 for ac_prog
in cl.exe
3496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC
="$CC" # Let the user override the test.
3506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir
=.
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 if test -n "$CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 $as_echo "$CC" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3533 test -n "$CC" && break
3536 if test -z "$CC"; then
3538 for ac_prog
in cl.exe
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy
$ac_prog; ac_word
=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$ac_ct_CC"; then
3548 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir
=.
3555 for ac_exec_ext
in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_ac_ct_CC
="$ac_prog"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3568 if test -n "$ac_ct_CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3570 $as_echo "$ac_ct_CC" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3577 test -n "$ac_ct_CC" && break
3580 if test "x$ac_ct_CC" = x
; then
3583 case $cross_compiling:$ac_tool_warned in
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned
=yes ;;
3596 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error
"no acceptable C compiler found in \$PATH
3599 See \`config.log' for more details." "$LINENO" 5; }
3601 # Provide some information about the compiler.
3602 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3605 for ac_option
in --version -v -V -qversion; do
3606 { { ac_try
="$ac_compiler $ac_option >&5"
3608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3615 if test -s conftest.err; then
3617 ... rest of stderr output deleted ...
3618 10q' conftest.err >conftest.er1
3619 cat conftest.er1 >&5
3620 rm -f conftest.er1 conftest.err
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3637 ac_clean_files_save=$ac_clean_files
3638 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3639 # Try to create an executable without -o first, disregard a.out.
3640 # It will help us diagnose broken compilers, and finding out an intuition
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3643 $as_echo_n "checking for C compiler default output file name... " >&6; }
3644 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3646 # The possible output files:
3647 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3650 for ac_file in $ac_files
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3659 if { { ac_try="$ac_link_default"
3661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3662 *) ac_try_echo
=$ac_try;;
3664 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link_default") 2>&5
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3671 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3672 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3673 # so that the user can short-circuit this test for compilers unknown to
3675 for ac_file
in $ac_files ''
3677 test -f "$ac_file" ||
continue
3679 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3682 # We found the default executable, but exeext='' is most
3686 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3688 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 # We set ac_cv_exeext here because the later test for it is not
3691 # safe: cross compilers may not add the suffix if given an `-o'
3692 # argument, so we may need to know it at that point already.
3693 # Even if this section looks crufty: it has the advantage of
3700 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3706 $as_echo "$ac_file" >&6; }
3707 if test -z "$ac_file"; then :
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.
$ac_ext >&5
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 { as_fn_set_status
77
3714 as_fn_error
"C compiler cannot create executables
3715 See \`config.log' for more details." "$LINENO" 5; }; }
3717 ac_exeext
=$ac_cv_exeext
3719 # Check that the compiler produces executables we can run. If not, either
3720 # the compiler is broken, or we cross compile.
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3722 $as_echo_n "checking whether the C compiler works... " >&6; }
3723 # If not cross compiling, check that we can run a simple program.
3724 if test "$cross_compiling" != yes; then
3725 if { ac_try
='./$ac_file'
3726 { { case "(($ac_try" in
3727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_try") 2>&5
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; }; then
3738 if test "$cross_compiling" = maybe; then
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error "cannot run C compiled programs.
3744 If you meant to cross compile
, use \
`--host'.
3745 See \`config.log
' for more details." "$LINENO" 5; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3750 $as_echo "yes" >&6; }
3752 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3753 ac_clean_files=$ac_clean_files_save
3754 # Check that the compiler produces executables we can run. If not, either
3755 # the compiler is broken, or we cross compile.
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3757 $as_echo_n "checking whether we are cross compiling... " >&6; }
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3759 $as_echo "$cross_compiling" >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3762 $as_echo_n "checking for suffix of executables... " >&6; }
3763 if { { ac_try="$ac_link"
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link") 2>&5
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; then :
3774 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3775 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3776 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3778 for ac_file
in conftest.exe conftest conftest.
*; do
3779 test -f "$ac_file" ||
continue
3781 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3782 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3791 See \`config.log' for more details." "$LINENO" 5; }
3793 rm -f conftest
$ac_cv_exeext
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3795 $as_echo "$ac_cv_exeext" >&6; }
3797 rm -f conftest.
$ac_ext
3798 EXEEXT
=$ac_cv_exeext
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3801 $as_echo_n "checking for suffix of object files... " >&6; }
3802 if test "${ac_cv_objext+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3816 rm -f conftest.o conftest.obj
3817 if { { ac_try
="$ac_compile"
3819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compile") 2>&5
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }; then :
3828 for ac_file in conftest.o conftest.obj conftest.*; do
3829 test -f "$ac_file" || continue;
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error "cannot compute suffix of object files
: cannot compile
3843 See \
`config.log' for more details." "$LINENO" 5; }
3845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3848 $as_echo "$ac_cv_objext" >&6; }
3849 OBJEXT=$ac_cv_objext
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3852 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3853 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3870 if ac_fn_c_try_compile "$LINENO"; then :
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3880 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3881 if test $ac_compiler_gnu = yes; then
3886 ac_test_CFLAGS=${CFLAGS+set}
3887 ac_save_CFLAGS=$CFLAGS
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3889 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3890 if test "${ac_cv_prog_cc_g+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3893 ac_save_c_werror_flag=$ac_c_werror_flag
3894 ac_c_werror_flag=yes
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3908 if ac_fn_c_try_compile "$LINENO"; then :
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3923 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_c_werror_flag=$ac_save_c_werror_flag
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3939 if ac_fn_c_try_compile "$LINENO"; then :
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 ac_c_werror_flag=$ac_save_c_werror_flag
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3950 $as_echo "$ac_cv_prog_cc_g" >&6; }
3951 if test "$ac_test_CFLAGS" = set; then
3952 CFLAGS=$ac_save_CFLAGS
3953 elif test $ac_cv_prog_cc_g = yes; then
3954 if test "$GCC" = yes; then
3960 if test "$GCC" = yes; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3967 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3968 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3971 ac_cv_prog_cc_c89=no
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3977 #include <sys/types.h>
3978 #include <sys/stat.h>
3979 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3980 struct buf { int x; };
3981 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3982 static char *e (p, i)
3988 static char *f (char * (*g) (char **, int), char **p, ...)
3993 s = g (p, va_arg (v,int));
3998 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3999 function prototypes and stuff, but not '\xHH' hex character constants.
4000 These don't provoke an error unfortunately, instead are silently treated
4001 as 'x'. The following induces an error, until -std is added to get
4002 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4003 array size at least. It's necessary to write '\x00'==0 to get something
4004 that's true only with -std. */
4005 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4007 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4008 inside strings and character constants. */
4010 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4012 int test (int i, double x);
4013 struct s1 {int (*f) (int a);};
4014 struct s2 {int (*f) (double a);};
4015 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4021 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4026 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4027 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4029 CC="$ac_save_CC $ac_arg"
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_prog_cc_c89=$ac_arg
4033 rm -f core conftest.err conftest.$ac_objext
4034 test "x$ac_cv_prog_cc_c89" != "xno" && break
4036 rm -f conftest.$ac_ext
4041 case "x$ac_cv_prog_cc_c89" in
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4044 $as_echo "none needed" >&6; } ;;
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4047 $as_echo "unsupported" >&6; } ;;
4049 CC="$CC $ac_cv_prog_cc_c89"
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4051 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4053 if test "x$ac_cv_prog_cc_c89" != xno; then :
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 DEPDIR="${am__leading_dot}deps"
4064 ac_config_commands="$ac_config_commands depfiles"
4067 am_make=${MAKE-make}
4068 cat > confinc << 'END'
4070 @echo this is the am__doit target
4073 # If we don't find an include directive, just comment out the code.
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4075 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4079 # First try GNU make style include.
4080 echo "include confinc" > confmf
4081 # Ignore all kinds of additional output from `make'.
4082 case `$am_make -s -f confmf 2> /dev/null` in #(
4083 *the\ am__doit\ target*)
4089 # Now try BSD make style include.
4090 if test "$am__include" = "#"; then
4091 echo '.include
"confinc"' > confmf
4092 case `$am_make -s -f confmf 2> /dev/null` in #(
4093 *the\ am__doit\ target*)
4094 am__include=.include
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4103 $as_echo "$_am_result" >&6; }
4104 rm -f confinc confmf
4106 # Check whether --enable-dependency-tracking was given.
4107 if test "${enable_dependency_tracking+set}" = set; then :
4108 enableval=$enable_dependency_tracking;
4111 if test "x$enable_dependency_tracking" != xno; then
4112 am_depcomp="$ac_aux_dir/depcomp"
4116 if test "x$enable_dependency_tracking" != xno
; then
4126 depcc
="$CC" am_compiler_list
=
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4129 $as_echo_n "checking dependency style of $depcc... " >&6; }
4130 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4133 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4134 # We make a subdir and do the tests there. Otherwise we can end up
4135 # making bogus files that we don't know about and never remove. For
4136 # instance it was reported that on HP-UX the gcc test will end up
4137 # making a dummy file named `D' -- because `-MD' means `put the output
4141 # Copy depcomp to subdir because otherwise we won't find it if we're
4142 # using a relative directory.
4143 cp "$am_depcomp" conftest.dir
4145 # We will build objects and dependencies in a subdirectory because
4146 # it helps to detect inapplicable dependency modes. For instance
4147 # both Tru64's cc and ICC support -MD to output dependencies as a
4148 # side effect of compilation, but ICC will put the dependencies in
4149 # the current directory while Tru64 will put them in the object
4153 am_cv_CC_dependencies_compiler_type
=none
4154 if test "$am_compiler_list" = ""; then
4155 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4158 case " $depcc " in #(
4159 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4162 for depmode
in $am_compiler_list; do
4163 # Setup a source with many dependencies, because some compilers
4164 # like to wrap large dependency lists on column 80 (with \), and
4165 # we should not choose a depcomp mode which is confused by this.
4167 # We need to recreate these files for each test, as the compiler may
4168 # overwrite some of them when testing with obscure command lines.
4169 # This happens at least with the AIX C compiler.
4171 for i
in 1 2 3 4 5 6; do
4172 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4174 # Solaris 8's {/usr,}/bin/sh.
4175 touch sub
/conftst
$i.h
4177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4180 # mode. It turns out that the SunPro C++ compiler does not properly
4181 # handle `-M -o', and we need to detect this. Also, some Intel
4182 # versions had trouble with output in subdirs
4183 am__obj
=sub
/conftest.
${OBJEXT-o}
4184 am__minus_obj
="-o $am__obj"
4187 # This depmode causes a compiler race in universal mode.
4188 test "$am__universal" = false ||
continue
4191 # after this tag, mechanisms are not by side-effect, so they'll
4192 # only be used when explicitly requested
4193 if test "x$enable_dependency_tracking" = xyes
; then
4199 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4200 # This compiler won't grok `-c -o', but also, the minuso test has
4201 # not run yet. These depmodes are late enough in the game, and
4202 # so weak that their functioning should not be impacted.
4203 am__obj
=conftest.
${OBJEXT-o}
4208 if depmode
=$depmode \
4209 source=sub
/conftest.c object
=$am__obj \
4210 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4211 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4212 >/dev
/null
2>conftest.err
&&
4213 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4214 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4215 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4216 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4217 # icc doesn't choke on unknown options, it will just issue warnings
4218 # or remarks (even with -Werror). So we grep stderr for any message
4219 # that says an option was ignored or not supported.
4220 # When given -MP, icc 7.0 and 7.1 complain thusly:
4221 # icc: Command line warning: ignoring option '-M'; no argument required
4222 # The diagnosis changed in icc 8.0:
4223 # icc: Command line remark: option '-MP' not supported
4224 if (grep 'ignoring option' conftest.err ||
4225 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4226 am_cv_CC_dependencies_compiler_type
=$depmode
4235 am_cv_CC_dependencies_compiler_type
=none
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4240 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4241 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4244 test "x$enable_dependency_tracking" != xno \
4245 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4247 am__fastdepCC_FALSE
='#'
4249 am__fastdepCC_TRUE
='#'
4250 am__fastdepCC_FALSE
=
4255 ac_cpp
='$CXXCPP $CPPFLAGS'
4256 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4259 if test -z "$CXX"; then
4260 if test -n "$CCC"; then
4263 if test -n "$ac_tool_prefix"; then
4264 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4267 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if test "${ac_cv_prog_CXX+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4273 if test -n "$CXX"; then
4274 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir
=.
4281 for ac_exec_ext
in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 if test -n "$CXX"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4296 $as_echo "$CXX" >&6; }
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4303 test -n "$CXX" && break
4306 if test -z "$CXX"; then
4308 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311 set dummy
$ac_prog; ac_word
=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4317 if test -n "$ac_ct_CXX"; then
4318 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4324 test -z "$as_dir" && as_dir
=.
4325 for ac_exec_ext
in '' $ac_executable_extensions; do
4326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4338 if test -n "$ac_ct_CXX"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4340 $as_echo "$ac_ct_CXX" >&6; }
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4347 test -n "$ac_ct_CXX" && break
4350 if test "x$ac_ct_CXX" = x
; then
4353 case $cross_compiling:$ac_tool_warned in
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4357 ac_tool_warned
=yes ;;
4365 # Provide some information about the compiler.
4366 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4369 for ac_option
in --version -v -V -qversion; do
4370 { { ac_try
="$ac_compiler $ac_option >&5"
4372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4376 $as_echo "$ac_try_echo"; } >&5
4377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4379 if test -s conftest.err; then
4381 ... rest of stderr output deleted ...
4382 10q' conftest.err >conftest.er1
4383 cat conftest.er1 >&5
4384 rm -f conftest.er1 conftest.err
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4391 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4392 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4409 if ac_fn_cxx_try_compile "$LINENO"; then :
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4419 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4420 if test $ac_compiler_gnu = yes; then
4425 ac_test_CXXFLAGS=${CXXFLAGS+set}
4426 ac_save_CXXFLAGS=$CXXFLAGS
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4428 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4429 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4432 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4433 ac_cxx_werror_flag=yes
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4447 if ac_fn_cxx_try_compile "$LINENO"; then :
4448 ac_cv_prog_cxx_g=yes
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4462 if ac_fn_cxx_try_compile "$LINENO"; then :
4465 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4478 if ac_fn_cxx_try_compile "$LINENO"; then :
4479 ac_cv_prog_cxx_g=yes
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4489 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4490 if test "$ac_test_CXXFLAGS" = set; then
4491 CXXFLAGS=$ac_save_CXXFLAGS
4492 elif test $ac_cv_prog_cxx_g = yes; then
4493 if test "$GXX" = yes; then
4499 if test "$GXX" = yes; then
4506 ac_cpp='$CPP $CPPFLAGS'
4507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511 depcc="$CXX" am_compiler_list=
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4514 $as_echo_n "checking dependency style of $depcc... " >&6; }
4515 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4518 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4519 # We make a subdir and do the tests there. Otherwise we can end up
4520 # making bogus files that we don't know about and never remove. For
4521 # instance it was reported that on HP-UX the gcc test will end up
4522 # making a dummy file named `D
' -- because `-MD' means
`put the output
4526 # Copy depcomp to subdir because otherwise we won't find it if we're
4527 # using a relative directory.
4528 cp "$am_depcomp" conftest.dir
4530 # We will build objects and dependencies in a subdirectory because
4531 # it helps to detect inapplicable dependency modes. For instance
4532 # both Tru64's cc and ICC support -MD to output dependencies as a
4533 # side effect of compilation, but ICC will put the dependencies in
4534 # the current directory while Tru64 will put them in the object
4538 am_cv_CXX_dependencies_compiler_type=none
4539 if test "$am_compiler_list" = ""; then
4540 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4543 case " $depcc " in #(
4544 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4547 for depmode in $am_compiler_list; do
4548 # Setup a source with many dependencies, because some compilers
4549 # like to wrap large dependency lists on column 80 (with \), and
4550 # we should not choose a depcomp mode which is confused by this.
4552 # We need to recreate these files for each test, as the compiler may
4553 # overwrite some of them when testing with obscure command lines.
4554 # This happens at least with the AIX C compiler.
4556 for i in 1 2 3 4 5 6; do
4557 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4558 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4559 # Solaris 8's
{/usr
,}/bin
/sh.
4560 touch sub
/conftst
$i.h
4562 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4564 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4565 # mode. It turns out that the SunPro C++ compiler does not properly
4566 # handle `-M -o', and we need to detect this. Also, some Intel
4567 # versions had trouble with output in subdirs
4568 am__obj
=sub
/conftest.
${OBJEXT-o}
4569 am__minus_obj
="-o $am__obj"
4572 # This depmode causes a compiler race in universal mode.
4573 test "$am__universal" = false ||
continue
4576 # after this tag, mechanisms are not by side-effect, so they'll
4577 # only be used when explicitly requested
4578 if test "x$enable_dependency_tracking" = xyes
; then
4584 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4585 # This compiler won't grok `-c -o', but also, the minuso test has
4586 # not run yet. These depmodes are late enough in the game, and
4587 # so weak that their functioning should not be impacted.
4588 am__obj
=conftest.
${OBJEXT-o}
4593 if depmode
=$depmode \
4594 source=sub
/conftest.c object
=$am__obj \
4595 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4596 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4597 >/dev
/null
2>conftest.err
&&
4598 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4599 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4600 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4601 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4602 # icc doesn't choke on unknown options, it will just issue warnings
4603 # or remarks (even with -Werror). So we grep stderr for any message
4604 # that says an option was ignored or not supported.
4605 # When given -MP, icc 7.0 and 7.1 complain thusly:
4606 # icc: Command line warning: ignoring option '-M'; no argument required
4607 # The diagnosis changed in icc 8.0:
4608 # icc: Command line remark: option '-MP' not supported
4609 if (grep 'ignoring option' conftest.err ||
4610 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4611 am_cv_CXX_dependencies_compiler_type
=$depmode
4620 am_cv_CXX_dependencies_compiler_type
=none
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4625 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4626 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4629 test "x$enable_dependency_tracking" != xno \
4630 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4631 am__fastdepCXX_TRUE
=
4632 am__fastdepCXX_FALSE
='#'
4634 am__fastdepCXX_TRUE
='#'
4635 am__fastdepCXX_FALSE
=
4645 # By default we simply use the C compiler to build assembly code.
4647 test "${CCAS+set}" = set || CCAS
=$CC
4648 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4652 depcc
="$CCAS" am_compiler_list
=
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4655 $as_echo_n "checking dependency style of $depcc... " >&6; }
4656 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4660 # We make a subdir and do the tests there. Otherwise we can end up
4661 # making bogus files that we don't know about and never remove. For
4662 # instance it was reported that on HP-UX the gcc test will end up
4663 # making a dummy file named `D' -- because `-MD' means `put the output
4667 # Copy depcomp to subdir because otherwise we won't find it if we're
4668 # using a relative directory.
4669 cp "$am_depcomp" conftest.dir
4671 # We will build objects and dependencies in a subdirectory because
4672 # it helps to detect inapplicable dependency modes. For instance
4673 # both Tru64's cc and ICC support -MD to output dependencies as a
4674 # side effect of compilation, but ICC will put the dependencies in
4675 # the current directory while Tru64 will put them in the object
4679 am_cv_CCAS_dependencies_compiler_type
=none
4680 if test "$am_compiler_list" = ""; then
4681 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4686 for depmode
in $am_compiler_list; do
4687 # Setup a source with many dependencies, because some compilers
4688 # like to wrap large dependency lists on column 80 (with \), and
4689 # we should not choose a depcomp mode which is confused by this.
4691 # We need to recreate these files for each test, as the compiler may
4692 # overwrite some of them when testing with obscure command lines.
4693 # This happens at least with the AIX C compiler.
4695 for i
in 1 2 3 4 5 6; do
4696 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4697 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4698 # Solaris 8's {/usr,}/bin/sh.
4699 touch sub
/conftst
$i.h
4701 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4703 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4704 # mode. It turns out that the SunPro C++ compiler does not properly
4705 # handle `-M -o', and we need to detect this. Also, some Intel
4706 # versions had trouble with output in subdirs
4707 am__obj
=sub
/conftest.
${OBJEXT-o}
4708 am__minus_obj
="-o $am__obj"
4711 # This depmode causes a compiler race in universal mode.
4712 test "$am__universal" = false ||
continue
4715 # after this tag, mechanisms are not by side-effect, so they'll
4716 # only be used when explicitly requested
4717 if test "x$enable_dependency_tracking" = xyes
; then
4723 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4724 # This compiler won't grok `-c -o', but also, the minuso test has
4725 # not run yet. These depmodes are late enough in the game, and
4726 # so weak that their functioning should not be impacted.
4727 am__obj
=conftest.
${OBJEXT-o}
4732 if depmode
=$depmode \
4733 source=sub
/conftest.c object
=$am__obj \
4734 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4735 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4736 >/dev
/null
2>conftest.err
&&
4737 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4738 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4739 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4740 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4741 # icc doesn't choke on unknown options, it will just issue warnings
4742 # or remarks (even with -Werror). So we grep stderr for any message
4743 # that says an option was ignored or not supported.
4744 # When given -MP, icc 7.0 and 7.1 complain thusly:
4745 # icc: Command line warning: ignoring option '-M'; no argument required
4746 # The diagnosis changed in icc 8.0:
4747 # icc: Command line remark: option '-MP' not supported
4748 if (grep 'ignoring option' conftest.err ||
4749 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4750 am_cv_CCAS_dependencies_compiler_type
=$depmode
4759 am_cv_CCAS_dependencies_compiler_type
=none
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4764 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4765 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
4768 test "x$enable_dependency_tracking" != xno \
4769 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
4770 am__fastdepCCAS_TRUE
=
4771 am__fastdepCCAS_FALSE
='#'
4773 am__fastdepCCAS_TRUE
='#'
4774 am__fastdepCCAS_FALSE
=
4778 if test "x$CC" != xcc
; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4780 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4783 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4785 set dummy
$CC; ac_cc
=`$as_echo "$2" |
4786 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4787 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4788 $as_echo_n "(cached) " >&6
4790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4801 # Make sure it works both with $CC and with simple cc.
4802 # We do the test twice because some compilers refuse to overwrite an
4803 # existing .o file with -o, though they will create one.
4804 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4806 if { { case "(($ac_try" in
4807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4811 $as_echo "$ac_try_echo"; } >&5
4812 (eval "$ac_try") 2>&5
4814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4815 test $ac_status = 0; } &&
4816 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4818 *) ac_try_echo
=$ac_try;;
4820 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4821 $as_echo "$ac_try_echo"; } >&5
4822 (eval "$ac_try") 2>&5
4824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4825 test $ac_status = 0; };
4827 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
4828 if test "x$CC" != xcc
; then
4829 # Test first that cc exists at all.
4830 if { ac_try
='cc -c conftest.$ac_ext >&5'
4831 { { case "(($ac_try" in
4832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837 (eval "$ac_try") 2>&5
4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4840 test $ac_status = 0; }; }; then
4841 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4843 if { { case "(($ac_try" in
4844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4845 *) ac_try_echo
=$ac_try;;
4847 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4848 $as_echo "$ac_try_echo"; } >&5
4849 (eval "$ac_try") 2>&5
4851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4852 test $ac_status = 0; } &&
4853 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4858 $as_echo "$ac_try_echo"; } >&5
4859 (eval "$ac_try") 2>&5
4861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862 test $ac_status = 0; };
4867 # cc exists but doesn't like -o.
4868 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4873 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4875 rm -f core conftest*
4878 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880 $as_echo "yes" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4885 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4889 # FIXME: we rely on the cache variable name because
4890 # there is no other way.
4892 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4893 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4894 if test "$am_t" != yes; then
4895 # Losing compiler, so override with the script.
4896 # FIXME: It is wrong to rewrite CC.
4897 # But if we don't then we get into trouble of one sort or another.
4898 # A longer-term fix would be to have automake use am__CC in this case,
4899 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4900 CC="$am_aux_dir/compile $CC"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4912 macro_version='2.2.7a'
4913 macro_revision='1.3134'
4927 ltmain="$ac_aux_dir/ltmain.sh"
4929 # Backslashify metacharacters that are still active within
4930 # double-quoted strings.
4931 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4933 # Same as above, but do not quote variable references.
4934 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4936 # Sed substitution to delay expansion of an escaped shell variable in a
4937 # double_quote_subst'ed string.
4938 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4940 # Sed substitution to delay expansion of an escaped single quote.
4941 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4943 # Sed substitution to avoid accidental globbing in evaled expressions
4944 no_glob_subst='s/\*/\\\*/g'
4946 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4947 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4951 $as_echo_n "checking how to print
strings...
" >&6; }
4952 # Test print first, because it will be a builtin if present.
4953 if test "X
`print -r -- -n 2>/dev/null`" = X-n && \
4954 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4956 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4959 # Use this function as a fallback that always works.
4960 func_fallback_echo ()
4962 eval 'cat <<_LTECHO_EOF
4966 ECHO='func_fallback_echo'
4969 # func_echo_all arg...
4970 # Invoke $ECHO with all args, space-separated.
4977 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4978 $as_echo "printf" >&6; } ;;
4979 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4980 $as_echo "print
-r" >&6; } ;;
4981 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4982 $as_echo "cat" >&6; } ;;
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4999 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
5000 if test "${ac_cv_path_SED+set}" = set; then :
5001 $as_echo_n "(cached
) " >&6
5003 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5004 for ac_i in 1 2 3 4 5 6 7; do
5005 ac_script="$ac_script$as_nl$ac_script"
5007 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5008 { ac_script=; unset ac_script;}
5009 if test -z "$SED"; then
5010 ac_path_SED_found=false
5011 # Loop through the user's path and test for each of PROGNAME-LIST
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir=.
5017 for ac_prog in sed gsed; do
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5020 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5021 # Check for GNU ac_path_SED and select it if it is found.
5022 # Check for GNU $ac_path_SED
5023 case `"$ac_path_SED" --version 2>&1` in
5025 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5028 $as_echo_n 0123456789 >"conftest.
in"
5031 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5032 mv "conftest.tmp
" "conftest.
in"
5033 cp "conftest.
in" "conftest.
nl"
5034 $as_echo '' >> "conftest.
nl"
5035 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5036 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5037 as_fn_arith $ac_count + 1 && ac_count=$as_val
5038 if test $ac_count -gt ${ac_path_SED_max-0}; then
5039 # Best one so far, save it but keep looking for a better one
5040 ac_cv_path_SED="$ac_path_SED"
5041 ac_path_SED_max=$ac_count
5043 # 10*(2^10) chars as input seems more than enough
5044 test $ac_count -gt 10 && break
5046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5049 $ac_path_SED_found && break 3
5054 if test -z "$ac_cv_path_SED"; then
5055 as_fn_error "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
5063 $as_echo "$ac_cv_path_SED" >&6; }
5064 SED="$ac_cv_path_SED"
5067 test -z "$SED" && SED=sed
5068 Xsed="$SED -e 1s
/^X
//"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
5081 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
5082 if test "${ac_cv_path_GREP+set}" = set; then :
5083 $as_echo_n "(cached
) " >&6
5085 if test -z "$GREP"; then
5086 ac_path_GREP_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5092 test -z "$as_dir" && as_dir=.
5093 for ac_prog in grep ggrep; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5096 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5097 # Check for GNU ac_path_GREP and select it if it is found.
5098 # Check for GNU $ac_path_GREP
5099 case `"$ac_path_GREP" --version 2>&1` in
5101 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5104 $as_echo_n 0123456789 >"conftest.
in"
5107 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5108 mv "conftest.tmp
" "conftest.
in"
5109 cp "conftest.
in" "conftest.
nl"
5110 $as_echo 'GREP' >> "conftest.
nl"
5111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5112 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5113 as_fn_arith $ac_count + 1 && ac_count=$as_val
5114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_GREP="$ac_path_GREP"
5117 ac_path_GREP_max=$ac_count
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5125 $ac_path_GREP_found && break 3
5130 if test -z "$ac_cv_path_GREP"; then
5131 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5134 ac_cv_path_GREP=$GREP
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
5139 $as_echo "$ac_cv_path_GREP" >&6; }
5140 GREP="$ac_cv_path_GREP"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
5144 $as_echo_n "checking
for egrep...
" >&6; }
5145 if test "${ac_cv_path_EGREP+set}" = set; then :
5146 $as_echo_n "(cached
) " >&6
5148 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5149 then ac_cv_path_EGREP="$GREP -E"
5151 if test -z "$EGREP"; then
5152 ac_path_EGREP_found=false
5153 # Loop through the user's path and test for each of PROGNAME-LIST
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5158 test -z "$as_dir" && as_dir=.
5159 for ac_prog in egrep; do
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5162 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5163 # Check for GNU ac_path_EGREP and select it if it is found.
5164 # Check for GNU $ac_path_EGREP
5165 case `"$ac_path_EGREP" --version 2>&1` in
5167 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5170 $as_echo_n 0123456789 >"conftest.
in"
5173 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5174 mv "conftest.tmp
" "conftest.
in"
5175 cp "conftest.
in" "conftest.
nl"
5176 $as_echo 'EGREP' >> "conftest.
nl"
5177 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5178 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5179 as_fn_arith $ac_count + 1 && ac_count=$as_val
5180 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5181 # Best one so far, save it but keep looking for a better one
5182 ac_cv_path_EGREP="$ac_path_EGREP"
5183 ac_path_EGREP_max=$ac_count
5185 # 10*(2^10) chars as input seems more than enough
5186 test $ac_count -gt 10 && break
5188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5191 $ac_path_EGREP_found && break 3
5196 if test -z "$ac_cv_path_EGREP"; then
5197 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5200 ac_cv_path_EGREP=$EGREP
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
5206 $as_echo "$ac_cv_path_EGREP" >&6; }
5207 EGREP="$ac_cv_path_EGREP"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
5211 $as_echo_n "checking
for fgrep...
" >&6; }
5212 if test "${ac_cv_path_FGREP+set}" = set; then :
5213 $as_echo_n "(cached
) " >&6
5215 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5216 then ac_cv_path_FGREP="$GREP -F"
5218 if test -z "$FGREP"; then
5219 ac_path_FGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in fgrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5230 # Check for GNU ac_path_FGREP and select it if it is found.
5231 # Check for GNU $ac_path_FGREP
5232 case `"$ac_path_FGREP" --version 2>&1` in
5234 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5237 $as_echo_n 0123456789 >"conftest.
in"
5240 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
5241 mv "conftest.tmp
" "conftest.
in"
5242 cp "conftest.
in" "conftest.
nl"
5243 $as_echo 'FGREP' >> "conftest.
nl"
5244 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
5245 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_FGREP="$ac_path_FGREP"
5250 ac_path_FGREP_max=$ac_count
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5258 $ac_path_FGREP_found && break 3
5263 if test -z "$ac_cv_path_FGREP"; then
5264 as_fn_error "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
5267 ac_cv_path_FGREP=$FGREP
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
5273 $as_echo "$ac_cv_path_FGREP" >&6; }
5274 FGREP="$ac_cv_path_FGREP"
5277 test -z "$GREP" && GREP=grep
5297 # Check whether --with-gnu-ld was given.
5298 if test "${with_gnu_ld+set}" = set; then :
5299 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5305 if test "$GCC" = yes; then
5306 # Check if gcc -print-prog-name=ld gives a path.
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
5308 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
5311 # gcc leaves a trailing carriage return which upsets mingw
5312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5317 # Accept absolute paths.
5319 re_direlt='/[^/][^/]*/\.\./'
5320 # Canonicalize the pathname of ld
5321 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5322 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5323 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
5325 test -z "$LD" && LD="$ac_prog"
5328 # If it fails, then pretend we aren't using GCC.
5332 # If it is relative, then search for the first ld in PATH.
5336 elif test "$with_gnu_ld" = yes; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
5338 $as_echo_n "checking
for GNU ld...
" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
5341 $as_echo_n "checking
for non-GNU ld...
" >&6; }
5343 if test "${lt_cv_path_LD+set}" = set; then :
5344 $as_echo_n "(cached
) " >&6
5346 if test -z "$LD"; then
5347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5348 for ac_dir in $PATH; do
5350 test -z "$ac_dir" && ac_dir=.
5351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5352 lt_cv_path_LD="$ac_dir/$ac_prog"
5353 # Check to see if the program is GNU ld. I'd rather use --version,
5354 # but apparently some variants of GNU ld only accept -v.
5355 # Break only if it was the GNU/non-GNU ld that we prefer.
5356 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5357 *GNU* | *'with BFD'*)
5358 test "$with_gnu_ld" != no && break
5361 test "$with_gnu_ld" != yes && break
5368 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5373 if test -n "$LD"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
5375 $as_echo "$LD" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5378 $as_echo "no
" >&6; }
5380 test -z "$LD" && as_fn_error "no acceptable ld found
in \
$PATH" "$LINENO" 5
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
5382 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
5383 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5384 $as_echo_n "(cached
) " >&6
5386 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5387 case `$LD -v 2>&1 </dev/null` in
5388 *GNU* | *'with BFD'*)
5389 lt_cv_prog_gnu_ld=yes
5392 lt_cv_prog_gnu_ld=no
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
5397 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5398 with_gnu_ld=$lt_cv_prog_gnu_ld
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5409 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5410 if test "${lt_cv_path_NM+set}" = set; then :
5411 $as_echo_n "(cached
) " >&6
5413 if test -n "$NM"; then
5414 # Let the user override the test.
5417 lt_nm_to_check="${ac_tool_prefix}nm
"
5418 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5419 lt_nm_to_check="$lt_nm_to_check nm
"
5421 for lt_tmp_nm in $lt_nm_to_check; do
5422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5425 test -z "$ac_dir" && ac_dir=.
5426 tmp_nm="$ac_dir/$lt_tmp_nm"
5427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428 # Check to see if the nm accepts a BSD-compat flag.
5429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430 # nm: unknown option "B
" ignored
5431 # Tru64's nm complains that /dev/null is an invalid object file
5432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433 */dev/null* | *'Invalid file or object type'*)
5434 lt_cv_path_NM="$tmp_nm -B"
5438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5440 lt_cv_path_NM="$tmp_nm -p"
5444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445 continue # so that we can try to find one that supports BSD flags
5454 : ${lt_cv_path_NM=no}
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5458 $as_echo "$lt_cv_path_NM" >&6; }
5459 if test "$lt_cv_path_NM" != "no
"; then
5462 # Didn't find any BSD compatible name lister, look for dumpbin.
5463 if test -n "$DUMPBIN"; then :
5464 # Let the user override the test.
5466 if test -n "$ac_tool_prefix"; then
5467 for ac_prog in dumpbin "link
-dump"
5469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5472 $as_echo_n "checking
for $ac_word...
" >&6; }
5473 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5474 $as_echo_n "(cached
) " >&6
5476 if test -n "$DUMPBIN"; then
5477 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5496 DUMPBIN=$ac_cv_prog_DUMPBIN
5497 if test -n "$DUMPBIN"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5499 $as_echo "$DUMPBIN" >&6; }
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5502 $as_echo "no
" >&6; }
5506 test -n "$DUMPBIN" && break
5509 if test -z "$DUMPBIN"; then
5510 ac_ct_DUMPBIN=$DUMPBIN
5511 for ac_prog in dumpbin "link
-dump"
5513 # Extract the first word of "$ac_prog", so it can be a program name with args.
5514 set dummy $ac_prog; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5516 $as_echo_n "checking
for $ac_word...
" >&6; }
5517 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5518 $as_echo_n "(cached
) " >&6
5520 if test -n "$ac_ct_DUMPBIN"; then
5521 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5540 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5541 if test -n "$ac_ct_DUMPBIN"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5543 $as_echo "$ac_ct_DUMPBIN" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5546 $as_echo "no
" >&6; }
5550 test -n "$ac_ct_DUMPBIN" && break
5553 if test "x
$ac_ct_DUMPBIN" = x; then
5556 case $cross_compiling:$ac_tool_warned in
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5559 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5560 ac_tool_warned=yes ;;
5562 DUMPBIN=$ac_ct_DUMPBIN
5566 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5568 DUMPBIN="$DUMPBIN -symbols"
5576 if test "$DUMPBIN" != ":"; then
5580 test -z "$NM" && NM=nm
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5588 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5589 if test "${lt_cv_nm_interface+set}" = set; then :
5590 $as_echo_n "(cached
) " >&6
5592 lt_cv_nm_interface="BSD nm
"
5593 echo "int some_variable
= 0;" > conftest.$ac_ext
5594 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5595 (eval "$ac_compile" 2>conftest.err)
5596 cat conftest.err >&5
5597 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5598 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5599 cat conftest.err >&5
5600 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5601 cat conftest.out >&5
5602 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5603 lt_cv_nm_interface="MS dumpbin
"
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5608 $as_echo "$lt_cv_nm_interface" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5611 $as_echo_n "checking whether
ln -s works...
" >&6; }
5613 if test "$LN_S" = "ln -s"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5615 $as_echo "yes" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5618 $as_echo "no
, using
$LN_S" >&6; }
5621 # find the maximum length of command line arguments
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5623 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5624 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5625 $as_echo_n "(cached
) " >&6
5632 # On DJGPP, this test can blow up pretty badly due to problems in libc
5633 # (any single argument exceeding 2000 bytes causes a buffer overrun
5634 # during glob expansion). Even if it were fixed, the result of this
5635 # check would be larger than it should be.
5636 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5640 # Under GNU Hurd, this test is not required because there is
5641 # no limit to the length of command line arguments.
5642 # Libtool will interpret -1 as no limit whatsoever
5643 lt_cv_sys_max_cmd_len=-1;
5646 cygwin* | mingw* | cegcc*)
5647 # On Win9x/ME, this test blows up -- it succeeds, but takes
5648 # about 5 minutes as the teststring grows exponentially.
5649 # Worse, since 9x/ME are not pre-emptively multitasking,
5650 # you end up with a "frozen
" computer, even though with patience
5651 # the test eventually succeeds (with a max line length of 256k).
5652 # Instead, let's just punt: use the minimum linelength reported by
5653 # all of the supported platforms: 8192 (on NT/2K/XP).
5654 lt_cv_sys_max_cmd_len=8192;
5658 # On MiNT this can take a long time and run out of memory.
5659 lt_cv_sys_max_cmd_len=8192;
5663 # On AmigaOS with pdksh, this test takes hours, literally.
5664 # So we just punt and use a minimum line length of 8192.
5665 lt_cv_sys_max_cmd_len=8192;
5668 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5669 # This has been around since 386BSD, at least. Likely further.
5670 if test -x /sbin/sysctl; then
5671 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5672 elif test -x /usr/sbin/sysctl; then
5673 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5675 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5677 # And add a safety zone
5678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5683 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5684 lt_cv_sys_max_cmd_len=196608
5688 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5689 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5690 # nice to cause kernel panics so lets avoid the loop below.
5691 # First set a reasonable default.
5692 lt_cv_sys_max_cmd_len=16384
5694 if test -x /sbin/sysconfig; then
5695 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5696 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5701 lt_cv_sys_max_cmd_len=102400
5703 sysv5* | sco5v6* | sysv4.2uw2*)
5704 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5705 if test -n "$kargmax"; then
5706 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5708 lt_cv_sys_max_cmd_len=32768
5712 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5713 if test -n "$lt_cv_sys_max_cmd_len"; then
5714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5717 # Make teststring a little bigger before we do anything with it.
5718 # a 1K string should be a reasonable start.
5719 for i in 1 2 3 4 5 6 7 8 ; do
5720 teststring=$teststring$teststring
5722 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5723 # If test is not a shell built-in, we'll probably end up computing a
5724 # maximum length that is only half of the actual maximum length, but
5726 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5727 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5728 test $i != 17 # 1/2 MB should be enough
5731 teststring=$teststring$teststring
5733 # Only check the string length outside the loop.
5734 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5736 # Add a significant safety factor because C++ compilers can tack on
5737 # massive amounts of additional arguments before passing them to the
5738 # linker. It appears as though 1/2 is a usable value.
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5746 if test -n $lt_cv_sys_max_cmd_len ; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5748 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5751 $as_echo "none
" >&6; }
5753 max_cmd_len=$lt_cv_sys_max_cmd_len
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5765 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5766 # Try some XSI features
5769 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5771 && eval 'test $(( 1 + 1 )) -eq 2 \
5772 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5775 $as_echo "$xsi_shell" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5779 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5781 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5783 && lt_shell_append
=yes
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5785 $as_echo "$lt_shell_append" >&6; }
5788 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5798 # test EBCDIC or ASCII
5799 case `echo X|tr X '\101'` in
5800 A
) # ASCII based system
5801 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5802 lt_SP2NL
='tr \040 \012'
5803 lt_NL2SP
='tr \015\012 \040\040'
5805 *) # EBCDIC based system
5806 lt_SP2NL
='tr \100 \n'
5807 lt_NL2SP
='tr \r\n \100\100'
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5820 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5821 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5824 lt_cv_ld_reload_flag
='-r'
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5827 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5828 reload_flag
=$lt_cv_ld_reload_flag
5829 case $reload_flag in
5831 *) reload_flag
=" $reload_flag" ;;
5833 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5836 if test "$GCC" = yes; then
5837 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5839 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5852 if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5854 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5860 if test -n "$OBJDUMP"; then
5861 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5867 test -z "$as_dir" && as_dir
=.
5868 for ac_exec_ext
in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 OBJDUMP
=$ac_cv_prog_OBJDUMP
5881 if test -n "$OBJDUMP"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5883 $as_echo "$OBJDUMP" >&6; }
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5891 if test -z "$ac_cv_prog_OBJDUMP"; then
5892 ac_ct_OBJDUMP
=$OBJDUMP
5893 # Extract the first word of "objdump", so it can be a program name with args.
5894 set dummy objdump
; ac_word
=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -n "$ac_ct_OBJDUMP"; then
5901 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir
=.
5908 for ac_exec_ext
in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5921 if test -n "$ac_ct_OBJDUMP"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5923 $as_echo "$ac_ct_OBJDUMP" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5929 if test "x$ac_ct_OBJDUMP" = x
; then
5932 case $cross_compiling:$ac_tool_warned in
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned
=yes ;;
5938 OBJDUMP
=$ac_ct_OBJDUMP
5941 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5944 test -z "$OBJDUMP" && OBJDUMP
=objdump
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5955 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5956 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5959 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5960 lt_cv_file_magic_test_file
=
5961 lt_cv_deplibs_check_method
='unknown'
5962 # Need to set the preceding variable on all platforms that support
5963 # interlibrary dependencies.
5964 # 'none' -- dependencies not supported.
5965 # `unknown' -- same as none, but documents that we really don't know.
5966 # 'pass_all' -- all dependencies passed with no checks.
5967 # 'test_compile' -- check by making test program.
5968 # 'file_magic [[regex]]' -- check by looking for files in library path
5969 # which responds to the $file_magic_cmd with a given extended regex.
5970 # If you have `file' or equivalent on your system and you're not sure
5971 # whether `pass_all' will *always* work, you probably want this one.
5975 lt_cv_deplibs_check_method
=pass_all
5979 lt_cv_deplibs_check_method
=pass_all
5983 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5984 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5985 lt_cv_file_magic_test_file
=/shlib
/libc.so
5989 # func_win32_libid is a shell function defined in ltmain.sh
5990 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5991 lt_cv_file_magic_cmd
='func_win32_libid'
5995 # Base MSYS/MinGW do not provide the 'file' command needed by
5996 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5997 # unless we find 'file', for example because we are cross-compiling.
5998 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5999 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6000 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6001 lt_cv_file_magic_cmd
='func_win32_libid'
6003 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6004 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6009 # use the weaker test based on 'objdump'. See mingw*.
6010 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6011 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6014 darwin
* | rhapsody
*)
6015 lt_cv_deplibs_check_method
=pass_all
6018 freebsd
* | dragonfly
*)
6019 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6022 # Not sure whether the presence of OpenBSD here was a mistake.
6023 # Let's accept both of them until this is cleared up.
6024 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6025 lt_cv_file_magic_cmd
=/usr
/bin
/file
6026 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6030 lt_cv_deplibs_check_method
=pass_all
6035 lt_cv_deplibs_check_method
=pass_all
6039 lt_cv_deplibs_check_method
=pass_all
6042 hpux10.20
* | hpux11
*)
6043 lt_cv_file_magic_cmd
=/usr
/bin
/file
6046 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6047 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6050 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6051 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6054 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6055 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6062 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6065 irix5
* | irix6
* | nonstopux
*)
6067 *-32|
*"-32 ") libmagic
=32-bit;;
6068 *-n32|
*"-n32 ") libmagic
=N32
;;
6069 *-64|
*"-64 ") libmagic
=64-bit;;
6070 *) libmagic
=never-match
;;
6072 lt_cv_deplibs_check_method
=pass_all
6075 # This must be Linux ELF.
6076 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6077 lt_cv_deplibs_check_method
=pass_all
6081 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6082 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6084 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6089 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6090 lt_cv_file_magic_cmd
=/usr
/bin
/file
6091 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6095 lt_cv_deplibs_check_method
=pass_all
6099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6100 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6102 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6106 osf3
* | osf4
* | osf5
*)
6107 lt_cv_deplibs_check_method
=pass_all
6111 lt_cv_deplibs_check_method
=pass_all
6115 lt_cv_deplibs_check_method
=pass_all
6118 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6119 lt_cv_deplibs_check_method
=pass_all
6123 case $host_vendor in
6125 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]'
6126 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6129 lt_cv_deplibs_check_method
=pass_all
6132 lt_cv_file_magic_cmd
='/bin/file'
6133 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6136 lt_cv_file_magic_cmd
='/bin/file'
6137 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6138 lt_cv_file_magic_test_file
=/lib
/libc.so
6141 lt_cv_deplibs_check_method
=pass_all
6144 lt_cv_deplibs_check_method
=pass_all
6150 lt_cv_deplibs_check_method
=pass_all
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6156 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6157 file_magic_cmd
=$lt_cv_file_magic_cmd
6158 deplibs_check_method
=$lt_cv_deplibs_check_method
6159 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6172 if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6174 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if test "${ac_cv_prog_AR+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$AR"; then
6181 ac_cv_prog_AR
="$AR" # Let the user override the test.
6183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir
=.
6188 for ac_exec_ext
in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 if test -n "$AR"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6203 $as_echo "$AR" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6211 if test -z "$ac_cv_prog_AR"; then
6213 # Extract the first word of "ar", so it can be a program name with args.
6214 set dummy
ar; ac_word
=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6220 if test -n "$ac_ct_AR"; then
6221 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir
=.
6228 for ac_exec_ext
in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_ac_ct_AR
="ar"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6241 if test -n "$ac_ct_AR"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6243 $as_echo "$ac_ct_AR" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6249 if test "x$ac_ct_AR" = x
; then
6252 case $cross_compiling:$ac_tool_warned in
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned
=yes ;;
6264 test -z "$AR" && AR
=ar
6265 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6277 if test -n "$ac_tool_prefix"; then
6278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6279 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_prog_STRIP+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6285 if test -n "$STRIP"; then
6286 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir
=.
6293 for ac_exec_ext
in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 STRIP
=$ac_cv_prog_STRIP
6306 if test -n "$STRIP"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6308 $as_echo "$STRIP" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6316 if test -z "$ac_cv_prog_STRIP"; then
6318 # Extract the first word of "strip", so it can be a program name with args.
6319 set dummy strip
; ac_word
=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6325 if test -n "$ac_ct_STRIP"; then
6326 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6332 test -z "$as_dir" && as_dir
=.
6333 for ac_exec_ext
in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_ac_ct_STRIP
="strip"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6346 if test -n "$ac_ct_STRIP"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6348 $as_echo "$ac_ct_STRIP" >&6; }
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6354 if test "x$ac_ct_STRIP" = x
; then
6357 case $cross_compiling:$ac_tool_warned in
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361 ac_tool_warned
=yes ;;
6366 STRIP
="$ac_cv_prog_STRIP"
6369 test -z "$STRIP" && STRIP
=:
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6378 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6384 if test -n "$RANLIB"; then
6385 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir
=.
6392 for ac_exec_ext
in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 RANLIB
=$ac_cv_prog_RANLIB
6405 if test -n "$RANLIB"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6407 $as_echo "$RANLIB" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6415 if test -z "$ac_cv_prog_RANLIB"; then
6416 ac_ct_RANLIB
=$RANLIB
6417 # Extract the first word of "ranlib", so it can be a program name with args.
6418 set dummy ranlib
; ac_word
=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6424 if test -n "$ac_ct_RANLIB"; then
6425 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir
=.
6432 for ac_exec_ext
in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6445 if test -n "$ac_ct_RANLIB"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6447 $as_echo "$ac_ct_RANLIB" >&6; }
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6453 if test "x$ac_ct_RANLIB" = x
; then
6456 case $cross_compiling:$ac_tool_warned in
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned
=yes ;;
6462 RANLIB
=$ac_ct_RANLIB
6465 RANLIB
="$ac_cv_prog_RANLIB"
6468 test -z "$RANLIB" && RANLIB
=:
6475 # Determine commands to create old-style static archives.
6476 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6477 old_postinstall_cmds
='chmod 644 $oldlib'
6478 old_postuninstall_cmds
=
6480 if test -n "$RANLIB"; then
6483 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6486 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6489 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6494 lock_old_archive_extraction
=yes ;;
6496 lock_old_archive_extraction
=no
;;
6537 # If no C compiler was specified, use CC.
6540 # If no C compiler flags were specified, use CFLAGS.
6541 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6543 # Allow CC to be a program name with arguments.
6547 # Check for command to grab the raw symbol name followed by C symbol from nm.
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6549 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6550 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6554 # These are sane defaults that work on at least a few old systems.
6555 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6557 # Character class describing NM global symbol codes.
6558 symcode
='[BCDEGRST]'
6560 # Regexp to match symbols that can be accessed directly from C.
6561 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6563 # Define system-specific variables.
6568 cygwin
* | mingw
* | pw32
* | cegcc
*)
6569 symcode
='[ABCDGISTW]'
6572 if test "$host_cpu" = ia64
; then
6573 symcode
='[ABCDEGRST]'
6577 symcode
='[BCDEGRST]'
6580 symcode
='[BCDEGQRST]'
6591 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6599 # If we're using GNU nm, then use its standard symbol codes.
6600 case `$NM -V 2>&1` in
6601 *GNU
* |
*'with BFD'*)
6602 symcode
='[ABCDGIRSTW]' ;;
6605 # Transform an extracted symbol line into a proper C declaration.
6606 # Some systems (esp. on ia64) link data and code symbols differently,
6607 # so use this general approach.
6608 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6610 # Transform an extracted symbol line into symbol name and symbol address
6611 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6612 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'"
6614 # Handle CRLF in mingw tool chain
6618 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6622 # Try without a prefix underscore, then with it.
6623 for ac_symprfx
in "" "_"; do
6625 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6626 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6628 # Write the raw and C identifiers.
6629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6630 # Fake it for dumpbin and say T for any non-static function
6631 # and D for any global variable.
6632 # Also find C++ and __fastcall symbols from MSVC++,
6633 # which start with @ or ?.
6634 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6635 " {last_section=section; section=\$ 3};"\
6636 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6637 " \$ 0!~/External *\|/{next};"\
6638 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6639 " {if(hide[section]) next};"\
6640 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6641 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6642 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6643 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6644 " ' prfx=^$ac_symprfx"
6646 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6649 # Check to see that the pipe works correctly.
6653 cat > conftest.
$ac_ext <<_LT_EOF
6658 void nm_test_func(void);
6659 void nm_test_func(void){}
6663 int main(){nm_test_var='a';nm_test_func();return(0);}
6666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6667 (eval $ac_compile) 2>&5
6669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670 test $ac_status = 0; }; then
6671 # Now try to grab the symbols.
6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6674 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; } && test -s "$nlist"; then
6678 # Try sorting and uniquifying the output.
6679 if sort "$nlist" |
uniq > "$nlist"T
; then
6680 mv -f "$nlist"T
"$nlist"
6685 # Make sure that we snagged all the symbols we need.
6686 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6687 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6688 cat <<_LT_EOF > conftest.$ac_ext
6694 # Now generate the symbol file.
6695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6697 cat <<_LT_EOF >> conftest.$ac_ext
6699 /* The mapping between symbol names and symbols. */
6704 lt__PROGRAM__LTX_preloaded_symbols[] =
6706 { "@PROGRAM@", (void *) 0 },
6708 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6709 cat <<\_LT_EOF
>> conftest.
$ac_ext
6713 /* This works around a problem
in FreeBSD linker
*/
6714 #ifdef FREEBSD_WORKAROUND
6715 static const void
*lt_preloaded_setup
() {
6716 return lt__PROGRAM__LTX_preloaded_symbols
;
6724 # Now try linking the two files.
6725 mv conftest.
$ac_objext conftstm.
$ac_objext
6726 lt_save_LIBS
="$LIBS"
6727 lt_save_CFLAGS
="$CFLAGS"
6728 LIBS
="conftstm.$ac_objext"
6729 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6731 (eval $ac_link) 2>&5
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6737 LIBS
="$lt_save_LIBS"
6738 CFLAGS
="$lt_save_CFLAGS"
6740 echo "cannot find nm_test_func in $nlist" >&5
6743 echo "cannot find nm_test_var in $nlist" >&5
6746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6749 echo "$progname: failed program was:" >&5
6750 cat conftest.
$ac_ext >&5
6752 rm -rf conftest
* conftst
*
6754 # Do not use the global_symbol_pipe unless it works.
6755 if test "$pipe_works" = yes; then
6758 lt_cv_sys_global_symbol_pipe
=
6764 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6765 lt_cv_sys_global_symbol_to_cdecl
=
6767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6769 $as_echo "failed" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6772 $as_echo "ok" >&6; }
6797 # Check whether --enable-libtool-lock was given.
6798 if test "${enable_libtool_lock+set}" = set; then :
6799 enableval
=$enable_libtool_lock;
6802 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6804 # Some flags need to be propagated to the compiler or linker for good
6808 # Find out which ABI we are using.
6809 echo 'int i;' > conftest.
$ac_ext
6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6811 (eval $ac_compile) 2>&5
6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814 test $ac_status = 0; }; then
6815 case `/usr/bin/file conftest.$ac_objext` in
6827 # Find out which ABI we are using.
6828 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830 (eval $ac_compile) 2>&5
6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833 test $ac_status = 0; }; then
6834 if test "$lt_cv_prog_gnu_ld" = yes; then
6835 case `/usr/bin/file conftest.$ac_objext` in
6837 LD
="${LD-ld} -melf32bsmip"
6840 LD
="${LD-ld} -melf32bmipn32"
6843 LD
="${LD-ld} -melf64bmip"
6847 case `/usr/bin/file conftest.$ac_objext` in
6863 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
6864 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6865 # Find out which ABI we are using.
6866 echo 'int i;' > conftest.
$ac_ext
6867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6868 (eval $ac_compile) 2>&5
6870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6871 test $ac_status = 0; }; then
6872 case `/usr/bin/file conftest.o` in
6875 x86_64-
*kfreebsd
*-gnu)
6876 LD
="${LD-ld} -m elf_i386_fbsd"
6879 case `/usr/bin/file conftest.o` in
6881 LD
="${LD-ld} -m elf32_x86_64"
6884 LD
="${LD-ld} -m elf_i386"
6888 powerpc64le-
*linux
*)
6889 LD
="${LD-ld} -m elf32lppclinux"
6892 LD
="${LD-ld} -m elf32ppclinux"
6895 LD
="${LD-ld} -m elf_s390"
6898 LD
="${LD-ld} -m elf32_sparc"
6904 x86_64-
*kfreebsd
*-gnu)
6905 LD
="${LD-ld} -m elf_x86_64_fbsd"
6908 LD
="${LD-ld} -m elf_x86_64"
6911 LD
="${LD-ld} -m elf64lppc"
6914 LD
="${LD-ld} -m elf64ppc"
6916 s390
*-*linux
*|s390
*-*tpf
*)
6917 LD
="${LD-ld} -m elf64_s390"
6920 LD
="${LD-ld} -m elf64_sparc"
6930 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6931 SAVE_CFLAGS
="$CFLAGS"
6932 CFLAGS
="$CFLAGS -belf"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6934 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6935 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6936 $as_echo_n "(cached) " >&6
6939 ac_cpp
='$CPP $CPPFLAGS'
6940 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6955 if ac_fn_c_try_link
"$LINENO"; then :
6956 lt_cv_cc_needs_belf
=yes
6958 lt_cv_cc_needs_belf
=no
6960 rm -f core conftest.err conftest.
$ac_objext \
6961 conftest
$ac_exeext conftest.
$ac_ext
6963 ac_cpp
='$CPP $CPPFLAGS'
6964 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6970 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6971 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6972 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6973 CFLAGS
="$SAVE_CFLAGS"
6977 # Find out which ABI we are using.
6978 echo 'int i;' > conftest.
$ac_ext
6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980 (eval $ac_compile) 2>&5
6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983 test $ac_status = 0; }; then
6984 case `/usr/bin/file conftest.o` in
6986 case $lt_cv_prog_gnu_ld in
6987 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
6989 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7001 need_locks
="$enable_libtool_lock"
7005 rhapsody
* | darwin
*)
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7008 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7012 $as_echo_n "(cached) " >&6
7014 if test -n "$DSYMUTIL"; then
7015 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir
=.
7022 for ac_exec_ext
in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7035 if test -n "$DSYMUTIL"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7037 $as_echo "$DSYMUTIL" >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7045 if test -z "$ac_cv_prog_DSYMUTIL"; then
7046 ac_ct_DSYMUTIL
=$DSYMUTIL
7047 # Extract the first word of "dsymutil", so it can be a program name with args.
7048 set dummy dsymutil
; ac_word
=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7054 if test -n "$ac_ct_DSYMUTIL"; then
7055 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir
=.
7062 for ac_exec_ext
in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7075 if test -n "$ac_ct_DSYMUTIL"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7077 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7083 if test "x$ac_ct_DSYMUTIL" = x
; then
7086 case $cross_compiling:$ac_tool_warned in
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7090 ac_tool_warned
=yes ;;
7092 DSYMUTIL
=$ac_ct_DSYMUTIL
7095 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7100 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7104 $as_echo_n "(cached) " >&6
7106 if test -n "$NMEDIT"; then
7107 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir
=.
7114 for ac_exec_ext
in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 NMEDIT
=$ac_cv_prog_NMEDIT
7127 if test -n "$NMEDIT"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7129 $as_echo "$NMEDIT" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7137 if test -z "$ac_cv_prog_NMEDIT"; then
7138 ac_ct_NMEDIT
=$NMEDIT
7139 # Extract the first word of "nmedit", so it can be a program name with args.
7140 set dummy nmedit
; ac_word
=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7144 $as_echo_n "(cached) " >&6
7146 if test -n "$ac_ct_NMEDIT"; then
7147 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir
=.
7154 for ac_exec_ext
in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7167 if test -n "$ac_ct_NMEDIT"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7169 $as_echo "$ac_ct_NMEDIT" >&6; }
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7175 if test "x$ac_ct_NMEDIT" = x
; then
7178 case $cross_compiling:$ac_tool_warned in
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned
=yes ;;
7184 NMEDIT
=$ac_ct_NMEDIT
7187 NMEDIT
="$ac_cv_prog_NMEDIT"
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7192 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_prog_LIPO+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7198 if test -n "$LIPO"; then
7199 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir
=.
7206 for ac_exec_ext
in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 LIPO
=$ac_cv_prog_LIPO
7219 if test -n "$LIPO"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7221 $as_echo "$LIPO" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7229 if test -z "$ac_cv_prog_LIPO"; then
7231 # Extract the first word of "lipo", so it can be a program name with args.
7232 set dummy lipo
; ac_word
=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7236 $as_echo_n "(cached) " >&6
7238 if test -n "$ac_ct_LIPO"; then
7239 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir
=.
7246 for ac_exec_ext
in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_ac_ct_LIPO
="lipo"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7259 if test -n "$ac_ct_LIPO"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7261 $as_echo "$ac_ct_LIPO" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7267 if test "x$ac_ct_LIPO" = x
; then
7270 case $cross_compiling:$ac_tool_warned in
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned
=yes ;;
7279 LIPO
="$ac_cv_prog_LIPO"
7282 if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7284 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7290 if test -n "$OTOOL"; then
7291 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir
=.
7298 for ac_exec_ext
in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 OTOOL
=$ac_cv_prog_OTOOL
7311 if test -n "$OTOOL"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7313 $as_echo "$OTOOL" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7321 if test -z "$ac_cv_prog_OTOOL"; then
7323 # Extract the first word of "otool", so it can be a program name with args.
7324 set dummy otool
; ac_word
=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7328 $as_echo_n "(cached) " >&6
7330 if test -n "$ac_ct_OTOOL"; then
7331 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir
=.
7338 for ac_exec_ext
in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_prog_ac_ct_OTOOL
="otool"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7351 if test -n "$ac_ct_OTOOL"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7353 $as_echo "$ac_ct_OTOOL" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7359 if test "x$ac_ct_OTOOL" = x
; then
7362 case $cross_compiling:$ac_tool_warned in
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7366 ac_tool_warned
=yes ;;
7371 OTOOL
="$ac_cv_prog_OTOOL"
7374 if test -n "$ac_tool_prefix"; then
7375 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7376 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7380 $as_echo_n "(cached) " >&6
7382 if test -n "$OTOOL64"; then
7383 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir
=.
7390 for ac_exec_ext
in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 OTOOL64
=$ac_cv_prog_OTOOL64
7403 if test -n "$OTOOL64"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7405 $as_echo "$OTOOL64" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7413 if test -z "$ac_cv_prog_OTOOL64"; then
7414 ac_ct_OTOOL64
=$OTOOL64
7415 # Extract the first word of "otool64", so it can be a program name with args.
7416 set dummy otool64
; ac_word
=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7422 if test -n "$ac_ct_OTOOL64"; then
7423 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir
=.
7430 for ac_exec_ext
in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7443 if test -n "$ac_ct_OTOOL64"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7445 $as_echo "$ac_ct_OTOOL64" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7451 if test "x$ac_ct_OTOOL64" = x
; then
7454 case $cross_compiling:$ac_tool_warned in
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7458 ac_tool_warned
=yes ;;
7460 OTOOL64
=$ac_ct_OTOOL64
7463 OTOOL64
="$ac_cv_prog_OTOOL64"
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7493 $as_echo_n "checking for -single_module linker flag... " >&6; }
7494 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7497 lt_cv_apple_cc_single_mod
=no
7498 if test -z "${LT_MULTI_MODULE}"; then
7499 # By default we will add the -single_module flag. You can override
7500 # by either setting the environment variable LT_MULTI_MODULE
7501 # non-empty at configure time, or by adding -multi_module to the
7503 rm -rf libconftest.dylib
*
7504 echo "int foo(void){return 1;}" > conftest.c
7505 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c" >&5
7507 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7508 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7510 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7511 lt_cv_apple_cc_single_mod
=yes
7513 cat conftest.err
>&5
7515 rm -rf libconftest.dylib
*
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7520 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7522 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7523 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7526 lt_cv_ld_exported_symbols_list
=no
7527 save_LDFLAGS
=$LDFLAGS
7528 echo "_main" > conftest.sym
7529 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7541 if ac_fn_c_try_link
"$LINENO"; then :
7542 lt_cv_ld_exported_symbols_list
=yes
7544 lt_cv_ld_exported_symbols_list
=no
7546 rm -f core conftest.err conftest.
$ac_objext \
7547 conftest
$ac_exeext conftest.
$ac_ext
7548 LDFLAGS
="$save_LDFLAGS"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7552 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7554 $as_echo_n "checking for -force_load linker flag... " >&6; }
7555 if test "${lt_cv_ld_force_load+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7558 lt_cv_ld_force_load
=no
7559 cat > conftest.c
<< _LT_EOF
7560 int forced_loaded() { return 2;}
7562 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7563 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7564 echo "$AR cru libconftest.a conftest.o" >&5
7565 $AR cru libconftest.a conftest.o
2>&5
7566 cat > conftest.c
<< _LT_EOF
7567 int main() { return 0;}
7569 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7570 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7572 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7573 lt_cv_ld_force_load
=yes
7575 cat conftest.err
>&5
7577 rm -f conftest.err libconftest.a conftest conftest.c
7578 rm -rf conftest.dSYM
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7582 $as_echo "$lt_cv_ld_force_load" >&6; }
7584 rhapsody
* | darwin1.
[012])
7585 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7587 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7588 darwin
*) # darwin 5.x on
7589 # if running on 10.5 or later, the deployment target defaults
7590 # to the OS version, if on x86, and 10.4, the deployment
7591 # target defaults to 10.4. Don't you love it?
7592 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7593 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7594 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7596 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7598 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7602 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7603 _lt_dar_single_mod
='$single_module'
7605 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7606 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7608 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7610 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7611 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7619 ac_cpp
='$CPP $CPPFLAGS'
7620 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7624 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7625 # On Suns, sometimes $CPP names a directory.
7626 if test -n "$CPP" && test -d "$CPP"; then
7629 if test -z "$CPP"; then
7630 if test "${ac_cv_prog_CPP+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7633 # Double quotes because CPP needs to be expanded
7634 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7637 for ac_c_preproc_warn_flag
in '' yes
7639 # Use a header file that comes with gcc, so configuring glibc
7640 # with a fresh cross-compiler works.
7641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7642 # <limits.h> exists even on freestanding compilers.
7643 # On the NeXT, cc -E runs the code through the compiler's parser,
7644 # not just through cpp. "Syntax error" is here to catch this case.
7645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7648 # include <limits.h>
7650 # include <assert.h>
7654 if ac_fn_c_try_cpp
"$LINENO"; then :
7657 # Broken: fails on valid input.
7660 rm -f conftest.err conftest.
$ac_ext
7662 # OK, works on sane cases. Now check whether nonexistent headers
7663 # can be detected and how.
7664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <ac_nonexistent.h>
7668 if ac_fn_c_try_cpp
"$LINENO"; then :
7669 # Broken: success on invalid input.
7672 # Passes both tests.
7676 rm -f conftest.err conftest.
$ac_ext
7679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7680 rm -f conftest.err conftest.
$ac_ext
7681 if $ac_preproc_ok; then :
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7694 $as_echo "$CPP" >&6; }
7696 for ac_c_preproc_warn_flag
in '' yes
7698 # Use a header file that comes with gcc, so configuring glibc
7699 # with a fresh cross-compiler works.
7700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7701 # <limits.h> exists even on freestanding compilers.
7702 # On the NeXT, cc -E runs the code through the compiler's parser,
7703 # not just through cpp. "Syntax error" is here to catch this case.
7704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7707 # include <limits.h>
7709 # include <assert.h>
7713 if ac_fn_c_try_cpp
"$LINENO"; then :
7716 # Broken: fails on valid input.
7719 rm -f conftest.err conftest.
$ac_ext
7721 # OK, works on sane cases. Now check whether nonexistent headers
7722 # can be detected and how.
7723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725 #include <ac_nonexistent.h>
7727 if ac_fn_c_try_cpp
"$LINENO"; then :
7728 # Broken: success on invalid input.
7731 # Passes both tests.
7735 rm -f conftest.err conftest.
$ac_ext
7738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7739 rm -f conftest.err conftest.
$ac_ext
7740 if $ac_preproc_ok; then :
7743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7745 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7746 See \`config.log' for more details." "$LINENO" 5; }
7750 ac_cpp
='$CPP $CPPFLAGS'
7751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7757 $as_echo_n "checking for ANSI C header files... " >&6; }
7758 if test "${ac_cv_header_stdc+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7776 if ac_fn_c_try_compile
"$LINENO"; then :
7777 ac_cv_header_stdc
=yes
7779 ac_cv_header_stdc
=no
7781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7783 if test $ac_cv_header_stdc = yes; then
7784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7791 $EGREP "memchr" >/dev
/null
2>&1; then :
7794 ac_cv_header_stdc
=no
7800 if test $ac_cv_header_stdc = yes; then
7801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7808 $EGREP "free" >/dev
/null
2>&1; then :
7811 ac_cv_header_stdc
=no
7817 if test $ac_cv_header_stdc = yes; then
7818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7819 if test "$cross_compiling" = yes; then :
7822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7826 #if ((' ' & 0x0FF) == 0x020)
7827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7830 # define ISLOWER(c) \
7831 (('a' <= (c) && (c) <= 'i') \
7832 || ('j' <= (c) && (c) <= 'r') \
7833 || ('s' <= (c) && (c) <= 'z'))
7834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7842 for (i = 0; i < 256; i++)
7843 if (XOR (islower (i), ISLOWER (i))
7844 || toupper (i) != TOUPPER (i))
7849 if ac_fn_c_try_run
"$LINENO"; then :
7852 ac_cv_header_stdc
=no
7854 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7855 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7861 $as_echo "$ac_cv_header_stdc" >&6; }
7862 if test $ac_cv_header_stdc = yes; then
7864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7869 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7870 inttypes.h stdint.h unistd.h
7872 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7873 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7875 eval as_val
=\$
$as_ac_Header
7876 if test "x$as_val" = x
""yes; then :
7877 cat >>confdefs.h
<<_ACEOF
7878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7886 for ac_header
in dlfcn.h
7888 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7890 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7891 cat >>confdefs.h
<<_ACEOF
7892 #define HAVE_DLFCN_H 1
7914 # Check whether --enable-shared was given.
7915 if test "${enable_shared+set}" = set; then :
7916 enableval
=$enable_shared; p
=${PACKAGE-default}
7918 yes) enable_shared
=yes ;;
7919 no
) enable_shared
=no
;;
7922 # Look at the argument we got. We use all the common list separators.
7923 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7924 for pkg
in $enableval; do
7926 if test "X$pkg" = "X$p"; then
7945 # Check whether --enable-static was given.
7946 if test "${enable_static+set}" = set; then :
7947 enableval
=$enable_static; p
=${PACKAGE-default}
7949 yes) enable_static
=yes ;;
7950 no
) enable_static
=no
;;
7953 # Look at the argument we got. We use all the common list separators.
7954 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7955 for pkg
in $enableval; do
7957 if test "X$pkg" = "X$p"; then
7977 # Check whether --with-pic was given.
7978 if test "${with_pic+set}" = set; then :
7979 withval
=$with_pic; pic_mode
="$withval"
7985 test -z "$pic_mode" && pic_mode
=default
7993 # Check whether --enable-fast-install was given.
7994 if test "${enable_fast_install+set}" = set; then :
7995 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7997 yes) enable_fast_install
=yes ;;
7998 no
) enable_fast_install
=no
;;
8000 enable_fast_install
=no
8001 # Look at the argument we got. We use all the common list separators.
8002 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8003 for pkg
in $enableval; do
8005 if test "X$pkg" = "X$p"; then
8006 enable_fast_install
=yes
8013 enable_fast_install
=yes
8026 # This can be used to rebuild libtool when needed
8027 LIBTOOL_DEPS
="$ltmain"
8029 # Always use our own libtool.
8030 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8057 test -z "$LN_S" && LN_S
="ln -s"
8072 if test -n "${ZSH_VERSION+set}" ; then
8073 setopt NO_GLOB_SUBST
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8077 $as_echo_n "checking for objdir... " >&6; }
8078 if test "${lt_cv_objdir+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8081 rm -f .libs
2>/dev
/null
8082 mkdir .libs
2>/dev
/null
8083 if test -d .libs
; then
8086 # MS-DOS does not allow filenames that begin with a dot.
8089 rmdir .libs
2>/dev
/null
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8092 $as_echo "$lt_cv_objdir" >&6; }
8093 objdir
=$lt_cv_objdir
8099 cat >>confdefs.h
<<_ACEOF
8100 #define LT_OBJDIR "$lt_cv_objdir/"
8108 # AIX sometimes has problems with the GCC collect2 program. For some
8109 # reason, if we set the COLLECT_NAMES environment variable, the problems
8110 # vanish in a puff of smoke.
8111 if test "X${COLLECT_NAMES+set}" != Xset
; then
8113 export COLLECT_NAMES
8120 can_build_shared
=yes
8122 # All known linkers require a `.a' archive for static linking (except MSVC,
8123 # which needs '.lib').
8126 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8129 old_CFLAGS
="$CFLAGS"
8131 # Set sane defaults for various variables
8132 test -z "$CC" && CC
=cc
8133 test -z "$LTCC" && LTCC
=$CC
8134 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8135 test -z "$LD" && LD
=ld
8136 test -z "$ac_objext" && ac_objext
=o
8138 for cc_temp
in $compiler""; do
8140 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8141 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8146 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8149 # Only perform the check for file, if the check method requires it
8150 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8151 case $deplibs_check_method in
8153 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8155 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8161 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8164 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8165 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8166 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8167 for ac_dir
in $ac_dummy; do
8169 test -z "$ac_dir" && ac_dir
=.
8170 if test -f $ac_dir/${ac_tool_prefix}file; then
8171 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8172 if test -n "$file_magic_test_file"; then
8173 case $deplibs_check_method in
8175 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8176 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8177 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8178 $EGREP "$file_magic_regex" > /dev
/null
; then
8183 *** Warning: the command libtool uses to detect shared libraries,
8184 *** $file_magic_cmd, produces output that libtool cannot recognize.
8185 *** The result is that libtool may fail to recognize shared libraries
8186 *** as such. This will affect the creation of libtool libraries that
8187 *** depend on shared libraries, but programs linked with such libtool
8188 *** libraries will work regardless of this problem. Nevertheless, you
8189 *** may want to report the problem to your system manager and/or to
8190 *** bug-libtool@gnu.org
8200 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8205 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8206 if test -n "$MAGIC_CMD"; then
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8208 $as_echo "$MAGIC_CMD" >&6; }
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8218 if test -z "$lt_cv_path_MAGIC_CMD"; then
8219 if test -n "$ac_tool_prefix"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8221 $as_echo_n "checking for file... " >&6; }
8222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8227 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8230 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8231 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8232 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8233 for ac_dir
in $ac_dummy; do
8235 test -z "$ac_dir" && ac_dir
=.
8236 if test -f $ac_dir/file; then
8237 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8238 if test -n "$file_magic_test_file"; then
8239 case $deplibs_check_method in
8241 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8242 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8243 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8244 $EGREP "$file_magic_regex" > /dev
/null
; then
8249 *** Warning: the command libtool uses to detect shared libraries,
8250 *** $file_magic_cmd, produces output that libtool cannot recognize.
8251 *** The result is that libtool may fail to recognize shared libraries
8252 *** as such. This will affect the creation of libtool libraries that
8253 *** depend on shared libraries, but programs linked with such libtool
8254 *** libraries will work regardless of this problem. Nevertheless, you
8255 *** may want to report the problem to your system manager and/or to
8256 *** bug-libtool@gnu.org
8266 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8271 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8272 if test -n "$MAGIC_CMD"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8274 $as_echo "$MAGIC_CMD" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8290 # Use C for the default configuration in the libtool script
8294 ac_cpp
='$CPP $CPPFLAGS'
8295 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8296 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8297 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8300 # Source file extension for C test sources.
8303 # Object file extension for compiled C test sources.
8307 # Code to be used in simple compile tests
8308 lt_simple_compile_test_code
="int some_variable = 0;"
8310 # Code to be used in simple link tests
8311 lt_simple_link_test_code
='int main(){return(0);}'
8319 # If no C compiler was specified, use CC.
8322 # If no C compiler flags were specified, use CFLAGS.
8323 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8325 # Allow CC to be a program name with arguments.
8328 # Save the default compiler, since it gets overwritten when the other
8329 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8330 compiler_DEFAULT
=$CC
8332 # save warnings/boilerplate of simple test code
8333 ac_outfile
=conftest.
$ac_objext
8334 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8335 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8336 _lt_compiler_boilerplate
=`cat conftest.err`
8339 ac_outfile
=conftest.
$ac_objext
8340 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8341 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8342 _lt_linker_boilerplate
=`cat conftest.err`
8347 ## There is no encapsulation within the following macros, do not change
8348 ## the running order or otherwise move them around unless you know exactly
8349 ## what you are doing...
8350 if test -n "$compiler"; then
8352 lt_prog_compiler_no_builtin_flag
=
8354 if test "$GCC" = yes; then
8355 case $cc_basename in
8357 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8359 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8363 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8367 lt_cv_prog_compiler_rtti_exceptions
=no
8368 ac_outfile
=conftest.
$ac_objext
8369 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8370 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8371 # Insert the option either (1) after the last *FLAGS variable, or
8372 # (2) before a word containing "conftest.", or (3) at the end.
8373 # Note that $ac_compile itself does not contain backslashes and begins
8374 # with a dollar sign (not a hyphen), so the echo should work correctly.
8375 # The option is referenced via a variable to avoid confusing sed.
8376 lt_compile
=`echo "$ac_compile" | $SED \
8377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8379 -e 's:$: $lt_compiler_flag:'`
8380 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8381 (eval "$lt_compile" 2>conftest.err
)
8383 cat conftest.err
>&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 if (exit $ac_status) && test -s "$ac_outfile"; then
8386 # The compiler can only warn and ignore the option if not recognized
8387 # So say no if there are warnings other than the usual output.
8388 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8389 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8390 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8391 lt_cv_prog_compiler_rtti_exceptions
=yes
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8398 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8400 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8401 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8413 lt_prog_compiler_wl
=
8414 lt_prog_compiler_pic
=
8415 lt_prog_compiler_static
=
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8418 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8420 if test "$GCC" = yes; then
8421 lt_prog_compiler_wl
='-Wl,'
8422 lt_prog_compiler_static
='-static'
8426 # All AIX code is PIC.
8427 if test "$host_cpu" = ia64
; then
8428 # AIX 5 now supports IA64 processor
8429 lt_prog_compiler_static
='-Bstatic'
8431 lt_prog_compiler_pic
='-fPIC'
8437 # see comment about AmigaOS4 .so support
8438 lt_prog_compiler_pic
='-fPIC'
8441 # FIXME: we need at least 68020 code to build shared libraries, but
8442 # adding the `-m68020' flag to GCC prevents building anything better,
8444 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8449 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8450 # PIC is the default for these OSes.
8453 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8454 # This hack is so that the source file can tell whether it is being
8455 # built for inclusion in a dll (and should export symbols for example).
8456 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8457 # (--disable-auto-import) libraries
8458 lt_prog_compiler_pic
='-DDLL_EXPORT'
8461 darwin
* | rhapsody
*)
8462 # PIC is the default on this platform
8463 # Common symbols not allowed in MH_DYLIB files
8464 lt_prog_compiler_pic
='-fno-common'
8468 # PIC is the default for Haiku.
8469 # The "-static" flag exists, but is broken.
8470 lt_prog_compiler_static
=
8474 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8475 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8476 # sets the default TLS model and affects inlining.
8482 lt_prog_compiler_pic
='-fPIC'
8488 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8489 # Instead, we relocate shared libraries at runtime.
8493 # Just because we use GCC doesn't mean we suddenly get shared libraries
8494 # on systems that don't support them.
8495 lt_prog_compiler_can_build_shared
=no
8500 # QNX uses GNU C++, but need to define -shared option too, otherwise
8502 lt_prog_compiler_pic
='-fPIC -shared'
8506 if test -d /usr
/nec
; then
8507 lt_prog_compiler_pic
=-Kconform_pic
8512 lt_prog_compiler_pic
='-fPIC'
8516 case $cc_basename in
8517 nvcc
*) # Cuda Compiler Driver 2.2
8518 lt_prog_compiler_wl
='-Xlinker '
8519 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8523 # PORTME Check for flag to pass linker flags through the system compiler.
8526 lt_prog_compiler_wl
='-Wl,'
8527 if test "$host_cpu" = ia64
; then
8528 # AIX 5 now supports IA64 processor
8529 lt_prog_compiler_static
='-Bstatic'
8531 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8535 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8536 # This hack is so that the source file can tell whether it is being
8537 # built for inclusion in a dll (and should export symbols for example).
8538 lt_prog_compiler_pic
='-DDLL_EXPORT'
8541 hpux9
* | hpux10
* | hpux11
*)
8542 lt_prog_compiler_wl
='-Wl,'
8543 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8550 lt_prog_compiler_pic
='+Z'
8553 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8554 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8557 irix5
* | irix6
* | nonstopux
*)
8558 lt_prog_compiler_wl
='-Wl,'
8559 # PIC (with -KPIC) is the default.
8560 lt_prog_compiler_static
='-non_shared'
8563 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8564 case $cc_basename in
8565 # old Intel for x86_64 which still supported -KPIC.
8567 lt_prog_compiler_wl
='-Wl,'
8568 lt_prog_compiler_pic
='-KPIC'
8569 lt_prog_compiler_static
='-static'
8571 # icc used to be incompatible with GCC.
8572 # ICC 10 doesn't accept -KPIC any more.
8574 lt_prog_compiler_wl
='-Wl,'
8575 lt_prog_compiler_pic
='-fPIC'
8576 lt_prog_compiler_static
='-static'
8578 # Lahey Fortran 8.1.
8580 lt_prog_compiler_wl
='-Wl,'
8581 lt_prog_compiler_pic
='--shared'
8582 lt_prog_compiler_static
='--static'
8584 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8585 # Portland Group compilers (*not* the Pentium gcc compiler,
8586 # which looks to be a dead project)
8587 lt_prog_compiler_wl
='-Wl,'
8588 lt_prog_compiler_pic
='-fpic'
8589 lt_prog_compiler_static
='-Bstatic'
8592 lt_prog_compiler_wl
='-Wl,'
8593 # All Alpha code is PIC.
8594 lt_prog_compiler_static
='-non_shared'
8596 xl
* | bgxl
* | bgf
* | mpixl
*)
8597 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8598 lt_prog_compiler_wl
='-Wl,'
8599 lt_prog_compiler_pic
='-qpic'
8600 lt_prog_compiler_static
='-qstaticlink'
8603 case `$CC -V 2>&1 | sed 5q` in
8604 *Sun\ F
* |
*Sun
*Fortran
*)
8605 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8606 lt_prog_compiler_pic
='-KPIC'
8607 lt_prog_compiler_static
='-Bstatic'
8608 lt_prog_compiler_wl
=''
8612 lt_prog_compiler_pic
='-KPIC'
8613 lt_prog_compiler_static
='-Bstatic'
8614 lt_prog_compiler_wl
='-Wl,'
8622 lt_prog_compiler_pic
='-KPIC'
8623 lt_prog_compiler_static
='-Bstatic'
8627 # QNX uses GNU C++, but need to define -shared option too, otherwise
8629 lt_prog_compiler_pic
='-fPIC -shared'
8632 osf3
* | osf4
* | osf5
*)
8633 lt_prog_compiler_wl
='-Wl,'
8634 # All OSF/1 code is PIC.
8635 lt_prog_compiler_static
='-non_shared'
8639 lt_prog_compiler_static
='-non_shared'
8643 lt_prog_compiler_pic
='-KPIC'
8644 lt_prog_compiler_static
='-Bstatic'
8645 case $cc_basename in
8647 lt_prog_compiler_wl
='-Qoption ld ';;
8649 lt_prog_compiler_wl
='-Wl,';;
8654 lt_prog_compiler_wl
='-Qoption ld '
8655 lt_prog_compiler_pic
='-PIC'
8656 lt_prog_compiler_static
='-Bstatic'
8659 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8660 lt_prog_compiler_wl
='-Wl,'
8661 lt_prog_compiler_pic
='-KPIC'
8662 lt_prog_compiler_static
='-Bstatic'
8666 if test -d /usr
/nec
;then
8667 lt_prog_compiler_pic
='-Kconform_pic'
8668 lt_prog_compiler_static
='-Bstatic'
8672 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8673 lt_prog_compiler_wl
='-Wl,'
8674 lt_prog_compiler_pic
='-KPIC'
8675 lt_prog_compiler_static
='-Bstatic'
8679 lt_prog_compiler_wl
='-Wl,'
8680 lt_prog_compiler_can_build_shared
=no
8684 lt_prog_compiler_pic
='-pic'
8685 lt_prog_compiler_static
='-Bstatic'
8689 lt_prog_compiler_can_build_shared
=no
8695 # For platforms which do not support PIC, -DPIC is meaningless:
8697 lt_prog_compiler_pic
=
8700 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8704 $as_echo "$lt_prog_compiler_pic" >&6; }
8712 # Check to make sure the PIC flag actually works.
8714 if test -n "$lt_prog_compiler_pic"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8716 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8717 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8720 lt_cv_prog_compiler_pic_works
=no
8721 ac_outfile
=conftest.
$ac_objext
8722 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8723 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8724 # Insert the option either (1) after the last *FLAGS variable, or
8725 # (2) before a word containing "conftest.", or (3) at the end.
8726 # Note that $ac_compile itself does not contain backslashes and begins
8727 # with a dollar sign (not a hyphen), so the echo should work correctly.
8728 # The option is referenced via a variable to avoid confusing sed.
8729 lt_compile
=`echo "$ac_compile" | $SED \
8730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8732 -e 's:$: $lt_compiler_flag:'`
8733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8734 (eval "$lt_compile" 2>conftest.err
)
8736 cat conftest.err
>&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 if (exit $ac_status) && test -s "$ac_outfile"; then
8739 # The compiler can only warn and ignore the option if not recognized
8740 # So say no if there are warnings other than the usual output.
8741 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8742 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8743 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8744 lt_cv_prog_compiler_pic_works
=yes
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8751 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8753 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8754 case $lt_prog_compiler_pic in
8756 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8759 lt_prog_compiler_pic
=
8760 lt_prog_compiler_can_build_shared
=no
8771 # Check to make sure the static flag actually works.
8773 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8775 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8776 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8779 lt_cv_prog_compiler_static_works
=no
8780 save_LDFLAGS
="$LDFLAGS"
8781 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8782 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8783 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8784 # The linker can only warn and ignore the option if not recognized
8785 # So say no if there are warnings
8786 if test -s conftest.err
; then
8787 # Append any errors to the config.log.
8788 cat conftest.err
1>&5
8789 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8790 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8791 if diff conftest.exp conftest.er2
>/dev
/null
; then
8792 lt_cv_prog_compiler_static_works
=yes
8795 lt_cv_prog_compiler_static_works
=yes
8799 LDFLAGS
="$save_LDFLAGS"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8803 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8805 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8808 lt_prog_compiler_static
=
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8818 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8819 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8822 lt_cv_prog_compiler_c_o
=no
8823 $RM -r conftest
2>/dev
/null
8827 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8829 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8830 # Insert the option either (1) after the last *FLAGS variable, or
8831 # (2) before a word containing "conftest.", or (3) at the end.
8832 # Note that $ac_compile itself does not contain backslashes and begins
8833 # with a dollar sign (not a hyphen), so the echo should work correctly.
8834 lt_compile
=`echo "$ac_compile" | $SED \
8835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8837 -e 's:$: $lt_compiler_flag:'`
8838 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8839 (eval "$lt_compile" 2>out
/conftest.err
)
8841 cat out
/conftest.err
>&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8845 # The compiler can only warn and ignore the option if not recognized
8846 # So say no if there are warnings
8847 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8848 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8849 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8850 lt_cv_prog_compiler_c_o
=yes
8855 # SGI C++ compiler will create directory out/ii_files/ for
8856 # template instantiation
8857 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8858 $RM out
/* && rmdir out
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8865 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8874 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8877 lt_cv_prog_compiler_c_o
=no
8878 $RM -r conftest
2>/dev
/null
8882 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8884 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8885 # Insert the option either (1) after the last *FLAGS variable, or
8886 # (2) before a word containing "conftest.", or (3) at the end.
8887 # Note that $ac_compile itself does not contain backslashes and begins
8888 # with a dollar sign (not a hyphen), so the echo should work correctly.
8889 lt_compile
=`echo "$ac_compile" | $SED \
8890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892 -e 's:$: $lt_compiler_flag:'`
8893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8894 (eval "$lt_compile" 2>out
/conftest.err
)
8896 cat out
/conftest.err
>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8900 # The compiler can only warn and ignore the option if not recognized
8901 # So say no if there are warnings
8902 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8903 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8904 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8905 lt_cv_prog_compiler_c_o
=yes
8910 # SGI C++ compiler will create directory out/ii_files/ for
8911 # template instantiation
8912 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8913 $RM out
/* && rmdir out
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8925 hard_links
="nottested"
8926 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8927 # do not overwrite the value of need_locks provided by the user
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8929 $as_echo_n "checking if we can lock with hard links... " >&6; }
8932 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8934 ln conftest.a conftest.b
2>&5 || hard_links
=no
8935 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8937 $as_echo "$hard_links" >&6; }
8938 if test "$hard_links" = no
; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8940 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8953 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8956 allow_undefined_flag
=
8957 always_export_symbols
=no
8959 archive_expsym_cmds
=
8960 compiler_needs_object
=no
8961 enable_shared_with_static_runtimes
=no
8962 export_dynamic_flag_spec
=
8963 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8964 hardcode_automatic
=no
8966 hardcode_direct_absolute
=no
8967 hardcode_libdir_flag_spec
=
8968 hardcode_libdir_flag_spec_ld
=
8969 hardcode_libdir_separator
=
8971 hardcode_shlibpath_var
=unsupported
8973 link_all_deplibs
=unknown
8976 old_archive_from_new_cmds
=
8977 old_archive_from_expsyms_cmds
=
8978 thread_safe_flag_spec
=
8979 whole_archive_flag_spec
=
8980 # include_expsyms should be a list of space-separated symbols to be *always*
8981 # included in the symbol list
8983 # exclude_expsyms can be an extended regexp of symbols to exclude
8984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8986 # as well as any symbol that contains `d'.
8987 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8989 # platforms (ab)use it in PIC code, but their linkers get confused if
8990 # the symbol is explicitly referenced. Since portable code cannot
8991 # rely on this symbol name, it's probably fine to never include it in
8992 # preloaded symbol tables.
8993 # Exclude shared library initialization/finalization symbols.
8994 extract_expsyms_cmds
=
8997 cygwin
* | mingw
* | pw32
* | cegcc
*)
8998 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8999 # When not using gcc, we currently assume that we are using
9000 # Microsoft Visual C++.
9001 if test "$GCC" != yes; then
9006 # we just hope/assume this is gcc and not c89 (= MSVC++)
9016 # On some targets, GNU ld is compatible enough with the native linker
9017 # that we're better off using the native interface for both.
9018 lt_use_gnu_ld_interface
=no
9019 if test "$with_gnu_ld" = yes; then
9022 # The AIX port of GNU ld has always aspired to compatibility
9023 # with the native linker. However, as the warning in the GNU ld
9024 # block says, versions before 2.19.5* couldn't really create working
9025 # shared libraries, regardless of the interface used.
9026 case `$LD -v 2>&1` in
9027 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9028 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9029 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9031 lt_use_gnu_ld_interface
=yes
9036 lt_use_gnu_ld_interface
=yes
9041 if test "$lt_use_gnu_ld_interface" = yes; then
9042 # If archive_cmds runs LD, not CC, wlarc should be empty
9045 # Set some defaults for GNU ld with shared library support. These
9046 # are reset later if shared libraries are not supported. Putting them
9047 # here allows them to be overridden if necessary.
9048 runpath_var
=LD_RUN_PATH
9049 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9050 export_dynamic_flag_spec
='${wl}--export-dynamic'
9051 # ancient GNU ld didn't support --whole-archive et. al.
9052 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9053 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9055 whole_archive_flag_spec
=
9057 supports_anon_versioning
=no
9058 case `$LD -v 2>&1` in
9059 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9060 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9061 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9062 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9063 *\
2.11.
*) ;; # other 2.11 versions
9064 *) supports_anon_versioning
=yes ;;
9067 # See if GNU ld supports shared libraries.
9070 # On AIX/PPC, the GNU linker is very broken
9071 if test "$host_cpu" != ia64
; then
9075 *** Warning: the GNU linker, at least up to release 2.19, is reported
9076 *** to be unable to reliably create shared libraries on AIX.
9077 *** Therefore, libtool is disabling shared libraries support. If you
9078 *** really care for shared libraries, you may want to install binutils
9079 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9080 *** You will then need to restart the configuration process.
9089 # see comment about AmigaOS4 .so support
9090 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091 archive_expsym_cmds
=''
9094 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)'
9095 hardcode_libdir_flag_spec
='-L$libdir'
9096 hardcode_minus_L
=yes
9102 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9103 allow_undefined_flag
=unsupported
9104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9105 # support --undefined. This deserves some investigation. FIXME
9106 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112 cygwin
* | mingw
* | pw32
* | cegcc
*)
9113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9114 # as there is no search path for DLLs.
9115 hardcode_libdir_flag_spec
='-L$libdir'
9116 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9117 allow_undefined_flag
=unsupported
9118 always_export_symbols
=no
9119 enable_shared_with_static_runtimes
=yes
9120 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9122 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9123 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9124 # If the export-symbols file already is a .def file (1st line
9125 # is EXPORTS), use it as is; otherwise, prepend...
9126 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9127 cp $export_symbols $output_objdir/$soname.def;
9129 echo EXPORTS > $output_objdir/$soname.def;
9130 cat $export_symbols >> $output_objdir/$soname.def;
9132 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9139 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 link_all_deplibs
=yes
9145 hardcode_shlibpath_var
=no
9146 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9147 export_dynamic_flag_spec
='${wl}-E'
9148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9149 # Instead, shared libraries are loaded at an image base (0x10000000 by
9150 # default) and relocated if they conflict, which is a slow very memory
9151 # consuming and fragmenting process. To avoid this, we pick a random,
9152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9154 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9155 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'
9158 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9160 if test "$host_os" = linux-dietlibc
; then
9161 case $cc_basename in
9162 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9165 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9166 && test "$tmp_diet" = no
9168 tmp_addflag
=' $pic_flag'
9169 tmp_sharedflag
='-shared'
9170 case $cc_basename,$host_cpu in
9171 pgcc
*) # Portland Group C compiler
9172 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9173 tmp_addflag
=' $pic_flag'
9175 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9176 # Portland Group f77 and f90 compilers
9177 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9178 tmp_addflag
=' $pic_flag -Mnomain' ;;
9179 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9180 tmp_addflag
=' -i_dynamic' ;;
9181 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9182 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9183 ifc
* | ifort
*) # Intel Fortran compiler
9184 tmp_addflag
=' -nofor_main' ;;
9185 lf95
*) # Lahey Fortran 8.1
9186 whole_archive_flag_spec
=
9187 tmp_sharedflag
='--shared' ;;
9188 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9189 tmp_sharedflag
='-qmkshrobj'
9191 nvcc
*) # Cuda Compiler Driver 2.2
9192 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9193 compiler_needs_object
=yes
9196 case `$CC -V 2>&1 | sed 5q` in
9197 *Sun\ C
*) # Sun C 5.9
9198 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9199 compiler_needs_object
=yes
9200 tmp_sharedflag
='-G' ;;
9201 *Sun\ F
*) # Sun Fortran 8.3
9202 tmp_sharedflag
='-G' ;;
9204 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 if test "x$supports_anon_versioning" = xyes
; then
9207 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9209 echo "local: *; };" >> $output_objdir/$libname.ver~
9210 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9213 case $cc_basename in
9214 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9215 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9216 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9217 hardcode_libdir_flag_spec
=
9218 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9219 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9220 if test "x$supports_anon_versioning" = xyes
; then
9221 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9223 echo "local: *; };" >> $output_objdir/$libname.ver~
9224 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9234 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9235 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9238 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9244 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9249 *** create shared libraries on Solaris systems. Therefore, libtool
9250 *** is disabling shared libraries support. We urge you to upgrade GNU
9251 *** binutils to release 2.9.1 or newer. Another option is to modify
9252 *** your PATH or compiler configuration so that the native linker is
9253 *** used, and then restart.
9256 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9257 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9264 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9265 case `$LD -v 2>&1` in
9266 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9270 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9271 *** reliably create shared libraries on SCO systems. Therefore, libtool
9272 *** is disabling shared libraries support. We urge you to upgrade GNU
9273 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9274 *** your PATH or compiler configuration so that the native linker is
9275 *** used, and then restart.
9280 # For security reasons, it is highly recommended that you always
9281 # use absolute paths for naming shared libraries, and exclude the
9282 # DT_RUNPATH tag from executables and libraries. But doing so
9283 # requires that you compile everything twice, which is a pain.
9284 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9285 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9286 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9296 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9299 hardcode_shlibpath_var
=no
9303 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9304 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9312 if test "$ld_shlibs" = no
; then
9314 hardcode_libdir_flag_spec
=
9315 export_dynamic_flag_spec
=
9316 whole_archive_flag_spec
=
9319 # PORTME fill in a description of your system's linker (not GNU ld)
9322 allow_undefined_flag
=unsupported
9323 always_export_symbols
=yes
9324 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'
9325 # Note: this linker hardcodes the directories in LIBPATH if there
9326 # are no directories specified by -L.
9327 hardcode_minus_L
=yes
9328 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9329 # Neither direct hardcoding nor static linking is supported with a
9331 hardcode_direct
=unsupported
9336 if test "$host_cpu" = ia64
; then
9337 # On IA64, the linker does run time linking by default, so we don't
9338 # have to do anything special.
9339 aix_use_runtimelinking
=no
9340 exp_sym_flag
='-Bexport'
9343 # If we're using GNU nm, then we don't want the "-C" option.
9344 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9345 # Also, AIX nm treats weak defined symbols like other global
9346 # defined symbols, whereas GNU nm marks them as "W".
9347 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9348 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9350 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'
9352 aix_use_runtimelinking
=no
9354 # Test if we are trying to use run time linking or normal
9355 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9356 # need to do runtime linking.
9357 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9358 for ld_flag
in $LDFLAGS; do
9359 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9360 aix_use_runtimelinking
=yes
9367 exp_sym_flag
='-bexport'
9368 no_entry_flag
='-bnoentry'
9371 # When large executables or shared objects are built, AIX ld can
9372 # have problems creating the table of contents. If linking a library
9373 # or program results in "error TOC overflow" add -mminimal-toc to
9374 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9375 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9379 hardcode_direct_absolute
=yes
9380 hardcode_libdir_separator
=':'
9381 link_all_deplibs
=yes
9382 file_list_spec
='${wl}-f,'
9384 if test "$GCC" = yes; then
9385 case $host_os in aix4.
[012]|aix4.
[012].
*)
9386 # We only want to do this on AIX 4.2 and lower, the check
9387 # below for broken collect2 doesn't work under 4.3+
9388 collect2name
=`${CC} -print-prog-name=collect2`
9389 if test -f "$collect2name" &&
9390 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9392 # We have reworked collect2
9395 # We have old collect2
9396 hardcode_direct
=unsupported
9397 # It fails to find uninstalled libraries when the uninstalled
9398 # path is not listed in the libpath. Setting hardcode_minus_L
9399 # to unsupported forces relinking
9400 hardcode_minus_L
=yes
9401 hardcode_libdir_flag_spec
='-L$libdir'
9402 hardcode_libdir_separator
=
9406 shared_flag
='-shared'
9407 if test "$aix_use_runtimelinking" = yes; then
9408 shared_flag
="$shared_flag "'${wl}-G'
9412 if test "$host_cpu" = ia64
; then
9413 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9414 # chokes on -Wl,-G. The following line is correct:
9417 if test "$aix_use_runtimelinking" = yes; then
9418 shared_flag
='${wl}-G'
9420 shared_flag
='${wl}-bM:SRE'
9425 export_dynamic_flag_spec
='${wl}-bexpall'
9426 # It seems that -bexpall does not export symbols beginning with
9427 # underscore (_), so it is better to generate a list of symbols to export.
9428 always_export_symbols
=yes
9429 if test "$aix_use_runtimelinking" = yes; then
9430 # Warning - without using the other runtime loading flags (-brtl),
9431 # -berok will link without error, but may produce a broken library.
9432 allow_undefined_flag
='-berok'
9433 # Determine the default libpath from the value encoded in an
9435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9446 if ac_fn_c_try_link
"$LINENO"; then :
9448 lt_aix_libpath_sed
='
9449 /Import File Strings/,/^$/ {
9455 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9456 # Check for a 64-bit object if we didn't find anything.
9457 if test -z "$aix_libpath"; then
9458 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461 rm -f core conftest.err conftest.
$ac_objext \
9462 conftest
$ac_exeext conftest.
$ac_ext
9463 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9465 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9466 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9468 if test "$host_cpu" = ia64
; then
9469 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9470 allow_undefined_flag
="-z nodefs"
9471 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"
9473 # Determine the default libpath from the value encoded in an
9475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9486 if ac_fn_c_try_link
"$LINENO"; then :
9488 lt_aix_libpath_sed
='
9489 /Import File Strings/,/^$/ {
9495 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9496 # Check for a 64-bit object if we didn't find anything.
9497 if test -z "$aix_libpath"; then
9498 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9501 rm -f core conftest.err conftest.
$ac_objext \
9502 conftest
$ac_exeext conftest.
$ac_ext
9503 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9505 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9506 # Warning - without using the other run time loading flags,
9507 # -berok will link without error, but may produce a broken library.
9508 no_undefined_flag
=' ${wl}-bernotok'
9509 allow_undefined_flag
=' ${wl}-berok'
9510 if test "$with_gnu_ld" = yes; then
9511 # We only use this code for GNU lds that support --whole-archive.
9512 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9514 # Exported symbols can be pulled into shared objects from archives
9515 whole_archive_flag_spec
='$convenience'
9517 archive_cmds_need_lc
=yes
9518 # This is similar to how AIX traditionally builds its shared libraries.
9519 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'
9527 # see comment about AmigaOS4 .so support
9528 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529 archive_expsym_cmds
=''
9532 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)'
9533 hardcode_libdir_flag_spec
='-L$libdir'
9534 hardcode_minus_L
=yes
9540 export_dynamic_flag_spec
=-rdynamic
9543 cygwin
* | mingw
* | pw32
* | cegcc
*)
9544 # When not using gcc, we currently assume that we are using
9545 # Microsoft Visual C++.
9546 # hardcode_libdir_flag_spec is actually meaningless, as there is
9547 # no search path for DLLs.
9548 hardcode_libdir_flag_spec
=' '
9549 allow_undefined_flag
=unsupported
9550 # Tell ltmain to make .lib files, not .a files.
9552 # Tell ltmain to make .dll files, not .so files.
9554 # FIXME: Setting linknames here is a bad hack.
9555 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9556 # The linker will automatically build a .lib file if we build a DLL.
9557 old_archive_from_new_cmds
='true'
9558 # FIXME: Should let the user specify the lib program.
9559 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9560 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9561 enable_shared_with_static_runtimes
=yes
9564 darwin
* | rhapsody
*)
9567 archive_cmds_need_lc
=no
9569 hardcode_automatic
=yes
9570 hardcode_shlibpath_var
=unsupported
9571 if test "$lt_cv_ld_force_load" = "yes"; then
9572 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9574 whole_archive_flag_spec
=''
9576 link_all_deplibs
=yes
9577 allow_undefined_flag
="$_lt_dar_allow_undefined"
9578 case $cc_basename in
9579 ifort
*) _lt_dar_can_shared
=yes ;;
9580 *) _lt_dar_can_shared
=$GCC ;;
9582 if test "$_lt_dar_can_shared" = "yes"; then
9583 output_verbose_link_cmd
=func_echo_all
9584 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9585 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9586 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}"
9587 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}"
9596 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597 hardcode_libdir_flag_spec
='-L$libdir'
9598 hardcode_shlibpath_var
=no
9601 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9602 # support. Future versions do this automatically, but an explicit c++rt0.o
9603 # does not break anything, and helps significantly (at the cost of a little
9606 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9607 hardcode_libdir_flag_spec
='-R$libdir'
9609 hardcode_shlibpath_var
=no
9612 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9614 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_minus_L
=yes
9617 hardcode_shlibpath_var
=no
9620 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9621 freebsd
* | dragonfly
*)
9622 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9623 hardcode_libdir_flag_spec
='-R$libdir'
9625 hardcode_shlibpath_var
=no
9629 if test "$GCC" = yes; then
9630 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'
9632 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'
9634 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9635 hardcode_libdir_separator
=:
9638 # hardcode_minus_L: Not really in the search PATH,
9639 # but as the default location of the library.
9640 hardcode_minus_L
=yes
9641 export_dynamic_flag_spec
='${wl}-E'
9645 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9646 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9648 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9650 if test "$with_gnu_ld" = no
; then
9651 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9652 hardcode_libdir_flag_spec_ld
='+b $libdir'
9653 hardcode_libdir_separator
=:
9655 hardcode_direct_absolute
=yes
9656 export_dynamic_flag_spec
='${wl}-E'
9657 # hardcode_minus_L: Not really in the search PATH,
9658 # but as the default location of the library.
9659 hardcode_minus_L
=yes
9664 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9667 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9670 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9673 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9679 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9686 # Older versions of the 11.00 compiler do not understand -b yet
9687 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9689 $as_echo_n "checking if $CC understands -b... " >&6; }
9690 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9693 lt_cv_prog_compiler__b
=no
9694 save_LDFLAGS
="$LDFLAGS"
9695 LDFLAGS
="$LDFLAGS -b"
9696 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9697 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9698 # The linker can only warn and ignore the option if not recognized
9699 # So say no if there are warnings
9700 if test -s conftest.err
; then
9701 # Append any errors to the config.log.
9702 cat conftest.err
1>&5
9703 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9704 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9705 if diff conftest.exp conftest.er2
>/dev
/null
; then
9706 lt_cv_prog_compiler__b
=yes
9709 lt_cv_prog_compiler__b
=yes
9713 LDFLAGS
="$save_LDFLAGS"
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9717 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9719 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9720 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9728 if test "$with_gnu_ld" = no
; then
9729 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9730 hardcode_libdir_separator
=:
9735 hardcode_shlibpath_var
=no
9739 hardcode_direct_absolute
=yes
9740 export_dynamic_flag_spec
='${wl}-E'
9742 # hardcode_minus_L: Not really in the search PATH,
9743 # but as the default location of the library.
9744 hardcode_minus_L
=yes
9750 irix5
* | irix6
* | nonstopux
*)
9751 if test "$GCC" = yes; then
9752 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9753 # Try to use the -exported_symbol ld option, if it does not
9754 # work, assume that -exports_file does not work either and
9755 # implicitly export all symbols.
9756 save_LDFLAGS
="$LDFLAGS"
9757 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9762 if ac_fn_c_try_link
"$LINENO"; then :
9763 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9766 rm -f core conftest.err conftest.
$ac_objext \
9767 conftest
$ac_exeext conftest.
$ac_ext
9768 LDFLAGS
="$save_LDFLAGS"
9770 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9771 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9773 archive_cmds_need_lc
='no'
9774 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9775 hardcode_libdir_separator
=:
9777 link_all_deplibs
=yes
9781 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9782 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9784 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9786 hardcode_libdir_flag_spec
='-R$libdir'
9788 hardcode_shlibpath_var
=no
9792 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9795 hardcode_libdir_separator
=:
9796 hardcode_shlibpath_var
=no
9803 if test -f /usr
/libexec
/ld.so
; then
9805 hardcode_shlibpath_var
=no
9806 hardcode_direct_absolute
=yes
9807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9808 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9809 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9810 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9811 export_dynamic_flag_spec
='${wl}-E'
9814 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9815 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_libdir_flag_spec
='-R$libdir'
9819 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9820 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9830 hardcode_libdir_flag_spec
='-L$libdir'
9831 hardcode_minus_L
=yes
9832 allow_undefined_flag
=unsupported
9833 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'
9834 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9838 if test "$GCC" = yes; then
9839 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9840 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9842 allow_undefined_flag
=' -expect_unresolved \*'
9843 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9845 archive_cmds_need_lc
='no'
9846 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9847 hardcode_libdir_separator
=:
9850 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9851 if test "$GCC" = yes; then
9852 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9853 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9854 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9856 allow_undefined_flag
=' -expect_unresolved \*'
9857 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9858 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~
9859 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9861 # Both c and cxx compiler support -rpath directly
9862 hardcode_libdir_flag_spec
='-rpath $libdir'
9864 archive_cmds_need_lc
='no'
9865 hardcode_libdir_separator
=:
9869 no_undefined_flag
=' -z defs'
9870 if test "$GCC" = yes; then
9872 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9873 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9874 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9876 case `$CC -V 2>&1` in
9879 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9880 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9885 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9886 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9887 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9891 hardcode_libdir_flag_spec
='-R$libdir'
9892 hardcode_shlibpath_var
=no
9894 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9896 # The compiler driver will combine and reorder linker options,
9897 # but understands `-z linker_flag'. GCC discards it without `$wl',
9898 # but is careful enough not to reorder.
9899 # Supported since Solaris 2.6 (maybe 2.5.1?)
9900 if test "$GCC" = yes; then
9901 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9903 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9907 link_all_deplibs
=yes
9911 if test "x$host_vendor" = xsequent
; then
9912 # Use $CC to link under sequent, because it throws in some extra .o
9913 # files that make .init and .fini sections work.
9914 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9916 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9918 hardcode_libdir_flag_spec
='-L$libdir'
9920 hardcode_minus_L
=yes
9921 hardcode_shlibpath_var
=no
9925 case $host_vendor in
9927 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928 hardcode_direct
=yes # is this really true???
9931 ## LD is ld it makes a PLAMLIB
9932 ## CC just makes a GrossModule.
9933 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9934 reload_cmds
='$CC -r -o $output$reload_objs'
9938 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9942 runpath_var
='LD_RUN_PATH'
9943 hardcode_shlibpath_var
=no
9947 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948 hardcode_shlibpath_var
=no
9949 export_dynamic_flag_spec
='-Bexport'
9953 if test -d /usr
/nec
; then
9954 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_shlibpath_var
=no
9956 runpath_var
=LD_RUN_PATH
9957 hardcode_runpath_var
=yes
9962 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9963 no_undefined_flag
='${wl}-z,text'
9964 archive_cmds_need_lc
=no
9965 hardcode_shlibpath_var
=no
9966 runpath_var
='LD_RUN_PATH'
9968 if test "$GCC" = yes; then
9969 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9970 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9972 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9973 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9977 sysv5
* | sco3.2v5
* | sco5v6
*)
9978 # Note: We can NOT use -z defs as we might desire, because we do not
9979 # link with -lc, and that would cause any symbols used from libc to
9980 # always be unresolved, which means just about no library would
9981 # ever link correctly. If we're not using GNU ld we use -z text
9982 # though, which does catch some bad symbols but isn't as heavy-handed
9984 no_undefined_flag
='${wl}-z,text'
9985 allow_undefined_flag
='${wl}-z,nodefs'
9986 archive_cmds_need_lc
=no
9987 hardcode_shlibpath_var
=no
9988 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9989 hardcode_libdir_separator
=':'
9990 link_all_deplibs
=yes
9991 export_dynamic_flag_spec
='${wl}-Bexport'
9992 runpath_var
='LD_RUN_PATH'
9994 if test "$GCC" = yes; then
9995 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10004 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_libdir_flag_spec
='-L$libdir'
10006 hardcode_shlibpath_var
=no
10014 if test x
$host_vendor = xsni
; then
10016 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10017 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10024 $as_echo "$ld_shlibs" >&6; }
10025 test "$ld_shlibs" = no
&& can_build_shared
=no
10027 with_gnu_ld
=$with_gnu_ld
10044 # Do we need to explicitly link libc?
10046 case "x$archive_cmds_need_lc" in
10048 # Assume -lc should be added
10049 archive_cmds_need_lc
=yes
10051 if test "$enable_shared" = yes && test "$GCC" = yes; then
10052 case $archive_cmds in
10054 # FIXME: we may have to deal with multi-command sequences.
10057 # Test whether the compiler implicitly links with -lc since on some
10058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10059 # to ld, don't add -lc before -lgcc.
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10061 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10062 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10063 $as_echo_n "(cached) " >&6
10066 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10069 (eval $ac_compile) 2>&5
10071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10072 test $ac_status = 0; } 2>conftest.err
; then
10075 libobjs
=conftest.
$ac_objext
10077 wl
=$lt_prog_compiler_wl
10078 pic_flag
=$lt_prog_compiler_pic
10084 lt_save_allow_undefined_flag
=$allow_undefined_flag
10085 allow_undefined_flag
=
10086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10087 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10090 test $ac_status = 0; }
10092 lt_cv_archive_cmds_need_lc
=no
10094 lt_cv_archive_cmds_need_lc
=yes
10096 allow_undefined_flag
=$lt_save_allow_undefined_flag
10098 cat conftest.err
1>&5
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10104 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10105 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10269 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10271 if test "$GCC" = yes; then
10273 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10274 *) lt_awk_arg
="/^libraries:/" ;;
10277 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10278 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10280 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10281 case $lt_search_path_spec in
10283 # if the path contains ";" then we assume it to be the separator
10284 # otherwise default to the standard path separator (i.e. ":") - it is
10285 # assumed that no part of a normal pathname contains ";" but that should
10286 # okay in the real world where ";" in dirpaths is itself problematic.
10287 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10290 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10293 # Ok, now we have the path, separated by spaces, we can step through it
10294 # and add multilib dir if necessary.
10295 lt_tmp_lt_search_path_spec
=
10296 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10297 for lt_sys_path
in $lt_search_path_spec; do
10298 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10299 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10301 test -d "$lt_sys_path" && \
10302 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10305 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10306 BEGIN {RS=" "; FS="/|\n";} {
10309 for (lt_i = NF; lt_i > 0; lt_i--) {
10310 if ($lt_i != "" && $lt_i != ".") {
10311 if ($lt_i == "..") {
10314 if (lt_count == 0) {
10315 lt_foo="/" $lt_i lt_foo;
10322 if (lt_foo != "") { lt_freq[lt_foo]++; }
10323 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10325 # AWK program above erroneously prepends '/' to C:/dos/paths
10328 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10329 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10331 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10333 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10335 library_names_spec
=
10336 libname_spec
='lib$name'
10340 postuninstall_cmds
=
10344 shlibpath_overrides_runpath
=unknown
10346 dynamic_linker
="$host_os ld.so"
10347 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10348 need_lib_prefix
=unknown
10349 hardcode_into_libs
=no
10351 # when you set need_version to no, make sure it does not cause -set_version
10352 # flags to be left without arguments
10353 need_version
=unknown
10358 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10359 shlibpath_var
=LIBPATH
10361 # AIX 3 has no versioning support, so we append a major version to the name.
10362 soname_spec
='${libname}${release}${shared_ext}$major'
10369 hardcode_into_libs
=yes
10370 if test "$host_cpu" = ia64
; then
10371 # AIX 5 supports IA64
10372 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10373 shlibpath_var
=LD_LIBRARY_PATH
10375 # With GCC up to 2.95.x, collect2 would create an import file
10376 # for dependence libraries. The import file would start with
10377 # the line `#! .'. This would cause the generated library to
10378 # depend on `.', always an invalid library. This was fixed in
10379 # development snapshots of GCC prior to 3.0.
10381 aix4 | aix4.
[01] | aix4.
[01].
*)
10382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10384 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10387 can_build_shared
=no
10391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10392 # soname into executable. Probably we can add versioning support to
10393 # collect2, so additional links can be useful in future.
10394 if test "$aix_use_runtimelinking" = yes; then
10395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10396 # instead of lib<name>.a to let people know that these are not
10397 # typical AIX shared libraries.
10398 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 # We preserve .a as extension for shared libraries through AIX4.2
10401 # and later when we are not doing run time linking.
10402 library_names_spec
='${libname}${release}.a $libname.a'
10403 soname_spec
='${libname}${release}${shared_ext}$major'
10405 shlibpath_var
=LIBPATH
10412 # Since July 2007 AmigaOS4 officially supports .so libraries.
10413 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417 library_names_spec
='$libname.ixlibrary $libname.a'
10418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10419 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10425 library_names_spec
='${libname}${shared_ext}'
10426 dynamic_linker
="$host_os ld.so"
10427 shlibpath_var
=LIBRARY_PATH
10433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 soname_spec
='${libname}${release}${shared_ext}$major'
10435 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10436 shlibpath_var
=LD_LIBRARY_PATH
10437 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10438 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10439 # the default ld.so.conf also contains /usr/contrib/lib and
10440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10441 # libtool to hard-code these into programs
10444 cygwin
* | mingw
* | pw32
* | cegcc
*)
10445 version_type
=windows
10450 case $GCC,$host_os in
10451 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10452 library_names_spec
='$libname.dll.a'
10453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10454 postinstall_cmds
='base_file=`basename \${file}`~
10455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10456 dldir=$destdir/`dirname \$dlpath`~
10457 test -d \$dldir || mkdir -p \$dldir~
10458 $install_prog $dir/$dlname \$dldir/$dlname~
10459 chmod a+x \$dldir/$dlname~
10460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10463 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10464 dlpath=$dir/\$dldll~
10466 shlibpath_overrides_runpath
=yes
10470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10471 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10473 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10476 # MinGW DLLs use traditional 'lib' prefix
10477 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10480 # pw32 DLLs use 'pw' prefix rather than 'lib'
10481 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10487 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10490 dynamic_linker
='Win32 ld.exe'
10491 # FIXME: first we should search . and the directory the executable is in
10495 darwin
* | rhapsody
*)
10496 dynamic_linker
="$host_os dyld"
10497 version_type
=darwin
10500 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10501 soname_spec
='${libname}${release}${major}$shared_ext'
10502 shlibpath_overrides_runpath
=yes
10503 shlibpath_var
=DYLD_LIBRARY_PATH
10504 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10506 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10507 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10515 soname_spec
='${libname}${release}${shared_ext}$major'
10516 shlibpath_var
=LD_LIBRARY_PATH
10519 freebsd
* | dragonfly
*)
10520 # DragonFly does not have aout. When/if they implement a new
10521 # versioning mechanism, adjust this.
10522 if test -x /usr
/bin
/objformat
; then
10523 objformat
=`/usr/bin/objformat`
10526 freebsd
[23].
*) objformat
=aout
;;
10527 *) objformat
=elf
;;
10530 version_type
=freebsd-
$objformat
10531 case $version_type in
10533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10538 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10542 shlibpath_var
=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath
=yes
10547 freebsd3.
[01]* | freebsdelf3.
[01]*)
10548 shlibpath_overrides_runpath
=yes
10549 hardcode_into_libs
=yes
10551 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10552 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10553 shlibpath_overrides_runpath
=no
10554 hardcode_into_libs
=yes
10556 *) # from 4.6 on, and DragonFly
10557 shlibpath_overrides_runpath
=yes
10558 hardcode_into_libs
=yes
10567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10568 soname_spec
='${libname}${release}${shared_ext}$major'
10569 shlibpath_var
=LD_LIBRARY_PATH
10570 hardcode_into_libs
=yes
10577 dynamic_linker
="$host_os runtime_loader"
10578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10579 soname_spec
='${libname}${release}${shared_ext}$major'
10580 shlibpath_var
=LIBRARY_PATH
10581 shlibpath_overrides_runpath
=yes
10582 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10583 hardcode_into_libs
=yes
10586 hpux9
* | hpux10
* | hpux11
*)
10587 # Give a soname corresponding to the major version so that dld.sl refuses to
10588 # link against other versions.
10595 hardcode_into_libs
=yes
10596 dynamic_linker
="$host_os dld.so"
10597 shlibpath_var
=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 soname_spec
='${libname}${release}${shared_ext}$major'
10601 if test "X$HPUX_IA64_MODE" = X32
; then
10602 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10604 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10606 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10610 hardcode_into_libs
=yes
10611 dynamic_linker
="$host_os dld.sl"
10612 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10613 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec
='${libname}${release}${shared_ext}$major'
10616 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10617 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10621 dynamic_linker
="$host_os dld.sl"
10622 shlibpath_var
=SHLIB_PATH
10623 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10624 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625 soname_spec
='${libname}${release}${shared_ext}$major'
10628 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10629 postinstall_cmds
='chmod 555 $lib'
10630 # or fails outright, so override atomically:
10631 install_override_mode
=555
10638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10639 soname_spec
='${libname}${release}${shared_ext}$major'
10640 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10641 shlibpath_var
=LD_LIBRARY_PATH
10642 shlibpath_overrides_runpath
=no
10643 hardcode_into_libs
=yes
10646 irix5
* | irix6
* | nonstopux
*)
10648 nonstopux
*) version_type
=nonstopux
;;
10650 if test "$lt_cv_prog_gnu_ld" = yes; then
10658 soname_spec
='${libname}${release}${shared_ext}$major'
10659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10661 irix5
* | nonstopux
*)
10662 libsuff
= shlibsuff
=
10665 case $LD in # libtool.m4 will add one of these switches to LD
10666 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10667 libsuff
= shlibsuff
= libmagic
=32-bit;;
10668 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10669 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10670 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10671 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10672 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10676 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10677 shlibpath_overrides_runpath
=no
10678 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10679 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10680 hardcode_into_libs
=yes
10683 # No shared lib support for Linux oldld, aout, or coff.
10684 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10688 # This must be Linux ELF.
10689 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec
='${libname}${release}${shared_ext}$major'
10695 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10696 shlibpath_var
=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath
=no
10699 # Some binutils ld are patched to set DT_RUNPATH
10700 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10703 lt_cv_shlibpath_overrides_runpath
=no
10704 save_LDFLAGS
=$LDFLAGS
10705 save_libdir
=$libdir
10706 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10707 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10719 if ac_fn_c_try_link
"$LINENO"; then :
10720 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10721 lt_cv_shlibpath_overrides_runpath
=yes
10724 rm -f core conftest.err conftest.
$ac_objext \
10725 conftest
$ac_exeext conftest.
$ac_ext
10726 LDFLAGS
=$save_LDFLAGS
10727 libdir
=$save_libdir
10731 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10733 # This implies no fast_install, which is unacceptable.
10734 # Some rework will be needed to allow for fast_install
10735 # before this can be enabled.
10736 hardcode_into_libs
=yes
10738 # Append ld.so.conf contents to the search path
10739 if test -f /etc
/ld.so.conf
; then
10740 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;s/"//g;/^$/d' | tr '\n' ' '`
10741 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10744 # We used to test for /lib/ld.so.1 and disable shared libraries on
10745 # powerpc, because MkLinux only supported shared libraries with the
10746 # GNU dynamic linker. Since this was broken with cross compilers,
10747 # most powerpc-linux boxes support dynamic linking these days and
10748 # people can always --disable-shared, the test was removed, and we
10749 # assume the GNU/Linux dynamic linker is in use.
10750 dynamic_linker
='GNU/Linux ld.so'
10757 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10759 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10760 dynamic_linker
='NetBSD (a.out) ld.so'
10762 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10763 soname_spec
='${libname}${release}${shared_ext}$major'
10764 dynamic_linker
='NetBSD ld.elf_so'
10766 shlibpath_var
=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath
=yes
10768 hardcode_into_libs
=yes
10773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 shlibpath_var
=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath
=yes
10782 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 soname_spec
='${libname}${release}${shared_ext}$major'
10784 shlibpath_var
=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath
=no
10786 hardcode_into_libs
=yes
10787 dynamic_linker
='ldqnx.so'
10792 sys_lib_dlsearch_path_spec
="/usr/lib"
10794 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10796 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10797 *) need_version
=no
;;
10799 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10800 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10801 shlibpath_var
=LD_LIBRARY_PATH
10802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10804 openbsd2.
[89] | openbsd2.
[89].
*)
10805 shlibpath_overrides_runpath
=no
10808 shlibpath_overrides_runpath
=yes
10812 shlibpath_overrides_runpath
=yes
10817 libname_spec
='$name'
10820 library_names_spec
='$libname${shared_ext} $libname.a'
10821 dynamic_linker
='OS/2 ld.exe'
10822 shlibpath_var
=LIBPATH
10825 osf3
* | osf4
* | osf5
*)
10829 soname_spec
='${libname}${release}${shared_ext}$major'
10830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 shlibpath_var
=LD_LIBRARY_PATH
10832 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10833 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10844 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 soname_spec
='${libname}${release}${shared_ext}$major'
10846 shlibpath_var
=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath
=yes
10848 hardcode_into_libs
=yes
10849 # ldd complains unless libraries are executable
10850 postinstall_cmds
='chmod +x $lib'
10855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10856 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10857 shlibpath_var
=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath
=yes
10859 if test "$with_gnu_ld" = yes; then
10867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10868 soname_spec
='${libname}${release}${shared_ext}$major'
10869 shlibpath_var
=LD_LIBRARY_PATH
10870 case $host_vendor in
10872 shlibpath_overrides_runpath
=no
10874 runpath_var
=LD_RUN_PATH
10882 shlibpath_overrides_runpath
=no
10883 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10889 if test -d /usr
/nec
;then
10891 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10892 soname_spec
='$libname${shared_ext}.$major'
10893 shlibpath_var
=LD_LIBRARY_PATH
10897 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10898 version_type
=freebsd-elf
10901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10902 soname_spec
='${libname}${release}${shared_ext}$major'
10903 shlibpath_var
=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath
=yes
10905 hardcode_into_libs
=yes
10906 if test "$with_gnu_ld" = yes; then
10907 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10909 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10912 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10916 sys_lib_dlsearch_path_spec
='/usr/lib'
10920 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 shlibpath_var
=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath
=no
10927 hardcode_into_libs
=yes
10932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10933 soname_spec
='${libname}${release}${shared_ext}$major'
10934 shlibpath_var
=LD_LIBRARY_PATH
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10942 $as_echo "$dynamic_linker" >&6; }
10943 test "$dynamic_linker" = no
&& can_build_shared
=no
10945 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10946 if test "$GCC" = yes; then
10947 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10950 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10951 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10953 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10954 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11049 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11051 if test -n "$hardcode_libdir_flag_spec" ||
11052 test -n "$runpath_var" ||
11053 test "X$hardcode_automatic" = "Xyes" ; then
11055 # We can hardcode non-existent directories.
11056 if test "$hardcode_direct" != no
&&
11057 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11058 # have to relink, otherwise we might link with an installed library
11059 # when we should be linking with a yet-to-be-installed one
11060 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11061 test "$hardcode_minus_L" != no
; then
11062 # Linking always hardcodes the temporary library directory.
11063 hardcode_action
=relink
11065 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11066 hardcode_action
=immediate
11069 # We cannot hardcode anything, or else we can only hardcode existing
11071 hardcode_action
=unsupported
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11074 $as_echo "$hardcode_action" >&6; }
11076 if test "$hardcode_action" = relink ||
11077 test "$inherit_rpath" = yes; then
11078 # Fast installation is not supported
11079 enable_fast_install
=no
11080 elif test "$shlibpath_overrides_runpath" = yes ||
11081 test "$enable_shared" = no
; then
11082 # Fast installation is not necessary
11083 enable_fast_install
=needless
11091 if test "x$enable_dlopen" != xyes
; then
11092 enable_dlopen
=unknown
11093 enable_dlopen_self
=unknown
11094 enable_dlopen_self_static
=unknown
11101 lt_cv_dlopen
="load_add_on"
11103 lt_cv_dlopen_self
=yes
11106 mingw
* | pw32
* | cegcc
*)
11107 lt_cv_dlopen
="LoadLibrary"
11112 lt_cv_dlopen
="dlopen"
11117 # if libdl is installed we need to link against it
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11119 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11120 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
11123 ac_check_lib_save_LIBS
=$LIBS
11125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11128 /* Override any GCC internal prototype to avoid an error.
11129 Use char because int might match the return type of a GCC
11130 builtin and then its argument prototype would still apply. */
11143 if ac_fn_c_try_link
"$LINENO"; then :
11144 ac_cv_lib_dl_dlopen
=yes
11146 ac_cv_lib_dl_dlopen
=no
11148 rm -f core conftest.err conftest.
$ac_objext \
11149 conftest
$ac_exeext conftest.
$ac_ext
11150 LIBS
=$ac_check_lib_save_LIBS
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11153 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11154 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11155 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11158 lt_cv_dlopen
="dyld"
11160 lt_cv_dlopen_self
=yes
11167 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11168 if test "x$ac_cv_func_shl_load" = x
""yes; then :
11169 lt_cv_dlopen
="shl_load"
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11172 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11173 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11176 ac_check_lib_save_LIBS
=$LIBS
11178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11191 return shl_load ();
11196 if ac_fn_c_try_link
"$LINENO"; then :
11197 ac_cv_lib_dld_shl_load
=yes
11199 ac_cv_lib_dld_shl_load
=no
11201 rm -f core conftest.err conftest.
$ac_objext \
11202 conftest
$ac_exeext conftest.
$ac_ext
11203 LIBS
=$ac_check_lib_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11206 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11207 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
11208 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11210 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11211 if test "x$ac_cv_func_dlopen" = x
""yes; then :
11212 lt_cv_dlopen
="dlopen"
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11215 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11216 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11219 ac_check_lib_save_LIBS
=$LIBS
11221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11239 if ac_fn_c_try_link
"$LINENO"; then :
11240 ac_cv_lib_dl_dlopen
=yes
11242 ac_cv_lib_dl_dlopen
=no
11244 rm -f core conftest.err conftest.
$ac_objext \
11245 conftest
$ac_exeext conftest.
$ac_ext
11246 LIBS
=$ac_check_lib_save_LIBS
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11249 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11250 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
11251 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11254 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11255 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
11258 ac_check_lib_save_LIBS
=$LIBS
11259 LIBS
="-lsvld $LIBS"
11260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11278 if ac_fn_c_try_link
"$LINENO"; then :
11279 ac_cv_lib_svld_dlopen
=yes
11281 ac_cv_lib_svld_dlopen
=no
11283 rm -f core conftest.err conftest.
$ac_objext \
11284 conftest
$ac_exeext conftest.
$ac_ext
11285 LIBS
=$ac_check_lib_save_LIBS
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11288 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11289 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11290 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11293 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11294 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11297 ac_check_lib_save_LIBS
=$LIBS
11299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11302 /* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11312 return dld_link ();
11317 if ac_fn_c_try_link
"$LINENO"; then :
11318 ac_cv_lib_dld_dld_link
=yes
11320 ac_cv_lib_dld_dld_link
=no
11322 rm -f core conftest.err conftest.
$ac_objext \
11323 conftest
$ac_exeext conftest.
$ac_ext
11324 LIBS
=$ac_check_lib_save_LIBS
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11327 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11328 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11329 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11350 if test "x$lt_cv_dlopen" != xno
; then
11356 case $lt_cv_dlopen in
11358 save_CPPFLAGS
="$CPPFLAGS"
11359 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11361 save_LDFLAGS
="$LDFLAGS"
11362 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11365 LIBS
="$lt_cv_dlopen_libs $LIBS"
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11368 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11369 if test "${lt_cv_dlopen_self+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11372 if test "$cross_compiling" = yes; then :
11373 lt_cv_dlopen_self
=cross
11375 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11376 lt_status
=$lt_dlunknown
11377 cat > conftest.
$ac_ext <<_LT_EOF
11378 #line 11378 "configure"
11379 #include "confdefs.h"
11388 # define LT_DLGLOBAL RTLD_GLOBAL
11391 # define LT_DLGLOBAL DL_GLOBAL
11393 # define LT_DLGLOBAL 0
11397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11398 find out it does not work in some platform. */
11399 #ifndef LT_DLLAZY_OR_NOW
11401 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11404 # define LT_DLLAZY_OR_NOW DL_LAZY
11407 # define LT_DLLAZY_OR_NOW RTLD_NOW
11410 # define LT_DLLAZY_OR_NOW DL_NOW
11412 # define LT_DLLAZY_OR_NOW 0
11419 /* When -fvisbility=hidden is used, assume the code has been annotated
11420 correspondingly for the symbols needed. */
11421 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11422 void fnord () __attribute__((visibility("default")));
11425 void fnord () { int i=42; }
11428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11429 int status = $lt_dlunknown;
11433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11436 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11437 else puts (dlerror ());
11439 /* dlclose (self); */
11447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11448 (eval $ac_link) 2>&5
11450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11451 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11452 (.
/conftest
; exit; ) >&5 2>/dev
/null
11454 case x
$lt_status in
11455 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11456 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11457 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11460 # compilation failed
11461 lt_cv_dlopen_self
=no
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11469 $as_echo "$lt_cv_dlopen_self" >&6; }
11471 if test "x$lt_cv_dlopen_self" = xyes
; then
11472 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11474 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11475 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11476 $as_echo_n "(cached) " >&6
11478 if test "$cross_compiling" = yes; then :
11479 lt_cv_dlopen_self_static
=cross
11481 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11482 lt_status
=$lt_dlunknown
11483 cat > conftest.
$ac_ext <<_LT_EOF
11484 #line 11484 "configure"
11485 #include "confdefs.h"
11494 # define LT_DLGLOBAL RTLD_GLOBAL
11497 # define LT_DLGLOBAL DL_GLOBAL
11499 # define LT_DLGLOBAL 0
11503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11504 find out it does not work in some platform. */
11505 #ifndef LT_DLLAZY_OR_NOW
11507 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11510 # define LT_DLLAZY_OR_NOW DL_LAZY
11513 # define LT_DLLAZY_OR_NOW RTLD_NOW
11516 # define LT_DLLAZY_OR_NOW DL_NOW
11518 # define LT_DLLAZY_OR_NOW 0
11525 /* When -fvisbility=hidden is used, assume the code has been annotated
11526 correspondingly for the symbols needed. */
11527 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11528 void fnord () __attribute__((visibility("default")));
11531 void fnord () { int i=42; }
11534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11535 int status = $lt_dlunknown;
11539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11542 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11543 else puts (dlerror ());
11545 /* dlclose (self); */
11553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11554 (eval $ac_link) 2>&5
11556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11557 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11558 (.
/conftest
; exit; ) >&5 2>/dev
/null
11560 case x
$lt_status in
11561 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11562 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11563 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11566 # compilation failed
11567 lt_cv_dlopen_self_static
=no
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11575 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11578 CPPFLAGS
="$save_CPPFLAGS"
11579 LDFLAGS
="$save_LDFLAGS"
11584 case $lt_cv_dlopen_self in
11585 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11586 *) enable_dlopen_self
=unknown
;;
11589 case $lt_cv_dlopen_self_static in
11590 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11591 *) enable_dlopen_self_static
=unknown
;;
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11614 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11615 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11616 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11617 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11619 $as_echo "yes" >&6; }
11621 # FIXME - insert some real tests, host_os isn't really good enough
11624 if test -n "$STRIP" ; then
11625 striplib
="$STRIP -x"
11626 old_striplib
="$STRIP -S"
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628 $as_echo "yes" >&6; }
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11652 # Report which library types will actually be built
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11654 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11656 $as_echo "$can_build_shared" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11659 $as_echo_n "checking whether to build shared libraries... " >&6; }
11660 test "$can_build_shared" = "no" && enable_shared
=no
11662 # On AIX, shared libraries and static libraries use the same namespace, and
11663 # are all built from PIC.
11666 test "$enable_shared" = yes && enable_static
=no
11667 if test -n "$RANLIB"; then
11668 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11669 postinstall_cmds
='$RANLIB $lib'
11674 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11675 test "$enable_shared" = yes && enable_static
=no
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11680 $as_echo "$enable_shared" >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11683 $as_echo_n "checking whether to build static libraries... " >&6; }
11684 # Make sure either enable_shared or enable_static is yes.
11685 test "$enable_shared" = yes || enable_static
=yes
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11687 $as_echo "$enable_static" >&6; }
11694 ac_cpp
='$CPP $CPPFLAGS'
11695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11701 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11702 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11703 (test "X$CXX" != "Xg++"))) ; then
11705 ac_cpp
='$CXXCPP $CPPFLAGS'
11706 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11710 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11711 if test -z "$CXXCPP"; then
11712 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11713 $as_echo_n "(cached) " >&6
11715 # Double quotes because CXXCPP needs to be expanded
11716 for CXXCPP
in "$CXX -E" "/lib/cpp"
11718 ac_preproc_ok
=false
11719 for ac_cxx_preproc_warn_flag
in '' yes
11721 # Use a header file that comes with gcc, so configuring glibc
11722 # with a fresh cross-compiler works.
11723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 # <limits.h> exists even on freestanding compilers.
11725 # On the NeXT, cc -E runs the code through the compiler's parser,
11726 # not just through cpp. "Syntax error" is here to catch this case.
11727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11730 # include <limits.h>
11732 # include <assert.h>
11736 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11739 # Broken: fails on valid input.
11742 rm -f conftest.err conftest.
$ac_ext
11744 # OK, works on sane cases. Now check whether nonexistent headers
11745 # can be detected and how.
11746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11748 #include <ac_nonexistent.h>
11750 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11751 # Broken: success on invalid input.
11754 # Passes both tests.
11758 rm -f conftest.err conftest.
$ac_ext
11761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11762 rm -f conftest.err conftest.
$ac_ext
11763 if $ac_preproc_ok; then :
11768 ac_cv_prog_CXXCPP
=$CXXCPP
11771 CXXCPP
=$ac_cv_prog_CXXCPP
11773 ac_cv_prog_CXXCPP
=$CXXCPP
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11776 $as_echo "$CXXCPP" >&6; }
11777 ac_preproc_ok
=false
11778 for ac_cxx_preproc_warn_flag
in '' yes
11780 # Use a header file that comes with gcc, so configuring glibc
11781 # with a fresh cross-compiler works.
11782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 # <limits.h> exists even on freestanding compilers.
11784 # On the NeXT, cc -E runs the code through the compiler's parser,
11785 # not just through cpp. "Syntax error" is here to catch this case.
11786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h. */
11789 # include <limits.h>
11791 # include <assert.h>
11795 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11798 # Broken: fails on valid input.
11801 rm -f conftest.err conftest.
$ac_ext
11803 # OK, works on sane cases. Now check whether nonexistent headers
11804 # can be detected and how.
11805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11807 #include <ac_nonexistent.h>
11809 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11810 # Broken: success on invalid input.
11813 # Passes both tests.
11817 rm -f conftest.err conftest.
$ac_ext
11820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11821 rm -f conftest.err conftest.
$ac_ext
11822 if $ac_preproc_ok; then :
11825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11827 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
11828 See \`config.log' for more details." "$LINENO" 5; }
11832 ac_cpp
='$CPP $CPPFLAGS'
11833 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11834 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11835 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11838 _lt_caught_CXX_error
=yes
11842 ac_cpp
='$CXXCPP $CPPFLAGS'
11843 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11844 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11845 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11847 archive_cmds_need_lc_CXX
=no
11848 allow_undefined_flag_CXX
=
11849 always_export_symbols_CXX
=no
11850 archive_expsym_cmds_CXX
=
11851 compiler_needs_object_CXX
=no
11852 export_dynamic_flag_spec_CXX
=
11853 hardcode_direct_CXX
=no
11854 hardcode_direct_absolute_CXX
=no
11855 hardcode_libdir_flag_spec_CXX
=
11856 hardcode_libdir_flag_spec_ld_CXX
=
11857 hardcode_libdir_separator_CXX
=
11858 hardcode_minus_L_CXX
=no
11859 hardcode_shlibpath_var_CXX
=unsupported
11860 hardcode_automatic_CXX
=no
11861 inherit_rpath_CXX
=no
11863 module_expsym_cmds_CXX
=
11864 link_all_deplibs_CXX
=unknown
11865 old_archive_cmds_CXX
=$old_archive_cmds
11866 reload_flag_CXX
=$reload_flag
11867 reload_cmds_CXX
=$reload_cmds
11868 no_undefined_flag_CXX
=
11869 whole_archive_flag_spec_CXX
=
11870 enable_shared_with_static_runtimes_CXX
=no
11872 # Source file extension for C++ test sources.
11875 # Object file extension for compiled C++ test sources.
11879 # No sense in running all these tests if we already determined that
11880 # the CXX compiler isn't working. Some variables (like enable_shared)
11881 # are currently assumed to apply to all compilers on this platform,
11882 # and will be corrupted by setting them based on a non-working compiler.
11883 if test "$_lt_caught_CXX_error" != yes; then
11884 # Code to be used in simple compile tests
11885 lt_simple_compile_test_code
="int some_variable = 0;"
11887 # Code to be used in simple link tests
11888 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
11890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11897 # If no C compiler was specified, use CC.
11900 # If no C compiler flags were specified, use CFLAGS.
11901 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11903 # Allow CC to be a program name with arguments.
11907 # save warnings/boilerplate of simple test code
11908 ac_outfile
=conftest.
$ac_objext
11909 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11910 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11911 _lt_compiler_boilerplate
=`cat conftest.err`
11914 ac_outfile
=conftest.
$ac_objext
11915 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11916 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11917 _lt_linker_boilerplate
=`cat conftest.err`
11921 # Allow CC to be a program name with arguments.
11926 lt_save_with_gnu_ld
=$with_gnu_ld
11927 lt_save_path_LD
=$lt_cv_path_LD
11928 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11929 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
11931 $as_unset lt_cv_prog_gnu_ld
11933 if test -n "${lt_cv_path_LDCXX+set}"; then
11934 lt_cv_path_LD
=$lt_cv_path_LDCXX
11936 $as_unset lt_cv_path_LD
11938 test -z "${LDCXX+set}" || LD
=$LDCXX
11942 for cc_temp
in $compiler""; do
11944 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11945 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11950 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11953 if test -n "$compiler"; then
11954 # We don't want -fno-exception when compiling C++ code, so set the
11955 # no_builtin_flag separately
11956 if test "$GXX" = yes; then
11957 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
11959 lt_prog_compiler_no_builtin_flag_CXX
=
11962 if test "$GXX" = yes; then
11963 # Set up default GNU C++ configuration
11967 # Check whether --with-gnu-ld was given.
11968 if test "${with_gnu_ld+set}" = set; then :
11969 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11975 if test "$GCC" = yes; then
11976 # Check if gcc -print-prog-name=ld gives a path.
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11978 $as_echo_n "checking for ld used by $CC... " >&6; }
11981 # gcc leaves a trailing carriage return which upsets mingw
11982 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11984 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11987 # Accept absolute paths.
11989 re_direlt
='/[^/][^/]*/\.\./'
11990 # Canonicalize the pathname of ld
11991 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11992 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11993 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11995 test -z "$LD" && LD
="$ac_prog"
11998 # If it fails, then pretend we aren't using GCC.
12002 # If it is relative, then search for the first ld in PATH.
12003 with_gnu_ld
=unknown
12006 elif test "$with_gnu_ld" = yes; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12008 $as_echo_n "checking for GNU ld... " >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12011 $as_echo_n "checking for non-GNU ld... " >&6; }
12013 if test "${lt_cv_path_LD+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12016 if test -z "$LD"; then
12017 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12018 for ac_dir
in $PATH; do
12020 test -z "$ac_dir" && ac_dir
=.
12021 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12022 lt_cv_path_LD
="$ac_dir/$ac_prog"
12023 # Check to see if the program is GNU ld. I'd rather use --version,
12024 # but apparently some variants of GNU ld only accept -v.
12025 # Break only if it was the GNU/non-GNU ld that we prefer.
12026 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12027 *GNU
* |
*'with BFD'*)
12028 test "$with_gnu_ld" != no
&& break
12031 test "$with_gnu_ld" != yes && break
12038 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12042 LD
="$lt_cv_path_LD"
12043 if test -n "$LD"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12045 $as_echo "$LD" >&6; }
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12050 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12052 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12053 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12056 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12057 case `$LD -v 2>&1 </dev/null` in
12058 *GNU
* |
*'with BFD'*)
12059 lt_cv_prog_gnu_ld
=yes
12062 lt_cv_prog_gnu_ld
=no
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12067 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12068 with_gnu_ld
=$lt_cv_prog_gnu_ld
12076 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12077 # archiving commands below assume that GNU ld is being used.
12078 if test "$with_gnu_ld" = yes; then
12079 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12082 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12083 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12085 # If archive_cmds runs LD, not CC, wlarc should be empty
12086 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12087 # investigate it a little bit more. (MM)
12090 # ancient GNU ld didn't support --whole-archive et. al.
12091 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12092 $GREP 'no-whole-archive' > /dev
/null
; then
12093 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12095 whole_archive_flag_spec_CXX
=
12101 # A generic and very simple default shared library creation
12102 # command for GNU C++ for the case where it uses the native
12103 # linker, instead of GNU ld. If possible, this setting should
12104 # overridden to take advantage of the native linker features on
12105 # the platform it is being used on.
12106 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12109 # Commands to make compiler produce verbose output that lists
12110 # what "hidden" libraries, object files and flags are used when
12111 # linking a shared library.
12112 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12120 # PORTME: fill in a description of your system's C++ link characteristics
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12126 # FIXME: insert proper C++ library support
12130 if test "$host_cpu" = ia64
; then
12131 # On IA64, the linker does run time linking by default, so we don't
12132 # have to do anything special.
12133 aix_use_runtimelinking
=no
12134 exp_sym_flag
='-Bexport'
12137 aix_use_runtimelinking
=no
12139 # Test if we are trying to use run time linking or normal
12140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12141 # need to do runtime linking.
12142 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12143 for ld_flag
in $LDFLAGS; do
12146 aix_use_runtimelinking
=yes
12154 exp_sym_flag
='-bexport'
12155 no_entry_flag
='-bnoentry'
12158 # When large executables or shared objects are built, AIX ld can
12159 # have problems creating the table of contents. If linking a library
12160 # or program results in "error TOC overflow" add -mminimal-toc to
12161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12164 archive_cmds_CXX
=''
12165 hardcode_direct_CXX
=yes
12166 hardcode_direct_absolute_CXX
=yes
12167 hardcode_libdir_separator_CXX
=':'
12168 link_all_deplibs_CXX
=yes
12169 file_list_spec_CXX
='${wl}-f,'
12171 if test "$GXX" = yes; then
12172 case $host_os in aix4.
[012]|aix4.
[012].
*)
12173 # We only want to do this on AIX 4.2 and lower, the check
12174 # below for broken collect2 doesn't work under 4.3+
12175 collect2name
=`${CC} -print-prog-name=collect2`
12176 if test -f "$collect2name" &&
12177 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12179 # We have reworked collect2
12182 # We have old collect2
12183 hardcode_direct_CXX
=unsupported
12184 # It fails to find uninstalled libraries when the uninstalled
12185 # path is not listed in the libpath. Setting hardcode_minus_L
12186 # to unsupported forces relinking
12187 hardcode_minus_L_CXX
=yes
12188 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12189 hardcode_libdir_separator_CXX
=
12192 shared_flag
='-shared'
12193 if test "$aix_use_runtimelinking" = yes; then
12194 shared_flag
="$shared_flag "'${wl}-G'
12198 if test "$host_cpu" = ia64
; then
12199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12200 # chokes on -Wl,-G. The following line is correct:
12203 if test "$aix_use_runtimelinking" = yes; then
12204 shared_flag
='${wl}-G'
12206 shared_flag
='${wl}-bM:SRE'
12211 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12212 # It seems that -bexpall does not export symbols beginning with
12213 # underscore (_), so it is better to generate a list of symbols to
12215 always_export_symbols_CXX
=yes
12216 if test "$aix_use_runtimelinking" = yes; then
12217 # Warning - without using the other runtime loading flags (-brtl),
12218 # -berok will link without error, but may produce a broken library.
12219 allow_undefined_flag_CXX
='-berok'
12220 # Determine the default libpath from the value encoded in an empty
12222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12233 if ac_fn_cxx_try_link
"$LINENO"; then :
12235 lt_aix_libpath_sed
='
12236 /Import File Strings/,/^$/ {
12242 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12243 # Check for a 64-bit object if we didn't find anything.
12244 if test -z "$aix_libpath"; then
12245 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12248 rm -f core conftest.err conftest.
$ac_objext \
12249 conftest
$ac_exeext conftest.
$ac_ext
12250 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12252 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12254 archive_expsym_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12256 if test "$host_cpu" = ia64
; then
12257 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12258 allow_undefined_flag_CXX
="-z nodefs"
12259 archive_expsym_cmds_CXX
="\$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"
12261 # Determine the default libpath from the value encoded in an
12262 # empty executable.
12263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12274 if ac_fn_cxx_try_link
"$LINENO"; then :
12276 lt_aix_libpath_sed
='
12277 /Import File Strings/,/^$/ {
12283 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12284 # Check for a 64-bit object if we didn't find anything.
12285 if test -z "$aix_libpath"; then
12286 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12289 rm -f core conftest.err conftest.
$ac_objext \
12290 conftest
$ac_exeext conftest.
$ac_ext
12291 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12293 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12294 # Warning - without using the other run time loading flags,
12295 # -berok will link without error, but may produce a broken library.
12296 no_undefined_flag_CXX
=' ${wl}-bernotok'
12297 allow_undefined_flag_CXX
=' ${wl}-berok'
12298 if test "$with_gnu_ld" = yes; then
12299 # We only use this code for GNU lds that support --whole-archive.
12300 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12302 # Exported symbols can be pulled into shared objects from archives
12303 whole_archive_flag_spec_CXX
='$convenience'
12305 archive_cmds_need_lc_CXX
=yes
12306 # This is similar to how AIX traditionally builds its shared
12308 archive_expsym_cmds_CXX
="\$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'
12314 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12315 allow_undefined_flag_CXX
=unsupported
12316 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12317 # support --undefined. This deserves some investigation. FIXME
12318 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12325 case $cc_basename in
12327 # FIXME: insert proper C++ library support
12333 cygwin
* | mingw
* | pw32
* | cegcc
*)
12334 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12335 # as there is no search path for DLLs.
12336 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12337 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12338 allow_undefined_flag_CXX
=unsupported
12339 always_export_symbols_CXX
=no
12340 enable_shared_with_static_runtimes_CXX
=yes
12342 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12343 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12344 # If the export-symbols file already is a .def file (1st line
12345 # is EXPORTS), use it as is; otherwise, prepend...
12346 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12347 cp $export_symbols $output_objdir/$soname.def;
12349 echo EXPORTS > $output_objdir/$soname.def;
12350 cat $export_symbols >> $output_objdir/$soname.def;
12352 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12357 darwin
* | rhapsody
*)
12360 archive_cmds_need_lc_CXX
=no
12361 hardcode_direct_CXX
=no
12362 hardcode_automatic_CXX
=yes
12363 hardcode_shlibpath_var_CXX
=unsupported
12364 if test "$lt_cv_ld_force_load" = "yes"; then
12365 whole_archive_flag_spec_CXX
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12367 whole_archive_flag_spec_CXX
=''
12369 link_all_deplibs_CXX
=yes
12370 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12371 case $cc_basename in
12372 ifort
*) _lt_dar_can_shared
=yes ;;
12373 *) _lt_dar_can_shared
=$GCC ;;
12375 if test "$_lt_dar_can_shared" = "yes"; then
12376 output_verbose_link_cmd
=func_echo_all
12377 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12378 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12379 archive_expsym_cmds_CXX
="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}"
12380 module_expsym_cmds_CXX
="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}"
12381 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12382 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12383 archive_expsym_cmds_CXX
="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12393 case $cc_basename in
12395 # FIXME: insert proper C++ library support
12399 # Green Hills C++ Compiler
12400 # FIXME: insert proper C++ library support
12404 # FIXME: insert proper C++ library support
12411 # C++ shared libraries reported to be fairly broken before
12417 archive_cmds_need_lc_CXX
=no
12420 freebsd
* | dragonfly
*)
12421 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12430 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12431 link_all_deplibs_CXX
=yes
12435 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12436 hardcode_libdir_separator_CXX
=:
12437 export_dynamic_flag_spec_CXX
='${wl}-E'
12438 hardcode_direct_CXX
=yes
12439 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12440 # but as the default
12441 # location of the library.
12443 case $cc_basename in
12445 # FIXME: insert proper C++ library support
12449 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12450 # Commands to make compiler produce verbose output that lists
12451 # what "hidden" libraries, object files and flags are used when
12452 # linking a shared library.
12454 # There doesn't appear to be a way to prevent this compiler from
12455 # explicitly linking system object files so we need to strip them
12456 # from the output so that they don't get included in the library
12458 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12461 if test "$GXX" = yes; then
12462 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12464 # FIXME: insert proper C++ library support
12472 if test $with_gnu_ld = no
; then
12473 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12474 hardcode_libdir_separator_CXX
=:
12480 export_dynamic_flag_spec_CXX
='${wl}-E'
12486 hardcode_direct_CXX
=no
12487 hardcode_shlibpath_var_CXX
=no
12490 hardcode_direct_CXX
=yes
12491 hardcode_direct_absolute_CXX
=yes
12492 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12493 # but as the default
12494 # location of the library.
12498 case $cc_basename in
12500 # FIXME: insert proper C++ library support
12506 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12509 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12512 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12515 # Commands to make compiler produce verbose output that lists
12516 # what "hidden" libraries, object files and flags are used when
12517 # linking a shared library.
12519 # There doesn't appear to be a way to prevent this compiler from
12520 # explicitly linking system object files so we need to strip them
12521 # from the output so that they don't get included in the library
12523 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12526 if test "$GXX" = yes; then
12527 if test $with_gnu_ld = no
; then
12530 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12533 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12536 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12541 # FIXME: insert proper C++ library support
12549 hardcode_direct_CXX
=no
12550 hardcode_shlibpath_var_CXX
=no
12551 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12552 export_dynamic_flag_spec_CXX
='${wl}-E'
12553 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12554 # Instead, shared libraries are loaded at an image base (0x10000000 by
12555 # default) and relocated if they conflict, which is a slow very memory
12556 # consuming and fragmenting process. To avoid this, we pick a random,
12557 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12558 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12559 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12560 archive_expsym_cmds_CXX
='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'
12563 case $cc_basename in
12566 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12568 # Archives containing C++ object files must be created using
12569 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12570 # necessary to make sure instantiated templates are included
12572 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12575 if test "$GXX" = yes; then
12576 if test "$with_gnu_ld" = no
; then
12577 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12579 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12582 link_all_deplibs_CXX
=yes
12585 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12586 hardcode_libdir_separator_CXX
=:
12587 inherit_rpath_CXX
=yes
12590 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12591 case $cc_basename in
12593 # Kuck and Associates, Inc. (KAI) C++ Compiler
12595 # KCC will only create a shared library if the output file
12596 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12597 # to its proper name (with version) after linking.
12598 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12599 archive_expsym_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12600 # Commands to make compiler produce verbose output that lists
12601 # what "hidden" libraries, object files and flags are used when
12602 # linking a shared library.
12604 # There doesn't appear to be a way to prevent this compiler from
12605 # explicitly linking system object files so we need to strip them
12606 # from the output so that they don't get included in the library
12608 output_verbose_link_cmd
='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12610 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12611 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12613 # Archives containing C++ object files must be created using
12614 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12615 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12620 # version 8.0 and above of icpc choke on multiply defined symbols
12621 # if we add $predep_objects and $postdep_objects, however 7.1 and
12622 # earlier do not add the objects themselves.
12623 case `$CC -V 2>&1` in
12625 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12626 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12628 *) # Version 8.0 or newer
12631 ia64
*) tmp_idyn
=' -i_dynamic';;
12633 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12634 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12637 archive_cmds_need_lc_CXX
=no
12638 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12639 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12640 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12643 # Portland Group C++ compiler
12645 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12646 prelink_cmds_CXX
='tpldir=Template.dir~
12648 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12649 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12650 old_archive_cmds_CXX
='tpldir=Template.dir~
12652 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12653 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12655 archive_cmds_CXX
='tpldir=Template.dir~
12657 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12658 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12659 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12661 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12662 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12664 *) # Version 6 and above use weak symbols
12665 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12666 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12670 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12671 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12672 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12676 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12679 runpath_var
=LD_RUN_PATH
12680 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12681 hardcode_libdir_separator_CXX
=:
12683 # Commands to make compiler produce verbose output that lists
12684 # what "hidden" libraries, object files and flags are used when
12685 # linking a shared library.
12687 # There doesn't appear to be a way to prevent this compiler from
12688 # explicitly linking system object files so we need to strip them
12689 # from the output so that they don't get included in the library
12691 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12693 xl
* | mpixl
* | bgxl
*)
12694 # IBM XL 8.0 on PPC, with GNU ld
12695 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12696 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12697 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12698 if test "x$supports_anon_versioning" = xyes
; then
12699 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12701 echo "local: *; };" >> $output_objdir/$libname.ver~
12702 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12706 case `$CC -V 2>&1 | sed 5q` in
12709 no_undefined_flag_CXX
=' -zdefs'
12710 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12711 archive_expsym_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12712 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12713 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12714 compiler_needs_object_CXX
=yes
12716 # Not sure whether something based on
12717 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12719 output_verbose_link_cmd
='func_echo_all'
12721 # Archives containing C++ object files must be created using
12722 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12723 # necessary to make sure instantiated templates are included
12725 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12733 # FIXME: insert proper C++ library support
12738 # FIXME: insert proper C++ library support
12743 case $cc_basename in
12745 # FIXME: insert proper C++ library support
12749 # FIXME: insert proper C++ library support
12756 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12757 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12759 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12760 hardcode_direct_CXX
=yes
12761 hardcode_shlibpath_var_CXX
=no
12763 # Workaround some broken pre-1.5 toolchains
12764 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12772 # C++ shared libraries are fairly broken
12777 if test -f /usr
/libexec
/ld.so
; then
12778 hardcode_direct_CXX
=yes
12779 hardcode_shlibpath_var_CXX
=no
12780 hardcode_direct_absolute_CXX
=yes
12781 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12782 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12783 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12784 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12785 export_dynamic_flag_spec_CXX
='${wl}-E'
12786 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12788 output_verbose_link_cmd
=func_echo_all
12794 osf3
* | osf4
* | osf5
*)
12795 case $cc_basename in
12797 # Kuck and Associates, Inc. (KAI) C++ Compiler
12799 # KCC will only create a shared library if the output file
12800 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12801 # to its proper name (with version) after linking.
12802 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12804 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12805 hardcode_libdir_separator_CXX
=:
12807 # Archives containing C++ object files must be created using
12808 # the KAI C++ compiler.
12810 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12811 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12815 # Rational C++ 2.4.1
12816 # FIXME: insert proper C++ library support
12822 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12823 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12824 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12827 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12828 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12829 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12830 echo "-hidden">> $lib.exp~
12831 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12833 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12837 hardcode_libdir_separator_CXX
=:
12839 # Commands to make compiler produce verbose output that lists
12840 # what "hidden" libraries, object files and flags are used when
12841 # linking a shared library.
12843 # There doesn't appear to be a way to prevent this compiler from
12844 # explicitly linking system object files so we need to strip them
12845 # from the output so that they don't get included in the library
12847 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12850 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12851 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12854 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12857 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12861 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12862 hardcode_libdir_separator_CXX
=:
12864 # Commands to make compiler produce verbose output that lists
12865 # what "hidden" libraries, object files and flags are used when
12866 # linking a shared library.
12867 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12870 # FIXME: insert proper C++ library support
12878 # FIXME: insert proper C++ library support
12883 case $cc_basename in
12886 # FIXME: insert proper C++ library support
12891 # FIXME: insert proper C++ library support
12895 # FIXME: insert proper C++ library support
12902 case $cc_basename in
12904 # Sun C++ 4.2, 5.x and Centerline C++
12905 archive_cmds_need_lc_CXX
=yes
12906 no_undefined_flag_CXX
=' -zdefs'
12907 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12908 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12909 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12911 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12912 hardcode_shlibpath_var_CXX
=no
12914 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12916 # The compiler driver will combine and reorder linker options,
12917 # but understands `-z linker_flag'.
12918 # Supported since Solaris 2.6 (maybe 2.5.1?)
12919 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12922 link_all_deplibs_CXX
=yes
12924 output_verbose_link_cmd
='func_echo_all'
12926 # Archives containing C++ object files must be created using
12927 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12928 # necessary to make sure instantiated templates are included
12930 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12933 # Green Hills C++ Compiler
12934 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12936 # The C++ compiler must be used to create the archive.
12937 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12940 # GNU C++ compiler with Solaris linker
12941 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12942 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12943 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
12944 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12945 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12946 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12948 # Commands to make compiler produce verbose output that lists
12949 # what "hidden" libraries, object files and flags are used when
12950 # linking a shared library.
12951 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12953 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12955 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12956 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12957 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12959 # Commands to make compiler produce verbose output that lists
12960 # what "hidden" libraries, object files and flags are used when
12961 # linking a shared library.
12962 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12965 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12967 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12969 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12977 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12978 no_undefined_flag_CXX
='${wl}-z,text'
12979 archive_cmds_need_lc_CXX
=no
12980 hardcode_shlibpath_var_CXX
=no
12981 runpath_var
='LD_RUN_PATH'
12983 case $cc_basename in
12985 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12986 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12989 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12990 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12995 sysv5
* | sco3.2v5
* | sco5v6
*)
12996 # Note: We can NOT use -z defs as we might desire, because we do not
12997 # link with -lc, and that would cause any symbols used from libc to
12998 # always be unresolved, which means just about no library would
12999 # ever link correctly. If we're not using GNU ld we use -z text
13000 # though, which does catch some bad symbols but isn't as heavy-handed
13002 no_undefined_flag_CXX
='${wl}-z,text'
13003 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13004 archive_cmds_need_lc_CXX
=no
13005 hardcode_shlibpath_var_CXX
=no
13006 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13007 hardcode_libdir_separator_CXX
=':'
13008 link_all_deplibs_CXX
=yes
13009 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13010 runpath_var
='LD_RUN_PATH'
13012 case $cc_basename in
13014 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13015 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13016 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13017 '"$old_archive_cmds_CXX"
13018 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13019 '"$reload_cmds_CXX"
13022 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13023 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13029 case $cc_basename in
13031 # NonStop-UX NCC 3.20
13032 # FIXME: insert proper C++ library support
13036 # FIXME: insert proper C++ library support
13043 # FIXME: insert proper C++ library support
13048 # FIXME: insert proper C++ library support
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13054 $as_echo "$ld_shlibs_CXX" >&6; }
13055 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13061 ## There is no encapsulation within the following macros, do not change
13062 ## the running order or otherwise move them around unless you know exactly
13063 ## what you are doing...
13064 # Dependencies to place before and after the object being linked:
13065 predep_objects_CXX
=
13066 postdep_objects_CXX
=
13069 compiler_lib_search_path_CXX
=
13071 cat > conftest.
$ac_ext <<_LT_EOF
13075 Foo (void) { a = 0; }
13081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13082 (eval $ac_compile) 2>&5
13084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13085 test $ac_status = 0; }; then
13086 # Parse the compiler output and extract the necessary
13087 # objects, libraries and library flags.
13089 # Sentinel used to keep track of whether or not we are before
13090 # the conftest object file.
13091 pre_test_object_deps_done
=no
13093 for p
in `eval "$output_verbose_link_cmd"`; do
13097 # Some compilers place space between "-{L,R}" and the path.
13098 # Remove the space.
13099 if test $p = "-L" ||
13100 test $p = "-R"; then
13107 if test "$pre_test_object_deps_done" = no
; then
13110 # Internal compiler library paths should come after those
13111 # provided the user. The postdeps already come after the
13112 # user supplied libs so there is no need to process them.
13113 if test -z "$compiler_lib_search_path_CXX"; then
13114 compiler_lib_search_path_CXX
="${prev}${p}"
13116 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13119 # The "-l" case would never come before the object being
13120 # linked, so don't bother handling this case.
13123 if test -z "$postdeps_CXX"; then
13124 postdeps_CXX
="${prev}${p}"
13126 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13132 # This assumes that the test object file only shows up
13133 # once in the compiler output.
13134 if test "$p" = "conftest.$objext"; then
13135 pre_test_object_deps_done
=yes
13139 if test "$pre_test_object_deps_done" = no
; then
13140 if test -z "$predep_objects_CXX"; then
13141 predep_objects_CXX
="$p"
13143 predep_objects_CXX
="$predep_objects_CXX $p"
13146 if test -z "$postdep_objects_CXX"; then
13147 postdep_objects_CXX
="$p"
13149 postdep_objects_CXX
="$postdep_objects_CXX $p"
13154 *) ;; # Ignore the rest.
13162 echo "libtool.m4: error: problem compiling CXX test program"
13165 $RM -f confest.
$objext
13167 # PORTME: override above test on systems where it is broken
13170 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13171 # hack all around it, let's just trust "g++" to DTRT.
13172 predep_objects_CXX
=
13173 postdep_objects_CXX
=
13178 case `$CC -V 2>&1 | sed 5q` in
13182 # The more standards-conforming stlport4 library is
13183 # incompatible with the Cstd library. Avoid specifying
13184 # it if it's in CXXFLAGS. Ignore libCrun as
13185 # -library=stlport4 depends on it.
13186 case " $CXX $CXXFLAGS " in
13187 *" -library=stlport4 "*)
13188 solaris_use_stlport4
=yes
13192 if test "$solaris_use_stlport4" != yes; then
13193 postdeps_CXX
='-library=Cstd -library=Crun'
13200 case $cc_basename in
13202 # The more standards-conforming stlport4 library is
13203 # incompatible with the Cstd library. Avoid specifying
13204 # it if it's in CXXFLAGS. Ignore libCrun as
13205 # -library=stlport4 depends on it.
13206 case " $CXX $CXXFLAGS " in
13207 *" -library=stlport4 "*)
13208 solaris_use_stlport4
=yes
13212 # Adding this requires a known-good setup of shared libraries for
13213 # Sun compiler versions before 5.6, else PIC objects from an old
13214 # archive will be linked into the output, leading to subtle bugs.
13215 if test "$solaris_use_stlport4" != yes; then
13216 postdeps_CXX
='-library=Cstd -library=Crun'
13224 case " $postdeps_CXX " in
13225 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13227 compiler_lib_search_dirs_CXX
=
13228 if test -n "${compiler_lib_search_path_CXX}"; then
13229 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13262 lt_prog_compiler_wl_CXX
=
13263 lt_prog_compiler_pic_CXX
=
13264 lt_prog_compiler_static_CXX
=
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13269 # C++ specific cases for pic, static, wl, etc.
13270 if test "$GXX" = yes; then
13271 lt_prog_compiler_wl_CXX
='-Wl,'
13272 lt_prog_compiler_static_CXX
='-static'
13276 # All AIX code is PIC.
13277 if test "$host_cpu" = ia64
; then
13278 # AIX 5 now supports IA64 processor
13279 lt_prog_compiler_static_CXX
='-Bstatic'
13281 lt_prog_compiler_pic_CXX
='-fPIC'
13287 # see comment about AmigaOS4 .so support
13288 lt_prog_compiler_pic_CXX
='-fPIC'
13291 # FIXME: we need at least 68020 code to build shared libraries, but
13292 # adding the `-m68020' flag to GCC prevents building anything better,
13294 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13299 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13300 # PIC is the default for these OSes.
13302 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13303 # This hack is so that the source file can tell whether it is being
13304 # built for inclusion in a dll (and should export symbols for example).
13305 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13306 # (--disable-auto-import) libraries
13307 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13309 darwin
* | rhapsody
*)
13310 # PIC is the default on this platform
13311 # Common symbols not allowed in MH_DYLIB files
13312 lt_prog_compiler_pic_CXX
='-fno-common'
13315 # DJGPP does not support shared libraries at all
13316 lt_prog_compiler_pic_CXX
=
13319 # PIC is the default for Haiku.
13320 # The "-static" flag exists, but is broken.
13321 lt_prog_compiler_static_CXX
=
13324 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13325 # Instead, we relocate shared libraries at runtime.
13328 if test -d /usr
/nec
; then
13329 lt_prog_compiler_pic_CXX
=-Kconform_pic
13333 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13334 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13335 # sets the default TLS model and affects inlining.
13340 lt_prog_compiler_pic_CXX
='-fPIC'
13345 # QNX uses GNU C++, but need to define -shared option too, otherwise
13346 # it will coredump.
13347 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13350 lt_prog_compiler_pic_CXX
='-fPIC'
13356 # All AIX code is PIC.
13357 if test "$host_cpu" = ia64
; then
13358 # AIX 5 now supports IA64 processor
13359 lt_prog_compiler_static_CXX
='-Bstatic'
13361 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13365 case $cc_basename in
13367 # Green Hills C++ Compiler
13368 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13373 case $cc_basename in
13375 lt_prog_compiler_pic_CXX
='-KPIC'
13378 # Green Hills C++ Compiler
13379 lt_prog_compiler_pic_CXX
='-pic'
13385 freebsd
* | dragonfly
*)
13386 # FreeBSD uses GNU C++
13388 hpux9
* | hpux10
* | hpux11
*)
13389 case $cc_basename in
13391 lt_prog_compiler_wl_CXX
='-Wl,'
13392 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13393 if test "$host_cpu" != ia64
; then
13394 lt_prog_compiler_pic_CXX
='+Z'
13398 lt_prog_compiler_wl_CXX
='-Wl,'
13399 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13405 lt_prog_compiler_pic_CXX
='+Z'
13414 # This is c89, which is MS Visual C++ (no shared libs)
13415 # Anyone wants to do a port?
13417 irix5
* | irix6
* | nonstopux
*)
13418 case $cc_basename in
13420 lt_prog_compiler_wl_CXX
='-Wl,'
13421 lt_prog_compiler_static_CXX
='-non_shared'
13422 # CC pic flag -KPIC is the default.
13428 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13429 case $cc_basename in
13432 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13433 lt_prog_compiler_pic_CXX
='-fPIC'
13436 # old Intel C++ for x86_64 which still supported -KPIC.
13437 lt_prog_compiler_wl_CXX
='-Wl,'
13438 lt_prog_compiler_pic_CXX
='-KPIC'
13439 lt_prog_compiler_static_CXX
='-static'
13442 # Intel C++, used to be incompatible with GCC.
13443 # ICC 10 doesn't accept -KPIC any more.
13444 lt_prog_compiler_wl_CXX
='-Wl,'
13445 lt_prog_compiler_pic_CXX
='-fPIC'
13446 lt_prog_compiler_static_CXX
='-static'
13449 # Portland Group C++ compiler
13450 lt_prog_compiler_wl_CXX
='-Wl,'
13451 lt_prog_compiler_pic_CXX
='-fpic'
13452 lt_prog_compiler_static_CXX
='-Bstatic'
13456 # Make sure the PIC flag is empty. It appears that all Alpha
13457 # Linux and Compaq Tru64 Unix objects are PIC.
13458 lt_prog_compiler_pic_CXX
=
13459 lt_prog_compiler_static_CXX
='-non_shared'
13461 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13462 # IBM XL 8.0, 9.0 on PPC and BlueGene
13463 lt_prog_compiler_wl_CXX
='-Wl,'
13464 lt_prog_compiler_pic_CXX
='-qpic'
13465 lt_prog_compiler_static_CXX
='-qstaticlink'
13468 case `$CC -V 2>&1 | sed 5q` in
13471 lt_prog_compiler_pic_CXX
='-KPIC'
13472 lt_prog_compiler_static_CXX
='-Bstatic'
13473 lt_prog_compiler_wl_CXX
='-Qoption ld '
13484 case $cc_basename in
13486 lt_prog_compiler_pic_CXX
='-W c,exportall'
13495 # QNX uses GNU C++, but need to define -shared option too, otherwise
13496 # it will coredump.
13497 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13499 osf3
* | osf4
* | osf5
*)
13500 case $cc_basename in
13502 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13505 # Rational C++ 2.4.1
13506 lt_prog_compiler_pic_CXX
='-pic'
13509 # Digital/Compaq C++
13510 lt_prog_compiler_wl_CXX
='-Wl,'
13511 # Make sure the PIC flag is empty. It appears that all Alpha
13512 # Linux and Compaq Tru64 Unix objects are PIC.
13513 lt_prog_compiler_pic_CXX
=
13514 lt_prog_compiler_static_CXX
='-non_shared'
13523 case $cc_basename in
13525 # Sun C++ 4.2, 5.x and Centerline C++
13526 lt_prog_compiler_pic_CXX
='-KPIC'
13527 lt_prog_compiler_static_CXX
='-Bstatic'
13528 lt_prog_compiler_wl_CXX
='-Qoption ld '
13531 # Green Hills C++ Compiler
13532 lt_prog_compiler_pic_CXX
='-PIC'
13539 case $cc_basename in
13542 lt_prog_compiler_pic_CXX
='-pic'
13543 lt_prog_compiler_static_CXX
='-Bstatic'
13547 lt_prog_compiler_pic_CXX
='-pic'
13553 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13554 case $cc_basename in
13556 lt_prog_compiler_wl_CXX
='-Wl,'
13557 lt_prog_compiler_pic_CXX
='-KPIC'
13558 lt_prog_compiler_static_CXX
='-Bstatic'
13563 case $cc_basename in
13565 # NonStop-UX NCC 3.20
13566 lt_prog_compiler_pic_CXX
='-KPIC'
13575 lt_prog_compiler_can_build_shared_CXX
=no
13581 # For platforms which do not support PIC, -DPIC is meaningless:
13583 lt_prog_compiler_pic_CXX
=
13586 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13590 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13595 # Check to make sure the PIC flag actually works.
13597 if test -n "$lt_prog_compiler_pic_CXX"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13599 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13600 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13601 $as_echo_n "(cached) " >&6
13603 lt_cv_prog_compiler_pic_works_CXX
=no
13604 ac_outfile
=conftest.
$ac_objext
13605 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13606 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13607 # Insert the option either (1) after the last *FLAGS variable, or
13608 # (2) before a word containing "conftest.", or (3) at the end.
13609 # Note that $ac_compile itself does not contain backslashes and begins
13610 # with a dollar sign (not a hyphen), so the echo should work correctly.
13611 # The option is referenced via a variable to avoid confusing sed.
13612 lt_compile
=`echo "$ac_compile" | $SED \
13613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13615 -e 's:$: $lt_compiler_flag:'`
13616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13617 (eval "$lt_compile" 2>conftest.err
)
13619 cat conftest.err
>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 if (exit $ac_status) && test -s "$ac_outfile"; then
13622 # The compiler can only warn and ignore the option if not recognized
13623 # So say no if there are warnings other than the usual output.
13624 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13625 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13626 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13627 lt_cv_prog_compiler_pic_works_CXX
=yes
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13634 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13636 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13637 case $lt_prog_compiler_pic_CXX in
13639 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13642 lt_prog_compiler_pic_CXX
=
13643 lt_prog_compiler_can_build_shared_CXX
=no
13651 # Check to make sure the static flag actually works.
13653 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13655 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13656 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13659 lt_cv_prog_compiler_static_works_CXX
=no
13660 save_LDFLAGS
="$LDFLAGS"
13661 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13662 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13663 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13664 # The linker can only warn and ignore the option if not recognized
13665 # So say no if there are warnings
13666 if test -s conftest.err
; then
13667 # Append any errors to the config.log.
13668 cat conftest.err
1>&5
13669 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13670 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13671 if diff conftest.exp conftest.er2
>/dev
/null
; then
13672 lt_cv_prog_compiler_static_works_CXX
=yes
13675 lt_cv_prog_compiler_static_works_CXX
=yes
13679 LDFLAGS
="$save_LDFLAGS"
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13683 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13685 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13688 lt_prog_compiler_static_CXX
=
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13695 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13696 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13699 lt_cv_prog_compiler_c_o_CXX
=no
13700 $RM -r conftest
2>/dev
/null
13704 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13706 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13707 # Insert the option either (1) after the last *FLAGS variable, or
13708 # (2) before a word containing "conftest.", or (3) at the end.
13709 # Note that $ac_compile itself does not contain backslashes and begins
13710 # with a dollar sign (not a hyphen), so the echo should work correctly.
13711 lt_compile
=`echo "$ac_compile" | $SED \
13712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13714 -e 's:$: $lt_compiler_flag:'`
13715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13716 (eval "$lt_compile" 2>out
/conftest.err
)
13718 cat out
/conftest.err
>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13722 # The compiler can only warn and ignore the option if not recognized
13723 # So say no if there are warnings
13724 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13725 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13726 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13727 lt_cv_prog_compiler_c_o_CXX
=yes
13732 # SGI C++ compiler will create directory out/ii_files/ for
13733 # template instantiation
13734 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13735 $RM out
/* && rmdir out
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13742 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13748 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13749 $as_echo_n "(cached) " >&6
13751 lt_cv_prog_compiler_c_o_CXX
=no
13752 $RM -r conftest
2>/dev
/null
13756 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13758 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13759 # Insert the option either (1) after the last *FLAGS variable, or
13760 # (2) before a word containing "conftest.", or (3) at the end.
13761 # Note that $ac_compile itself does not contain backslashes and begins
13762 # with a dollar sign (not a hyphen), so the echo should work correctly.
13763 lt_compile
=`echo "$ac_compile" | $SED \
13764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13766 -e 's:$: $lt_compiler_flag:'`
13767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13768 (eval "$lt_compile" 2>out
/conftest.err
)
13770 cat out
/conftest.err
>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13774 # The compiler can only warn and ignore the option if not recognized
13775 # So say no if there are warnings
13776 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13777 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13778 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13779 lt_cv_prog_compiler_c_o_CXX
=yes
13784 # SGI C++ compiler will create directory out/ii_files/ for
13785 # template instantiation
13786 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13787 $RM out
/* && rmdir out
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13794 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13799 hard_links
="nottested"
13800 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13801 # do not overwrite the value of need_locks provided by the user
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13803 $as_echo_n "checking if we can lock with hard links... " >&6; }
13806 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13808 ln conftest.a conftest.b
2>&5 || hard_links
=no
13809 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13811 $as_echo "$hard_links" >&6; }
13812 if test "$hard_links" = no
; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13814 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13826 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13829 # If we're using GNU nm, then we don't want the "-C" option.
13830 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13831 # Also, AIX nm treats weak defined symbols like other global defined
13832 # symbols, whereas GNU nm marks them as "W".
13833 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13834 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13836 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13840 export_symbols_cmds_CXX
="$ltdll_cmds"
13842 cygwin
* | mingw
* | cegcc
*)
13843 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13846 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13849 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13852 $as_echo "$ld_shlibs_CXX" >&6; }
13853 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13855 with_gnu_ld_CXX
=$with_gnu_ld
13863 # Do we need to explicitly link libc?
13865 case "x$archive_cmds_need_lc_CXX" in
13867 # Assume -lc should be added
13868 archive_cmds_need_lc_CXX
=yes
13870 if test "$enable_shared" = yes && test "$GCC" = yes; then
13871 case $archive_cmds_CXX in
13873 # FIXME: we may have to deal with multi-command sequences.
13876 # Test whether the compiler implicitly links with -lc since on some
13877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13878 # to ld, don't add -lc before -lgcc.
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13880 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13881 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13882 $as_echo_n "(cached) " >&6
13885 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13888 (eval $ac_compile) 2>&5
13890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13891 test $ac_status = 0; } 2>conftest.err
; then
13894 libobjs
=conftest.
$ac_objext
13896 wl
=$lt_prog_compiler_wl_CXX
13897 pic_flag
=$lt_prog_compiler_pic_CXX
13903 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
13904 allow_undefined_flag_CXX
=
13905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13906 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13909 test $ac_status = 0; }
13911 lt_cv_archive_cmds_need_lc_CXX
=no
13913 lt_cv_archive_cmds_need_lc_CXX
=yes
13915 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
13917 cat conftest.err
1>&5
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13923 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13924 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13995 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13997 library_names_spec
=
13998 libname_spec
='lib$name'
14002 postuninstall_cmds
=
14006 shlibpath_overrides_runpath
=unknown
14008 dynamic_linker
="$host_os ld.so"
14009 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14010 need_lib_prefix
=unknown
14011 hardcode_into_libs
=no
14013 # when you set need_version to no, make sure it does not cause -set_version
14014 # flags to be left without arguments
14015 need_version
=unknown
14020 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14021 shlibpath_var
=LIBPATH
14023 # AIX 3 has no versioning support, so we append a major version to the name.
14024 soname_spec
='${libname}${release}${shared_ext}$major'
14031 hardcode_into_libs
=yes
14032 if test "$host_cpu" = ia64
; then
14033 # AIX 5 supports IA64
14034 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14035 shlibpath_var
=LD_LIBRARY_PATH
14037 # With GCC up to 2.95.x, collect2 would create an import file
14038 # for dependence libraries. The import file would start with
14039 # the line `#! .'. This would cause the generated library to
14040 # depend on `.', always an invalid library. This was fixed in
14041 # development snapshots of GCC prior to 3.0.
14043 aix4 | aix4.
[01] | aix4.
[01].
*)
14044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14046 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14049 can_build_shared
=no
14053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14054 # soname into executable. Probably we can add versioning support to
14055 # collect2, so additional links can be useful in future.
14056 if test "$aix_use_runtimelinking" = yes; then
14057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14058 # instead of lib<name>.a to let people know that these are not
14059 # typical AIX shared libraries.
14060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14062 # We preserve .a as extension for shared libraries through AIX4.2
14063 # and later when we are not doing run time linking.
14064 library_names_spec
='${libname}${release}.a $libname.a'
14065 soname_spec
='${libname}${release}${shared_ext}$major'
14067 shlibpath_var
=LIBPATH
14074 # Since July 2007 AmigaOS4 officially supports .so libraries.
14075 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 library_names_spec
='$libname.ixlibrary $libname.a'
14080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14081 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14087 library_names_spec
='${libname}${shared_ext}'
14088 dynamic_linker
="$host_os ld.so"
14089 shlibpath_var
=LIBRARY_PATH
14095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14096 soname_spec
='${libname}${release}${shared_ext}$major'
14097 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14098 shlibpath_var
=LD_LIBRARY_PATH
14099 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14100 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14101 # the default ld.so.conf also contains /usr/contrib/lib and
14102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14103 # libtool to hard-code these into programs
14106 cygwin
* | mingw
* | pw32
* | cegcc
*)
14107 version_type
=windows
14112 case $GCC,$host_os in
14113 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14114 library_names_spec
='$libname.dll.a'
14115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14116 postinstall_cmds
='base_file=`basename \${file}`~
14117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14118 dldir=$destdir/`dirname \$dlpath`~
14119 test -d \$dldir || mkdir -p \$dldir~
14120 $install_prog $dir/$dlname \$dldir/$dlname~
14121 chmod a+x \$dldir/$dlname~
14122 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14123 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14125 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14126 dlpath=$dir/\$dldll~
14128 shlibpath_overrides_runpath
=yes
14132 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14133 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14137 # MinGW DLLs use traditional 'lib' prefix
14138 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14141 # pw32 DLLs use 'pw' prefix rather than 'lib'
14142 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14148 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14151 dynamic_linker
='Win32 ld.exe'
14152 # FIXME: first we should search . and the directory the executable is in
14156 darwin
* | rhapsody
*)
14157 dynamic_linker
="$host_os dyld"
14158 version_type
=darwin
14161 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14162 soname_spec
='${libname}${release}${major}$shared_ext'
14163 shlibpath_overrides_runpath
=yes
14164 shlibpath_var
=DYLD_LIBRARY_PATH
14165 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14167 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14175 soname_spec
='${libname}${release}${shared_ext}$major'
14176 shlibpath_var
=LD_LIBRARY_PATH
14179 freebsd
* | dragonfly
*)
14180 # DragonFly does not have aout. When/if they implement a new
14181 # versioning mechanism, adjust this.
14182 if test -x /usr
/bin
/objformat
; then
14183 objformat
=`/usr/bin/objformat`
14186 freebsd
[23].
*) objformat
=aout
;;
14187 *) objformat
=elf
;;
14190 version_type
=freebsd-
$objformat
14191 case $version_type in
14193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14198 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14202 shlibpath_var
=LD_LIBRARY_PATH
14205 shlibpath_overrides_runpath
=yes
14207 freebsd3.
[01]* | freebsdelf3.
[01]*)
14208 shlibpath_overrides_runpath
=yes
14209 hardcode_into_libs
=yes
14211 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14212 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14213 shlibpath_overrides_runpath
=no
14214 hardcode_into_libs
=yes
14216 *) # from 4.6 on, and DragonFly
14217 shlibpath_overrides_runpath
=yes
14218 hardcode_into_libs
=yes
14227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14228 soname_spec
='${libname}${release}${shared_ext}$major'
14229 shlibpath_var
=LD_LIBRARY_PATH
14230 hardcode_into_libs
=yes
14237 dynamic_linker
="$host_os runtime_loader"
14238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14239 soname_spec
='${libname}${release}${shared_ext}$major'
14240 shlibpath_var
=LIBRARY_PATH
14241 shlibpath_overrides_runpath
=yes
14242 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14243 hardcode_into_libs
=yes
14246 hpux9
* | hpux10
* | hpux11
*)
14247 # Give a soname corresponding to the major version so that dld.sl refuses to
14248 # link against other versions.
14255 hardcode_into_libs
=yes
14256 dynamic_linker
="$host_os dld.so"
14257 shlibpath_var
=LD_LIBRARY_PATH
14258 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14260 soname_spec
='${libname}${release}${shared_ext}$major'
14261 if test "X$HPUX_IA64_MODE" = X32
; then
14262 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14264 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14266 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14270 hardcode_into_libs
=yes
14271 dynamic_linker
="$host_os dld.sl"
14272 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14273 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 soname_spec
='${libname}${release}${shared_ext}$major'
14276 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14277 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14281 dynamic_linker
="$host_os dld.sl"
14282 shlibpath_var
=SHLIB_PATH
14283 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14285 soname_spec
='${libname}${release}${shared_ext}$major'
14288 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14289 postinstall_cmds
='chmod 555 $lib'
14290 # or fails outright, so override atomically:
14291 install_override_mode
=555
14298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14299 soname_spec
='${libname}${release}${shared_ext}$major'
14300 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14301 shlibpath_var
=LD_LIBRARY_PATH
14302 shlibpath_overrides_runpath
=no
14303 hardcode_into_libs
=yes
14306 irix5
* | irix6
* | nonstopux
*)
14308 nonstopux
*) version_type
=nonstopux
;;
14310 if test "$lt_cv_prog_gnu_ld" = yes; then
14318 soname_spec
='${libname}${release}${shared_ext}$major'
14319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14321 irix5
* | nonstopux
*)
14322 libsuff
= shlibsuff
=
14325 case $LD in # libtool.m4 will add one of these switches to LD
14326 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14327 libsuff
= shlibsuff
= libmagic
=32-bit;;
14328 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14329 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14330 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14331 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14332 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14336 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14337 shlibpath_overrides_runpath
=no
14338 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14339 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14340 hardcode_into_libs
=yes
14343 # No shared lib support for Linux oldld, aout, or coff.
14344 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14348 # This must be Linux ELF.
14349 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14353 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14354 soname_spec
='${libname}${release}${shared_ext}$major'
14355 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14356 shlibpath_var
=LD_LIBRARY_PATH
14357 shlibpath_overrides_runpath
=no
14359 # Some binutils ld are patched to set DT_RUNPATH
14360 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14361 $as_echo_n "(cached) " >&6
14363 lt_cv_shlibpath_overrides_runpath
=no
14364 save_LDFLAGS
=$LDFLAGS
14365 save_libdir
=$libdir
14366 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14367 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14379 if ac_fn_cxx_try_link
"$LINENO"; then :
14380 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14381 lt_cv_shlibpath_overrides_runpath
=yes
14384 rm -f core conftest.err conftest.
$ac_objext \
14385 conftest
$ac_exeext conftest.
$ac_ext
14386 LDFLAGS
=$save_LDFLAGS
14387 libdir
=$save_libdir
14391 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14393 # This implies no fast_install, which is unacceptable.
14394 # Some rework will be needed to allow for fast_install
14395 # before this can be enabled.
14396 hardcode_into_libs
=yes
14398 # Append ld.so.conf contents to the search path
14399 if test -f /etc
/ld.so.conf
; then
14400 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;s/"//g;/^$/d' | tr '\n' ' '`
14401 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14404 # We used to test for /lib/ld.so.1 and disable shared libraries on
14405 # powerpc, because MkLinux only supported shared libraries with the
14406 # GNU dynamic linker. Since this was broken with cross compilers,
14407 # most powerpc-linux boxes support dynamic linking these days and
14408 # people can always --disable-shared, the test was removed, and we
14409 # assume the GNU/Linux dynamic linker is in use.
14410 dynamic_linker
='GNU/Linux ld.so'
14417 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14419 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14420 dynamic_linker
='NetBSD (a.out) ld.so'
14422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14423 soname_spec
='${libname}${release}${shared_ext}$major'
14424 dynamic_linker
='NetBSD ld.elf_so'
14426 shlibpath_var
=LD_LIBRARY_PATH
14427 shlibpath_overrides_runpath
=yes
14428 hardcode_into_libs
=yes
14433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434 shlibpath_var
=LD_LIBRARY_PATH
14435 shlibpath_overrides_runpath
=yes
14442 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14443 soname_spec
='${libname}${release}${shared_ext}$major'
14444 shlibpath_var
=LD_LIBRARY_PATH
14445 shlibpath_overrides_runpath
=no
14446 hardcode_into_libs
=yes
14447 dynamic_linker
='ldqnx.so'
14452 sys_lib_dlsearch_path_spec
="/usr/lib"
14454 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14456 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14457 *) need_version
=no
;;
14459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14460 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14461 shlibpath_var
=LD_LIBRARY_PATH
14462 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14464 openbsd2.
[89] | openbsd2.
[89].
*)
14465 shlibpath_overrides_runpath
=no
14468 shlibpath_overrides_runpath
=yes
14472 shlibpath_overrides_runpath
=yes
14477 libname_spec
='$name'
14480 library_names_spec
='$libname${shared_ext} $libname.a'
14481 dynamic_linker
='OS/2 ld.exe'
14482 shlibpath_var
=LIBPATH
14485 osf3
* | osf4
* | osf5
*)
14489 soname_spec
='${libname}${release}${shared_ext}$major'
14490 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 shlibpath_var
=LD_LIBRARY_PATH
14492 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14493 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 soname_spec
='${libname}${release}${shared_ext}$major'
14506 shlibpath_var
=LD_LIBRARY_PATH
14507 shlibpath_overrides_runpath
=yes
14508 hardcode_into_libs
=yes
14509 # ldd complains unless libraries are executable
14510 postinstall_cmds
='chmod +x $lib'
14515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14516 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14517 shlibpath_var
=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath
=yes
14519 if test "$with_gnu_ld" = yes; then
14527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec
='${libname}${release}${shared_ext}$major'
14529 shlibpath_var
=LD_LIBRARY_PATH
14530 case $host_vendor in
14532 shlibpath_overrides_runpath
=no
14534 runpath_var
=LD_RUN_PATH
14542 shlibpath_overrides_runpath
=no
14543 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14549 if test -d /usr
/nec
;then
14551 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14552 soname_spec
='$libname${shared_ext}.$major'
14553 shlibpath_var
=LD_LIBRARY_PATH
14557 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14558 version_type
=freebsd-elf
14561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14562 soname_spec
='${libname}${release}${shared_ext}$major'
14563 shlibpath_var
=LD_LIBRARY_PATH
14564 shlibpath_overrides_runpath
=yes
14565 hardcode_into_libs
=yes
14566 if test "$with_gnu_ld" = yes; then
14567 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14569 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14572 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14576 sys_lib_dlsearch_path_spec
='/usr/lib'
14580 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14584 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585 shlibpath_var
=LD_LIBRARY_PATH
14586 shlibpath_overrides_runpath
=no
14587 hardcode_into_libs
=yes
14592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593 soname_spec
='${libname}${release}${shared_ext}$major'
14594 shlibpath_var
=LD_LIBRARY_PATH
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14602 $as_echo "$dynamic_linker" >&6; }
14603 test "$dynamic_linker" = no
&& can_build_shared
=no
14605 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14606 if test "$GCC" = yes; then
14607 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14610 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14611 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14613 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14614 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14655 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14656 hardcode_action_CXX
=
14657 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14658 test -n "$runpath_var_CXX" ||
14659 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14661 # We can hardcode non-existent directories.
14662 if test "$hardcode_direct_CXX" != no
&&
14663 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14664 # have to relink, otherwise we might link with an installed library
14665 # when we should be linking with a yet-to-be-installed one
14666 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14667 test "$hardcode_minus_L_CXX" != no
; then
14668 # Linking always hardcodes the temporary library directory.
14669 hardcode_action_CXX
=relink
14671 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14672 hardcode_action_CXX
=immediate
14675 # We cannot hardcode anything, or else we can only hardcode existing
14677 hardcode_action_CXX
=unsupported
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14680 $as_echo "$hardcode_action_CXX" >&6; }
14682 if test "$hardcode_action_CXX" = relink ||
14683 test "$inherit_rpath_CXX" = yes; then
14684 # Fast installation is not supported
14685 enable_fast_install
=no
14686 elif test "$shlibpath_overrides_runpath" = yes ||
14687 test "$enable_shared" = no
; then
14688 # Fast installation is not necessary
14689 enable_fast_install
=needless
14698 fi # test -n "$compiler"
14704 with_gnu_ld
=$lt_save_with_gnu_ld
14705 lt_cv_path_LDCXX
=$lt_cv_path_LD
14706 lt_cv_path_LD
=$lt_save_path_LD
14707 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14708 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14709 fi # test "$_lt_caught_CXX_error" != yes
14712 ac_cpp
='$CPP $CPPFLAGS'
14713 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14714 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14715 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14729 ac_config_commands
="$ac_config_commands libtool"
14734 # Only expand once:
14738 # Test for 64-bit build.
14739 # The cast to long int works around a bug in the HP C Compiler
14740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14742 # This bug is HP SR number 8606223364.
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14744 $as_echo_n "checking size of size_t... " >&6; }
14745 if test "${ac_cv_sizeof_size_t+set}" = set; then :
14746 $as_echo_n "(cached) " >&6
14748 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14751 if test "$ac_cv_type_size_t" = yes; then
14752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14754 { as_fn_set_status
77
14755 as_fn_error
"cannot compute sizeof (size_t)
14756 See \`config.log' for more details." "$LINENO" 5; }; }
14758 ac_cv_sizeof_size_t
=0
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14764 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14768 cat >>confdefs.h
<<_ACEOF
14769 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14776 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14777 # Check whether --enable-maintainer-mode was given.
14778 if test "${enable_maintainer_mode+set}" = set; then :
14779 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
14781 USE_MAINTAINER_MODE
=no
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14785 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14786 if test $USE_MAINTAINER_MODE = yes; then
14787 MAINTAINER_MODE_TRUE
=
14788 MAINTAINER_MODE_FALSE
='#'
14790 MAINTAINER_MODE_TRUE
='#'
14791 MAINTAINER_MODE_FALSE
=
14794 MAINT
=$MAINTAINER_MODE_TRUE
14798 for ac_header
in sys
/mman.h
14800 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14801 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
14802 cat >>confdefs.h
<<_ACEOF
14803 #define HAVE_SYS_MMAN_H 1
14810 for ac_func
in mmap mkostemp
14812 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14813 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14814 eval as_val
=\$
$as_ac_var
14815 if test "x$as_val" = x
""yes; then :
14816 cat >>confdefs.h
<<_ACEOF
14817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14824 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14825 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
14826 libffi_header_sys_mman_h
=yes
14828 libffi_header_sys_mman_h
=no
14832 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
14833 if test "x$ac_cv_func_mmap" = x
""yes; then :
14834 libffi_func_mmap
=yes
14836 libffi_func_mmap
=no
14839 if test "$libffi_header_sys_mman_h" != yes \
14840 ||
test "$libffi_func_mmap" != yes; then
14841 ac_cv_func_mmap_file
=no
14842 ac_cv_func_mmap_dev_zero
=no
14843 ac_cv_func_mmap_anon
=no
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
14846 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
14847 if test "${ac_cv_func_mmap_file+set}" = set; then :
14848 $as_echo_n "(cached) " >&6
14850 # Add a system to this blacklist if
14851 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
14852 # memory area containing the same data that you'd get if you applied
14853 # read() to the same fd. The only system known to have a problem here
14854 # is VMS, where text files have record structure.
14857 ac_cv_func_mmap_file
=no
;;
14859 ac_cv_func_mmap_file
=yes;;
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
14863 $as_echo "$ac_cv_func_mmap_file" >&6; }
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
14865 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
14866 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14869 # Add a system to this blacklist if it has mmap() but /dev/zero
14870 # does not exist, or if mmapping /dev/zero does not give anonymous
14871 # zeroed pages with both the following properties:
14872 # 1. If you map N consecutive pages in with one call, and then
14873 # unmap any subset of those pages, the pages that were not
14874 # explicitly unmapped remain accessible.
14875 # 2. If you map two adjacent blocks of memory and then unmap them
14876 # both at once, they must both go away.
14877 # Systems known to be in this category are Windows (all variants),
14880 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
14881 ac_cv_func_mmap_dev_zero
=no
;;
14883 ac_cv_func_mmap_dev_zero
=yes;;
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
14887 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
14889 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
14891 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
14892 if test "${ac_cv_decl_map_anon+set}" = set; then :
14893 $as_echo_n "(cached) " >&6
14895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14897 #include <sys/types.h>
14898 #include <sys/mman.h>
14899 #include <unistd.h>
14901 #ifndef MAP_ANONYMOUS
14902 #define MAP_ANONYMOUS MAP_ANON
14908 int n = MAP_ANONYMOUS;
14913 if ac_fn_c_try_compile
"$LINENO"; then :
14914 ac_cv_decl_map_anon
=yes
14916 ac_cv_decl_map_anon
=no
14918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
14921 $as_echo "$ac_cv_decl_map_anon" >&6; }
14923 if test $ac_cv_decl_map_anon = no
; then
14924 ac_cv_func_mmap_anon
=no
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
14927 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
14928 if test "${ac_cv_func_mmap_anon+set}" = set; then :
14929 $as_echo_n "(cached) " >&6
14931 # Add a system to this blacklist if it has mmap() and MAP_ANON or
14932 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
14933 # doesn't give anonymous zeroed pages with the same properties listed
14934 # above for use of /dev/zero.
14935 # Systems known to be in this category are Windows, VMS, and SCO Unix.
14937 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
14938 ac_cv_func_mmap_anon
=no
;;
14940 ac_cv_func_mmap_anon
=yes;;
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
14944 $as_echo "$ac_cv_func_mmap_anon" >&6; }
14948 if test $ac_cv_func_mmap_file = yes; then
14950 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
14953 if test $ac_cv_func_mmap_dev_zero = yes; then
14955 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
14958 if test $ac_cv_func_mmap_anon = yes; then
14960 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
14965 if test -d $srcdir/testsuite
; then
14967 TESTSUBDIR_FALSE
='#'
14969 TESTSUBDIR_TRUE
='#'
14974 TARGETDIR
="unknown"
14975 HAVE_LONG_DOUBLE_VARIANT
=0
14977 .
${srcdir}/configure.
host
14979 if test -n "${UNSUPPORTED}"; then
14980 as_fn_error
"\"libffi has not been ported to $host.\"" "$LINENO" 5
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14987 $as_echo_n "checking for ANSI C header files... " >&6; }
14988 if test "${ac_cv_header_stdc+set}" = set; then :
14989 $as_echo_n "(cached) " >&6
14991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14993 #include <stdlib.h>
14994 #include <stdarg.h>
14995 #include <string.h>
15006 if ac_fn_c_try_compile
"$LINENO"; then :
15007 ac_cv_header_stdc
=yes
15009 ac_cv_header_stdc
=no
15011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15013 if test $ac_cv_header_stdc = yes; then
15014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h. */
15017 #include <string.h>
15020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15021 $EGREP "memchr" >/dev
/null
2>&1; then :
15024 ac_cv_header_stdc
=no
15030 if test $ac_cv_header_stdc = yes; then
15031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <stdlib.h>
15037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15038 $EGREP "free" >/dev
/null
2>&1; then :
15041 ac_cv_header_stdc
=no
15047 if test $ac_cv_header_stdc = yes; then
15048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15049 if test "$cross_compiling" = yes; then :
15052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15055 #include <stdlib.h>
15056 #if ((' ' & 0x0FF) == 0x020)
15057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15060 # define ISLOWER(c) \
15061 (('a' <= (c) && (c) <= 'i') \
15062 || ('j' <= (c) && (c) <= 'r') \
15063 || ('s' <= (c) && (c) <= 'z'))
15064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15072 for (i = 0; i < 256; i++)
15073 if (XOR (islower (i), ISLOWER (i))
15074 || toupper (i) != TOUPPER (i))
15079 if ac_fn_c_try_run
"$LINENO"; then :
15082 ac_cv_header_stdc
=no
15084 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15085 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15091 $as_echo "$ac_cv_header_stdc" >&6; }
15092 if test $ac_cv_header_stdc = yes; then
15094 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15098 for ac_func
in memcpy
15100 ac_fn_c_check_func
"$LINENO" "memcpy" "ac_cv_func_memcpy"
15101 if test "x$ac_cv_func_memcpy" = x
""yes; then :
15102 cat >>confdefs.h
<<_ACEOF
15103 #define HAVE_MEMCPY 1
15109 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15110 # for constant arguments. Useless!
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15112 $as_echo_n "checking for working alloca.h... " >&6; }
15113 if test "${ac_cv_working_alloca_h+set}" = set; then :
15114 $as_echo_n "(cached) " >&6
15116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 #include <alloca.h>
15122 char *p = (char *) alloca (2 * sizeof (int));
15128 if ac_fn_c_try_link
"$LINENO"; then :
15129 ac_cv_working_alloca_h
=yes
15131 ac_cv_working_alloca_h
=no
15133 rm -f core conftest.err conftest.
$ac_objext \
15134 conftest
$ac_exeext conftest.
$ac_ext
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15137 $as_echo "$ac_cv_working_alloca_h" >&6; }
15138 if test $ac_cv_working_alloca_h = yes; then
15140 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15145 $as_echo_n "checking for alloca... " >&6; }
15146 if test "${ac_cv_func_alloca_works+set}" = set; then :
15147 $as_echo_n "(cached) " >&6
15149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15150 /* end confdefs.h. */
15152 # define alloca __builtin_alloca
15155 # include <malloc.h>
15156 # define alloca _alloca
15158 # ifdef HAVE_ALLOCA_H
15159 # include <alloca.h>
15164 # ifndef alloca /* predefined by HP cc +Olibcalls */
15175 char *p = (char *) alloca (1);
15181 if ac_fn_c_try_link
"$LINENO"; then :
15182 ac_cv_func_alloca_works
=yes
15184 ac_cv_func_alloca_works
=no
15186 rm -f core conftest.err conftest.
$ac_objext \
15187 conftest
$ac_exeext conftest.
$ac_ext
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15190 $as_echo "$ac_cv_func_alloca_works" >&6; }
15192 if test $ac_cv_func_alloca_works = yes; then
15194 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15197 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15198 # that cause trouble. Some versions do not even contain alloca or
15199 # contain a buggy version. If you still want to use their alloca,
15200 # use ar to extract alloca.o from them instead of compiling alloca.c.
15202 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
15204 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15208 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15209 if test "${ac_cv_os_cray+set}" = set; then :
15210 $as_echo_n "(cached) " >&6
15212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 #if defined CRAY && ! defined CRAY2
15221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15222 $EGREP "webecray" >/dev
/null
2>&1; then :
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15231 $as_echo "$ac_cv_os_cray" >&6; }
15232 if test $ac_cv_os_cray = yes; then
15233 for ac_func
in _getb67 GETB67 getb67
; do
15234 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15236 eval as_val
=\$
$as_ac_var
15237 if test "x$as_val" = x
""yes; then :
15239 cat >>confdefs.h
<<_ACEOF
15240 #define CRAY_STACKSEG_END $ac_func
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15250 $as_echo_n "checking stack direction for C alloca... " >&6; }
15251 if test "${ac_cv_c_stack_direction+set}" = set; then :
15252 $as_echo_n "(cached) " >&6
15254 if test "$cross_compiling" = yes; then :
15255 ac_cv_c_stack_direction
=0
15257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15259 $ac_includes_default
15261 find_stack_direction ()
15263 static char *addr = 0;
15268 return find_stack_direction ();
15271 return (&dummy > addr) ? 1 : -1;
15277 return find_stack_direction () < 0;
15280 if ac_fn_c_try_run
"$LINENO"; then :
15281 ac_cv_c_stack_direction
=1
15283 ac_cv_c_stack_direction
=-1
15285 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15286 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15291 $as_echo "$ac_cv_c_stack_direction" >&6; }
15292 cat >>confdefs.h
<<_ACEOF
15293 #define STACK_DIRECTION $ac_cv_c_stack_direction
15300 # The cast to long int works around a bug in the HP C Compiler
15301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15303 # This bug is HP SR number 8606223364.
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15305 $as_echo_n "checking size of double... " >&6; }
15306 if test "${ac_cv_sizeof_double+set}" = set; then :
15307 $as_echo_n "(cached) " >&6
15309 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15312 if test "$ac_cv_type_double" = yes; then
15313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15315 { as_fn_set_status
77
15316 as_fn_error
"cannot compute sizeof (double)
15317 See \`config.log' for more details." "$LINENO" 5; }; }
15319 ac_cv_sizeof_double
=0
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15325 $as_echo "$ac_cv_sizeof_double" >&6; }
15329 cat >>confdefs.h
<<_ACEOF
15330 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15334 # The cast to long int works around a bug in the HP C Compiler
15335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15337 # This bug is HP SR number 8606223364.
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15339 $as_echo_n "checking size of long double... " >&6; }
15340 if test "${ac_cv_sizeof_long_double+set}" = set; then :
15341 $as_echo_n "(cached) " >&6
15343 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15346 if test "$ac_cv_type_long_double" = yes; then
15347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15349 { as_fn_set_status
77
15350 as_fn_error
"cannot compute sizeof (long double)
15351 See \`config.log' for more details." "$LINENO" 5; }; }
15353 ac_cv_sizeof_long_double
=0
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15359 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15363 cat >>confdefs.h
<<_ACEOF
15364 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15369 # Also AC_SUBST this variable for ffi.h.
15370 if test -z "$HAVE_LONG_DOUBLE"; then
15372 if test $ac_cv_sizeof_long_double != 0; then
15373 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15375 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15379 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15382 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15392 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15393 if test "${ac_cv_c_bigendian+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15396 ac_cv_c_bigendian
=unknown
15397 # See if we're dealing with a universal compiler.
15398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400 #ifndef __APPLE_CC__
15401 not a universal capable compiler
15406 if ac_fn_c_try_compile
"$LINENO"; then :
15408 # Check for potential -arch flags. It is not universal unless
15409 # there are at least two -arch flags with different values.
15412 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15413 if test -n "$ac_prev"; then
15415 i?
86 | x86_64 | ppc | ppc64
)
15416 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15419 ac_cv_c_bigendian
=universal
15425 elif test "x$ac_word" = "x-arch"; then
15430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15431 if test $ac_cv_c_bigendian = unknown
; then
15432 # See if sys/param.h defines the BYTE_ORDER macro.
15433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435 #include <sys/types.h>
15436 #include <sys/param.h>
15441 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15442 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15444 bogus endian macros
15451 if ac_fn_c_try_compile
"$LINENO"; then :
15452 # It does; now see whether it defined to BIG_ENDIAN or not.
15453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 #include <sys/types.h>
15456 #include <sys/param.h>
15461 #if BYTE_ORDER != BIG_ENDIAN
15469 if ac_fn_c_try_compile
"$LINENO"; then :
15470 ac_cv_c_bigendian
=yes
15472 ac_cv_c_bigendian
=no
15474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15478 if test $ac_cv_c_bigendian = unknown
; then
15479 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482 #include <limits.h>
15487 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15488 bogus endian macros
15495 if ac_fn_c_try_compile
"$LINENO"; then :
15496 # It does; now see whether it defined to _BIG_ENDIAN or not.
15497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15499 #include <limits.h>
15504 #ifndef _BIG_ENDIAN
15512 if ac_fn_c_try_compile
"$LINENO"; then :
15513 ac_cv_c_bigendian
=yes
15515 ac_cv_c_bigendian
=no
15517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15521 if test $ac_cv_c_bigendian = unknown
; then
15522 # Compile a test program.
15523 if test "$cross_compiling" = yes; then :
15524 # Try to guess by grepping values from an object file.
15525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15526 /* end confdefs.h. */
15527 short int ascii_mm[] =
15528 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15529 short int ascii_ii[] =
15530 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15531 int use_ascii (int i) {
15532 return ascii_mm[i] + ascii_ii[i];
15534 short int ebcdic_ii[] =
15535 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15536 short int ebcdic_mm[] =
15537 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15538 int use_ebcdic (int i) {
15539 return ebcdic_mm[i] + ebcdic_ii[i];
15546 return use_ascii (foo) == use_ebcdic (foo);
15551 if ac_fn_c_try_compile
"$LINENO"; then :
15552 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15553 ac_cv_c_bigendian
=yes
15555 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15556 if test "$ac_cv_c_bigendian" = unknown
; then
15557 ac_cv_c_bigendian
=no
15559 # finding both strings is unlikely to happen, but who knows?
15560 ac_cv_c_bigendian
=unknown
15564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568 $ac_includes_default
15573 /* Are we little or big endian? From Harbison&Steele. */
15577 char c[sizeof (long int)];
15580 return u.c[sizeof (long int) - 1] == 1;
15586 if ac_fn_c_try_run
"$LINENO"; then :
15587 ac_cv_c_bigendian
=no
15589 ac_cv_c_bigendian
=yes
15591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15598 $as_echo "$ac_cv_c_bigendian" >&6; }
15599 case $ac_cv_c_bigendian in #(
15601 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15607 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15611 as_fn_error
"unknown endianness
15612 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15617 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15618 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
15619 $as_echo_n "(cached) " >&6
15622 gcc_cv_as_cfi_pseudo_op
=unknown
15623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 asm (".cfi_startproc\n\t.cfi_endproc");
15634 if ac_fn_c_try_compile
"$LINENO"; then :
15635 gcc_cv_as_cfi_pseudo_op
=yes
15637 gcc_cv_as_cfi_pseudo_op
=no
15639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15643 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15644 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes
; then
15646 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15654 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15655 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
15656 $as_echo_n "(cached) " >&6
15659 save_CFLAGS
="$CFLAGS"
15660 save_LDFLAGS
="$LDFLAGS"
15661 CFLAGS
="$CFLAGS -fpic"
15662 LDFLAGS
="$LDFLAGS -shared"
15663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15674 if ac_fn_c_try_link
"$LINENO"; then :
15675 libffi_cv_as_sparc_ua_pcrel
=yes
15677 libffi_cv_as_sparc_ua_pcrel
=no
15679 rm -f core conftest.err conftest.
$ac_objext \
15680 conftest
$ac_exeext conftest.
$ac_ext
15681 CFLAGS
="$save_CFLAGS"
15682 LDFLAGS
="$save_LDFLAGS"
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15685 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15686 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
15688 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15693 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15694 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
15695 $as_echo_n "(cached) " >&6
15698 libffi_cv_as_register_pseudo_op
=unknown
15699 # Check if we have .register
15700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15706 asm (".register %g2, #scratch");
15711 if ac_fn_c_try_compile
"$LINENO"; then :
15712 libffi_cv_as_register_pseudo_op
=yes
15714 libffi_cv_as_register_pseudo_op
=no
15716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15720 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15721 if test "x$libffi_cv_as_register_pseudo_op" = xyes
; then
15723 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15730 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15731 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
15732 $as_echo_n "(cached) " >&6
15735 libffi_cv_as_x86_pcrel
=no
15736 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15737 if $CC $CFLAGS -c conftest.s
> /dev
/null
2>&1; then
15738 libffi_cv_as_x86_pcrel
=yes
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15743 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15744 if test "x$libffi_cv_as_x86_pcrel" = xyes
; then
15746 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15753 $as_echo_n "checking compiler uses zarch features... " >&6; }
15754 if test "${libffi_cv_as_s390_zarch+set}" = set; then :
15755 $as_echo_n "(cached) " >&6
15758 libffi_cv_as_s390_zarch
=no
15759 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15760 if $CC $CFLAGS -S conftest.c
> /dev
/null
2>&1; then
15761 if grep -q brasl conftest.s
; then
15762 libffi_cv_as_s390_zarch
=yes
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15768 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15769 if test "x$libffi_cv_as_s390_zarch" = xyes
; then
15771 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15777 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15778 # Check whether --enable-pax_emutramp was given.
15779 if test "${enable_pax_emutramp+set}" = set; then :
15780 enableval
=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15782 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15788 FFI_EXEC_TRAMPOLINE_TABLE
=0
15790 *arm
*-apple-darwin* | aarch64-apple-darwin
*)
15791 FFI_EXEC_TRAMPOLINE_TABLE
=1
15793 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15796 *-apple-darwin1* |
*-*-freebsd* |
*-*-kfreebsd* |
*-*-openbsd* |
*-pc-solaris*)
15798 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15802 if test x
$FFI_EXEC_TRAMPOLINE_TABLE = x1
; then
15803 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
=
15804 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
='#'
15806 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
='#'
15807 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
=
15812 if test x
$TARGET = xX86_64
; then
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
15814 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
15815 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
15816 $as_echo_n "(cached) " >&6
15819 cat > conftest1.s
<< EOF
15824 .section .eh_frame,"a",@unwind
15828 cat > conftest2.c
<< EOF
15833 libffi_cv_as_x86_64_unwind_section_type
=no
15834 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
15835 # since the compiler can support it and not the linker (ie old binutils)
15836 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s
> /dev
/null
2>&1 && \
15837 $CC conftest2.c conftest1.o
> /dev
/null
2>&1 ; then
15838 libffi_cv_as_x86_64_unwind_section_type
=yes
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
15843 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
15844 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes
; then
15846 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15851 if test "x$GCC" = "xyes"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15853 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15854 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
15855 $as_echo_n "(cached) " >&6
15858 libffi_cv_ro_eh_frame
=no
15859 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15860 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c
> /dev
/null
2>&1; then
15861 objdump
-h conftest.o
> conftest.dump
2>&1
15862 libffi_eh_frame_line
=`grep -n eh_frame conftest.dump | cut -d: -f 1`
15863 if test "x$libffi_eh_frame_line" != "x"; then
15864 libffi_test_line
=`expr $libffi_eh_frame_line + 1`p
15865 sed -n $libffi_test_line conftest.dump
> conftest.line
15866 if grep READONLY conftest.line
> /dev
/null
; then
15867 libffi_cv_ro_eh_frame
=yes
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
15875 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
15876 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
15878 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
15881 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15885 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
15890 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
15891 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
15892 $as_echo_n "(cached) " >&6
15895 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
15896 libffi_cv_hidden_visibility_attribute
=no
15897 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
15898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15899 (eval $ac_try) 2>&5
15901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15902 test $ac_status = 0; }; }; then
15903 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
15904 libffi_cv_hidden_visibility_attribute
=yes
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
15911 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
15912 if test $libffi_cv_hidden_visibility_attribute = yes; then
15914 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
15926 for i
in $SOURCES; do
15927 TARGET_OBJ
="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
15934 # Check whether --enable-debug was given.
15935 if test "${enable_debug+set}" = set; then :
15936 enableval
=$enable_debug; if test "$enable_debug" = "yes"; then
15938 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
15943 if test "$enable_debug" = "yes"; then
15945 FFI_DEBUG_FALSE
='#'
15952 # Check whether --enable-structs was given.
15953 if test "${enable_structs+set}" = set; then :
15954 enableval
=$enable_structs; if test "$enable_structs" = "no"; then
15956 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
15961 if test "$enable_debug" = "yes"; then
15963 FFI_DEBUG_FALSE
='#'
15970 # Check whether --enable-raw-api was given.
15971 if test "${enable_raw_api+set}" = set; then :
15972 enableval
=$enable_raw_api; if test "$enable_raw_api" = "no"; then
15974 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
15980 # Check whether --enable-purify-safety was given.
15981 if test "${enable_purify_safety+set}" = set; then :
15982 enableval
=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
15984 $as_echo "#define USING_PURIFY 1" >>confdefs.h
15990 if test -n "$with_cross_host" &&
15991 test x
"$with_cross_host" != x
"no"; then
15992 toolexecdir
='$(exec_prefix)/$(target_alias)'
15993 toolexeclibdir
='$(toolexecdir)/lib'
15995 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
15996 toolexeclibdir
='$(libdir)'
15998 multi_os_directory
=`$CC -print-multi-os-directory`
15999 case $multi_os_directory in
16000 .
) ;; # Avoid trailing /.
16001 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
16006 if test "${multilib}" = "yes"; then
16007 multilib_arg
="--enable-multilib"
16012 ac_config_commands
="$ac_config_commands include"
16014 ac_config_commands
="$ac_config_commands src"
16017 ac_config_links
="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16020 ac_config_files
="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16023 cat >confcache
<<\_ACEOF
16024 # This file is a shell script that caches the results of configure
16025 # tests run on this system so they can be shared between configure
16026 # scripts and configure runs, see configure's option --config-cache.
16027 # It is not useful on other systems. If it contains results you don't
16028 # want to keep, you may remove or edit it.
16030 # config.status only pays attention to the cache file if you give it
16031 # the --recheck option to rerun configure.
16033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16035 # following values.
16039 # The following way of writing the cache mishandles newlines in values,
16040 # but we know of no workaround that is simple, portable, and efficient.
16041 # So, we kill variables containing newlines.
16042 # Ultrix sh set writes to stderr and can't be redirected directly,
16043 # and sets the high bit in the cache file unless we assign to the vars.
16045 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16046 eval ac_val
=\$
$ac_var
16050 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16054 _ | IFS | as_nl
) ;; #(
16055 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16056 *) { eval $ac_var=; unset $ac_var;} ;;
16062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16063 *${as_nl}ac_space
=\
*)
16064 # `set' does not quote correctly, so add quotes: double-quote
16065 # substitution turns \\\\ into \\, and sed turns \\ into \.
16068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16071 # `set' quotes correctly as required by POSIX, so do not add quotes.
16072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16085 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16086 if test -w "$cache_file"; then
16087 test "x$cache_file" != "x/dev/null" &&
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16089 $as_echo "$as_me: updating cache $cache_file" >&6;}
16090 cat confcache
>$cache_file
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16093 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16098 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16099 # Let make expand exec_prefix.
16100 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16102 DEFS
=-DHAVE_CONFIG_H
16106 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16107 # 1. Remove the extension, and $U if already installed.
16108 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16109 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16111 # will be set to the directory where LIBOBJS objects are built.
16112 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16113 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16115 LIBOBJS
=$ac_libobjs
16117 LTLIBOBJS
=$ac_ltlibobjs
16120 if test -n "$EXEEXT"; then
16122 am__EXEEXT_FALSE
='#'
16124 am__EXEEXT_TRUE
='#'
16128 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16129 as_fn_error
"conditional \"BUILD_INFO\" was never defined.
16130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16132 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16133 as_fn_error
"conditional \"GENINSRC\" was never defined.
16134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16136 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16137 as_fn_error
"conditional \"AMDEP\" was never defined.
16138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16140 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16141 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16144 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16145 as_fn_error
"conditional \"am__fastdepCXX\" was never defined.
16146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16148 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16149 as_fn_error
"conditional \"am__fastdepCCAS\" was never defined.
16150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16152 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16153 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16156 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16157 as_fn_error
"conditional \"TESTSUBDIR\" was never defined.
16158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16161 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16162 as_fn_error
"conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16165 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16166 as_fn_error
"conditional \"FFI_DEBUG\" was never defined.
16167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16169 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16170 as_fn_error
"conditional \"FFI_DEBUG\" was never defined.
16171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16174 : ${CONFIG_STATUS=./config.status}
16176 ac_clean_files_save
=$ac_clean_files
16177 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16179 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16181 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16183 # Generated by $as_me.
16184 # Run this file to recreate the current configuration.
16185 # Compiler output produced by configure, useful for debugging
16186 # configure, is in config.log if it exists.
16189 ac_cs_recheck=false
16192 SHELL=\${CONFIG_SHELL-$SHELL}
16195 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16196 ## -------------------- ##
16197 ## M4sh Initialization. ##
16198 ## -------------------- ##
16200 # Be more Bourne compatible
16201 DUALCASE
=1; export DUALCASE
# for MKS sh
16202 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16206 # is contrary to our usage. Disable this feature.
16207 alias -g '${1+"$@"}'='"$@"'
16208 setopt NO_GLOB_SUBST
16210 case `(set -o) 2>/dev/null` in #(
16222 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16223 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16226 # Prefer a ksh shell builtin over an external printf program on Solaris,
16227 # but without wasting forks for bash or zsh.
16228 if test -z "$BASH_VERSION$ZSH_VERSION" \
16229 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16230 as_echo='print
-r --'
16231 as_echo_n='print
-rn --'
16232 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16233 as_echo='printf %s
\n'
16234 as_echo_n='printf %s
'
16236 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16237 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16238 as_echo_n='/usr
/ucb
/echo -n'
16240 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16241 as_echo_n_body='eval
16245 expr "X$arg" : "X\\(.*\\)$as_nl";
16246 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16248 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16250 export as_echo_n_body
16251 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16253 export as_echo_body
16254 as_echo='sh
-c $as_echo_body as_echo
'
16257 # The user is always right.
16258 if test "${PATH_SEPARATOR+set}" != set; then
16260 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16261 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16268 # We need space, tab and new line, in precisely that order. Quoting is
16269 # there to prevent editors from complaining about space-tab.
16270 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16271 # splitting by setting IFS to empty value.)
16274 # Find who we are. Look in the path if we contain no directory separator.
16276 *[\\/]* ) as_myself=$0 ;;
16277 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16278 for as_dir in $PATH
16281 test -z "$as_dir" && as_dir=.
16282 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16288 # We did not find ourselves, most probably we were run as `sh COMMAND'
16289 # in which case we are not to be found in the path.
16290 if test "x$as_myself" = x
; then
16293 if test ! -f "$as_myself"; then
16294 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16298 # Unset variables that we do not need and which cause bugs (e.g. in
16299 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16300 # suppresses any "Segmentation fault" message there. '((' could
16301 # trigger a bug in pdksh 5.2.14.
16302 for as_var
in BASH_ENV ENV MAIL MAILPATH
16303 do eval test x\
${$as_var+set} = xset \
16304 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16317 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16320 # as_fn_error ERROR [LINENO LOG_FD]
16321 # ---------------------------------
16322 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16323 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16324 # script with status $?, using 1 if that was 0.
16327 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16329 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16330 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16332 $as_echo "$as_me: error: $1" >&2
16333 as_fn_exit
$as_status
16337 # as_fn_set_status STATUS
16338 # -----------------------
16339 # Set $? to STATUS, without forking.
16340 as_fn_set_status
()
16343 } # as_fn_set_status
16345 # as_fn_exit STATUS
16346 # -----------------
16347 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16351 as_fn_set_status
$1
16357 # Portably unset VAR.
16360 { eval $1=; unset $1;}
16362 as_unset
=as_fn_unset
16363 # as_fn_append VAR VALUE
16364 # ----------------------
16365 # Append the text in VALUE to the end of the definition contained in VAR. Take
16366 # advantage of any shell optimizations that allow amortized linear growth over
16367 # repeated appends, instead of the typical quadratic growth present in naive
16369 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16370 eval 'as_fn_append ()
16381 # as_fn_arith ARG...
16382 # ------------------
16383 # Perform arithmetic evaluation on the ARGs, and store the result in the
16384 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16385 # must be portable across $(()) and expr.
16386 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16387 eval 'as_fn_arith ()
16394 as_val
=`expr "$@" || test $? -eq 1`
16399 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16400 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16406 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16407 as_basename
=basename
16412 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16418 as_me
=`$as_basename -- "$0" ||
16419 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16420 X"$0" : 'X\(//\)$' \| \
16421 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16423 sed '/^.*\/\([^/][^/]*\)\/*$/{
16437 # Avoid depending upon Character Ranges.
16438 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16439 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16440 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16441 as_cr_digits
='0123456789'
16442 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16444 ECHO_C
= ECHO_N
= ECHO_T
=
16445 case `echo -n x` in #(((((
16447 case `echo 'xy\c'` in
16448 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16450 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16457 rm -f conf$$ conf$$.exe conf$$.
file
16458 if test -d conf$$.dir
; then
16459 rm -f conf$$.dir
/conf$$.
file
16462 mkdir conf$$.dir
2>/dev
/null
16464 if (echo >conf$$.
file) 2>/dev
/null
; then
16465 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16467 # ... but there are two gotchas:
16468 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16469 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16470 # In both cases, we have to default to `cp -p'.
16471 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16473 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16481 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16482 rmdir conf$$.dir
2>/dev
/null
16487 # Create "$as_dir" as a directory, including parents if necessary.
16492 -*) as_dir
=.
/$as_dir;;
16494 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16498 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16499 *) as_qdir
=$as_dir;;
16501 as_dirs
="'$as_qdir' $as_dirs"
16502 as_dir
=`$as_dirname -- "$as_dir" ||
16503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16504 X"$as_dir" : 'X\(//\)[^/]' \| \
16505 X"$as_dir" : 'X\(//\)$' \| \
16506 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16507 $as_echo X"$as_dir" |
16508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16512 /^X\(\/\/\)[^/].*/{
16525 test -d "$as_dir" && break
16527 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16528 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16532 if mkdir
-p .
2>/dev
/null
; then
16533 as_mkdir_p
='mkdir -p "$as_dir"'
16535 test -d .
/-p && rmdir .
/-p
16539 if test -x / >/dev
/null
2>&1; then
16540 as_test_x
='test -x'
16542 if ls -dL / >/dev
/null
2>&1; then
16549 if test -d "$1"; then
16555 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16556 ???[sx]*):;;*)false;;esac;fi
16560 as_executable_p
=$as_test_x
16562 # Sed expression to map a string onto a valid CPP name.
16563 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16565 # Sed expression to map a string onto a valid variable name.
16566 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16570 ## ----------------------------------- ##
16571 ## Main body of $CONFIG_STATUS script. ##
16572 ## ----------------------------------- ##
16574 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16577 # Save the log message, to keep $0 and so on meaningful, and to
16578 # report actual input values of CONFIG_FILES etc. instead of their
16579 # values after options handling.
16581 This file was extended by libffi $as_me 3.99999, which was
16582 generated by GNU Autoconf 2.64. Invocation command line was
16584 CONFIG_FILES = $CONFIG_FILES
16585 CONFIG_HEADERS = $CONFIG_HEADERS
16586 CONFIG_LINKS = $CONFIG_LINKS
16587 CONFIG_COMMANDS = $CONFIG_COMMANDS
16590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16595 case $ac_config_files in *"
16596 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16599 case $ac_config_headers in *"
16600 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16605 # Files that config.status was made for.
16606 config_files="$ac_config_files"
16607 config_headers="$ac_config_headers"
16608 config_links="$ac_config_links"
16609 config_commands="$ac_config_commands"
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16615 \`$as_me' instantiates files and other configuration actions
16616 from templates according to the current configuration. Unless the files
16617 and actions are specified as TAGs, all are instantiated by default.
16619 Usage: $0 [OPTION]... [TAG]...
16621 -h, --help print this help, then exit
16622 -V, --version print version number and configuration settings, then exit
16623 -q, --quiet, --silent
16624 do not print progress messages
16625 -d, --debug don't remove temporary files
16626 --recheck update $as_me by reconfiguring in the same conditions
16627 --file=FILE[:TEMPLATE]
16628 instantiate the configuration file FILE
16629 --header=FILE[:TEMPLATE]
16630 instantiate the configuration header FILE
16632 Configuration files:
16635 Configuration headers:
16638 Configuration links:
16641 Configuration commands:
16644 Report bugs to <http://github.com/atgreen/libffi/issues>."
16647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16649 libffi config.status 3.99999
16650 configured by $0, generated by GNU Autoconf 2.64,
16651 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16653 Copyright (C) 2009 Free Software Foundation, Inc.
16654 This config.status script is free software; the Free Software Foundation
16655 gives unlimited permission to copy, distribute and modify it."
16662 test -n "\$AWK" || AWK=awk
16665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16666 # The default lists apply if the user does not specify any file.
16672 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16673 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16684 # Handling of the options.
16685 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16687 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16688 $as_echo "$ac_cs_version"; exit ;;
16689 --debug |
--debu |
--deb |
--de |
--d |
-d )
16691 --file |
--fil |
--fi |
--f )
16694 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16696 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16697 ac_need_defaults
=false
;;
16698 --header |
--heade |
--head |
--hea )
16701 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16703 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16704 ac_need_defaults
=false
;;
16706 # Conflict between --help and --header
16707 as_fn_error
"ambiguous option: \`$1'
16708 Try \`$0 --help' for more information.";;
16709 --help |
--hel |
-h )
16710 $as_echo "$ac_cs_usage"; exit ;;
16711 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16712 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16715 # This is an error.
16716 -*) as_fn_error
"unrecognized option: \`$1'
16717 Try \`$0 --help' for more information." ;;
16719 *) as_fn_append ac_config_targets
" $1"
16720 ac_need_defaults
=false
;;
16726 ac_configure_extra_args
=
16728 if $ac_cs_silent; then
16730 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16735 if \$ac_cs_recheck; then
16736 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16738 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16739 CONFIG_SHELL='$SHELL'
16740 export CONFIG_SHELL
16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16750 ## Running $as_me. ##
16756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16764 with_multisubdir="$with_multisubdir"
16765 with_multisrctop="$with_multisrctop"
16766 with_target_subdir="$with_target_subdir"
16767 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16768 multi_basedir="$multi_basedir"
16769 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16772 GFORTRAN="$GFORTRAN"
16774 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16777 # The HP-UX ksh and POSIX shell print the target directory to stdout
16778 # if CDPATH is set.
16779 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16781 sed_quote_subst='$sed_quote_subst'
16782 double_quote_subst='$double_quote_subst'
16783 delay_variable_subst='$delay_variable_subst'
16784 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16785 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16786 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16787 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16788 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16789 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16790 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16791 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16792 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16793 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16794 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16795 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16796 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16797 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16798 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16799 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16800 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16801 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16802 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16803 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16804 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16805 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16806 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16807 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16808 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16809 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16810 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16811 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16812 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16813 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16814 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16815 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16816 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16817 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16818 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16819 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16820 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16821 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16822 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16823 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16824 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16825 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16826 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16827 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16828 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16829 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16830 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16831 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16832 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16833 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16834 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16835 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16836 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16837 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16838 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16839 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16840 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16841 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16842 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16843 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16844 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16845 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16846 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16847 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16848 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16849 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16850 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16851 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16852 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16853 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16854 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16855 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16856 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16857 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16858 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16859 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16860 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16861 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16862 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16863 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16864 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16865 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16866 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16867 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16868 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16869 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16870 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16871 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16872 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16873 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16874 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16875 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16876 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16877 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16878 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16879 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16880 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16881 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16882 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16883 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16884 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16885 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16886 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16887 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16888 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16889 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16890 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16891 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16892 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16893 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16894 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16895 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16896 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16897 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16898 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16899 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16900 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16901 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16902 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16903 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16904 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16905 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16906 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16907 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16908 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16909 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16910 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16911 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16912 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16913 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16914 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16915 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16916 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16917 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16918 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16919 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16920 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16921 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16922 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16923 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16924 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16925 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16926 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16927 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16928 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16929 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16930 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16931 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16932 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16933 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16934 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16935 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16936 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16937 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16938 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16939 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16940 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16941 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16942 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16943 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16944 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16945 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16946 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16947 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16948 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16949 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16950 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16951 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16952 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16953 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16954 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16955 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16956 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16957 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16958 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16961 LTCFLAGS='$LTCFLAGS'
16962 compiler='$compiler_DEFAULT'
16964 # A function that is used when there is no print builtin or printf.
16965 func_fallback_echo ()
16967 eval 'cat <<_LTECHO_EOF
16972 # Quote evaled strings.
16986 deplibs_check_method \
16995 lt_cv_sys_global_symbol_pipe \
16996 lt_cv_sys_global_symbol_to_cdecl \
16997 lt_cv_sys_global_symbol_to_c_name_address \
16998 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16999 lt_prog_compiler_no_builtin_flag \
17000 lt_prog_compiler_wl \
17001 lt_prog_compiler_pic \
17002 lt_prog_compiler_static \
17003 lt_cv_prog_compiler_c_o \
17011 export_dynamic_flag_spec \
17012 whole_archive_flag_spec \
17013 compiler_needs_object \
17015 allow_undefined_flag \
17016 no_undefined_flag \
17017 hardcode_libdir_flag_spec \
17018 hardcode_libdir_flag_spec_ld \
17019 hardcode_libdir_separator \
17024 variables_saved_for_relink \
17026 library_names_spec \
17028 install_override_mode \
17032 compiler_lib_search_dirs \
17037 compiler_lib_search_path \
17041 lt_prog_compiler_no_builtin_flag_CXX \
17042 lt_prog_compiler_wl_CXX \
17043 lt_prog_compiler_pic_CXX \
17044 lt_prog_compiler_static_CXX \
17045 lt_cv_prog_compiler_c_o_CXX \
17046 export_dynamic_flag_spec_CXX \
17047 whole_archive_flag_spec_CXX \
17048 compiler_needs_object_CXX \
17050 allow_undefined_flag_CXX \
17051 no_undefined_flag_CXX \
17052 hardcode_libdir_flag_spec_CXX \
17053 hardcode_libdir_flag_spec_ld_CXX \
17054 hardcode_libdir_separator_CXX \
17055 fix_srcfile_path_CXX \
17056 exclude_expsyms_CXX \
17057 include_expsyms_CXX \
17058 file_list_spec_CXX \
17059 compiler_lib_search_dirs_CXX \
17060 predep_objects_CXX \
17061 postdep_objects_CXX \
17064 compiler_lib_search_path_CXX; do
17065 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17066 *[\\\\\\\`\\"\\\$]*)
17067 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17070 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17075 # Double-quote double-evaled strings.
17076 for var in reload_cmds \
17077 old_postinstall_cmds \
17078 old_postuninstall_cmds \
17080 extract_expsyms_cmds \
17081 old_archive_from_new_cmds \
17082 old_archive_from_expsyms_cmds \
17084 archive_expsym_cmds \
17086 module_expsym_cmds \
17087 export_symbols_cmds \
17090 postuninstall_cmds \
17092 sys_lib_search_path_spec \
17093 sys_lib_dlsearch_path_spec \
17095 old_archive_cmds_CXX \
17096 old_archive_from_new_cmds_CXX \
17097 old_archive_from_expsyms_cmds_CXX \
17099 archive_expsym_cmds_CXX \
17101 module_expsym_cmds_CXX \
17102 export_symbols_cmds_CXX \
17103 prelink_cmds_CXX; do
17104 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17105 *[\\\\\\\`\\"\\\$]*)
17106 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17109 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17114 ac_aux_dir='$ac_aux_dir'
17115 xsi_shell='$xsi_shell'
17116 lt_shell_append='$lt_shell_append'
17118 # See if we are running on zsh, and set the options which allow our
17119 # commands through without removal of \ escapes INIT.
17120 if test -n "\${ZSH_VERSION+set}" ; then
17121 setopt NO_GLOB_SUBST
17127 TIMESTAMP='$TIMESTAMP'
17135 TARGETDIR="$TARGETDIR"
17139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17141 # Handling of arguments.
17142 for ac_config_target
in $ac_config_targets
17144 case $ac_config_target in
17145 "fficonfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS fficonfig.h" ;;
17146 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17147 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17148 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17149 "include") CONFIG_COMMANDS
="$CONFIG_COMMANDS include" ;;
17150 "src") CONFIG_COMMANDS
="$CONFIG_COMMANDS src" ;;
17151 "include/ffitarget.h") CONFIG_LINKS
="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17152 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
17153 "include/ffi.h") CONFIG_FILES
="$CONFIG_FILES include/ffi.h" ;;
17154 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17155 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17156 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
17157 "libffi.pc") CONFIG_FILES
="$CONFIG_FILES libffi.pc" ;;
17159 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17164 # If the user did not use the arguments to specify the items to instantiate,
17165 # then the envvar interface is used. Set only those that are not.
17166 # We use the long form for the default assignment because of an extremely
17167 # bizarre bug on SunOS 4.1.3.
17168 if $ac_need_defaults; then
17169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17171 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17172 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17175 # Have a temporary directory for convenience. Make it in the build tree
17176 # simply because there is no reason against having it here, and in addition,
17177 # creating and moving files from /tmp can sometimes cause problems.
17178 # Hook for its removal unless debugging.
17179 # Note that there is a small window in which the directory will not be cleaned:
17180 # after its creation but before its name has been assigned to `$tmp'.
17184 trap 'exit_status=$?
17185 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17187 trap 'as_fn_exit 1' 1 2 13 15
17189 # Create a (secure) tmp directory for tmp files.
17192 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17193 test -n "$tmp" && test -d "$tmp"
17196 tmp
=.
/conf$$
-$RANDOM
17197 (umask 077 && mkdir
"$tmp")
17198 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17200 # Set up the scripts for CONFIG_FILES section.
17201 # No need to generate them if there are no CONFIG_FILES.
17202 # This happens for instance with `./config.status config.h'.
17203 if test -n "$CONFIG_FILES"; then
17206 ac_cr
=`echo X | tr X '\015'`
17207 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17208 # But we know of no other shell where ac_cr would be empty at this
17209 # point, so we can use a bashism as a fallback.
17210 if test "x$ac_cr" = x
; then
17211 eval ac_cr
=\$
\'\\r
\'
17213 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17214 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17217 ac_cs_awk_cr
=$ac_cr
17220 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17225 echo "cat >conf$$subs.awk <<_ACEOF" &&
17226 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17228 } >conf$$subs.sh ||
17229 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17230 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17232 for ac_last_try in false false false false false :; do
17233 . ./conf$$subs.sh ||
17234 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17236 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17237 if test $ac_delim_n = $ac_delim_num; then
17239 elif $ac_last_try; then
17240 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17242 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17245 rm -f conf$$subs.sh
17247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17248 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17252 s/^/S["/; s
/!.
*/"]=/
17262 s/\(.\{148\}\).*/\1/
17264 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17269 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17276 s/\(.\{148\}\).*/\1/
17278 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17282 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17287 ' <conf$$subs.awk | sed '
17292 ' >>$CONFIG_STATUS || ac_write_fail=1
17293 rm -f conf$$subs.awk
17294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17296 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17297 for (key in S) S_is_set[key] = 1
17303 nfields = split(line, field, "@
")
17305 len = length(field[1])
17306 for (i = 2; i < nfields; i++) {
17308 keylen = length(key)
17309 if (S_is_set[key]) {
17311 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17312 len += length(value) + length(field[++i])
17323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17324 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17325 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17328 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17329 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17334 # trailing colons and then remove the whole line if VPATH becomes empty
17335 # (actually we leave an empty line to preserve line numbers).
17336 if test "x
$srcdir" = x.; then
17337 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17338 s/:*\$(srcdir):*/:/
17339 s/:*\${srcdir}:*/:/
17341 s/^\([^=]*=[ ]*\):*/\1/
17347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17348 fi # test -n "$CONFIG_FILES"
17350 # Set up the scripts for CONFIG_HEADERS section.
17351 # No need to generate them if there are no CONFIG_HEADERS.
17352 # This happens for instance with `./config.status Makefile'.
17353 if test -n "$CONFIG_HEADERS"; then
17354 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17358 # Transform confdefs.h into an awk script `defines.awk', embedded as
17359 # here-document in config.status, that substitutes the proper values into
17360 # config.h.in to produce config.h.
17362 # Create a delimiter string that does not exist in confdefs.h, to ease
17363 # handling of long lines.
17365 for ac_last_try in false false :; do
17366 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17367 if test -z "$ac_t"; then
17369 elif $ac_last_try; then
17370 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17372 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17376 # For the awk script, D is an array of macro values keyed by name,
17377 # likewise P contains macro parameters if any. Preserve backslash
17378 # newline sequences.
17380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17382 s/.\{148\}/&'"$ac_delim"'/g
17385 s/^[ ]*#[ ]*define[ ][ ]*/ /
17392 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17394 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17399 D["\
1"]=" \
3\\\\\\n
"\\/p
17401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17406 s/.\{148\}/&'"$ac_delim"'/g
17411 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17414 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17416 ' <confdefs.h | sed '
17417 s/'"$ac_delim"'/"\\\
17418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17421 for (key in D) D_is_set[key] = 1
17424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17426 split(line, arg, " ")
17427 if (arg[1] == "#") {
17431 defundef
= substr
(arg
[1], 2)
17434 split(mac1
, mac2
, "(") #)
17436 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17437 if (D_is_set
[macro
]) {
17438 # Preserve the white space surrounding the "#".
17439 print prefix
"define", macro P
[macro
] D
[macro
]
17442 # Replace #undef with comments. This is necessary, for example,
17443 # in the case of _POSIX_SOURCE, which is predefined and required
17444 # on some systems where configure will not decide to define it.
17445 if (defundef
== "undef") {
17446 print
"/*", prefix defundef
, macro
, "*/"
17454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17455 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17456 fi # test -n "$CONFIG_HEADERS"
17459 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17464 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17466 case $ac_mode$ac_tag in
17468 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17469 :[FH
]-) ac_tag
=-:-;;
17470 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17487 -) ac_f
="$tmp/stdin";;
17488 *) # Look for the file first in the build tree, then in the source tree
17489 # (if the path is not absolute). The absolute path cannot be DOS-style,
17490 # because $ac_f cannot contain `:'.
17494 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17496 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17498 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17499 as_fn_append ac_file_inputs
" '$ac_f'"
17502 # Let's still pretend it is `configure' which instantiates (i.e., don't
17503 # use $as_me), people would be surprised to read:
17504 # /* config.h. Generated by config.status. */
17505 configure_input
='Generated from '`
17506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17508 if test x
"$ac_file" != x-
; then
17509 configure_input
="$ac_file. $configure_input"
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17511 $as_echo "$as_me: creating $ac_file" >&6;}
17513 # Neutralize special characters interpreted by sed in replacement strings.
17514 case $configure_input in #(
17515 *\
&* |
*\|
* |
*\\* )
17516 ac_sed_conf_input
=`$as_echo "$configure_input" |
17517 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17518 *) ac_sed_conf_input
=$configure_input;;
17522 *:-:* |
*:-) cat >"$tmp/stdin" \
17523 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17528 ac_dir
=`$as_dirname -- "$ac_file" ||
17529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17530 X"$ac_file" : 'X\(//\)[^/]' \| \
17531 X"$ac_file" : 'X\(//\)$' \| \
17532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17533 $as_echo X"$ac_file" |
17534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17538 /^X\(\/\/\)[^/].*/{
17551 as_dir
="$ac_dir"; as_fn_mkdir_p
17555 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17557 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17558 # A ".." for each directory in $ac_dir_suffix.
17559 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17560 case $ac_top_builddir_sub in
17561 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17562 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17565 ac_abs_top_builddir
=$ac_pwd
17566 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17567 # for backward compatibility:
17568 ac_top_builddir
=$ac_top_build_prefix
17571 .
) # We are building in place.
17573 ac_top_srcdir
=$ac_top_builddir_sub
17574 ac_abs_top_srcdir
=$ac_pwd ;;
17575 [\\/]* | ?
:[\\/]* ) # Absolute name.
17576 ac_srcdir
=$srcdir$ac_dir_suffix;
17577 ac_top_srcdir
=$srcdir
17578 ac_abs_top_srcdir
=$srcdir ;;
17579 *) # Relative name.
17580 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17581 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17582 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17584 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17594 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17595 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17597 ac_MKDIR_P
=$MKDIR_P
17599 [\\/$
]* | ?
:[\\/]* ) ;;
17600 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17605 # If the template does not know about datarootdir, expand it.
17606 # FIXME: This hack should be removed a few years after 2.60.
17607 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17619 *datarootdir
*) ac_datarootdir_seen
=yes;;
17620 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17625 ac_datarootdir_hack='
17626 s&@datadir@&$datadir&g
17627 s&@docdir@&$docdir&g
17628 s&@infodir@&$infodir&g
17629 s&@localedir@&$localedir&g
17630 s&@mandir@&$mandir&g
17631 s&\\\${datarootdir}&$datarootdir&g' ;;
17635 # Neutralize VPATH when `$srcdir' = `.'.
17636 # Shell code in configure.ac might set extrasub.
17637 # FIXME: do we really want to maintain this feature?
17638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17639 ac_sed_extra="$ac_vpsub
17642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17644 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17645 s|@configure_input@|
$ac_sed_conf_input|
;t t
17646 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17647 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17648 s
&@srcdir@
&$ac_srcdir&;t t
17649 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17650 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17651 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17652 s
&@builddir@
&$ac_builddir&;t t
17653 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17654 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17655 s
&@INSTALL@
&$ac_INSTALL&;t t
17656 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17657 $ac_datarootdir_hack
17659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17660 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17666 which seems to be undefined. Please make sure it is defined." >&5
17667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17668 which seems to be undefined. Please make sure it is defined." >&2;}
17672 -) cat "$tmp/out" && rm -f "$tmp/out";;
17673 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17675 || as_fn_error "could not create $ac_file" "$LINENO" 5
17681 if test x"$ac_file" != x-; then
17683 $as_echo "/* $configure_input */" \
17684 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17685 } >"$tmp/config.h" \
17686 || as_fn_error "could not create $ac_file" "$LINENO" 5
17687 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17692 mv "$tmp/config.h" "$ac_file" \
17693 || as_fn_error "could not create $ac_file" "$LINENO" 5
17696 $as_echo "/* $configure_input */" \
17697 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17698 || as_fn_error "could not create -" "$LINENO" 5
17700 # Compute "$ac_file"'s index
in $config_headers.
17703 for _am_header
in $config_headers :; do
17704 case $_am_header in
17705 $_am_arg |
$_am_arg:* )
17708 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17711 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17712 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17713 X"$_am_arg" : 'X\(//\)[^/]' \| \
17714 X"$_am_arg" : 'X\(//\)$' \| \
17715 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17716 $as_echo X"$_am_arg" |
17717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17721 /^X\(\/\/\)[^/].*/{
17733 s/.*/./; q'`/stamp-h
$_am_stamp_count
17740 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17743 # Prefer the file from the source tree if names are identical.
17744 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
17745 ac_source
=$srcdir/$ac_source
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17749 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17751 if test ! -r "$ac_source"; then
17752 as_fn_error
"$ac_source: file not found" "$LINENO" 5
17756 # Try a relative symlink, then a hard link, then a copy.
17758 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
17759 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
17761 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
17762 ln "$ac_source" "$ac_file" 2>/dev
/null ||
17763 cp -p "$ac_source" "$ac_file" ||
17764 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17767 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17768 $as_echo "$as_me: executing $ac_file commands" >&6;}
17773 case $ac_file$ac_mode in
17775 # Only add multilib support code if we just rebuilt the top-level
17777 case " $CONFIG_FILES " in
17779 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17782 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17783 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17784 # are listed without --file. Let's play safe and only enable the eval
17785 # if we detect the quoting.
17786 case $CONFIG_FILES in
17787 *\'*) eval set x
"$CONFIG_FILES" ;;
17788 *) set x
$CONFIG_FILES ;;
17793 # Strip MF so we end up with the name of the file.
17794 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17795 # Check whether this is an Automake generated Makefile or not.
17796 # We used to match only the files named `Makefile.in', but
17797 # some people rename them; so instead we look at the file content.
17798 # Grep'ing the first line is not enough: some people post-process
17799 # each Makefile.in and add a new line on top of each file to say so.
17800 # Grep'ing the whole file is not good either: AIX grep has a line
17801 # limit of 2048, but all sed's we know have understand at least 4000.
17802 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17803 dirpart
=`$as_dirname -- "$mf" ||
17804 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17805 X"$mf" : 'X\(//\)[^/]' \| \
17806 X"$mf" : 'X\(//\)$' \| \
17807 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17813 /^X\(\/\/\)[^/].*/{
17829 # Extract the definition of DEPDIR, am__include, and am__quote
17830 # from the Makefile without running `make'.
17831 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17832 test -z "$DEPDIR" && continue
17833 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17834 test -z "am__include" && continue
17835 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17836 # When using ansi2knr, U may be empty or an underscore; expand it
17837 U
=`sed -n 's/^U = //p' < "$mf"`
17838 # Find all dependency output files, they are included files with
17839 # $(DEPDIR) in their names. We invoke sed twice because it is the
17840 # simplest approach to changing $(DEPDIR) to its actual value in the
17842 for file in `sed -n "
17843 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17844 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17845 # Make sure the directory exists.
17846 test -f "$dirpart/$file" && continue
17847 fdir
=`$as_dirname -- "$file" ||
17848 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17849 X"$file" : 'X\(//\)[^/]' \| \
17850 X"$file" : 'X\(//\)$' \| \
17851 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17852 $as_echo X"$file" |
17853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17857 /^X\(\/\/\)[^/].*/{
17870 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17871 # echo "creating $dirpart/$file"
17872 echo '# dummy' > "$dirpart/$file"
17879 # See if we are running on zsh, and set the options which allow our
17880 # commands through without removal of \ escapes.
17881 if test -n "${ZSH_VERSION+set}" ; then
17882 setopt NO_GLOB_SUBST
17885 cfgfile
="${ofile}T"
17886 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17889 cat <<_LT_EOF >> "$cfgfile"
17892 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17893 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17894 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17895 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17897 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17898 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17899 # Written by Gordon Matzigkeit, 1996
17901 # This file is part of GNU Libtool.
17903 # GNU Libtool is free software; you can redistribute it and/or
17904 # modify it under the terms of the GNU General Public License as
17905 # published by the Free Software Foundation; either version 2 of
17906 # the License, or (at your option) any later version.
17908 # As a special exception to the GNU General Public License,
17909 # if you distribute this file as part of a program or library that
17910 # is built using GNU Libtool, you may include this file under the
17911 # same distribution terms that you use for the rest of that program.
17913 # GNU Libtool is distributed in the hope that it will be useful,
17914 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17915 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17916 # GNU General Public License for more details.
17918 # You should have received a copy of the GNU General Public License
17919 # along with GNU Libtool; see the file COPYING. If not, a copy
17920 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17921 # obtained by writing to the Free Software Foundation, Inc.,
17922 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17925 # The names of the tagged configurations supported by this script.
17926 available_tags="CXX "
17928 # ### BEGIN LIBTOOL CONFIG
17930 # Which release of libtool.m4 was used?
17931 macro_version=$macro_version
17932 macro_revision=$macro_revision
17934 # Whether or not to build shared libraries.
17935 build_libtool_libs=$enable_shared
17937 # Whether or not to build static libraries.
17938 build_old_libs=$enable_static
17940 # What type of objects to build.
17943 # Whether or not to optimize for fast installation.
17944 fast_install=$enable_fast_install
17946 # Shell to use when invoking shell scripts.
17949 # An echo program that protects backslashes.
17953 host_alias=$host_alias
17957 # The build system.
17958 build_alias=$build_alias
17962 # A sed program that does not truncate output.
17965 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17966 Xsed="\$SED -e 1s/^X//"
17968 # A grep program that handles long lines.
17974 # A literal string matcher.
17977 # A BSD- or MS-compatible name lister.
17980 # Whether we need soft or hard links.
17983 # What is the maximum length of a command?
17984 max_cmd_len=$max_cmd_len
17986 # Object file suffix (normally "o").
17989 # Executable file suffix (normally "").
17992 # whether the shell understands "unset".
17995 # turn spaces into newlines.
17998 # turn newlines into spaces.
18001 # An object symbol dumper.
18002 OBJDUMP=$lt_OBJDUMP
18004 # Method to check whether dependent libraries are shared objects.
18005 deplibs_check_method=$lt_deplibs_check_method
18007 # Command to use when deplibs_check_method == "file_magic".
18008 file_magic_cmd=$lt_file_magic_cmd
18012 AR_FLAGS=$lt_AR_FLAGS
18014 # A symbol stripping program.
18017 # Commands used to install an old-style archive.
18019 old_postinstall_cmds=$lt_old_postinstall_cmds
18020 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18022 # Whether to use a lock for old archive extraction.
18023 lock_old_archive_extraction=$lock_old_archive_extraction
18028 # LTCC compiler flags.
18029 LTCFLAGS=$lt_CFLAGS
18031 # Take the output of nm and produce a listing of raw symbols and C names.
18032 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18034 # Transform the output of nm in a proper C declaration.
18035 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18037 # Transform the output of nm in a C name address pair.
18038 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18040 # Transform the output of nm in a C name address pair when lib prefix is needed.
18041 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18043 # The name of the directory that contains temporary libtool files.
18046 # Used to examine libraries when file_magic_cmd begins with "file".
18047 MAGIC_CMD=$MAGIC_CMD
18049 # Must we lock files when doing compilation?
18050 need_locks=$lt_need_locks
18052 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18053 DSYMUTIL=$lt_DSYMUTIL
18055 # Tool to change global to local symbols on Mac OS X.
18058 # Tool to manipulate fat objects and archives on Mac OS X.
18061 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18064 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18065 OTOOL64=$lt_OTOOL64
18067 # Old archive suffix (normally "a").
18070 # Shared library suffix (normally ".so").
18071 shrext_cmds=$lt_shrext_cmds
18073 # The commands to extract the exported symbol list from a shared archive.
18074 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18076 # Variables whose values should be saved in libtool wrapper scripts and
18077 # restored at link time.
18078 variables_saved_for_relink=$lt_variables_saved_for_relink
18080 # Do we need the "lib" prefix for modules?
18081 need_lib_prefix=$need_lib_prefix
18083 # Do we need a version for libraries?
18084 need_version=$need_version
18086 # Library versioning type.
18087 version_type=$version_type
18089 # Shared library runtime path variable.
18090 runpath_var=$runpath_var
18092 # Shared library path variable.
18093 shlibpath_var=$shlibpath_var
18095 # Is shlibpath searched before the hard-coded library search path?
18096 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18098 # Format of library name prefix.
18099 libname_spec=$lt_libname_spec
18101 # List of archive names. First name is the real one, the rest are links.
18102 # The last name is the one that the linker finds with -lNAME
18103 library_names_spec=$lt_library_names_spec
18105 # The coded name of the library, if different from the real name.
18106 soname_spec=$lt_soname_spec
18108 # Permission mode override for installation of shared libraries.
18109 install_override_mode=$lt_install_override_mode
18111 # Command to use after installation of a shared archive.
18112 postinstall_cmds=$lt_postinstall_cmds
18114 # Command to use after uninstallation of a shared archive.
18115 postuninstall_cmds=$lt_postuninstall_cmds
18117 # Commands used to finish a libtool library installation in a directory.
18118 finish_cmds=$lt_finish_cmds
18120 # As "finish_cmds", except a single script fragment to be evaled but
18122 finish_eval=$lt_finish_eval
18124 # Whether we should hardcode library paths into libraries.
18125 hardcode_into_libs=$hardcode_into_libs
18127 # Compile-time system search path for libraries.
18128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18130 # Run-time system search path for libraries.
18131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18133 # Whether dlopen is supported.
18134 dlopen_support=$enable_dlopen
18136 # Whether dlopen of programs is supported.
18137 dlopen_self=$enable_dlopen_self
18139 # Whether dlopen of statically linked programs is supported.
18140 dlopen_self_static=$enable_dlopen_self_static
18142 # Commands to strip libraries.
18143 old_striplib=$lt_old_striplib
18144 striplib=$lt_striplib
18147 # The linker used to build libraries.
18150 # How to create reloadable object files.
18151 reload_flag=$lt_reload_flag
18152 reload_cmds=$lt_reload_cmds
18154 # Commands used to build an old-style archive.
18155 old_archive_cmds=$lt_old_archive_cmds
18157 # A language specific compiler.
18160 # Is the compiler the GNU compiler?
18163 # Compiler flag to turn off builtin functions.
18164 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18166 # How to pass a linker flag through the compiler.
18167 wl=$lt_lt_prog_compiler_wl
18169 # Additional compiler flags for building library objects.
18170 pic_flag=$lt_lt_prog_compiler_pic
18172 # Compiler flag to prevent dynamic linking.
18173 link_static_flag=$lt_lt_prog_compiler_static
18175 # Does compiler simultaneously support -c and -o options?
18176 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18178 # Whether or not to add -lc for building shared libraries.
18179 build_libtool_need_lc=$archive_cmds_need_lc
18181 # Whether or not to disallow shared libs when runtime libs are static.
18182 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18184 # Compiler flag to allow reflexive dlopens.
18185 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18187 # Compiler flag to generate shared objects directly from archives.
18188 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18190 # Whether the compiler copes with passing no objects directly.
18191 compiler_needs_object=$lt_compiler_needs_object
18193 # Create an old-style archive from a shared archive.
18194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18196 # Create a temporary old-style archive to link instead of a shared archive.
18197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18199 # Commands used to build a shared archive.
18200 archive_cmds=$lt_archive_cmds
18201 archive_expsym_cmds=$lt_archive_expsym_cmds
18203 # Commands used to build a loadable module if different from building
18204 # a shared archive.
18205 module_cmds=$lt_module_cmds
18206 module_expsym_cmds=$lt_module_expsym_cmds
18208 # Whether we are building with GNU ld or not.
18209 with_gnu_ld=$lt_with_gnu_ld
18211 # Flag that allows shared libraries with undefined symbols to be built.
18212 allow_undefined_flag=$lt_allow_undefined_flag
18214 # Flag that enforces no undefined symbols.
18215 no_undefined_flag=$lt_no_undefined_flag
18217 # Flag to hardcode \$libdir into a binary during linking.
18218 # This must work even if \$libdir does not exist
18219 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18221 # If ld is used when linking, flag to hardcode \$libdir into a binary
18222 # during linking. This must work even if \$libdir does not exist.
18223 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18225 # Whether we need a single "-rpath" flag with a separated argument.
18226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18228 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18229 # DIR into the resulting binary.
18230 hardcode_direct=$hardcode_direct
18232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18233 # DIR into the resulting binary and the resulting library dependency is
18234 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18235 # library is relocated.
18236 hardcode_direct_absolute=$hardcode_direct_absolute
18238 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18239 # into the resulting binary.
18240 hardcode_minus_L=$hardcode_minus_L
18242 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18243 # into the resulting binary.
18244 hardcode_shlibpath_var=$hardcode_shlibpath_var
18246 # Set to "yes" if building a shared library automatically hardcodes DIR
18247 # into the library and all subsequent libraries and executables linked
18249 hardcode_automatic=$hardcode_automatic
18251 # Set to yes if linker adds runtime paths of dependent libraries
18252 # to runtime path list.
18253 inherit_rpath=$inherit_rpath
18255 # Whether libtool must link a program against all its dependency libraries.
18256 link_all_deplibs=$link_all_deplibs
18258 # Fix the shell variable \$srcfile for the compiler.
18259 fix_srcfile_path=$lt_fix_srcfile_path
18261 # Set to "yes" if exported symbols are required.
18262 always_export_symbols=$always_export_symbols
18264 # The commands to list exported symbols.
18265 export_symbols_cmds=$lt_export_symbols_cmds
18267 # Symbols that should not be listed in the preloaded symbols.
18268 exclude_expsyms=$lt_exclude_expsyms
18270 # Symbols that must always be exported.
18271 include_expsyms=$lt_include_expsyms
18273 # Commands necessary for linking programs (against libraries) with templates.
18274 prelink_cmds=$lt_prelink_cmds
18276 # Specify filename containing input files.
18277 file_list_spec=$lt_file_list_spec
18279 # How to hardcode a shared library path into an executable.
18280 hardcode_action=$hardcode_action
18282 # The directories searched by this compiler when creating a shared library.
18283 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18285 # Dependencies to place before and after the objects being linked to
18286 # create a shared library.
18287 predep_objects=$lt_predep_objects
18288 postdep_objects=$lt_postdep_objects
18289 predeps=$lt_predeps
18290 postdeps=$lt_postdeps
18292 # The library search path used internally by the compiler when linking
18293 # a shared library.
18294 compiler_lib_search_path=$lt_compiler_lib_search_path
18296 # ### END LIBTOOL CONFIG
18302 cat <<\_LT_EOF
>> "$cfgfile"
18303 # AIX sometimes has problems with the GCC collect2 program. For some
18304 # reason, if we set the COLLECT_NAMES environment variable, the problems
18305 # vanish in a puff of smoke.
18306 if test "X${COLLECT_NAMES+set}" != Xset
; then
18308 export COLLECT_NAMES
18315 ltmain
="$ac_aux_dir/ltmain.sh"
18318 # We use sed instead of cat because bash on DJGPP gets confused if
18319 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18320 # text mode, it properly converts lines to CR/LF. This bash problem
18321 # is reportedly fixed, but why not run on old versions too?
18322 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18323 ||
(rm -f "$cfgfile"; exit 1)
18327 cat << \_LT_EOF
>> "$cfgfile"
18329 # func_dirname file append nondir_replacement
18330 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18331 # otherwise set result to NONDIR_REPLACEMENT.
18335 */*) func_dirname_result
="${1%/*}${2}" ;;
18336 * ) func_dirname_result
="${3}" ;;
18340 # func_basename file
18343 func_basename_result
="${1##*/}"
18346 # func_dirname_and_basename file append nondir_replacement
18347 # perform func_basename and func_dirname in a single function
18349 # dirname: Compute the dirname of FILE. If nonempty,
18350 # add APPEND to the result, otherwise set result
18351 # to NONDIR_REPLACEMENT.
18352 # value returned in "$func_dirname_result"
18353 # basename: Compute filename of FILE.
18354 # value retuned in "$func_basename_result"
18355 # Implementation must be kept synchronized with func_dirname
18356 # and func_basename. For efficiency, we do not delegate to
18357 # those functions but instead duplicate the functionality here.
18358 func_dirname_and_basename
()
18361 */*) func_dirname_result
="${1%/*}${2}" ;;
18362 * ) func_dirname_result
="${3}" ;;
18364 func_basename_result
="${1##*/}"
18367 # func_stripname prefix suffix name
18368 # strip PREFIX and SUFFIX off of NAME.
18369 # PREFIX and SUFFIX must not contain globbing or regex special
18370 # characters, hashes, percent signs, but SUFFIX may contain a leading
18371 # dot (in which case that matches only a dot).
18374 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18375 # positional parameters, so assign one to ordinary parameter first.
18376 func_stripname_result
=${3}
18377 func_stripname_result
=${func_stripname_result#"${1}"}
18378 func_stripname_result
=${func_stripname_result%"${2}"}
18384 func_opt_split_opt
=${1%%=*}
18385 func_opt_split_arg
=${1#*=}
18392 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18393 *) func_lo2o_result
=${1} ;;
18397 # func_xform libobj-or-source
18400 func_xform_result
=${1%.*}.lo
18403 # func_arith arithmetic-term...
18406 func_arith_result
=$
(( $
* ))
18410 # STRING may not start with a hyphen.
18413 func_len_result
=${#1}
18418 *) # Bourne compatible functions.
18419 cat << \_LT_EOF
>> "$cfgfile"
18421 # func_dirname file append nondir_replacement
18422 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18423 # otherwise set result to NONDIR_REPLACEMENT.
18426 # Extract subdirectory from the argument.
18427 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18428 if test "X$func_dirname_result" = "X${1}"; then
18429 func_dirname_result
="${3}"
18431 func_dirname_result
="$func_dirname_result${2}"
18435 # func_basename file
18438 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18442 # func_stripname prefix suffix name
18443 # strip PREFIX and SUFFIX off of NAME.
18444 # PREFIX and SUFFIX must not contain globbing or regex special
18445 # characters, hashes, percent signs, but SUFFIX may contain a leading
18446 # dot (in which case that matches only a dot).
18447 # func_strip_suffix prefix name
18451 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18452 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18457 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18458 my_sed_long_arg
='1s/^-[^=]*=//'
18463 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18464 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18470 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18473 # func_xform libobj-or-source
18476 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18479 # func_arith arithmetic-term...
18482 func_arith_result
=`expr "$@"`
18486 # STRING may not start with a hyphen.
18489 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18495 case $lt_shell_append in
18497 cat << \_LT_EOF
>> "$cfgfile"
18499 # func_append var value
18500 # Append VALUE to the end of shell variable VAR.
18508 cat << \_LT_EOF
>> "$cfgfile"
18510 # func_append var value
18511 # Append VALUE to the end of shell variable VAR.
18522 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18523 ||
(rm -f "$cfgfile"; exit 1)
18525 mv -f "$cfgfile" "$ofile" ||
18526 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18530 cat <<_LT_EOF >> "$ofile"
18532 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18534 # The linker used to build libraries.
18537 # How to create reloadable object files.
18538 reload_flag=$lt_reload_flag_CXX
18539 reload_cmds=$lt_reload_cmds_CXX
18541 # Commands used to build an old-style archive.
18542 old_archive_cmds=$lt_old_archive_cmds_CXX
18544 # A language specific compiler.
18545 CC=$lt_compiler_CXX
18547 # Is the compiler the GNU compiler?
18550 # Compiler flag to turn off builtin functions.
18551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18553 # How to pass a linker flag through the compiler.
18554 wl=$lt_lt_prog_compiler_wl_CXX
18556 # Additional compiler flags for building library objects.
18557 pic_flag=$lt_lt_prog_compiler_pic_CXX
18559 # Compiler flag to prevent dynamic linking.
18560 link_static_flag=$lt_lt_prog_compiler_static_CXX
18562 # Does compiler simultaneously support -c and -o options?
18563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18565 # Whether or not to add -lc for building shared libraries.
18566 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18568 # Whether or not to disallow shared libs when runtime libs are static.
18569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18571 # Compiler flag to allow reflexive dlopens.
18572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18574 # Compiler flag to generate shared objects directly from archives.
18575 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18577 # Whether the compiler copes with passing no objects directly.
18578 compiler_needs_object=$lt_compiler_needs_object_CXX
18580 # Create an old-style archive from a shared archive.
18581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18583 # Create a temporary old-style archive to link instead of a shared archive.
18584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18586 # Commands used to build a shared archive.
18587 archive_cmds=$lt_archive_cmds_CXX
18588 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18590 # Commands used to build a loadable module if different from building
18591 # a shared archive.
18592 module_cmds=$lt_module_cmds_CXX
18593 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18595 # Whether we are building with GNU ld or not.
18596 with_gnu_ld=$lt_with_gnu_ld_CXX
18598 # Flag that allows shared libraries with undefined symbols to be built.
18599 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18601 # Flag that enforces no undefined symbols.
18602 no_undefined_flag=$lt_no_undefined_flag_CXX
18604 # Flag to hardcode \$libdir into a binary during linking.
18605 # This must work even if \$libdir does not exist
18606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18608 # If ld is used when linking, flag to hardcode \$libdir into a binary
18609 # during linking. This must work even if \$libdir does not exist.
18610 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18612 # Whether we need a single "-rpath" flag with a separated argument.
18613 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18616 # DIR into the resulting binary.
18617 hardcode_direct=$hardcode_direct_CXX
18619 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18620 # DIR into the resulting binary and the resulting library dependency is
18621 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18622 # library is relocated.
18623 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18625 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18626 # into the resulting binary.
18627 hardcode_minus_L=$hardcode_minus_L_CXX
18629 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18630 # into the resulting binary.
18631 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18633 # Set to "yes" if building a shared library automatically hardcodes DIR
18634 # into the library and all subsequent libraries and executables linked
18636 hardcode_automatic=$hardcode_automatic_CXX
18638 # Set to yes if linker adds runtime paths of dependent libraries
18639 # to runtime path list.
18640 inherit_rpath=$inherit_rpath_CXX
18642 # Whether libtool must link a program against all its dependency libraries.
18643 link_all_deplibs=$link_all_deplibs_CXX
18645 # Fix the shell variable \$srcfile for the compiler.
18646 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18648 # Set to "yes" if exported symbols are required.
18649 always_export_symbols=$always_export_symbols_CXX
18651 # The commands to list exported symbols.
18652 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18654 # Symbols that should not be listed in the preloaded symbols.
18655 exclude_expsyms=$lt_exclude_expsyms_CXX
18657 # Symbols that must always be exported.
18658 include_expsyms=$lt_include_expsyms_CXX
18660 # Commands necessary for linking programs (against libraries) with templates.
18661 prelink_cmds=$lt_prelink_cmds_CXX
18663 # Specify filename containing input files.
18664 file_list_spec=$lt_file_list_spec_CXX
18666 # How to hardcode a shared library path into an executable.
18667 hardcode_action=$hardcode_action_CXX
18669 # The directories searched by this compiler when creating a shared library.
18670 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18672 # Dependencies to place before and after the objects being linked to
18673 # create a shared library.
18674 predep_objects=$lt_predep_objects_CXX
18675 postdep_objects=$lt_postdep_objects_CXX
18676 predeps=$lt_predeps_CXX
18677 postdeps=$lt_postdeps_CXX
18679 # The library search path used internally by the compiler when linking
18680 # a shared library.
18681 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18683 # ### END LIBTOOL TAG CONFIG: CXX
18687 "include":C
) test -d include || mkdir include
;;
18689 test -d src || mkdir src
18690 test -d src
/$TARGETDIR || mkdir src
/$TARGETDIR
18699 ac_clean_files
=$ac_clean_files_save
18701 test $ac_write_fail = 0 ||
18702 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18705 # configure is writing to config.log, and then calls config.status.
18706 # config.status does its own redirection, appending to config.log.
18707 # Unfortunately, on DOS this fails, as config.log is still kept open
18708 # by configure, so config.status won't be able to write to it; its
18709 # output is simply discarded. So we exec the FD to /dev/null,
18710 # effectively closing config.log, so it can be properly (re)opened and
18711 # appended to by config.status. When coming back to configure, we
18712 # need to make the FD available again.
18713 if test "$no_create" != yes; then
18715 ac_config_status_args
=
18716 test "$silent" = yes &&
18717 ac_config_status_args
="$ac_config_status_args --quiet"
18719 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18721 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18722 # would make configure fail if this is the last instruction.
18723 $ac_cs_success || as_fn_exit $?
18725 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18727 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}