2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libffi 3.0.11.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://github.com/atgreen/libffi/issues about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='libffi'
572 PACKAGE_TARNAME='libffi'
573 PACKAGE_VERSION='3.0.11'
574 PACKAGE_STRING='libffi 3.0.11'
575 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
578 # Factoring default headers for most tests.
579 ac_includes_default="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
614 ac_subst_vars='am__EXEEXT_FALSE
624 FFI_EXEC_TRAMPOLINE_TABLE
625 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
626 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
627 sys_symbol_underscore
654 POWERPC_FREEBSD_FALSE
693 MAINTAINER_MODE_FALSE
717 am__fastdepCCAS_FALSE
747 INSTALL_STRIP_PROGRAM
801 program_transform_name
814 enable_option_checking
815 enable_dependency_tracking
823 enable_maintainer_mode
829 ac_precious_vars='build_alias
838 # Initialize some variables set by options.
840 ac_init_version=false
841 ac_unrecognized_opts=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
852 program_transform_name=s,x,x,
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
996 -help | --help | --hel | --he | -h)
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1145 -site=* | --site=* | --sit=*)
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=no ;;
1204 # Obsolete; use --with-x.
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1272 # Be sure to have absolute directory names.
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used" >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of libffi 3.0.11:";;
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --disable-dependency-tracking speeds up one-time build
1458 --enable-dependency-tracking do not reject slow dependency extractors
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-maintainer-mode enable make rules and dependencies not useful
1465 (and sometimes confusing) to the casual installer
1466 --enable-debug debugging mode
1467 --disable-structs omit code for struct support
1468 --disable-raw-api make the raw api unavailable
1469 --enable-purify-safety purify-safe mode
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-sysroot=DIR Search for dependent libraries within DIR
1478 (or the compiler's sysroot if not specified).
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CCAS assembler compiler command (defaults to CC)
1489 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <http://github.com/atgreen/libffi/issues>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" ||
1504 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1525 .) # We are building in place.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1549 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1558 libffi configure 3.0.11
1559 generated by GNU Autoconf 2.68
1561 Copyright (C) 2010 Free Software Foundation, Inc.
1562 This configure script is free software; the Free Software Foundation
1563 gives unlimited permission to copy, distribute and modify it.
1568 ## ------------------------ ##
1569 ## Autoconf initialization. ##
1570 ## ------------------------ ##
1572 # ac_fn_c_try_compile LINENO
1573 # --------------------------
1574 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_compile ()
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext
1579 if { { ac_try="$ac_compile"
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_compile") 2>conftest.err
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest.$ac_objext; then :
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1608 } # ac_fn_c_try_compile
1610 # ac_fn_c_try_link LINENO
1611 # -----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded.
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext conftest$ac_exeext
1617 if { { ac_try="$ac_link"
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>conftest.err
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest$ac_exeext && {
1636 test "$cross_compiling" = yes ||
1637 $as_test_x conftest$ac_exeext
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1648 # interfere with the next link command; also delete a directory that is
1649 # left behind by Apple's compiler. We do this before executing the actions.
1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1654 } # ac_fn_c_try_link
1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists and can be compiled using the include files in
1659 # INCLUDES, setting the cache variable VAR accordingly.
1660 ac_fn_c_check_header_compile ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666 $as_echo_n "(cached) " >&6
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1673 if ac_fn_c_try_compile "$LINENO"; then :
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 } # ac_fn_c_check_header_compile
1687 # ac_fn_c_try_cpp LINENO
1688 # ----------------------
1689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } > conftest.i && {
1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1724 # ac_fn_c_try_run LINENO
1725 # ----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727 # that executables *can* be run.
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_link"
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>&5
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742 { { case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_try") 2>&5
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; }; }; then :
1754 $as_echo "$as_me: program exited with status $ac_status" >&5
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=$ac_status
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1766 # ac_fn_c_check_func LINENO FUNC VAR
1767 # ----------------------------------
1768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1769 ac_fn_c_check_func ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1781 #define $2 innocuous_$2
1783 /* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char $2 (); below.
1785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786 <limits.h> exists even on freestanding compilers. */
1789 # include <limits.h>
1791 # include <assert.h>
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1818 if ac_fn_c_try_link "$LINENO"; then :
1823 rm -f core conftest.err conftest.$ac_objext \
1824 conftest$ac_exeext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 } # ac_fn_c_check_func
1833 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1834 # -------------------------------------------------------
1835 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1836 # the include files in INCLUDES and setting the cache variable VAR
1838 ac_fn_c_check_header_mongrel ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if eval \${$3+:} false; then :
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1851 # Is the header compilable?
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1853 $as_echo_n "checking $2 usability... " >&6; }
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860 ac_header_compiler=yes
1862 ac_header_compiler=no
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1866 $as_echo "$ac_header_compiler" >&6; }
1868 # Is the header present?
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1870 $as_echo_n "checking $2 presence... " >&6; }
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1875 if ac_fn_c_try_cpp "$LINENO"; then :
1876 ac_header_preproc=yes
1878 ac_header_preproc=no
1880 rm -f conftest.err conftest.i conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1882 $as_echo "$ac_header_preproc" >&6; }
1884 # So? What about this header?
1885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1888 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1894 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1896 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1898 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1900 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903 ( $as_echo "## ------------------------------------------------------ ##
1904 ## Report this to http://github.com/atgreen/libffi/issues ##
1905 ## ------------------------------------------------------ ##"
1906 ) | sed "s/^/$as_me: WARNING: /" >&2
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1914 eval "$3=\$ac_header_compiler"
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 } # ac_fn_c_check_header_mongrel
1924 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1925 # -------------------------------------------
1926 # Tests whether TYPE exists after having included INCLUDES, setting cache
1927 # variable VAR accordingly.
1928 ac_fn_c_check_type ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1962 if ac_fn_c_try_compile "$LINENO"; then :
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 } # ac_fn_c_check_type
1978 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1979 # --------------------------------------------
1980 # Tries to find the compile-time value of EXPR in a program that includes
1981 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1983 ac_fn_c_compute_int ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if test "$cross_compiling" = yes; then
1987 # Depending upon the size, compute the lo and hi bounds.
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1994 static int test_array [1 - 2 * !(($2) >= 0)];
2001 if ac_fn_c_try_compile "$LINENO"; then :
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2010 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_hi=$ac_mid; break
2020 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2021 if test $ac_lo -le $ac_mid; then
2025 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2036 static int test_array [1 - 2 * !(($2) < 0)];
2043 if ac_fn_c_try_compile "$LINENO"; then :
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2052 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_lo=$ac_mid; break
2062 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2063 if test $ac_mid -le $ac_hi; then
2067 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 # Binary search between lo and hi bounds.
2078 while test "x$ac_lo" != "x$ac_hi"; do
2079 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 if ac_fn_c_try_compile "$LINENO"; then :
2096 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2108 static long int longval () { return $2; }
2109 static unsigned long int ulongval () { return $2; }
2116 FILE *f = fopen ("conftest.val", "w");
2121 long int i = longval ();
2124 fprintf (f, "%ld", i);
2128 unsigned long int i = ulongval ();
2131 fprintf (f, "%lu", i);
2133 /* Do not output a trailing newline, as this causes \r\n confusion
2134 on some platforms. */
2135 return ferror (f) || fclose (f) != 0;
2141 if ac_fn_c_try_run "$LINENO"; then :
2142 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2147 conftest.$ac_objext conftest.beam conftest.$ac_ext
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 as_fn_set_status $ac_retval
2154 } # ac_fn_c_compute_int
2155 cat >config.log <<_ACEOF
2156 This file contains any messages produced by compilers while
2157 running configure, to aid debugging if configure makes a mistake.
2159 It was created by libffi $as_me 3.0.11, which was
2160 generated by GNU Autoconf 2.68. Invocation command line was
2172 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2173 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2174 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2175 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2176 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2178 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2179 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2181 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2182 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2183 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2184 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2185 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2186 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2187 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 test -z "$as_dir" && as_dir=.
2196 $as_echo "PATH: $as_dir"
2212 # Keep a trace of the command line.
2213 # Strip out --no-create and --no-recursion so they do not pile up.
2214 # Strip out --silent because we don't want to record it for future runs.
2215 # Also quote any args containing shell meta-characters.
2216 # Make two passes to allow for proper duplicate-argument suppression.
2220 ac_must_keep_next=false
2226 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2228 | -silent | --silent | --silen | --sile | --sil)
2231 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2236 as_fn_append ac_configure_args1 " '$ac_arg'"
2237 if test $ac_must_keep_next = true; then
2238 ac_must_keep_next=false # Got value, back to normal.
2241 *=* | --config-cache | -C | -disable-* | --disable-* \
2242 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2243 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2244 | -with-* | --with-* | -without-* | --without-* | --x)
2245 case "$ac_configure_args0 " in
2246 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249 -* ) ac_must_keep_next=true ;;
2252 as_fn_append ac_configure_args " '$ac_arg'"
2257 { ac_configure_args0=; unset ac_configure_args0;}
2258 { ac_configure_args1=; unset ac_configure_args1;}
2260 # When interrupted or exit'd, cleanup temporary files, and complete
2261 # config.log. We remove comments because anyway the quotes in there
2262 # would cause problems or look ugly.
2263 # WARNING: Use '\'' to represent an apostrophe within the trap.
2264 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2265 trap 'exit_status=$?
2266 # Save into config.log some information that might help in debugging.
2270 $as_echo "## ---------------- ##
2271 ## Cache variables. ##
2272 ## ---------------- ##"
2274 # The following way of writing the cache mishandles newlines in values,
2276 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2277 eval ac_val=\$$ac_var
2281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2285 _ | IFS | as_nl) ;; #(
2286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2287 *) { eval $ac_var=; unset $ac_var;} ;;
2292 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2293 *${as_nl}ac_space=\ *)
2295 "s/'\''/'\''\\\\'\'''\''/g;
2296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306 $as_echo "## ----------------- ##
2307 ## Output variables. ##
2308 ## ----------------- ##"
2310 for ac_var in $ac_subst_vars
2312 eval ac_val=\$$ac_var
2314 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 $as_echo "$ac_var='\''$ac_val'\''"
2320 if test -n "$ac_subst_files"; then
2321 $as_echo "## ------------------- ##
2322 ## File substitutions. ##
2323 ## ------------------- ##"
2325 for ac_var in $ac_subst_files
2327 eval ac_val=\$$ac_var
2329 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 $as_echo "$ac_var='\''$ac_val'\''"
2336 if test -s confdefs.h; then
2337 $as_echo "## ----------- ##
2344 test "$ac_signal" != 0 &&
2345 $as_echo "$as_me: caught signal $ac_signal"
2346 $as_echo "$as_me: exit $exit_status"
2348 rm -f core *.core core.conftest.* &&
2349 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2352 for ac_signal in 1 2 13 15; do
2353 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2357 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2358 rm -f -r conftest* confdefs.h
2360 $as_echo "/* confdefs.h */" > confdefs.h
2362 # Predefined preprocessor variables.
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_NAME "$PACKAGE_NAME"
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_STRING "$PACKAGE_STRING"
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_URL "$PACKAGE_URL"
2389 # Let the site file select an alternate cache file if it wants to.
2390 # Prefer an explicitly selected file to automatically selected ones.
2393 if test -n "$CONFIG_SITE"; then
2394 # We do not want a PATH search for config.site.
2395 case $CONFIG_SITE in #((
2396 -*) ac_site_file1=./$CONFIG_SITE;;
2397 */*) ac_site_file1=$CONFIG_SITE;;
2398 *) ac_site_file1=./$CONFIG_SITE;;
2400 elif test "x$prefix" != xNONE; then
2401 ac_site_file1=$prefix/share/config.site
2402 ac_site_file2=$prefix/etc/config.site
2404 ac_site_file1=$ac_default_prefix/share/config.site
2405 ac_site_file2=$ac_default_prefix/etc/config.site
2407 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2409 test "x$ac_site_file" = xNONE && continue
2410 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2412 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2413 sed 's/^/| /' "$ac_site_file" >&5
2415 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417 as_fn_error $? "failed to load site script $ac_site_file
2418 See \`config.log' for more details" "$LINENO" 5; }
2422 if test -r "$cache_file"; then
2423 # Some versions of bash will fail to source /dev/null (special files
2424 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2425 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2427 $as_echo "$as_me: loading cache $cache_file" >&6;}
2429 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2430 *) . "./$cache_file";;
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2435 $as_echo "$as_me: creating cache $cache_file" >&6;}
2439 # Check that the precious variables saved in the cache have kept the same
2441 ac_cache_corrupted=false
2442 for ac_var in $ac_precious_vars; do
2443 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2444 eval ac_new_set=\$ac_env_${ac_var}_set
2445 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2446 eval ac_new_val=\$ac_env_${ac_var}_value
2447 case $ac_old_set,$ac_new_set in
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2450 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2451 ac_cache_corrupted=: ;;
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2454 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2458 if test "x$ac_old_val" != "x$ac_new_val"; then
2459 # differences in whitespace do not lead to failure.
2460 ac_old_val_w=`echo x $ac_old_val`
2461 ac_new_val_w=`echo x $ac_new_val`
2462 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2464 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2465 ac_cache_corrupted=:
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2468 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2469 eval $ac_var=\$ac_old_val
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2472 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2474 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2477 # Pass precious variables to config.status.
2478 if test "$ac_new_set" = set; then
2480 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2481 *) ac_arg=$ac_var=$ac_new_val ;;
2483 case " $ac_configure_args " in
2484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2485 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2489 if $ac_cache_corrupted; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2493 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2494 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2496 ## -------------------- ##
2497 ## Main body of script. ##
2498 ## -------------------- ##
2501 ac_cpp='$CPP $CPPFLAGS'
2502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507 ac_config_headers="$ac_config_headers fficonfig.h"
2511 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2512 if test -f "$ac_dir/install-sh"; then
2514 ac_install_sh="$ac_aux_dir/install-sh -c"
2516 elif test -f "$ac_dir/install.sh"; then
2518 ac_install_sh="$ac_aux_dir/install.sh -c"
2520 elif test -f "$ac_dir/shtool"; then
2522 ac_install_sh="$ac_aux_dir/shtool install -c"
2526 if test -z "$ac_aux_dir"; then
2527 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2535 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2536 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2539 # Make sure we can run config.sub.
2540 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2541 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2544 $as_echo_n "checking build system type... " >&6; }
2545 if ${ac_cv_build+:} false; then :
2546 $as_echo_n "(cached) " >&6
2548 ac_build_alias=$build_alias
2549 test "x$ac_build_alias" = x &&
2550 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2551 test "x$ac_build_alias" = x &&
2552 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2558 $as_echo "$ac_cv_build" >&6; }
2559 case $ac_cv_build in
2561 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2564 ac_save_IFS=$IFS; IFS='-'
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2578 $as_echo_n "checking host system type... " >&6; }
2579 if ${ac_cv_host+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 if test "x$host_alias" = x; then
2583 ac_cv_host=$ac_cv_build
2585 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2591 $as_echo "$ac_cv_host" >&6; }
2594 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2597 ac_save_IFS=$IFS; IFS='-'
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2607 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2611 $as_echo_n "checking target system type... " >&6; }
2612 if ${ac_cv_target+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 if test "x$target_alias" = x; then
2616 ac_cv_target=$ac_cv_host
2618 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2619 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2624 $as_echo "$ac_cv_target" >&6; }
2625 case $ac_cv_target in
2627 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2629 target=$ac_cv_target
2630 ac_save_IFS=$IFS; IFS='-'
2636 # Remember, the first character of IFS is used to create $*,
2637 # except with old shells:
2640 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2643 # The aliases save the names the user supplied, while $host etc.
2644 # will get canonicalized.
2645 test -n "$target_alias" &&
2646 test "$program_prefix$program_suffix$program_transform_name" = \
2648 program_prefix=${target_alias}-
2650 target_alias=${target_alias-$host_alias}
2652 . ${srcdir}/configure.host
2656 am__api_version='1.11'
2658 # Find a good install program. We prefer a C program (faster),
2659 # so one script is as good as another. But avoid the broken or
2660 # incompatible versions:
2661 # SysV /etc/install, /usr/sbin/install
2662 # SunOS /usr/etc/install
2663 # IRIX /sbin/install
2665 # AmigaOS /C/install, which installs bootblocks on floppy discs
2666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2669 # OS/2's system install, which has a completely different semantic
2670 # ./install, which can be erroneously created by make from ./install.sh.
2671 # Reject install programs that cannot install multiple files.
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2673 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2674 if test -z "$INSTALL"; then
2675 if ${ac_cv_path_install+:} false; then :
2676 $as_echo_n "(cached) " >&6
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 # Account for people who put trailing slashes in PATH elements.
2684 case $as_dir/ in #((
2685 ./ | .// | /[cC]/* | \
2686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2687 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2690 # OSF1 and SCO ODT 3.0 have their own names for install.
2691 # Don't use installbsd from OSF since it installs stuff as root
2693 for ac_prog in ginstall scoinst install; do
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2696 if test $ac_prog = install &&
2697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698 # AIX install. It has an incompatible calling convention.
2700 elif test $ac_prog = install &&
2701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # program-specific install script used by HP pwplus--don't use.
2705 rm -rf conftest.one conftest.two conftest.dir
2706 echo one > conftest.one
2707 echo two > conftest.two
2709 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2710 test -s conftest.one && test -s conftest.two &&
2711 test -s conftest.dir/conftest.one &&
2712 test -s conftest.dir/conftest.two
2714 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 rm -rf conftest.one conftest.two conftest.dir
2730 if test "${ac_cv_path_install+set}" = set; then
2731 INSTALL=$ac_cv_path_install
2733 # As a last resort, use the slow shell script. Don't cache a
2734 # value for INSTALL within a source directory, because that will
2735 # break other packages using the cache if that directory is
2736 # removed, or if the value is a relative name.
2737 INSTALL=$ac_install_sh
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2741 $as_echo "$INSTALL" >&6; }
2743 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2744 # It thinks the first close brace ends the variable substitution.
2745 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2747 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2749 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2752 $as_echo_n "checking whether build environment is sane... " >&6; }
2755 echo timestamp > conftest.file
2756 # Reject unsafe characters in $srcdir or the absolute working directory
2757 # name. Accept space and tab only in the latter.
2761 *[\\\"\#\$\&\'\`$am_lf]*)
2762 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2765 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2766 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2769 # Do `set' in a subshell so we don't clobber the current shell's
2770 # arguments. Must try -L first in case configure is actually a
2771 # symlink; some systems play weird games with the mod time of symlinks
2772 # (eg FreeBSD returns the mod time of the symlink's containing
2775 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2776 if test "$*" = "X"; then
2778 set X `ls -t "$srcdir/configure" conftest.file`
2781 if test "$*" != "X $srcdir/configure conftest.file" \
2782 && test "$*" != "X conftest.file $srcdir/configure"; then
2784 # If neither matched, then we have a broken ls. This can happen
2785 # if, for instance, CONFIG_SHELL is bash and it inherits a
2786 # broken ls alias from the environment. This has actually
2787 # happened. Such a system could not be considered "sane".
2788 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2789 alias in your environment" "$LINENO" 5
2792 test "$2" = conftest.file
2798 as_fn_error $? "newly created file is older than distributed files!
2799 Check your system clock" "$LINENO" 5
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2802 $as_echo "yes" >&6; }
2803 test "$program_prefix" != NONE &&
2804 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2805 # Use a double $ so make ignores it.
2806 test "$program_suffix" != NONE &&
2807 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2808 # Double any \ or $.
2809 # By default was `s,x,x', remove it if useless.
2810 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2811 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2813 # expand $ac_aux_dir to an absolute path
2814 am_aux_dir=`cd $ac_aux_dir && pwd`
2816 if test x"${MISSING+set}" != xset; then
2819 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2821 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2824 # Use eval to expand $SHELL
2825 if eval "$MISSING --run true"; then
2826 am_missing_run="$MISSING --run "
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2830 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2833 if test x"${install_sh}" != xset; then
2836 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2838 install_sh="\${SHELL} $am_aux_dir/install-sh"
2842 # Installed binaries are usually stripped using `strip' when the user
2843 # run `make install-strip'. However `strip' might not be the right
2844 # tool to use in cross-compilation environments, therefore Automake
2845 # will honor the `STRIP' environment variable to overrule this program.
2846 if test "$cross_compiling" != no; then
2847 if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}strip; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_STRIP+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$STRIP"; then
2856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 STRIP=$ac_cv_prog_STRIP
2876 if test -n "$STRIP"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2878 $as_echo "$STRIP" >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2886 if test -z "$ac_cv_prog_STRIP"; then
2888 # Extract the first word of "strip", so it can be a program name with args.
2889 set dummy strip; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2893 $as_echo_n "(cached) " >&6
2895 if test -n "$ac_ct_STRIP"; then
2896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_ac_ct_STRIP="strip"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2916 if test -n "$ac_ct_STRIP"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2918 $as_echo "$ac_ct_STRIP" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2924 if test "x$ac_ct_STRIP" = x; then
2927 case $cross_compiling:$ac_tool_warned in
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2936 STRIP="$ac_cv_prog_STRIP"
2940 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2943 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2944 if test -z "$MKDIR_P"; then
2945 if ${ac_cv_path_mkdir+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2952 test -z "$as_dir" && as_dir=.
2953 for ac_prog in mkdir gmkdir; do
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2956 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2957 'mkdir (GNU coreutils) '* | \
2958 'mkdir (coreutils) '* | \
2959 'mkdir (fileutils) '4.1*)
2960 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2970 test -d ./--version && rmdir ./--version
2971 if test "${ac_cv_path_mkdir+set}" = set; then
2972 MKDIR_P="$ac_cv_path_mkdir -p"
2974 # As a last resort, use the slow shell script. Don't cache a
2975 # value for MKDIR_P within a source directory, because that will
2976 # break other packages using the cache if that directory is
2977 # removed, or if the value is a relative name.
2978 MKDIR_P="$ac_install_sh -d"
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2982 $as_echo "$MKDIR_P" >&6; }
2986 [\\/$]* | ?:[\\/]*) ;;
2987 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2990 for ac_prog in gawk mawk nawk awk
2992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy $ac_prog; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_AWK+:} false; then :
2997 $as_echo_n "(cached) " >&6
2999 if test -n "$AWK"; then
3000 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_AWK="$ac_prog"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 if test -n "$AWK"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3022 $as_echo "$AWK" >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3029 test -n "$AWK" && break
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3033 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3035 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3036 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3037 $as_echo_n "(cached) " >&6
3039 cat >conftest.make <<\_ACEOF
3042 @echo '@@@%%%=$(MAKE)=@@@%%%'
3044 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3045 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3047 eval ac_cv_prog_make_${ac_make}_set=yes;;
3049 eval ac_cv_prog_make_${ac_make}_set=no;;
3053 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3055 $as_echo "yes" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 SET_MAKE="MAKE=${MAKE-make}"
3063 rm -rf .tst 2>/dev/null
3064 mkdir .tst 2>/dev/null
3065 if test -d .tst; then
3070 rmdir .tst 2>/dev/null
3072 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3073 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3074 # is not polluted with repeated "-I."
3075 am__isrc=' -I$(srcdir)'
3076 # test to see if srcdir already configured
3077 if test -f $srcdir/config.status; then
3078 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3082 # test whether we have cygpath
3083 if test -z "$CYGPATH_W"; then
3084 if (cygpath --version) >/dev/null 2>/dev/null; then
3085 CYGPATH_W='cygpath -w'
3092 # Define the identity of the package.
3097 cat >>confdefs.h <<_ACEOF
3098 #define PACKAGE "$PACKAGE"
3102 cat >>confdefs.h <<_ACEOF
3103 #define VERSION "$VERSION"
3106 # Some tools Automake needs.
3108 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3111 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3114 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3117 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3120 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3122 # We need awk for the "check" target. The system "awk" is bad on
3124 # Always define AMTAR for backward compatibility. Yes, it's still used
3125 # in the wild :-( We should find a proper way to deprecate it ...
3128 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3135 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3136 # We must force CC to /not/ be precious variables; otherwise
3137 # the wrong, non-multilib-adjusted value will be used in multilibs.
3138 # As a side effect, we have to subst CFLAGS ourselves.
3139 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3140 # defaults of its own if none are provided.
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150 if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CC+:} false; then :
3156 $as_echo_n "(cached) " >&6
3158 if test -n "$CC"; then
3159 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3189 if test -z "$ac_cv_prog_CC"; then
3191 # Extract the first word of "gcc", so it can be a program name with args.
3192 set dummy gcc; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3196 $as_echo_n "(cached) " >&6
3198 if test -n "$ac_ct_CC"; then
3199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_prog_ac_ct_CC="gcc"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219 if test -n "$ac_ct_CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221 $as_echo "$ac_ct_CC" >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3227 if test "x$ac_ct_CC" = x; then
3230 case $cross_compiling:$ac_tool_warned in
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234 ac_tool_warned=yes ;;
3242 if test -z "$CC"; then
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}cc; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if ${ac_cv_prog_CC+:} false; then :
3249 $as_echo_n "(cached) " >&6
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC="${ac_tool_prefix}cc"
3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 if test -n "$CC"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3274 $as_echo "$CC" >&6; }
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3283 if test -z "$CC"; then
3284 # Extract the first word of "cc", so it can be a program name with args.
3285 set dummy cc; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_CC+:} false; then :
3289 $as_echo_n "(cached) " >&6
3291 if test -n "$CC"; then
3292 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3303 ac_prog_rejected=yes
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 if test $ac_prog_rejected = yes; then
3315 # We found a bogon in the path, so make sure we never use it.
3316 set dummy $ac_cv_prog_CC
3318 if test $# != 0; then
3319 # We chose a different compiler from the bogus one.
3320 # However, it has the same basename, so the bogon will be chosen
3321 # first if we set CC to just the basename; use the full file name.
3323 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3329 if test -n "$CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3339 if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 for ac_prog in cl.exe
3343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3380 test -n "$CC" && break
3383 if test -z "$CC"; then
3385 for ac_prog in cl.exe
3387 # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy $ac_prog; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3392 $as_echo_n "(cached) " >&6
3394 if test -n "$ac_ct_CC"; then
3395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_ac_ct_CC="$ac_prog"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3415 if test -n "$ac_ct_CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3417 $as_echo "$ac_ct_CC" >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3424 test -n "$ac_ct_CC" && break
3427 if test "x$ac_ct_CC" = x; then
3430 case $cross_compiling:$ac_tool_warned in
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434 ac_tool_warned=yes ;;
3443 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "no acceptable C compiler found in \$PATH
3446 See \`config.log' for more details" "$LINENO" 5; }
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3452 for ac_option in --version -v -V -qversion; do
3453 { { ac_try="$ac_compiler $ac_option >&5"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 if test -s conftest.err; then
3464 ... rest of stderr output deleted ...
3465 10q' conftest.err >conftest.er1
3466 cat conftest.er1 >&5
3468 rm -f conftest.er1 conftest.err
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3484 ac_clean_files_save=$ac_clean_files
3485 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3486 # Try to create an executable without -o first, disregard a.out.
3487 # It will help us diagnose broken compilers, and finding out an intuition
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3490 $as_echo_n "checking whether the C compiler works... " >&6; }
3491 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3493 # The possible output files:
3494 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3497 for ac_file in $ac_files
3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3501 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3506 if { { ac_try="$ac_link_default"
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link_default") 2>&5
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3519 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3520 # so that the user can short-circuit this test for compilers unknown to
3522 for ac_file in $ac_files ''
3524 test -f "$ac_file" || continue
3526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3529 # We found the default executable, but exeext='' is most
3533 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 # We set ac_cv_exeext here because the later test for it is not
3538 # safe: cross compilers may not add the suffix if given an `-o'
3539 # argument, so we may need to know it at that point already.
3540 # Even if this section looks crufty: it has the advantage of
3547 test "$ac_cv_exeext" = no && ac_cv_exeext=
3552 if test -z "$ac_file"; then :
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 $as_echo "no" >&6; }
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error 77 "C compiler cannot create executables
3561 See \`config.log' for more details" "$LINENO" 5; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3569 $as_echo "$ac_file" >&6; }
3570 ac_exeext=$ac_cv_exeext
3572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3573 ac_clean_files=$ac_clean_files_save
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3575 $as_echo_n "checking for suffix of executables... " >&6; }
3576 if { { ac_try="$ac_link"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583 (eval "$ac_link") 2>&5
3585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586 test $ac_status = 0; }; then :
3587 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3589 # work properly (i.e., refer to `conftest.exe'), while it won't with
3591 for ac_file in conftest.exe conftest conftest.*; do
3592 test -f "$ac_file" || continue
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3604 See \`config.log' for more details" "$LINENO" 5; }
3606 rm -f conftest conftest$ac_cv_exeext
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3608 $as_echo "$ac_cv_exeext" >&6; }
3610 rm -f conftest.$ac_ext
3611 EXEEXT=$ac_cv_exeext
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3619 FILE *f = fopen ("conftest.out", "w");
3620 return ferror (f) || fclose (f) != 0;
3626 ac_clean_files="$ac_clean_files conftest.out"
3627 # Check that the compiler produces executables we can run. If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 if test "$cross_compiling" != yes; then
3632 { { ac_try="$ac_link"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_link") 2>&5
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }
3643 if { ac_try='./conftest$ac_cv_exeext'
3644 { { case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650 (eval "$ac_try") 2>&5
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }; }; then
3656 if test "$cross_compiling" = maybe; then
3659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 as_fn_error $? "cannot run C compiled programs.
3662 If you meant to cross compile, use \`--host'.
3663 See \`config.log' for more details" "$LINENO" 5; }
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3668 $as_echo "$cross_compiling" >&6; }
3670 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3671 ac_clean_files=$ac_clean_files_save
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3673 $as_echo_n "checking for suffix of object files... " >&6; }
3674 if ${ac_cv_objext+:} false; then :
3675 $as_echo_n "(cached) " >&6
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3688 rm -f conftest.o conftest.obj
3689 if { { ac_try="$ac_compile"
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3695 $as_echo "$ac_try_echo"; } >&5
3696 (eval "$ac_compile") 2>&5
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }; then :
3700 for ac_file in conftest.o conftest.obj conftest.*; do
3701 test -f "$ac_file" || continue;
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "cannot compute suffix of object files: cannot compile
3715 See \`config.log' for more details" "$LINENO" 5; }
3717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3720 $as_echo "$ac_cv_objext" >&6; }
3721 OBJEXT=$ac_cv_objext
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3725 if ${ac_cv_c_compiler_gnu+:} false; then :
3726 $as_echo_n "(cached) " >&6
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3742 if ac_fn_c_try_compile "$LINENO"; then :
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3753 if test $ac_compiler_gnu = yes; then
3758 ac_test_CFLAGS=${CFLAGS+set}
3759 ac_save_CFLAGS=$CFLAGS
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3762 if ${ac_cv_prog_cc_g+:} false; then :
3763 $as_echo_n "(cached) " >&6
3765 ac_save_c_werror_flag=$ac_c_werror_flag
3766 ac_c_werror_flag=yes
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3780 if ac_fn_c_try_compile "$LINENO"; then :
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3795 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_c_werror_flag=$ac_save_c_werror_flag
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3811 if ac_fn_c_try_compile "$LINENO"; then :
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 ac_c_werror_flag=$ac_save_c_werror_flag
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3822 $as_echo "$ac_cv_prog_cc_g" >&6; }
3823 if test "$ac_test_CFLAGS" = set; then
3824 CFLAGS=$ac_save_CFLAGS
3825 elif test $ac_cv_prog_cc_g = yes; then
3826 if test "$GCC" = yes; then
3832 if test "$GCC" = yes; then
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3840 if ${ac_cv_prog_cc_c89+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 ac_cv_prog_cc_c89=no
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3849 #include <sys/types.h>
3850 #include <sys/stat.h>
3851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3852 struct buf { int x; };
3853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854 static char *e (p, i)
3860 static char *f (char * (*g) (char **, int), char **p, ...)
3865 s = g (p, va_arg (v,int));
3870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3871 function prototypes and stuff, but not '\xHH' hex character constants.
3872 These don't provoke an error unfortunately, instead are silently treated
3873 as 'x'. The following induces an error, until -std is added to get
3874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3875 array size at least. It's necessary to write '\x00'==0 to get something
3876 that's true only with -std. */
3877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3880 inside strings and character constants. */
3882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884 int test (int i, double x);
3885 struct s1 {int (*f) (int a);};
3886 struct s2 {int (*f) (double a);};
3887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3901 CC="$ac_save_CC $ac_arg"
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv_prog_cc_c89=$ac_arg
3905 rm -f core conftest.err conftest.$ac_objext
3906 test "x$ac_cv_prog_cc_c89" != "xno" && break
3908 rm -f conftest.$ac_ext
3913 case "x$ac_cv_prog_cc_c89" in
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3916 $as_echo "none needed" >&6; } ;;
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919 $as_echo "unsupported" >&6; } ;;
3921 CC="$CC $ac_cv_prog_cc_c89"
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925 if test "x$ac_cv_prog_cc_c89" != xno; then :
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934 DEPDIR="${am__leading_dot}deps"
3936 ac_config_commands="$ac_config_commands depfiles"
3939 am_make=${MAKE-make}
3940 cat > confinc << 'END'
3942 @echo this is the am__doit target
3945 # If we don't find an include directive, just comment out the code.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3951 # First try GNU make style include.
3952 echo "include confinc" > confmf
3953 # Ignore all kinds of additional output from `make'.
3954 case `$am_make -s -f confmf 2> /dev/null` in #(
3955 *the\ am__doit\ target*)
3961 # Now try BSD make style include.
3962 if test "$am__include" = "#"; then
3963 echo '.include "confinc"' > confmf
3964 case `$am_make -s -f confmf 2> /dev/null` in #(
3965 *the\ am__doit\ target*)
3966 am__include=.include
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3975 $as_echo "$_am_result" >&6; }
3976 rm -f confinc confmf
3978 # Check whether --enable-dependency-tracking was given.
3979 if test "${enable_dependency_tracking+set}" = set; then :
3980 enableval=$enable_dependency_tracking;
3983 if test "x$enable_dependency_tracking" != xno; then
3984 am_depcomp="$ac_aux_dir/depcomp"
3988 if test "x$enable_dependency_tracking" != xno; then
3998 depcc="$CC" am_compiler_list=
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4001 $as_echo_n "checking dependency style of $depcc... " >&6; }
4002 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4003 $as_echo_n "(cached) " >&6
4005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4006 # We make a subdir and do the tests there. Otherwise we can end up
4007 # making bogus files that we don't know about and never remove. For
4008 # instance it was reported that on HP-UX the gcc test will end up
4009 # making a dummy file named `D' -- because `-MD' means `put the output
4013 # Copy depcomp to subdir because otherwise we won't find it if we're
4014 # using a relative directory.
4015 cp "$am_depcomp" conftest.dir
4017 # We will build objects and dependencies in a subdirectory because
4018 # it helps to detect inapplicable dependency modes. For instance
4019 # both Tru64's cc and ICC support -MD to output dependencies as a
4020 # side effect of compilation, but ICC will put the dependencies in
4021 # the current directory while Tru64 will put them in the object
4025 am_cv_CC_dependencies_compiler_type=none
4026 if test "$am_compiler_list" = ""; then
4027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4030 case " $depcc " in #(
4031 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4034 for depmode in $am_compiler_list; do
4035 # Setup a source with many dependencies, because some compilers
4036 # like to wrap large dependency lists on column 80 (with \), and
4037 # we should not choose a depcomp mode which is confused by this.
4039 # We need to recreate these files for each test, as the compiler may
4040 # overwrite some of them when testing with obscure command lines.
4041 # This happens at least with the AIX C compiler.
4043 for i in 1 2 3 4 5 6; do
4044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4045 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4046 # Solaris 8's {/usr,}/bin/sh.
4047 touch sub/conftst$i.h
4049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4052 # mode. It turns out that the SunPro C++ compiler does not properly
4053 # handle `-M -o', and we need to detect this. Also, some Intel
4054 # versions had trouble with output in subdirs
4055 am__obj=sub/conftest.${OBJEXT-o}
4056 am__minus_obj="-o $am__obj"
4059 # This depmode causes a compiler race in universal mode.
4060 test "$am__universal" = false || continue
4063 # after this tag, mechanisms are not by side-effect, so they'll
4064 # only be used when explicitly requested
4065 if test "x$enable_dependency_tracking" = xyes; then
4071 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4072 # This compiler won't grok `-c -o', but also, the minuso test has
4073 # not run yet. These depmodes are late enough in the game, and
4074 # so weak that their functioning should not be impacted.
4075 am__obj=conftest.${OBJEXT-o}
4080 if depmode=$depmode \
4081 source=sub/conftest.c object=$am__obj \
4082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4083 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4084 >/dev/null 2>conftest.err &&
4085 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4086 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4087 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4088 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4089 # icc doesn't choke on unknown options, it will just issue warnings
4090 # or remarks (even with -Werror). So we grep stderr for any message
4091 # that says an option was ignored or not supported.
4092 # When given -MP, icc 7.0 and 7.1 complain thusly:
4093 # icc: Command line warning: ignoring option '-M'; no argument required
4094 # The diagnosis changed in icc 8.0:
4095 # icc: Command line remark: option '-MP' not supported
4096 if (grep 'ignoring option' conftest.err ||
4097 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4098 am_cv_CC_dependencies_compiler_type=$depmode
4107 am_cv_CC_dependencies_compiler_type=none
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4112 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4113 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4116 test "x$enable_dependency_tracking" != xno \
4117 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4119 am__fastdepCC_FALSE='#'
4121 am__fastdepCC_TRUE='#'
4122 am__fastdepCC_FALSE=
4132 # By default we simply use the C compiler to build assembly code.
4134 test "${CCAS+set}" = set || CCAS=$CC
4135 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4139 depcc="$CCAS" am_compiler_list=
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4142 $as_echo_n "checking dependency style of $depcc... " >&6; }
4143 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4147 # We make a subdir and do the tests there. Otherwise we can end up
4148 # making bogus files that we don't know about and never remove. For
4149 # instance it was reported that on HP-UX the gcc test will end up
4150 # making a dummy file named `D' -- because `-MD' means `put the output
4154 # Copy depcomp to subdir because otherwise we won't find it if we're
4155 # using a relative directory.
4156 cp "$am_depcomp" conftest.dir
4158 # We will build objects and dependencies in a subdirectory because
4159 # it helps to detect inapplicable dependency modes. For instance
4160 # both Tru64's cc and ICC support -MD to output dependencies as a
4161 # side effect of compilation, but ICC will put the dependencies in
4162 # the current directory while Tru64 will put them in the object
4166 am_cv_CCAS_dependencies_compiler_type=none
4167 if test "$am_compiler_list" = ""; then
4168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4173 for depmode in $am_compiler_list; do
4174 # Setup a source with many dependencies, because some compilers
4175 # like to wrap large dependency lists on column 80 (with \), and
4176 # we should not choose a depcomp mode which is confused by this.
4178 # We need to recreate these files for each test, as the compiler may
4179 # overwrite some of them when testing with obscure command lines.
4180 # This happens at least with the AIX C compiler.
4182 for i in 1 2 3 4 5 6; do
4183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4185 # Solaris 8's {/usr,}/bin/sh.
4186 touch sub/conftst$i.h
4188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4191 # mode. It turns out that the SunPro C++ compiler does not properly
4192 # handle `-M -o', and we need to detect this. Also, some Intel
4193 # versions had trouble with output in subdirs
4194 am__obj=sub/conftest.${OBJEXT-o}
4195 am__minus_obj="-o $am__obj"
4198 # This depmode causes a compiler race in universal mode.
4199 test "$am__universal" = false || continue
4202 # after this tag, mechanisms are not by side-effect, so they'll
4203 # only be used when explicitly requested
4204 if test "x$enable_dependency_tracking" = xyes; then
4210 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4211 # This compiler won't grok `-c -o', but also, the minuso test has
4212 # not run yet. These depmodes are late enough in the game, and
4213 # so weak that their functioning should not be impacted.
4214 am__obj=conftest.${OBJEXT-o}
4219 if depmode=$depmode \
4220 source=sub/conftest.c object=$am__obj \
4221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4223 >/dev/null 2>conftest.err &&
4224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4228 # icc doesn't choke on unknown options, it will just issue warnings
4229 # or remarks (even with -Werror). So we grep stderr for any message
4230 # that says an option was ignored or not supported.
4231 # When given -MP, icc 7.0 and 7.1 complain thusly:
4232 # icc: Command line warning: ignoring option '-M'; no argument required
4233 # The diagnosis changed in icc 8.0:
4234 # icc: Command line remark: option '-MP' not supported
4235 if (grep 'ignoring option' conftest.err ||
4236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4237 am_cv_CCAS_dependencies_compiler_type=$depmode
4246 am_cv_CCAS_dependencies_compiler_type=none
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4251 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4252 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4255 test "x$enable_dependency_tracking" != xno \
4256 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4257 am__fastdepCCAS_TRUE=
4258 am__fastdepCCAS_FALSE='#'
4260 am__fastdepCCAS_TRUE='#'
4261 am__fastdepCCAS_FALSE=
4265 if test "x$CC" != xcc; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4267 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4270 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4272 set dummy $CC; ac_cc=`$as_echo "$2" |
4273 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4274 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4275 $as_echo_n "(cached) " >&6
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4288 # Make sure it works both with $CC and with simple cc.
4289 # We do the test twice because some compilers refuse to overwrite an
4290 # existing .o file with -o, though they will create one.
4291 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4293 if { { case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; } &&
4303 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; };
4314 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4315 if test "x$CC" != xcc; then
4316 # Test first that cc exists at all.
4317 if { ac_try='cc -c conftest.$ac_ext >&5'
4318 { { case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; }; then
4328 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4330 if { { case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; } &&
4340 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346 (eval "$ac_try") 2>&5
4348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; };
4354 # cc exists but doesn't like -o.
4355 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4360 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4362 rm -f core conftest*
4365 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4372 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4379 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC="$am_aux_dir/compile $CC"
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4394 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4399 macro_version='2.4.2'
4400 macro_revision='1.3337'
4414 ltmain="$ac_aux_dir/ltmain.sh"
4416 # Backslashify metacharacters that are still active within
4417 # double-quoted strings.
4418 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4420 # Same as above, but do not quote variable references.
4421 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4423 # Sed substitution to delay expansion of an escaped shell variable in a
4424 # double_quote_subst'ed string.
4425 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4427 # Sed substitution to delay expansion of an escaped single quote.
4428 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4430 # Sed substitution to avoid accidental globbing in evaled expressions
4431 no_glob_subst='s/\*/\\\*/g'
4433 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4438 $as_echo_n "checking how to print strings... " >&6; }
4439 # Test print first, because it will be a builtin if present.
4440 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4441 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4443 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4446 # Use this function as a fallback that always works.
4447 func_fallback_echo ()
4449 eval 'cat <<_LTECHO_EOF
4453 ECHO='func_fallback_echo'
4456 # func_echo_all arg...
4457 # Invoke $ECHO with all args, space-separated.
4464 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4465 $as_echo "printf" >&6; } ;;
4466 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4467 $as_echo "print -r" >&6; } ;;
4468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4469 $as_echo "cat" >&6; } ;;
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4487 if ${ac_cv_path_SED+:} false; then :
4488 $as_echo_n "(cached) " >&6
4490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4491 for ac_i in 1 2 3 4 5 6 7; do
4492 ac_script="$ac_script$as_nl$ac_script"
4494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4495 { ac_script=; unset ac_script;}
4496 if test -z "$SED"; then
4497 ac_path_SED_found=false
4498 # Loop through the user's path and test for each of PROGNAME-LIST
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 test -z "$as_dir" && as_dir=.
4504 for ac_prog in sed gsed; do
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4507 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4508 # Check for GNU ac_path_SED and select it if it is found.
4509 # Check for GNU $ac_path_SED
4510 case `"$ac_path_SED" --version 2>&1` in
4512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4515 $as_echo_n 0123456789 >"conftest.in"
4518 cat "conftest.in" "conftest.in" >"conftest.tmp"
4519 mv "conftest.tmp" "conftest.in"
4520 cp "conftest.in" "conftest.nl"
4521 $as_echo '' >> "conftest.nl"
4522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524 as_fn_arith $ac_count + 1 && ac_count=$as_val
4525 if test $ac_count -gt ${ac_path_SED_max-0}; then
4526 # Best one so far, save it but keep looking for a better one
4527 ac_cv_path_SED="$ac_path_SED"
4528 ac_path_SED_max=$ac_count
4530 # 10*(2^10) chars as input seems more than enough
4531 test $ac_count -gt 10 && break
4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4536 $ac_path_SED_found && break 3
4541 if test -z "$ac_cv_path_SED"; then
4542 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4550 $as_echo "$ac_cv_path_SED" >&6; }
4551 SED="$ac_cv_path_SED"
4554 test -z "$SED" && SED=sed
4555 Xsed="$SED -e 1s/^X//"
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4568 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4569 if ${ac_cv_path_GREP+:} false; then :
4570 $as_echo_n "(cached) " >&6
4572 if test -z "$GREP"; then
4573 ac_path_GREP_found=false
4574 # Loop through the user's path and test for each of PROGNAME-LIST
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579 test -z "$as_dir" && as_dir=.
4580 for ac_prog in grep ggrep; do
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4583 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4584 # Check for GNU ac_path_GREP and select it if it is found.
4585 # Check for GNU $ac_path_GREP
4586 case `"$ac_path_GREP" --version 2>&1` in
4588 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4591 $as_echo_n 0123456789 >"conftest.in"
4594 cat "conftest.in" "conftest.in" >"conftest.tmp"
4595 mv "conftest.tmp" "conftest.in"
4596 cp "conftest.in" "conftest.nl"
4597 $as_echo 'GREP' >> "conftest.nl"
4598 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600 as_fn_arith $ac_count + 1 && ac_count=$as_val
4601 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4602 # Best one so far, save it but keep looking for a better one
4603 ac_cv_path_GREP="$ac_path_GREP"
4604 ac_path_GREP_max=$ac_count
4606 # 10*(2^10) chars as input seems more than enough
4607 test $ac_count -gt 10 && break
4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 $ac_path_GREP_found && break 3
4617 if test -z "$ac_cv_path_GREP"; then
4618 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4621 ac_cv_path_GREP=$GREP
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4626 $as_echo "$ac_cv_path_GREP" >&6; }
4627 GREP="$ac_cv_path_GREP"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4631 $as_echo_n "checking for egrep... " >&6; }
4632 if ${ac_cv_path_EGREP+:} false; then :
4633 $as_echo_n "(cached) " >&6
4635 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4636 then ac_cv_path_EGREP="$GREP -E"
4638 if test -z "$EGREP"; then
4639 ac_path_EGREP_found=false
4640 # Loop through the user's path and test for each of PROGNAME-LIST
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645 test -z "$as_dir" && as_dir=.
4646 for ac_prog in egrep; do
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4649 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4650 # Check for GNU ac_path_EGREP and select it if it is found.
4651 # Check for GNU $ac_path_EGREP
4652 case `"$ac_path_EGREP" --version 2>&1` in
4654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4657 $as_echo_n 0123456789 >"conftest.in"
4660 cat "conftest.in" "conftest.in" >"conftest.tmp"
4661 mv "conftest.tmp" "conftest.in"
4662 cp "conftest.in" "conftest.nl"
4663 $as_echo 'EGREP' >> "conftest.nl"
4664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4666 as_fn_arith $ac_count + 1 && ac_count=$as_val
4667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4668 # Best one so far, save it but keep looking for a better one
4669 ac_cv_path_EGREP="$ac_path_EGREP"
4670 ac_path_EGREP_max=$ac_count
4672 # 10*(2^10) chars as input seems more than enough
4673 test $ac_count -gt 10 && break
4675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678 $ac_path_EGREP_found && break 3
4683 if test -z "$ac_cv_path_EGREP"; then
4684 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4687 ac_cv_path_EGREP=$EGREP
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4693 $as_echo "$ac_cv_path_EGREP" >&6; }
4694 EGREP="$ac_cv_path_EGREP"
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4698 $as_echo_n "checking for fgrep... " >&6; }
4699 if ${ac_cv_path_FGREP+:} false; then :
4700 $as_echo_n "(cached) " >&6
4702 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4703 then ac_cv_path_FGREP="$GREP -F"
4705 if test -z "$FGREP"; then
4706 ac_path_FGREP_found=false
4707 # Loop through the user's path and test for each of PROGNAME-LIST
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4712 test -z "$as_dir" && as_dir=.
4713 for ac_prog in fgrep; do
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4716 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4717 # Check for GNU ac_path_FGREP and select it if it is found.
4718 # Check for GNU $ac_path_FGREP
4719 case `"$ac_path_FGREP" --version 2>&1` in
4721 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4724 $as_echo_n 0123456789 >"conftest.in"
4727 cat "conftest.in" "conftest.in" >"conftest.tmp"
4728 mv "conftest.tmp" "conftest.in"
4729 cp "conftest.in" "conftest.nl"
4730 $as_echo 'FGREP' >> "conftest.nl"
4731 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4733 as_fn_arith $ac_count + 1 && ac_count=$as_val
4734 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4735 # Best one so far, save it but keep looking for a better one
4736 ac_cv_path_FGREP="$ac_path_FGREP"
4737 ac_path_FGREP_max=$ac_count
4739 # 10*(2^10) chars as input seems more than enough
4740 test $ac_count -gt 10 && break
4742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4745 $ac_path_FGREP_found && break 3
4750 if test -z "$ac_cv_path_FGREP"; then
4751 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4754 ac_cv_path_FGREP=$FGREP
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4760 $as_echo "$ac_cv_path_FGREP" >&6; }
4761 FGREP="$ac_cv_path_FGREP"
4764 test -z "$GREP" && GREP=grep
4784 # Check whether --with-gnu-ld was given.
4785 if test "${with_gnu_ld+set}" = set; then :
4786 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4792 if test "$GCC" = yes; then
4793 # Check if gcc -print-prog-name=ld gives a path.
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4795 $as_echo_n "checking for ld used by $CC... " >&6; }
4798 # gcc leaves a trailing carriage return which upsets mingw
4799 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4801 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4804 # Accept absolute paths.
4806 re_direlt='/[^/][^/]*/\.\./'
4807 # Canonicalize the pathname of ld
4808 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4809 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4810 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4812 test -z "$LD" && LD="$ac_prog"
4815 # If it fails, then pretend we aren't using GCC.
4819 # If it is relative, then search for the first ld in PATH.
4823 elif test "$with_gnu_ld" = yes; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4825 $as_echo_n "checking for GNU ld... " >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4828 $as_echo_n "checking for non-GNU ld... " >&6; }
4830 if ${lt_cv_path_LD+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -z "$LD"; then
4834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4835 for ac_dir in $PATH; do
4837 test -z "$ac_dir" && ac_dir=.
4838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4839 lt_cv_path_LD="$ac_dir/$ac_prog"
4840 # Check to see if the program is GNU ld. I'd rather use --version,
4841 # but apparently some variants of GNU ld only accept -v.
4842 # Break only if it was the GNU/non-GNU ld that we prefer.
4843 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4844 *GNU* | *'with BFD'*)
4845 test "$with_gnu_ld" != no && break
4848 test "$with_gnu_ld" != yes && break
4855 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4860 if test -n "$LD"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4862 $as_echo "$LD" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4867 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4869 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4870 if ${lt_cv_prog_gnu_ld+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4874 case `$LD -v 2>&1 </dev/null` in
4875 *GNU* | *'with BFD'*)
4876 lt_cv_prog_gnu_ld=yes
4879 lt_cv_prog_gnu_ld=no
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4884 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4885 with_gnu_ld=$lt_cv_prog_gnu_ld
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4896 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4897 if ${lt_cv_path_NM+:} false; then :
4898 $as_echo_n "(cached) " >&6
4900 if test -n "$NM"; then
4901 # Let the user override the test.
4904 lt_nm_to_check="${ac_tool_prefix}nm"
4905 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4906 lt_nm_to_check="$lt_nm_to_check nm"
4908 for lt_tmp_nm in $lt_nm_to_check; do
4909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4910 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4912 test -z "$ac_dir" && ac_dir=.
4913 tmp_nm="$ac_dir/$lt_tmp_nm"
4914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4915 # Check to see if the nm accepts a BSD-compat flag.
4916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4917 # nm: unknown option "B" ignored
4918 # Tru64's nm complains that /dev/null is an invalid object file
4919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4920 */dev/null* | *'Invalid file or object type'*)
4921 lt_cv_path_NM="$tmp_nm -B"
4925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4927 lt_cv_path_NM="$tmp_nm -p"
4931 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4932 continue # so that we can try to find one that supports BSD flags
4941 : ${lt_cv_path_NM=no}
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4945 $as_echo "$lt_cv_path_NM" >&6; }
4946 if test "$lt_cv_path_NM" != "no"; then
4949 # Didn't find any BSD compatible name lister, look for dumpbin.
4950 if test -n "$DUMPBIN"; then :
4951 # Let the user override the test.
4953 if test -n "$ac_tool_prefix"; then
4954 for ac_prog in dumpbin "link -dump"
4956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_DUMPBIN+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -n "$DUMPBIN"; then
4964 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 DUMPBIN=$ac_cv_prog_DUMPBIN
4984 if test -n "$DUMPBIN"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4986 $as_echo "$DUMPBIN" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 test -n "$DUMPBIN" && break
4996 if test -z "$DUMPBIN"; then
4997 ac_ct_DUMPBIN=$DUMPBIN
4998 for ac_prog in dumpbin "link -dump"
5000 # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -n "$ac_ct_DUMPBIN"; then
5008 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5028 if test -n "$ac_ct_DUMPBIN"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5030 $as_echo "$ac_ct_DUMPBIN" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 test -n "$ac_ct_DUMPBIN" && break
5040 if test "x$ac_ct_DUMPBIN" = x; then
5043 case $cross_compiling:$ac_tool_warned in
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5049 DUMPBIN=$ac_ct_DUMPBIN
5053 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5055 DUMPBIN="$DUMPBIN -symbols"
5063 if test "$DUMPBIN" != ":"; then
5067 test -z "$NM" && NM=nm
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5075 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5076 if ${lt_cv_nm_interface+:} false; then :
5077 $as_echo_n "(cached) " >&6
5079 lt_cv_nm_interface="BSD nm"
5080 echo "int some_variable = 0;" > conftest.$ac_ext
5081 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5082 (eval "$ac_compile" 2>conftest.err)
5083 cat conftest.err >&5
5084 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5085 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5086 cat conftest.err >&5
5087 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5088 cat conftest.out >&5
5089 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5090 lt_cv_nm_interface="MS dumpbin"
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5095 $as_echo "$lt_cv_nm_interface" >&6; }
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5098 $as_echo_n "checking whether ln -s works... " >&6; }
5100 if test "$LN_S" = "ln -s"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5102 $as_echo "yes" >&6; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5105 $as_echo "no, using $LN_S" >&6; }
5108 # find the maximum length of command line arguments
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5110 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5111 if ${lt_cv_sys_max_cmd_len+:} false; then :
5112 $as_echo_n "(cached) " >&6
5119 # On DJGPP, this test can blow up pretty badly due to problems in libc
5120 # (any single argument exceeding 2000 bytes causes a buffer overrun
5121 # during glob expansion). Even if it were fixed, the result of this
5122 # check would be larger than it should be.
5123 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5127 # Under GNU Hurd, this test is not required because there is
5128 # no limit to the length of command line arguments.
5129 # Libtool will interpret -1 as no limit whatsoever
5130 lt_cv_sys_max_cmd_len=-1;
5133 cygwin* | mingw* | cegcc*)
5134 # On Win9x/ME, this test blows up -- it succeeds, but takes
5135 # about 5 minutes as the teststring grows exponentially.
5136 # Worse, since 9x/ME are not pre-emptively multitasking,
5137 # you end up with a "frozen" computer, even though with patience
5138 # the test eventually succeeds (with a max line length of 256k).
5139 # Instead, let's just punt: use the minimum linelength reported by
5140 # all of the supported platforms: 8192 (on NT/2K/XP).
5141 lt_cv_sys_max_cmd_len=8192;
5145 # On MiNT this can take a long time and run out of memory.
5146 lt_cv_sys_max_cmd_len=8192;
5150 # On AmigaOS with pdksh, this test takes hours, literally.
5151 # So we just punt and use a minimum line length of 8192.
5152 lt_cv_sys_max_cmd_len=8192;
5155 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5156 # This has been around since 386BSD, at least. Likely further.
5157 if test -x /sbin/sysctl; then
5158 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5159 elif test -x /usr/sbin/sysctl; then
5160 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5162 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5164 # And add a safety zone
5165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5170 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5171 lt_cv_sys_max_cmd_len=196608
5175 # The test takes a long time on OS/2.
5176 lt_cv_sys_max_cmd_len=8192
5180 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5181 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5182 # nice to cause kernel panics so lets avoid the loop below.
5183 # First set a reasonable default.
5184 lt_cv_sys_max_cmd_len=16384
5186 if test -x /sbin/sysconfig; then
5187 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5188 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5193 lt_cv_sys_max_cmd_len=102400
5195 sysv5* | sco5v6* | sysv4.2uw2*)
5196 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5197 if test -n "$kargmax"; then
5198 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5200 lt_cv_sys_max_cmd_len=32768
5204 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5205 if test -n "$lt_cv_sys_max_cmd_len"; then
5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5209 # Make teststring a little bigger before we do anything with it.
5210 # a 1K string should be a reasonable start.
5211 for i in 1 2 3 4 5 6 7 8 ; do
5212 teststring=$teststring$teststring
5214 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5215 # If test is not a shell built-in, we'll probably end up computing a
5216 # maximum length that is only half of the actual maximum length, but
5218 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5219 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5220 test $i != 17 # 1/2 MB should be enough
5223 teststring=$teststring$teststring
5225 # Only check the string length outside the loop.
5226 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5228 # Add a significant safety factor because C++ compilers can tack on
5229 # massive amounts of additional arguments before passing them to the
5230 # linker. It appears as though 1/2 is a usable value.
5231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5238 if test -n $lt_cv_sys_max_cmd_len ; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5240 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5243 $as_echo "none" >&6; }
5245 max_cmd_len=$lt_cv_sys_max_cmd_len
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5257 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5258 # Try some XSI features
5261 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5263 && eval 'test $(( 1 + 1 )) -eq 2 \
5264 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5267 $as_echo "$xsi_shell" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5271 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5273 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5275 && lt_shell_append=yes
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5277 $as_echo "$lt_shell_append" >&6; }
5280 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5290 # test EBCDIC or ASCII
5291 case `echo X|tr X '\101'` in
5292 A) # ASCII based system
5293 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5294 lt_SP2NL='tr \040 \012'
5295 lt_NL2SP='tr \015\012 \040\040'
5297 *) # EBCDIC based system
5298 lt_SP2NL='tr \100 \n'
5299 lt_NL2SP='tr \r\n \100\100'
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5312 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5313 if ${lt_cv_to_host_file_cmd+:} false; then :
5314 $as_echo_n "(cached) " >&6
5319 *-*-mingw* ) # actually msys
5320 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5323 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5325 * ) # otherwise, assume *nix
5326 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5332 *-*-mingw* ) # actually msys
5333 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5336 lt_cv_to_host_file_cmd=func_convert_file_noop
5338 * ) # otherwise, assume *nix
5339 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5343 * ) # unhandled hosts (and "normal" native builds)
5344 lt_cv_to_host_file_cmd=func_convert_file_noop
5350 to_host_file_cmd=$lt_cv_to_host_file_cmd
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5352 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5359 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5360 if ${lt_cv_to_tool_file_cmd+:} false; then :
5361 $as_echo_n "(cached) " >&6
5363 #assume ordinary cross tools, or native build.
5364 lt_cv_to_tool_file_cmd=func_convert_file_noop
5368 *-*-mingw* ) # actually msys
5369 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5377 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5379 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5386 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5387 if ${lt_cv_ld_reload_flag+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 lt_cv_ld_reload_flag='-r'
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5393 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5394 reload_flag=$lt_cv_ld_reload_flag
5395 case $reload_flag in
5397 *) reload_flag=" $reload_flag" ;;
5399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5401 cygwin* | mingw* | pw32* | cegcc*)
5402 if test "$GCC" != yes; then
5407 if test "$GCC" = yes; then
5408 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5410 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5423 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_prog_OBJDUMP+:} false; then :
5429 $as_echo_n "(cached) " >&6
5431 if test -n "$OBJDUMP"; then
5432 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 OBJDUMP=$ac_cv_prog_OBJDUMP
5452 if test -n "$OBJDUMP"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5454 $as_echo "$OBJDUMP" >&6; }
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5462 if test -z "$ac_cv_prog_OBJDUMP"; then
5463 ac_ct_OBJDUMP=$OBJDUMP
5464 # Extract the first word of "objdump", so it can be a program name with args.
5465 set dummy objdump; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5469 $as_echo_n "(cached) " >&6
5471 if test -n "$ac_ct_OBJDUMP"; then
5472 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5492 if test -n "$ac_ct_OBJDUMP"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5494 $as_echo "$ac_ct_OBJDUMP" >&6; }
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5500 if test "x$ac_ct_OBJDUMP" = x; then
5503 case $cross_compiling:$ac_tool_warned in
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5509 OBJDUMP=$ac_ct_OBJDUMP
5512 OBJDUMP="$ac_cv_prog_OBJDUMP"
5515 test -z "$OBJDUMP" && OBJDUMP=objdump
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5526 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5527 if ${lt_cv_deplibs_check_method+:} false; then :
5528 $as_echo_n "(cached) " >&6
5530 lt_cv_file_magic_cmd='$MAGIC_CMD'
5531 lt_cv_file_magic_test_file=
5532 lt_cv_deplibs_check_method='unknown'
5533 # Need to set the preceding variable on all platforms that support
5534 # interlibrary dependencies.
5535 # 'none' -- dependencies not supported.
5536 # `unknown' -- same as none, but documents that we really don't know.
5537 # 'pass_all' -- all dependencies passed with no checks.
5538 # 'test_compile' -- check by making test program.
5539 # 'file_magic [[regex]]' -- check by looking for files in library path
5540 # which responds to the $file_magic_cmd with a given extended regex.
5541 # If you have `file' or equivalent on your system and you're not sure
5542 # whether `pass_all' will *always* work, you probably want this one.
5546 lt_cv_deplibs_check_method=pass_all
5550 lt_cv_deplibs_check_method=pass_all
5554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5555 lt_cv_file_magic_cmd='/usr/bin/file -L'
5556 lt_cv_file_magic_test_file=/shlib/libc.so
5560 # func_win32_libid is a shell function defined in ltmain.sh
5561 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5562 lt_cv_file_magic_cmd='func_win32_libid'
5566 # Base MSYS/MinGW do not provide the 'file' command needed by
5567 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5568 # unless we find 'file', for example because we are cross-compiling.
5569 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5570 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5571 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5572 lt_cv_file_magic_cmd='func_win32_libid'
5574 # Keep this pattern in sync with the one in func_win32_libid.
5575 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5576 lt_cv_file_magic_cmd='$OBJDUMP -f'
5581 # use the weaker test based on 'objdump'. See mingw*.
5582 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5583 lt_cv_file_magic_cmd='$OBJDUMP -f'
5586 darwin* | rhapsody*)
5587 lt_cv_deplibs_check_method=pass_all
5590 freebsd* | dragonfly*)
5591 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5594 # Not sure whether the presence of OpenBSD here was a mistake.
5595 # Let's accept both of them until this is cleared up.
5596 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5597 lt_cv_file_magic_cmd=/usr/bin/file
5598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5602 lt_cv_deplibs_check_method=pass_all
5607 lt_cv_deplibs_check_method=pass_all
5611 lt_cv_deplibs_check_method=pass_all
5614 hpux10.20* | hpux11*)
5615 lt_cv_file_magic_cmd=/usr/bin/file
5618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5619 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5622 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]'
5623 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5627 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5633 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5637 irix5* | irix6* | nonstopux*)
5639 *-32|*"-32 ") libmagic=32-bit;;
5640 *-n32|*"-n32 ") libmagic=N32;;
5641 *-64|*"-64 ") libmagic=64-bit;;
5642 *) libmagic=never-match;;
5644 lt_cv_deplibs_check_method=pass_all
5647 # This must be glibc/ELF.
5648 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5649 lt_cv_deplibs_check_method=pass_all
5653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5662 lt_cv_file_magic_cmd=/usr/bin/file
5663 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5667 lt_cv_deplibs_check_method=pass_all
5671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5678 osf3* | osf4* | osf5*)
5679 lt_cv_deplibs_check_method=pass_all
5683 lt_cv_deplibs_check_method=pass_all
5687 lt_cv_deplibs_check_method=pass_all
5690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5691 lt_cv_deplibs_check_method=pass_all
5695 case $host_vendor in
5697 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]'
5698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5701 lt_cv_deplibs_check_method=pass_all
5704 lt_cv_file_magic_cmd='/bin/file'
5705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5708 lt_cv_file_magic_cmd='/bin/file'
5709 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5710 lt_cv_file_magic_test_file=/lib/libc.so
5713 lt_cv_deplibs_check_method=pass_all
5716 lt_cv_deplibs_check_method=pass_all
5722 lt_cv_deplibs_check_method=pass_all
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5728 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5732 if test "$build" = "$host"; then
5735 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5738 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5744 file_magic_cmd=$lt_cv_file_magic_cmd
5745 deplibs_check_method=$lt_cv_deplibs_check_method
5746 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5769 if test -n "$ac_tool_prefix"; then
5770 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5771 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_DLLTOOL+:} false; then :
5775 $as_echo_n "(cached) " >&6
5777 if test -n "$DLLTOOL"; then
5778 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 DLLTOOL=$ac_cv_prog_DLLTOOL
5798 if test -n "$DLLTOOL"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5800 $as_echo "$DLLTOOL" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5808 if test -z "$ac_cv_prog_DLLTOOL"; then
5809 ac_ct_DLLTOOL=$DLLTOOL
5810 # Extract the first word of "dlltool", so it can be a program name with args.
5811 set dummy dlltool; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5815 $as_echo_n "(cached) " >&6
5817 if test -n "$ac_ct_DLLTOOL"; then
5818 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5838 if test -n "$ac_ct_DLLTOOL"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5840 $as_echo "$ac_ct_DLLTOOL" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5846 if test "x$ac_ct_DLLTOOL" = x; then
5849 case $cross_compiling:$ac_tool_warned in
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5853 ac_tool_warned=yes ;;
5855 DLLTOOL=$ac_ct_DLLTOOL
5858 DLLTOOL="$ac_cv_prog_DLLTOOL"
5861 test -z "$DLLTOOL" && DLLTOOL=dlltool
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5873 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5874 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5875 $as_echo_n "(cached) " >&6
5877 lt_cv_sharedlib_from_linklib_cmd='unknown'
5880 cygwin* | mingw* | pw32* | cegcc*)
5881 # two different shell functions defined in ltmain.sh
5882 # decide which to use based on capabilities of $DLLTOOL
5883 case `$DLLTOOL --help 2>&1` in
5884 *--identify-strict*)
5885 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5893 # fallback: assume linklib IS sharedlib
5894 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5900 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5901 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5902 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5911 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_AR+:} false; then :
5919 $as_echo_n "(cached) " >&6
5921 if test -n "$AR"; then
5922 ac_cv_prog_AR="$AR" # Let the user override the test.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 if test -n "$AR"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5944 $as_echo "$AR" >&6; }
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5951 test -n "$AR" && break
5954 if test -z "$AR"; then
5958 # Extract the first word of "$ac_prog", so it can be a program name with args.
5959 set dummy $ac_prog; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5963 $as_echo_n "(cached) " >&6
5965 if test -n "$ac_ct_AR"; then
5966 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_AR="$ac_prog"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5986 if test -n "$ac_ct_AR"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5988 $as_echo "$ac_ct_AR" >&6; }
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5995 test -n "$ac_ct_AR" && break
5998 if test "x$ac_ct_AR" = x; then
6001 case $cross_compiling:$ac_tool_warned in
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005 ac_tool_warned=yes ;;
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6025 $as_echo_n "checking for archiver @FILE support... " >&6; }
6026 if ${lt_cv_ar_at_file+:} false; then :
6027 $as_echo_n "(cached) " >&6
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 echo conftest.$ac_objext > conftest.lst
6043 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6045 (eval $lt_ar_try) 2>&5
6047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6048 test $ac_status = 0; }
6049 if test "$ac_status" -eq 0; then
6050 # Ensure the archiver fails upon bogus file names.
6051 rm -f conftest.$ac_objext libconftest.a
6052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6053 (eval $lt_ar_try) 2>&5
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }
6057 if test "$ac_status" -ne 0; then
6061 rm -f conftest.* libconftest.a
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6068 $as_echo "$lt_cv_ar_at_file" >&6; }
6070 if test "x$lt_cv_ar_at_file" = xno; then
6073 archiver_list_spec=$lt_cv_ar_at_file
6082 if test -n "$ac_tool_prefix"; then
6083 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6084 set dummy ${ac_tool_prefix}strip; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if ${ac_cv_prog_STRIP+:} false; then :
6088 $as_echo_n "(cached) " >&6
6090 if test -n "$STRIP"; then
6091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 STRIP=$ac_cv_prog_STRIP
6111 if test -n "$STRIP"; then
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6113 $as_echo "$STRIP" >&6; }
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6121 if test -z "$ac_cv_prog_STRIP"; then
6123 # Extract the first word of "strip", so it can be a program name with args.
6124 set dummy strip; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6128 $as_echo_n "(cached) " >&6
6130 if test -n "$ac_ct_STRIP"; then
6131 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_prog_ac_ct_STRIP="strip"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6151 if test -n "$ac_ct_STRIP"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6153 $as_echo "$ac_ct_STRIP" >&6; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6159 if test "x$ac_ct_STRIP" = x; then
6162 case $cross_compiling:$ac_tool_warned in
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6166 ac_tool_warned=yes ;;
6171 STRIP="$ac_cv_prog_STRIP"
6174 test -z "$STRIP" && STRIP=:
6181 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185 $as_echo_n "checking for $ac_word... " >&6; }
6186 if ${ac_cv_prog_RANLIB+:} false; then :
6187 $as_echo_n "(cached) " >&6
6189 if test -n "$RANLIB"; then
6190 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 RANLIB=$ac_cv_prog_RANLIB
6210 if test -n "$RANLIB"; then
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6212 $as_echo "$RANLIB" >&6; }
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6220 if test -z "$ac_cv_prog_RANLIB"; then
6221 ac_ct_RANLIB=$RANLIB
6222 # Extract the first word of "ranlib", so it can be a program name with args.
6223 set dummy ranlib; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 if test -n "$ac_ct_RANLIB"; then
6230 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_ac_ct_RANLIB="ranlib"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6250 if test -n "$ac_ct_RANLIB"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6252 $as_echo "$ac_ct_RANLIB" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6258 if test "x$ac_ct_RANLIB" = x; then
6261 case $cross_compiling:$ac_tool_warned in
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned=yes ;;
6267 RANLIB=$ac_ct_RANLIB
6270 RANLIB="$ac_cv_prog_RANLIB"
6273 test -z "$RANLIB" && RANLIB=:
6280 # Determine commands to create old-style static archives.
6281 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6282 old_postinstall_cmds='chmod 644 $oldlib'
6283 old_postuninstall_cmds=
6285 if test -n "$RANLIB"; then
6288 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6291 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6294 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6299 lock_old_archive_extraction=yes ;;
6301 lock_old_archive_extraction=no ;;
6342 # If no C compiler was specified, use CC.
6345 # If no C compiler flags were specified, use CFLAGS.
6346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6348 # Allow CC to be a program name with arguments.
6352 # Check for command to grab the raw symbol name followed by C symbol from nm.
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6354 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6355 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6356 $as_echo_n "(cached) " >&6
6359 # These are sane defaults that work on at least a few old systems.
6360 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6362 # Character class describing NM global symbol codes.
6363 symcode='[BCDEGRST]'
6365 # Regexp to match symbols that can be accessed directly from C.
6366 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6368 # Define system-specific variables.
6373 cygwin* | mingw* | pw32* | cegcc*)
6374 symcode='[ABCDGISTW]'
6377 if test "$host_cpu" = ia64; then
6378 symcode='[ABCDEGRST]'
6382 symcode='[BCDEGRST]'
6385 symcode='[BCDEGQRST]'
6396 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6404 # If we're using GNU nm, then use its standard symbol codes.
6405 case `$NM -V 2>&1` in
6406 *GNU* | *'with BFD'*)
6407 symcode='[ABCDGIRSTW]' ;;
6410 # Transform an extracted symbol line into a proper C declaration.
6411 # Some systems (esp. on ia64) link data and code symbols differently,
6412 # so use this general approach.
6413 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6415 # Transform an extracted symbol line into symbol name and symbol address
6416 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6417 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'"
6419 # Handle CRLF in mingw tool chain
6423 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6427 # Try without a prefix underscore, then with it.
6428 for ac_symprfx in "" "_"; do
6430 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6431 symxfrm="\\1 $ac_symprfx\\2 \\2"
6433 # Write the raw and C identifiers.
6434 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6435 # Fake it for dumpbin and say T for any non-static function
6436 # and D for any global variable.
6437 # Also find C++ and __fastcall symbols from MSVC++,
6438 # which start with @ or ?.
6439 lt_cv_sys_global_symbol_pipe="$AWK '"\
6440 " {last_section=section; section=\$ 3};"\
6441 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6442 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6443 " \$ 0!~/External *\|/{next};"\
6444 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6445 " {if(hide[section]) next};"\
6446 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6447 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6448 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6449 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6450 " ' prfx=^$ac_symprfx"
6452 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6454 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6456 # Check to see that the pipe works correctly.
6460 cat > conftest.$ac_ext <<_LT_EOF
6465 void nm_test_func(void);
6466 void nm_test_func(void){}
6470 int main(){nm_test_var='a';nm_test_func();return(0);}
6473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6474 (eval $ac_compile) 2>&5
6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477 test $ac_status = 0; }; then
6478 # Now try to grab the symbols.
6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6481 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484 test $ac_status = 0; } && test -s "$nlist"; then
6485 # Try sorting and uniquifying the output.
6486 if sort "$nlist" | uniq > "$nlist"T; then
6487 mv -f "$nlist"T "$nlist"
6492 # Make sure that we snagged all the symbols we need.
6493 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6494 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6495 cat <<_LT_EOF > conftest.$ac_ext
6496 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6497 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6498 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6499 relocations are performed -- see ld's documentation on pseudo-relocs. */
6500 # define LT_DLSYM_CONST
6501 #elif defined(__osf__)
6502 /* This system does not cope well with relocations in const data. */
6503 # define LT_DLSYM_CONST
6505 # define LT_DLSYM_CONST const
6513 # Now generate the symbol file.
6514 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6516 cat <<_LT_EOF >> conftest.$ac_ext
6518 /* The mapping between symbol names and symbols. */
6519 LT_DLSYM_CONST struct {
6523 lt__PROGRAM__LTX_preloaded_symbols[] =
6525 { "@PROGRAM@", (void *) 0 },
6527 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6528 cat <<\_LT_EOF >> conftest.$ac_ext
6532 /* This works around a problem in FreeBSD linker */
6533 #ifdef FREEBSD_WORKAROUND
6534 static const void *lt_preloaded_setup() {
6535 return lt__PROGRAM__LTX_preloaded_symbols;
6543 # Now try linking the two files.
6544 mv conftest.$ac_objext conftstm.$ac_objext
6545 lt_globsym_save_LIBS=$LIBS
6546 lt_globsym_save_CFLAGS=$CFLAGS
6547 LIBS="conftstm.$ac_objext"
6548 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6550 (eval $ac_link) 2>&5
6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6556 LIBS=$lt_globsym_save_LIBS
6557 CFLAGS=$lt_globsym_save_CFLAGS
6559 echo "cannot find nm_test_func in $nlist" >&5
6562 echo "cannot find nm_test_var in $nlist" >&5
6565 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6568 echo "$progname: failed program was:" >&5
6569 cat conftest.$ac_ext >&5
6571 rm -rf conftest* conftst*
6573 # Do not use the global_symbol_pipe unless it works.
6574 if test "$pipe_works" = yes; then
6577 lt_cv_sys_global_symbol_pipe=
6583 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6584 lt_cv_sys_global_symbol_to_cdecl=
6586 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6588 $as_echo "failed" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6591 $as_echo "ok" >&6; }
6594 # Response file support.
6595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6596 nm_file_list_spec='@'
6597 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6598 nm_file_list_spec='@'
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6628 $as_echo_n "checking for sysroot... " >&6; }
6630 # Check whether --with-sysroot was given.
6631 if test "${with_sysroot+set}" = set; then :
6632 withval=$with_sysroot;
6639 case ${with_sysroot} in #(
6641 if test "$GCC" = yes; then
6642 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6646 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6652 $as_echo "${with_sysroot}" >&6; }
6653 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6658 $as_echo "${lt_sysroot:-no}" >&6; }
6664 # Check whether --enable-libtool-lock was given.
6665 if test "${enable_libtool_lock+set}" = set; then :
6666 enableval=$enable_libtool_lock;
6669 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6671 # Some flags need to be propagated to the compiler or linker for good
6675 # Find out which ABI we are using.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 case `/usr/bin/file conftest.$ac_objext` in
6694 # Find out which ABI we are using.
6695 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6697 (eval $ac_compile) 2>&5
6699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700 test $ac_status = 0; }; then
6701 if test "$lt_cv_prog_gnu_ld" = yes; then
6702 case `/usr/bin/file conftest.$ac_objext` in
6704 LD="${LD-ld} -melf32bsmip"
6707 LD="${LD-ld} -melf32bmipn32"
6710 LD="${LD-ld} -melf64bmip"
6714 case `/usr/bin/file conftest.$ac_objext` in
6730 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6731 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6732 # Find out which ABI we are using.
6733 echo 'int i;' > conftest.$ac_ext
6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735 (eval $ac_compile) 2>&5
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; }; then
6739 case `/usr/bin/file conftest.o` in
6742 x86_64-*kfreebsd*-gnu)
6743 LD="${LD-ld} -m elf_i386_fbsd"
6746 LD="${LD-ld} -m elf_i386"
6748 ppc64-*linux*|powerpc64-*linux*)
6749 LD="${LD-ld} -m elf32ppclinux"
6752 LD="${LD-ld} -m elf_s390"
6755 LD="${LD-ld} -m elf32_sparc"
6761 x86_64-*kfreebsd*-gnu)
6762 LD="${LD-ld} -m elf_x86_64_fbsd"
6765 LD="${LD-ld} -m elf_x86_64"
6767 ppc*-*linux*|powerpc*-*linux*)
6768 LD="${LD-ld} -m elf64ppc"
6770 s390*-*linux*|s390*-*tpf*)
6771 LD="${LD-ld} -m elf64_s390"
6774 LD="${LD-ld} -m elf64_sparc"
6784 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6785 SAVE_CFLAGS="$CFLAGS"
6786 CFLAGS="$CFLAGS -belf"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6788 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6789 if ${lt_cv_cc_needs_belf+:} false; then :
6790 $as_echo_n "(cached) " >&6
6793 ac_cpp='$CPP $CPPFLAGS'
6794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6809 if ac_fn_c_try_link "$LINENO"; then :
6810 lt_cv_cc_needs_belf=yes
6812 lt_cv_cc_needs_belf=no
6814 rm -f core conftest.err conftest.$ac_objext \
6815 conftest$ac_exeext conftest.$ac_ext
6817 ac_cpp='$CPP $CPPFLAGS'
6818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6824 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6825 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6826 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6827 CFLAGS="$SAVE_CFLAGS"
6831 # Find out which ABI we are using.
6832 echo 'int i;' > conftest.$ac_ext
6833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6834 (eval $ac_compile) 2>&5
6836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837 test $ac_status = 0; }; then
6838 case `/usr/bin/file conftest.o` in
6840 case $lt_cv_prog_gnu_ld in
6844 LD="${LD-ld} -m elf_x86_64"
6847 LD="${LD-ld} -m elf64_sparc"
6850 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6851 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6856 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6868 need_locks="$enable_libtool_lock"
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}mt; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6876 $as_echo_n "(cached) " >&6
6878 if test -n "$MANIFEST_TOOL"; then
6879 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6899 if test -n "$MANIFEST_TOOL"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6901 $as_echo "$MANIFEST_TOOL" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6909 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6910 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6911 # Extract the first word of "mt", so it can be a program name with args.
6912 set dummy mt; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6916 $as_echo_n "(cached) " >&6
6918 if test -n "$ac_ct_MANIFEST_TOOL"; then
6919 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6939 if test -n "$ac_ct_MANIFEST_TOOL"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6941 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6947 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6950 case $cross_compiling:$ac_tool_warned in
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6956 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6959 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6962 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6964 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6965 if ${lt_cv_path_mainfest_tool+:} false; then :
6966 $as_echo_n "(cached) " >&6
6968 lt_cv_path_mainfest_tool=no
6969 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6970 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6971 cat conftest.err >&5
6972 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6973 lt_cv_path_mainfest_tool=yes
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6978 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6979 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6989 rhapsody* | darwin*)
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6996 $as_echo_n "(cached) " >&6
6998 if test -n "$DSYMUTIL"; then
6999 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7019 if test -n "$DSYMUTIL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7021 $as_echo "$DSYMUTIL" >&6; }
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7029 if test -z "$ac_cv_prog_DSYMUTIL"; then
7030 ac_ct_DSYMUTIL=$DSYMUTIL
7031 # Extract the first word of "dsymutil", so it can be a program name with args.
7032 set dummy dsymutil; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7036 $as_echo_n "(cached) " >&6
7038 if test -n "$ac_ct_DSYMUTIL"; then
7039 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7059 if test -n "$ac_ct_DSYMUTIL"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7061 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7067 if test "x$ac_ct_DSYMUTIL" = x; then
7070 case $cross_compiling:$ac_tool_warned in
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7076 DSYMUTIL=$ac_ct_DSYMUTIL
7079 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7082 if test -n "$ac_tool_prefix"; then
7083 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7084 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_NMEDIT+:} false; then :
7088 $as_echo_n "(cached) " >&6
7090 if test -n "$NMEDIT"; then
7091 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 NMEDIT=$ac_cv_prog_NMEDIT
7111 if test -n "$NMEDIT"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7113 $as_echo "$NMEDIT" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7121 if test -z "$ac_cv_prog_NMEDIT"; then
7122 ac_ct_NMEDIT=$NMEDIT
7123 # Extract the first word of "nmedit", so it can be a program name with args.
7124 set dummy nmedit; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7128 $as_echo_n "(cached) " >&6
7130 if test -n "$ac_ct_NMEDIT"; then
7131 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7151 if test -n "$ac_ct_NMEDIT"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7153 $as_echo "$ac_ct_NMEDIT" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7159 if test "x$ac_ct_NMEDIT" = x; then
7162 case $cross_compiling:$ac_tool_warned in
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7166 ac_tool_warned=yes ;;
7168 NMEDIT=$ac_ct_NMEDIT
7171 NMEDIT="$ac_cv_prog_NMEDIT"
7174 if test -n "$ac_tool_prefix"; then
7175 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7176 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_LIPO+:} false; then :
7180 $as_echo_n "(cached) " >&6
7182 if test -n "$LIPO"; then
7183 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 LIPO=$ac_cv_prog_LIPO
7203 if test -n "$LIPO"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7205 $as_echo "$LIPO" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7213 if test -z "$ac_cv_prog_LIPO"; then
7215 # Extract the first word of "lipo", so it can be a program name with args.
7216 set dummy lipo; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7220 $as_echo_n "(cached) " >&6
7222 if test -n "$ac_ct_LIPO"; then
7223 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_prog_ac_ct_LIPO="lipo"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7243 if test -n "$ac_ct_LIPO"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7245 $as_echo "$ac_ct_LIPO" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7251 if test "x$ac_ct_LIPO" = x; then
7254 case $cross_compiling:$ac_tool_warned in
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7258 ac_tool_warned=yes ;;
7263 LIPO="$ac_cv_prog_LIPO"
7266 if test -n "$ac_tool_prefix"; then
7267 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7268 set dummy ${ac_tool_prefix}otool; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_OTOOL+:} false; then :
7272 $as_echo_n "(cached) " >&6
7274 if test -n "$OTOOL"; then
7275 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 OTOOL=$ac_cv_prog_OTOOL
7295 if test -n "$OTOOL"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7297 $as_echo "$OTOOL" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7305 if test -z "$ac_cv_prog_OTOOL"; then
7307 # Extract the first word of "otool", so it can be a program name with args.
7308 set dummy otool; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 if test -n "$ac_ct_OTOOL"; then
7315 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7324 ac_cv_prog_ac_ct_OTOOL="otool"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7335 if test -n "$ac_ct_OTOOL"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7337 $as_echo "$ac_ct_OTOOL" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7343 if test "x$ac_ct_OTOOL" = x; then
7346 case $cross_compiling:$ac_tool_warned in
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7355 OTOOL="$ac_cv_prog_OTOOL"
7358 if test -n "$ac_tool_prefix"; then
7359 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7360 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_prog_OTOOL64+:} false; then :
7364 $as_echo_n "(cached) " >&6
7366 if test -n "$OTOOL64"; then
7367 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 OTOOL64=$ac_cv_prog_OTOOL64
7387 if test -n "$OTOOL64"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7389 $as_echo "$OTOOL64" >&6; }
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7397 if test -z "$ac_cv_prog_OTOOL64"; then
7398 ac_ct_OTOOL64=$OTOOL64
7399 # Extract the first word of "otool64", so it can be a program name with args.
7400 set dummy otool64; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7404 $as_echo_n "(cached) " >&6
7406 if test -n "$ac_ct_OTOOL64"; then
7407 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7416 ac_cv_prog_ac_ct_OTOOL64="otool64"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7427 if test -n "$ac_ct_OTOOL64"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7429 $as_echo "$ac_ct_OTOOL64" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7435 if test "x$ac_ct_OTOOL64" = x; then
7438 case $cross_compiling:$ac_tool_warned in
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442 ac_tool_warned=yes ;;
7444 OTOOL64=$ac_ct_OTOOL64
7447 OTOOL64="$ac_cv_prog_OTOOL64"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7477 $as_echo_n "checking for -single_module linker flag... " >&6; }
7478 if ${lt_cv_apple_cc_single_mod+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 lt_cv_apple_cc_single_mod=no
7482 if test -z "${LT_MULTI_MODULE}"; then
7483 # By default we will add the -single_module flag. You can override
7484 # by either setting the environment variable LT_MULTI_MODULE
7485 # non-empty at configure time, or by adding -multi_module to the
7487 rm -rf libconftest.dylib*
7488 echo "int foo(void){return 1;}" > conftest.c
7489 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7490 -dynamiclib -Wl,-single_module conftest.c" >&5
7491 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7492 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7494 # If there is a non-empty error log, and "single_module"
7495 # appears in it, assume the flag caused a linker warning
7496 if test -s conftest.err && $GREP single_module conftest.err; then
7497 cat conftest.err >&5
7498 # Otherwise, if the output was created with a 0 exit code from
7499 # the compiler, it worked.
7500 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7501 lt_cv_apple_cc_single_mod=yes
7503 cat conftest.err >&5
7505 rm -rf libconftest.dylib*
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7510 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7513 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7514 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7515 $as_echo_n "(cached) " >&6
7517 lt_cv_ld_exported_symbols_list=no
7518 save_LDFLAGS=$LDFLAGS
7519 echo "_main" > conftest.sym
7520 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7532 if ac_fn_c_try_link "$LINENO"; then :
7533 lt_cv_ld_exported_symbols_list=yes
7535 lt_cv_ld_exported_symbols_list=no
7537 rm -f core conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539 LDFLAGS="$save_LDFLAGS"
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7543 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7546 $as_echo_n "checking for -force_load linker flag... " >&6; }
7547 if ${lt_cv_ld_force_load+:} false; then :
7548 $as_echo_n "(cached) " >&6
7550 lt_cv_ld_force_load=no
7551 cat > conftest.c << _LT_EOF
7552 int forced_loaded() { return 2;}
7554 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7555 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7556 echo "$AR cru libconftest.a conftest.o" >&5
7557 $AR cru libconftest.a conftest.o 2>&5
7558 echo "$RANLIB libconftest.a" >&5
7559 $RANLIB libconftest.a 2>&5
7560 cat > conftest.c << _LT_EOF
7561 int main() { return 0;}
7563 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7564 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7566 if test -s conftest.err && $GREP force_load conftest.err; then
7567 cat conftest.err >&5
7568 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7569 lt_cv_ld_force_load=yes
7571 cat conftest.err >&5
7573 rm -f conftest.err libconftest.a conftest conftest.c
7574 rm -rf conftest.dSYM
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7578 $as_echo "$lt_cv_ld_force_load" >&6; }
7580 rhapsody* | darwin1.[012])
7581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7584 darwin*) # darwin 5.x on
7585 # if running on 10.5 or later, the deployment target defaults
7586 # to the OS version, if on x86, and 10.4, the deployment
7587 # target defaults to 10.4. Don't you love it?
7588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7589 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7599 _lt_dar_single_mod='$single_module'
7601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7606 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7607 _lt_dsymutil='~$DSYMUTIL $lib || :'
7615 ac_cpp='$CPP $CPPFLAGS'
7616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7620 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7621 # On Suns, sometimes $CPP names a directory.
7622 if test -n "$CPP" && test -d "$CPP"; then
7625 if test -z "$CPP"; then
7626 if ${ac_cv_prog_CPP+:} false; then :
7627 $as_echo_n "(cached) " >&6
7629 # Double quotes because CPP needs to be expanded
7630 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7633 for ac_c_preproc_warn_flag in '' yes
7635 # Use a header file that comes with gcc, so configuring glibc
7636 # with a fresh cross-compiler works.
7637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7638 # <limits.h> exists even on freestanding compilers.
7639 # On the NeXT, cc -E runs the code through the compiler's parser,
7640 # not just through cpp. "Syntax error" is here to catch this case.
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7644 # include <limits.h>
7646 # include <assert.h>
7650 if ac_fn_c_try_cpp "$LINENO"; then :
7653 # Broken: fails on valid input.
7656 rm -f conftest.err conftest.i conftest.$ac_ext
7658 # OK, works on sane cases. Now check whether nonexistent headers
7659 # can be detected and how.
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662 #include <ac_nonexistent.h>
7664 if ac_fn_c_try_cpp "$LINENO"; then :
7665 # Broken: success on invalid input.
7668 # Passes both tests.
7672 rm -f conftest.err conftest.i conftest.$ac_ext
7675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7676 rm -f conftest.i conftest.err conftest.$ac_ext
7677 if $ac_preproc_ok; then :
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7690 $as_echo "$CPP" >&6; }
7692 for ac_c_preproc_warn_flag in '' yes
7694 # Use a header file that comes with gcc, so configuring glibc
7695 # with a fresh cross-compiler works.
7696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7697 # <limits.h> exists even on freestanding compilers.
7698 # On the NeXT, cc -E runs the code through the compiler's parser,
7699 # not just through cpp. "Syntax error" is here to catch this case.
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7703 # include <limits.h>
7705 # include <assert.h>
7709 if ac_fn_c_try_cpp "$LINENO"; then :
7712 # Broken: fails on valid input.
7715 rm -f conftest.err conftest.i conftest.$ac_ext
7717 # OK, works on sane cases. Now check whether nonexistent headers
7718 # can be detected and how.
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 #include <ac_nonexistent.h>
7723 if ac_fn_c_try_cpp "$LINENO"; then :
7724 # Broken: success on invalid input.
7727 # Passes both tests.
7731 rm -f conftest.err conftest.i conftest.$ac_ext
7734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7735 rm -f conftest.i conftest.err conftest.$ac_ext
7736 if $ac_preproc_ok; then :
7739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7741 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7742 See \`config.log' for more details" "$LINENO" 5; }
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7753 $as_echo_n "checking for ANSI C header files... " >&6; }
7754 if ${ac_cv_header_stdc+:} false; then :
7755 $as_echo_n "(cached) " >&6
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773 ac_cv_header_stdc=yes
7775 ac_cv_header_stdc=no
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 if test $ac_cv_header_stdc = yes; then
7780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7787 $EGREP "memchr" >/dev/null 2>&1; then :
7790 ac_cv_header_stdc=no
7796 if test $ac_cv_header_stdc = yes; then
7797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7804 $EGREP "free" >/dev/null 2>&1; then :
7807 ac_cv_header_stdc=no
7813 if test $ac_cv_header_stdc = yes; then
7814 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7815 if test "$cross_compiling" = yes; then :
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7822 #if ((' ' & 0x0FF) == 0x020)
7823 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7824 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7826 # define ISLOWER(c) \
7827 (('a' <= (c) && (c) <= 'i') \
7828 || ('j' <= (c) && (c) <= 'r') \
7829 || ('s' <= (c) && (c) <= 'z'))
7830 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7833 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7838 for (i = 0; i < 256; i++)
7839 if (XOR (islower (i), ISLOWER (i))
7840 || toupper (i) != TOUPPER (i))
7845 if ac_fn_c_try_run "$LINENO"; then :
7848 ac_cv_header_stdc=no
7850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7851 conftest.$ac_objext conftest.beam conftest.$ac_ext
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7857 $as_echo "$ac_cv_header_stdc" >&6; }
7858 if test $ac_cv_header_stdc = yes; then
7860 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7864 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7865 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7866 inttypes.h stdint.h unistd.h
7868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7869 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7871 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7872 cat >>confdefs.h <<_ACEOF
7873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7881 for ac_header in dlfcn.h
7883 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7885 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7886 cat >>confdefs.h <<_ACEOF
7887 #define HAVE_DLFCN_H 1
7908 # Check whether --enable-shared was given.
7909 if test "${enable_shared+set}" = set; then :
7910 enableval=$enable_shared; p=${PACKAGE-default}
7912 yes) enable_shared=yes ;;
7913 no) enable_shared=no ;;
7916 # Look at the argument we got. We use all the common list separators.
7917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7918 for pkg in $enableval; do
7920 if test "X$pkg" = "X$p"; then
7939 # Check whether --enable-static was given.
7940 if test "${enable_static+set}" = set; then :
7941 enableval=$enable_static; p=${PACKAGE-default}
7943 yes) enable_static=yes ;;
7944 no) enable_static=no ;;
7947 # Look at the argument we got. We use all the common list separators.
7948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7949 for pkg in $enableval; do
7951 if test "X$pkg" = "X$p"; then
7971 # Check whether --with-pic was given.
7972 if test "${with_pic+set}" = set; then :
7973 withval=$with_pic; lt_p=${PACKAGE-default}
7975 yes|no) pic_mode=$withval ;;
7978 # Look at the argument we got. We use all the common list separators.
7979 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7980 for lt_pkg in $withval; do
7982 if test "X$lt_pkg" = "X$lt_p"; then
7994 test -z "$pic_mode" && pic_mode=default
8002 # Check whether --enable-fast-install was given.
8003 if test "${enable_fast_install+set}" = set; then :
8004 enableval=$enable_fast_install; p=${PACKAGE-default}
8006 yes) enable_fast_install=yes ;;
8007 no) enable_fast_install=no ;;
8009 enable_fast_install=no
8010 # Look at the argument we got. We use all the common list separators.
8011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8012 for pkg in $enableval; do
8014 if test "X$pkg" = "X$p"; then
8015 enable_fast_install=yes
8022 enable_fast_install=yes
8035 # This can be used to rebuild libtool when needed
8036 LIBTOOL_DEPS="$ltmain"
8038 # Always use our own libtool.
8039 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8070 test -z "$LN_S" && LN_S="ln -s"
8085 if test -n "${ZSH_VERSION+set}" ; then
8086 setopt NO_GLOB_SUBST
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8090 $as_echo_n "checking for objdir... " >&6; }
8091 if ${lt_cv_objdir+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 rm -f .libs 2>/dev/null
8095 mkdir .libs 2>/dev/null
8096 if test -d .libs; then
8099 # MS-DOS does not allow filenames that begin with a dot.
8102 rmdir .libs 2>/dev/null
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8105 $as_echo "$lt_cv_objdir" >&6; }
8106 objdir=$lt_cv_objdir
8112 cat >>confdefs.h <<_ACEOF
8113 #define LT_OBJDIR "$lt_cv_objdir/"
8121 # AIX sometimes has problems with the GCC collect2 program. For some
8122 # reason, if we set the COLLECT_NAMES environment variable, the problems
8123 # vanish in a puff of smoke.
8124 if test "X${COLLECT_NAMES+set}" != Xset; then
8126 export COLLECT_NAMES
8133 can_build_shared=yes
8135 # All known linkers require a `.a' archive for static linking (except MSVC,
8136 # which needs '.lib').
8139 with_gnu_ld="$lt_cv_prog_gnu_ld"
8142 old_CFLAGS="$CFLAGS"
8144 # Set sane defaults for various variables
8145 test -z "$CC" && CC=cc
8146 test -z "$LTCC" && LTCC=$CC
8147 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8148 test -z "$LD" && LD=ld
8149 test -z "$ac_objext" && ac_objext=o
8151 for cc_temp in $compiler""; do
8153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8159 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8162 # Only perform the check for file, if the check method requires it
8163 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8164 case $deplibs_check_method in
8166 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8168 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8169 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8170 $as_echo_n "(cached) " >&6
8174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8177 lt_save_MAGIC_CMD="$MAGIC_CMD"
8178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8180 for ac_dir in $ac_dummy; do
8182 test -z "$ac_dir" && ac_dir=.
8183 if test -f $ac_dir/${ac_tool_prefix}file; then
8184 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8185 if test -n "$file_magic_test_file"; then
8186 case $deplibs_check_method in
8188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8191 $EGREP "$file_magic_regex" > /dev/null; then
8196 *** Warning: the command libtool uses to detect shared libraries,
8197 *** $file_magic_cmd, produces output that libtool cannot recognize.
8198 *** The result is that libtool may fail to recognize shared libraries
8199 *** as such. This will affect the creation of libtool libraries that
8200 *** depend on shared libraries, but programs linked with such libtool
8201 *** libraries will work regardless of this problem. Nevertheless, you
8202 *** may want to report the problem to your system manager and/or to
8203 *** bug-libtool@gnu.org
8213 MAGIC_CMD="$lt_save_MAGIC_CMD"
8218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8219 if test -n "$MAGIC_CMD"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8221 $as_echo "$MAGIC_CMD" >&6; }
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8231 if test -z "$lt_cv_path_MAGIC_CMD"; then
8232 if test -n "$ac_tool_prefix"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8234 $as_echo_n "checking for file... " >&6; }
8235 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8236 $as_echo_n "(cached) " >&6
8240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8243 lt_save_MAGIC_CMD="$MAGIC_CMD"
8244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8246 for ac_dir in $ac_dummy; do
8248 test -z "$ac_dir" && ac_dir=.
8249 if test -f $ac_dir/file; then
8250 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8251 if test -n "$file_magic_test_file"; then
8252 case $deplibs_check_method in
8254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8257 $EGREP "$file_magic_regex" > /dev/null; then
8262 *** Warning: the command libtool uses to detect shared libraries,
8263 *** $file_magic_cmd, produces output that libtool cannot recognize.
8264 *** The result is that libtool may fail to recognize shared libraries
8265 *** as such. This will affect the creation of libtool libraries that
8266 *** depend on shared libraries, but programs linked with such libtool
8267 *** libraries will work regardless of this problem. Nevertheless, you
8268 *** may want to report the problem to your system manager and/or to
8269 *** bug-libtool@gnu.org
8279 MAGIC_CMD="$lt_save_MAGIC_CMD"
8284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8285 if test -n "$MAGIC_CMD"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8287 $as_echo "$MAGIC_CMD" >&6; }
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8303 # Use C for the default configuration in the libtool script
8307 ac_cpp='$CPP $CPPFLAGS'
8308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8313 # Source file extension for C test sources.
8316 # Object file extension for compiled C test sources.
8320 # Code to be used in simple compile tests
8321 lt_simple_compile_test_code="int some_variable = 0;"
8323 # Code to be used in simple link tests
8324 lt_simple_link_test_code='int main(){return(0);}'
8332 # If no C compiler was specified, use CC.
8335 # If no C compiler flags were specified, use CFLAGS.
8336 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8338 # Allow CC to be a program name with arguments.
8341 # Save the default compiler, since it gets overwritten when the other
8342 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8343 compiler_DEFAULT=$CC
8345 # save warnings/boilerplate of simple test code
8346 ac_outfile=conftest.$ac_objext
8347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8349 _lt_compiler_boilerplate=`cat conftest.err`
8352 ac_outfile=conftest.$ac_objext
8353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8355 _lt_linker_boilerplate=`cat conftest.err`
8359 if test -n "$compiler"; then
8361 lt_prog_compiler_no_builtin_flag=
8363 if test "$GCC" = yes; then
8364 case $cc_basename in
8366 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8368 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8372 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8373 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8374 $as_echo_n "(cached) " >&6
8376 lt_cv_prog_compiler_rtti_exceptions=no
8377 ac_outfile=conftest.$ac_objext
8378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8379 lt_compiler_flag="-fno-rtti -fno-exceptions"
8380 # Insert the option either (1) after the last *FLAGS variable, or
8381 # (2) before a word containing "conftest.", or (3) at the end.
8382 # Note that $ac_compile itself does not contain backslashes and begins
8383 # with a dollar sign (not a hyphen), so the echo should work correctly.
8384 # The option is referenced via a variable to avoid confusing sed.
8385 lt_compile=`echo "$ac_compile" | $SED \
8386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8388 -e 's:$: $lt_compiler_flag:'`
8389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8390 (eval "$lt_compile" 2>conftest.err)
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 if (exit $ac_status) && test -s "$ac_outfile"; then
8395 # The compiler can only warn and ignore the option if not recognized
8396 # So say no if there are warnings other than the usual output.
8397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8400 lt_cv_prog_compiler_rtti_exceptions=yes
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8407 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8409 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8410 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8422 lt_prog_compiler_wl=
8423 lt_prog_compiler_pic=
8424 lt_prog_compiler_static=
8427 if test "$GCC" = yes; then
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_static='-static'
8433 # All AIX code is PIC.
8434 if test "$host_cpu" = ia64; then
8435 # AIX 5 now supports IA64 processor
8436 lt_prog_compiler_static='-Bstatic'
8443 # see comment about AmigaOS4 .so support
8444 lt_prog_compiler_pic='-fPIC'
8447 # FIXME: we need at least 68020 code to build shared libraries, but
8448 # adding the `-m68020' flag to GCC prevents building anything better,
8450 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8455 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8456 # PIC is the default for these OSes.
8459 mingw* | cygwin* | pw32* | os2* | cegcc*)
8460 # This hack is so that the source file can tell whether it is being
8461 # built for inclusion in a dll (and should export symbols for example).
8462 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8463 # (--disable-auto-import) libraries
8464 lt_prog_compiler_pic='-DDLL_EXPORT'
8467 darwin* | rhapsody*)
8468 # PIC is the default on this platform
8469 # Common symbols not allowed in MH_DYLIB files
8470 lt_prog_compiler_pic='-fno-common'
8474 # PIC is the default for Haiku.
8475 # The "-static" flag exists, but is broken.
8476 lt_prog_compiler_static=
8480 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8481 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8482 # sets the default TLS model and affects inlining.
8488 lt_prog_compiler_pic='-fPIC'
8494 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8495 # Instead, we relocate shared libraries at runtime.
8499 # Just because we use GCC doesn't mean we suddenly get shared libraries
8500 # on systems that don't support them.
8501 lt_prog_compiler_can_build_shared=no
8506 # QNX uses GNU C++, but need to define -shared option too, otherwise
8508 lt_prog_compiler_pic='-fPIC -shared'
8512 if test -d /usr/nec; then
8513 lt_prog_compiler_pic=-Kconform_pic
8518 lt_prog_compiler_pic='-fPIC'
8522 case $cc_basename in
8523 nvcc*) # Cuda Compiler Driver 2.2
8524 lt_prog_compiler_wl='-Xlinker '
8525 if test -n "$lt_prog_compiler_pic"; then
8526 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8531 # PORTME Check for flag to pass linker flags through the system compiler.
8534 lt_prog_compiler_wl='-Wl,'
8535 if test "$host_cpu" = ia64; then
8536 # AIX 5 now supports IA64 processor
8537 lt_prog_compiler_static='-Bstatic'
8539 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8543 mingw* | cygwin* | pw32* | os2* | cegcc*)
8544 # This hack is so that the source file can tell whether it is being
8545 # built for inclusion in a dll (and should export symbols for example).
8546 lt_prog_compiler_pic='-DDLL_EXPORT'
8549 hpux9* | hpux10* | hpux11*)
8550 lt_prog_compiler_wl='-Wl,'
8551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8558 lt_prog_compiler_pic='+Z'
8561 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8562 lt_prog_compiler_static='${wl}-a ${wl}archive'
8565 irix5* | irix6* | nonstopux*)
8566 lt_prog_compiler_wl='-Wl,'
8567 # PIC (with -KPIC) is the default.
8568 lt_prog_compiler_static='-non_shared'
8571 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8572 case $cc_basename in
8573 # old Intel for x86_64 which still supported -KPIC.
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-KPIC'
8577 lt_prog_compiler_static='-static'
8579 # icc used to be incompatible with GCC.
8580 # ICC 10 doesn't accept -KPIC any more.
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-fPIC'
8584 lt_prog_compiler_static='-static'
8586 # Lahey Fortran 8.1.
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='--shared'
8590 lt_prog_compiler_static='--static'
8593 # NAG Fortran compiler
8594 lt_prog_compiler_wl='-Wl,-Wl,,'
8595 lt_prog_compiler_pic='-PIC'
8596 lt_prog_compiler_static='-Bstatic'
8598 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8599 # Portland Group compilers (*not* the Pentium gcc compiler,
8600 # which looks to be a dead project)
8601 lt_prog_compiler_wl='-Wl,'
8602 lt_prog_compiler_pic='-fpic'
8603 lt_prog_compiler_static='-Bstatic'
8606 lt_prog_compiler_wl='-Wl,'
8607 # All Alpha code is PIC.
8608 lt_prog_compiler_static='-non_shared'
8610 xl* | bgxl* | bgf* | mpixl*)
8611 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8612 lt_prog_compiler_wl='-Wl,'
8613 lt_prog_compiler_pic='-qpic'
8614 lt_prog_compiler_static='-qstaticlink'
8617 case `$CC -V 2>&1 | sed 5q` in
8618 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8619 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8620 lt_prog_compiler_pic='-KPIC'
8621 lt_prog_compiler_static='-Bstatic'
8622 lt_prog_compiler_wl=''
8624 *Sun\ F* | *Sun*Fortran*)
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
8627 lt_prog_compiler_wl='-Qoption ld '
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 lt_prog_compiler_wl='-Wl,'
8635 *Intel*\ [CF]*Compiler*)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_pic='-fPIC'
8638 lt_prog_compiler_static='-static'
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-fpic'
8643 lt_prog_compiler_static='-Bstatic'
8651 lt_prog_compiler_pic='-KPIC'
8652 lt_prog_compiler_static='-Bstatic'
8656 # QNX uses GNU C++, but need to define -shared option too, otherwise
8658 lt_prog_compiler_pic='-fPIC -shared'
8661 osf3* | osf4* | osf5*)
8662 lt_prog_compiler_wl='-Wl,'
8663 # All OSF/1 code is PIC.
8664 lt_prog_compiler_static='-non_shared'
8668 lt_prog_compiler_static='-non_shared'
8672 lt_prog_compiler_pic='-KPIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 case $cc_basename in
8675 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8676 lt_prog_compiler_wl='-Qoption ld ';;
8678 lt_prog_compiler_wl='-Wl,';;
8683 lt_prog_compiler_wl='-Qoption ld '
8684 lt_prog_compiler_pic='-PIC'
8685 lt_prog_compiler_static='-Bstatic'
8688 sysv4 | sysv4.2uw2* | sysv4.3*)
8689 lt_prog_compiler_wl='-Wl,'
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8695 if test -d /usr/nec ;then
8696 lt_prog_compiler_pic='-Kconform_pic'
8697 lt_prog_compiler_static='-Bstatic'
8701 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8702 lt_prog_compiler_wl='-Wl,'
8703 lt_prog_compiler_pic='-KPIC'
8704 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_wl='-Wl,'
8709 lt_prog_compiler_can_build_shared=no
8713 lt_prog_compiler_pic='-pic'
8714 lt_prog_compiler_static='-Bstatic'
8718 lt_prog_compiler_can_build_shared=no
8724 # For platforms which do not support PIC, -DPIC is meaningless:
8726 lt_prog_compiler_pic=
8729 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8734 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8735 if ${lt_cv_prog_compiler_pic+:} false; then :
8736 $as_echo_n "(cached) " >&6
8738 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8741 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8742 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8745 # Check to make sure the PIC flag actually works.
8747 if test -n "$lt_prog_compiler_pic"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8749 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8750 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8751 $as_echo_n "(cached) " >&6
8753 lt_cv_prog_compiler_pic_works=no
8754 ac_outfile=conftest.$ac_objext
8755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8757 # Insert the option either (1) after the last *FLAGS variable, or
8758 # (2) before a word containing "conftest.", or (3) at the end.
8759 # Note that $ac_compile itself does not contain backslashes and begins
8760 # with a dollar sign (not a hyphen), so the echo should work correctly.
8761 # The option is referenced via a variable to avoid confusing sed.
8762 lt_compile=`echo "$ac_compile" | $SED \
8763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8765 -e 's:$: $lt_compiler_flag:'`
8766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8767 (eval "$lt_compile" 2>conftest.err)
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 if (exit $ac_status) && test -s "$ac_outfile"; then
8772 # The compiler can only warn and ignore the option if not recognized
8773 # So say no if there are warnings other than the usual output.
8774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8777 lt_cv_prog_compiler_pic_works=yes
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8784 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8786 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8787 case $lt_prog_compiler_pic in
8789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8792 lt_prog_compiler_pic=
8793 lt_prog_compiler_can_build_shared=no
8809 # Check to make sure the static flag actually works.
8811 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8813 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8814 if ${lt_cv_prog_compiler_static_works+:} false; then :
8815 $as_echo_n "(cached) " >&6
8817 lt_cv_prog_compiler_static_works=no
8818 save_LDFLAGS="$LDFLAGS"
8819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8820 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8822 # The linker can only warn and ignore the option if not recognized
8823 # So say no if there are warnings
8824 if test -s conftest.err; then
8825 # Append any errors to the config.log.
8826 cat conftest.err 1>&5
8827 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8829 if diff conftest.exp conftest.er2 >/dev/null; then
8830 lt_cv_prog_compiler_static_works=yes
8833 lt_cv_prog_compiler_static_works=yes
8837 LDFLAGS="$save_LDFLAGS"
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8841 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8843 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8846 lt_prog_compiler_static=
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8856 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8857 if ${lt_cv_prog_compiler_c_o+:} false; then :
8858 $as_echo_n "(cached) " >&6
8860 lt_cv_prog_compiler_c_o=no
8861 $RM -r conftest 2>/dev/null
8865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8867 lt_compiler_flag="-o out/conftest2.$ac_objext"
8868 # Insert the option either (1) after the last *FLAGS variable, or
8869 # (2) before a word containing "conftest.", or (3) at the end.
8870 # Note that $ac_compile itself does not contain backslashes and begins
8871 # with a dollar sign (not a hyphen), so the echo should work correctly.
8872 lt_compile=`echo "$ac_compile" | $SED \
8873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8875 -e 's:$: $lt_compiler_flag:'`
8876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8877 (eval "$lt_compile" 2>out/conftest.err)
8879 cat out/conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8883 # The compiler can only warn and ignore the option if not recognized
8884 # So say no if there are warnings
8885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8888 lt_cv_prog_compiler_c_o=yes
8893 # SGI C++ compiler will create directory out/ii_files/ for
8894 # template instantiation
8895 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8896 $RM out/* && rmdir out
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8903 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8911 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8912 if ${lt_cv_prog_compiler_c_o+:} false; then :
8913 $as_echo_n "(cached) " >&6
8915 lt_cv_prog_compiler_c_o=no
8916 $RM -r conftest 2>/dev/null
8920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8922 lt_compiler_flag="-o out/conftest2.$ac_objext"
8923 # Insert the option either (1) after the last *FLAGS variable, or
8924 # (2) before a word containing "conftest.", or (3) at the end.
8925 # Note that $ac_compile itself does not contain backslashes and begins
8926 # with a dollar sign (not a hyphen), so the echo should work correctly.
8927 lt_compile=`echo "$ac_compile" | $SED \
8928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930 -e 's:$: $lt_compiler_flag:'`
8931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932 (eval "$lt_compile" 2>out/conftest.err)
8934 cat out/conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8938 # The compiler can only warn and ignore the option if not recognized
8939 # So say no if there are warnings
8940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8941 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8942 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8943 lt_cv_prog_compiler_c_o=yes
8948 # SGI C++ compiler will create directory out/ii_files/ for
8949 # template instantiation
8950 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8951 $RM out/* && rmdir out
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8958 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8963 hard_links="nottested"
8964 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8965 # do not overwrite the value of need_locks provided by the user
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8967 $as_echo_n "checking if we can lock with hard links... " >&6; }
8970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8972 ln conftest.a conftest.b 2>&5 || hard_links=no
8973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8975 $as_echo "$hard_links" >&6; }
8976 if test "$hard_links" = no; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8978 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8994 allow_undefined_flag=
8995 always_export_symbols=no
8997 archive_expsym_cmds=
8998 compiler_needs_object=no
8999 enable_shared_with_static_runtimes=no
9000 export_dynamic_flag_spec=
9001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9002 hardcode_automatic=no
9004 hardcode_direct_absolute=no
9005 hardcode_libdir_flag_spec=
9006 hardcode_libdir_separator=
9008 hardcode_shlibpath_var=unsupported
9010 link_all_deplibs=unknown
9013 old_archive_from_new_cmds=
9014 old_archive_from_expsyms_cmds=
9015 thread_safe_flag_spec=
9016 whole_archive_flag_spec=
9017 # include_expsyms should be a list of space-separated symbols to be *always*
9018 # included in the symbol list
9020 # exclude_expsyms can be an extended regexp of symbols to exclude
9021 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9022 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9023 # as well as any symbol that contains `d'.
9024 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9025 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9026 # platforms (ab)use it in PIC code, but their linkers get confused if
9027 # the symbol is explicitly referenced. Since portable code cannot
9028 # rely on this symbol name, it's probably fine to never include it in
9029 # preloaded symbol tables.
9030 # Exclude shared library initialization/finalization symbols.
9031 extract_expsyms_cmds=
9034 cygwin* | mingw* | pw32* | cegcc*)
9035 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9036 # When not using gcc, we currently assume that we are using
9037 # Microsoft Visual C++.
9038 if test "$GCC" != yes; then
9043 # we just hope/assume this is gcc and not c89 (= MSVC++)
9053 # On some targets, GNU ld is compatible enough with the native linker
9054 # that we're better off using the native interface for both.
9055 lt_use_gnu_ld_interface=no
9056 if test "$with_gnu_ld" = yes; then
9059 # The AIX port of GNU ld has always aspired to compatibility
9060 # with the native linker. However, as the warning in the GNU ld
9061 # block says, versions before 2.19.5* couldn't really create working
9062 # shared libraries, regardless of the interface used.
9063 case `$LD -v 2>&1` in
9064 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9065 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9066 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9068 lt_use_gnu_ld_interface=yes
9073 lt_use_gnu_ld_interface=yes
9078 if test "$lt_use_gnu_ld_interface" = yes; then
9079 # If archive_cmds runs LD, not CC, wlarc should be empty
9082 # Set some defaults for GNU ld with shared library support. These
9083 # are reset later if shared libraries are not supported. Putting them
9084 # here allows them to be overridden if necessary.
9085 runpath_var=LD_RUN_PATH
9086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9087 export_dynamic_flag_spec='${wl}--export-dynamic'
9088 # ancient GNU ld didn't support --whole-archive et. al.
9089 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9090 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9092 whole_archive_flag_spec=
9094 supports_anon_versioning=no
9095 case `$LD -v 2>&1` in
9096 *GNU\ gold*) supports_anon_versioning=yes ;;
9097 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9098 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9099 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9100 *\ 2.11.*) ;; # other 2.11 versions
9101 *) supports_anon_versioning=yes ;;
9104 # See if GNU ld supports shared libraries.
9107 # On AIX/PPC, the GNU linker is very broken
9108 if test "$host_cpu" != ia64; then
9112 *** Warning: the GNU linker, at least up to release 2.19, is reported
9113 *** to be unable to reliably create shared libraries on AIX.
9114 *** Therefore, libtool is disabling shared libraries support. If you
9115 *** really care for shared libraries, you may want to install binutils
9116 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9117 *** You will then need to restart the configuration process.
9126 # see comment about AmigaOS4 .so support
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 archive_expsym_cmds=''
9131 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)'
9132 hardcode_libdir_flag_spec='-L$libdir'
9133 hardcode_minus_L=yes
9139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9140 allow_undefined_flag=unsupported
9141 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9142 # support --undefined. This deserves some investigation. FIXME
9143 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149 cygwin* | mingw* | pw32* | cegcc*)
9150 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9151 # as there is no search path for DLLs.
9152 hardcode_libdir_flag_spec='-L$libdir'
9153 export_dynamic_flag_spec='${wl}--export-all-symbols'
9154 allow_undefined_flag=unsupported
9155 always_export_symbols=no
9156 enable_shared_with_static_runtimes=yes
9157 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9158 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9162 # If the export-symbols file already is a .def file (1st line
9163 # is EXPORTS), use it as is; otherwise, prepend...
9164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9165 cp $export_symbols $output_objdir/$soname.def;
9167 echo EXPORTS > $output_objdir/$soname.def;
9168 cat $export_symbols >> $output_objdir/$soname.def;
9170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178 link_all_deplibs=yes
9183 hardcode_shlibpath_var=no
9184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9185 export_dynamic_flag_spec='${wl}-E'
9186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9187 # Instead, shared libraries are loaded at an image base (0x10000000 by
9188 # default) and relocated if they conflict, which is a slow very memory
9189 # consuming and fragmenting process. To avoid this, we pick a random,
9190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9193 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'
9196 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9198 if test "$host_os" = linux-dietlibc; then
9199 case $cc_basename in
9200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9204 && test "$tmp_diet" = no
9206 tmp_addflag=' $pic_flag'
9207 tmp_sharedflag='-shared'
9208 case $cc_basename,$host_cpu in
9209 pgcc*) # Portland Group C compiler
9210 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'
9211 tmp_addflag=' $pic_flag'
9213 pgf77* | pgf90* | pgf95* | pgfortran*)
9214 # Portland Group f77 and f90 compilers
9215 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'
9216 tmp_addflag=' $pic_flag -Mnomain' ;;
9217 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9218 tmp_addflag=' -i_dynamic' ;;
9219 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9220 tmp_addflag=' -i_dynamic -nofor_main' ;;
9221 ifc* | ifort*) # Intel Fortran compiler
9222 tmp_addflag=' -nofor_main' ;;
9223 lf95*) # Lahey Fortran 8.1
9224 whole_archive_flag_spec=
9225 tmp_sharedflag='--shared' ;;
9226 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9227 tmp_sharedflag='-qmkshrobj'
9229 nvcc*) # Cuda Compiler Driver 2.2
9230 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'
9231 compiler_needs_object=yes
9234 case `$CC -V 2>&1 | sed 5q` in
9235 *Sun\ C*) # Sun C 5.9
9236 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'
9237 compiler_needs_object=yes
9238 tmp_sharedflag='-G' ;;
9239 *Sun\ F*) # Sun Fortran 8.3
9240 tmp_sharedflag='-G' ;;
9242 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9244 if test "x$supports_anon_versioning" = xyes; then
9245 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9247 echo "local: *; };" >> $output_objdir/$libname.ver~
9248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9251 case $cc_basename in
9252 xlf* | bgf* | bgxlf* | mpixlf*)
9253 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9254 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9257 if test "x$supports_anon_versioning" = xyes; then
9258 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9260 echo "local: *; };" >> $output_objdir/$libname.ver~
9261 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9272 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9285 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9286 *** create shared libraries on Solaris systems. Therefore, libtool
9287 *** is disabling shared libraries support. We urge you to upgrade GNU
9288 *** binutils to release 2.9.1 or newer. Another option is to modify
9289 *** your PATH or compiler configuration so that the native linker is
9290 *** used, and then restart.
9293 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9302 case `$LD -v 2>&1` in
9303 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9307 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9308 *** reliably create shared libraries on SCO systems. Therefore, libtool
9309 *** is disabling shared libraries support. We urge you to upgrade GNU
9310 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9311 *** your PATH or compiler configuration so that the native linker is
9312 *** used, and then restart.
9317 # For security reasons, it is highly recommended that you always
9318 # use absolute paths for naming shared libraries, and exclude the
9319 # DT_RUNPATH tag from executables and libraries. But doing so
9320 # requires that you compile everything twice, which is a pain.
9321 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9333 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_shlibpath_var=no
9340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9349 if test "$ld_shlibs" = no; then
9351 hardcode_libdir_flag_spec=
9352 export_dynamic_flag_spec=
9353 whole_archive_flag_spec=
9356 # PORTME fill in a description of your system's linker (not GNU ld)
9359 allow_undefined_flag=unsupported
9360 always_export_symbols=yes
9361 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'
9362 # Note: this linker hardcodes the directories in LIBPATH if there
9363 # are no directories specified by -L.
9364 hardcode_minus_L=yes
9365 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9366 # Neither direct hardcoding nor static linking is supported with a
9368 hardcode_direct=unsupported
9373 if test "$host_cpu" = ia64; then
9374 # On IA64, the linker does run time linking by default, so we don't
9375 # have to do anything special.
9376 aix_use_runtimelinking=no
9377 exp_sym_flag='-Bexport'
9380 # If we're using GNU nm, then we don't want the "-C" option.
9381 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9382 # Also, AIX nm treats weak defined symbols like other global
9383 # defined symbols, whereas GNU nm marks them as "W".
9384 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9385 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'
9387 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'
9389 aix_use_runtimelinking=no
9391 # Test if we are trying to use run time linking or normal
9392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9393 # need to do runtime linking.
9394 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9395 for ld_flag in $LDFLAGS; do
9396 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9397 aix_use_runtimelinking=yes
9404 exp_sym_flag='-bexport'
9405 no_entry_flag='-bnoentry'
9408 # When large executables or shared objects are built, AIX ld can
9409 # have problems creating the table of contents. If linking a library
9410 # or program results in "error TOC overflow" add -mminimal-toc to
9411 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9412 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9416 hardcode_direct_absolute=yes
9417 hardcode_libdir_separator=':'
9418 link_all_deplibs=yes
9419 file_list_spec='${wl}-f,'
9421 if test "$GCC" = yes; then
9422 case $host_os in aix4.[012]|aix4.[012].*)
9423 # We only want to do this on AIX 4.2 and lower, the check
9424 # below for broken collect2 doesn't work under 4.3+
9425 collect2name=`${CC} -print-prog-name=collect2`
9426 if test -f "$collect2name" &&
9427 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9429 # We have reworked collect2
9432 # We have old collect2
9433 hardcode_direct=unsupported
9434 # It fails to find uninstalled libraries when the uninstalled
9435 # path is not listed in the libpath. Setting hardcode_minus_L
9436 # to unsupported forces relinking
9437 hardcode_minus_L=yes
9438 hardcode_libdir_flag_spec='-L$libdir'
9439 hardcode_libdir_separator=
9443 shared_flag='-shared'
9444 if test "$aix_use_runtimelinking" = yes; then
9445 shared_flag="$shared_flag "'${wl}-G'
9449 if test "$host_cpu" = ia64; then
9450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9451 # chokes on -Wl,-G. The following line is correct:
9454 if test "$aix_use_runtimelinking" = yes; then
9455 shared_flag='${wl}-G'
9457 shared_flag='${wl}-bM:SRE'
9462 export_dynamic_flag_spec='${wl}-bexpall'
9463 # It seems that -bexpall does not export symbols beginning with
9464 # underscore (_), so it is better to generate a list of symbols to export.
9465 always_export_symbols=yes
9466 if test "$aix_use_runtimelinking" = yes; then
9467 # Warning - without using the other runtime loading flags (-brtl),
9468 # -berok will link without error, but may produce a broken library.
9469 allow_undefined_flag='-berok'
9470 # Determine the default libpath from the value encoded in an
9472 if test "${lt_cv_aix_libpath+set}" = set; then
9473 aix_libpath=$lt_cv_aix_libpath
9475 if ${lt_cv_aix_libpath_+:} false; then :
9476 $as_echo_n "(cached) " >&6
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9489 if ac_fn_c_try_link "$LINENO"; then :
9491 lt_aix_libpath_sed='
9492 /Import File Strings/,/^$/ {
9494 s/^0 *\([^ ]*\) *$/\1/
9498 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9499 # Check for a 64-bit object if we didn't find anything.
9500 if test -z "$lt_cv_aix_libpath_"; then
9501 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9504 rm -f core conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 if test -z "$lt_cv_aix_libpath_"; then
9507 lt_cv_aix_libpath_="/usr/lib:/lib"
9512 aix_libpath=$lt_cv_aix_libpath_
9515 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9516 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"
9518 if test "$host_cpu" = ia64; then
9519 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9520 allow_undefined_flag="-z nodefs"
9521 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"
9523 # Determine the default libpath from the value encoded in an
9525 if test "${lt_cv_aix_libpath+set}" = set; then
9526 aix_libpath=$lt_cv_aix_libpath
9528 if ${lt_cv_aix_libpath_+:} false; then :
9529 $as_echo_n "(cached) " >&6
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9542 if ac_fn_c_try_link "$LINENO"; then :
9544 lt_aix_libpath_sed='
9545 /Import File Strings/,/^$/ {
9547 s/^0 *\([^ ]*\) *$/\1/
9551 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9552 # Check for a 64-bit object if we didn't find anything.
9553 if test -z "$lt_cv_aix_libpath_"; then
9554 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9557 rm -f core conftest.err conftest.$ac_objext \
9558 conftest$ac_exeext conftest.$ac_ext
9559 if test -z "$lt_cv_aix_libpath_"; then
9560 lt_cv_aix_libpath_="/usr/lib:/lib"
9565 aix_libpath=$lt_cv_aix_libpath_
9568 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9569 # Warning - without using the other run time loading flags,
9570 # -berok will link without error, but may produce a broken library.
9571 no_undefined_flag=' ${wl}-bernotok'
9572 allow_undefined_flag=' ${wl}-berok'
9573 if test "$with_gnu_ld" = yes; then
9574 # We only use this code for GNU lds that support --whole-archive.
9575 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9577 # Exported symbols can be pulled into shared objects from archives
9578 whole_archive_flag_spec='$convenience'
9580 archive_cmds_need_lc=yes
9581 # This is similar to how AIX traditionally builds its shared libraries.
9582 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'
9590 # see comment about AmigaOS4 .so support
9591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9592 archive_expsym_cmds=''
9595 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)'
9596 hardcode_libdir_flag_spec='-L$libdir'
9597 hardcode_minus_L=yes
9603 export_dynamic_flag_spec=-rdynamic
9606 cygwin* | mingw* | pw32* | cegcc*)
9607 # When not using gcc, we currently assume that we are using
9608 # Microsoft Visual C++.
9609 # hardcode_libdir_flag_spec is actually meaningless, as there is
9610 # no search path for DLLs.
9611 case $cc_basename in
9614 hardcode_libdir_flag_spec=' '
9615 allow_undefined_flag=unsupported
9616 always_export_symbols=yes
9618 # Tell ltmain to make .lib files, not .a files.
9620 # Tell ltmain to make .dll files, not .so files.
9622 # FIXME: Setting linknames here is a bad hack.
9623 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9624 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9625 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9627 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9629 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9631 # The linker will not automatically build a static lib if we build a DLL.
9632 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9633 enable_shared_with_static_runtimes=yes
9634 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9635 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9637 old_postinstall_cmds='chmod 644 $oldlib'
9638 postlink_cmds='lt_outputfile="@OUTPUT@"~
9639 lt_tool_outputfile="@TOOL_OUTPUT@"~
9640 case $lt_outputfile in
9643 lt_outputfile="$lt_outputfile.exe"
9644 lt_tool_outputfile="$lt_tool_outputfile.exe"
9647 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9648 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9649 $RM "$lt_outputfile.manifest";
9653 # Assume MSVC wrapper
9654 hardcode_libdir_flag_spec=' '
9655 allow_undefined_flag=unsupported
9656 # Tell ltmain to make .lib files, not .a files.
9658 # Tell ltmain to make .dll files, not .so files.
9660 # FIXME: Setting linknames here is a bad hack.
9661 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9662 # The linker will automatically build a .lib file if we build a DLL.
9663 old_archive_from_new_cmds='true'
9664 # FIXME: Should let the user specify the lib program.
9665 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9666 enable_shared_with_static_runtimes=yes
9671 darwin* | rhapsody*)
9674 archive_cmds_need_lc=no
9676 hardcode_automatic=yes
9677 hardcode_shlibpath_var=unsupported
9678 if test "$lt_cv_ld_force_load" = "yes"; then
9679 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\"`'
9682 whole_archive_flag_spec=''
9684 link_all_deplibs=yes
9685 allow_undefined_flag="$_lt_dar_allow_undefined"
9686 case $cc_basename in
9687 ifort*) _lt_dar_can_shared=yes ;;
9688 *) _lt_dar_can_shared=$GCC ;;
9690 if test "$_lt_dar_can_shared" = "yes"; then
9691 output_verbose_link_cmd=func_echo_all
9692 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9693 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9694 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}"
9695 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}"
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_libdir_flag_spec='-L$libdir'
9706 hardcode_shlibpath_var=no
9709 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9710 # support. Future versions do this automatically, but an explicit c++rt0.o
9711 # does not break anything, and helps significantly (at the cost of a little
9714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9715 hardcode_libdir_flag_spec='-R$libdir'
9717 hardcode_shlibpath_var=no
9720 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_minus_L=yes
9725 hardcode_shlibpath_var=no
9728 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9729 freebsd* | dragonfly*)
9730 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9731 hardcode_libdir_flag_spec='-R$libdir'
9733 hardcode_shlibpath_var=no
9737 if test "$GCC" = yes; then
9738 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9740 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'
9742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9743 hardcode_libdir_separator=:
9746 # hardcode_minus_L: Not really in the search PATH,
9747 # but as the default location of the library.
9748 hardcode_minus_L=yes
9749 export_dynamic_flag_spec='${wl}-E'
9753 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9754 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9758 if test "$with_gnu_ld" = no; then
9759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9760 hardcode_libdir_separator=:
9762 hardcode_direct_absolute=yes
9763 export_dynamic_flag_spec='${wl}-E'
9764 # hardcode_minus_L: Not really in the search PATH,
9765 # but as the default location of the library.
9766 hardcode_minus_L=yes
9771 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9774 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9780 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9786 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9793 # Older versions of the 11.00 compiler do not understand -b yet
9794 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9796 $as_echo_n "checking if $CC understands -b... " >&6; }
9797 if ${lt_cv_prog_compiler__b+:} false; then :
9798 $as_echo_n "(cached) " >&6
9800 lt_cv_prog_compiler__b=no
9801 save_LDFLAGS="$LDFLAGS"
9802 LDFLAGS="$LDFLAGS -b"
9803 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9805 # The linker can only warn and ignore the option if not recognized
9806 # So say no if there are warnings
9807 if test -s conftest.err; then
9808 # Append any errors to the config.log.
9809 cat conftest.err 1>&5
9810 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9812 if diff conftest.exp conftest.er2 >/dev/null; then
9813 lt_cv_prog_compiler__b=yes
9816 lt_cv_prog_compiler__b=yes
9820 LDFLAGS="$save_LDFLAGS"
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9824 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9826 if test x"$lt_cv_prog_compiler__b" = xyes; then
9827 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9829 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9835 if test "$with_gnu_ld" = no; then
9836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9837 hardcode_libdir_separator=:
9842 hardcode_shlibpath_var=no
9846 hardcode_direct_absolute=yes
9847 export_dynamic_flag_spec='${wl}-E'
9849 # hardcode_minus_L: Not really in the search PATH,
9850 # but as the default location of the library.
9851 hardcode_minus_L=yes
9857 irix5* | irix6* | nonstopux*)
9858 if test "$GCC" = yes; then
9859 archive_cmds='$CC -shared $pic_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'
9860 # Try to use the -exported_symbol ld option, if it does not
9861 # work, assume that -exports_file does not work either and
9862 # implicitly export all symbols.
9863 # This should be the same for all languages, so no per-tag cache variable.
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9865 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9866 if ${lt_cv_irix_exported_symbol+:} false; then :
9867 $as_echo_n "(cached) " >&6
9869 save_LDFLAGS="$LDFLAGS"
9870 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873 int foo (void) { return 0; }
9875 if ac_fn_c_try_link "$LINENO"; then :
9876 lt_cv_irix_exported_symbol=yes
9878 lt_cv_irix_exported_symbol=no
9880 rm -f core conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LDFLAGS="$save_LDFLAGS"
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9885 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9886 if test "$lt_cv_irix_exported_symbol" = yes; then
9887 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9890 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'
9891 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'
9893 archive_cmds_need_lc='no'
9894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9895 hardcode_libdir_separator=:
9897 link_all_deplibs=yes
9901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9904 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9906 hardcode_libdir_flag_spec='-R$libdir'
9908 hardcode_shlibpath_var=no
9912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9915 hardcode_libdir_separator=:
9916 hardcode_shlibpath_var=no
9923 if test -f /usr/libexec/ld.so; then
9925 hardcode_shlibpath_var=no
9926 hardcode_direct_absolute=yes
9927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9931 export_dynamic_flag_spec='${wl}-E'
9934 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9936 hardcode_libdir_flag_spec='-R$libdir'
9939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9950 hardcode_libdir_flag_spec='-L$libdir'
9951 hardcode_minus_L=yes
9952 allow_undefined_flag=unsupported
9953 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'
9954 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9958 if test "$GCC" = yes; then
9959 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9960 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'
9962 allow_undefined_flag=' -expect_unresolved \*'
9963 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'
9965 archive_cmds_need_lc='no'
9966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9967 hardcode_libdir_separator=:
9970 osf4* | osf5*) # as osf3* with the addition of -msym flag
9971 if test "$GCC" = yes; then
9972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9973 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976 allow_undefined_flag=' -expect_unresolved \*'
9977 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'
9978 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~
9979 $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'
9981 # Both c and cxx compiler support -rpath directly
9982 hardcode_libdir_flag_spec='-rpath $libdir'
9984 archive_cmds_need_lc='no'
9985 hardcode_libdir_separator=:
9989 no_undefined_flag=' -z defs'
9990 if test "$GCC" = yes; then
9992 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9994 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9996 case `$CC -V 2>&1` in
9999 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10005 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10011 hardcode_libdir_flag_spec='-R$libdir'
10012 hardcode_shlibpath_var=no
10014 solaris2.[0-5] | solaris2.[0-5].*) ;;
10016 # The compiler driver will combine and reorder linker options,
10017 # but understands `-z linker_flag'. GCC discards it without `$wl',
10018 # but is careful enough not to reorder.
10019 # Supported since Solaris 2.6 (maybe 2.5.1?)
10020 if test "$GCC" = yes; then
10021 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10023 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10027 link_all_deplibs=yes
10031 if test "x$host_vendor" = xsequent; then
10032 # Use $CC to link under sequent, because it throws in some extra .o
10033 # files that make .init and .fini sections work.
10034 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_libdir_flag_spec='-L$libdir'
10039 hardcode_direct=yes
10040 hardcode_minus_L=yes
10041 hardcode_shlibpath_var=no
10045 case $host_vendor in
10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048 hardcode_direct=yes # is this really true???
10051 ## LD is ld it makes a PLAMLIB
10052 ## CC just makes a GrossModule.
10053 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10054 reload_cmds='$CC -r -o $output$reload_objs'
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10062 runpath_var='LD_RUN_PATH'
10063 hardcode_shlibpath_var=no
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_shlibpath_var=no
10069 export_dynamic_flag_spec='-Bexport'
10073 if test -d /usr/nec; then
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_shlibpath_var=no
10076 runpath_var=LD_RUN_PATH
10077 hardcode_runpath_var=yes
10082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10083 no_undefined_flag='${wl}-z,text'
10084 archive_cmds_need_lc=no
10085 hardcode_shlibpath_var=no
10086 runpath_var='LD_RUN_PATH'
10088 if test "$GCC" = yes; then
10089 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 sysv5* | sco3.2v5* | sco5v6*)
10098 # Note: We can NOT use -z defs as we might desire, because we do not
10099 # link with -lc, and that would cause any symbols used from libc to
10100 # always be unresolved, which means just about no library would
10101 # ever link correctly. If we're not using GNU ld we use -z text
10102 # though, which does catch some bad symbols but isn't as heavy-handed
10104 no_undefined_flag='${wl}-z,text'
10105 allow_undefined_flag='${wl}-z,nodefs'
10106 archive_cmds_need_lc=no
10107 hardcode_shlibpath_var=no
10108 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10109 hardcode_libdir_separator=':'
10110 link_all_deplibs=yes
10111 export_dynamic_flag_spec='${wl}-Bexport'
10112 runpath_var='LD_RUN_PATH'
10114 if test "$GCC" = yes; then
10115 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_shlibpath_var=no
10134 if test x$host_vendor = xsni; then
10136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10137 export_dynamic_flag_spec='${wl}-Blargedynsym'
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10144 $as_echo "$ld_shlibs" >&6; }
10145 test "$ld_shlibs" = no && can_build_shared=no
10147 with_gnu_ld=$with_gnu_ld
10164 # Do we need to explicitly link libc?
10166 case "x$archive_cmds_need_lc" in
10168 # Assume -lc should be added
10169 archive_cmds_need_lc=yes
10171 if test "$enable_shared" = yes && test "$GCC" = yes; then
10172 case $archive_cmds in
10174 # FIXME: we may have to deal with multi-command sequences.
10177 # Test whether the compiler implicitly links with -lc since on some
10178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10179 # to ld, don't add -lc before -lgcc.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10181 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10182 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10183 $as_echo_n "(cached) " >&6
10186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10189 (eval $ac_compile) 2>&5
10191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10192 test $ac_status = 0; } 2>conftest.err; then
10195 libobjs=conftest.$ac_objext
10197 wl=$lt_prog_compiler_wl
10198 pic_flag=$lt_prog_compiler_pic
10204 lt_save_allow_undefined_flag=$allow_undefined_flag
10205 allow_undefined_flag=
10206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10207 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10210 test $ac_status = 0; }
10212 lt_cv_archive_cmds_need_lc=no
10214 lt_cv_archive_cmds_need_lc=yes
10216 allow_undefined_flag=$lt_save_allow_undefined_flag
10218 cat conftest.err 1>&5
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10224 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10225 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10384 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10386 if test "$GCC" = yes; then
10388 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10389 *) lt_awk_arg="/^libraries:/" ;;
10392 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10393 *) lt_sed_strip_eq="s,=/,/,g" ;;
10395 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10396 case $lt_search_path_spec in
10398 # if the path contains ";" then we assume it to be the separator
10399 # otherwise default to the standard path separator (i.e. ":") - it is
10400 # assumed that no part of a normal pathname contains ";" but that should
10401 # okay in the real world where ";" in dirpaths is itself problematic.
10402 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10408 # Ok, now we have the path, separated by spaces, we can step through it
10409 # and add multilib dir if necessary.
10410 lt_tmp_lt_search_path_spec=
10411 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10412 for lt_sys_path in $lt_search_path_spec; do
10413 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10414 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10416 test -d "$lt_sys_path" && \
10417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10420 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10421 BEGIN {RS=" "; FS="/|\n";} {
10424 for (lt_i = NF; lt_i > 0; lt_i--) {
10425 if ($lt_i != "" && $lt_i != ".") {
10426 if ($lt_i == "..") {
10429 if (lt_count == 0) {
10430 lt_foo="/" $lt_i lt_foo;
10437 if (lt_foo != "") { lt_freq[lt_foo]++; }
10438 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10440 # AWK program above erroneously prepends '/' to C:/dos/paths
10443 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10444 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10446 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10448 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10450 library_names_spec=
10451 libname_spec='lib$name'
10455 postuninstall_cmds=
10459 shlibpath_overrides_runpath=unknown
10461 dynamic_linker="$host_os ld.so"
10462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10463 need_lib_prefix=unknown
10464 hardcode_into_libs=no
10466 # when you set need_version to no, make sure it does not cause -set_version
10467 # flags to be left without arguments
10468 need_version=unknown
10472 version_type=linux # correct to gnu/linux during the next big refactor
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10474 shlibpath_var=LIBPATH
10476 # AIX 3 has no versioning support, so we append a major version to the name.
10477 soname_spec='${libname}${release}${shared_ext}$major'
10481 version_type=linux # correct to gnu/linux during the next big refactor
10484 hardcode_into_libs=yes
10485 if test "$host_cpu" = ia64; then
10486 # AIX 5 supports IA64
10487 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10488 shlibpath_var=LD_LIBRARY_PATH
10490 # With GCC up to 2.95.x, collect2 would create an import file
10491 # for dependence libraries. The import file would start with
10492 # the line `#! .'. This would cause the generated library to
10493 # depend on `.', always an invalid library. This was fixed in
10494 # development snapshots of GCC prior to 3.0.
10496 aix4 | aix4.[01] | aix4.[01].*)
10497 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10499 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10502 can_build_shared=no
10506 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10507 # soname into executable. Probably we can add versioning support to
10508 # collect2, so additional links can be useful in future.
10509 if test "$aix_use_runtimelinking" = yes; then
10510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10511 # instead of lib<name>.a to let people know that these are not
10512 # typical AIX shared libraries.
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515 # We preserve .a as extension for shared libraries through AIX4.2
10516 # and later when we are not doing run time linking.
10517 library_names_spec='${libname}${release}.a $libname.a'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10520 shlibpath_var=LIBPATH
10527 # Since July 2007 AmigaOS4 officially supports .so libraries.
10528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532 library_names_spec='$libname.ixlibrary $libname.a'
10533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10534 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'
10540 library_names_spec='${libname}${shared_ext}'
10541 dynamic_linker="$host_os ld.so"
10542 shlibpath_var=LIBRARY_PATH
10546 version_type=linux # correct to gnu/linux during the next big refactor
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10549 soname_spec='${libname}${release}${shared_ext}$major'
10550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10554 # the default ld.so.conf also contains /usr/contrib/lib and
10555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10556 # libtool to hard-code these into programs
10559 cygwin* | mingw* | pw32* | cegcc*)
10560 version_type=windows
10565 case $GCC,$cc_basename in
10568 library_names_spec='$libname.dll.a'
10569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10570 postinstall_cmds='base_file=`basename \${file}`~
10571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10572 dldir=$destdir/`dirname \$dlpath`~
10573 test -d \$dldir || mkdir -p \$dldir~
10574 $install_prog $dir/$dlname \$dldir/$dlname~
10575 chmod a+x \$dldir/$dlname~
10576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10580 dlpath=$dir/\$dldll~
10582 shlibpath_overrides_runpath=yes
10586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10587 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10592 # MinGW DLLs use traditional 'lib' prefix
10593 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10596 # pw32 DLLs use 'pw' prefix rather than 'lib'
10597 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10600 dynamic_linker='Win32 ld.exe'
10605 libname_spec='$name'
10606 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10607 library_names_spec='${libname}.dll.lib'
10611 sys_lib_search_path_spec=
10614 for lt_path in $LIB
10617 # Let DOS variable expansion print the short 8.3 style file name.
10618 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10619 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10622 # Convert to MSYS style.
10623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10626 # Convert to unix form, then to dos form, then back to unix form
10627 # but this time dos style (no spaces!) so that the unix form looks
10628 # like /cygdrive/c/PROGRA~1:/cygdr...
10629 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10630 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10631 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10634 sys_lib_search_path_spec="$LIB"
10635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10636 # It is most probably a Windows format PATH.
10637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10641 # FIXME: find the short name or the path components, as spaces are
10642 # common. (e.g. "Program Files" -> "PROGRA~1")
10646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10647 postinstall_cmds='base_file=`basename \${file}`~
10648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10649 dldir=$destdir/`dirname \$dlpath`~
10650 test -d \$dldir || mkdir -p \$dldir~
10651 $install_prog $dir/$dlname \$dldir/$dlname'
10652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10653 dlpath=$dir/\$dldll~
10655 shlibpath_overrides_runpath=yes
10656 dynamic_linker='Win32 link.exe'
10660 # Assume MSVC wrapper
10661 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10662 dynamic_linker='Win32 ld.exe'
10665 # FIXME: first we should search . and the directory the executable is in
10669 darwin* | rhapsody*)
10670 dynamic_linker="$host_os dyld"
10671 version_type=darwin
10674 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10675 soname_spec='${libname}${release}${major}$shared_ext'
10676 shlibpath_overrides_runpath=yes
10677 shlibpath_var=DYLD_LIBRARY_PATH
10678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10685 version_type=linux # correct to gnu/linux during the next big refactor
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10693 freebsd* | dragonfly*)
10694 # DragonFly does not have aout. When/if they implement a new
10695 # versioning mechanism, adjust this.
10696 if test -x /usr/bin/objformat; then
10697 objformat=`/usr/bin/objformat`
10700 freebsd[23].*) objformat=aout ;;
10701 *) objformat=elf ;;
10704 version_type=freebsd-$objformat
10705 case $version_type in
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10716 shlibpath_var=LD_LIBRARY_PATH
10719 shlibpath_overrides_runpath=yes
10721 freebsd3.[01]* | freebsdelf3.[01]*)
10722 shlibpath_overrides_runpath=yes
10723 hardcode_into_libs=yes
10725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10727 shlibpath_overrides_runpath=no
10728 hardcode_into_libs=yes
10730 *) # from 4.6 on, and DragonFly
10731 shlibpath_overrides_runpath=yes
10732 hardcode_into_libs=yes
10738 version_type=linux # correct to gnu/linux during the next big refactor
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 shlibpath_var=LD_LIBRARY_PATH
10744 shlibpath_overrides_runpath=no
10745 hardcode_into_libs=yes
10749 version_type=linux # correct to gnu/linux during the next big refactor
10752 dynamic_linker="$host_os runtime_loader"
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 shlibpath_var=LIBRARY_PATH
10756 shlibpath_overrides_runpath=yes
10757 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10758 hardcode_into_libs=yes
10761 hpux9* | hpux10* | hpux11*)
10762 # Give a soname corresponding to the major version so that dld.sl refuses to
10763 # link against other versions.
10770 hardcode_into_libs=yes
10771 dynamic_linker="$host_os dld.so"
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 if test "X$HPUX_IA64_MODE" = X32; then
10777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10785 hardcode_into_libs=yes
10786 dynamic_linker="$host_os dld.sl"
10787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10796 dynamic_linker="$host_os dld.sl"
10797 shlibpath_var=SHLIB_PATH
10798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10803 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10804 postinstall_cmds='chmod 555 $lib'
10805 # or fails outright, so override atomically:
10806 install_override_mode=555
10810 version_type=linux # correct to gnu/linux during the next big refactor
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 shlibpath_overrides_runpath=no
10818 hardcode_into_libs=yes
10821 irix5* | irix6* | nonstopux*)
10823 nonstopux*) version_type=nonstopux ;;
10825 if test "$lt_cv_prog_gnu_ld" = yes; then
10826 version_type=linux # correct to gnu/linux during the next big refactor
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10836 irix5* | nonstopux*)
10837 libsuff= shlibsuff=
10840 case $LD in # libtool.m4 will add one of these switches to LD
10841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10842 libsuff= shlibsuff= libmagic=32-bit;;
10843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10844 libsuff=32 shlibsuff=N32 libmagic=N32;;
10845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10846 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10847 *) libsuff= shlibsuff= libmagic=never-match;;
10851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10852 shlibpath_overrides_runpath=no
10853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10855 hardcode_into_libs=yes
10858 # No shared lib support for Linux oldld, aout, or coff.
10859 linux*oldld* | linux*aout* | linux*coff*)
10863 # This must be glibc/ELF.
10864 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10865 version_type=linux # correct to gnu/linux during the next big refactor
10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec='${libname}${release}${shared_ext}$major'
10870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=no
10874 # Some binutils ld are patched to set DT_RUNPATH
10875 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10876 $as_echo_n "(cached) " >&6
10878 lt_cv_shlibpath_overrides_runpath=no
10879 save_LDFLAGS=$LDFLAGS
10880 save_libdir=$libdir
10881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10894 if ac_fn_c_try_link "$LINENO"; then :
10895 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10896 lt_cv_shlibpath_overrides_runpath=yes
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LDFLAGS=$save_LDFLAGS
10902 libdir=$save_libdir
10906 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10908 # This implies no fast_install, which is unacceptable.
10909 # Some rework will be needed to allow for fast_install
10910 # before this can be enabled.
10911 hardcode_into_libs=yes
10913 # Add ABI-specific directories to the system library path.
10914 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10916 # Append ld.so.conf contents to the search path
10917 if test -f /etc/ld.so.conf; then
10918 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' ' '`
10919 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10923 # We used to test for /lib/ld.so.1 and disable shared libraries on
10924 # powerpc, because MkLinux only supported shared libraries with the
10925 # GNU dynamic linker. Since this was broken with cross compilers,
10926 # most powerpc-linux boxes support dynamic linking these days and
10927 # people can always --disable-shared, the test was removed, and we
10928 # assume the GNU/Linux dynamic linker is in use.
10929 dynamic_linker='GNU/Linux ld.so'
10936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10939 dynamic_linker='NetBSD (a.out) ld.so'
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 dynamic_linker='NetBSD ld.elf_so'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes
10947 hardcode_into_libs=yes
10951 version_type=linux # correct to gnu/linux during the next big refactor
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=yes
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=no
10965 hardcode_into_libs=yes
10966 dynamic_linker='ldqnx.so'
10971 sys_lib_dlsearch_path_spec="/usr/lib"
10973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10976 *) need_version=no ;;
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10983 openbsd2.[89] | openbsd2.[89].*)
10984 shlibpath_overrides_runpath=no
10987 shlibpath_overrides_runpath=yes
10991 shlibpath_overrides_runpath=yes
10996 libname_spec='$name'
10999 library_names_spec='$libname${shared_ext} $libname.a'
11000 dynamic_linker='OS/2 ld.exe'
11001 shlibpath_var=LIBPATH
11004 osf3* | osf4* | osf5*)
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11020 version_type=linux # correct to gnu/linux during the next big refactor
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=yes
11027 hardcode_into_libs=yes
11028 # ldd complains unless libraries are executable
11029 postinstall_cmds='chmod +x $lib'
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=yes
11038 if test "$with_gnu_ld" = yes; then
11045 version_type=linux # correct to gnu/linux during the next big refactor
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 case $host_vendor in
11051 shlibpath_overrides_runpath=no
11053 runpath_var=LD_RUN_PATH
11061 shlibpath_overrides_runpath=no
11062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11068 if test -d /usr/nec ;then
11069 version_type=linux # correct to gnu/linux during the next big refactor
11070 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11071 soname_spec='$libname${shared_ext}.$major'
11072 shlibpath_var=LD_LIBRARY_PATH
11076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077 version_type=freebsd-elf
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=yes
11084 hardcode_into_libs=yes
11085 if test "$with_gnu_ld" = yes; then
11086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11091 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11095 sys_lib_dlsearch_path_spec='/usr/lib'
11099 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11100 version_type=linux # correct to gnu/linux during the next big refactor
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=no
11106 hardcode_into_libs=yes
11110 version_type=linux # correct to gnu/linux during the next big refactor
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 shlibpath_var=LD_LIBRARY_PATH
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11121 $as_echo "$dynamic_linker" >&6; }
11122 test "$dynamic_linker" = no && can_build_shared=no
11124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11125 if test "$GCC" = yes; then
11126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11129 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11130 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11132 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11133 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11228 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11230 if test -n "$hardcode_libdir_flag_spec" ||
11231 test -n "$runpath_var" ||
11232 test "X$hardcode_automatic" = "Xyes" ; then
11234 # We can hardcode non-existent directories.
11235 if test "$hardcode_direct" != no &&
11236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11237 # have to relink, otherwise we might link with an installed library
11238 # when we should be linking with a yet-to-be-installed one
11239 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11240 test "$hardcode_minus_L" != no; then
11241 # Linking always hardcodes the temporary library directory.
11242 hardcode_action=relink
11244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11245 hardcode_action=immediate
11248 # We cannot hardcode anything, or else we can only hardcode existing
11250 hardcode_action=unsupported
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11253 $as_echo "$hardcode_action" >&6; }
11255 if test "$hardcode_action" = relink ||
11256 test "$inherit_rpath" = yes; then
11257 # Fast installation is not supported
11258 enable_fast_install=no
11259 elif test "$shlibpath_overrides_runpath" = yes ||
11260 test "$enable_shared" = no; then
11261 # Fast installation is not necessary
11262 enable_fast_install=needless
11270 if test "x$enable_dlopen" != xyes; then
11271 enable_dlopen=unknown
11272 enable_dlopen_self=unknown
11273 enable_dlopen_self_static=unknown
11280 lt_cv_dlopen="load_add_on"
11282 lt_cv_dlopen_self=yes
11285 mingw* | pw32* | cegcc*)
11286 lt_cv_dlopen="LoadLibrary"
11291 lt_cv_dlopen="dlopen"
11296 # if libdl is installed we need to link against it
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11298 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11299 if ${ac_cv_lib_dl_dlopen+:} false; then :
11300 $as_echo_n "(cached) " >&6
11302 ac_check_lib_save_LIBS=$LIBS
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11307 /* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11322 if ac_fn_c_try_link "$LINENO"; then :
11323 ac_cv_lib_dl_dlopen=yes
11325 ac_cv_lib_dl_dlopen=no
11327 rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11332 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11333 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11334 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11337 lt_cv_dlopen="dyld"
11339 lt_cv_dlopen_self=yes
11346 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11347 if test "x$ac_cv_func_shl_load" = xyes; then :
11348 lt_cv_dlopen="shl_load"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11351 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11352 if ${ac_cv_lib_dld_shl_load+:} false; then :
11353 $as_echo_n "(cached) " >&6
11355 ac_check_lib_save_LIBS=$LIBS
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11360 /* Override any GCC internal prototype to avoid an error.
11361 Use char because int might match the return type of a GCC
11362 builtin and then its argument prototype would still apply. */
11370 return shl_load ();
11375 if ac_fn_c_try_link "$LINENO"; then :
11376 ac_cv_lib_dld_shl_load=yes
11378 ac_cv_lib_dld_shl_load=no
11380 rm -f core conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
11382 LIBS=$ac_check_lib_save_LIBS
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11385 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11386 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11387 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11389 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11390 if test "x$ac_cv_func_dlopen" = xyes; then :
11391 lt_cv_dlopen="dlopen"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11394 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11395 if ${ac_cv_lib_dl_dlopen+:} false; then :
11396 $as_echo_n "(cached) " >&6
11398 ac_check_lib_save_LIBS=$LIBS
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11403 /* Override any GCC internal prototype to avoid an error.
11404 Use char because int might match the return type of a GCC
11405 builtin and then its argument prototype would still apply. */
11418 if ac_fn_c_try_link "$LINENO"; then :
11419 ac_cv_lib_dl_dlopen=yes
11421 ac_cv_lib_dl_dlopen=no
11423 rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425 LIBS=$ac_check_lib_save_LIBS
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11428 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11429 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11433 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11434 if ${ac_cv_lib_svld_dlopen+:} false; then :
11435 $as_echo_n "(cached) " >&6
11437 ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-lsvld $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_lib_svld_dlopen=yes
11460 ac_cv_lib_svld_dlopen=no
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11467 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11468 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11472 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11473 if ${ac_cv_lib_dld_dld_link+:} false; then :
11474 $as_echo_n "(cached) " >&6
11476 ac_check_lib_save_LIBS=$LIBS
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11491 return dld_link ();
11496 if ac_fn_c_try_link "$LINENO"; then :
11497 ac_cv_lib_dld_dld_link=yes
11499 ac_cv_lib_dld_dld_link=no
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11506 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11507 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11508 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11529 if test "x$lt_cv_dlopen" != xno; then
11535 case $lt_cv_dlopen in
11537 save_CPPFLAGS="$CPPFLAGS"
11538 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11540 save_LDFLAGS="$LDFLAGS"
11541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11544 LIBS="$lt_cv_dlopen_libs $LIBS"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11547 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11548 if ${lt_cv_dlopen_self+:} false; then :
11549 $as_echo_n "(cached) " >&6
11551 if test "$cross_compiling" = yes; then :
11552 lt_cv_dlopen_self=cross
11554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11555 lt_status=$lt_dlunknown
11556 cat > conftest.$ac_ext <<_LT_EOF
11557 #line $LINENO "configure"
11558 #include "confdefs.h"
11567 # define LT_DLGLOBAL RTLD_GLOBAL
11570 # define LT_DLGLOBAL DL_GLOBAL
11572 # define LT_DLGLOBAL 0
11576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11577 find out it does not work in some platform. */
11578 #ifndef LT_DLLAZY_OR_NOW
11580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11583 # define LT_DLLAZY_OR_NOW DL_LAZY
11586 # define LT_DLLAZY_OR_NOW RTLD_NOW
11589 # define LT_DLLAZY_OR_NOW DL_NOW
11591 # define LT_DLLAZY_OR_NOW 0
11598 /* When -fvisbility=hidden is used, assume the code has been annotated
11599 correspondingly for the symbols needed. */
11600 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11601 int fnord () __attribute__((visibility("default")));
11604 int fnord () { return 42; }
11607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608 int status = $lt_dlunknown;
11612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11615 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11616 else puts (dlerror ());
11618 /* dlclose (self); */
11626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11627 (eval $ac_link) 2>&5
11629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11631 (./conftest; exit; ) >&5 2>/dev/null
11633 case x$lt_status in
11634 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11635 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11636 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11639 # compilation failed
11640 lt_cv_dlopen_self=no
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11648 $as_echo "$lt_cv_dlopen_self" >&6; }
11650 if test "x$lt_cv_dlopen_self" = xyes; then
11651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11653 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11654 if ${lt_cv_dlopen_self_static+:} false; then :
11655 $as_echo_n "(cached) " >&6
11657 if test "$cross_compiling" = yes; then :
11658 lt_cv_dlopen_self_static=cross
11660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11661 lt_status=$lt_dlunknown
11662 cat > conftest.$ac_ext <<_LT_EOF
11663 #line $LINENO "configure"
11664 #include "confdefs.h"
11673 # define LT_DLGLOBAL RTLD_GLOBAL
11676 # define LT_DLGLOBAL DL_GLOBAL
11678 # define LT_DLGLOBAL 0
11682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11683 find out it does not work in some platform. */
11684 #ifndef LT_DLLAZY_OR_NOW
11686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11689 # define LT_DLLAZY_OR_NOW DL_LAZY
11692 # define LT_DLLAZY_OR_NOW RTLD_NOW
11695 # define LT_DLLAZY_OR_NOW DL_NOW
11697 # define LT_DLLAZY_OR_NOW 0
11704 /* When -fvisbility=hidden is used, assume the code has been annotated
11705 correspondingly for the symbols needed. */
11706 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11707 int fnord () __attribute__((visibility("default")));
11710 int fnord () { return 42; }
11713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11714 int status = $lt_dlunknown;
11718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11721 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11722 else puts (dlerror ());
11724 /* dlclose (self); */
11732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11733 (eval $ac_link) 2>&5
11735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11737 (./conftest; exit; ) >&5 2>/dev/null
11739 case x$lt_status in
11740 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11741 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11742 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11745 # compilation failed
11746 lt_cv_dlopen_self_static=no
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11754 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11757 CPPFLAGS="$save_CPPFLAGS"
11758 LDFLAGS="$save_LDFLAGS"
11763 case $lt_cv_dlopen_self in
11764 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11765 *) enable_dlopen_self=unknown ;;
11768 case $lt_cv_dlopen_self_static in
11769 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11770 *) enable_dlopen_self_static=unknown ;;
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11793 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11794 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11795 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11796 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11798 $as_echo "yes" >&6; }
11800 # FIXME - insert some real tests, host_os isn't really good enough
11803 if test -n "$STRIP" ; then
11804 striplib="$STRIP -x"
11805 old_striplib="$STRIP -S"
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807 $as_echo "yes" >&6; }
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11831 # Report which library types will actually be built
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11833 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11835 $as_echo "$can_build_shared" >&6; }
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11838 $as_echo_n "checking whether to build shared libraries... " >&6; }
11839 test "$can_build_shared" = "no" && enable_shared=no
11841 # On AIX, shared libraries and static libraries use the same namespace, and
11842 # are all built from PIC.
11845 test "$enable_shared" = yes && enable_static=no
11846 if test -n "$RANLIB"; then
11847 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11848 postinstall_cmds='$RANLIB $lib'
11853 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11854 test "$enable_shared" = yes && enable_static=no
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11859 $as_echo "$enable_shared" >&6; }
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11862 $as_echo_n "checking whether to build static libraries... " >&6; }
11863 # Make sure either enable_shared or enable_static is yes.
11864 test "$enable_shared" = yes || enable_static=yes
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11866 $as_echo "$enable_static" >&6; }
11873 ac_cpp='$CPP $CPPFLAGS'
11874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11894 ac_config_commands="$ac_config_commands libtool"
11899 # Only expand once:
11906 if test "x$GCC" = "xyes"; then
11907 CFLAGS="$CFLAGS -fexceptions"
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11912 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11913 # Check whether --enable-maintainer-mode was given.
11914 if test "${enable_maintainer_mode+set}" = set; then :
11915 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11917 USE_MAINTAINER_MODE=no
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11921 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11922 if test $USE_MAINTAINER_MODE = yes; then
11923 MAINTAINER_MODE_TRUE=
11924 MAINTAINER_MODE_FALSE='#'
11926 MAINTAINER_MODE_TRUE='#'
11927 MAINTAINER_MODE_FALSE=
11930 MAINT=$MAINTAINER_MODE_TRUE
11934 for ac_header in sys/mman.h
11936 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11937 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11938 cat >>confdefs.h <<_ACEOF
11939 #define HAVE_SYS_MMAN_H 1
11946 for ac_func in mmap
11948 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11949 if test "x$ac_cv_func_mmap" = xyes; then :
11950 cat >>confdefs.h <<_ACEOF
11951 #define HAVE_MMAP 1
11958 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11959 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11960 libffi_header_sys_mman_h=yes
11962 libffi_header_sys_mman_h=no
11966 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11967 if test "x$ac_cv_func_mmap" = xyes; then :
11968 libffi_func_mmap=yes
11970 libffi_func_mmap=no
11973 if test "$libffi_header_sys_mman_h" != yes \
11974 || test "$libffi_func_mmap" != yes; then
11975 ac_cv_func_mmap_file=no
11976 ac_cv_func_mmap_dev_zero=no
11977 ac_cv_func_mmap_anon=no
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11980 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11981 if ${ac_cv_func_mmap_file+:} false; then :
11982 $as_echo_n "(cached) " >&6
11984 # Add a system to this blacklist if
11985 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11986 # memory area containing the same data that you'd get if you applied
11987 # read() to the same fd. The only system known to have a problem here
11988 # is VMS, where text files have record structure.
11991 ac_cv_func_mmap_file=no ;;
11993 ac_cv_func_mmap_file=yes;;
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11997 $as_echo "$ac_cv_func_mmap_file" >&6; }
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11999 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12000 if ${ac_cv_func_mmap_dev_zero+:} false; then :
12001 $as_echo_n "(cached) " >&6
12003 # Add a system to this blacklist if it has mmap() but /dev/zero
12004 # does not exist, or if mmapping /dev/zero does not give anonymous
12005 # zeroed pages with both the following properties:
12006 # 1. If you map N consecutive pages in with one call, and then
12007 # unmap any subset of those pages, the pages that were not
12008 # explicitly unmapped remain accessible.
12009 # 2. If you map two adjacent blocks of memory and then unmap them
12010 # both at once, they must both go away.
12011 # Systems known to be in this category are Windows (all variants),
12014 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12015 ac_cv_func_mmap_dev_zero=no ;;
12017 ac_cv_func_mmap_dev_zero=yes;;
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
12021 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12023 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
12025 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12026 if ${ac_cv_decl_map_anon+:} false; then :
12027 $as_echo_n "(cached) " >&6
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031 #include <sys/types.h>
12032 #include <sys/mman.h>
12033 #include <unistd.h>
12035 #ifndef MAP_ANONYMOUS
12036 #define MAP_ANONYMOUS MAP_ANON
12042 int n = MAP_ANONYMOUS;
12047 if ac_fn_c_try_compile "$LINENO"; then :
12048 ac_cv_decl_map_anon=yes
12050 ac_cv_decl_map_anon=no
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
12055 $as_echo "$ac_cv_decl_map_anon" >&6; }
12057 if test $ac_cv_decl_map_anon = no; then
12058 ac_cv_func_mmap_anon=no
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12061 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12062 if ${ac_cv_func_mmap_anon+:} false; then :
12063 $as_echo_n "(cached) " >&6
12065 # Add a system to this blacklist if it has mmap() and MAP_ANON or
12066 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12067 # doesn't give anonymous zeroed pages with the same properties listed
12068 # above for use of /dev/zero.
12069 # Systems known to be in this category are Windows, VMS, and SCO Unix.
12071 vms* | cygwin* | pe | mingw* | sco* | udk* )
12072 ac_cv_func_mmap_anon=no ;;
12074 ac_cv_func_mmap_anon=yes;;
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
12078 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12082 if test $ac_cv_func_mmap_file = yes; then
12084 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
12087 if test $ac_cv_func_mmap_dev_zero = yes; then
12089 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
12092 if test $ac_cv_func_mmap_anon = yes; then
12094 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
12099 if test -d $srcdir/testsuite; then
12101 TESTSUBDIR_FALSE='#'
12103 TESTSUBDIR_TRUE='#'
12108 TARGETDIR="unknown"
12111 TARGET=ALPHA; TARGETDIR=alpha;
12112 # Support 128-bit long double, changeable via command-line switch.
12113 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12117 TARGET=ARM; TARGETDIR=arm
12120 amd64-*-freebsd* | amd64-*-openbsd*)
12121 TARGET=X86_64; TARGETDIR=x86
12125 TARGET=X86_64; TARGETDIR=x86
12129 TARGET=AVR32; TARGETDIR=avr32
12133 TARGET=BFIN; TARGETDIR=bfin
12137 TARGET=LIBFFI_CRIS; TARGETDIR=cris
12141 TARGET=FRV; TARGETDIR=frv
12144 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
12145 TARGET=PA_LINUX; TARGETDIR=pa
12148 TARGET=PA64_HPUX; TARGETDIR=pa
12151 TARGET=PA_HPUX; TARGETDIR=pa
12154 i?86-*-freebsd* | i?86-*-openbsd*)
12155 TARGET=X86_FREEBSD; TARGETDIR=x86
12157 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
12158 TARGET=X86_WIN32; TARGETDIR=x86
12159 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12160 # We must also check with_cross_host to decide if this is a native
12161 # or cross-build and select where to install dlls appropriately.
12162 if test -n "$with_cross_host" &&
12163 test x"$with_cross_host" != x"no"; then
12164 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12166 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12170 TARGET=X86_DARWIN; TARGETDIR=x86
12172 i?86-*-solaris2.1[0-9]*)
12173 TARGET=X86_64; TARGETDIR=x86
12176 TARGET=X86_64; TARGETDIR=x86
12180 TARGET=IA64; TARGETDIR=ia64
12184 TARGET=M32R; TARGETDIR=m32r
12188 TARGET=M68K; TARGETDIR=m68k
12191 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
12192 TARGET=MIPS; TARGETDIR=mips
12194 mips*-*-linux* | mips*-*-openbsd*)
12195 # Support 128-bit long double for NewABI.
12196 HAVE_LONG_DOUBLE='defined(__mips64)'
12197 TARGET=MIPS; TARGETDIR=mips
12201 TARGET=MOXIE; TARGETDIR=moxie
12204 powerpc*-*-linux* | powerpc-*-sysv*)
12205 TARGET=POWERPC; TARGETDIR=powerpc
12207 powerpc-*-amigaos*)
12208 TARGET=POWERPC; TARGETDIR=powerpc
12211 TARGET=POWERPC; TARGETDIR=powerpc
12213 powerpc-*-darwin* | powerpc64-*-darwin*)
12214 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12216 powerpc-*-aix* | rs6000-*-aix*)
12217 TARGET=POWERPC_AIX; TARGETDIR=powerpc
12219 powerpc-*-freebsd* | powerpc-*-openbsd*)
12220 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12222 powerpc64-*-freebsd*)
12223 TARGET=POWERPC; TARGETDIR=powerpc
12226 TARGET=POWERPC; TARGETDIR=powerpc
12229 s390-*-* | s390x-*-*)
12230 TARGET=S390; TARGETDIR=s390
12233 sh-*-* | sh[34]*-*-*)
12234 TARGET=SH; TARGETDIR=sh
12236 sh64-*-* | sh5*-*-*)
12237 TARGET=SH64; TARGETDIR=sh64
12241 TARGET=SPARC; TARGETDIR=sparc
12245 TARGET=TILE; TARGETDIR=tile
12249 TARGET=X86_DARWIN; TARGETDIR=x86
12252 x86_64-*-cygwin* | x86_64-*-mingw*)
12253 TARGET=X86_WIN64; TARGETDIR=x86
12254 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12255 # We must also check with_cross_host to decide if this is a native
12256 # or cross-build and select where to install dlls appropriately.
12257 if test -n "$with_cross_host" &&
12258 test x"$with_cross_host" != x"no"; then
12259 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12261 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12266 TARGET=X86_64; TARGETDIR=x86
12273 if test $TARGETDIR = unknown; then
12274 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
12277 if test x$TARGET = xMIPS; then
12285 if test x$TARGET = xBFIN; then
12293 if test x$TARGET = xSPARC; then
12301 if test x$TARGET = xX86; then
12309 if test x$TARGET = xX86_FREEBSD; then
12311 X86_FREEBSD_FALSE='#'
12313 X86_FREEBSD_TRUE='#'
12317 if test x$TARGET = xX86_WIN32; then
12319 X86_WIN32_FALSE='#'
12325 if test x$TARGET = xX86_WIN64; then
12327 X86_WIN64_FALSE='#'
12333 if test x$TARGET = xX86_DARWIN; then
12335 X86_DARWIN_FALSE='#'
12337 X86_DARWIN_TRUE='#'
12341 if test x$TARGET = xALPHA; then
12349 if test x$TARGET = xIA64; then
12357 if test x$TARGET = xM32R; then
12365 if test x$TARGET = xM68K; then
12373 if test x$TARGET = xMOXIE; then
12381 if test x$TARGET = xPOWERPC; then
12389 if test x$TARGET = xPOWERPC_AIX; then
12391 POWERPC_AIX_FALSE='#'
12393 POWERPC_AIX_TRUE='#'
12397 if test x$TARGET = xPOWERPC_DARWIN; then
12398 POWERPC_DARWIN_TRUE=
12399 POWERPC_DARWIN_FALSE='#'
12401 POWERPC_DARWIN_TRUE='#'
12402 POWERPC_DARWIN_FALSE=
12405 if test x$TARGET = xPOWERPC_FREEBSD; then
12406 POWERPC_FREEBSD_TRUE=
12407 POWERPC_FREEBSD_FALSE='#'
12409 POWERPC_FREEBSD_TRUE='#'
12410 POWERPC_FREEBSD_FALSE=
12413 if test x$TARGET = xARM; then
12421 if test x$TARGET = xAVR32; then
12429 if test x$TARGET = xLIBFFI_CRIS; then
12431 LIBFFI_CRIS_FALSE='#'
12433 LIBFFI_CRIS_TRUE='#'
12437 if test x$TARGET = xFRV; then
12445 if test x$TARGET = xS390; then
12453 if test x$TARGET = xX86_64; then
12461 if test x$TARGET = xSH; then
12469 if test x$TARGET = xSH64; then
12477 if test x$TARGET = xPA_LINUX; then
12485 if test x$TARGET = xPA_HPUX; then
12493 if test x$TARGET = xPA64_HPUX; then
12495 PA64_HPUX_FALSE='#'
12501 if test x$TARGET = xTILE; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12511 $as_echo_n "checking for ANSI C header files... " >&6; }
12512 if ${ac_cv_header_stdc+:} false; then :
12513 $as_echo_n "(cached) " >&6
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12517 #include <stdlib.h>
12518 #include <stdarg.h>
12519 #include <string.h>
12530 if ac_fn_c_try_compile "$LINENO"; then :
12531 ac_cv_header_stdc=yes
12533 ac_cv_header_stdc=no
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 if test $ac_cv_header_stdc = yes; then
12538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541 #include <string.h>
12544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12545 $EGREP "memchr" >/dev/null 2>&1; then :
12548 ac_cv_header_stdc=no
12554 if test $ac_cv_header_stdc = yes; then
12555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558 #include <stdlib.h>
12561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12562 $EGREP "free" >/dev/null 2>&1; then :
12565 ac_cv_header_stdc=no
12571 if test $ac_cv_header_stdc = yes; then
12572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12573 if test "$cross_compiling" = yes; then :
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12579 #include <stdlib.h>
12580 #if ((' ' & 0x0FF) == 0x020)
12581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12584 # define ISLOWER(c) \
12585 (('a' <= (c) && (c) <= 'i') \
12586 || ('j' <= (c) && (c) <= 'r') \
12587 || ('s' <= (c) && (c) <= 'z'))
12588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12596 for (i = 0; i < 256; i++)
12597 if (XOR (islower (i), ISLOWER (i))
12598 || toupper (i) != TOUPPER (i))
12603 if ac_fn_c_try_run "$LINENO"; then :
12606 ac_cv_header_stdc=no
12608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12609 conftest.$ac_objext conftest.beam conftest.$ac_ext
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12615 $as_echo "$ac_cv_header_stdc" >&6; }
12616 if test $ac_cv_header_stdc = yes; then
12618 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12622 for ac_func in memcpy
12624 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
12625 if test "x$ac_cv_func_memcpy" = xyes; then :
12626 cat >>confdefs.h <<_ACEOF
12627 #define HAVE_MEMCPY 1
12633 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12634 if test "x$ac_cv_type_size_t" = xyes; then :
12638 cat >>confdefs.h <<_ACEOF
12639 #define size_t unsigned int
12644 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12645 # for constant arguments. Useless!
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12647 $as_echo_n "checking for working alloca.h... " >&6; }
12648 if ${ac_cv_working_alloca_h+:} false; then :
12649 $as_echo_n "(cached) " >&6
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #include <alloca.h>
12657 char *p = (char *) alloca (2 * sizeof (int));
12663 if ac_fn_c_try_link "$LINENO"; then :
12664 ac_cv_working_alloca_h=yes
12666 ac_cv_working_alloca_h=no
12668 rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12672 $as_echo "$ac_cv_working_alloca_h" >&6; }
12673 if test $ac_cv_working_alloca_h = yes; then
12675 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12680 $as_echo_n "checking for alloca... " >&6; }
12681 if ${ac_cv_func_alloca_works+:} false; then :
12682 $as_echo_n "(cached) " >&6
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 # define alloca __builtin_alloca
12690 # include <malloc.h>
12691 # define alloca _alloca
12693 # ifdef HAVE_ALLOCA_H
12694 # include <alloca.h>
12699 # ifndef alloca /* predefined by HP cc +Olibcalls */
12700 void *alloca (size_t);
12710 char *p = (char *) alloca (1);
12716 if ac_fn_c_try_link "$LINENO"; then :
12717 ac_cv_func_alloca_works=yes
12719 ac_cv_func_alloca_works=no
12721 rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12725 $as_echo "$ac_cv_func_alloca_works" >&6; }
12727 if test $ac_cv_func_alloca_works = yes; then
12729 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12732 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12733 # that cause trouble. Some versions do not even contain alloca or
12734 # contain a buggy version. If you still want to use their alloca,
12735 # use ar to extract alloca.o from them instead of compiling alloca.c.
12737 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12739 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12743 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12744 if ${ac_cv_os_cray+:} false; then :
12745 $as_echo_n "(cached) " >&6
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 #if defined CRAY && ! defined CRAY2
12756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12757 $EGREP "webecray" >/dev/null 2>&1; then :
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12766 $as_echo "$ac_cv_os_cray" >&6; }
12767 if test $ac_cv_os_cray = yes; then
12768 for ac_func in _getb67 GETB67 getb67; do
12769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12770 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12771 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12773 cat >>confdefs.h <<_ACEOF
12774 #define CRAY_STACKSEG_END $ac_func
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12784 $as_echo_n "checking stack direction for C alloca... " >&6; }
12785 if ${ac_cv_c_stack_direction+:} false; then :
12786 $as_echo_n "(cached) " >&6
12788 if test "$cross_compiling" = yes; then :
12789 ac_cv_c_stack_direction=0
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12793 $ac_includes_default
12795 find_stack_direction ()
12797 static char *addr = 0;
12802 return find_stack_direction ();
12805 return (&dummy > addr) ? 1 : -1;
12811 return find_stack_direction () < 0;
12814 if ac_fn_c_try_run "$LINENO"; then :
12815 ac_cv_c_stack_direction=1
12817 ac_cv_c_stack_direction=-1
12819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12820 conftest.$ac_objext conftest.beam conftest.$ac_ext
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12825 $as_echo "$ac_cv_c_stack_direction" >&6; }
12826 cat >>confdefs.h <<_ACEOF
12827 #define STACK_DIRECTION $ac_cv_c_stack_direction
12834 # The cast to long int works around a bug in the HP C Compiler
12835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12837 # This bug is HP SR number 8606223364.
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12839 $as_echo_n "checking size of double... " >&6; }
12840 if ${ac_cv_sizeof_double+:} false; then :
12841 $as_echo_n "(cached) " >&6
12843 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12846 if test "$ac_cv_type_double" = yes; then
12847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12849 as_fn_error 77 "cannot compute sizeof (double)
12850 See \`config.log' for more details" "$LINENO" 5; }
12852 ac_cv_sizeof_double=0
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12858 $as_echo "$ac_cv_sizeof_double" >&6; }
12862 cat >>confdefs.h <<_ACEOF
12863 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12867 # The cast to long int works around a bug in the HP C Compiler
12868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12870 # This bug is HP SR number 8606223364.
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12872 $as_echo_n "checking size of long double... " >&6; }
12873 if ${ac_cv_sizeof_long_double+:} false; then :
12874 $as_echo_n "(cached) " >&6
12876 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
12879 if test "$ac_cv_type_long_double" = yes; then
12880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12882 as_fn_error 77 "cannot compute sizeof (long double)
12883 See \`config.log' for more details" "$LINENO" 5; }
12885 ac_cv_sizeof_long_double=0
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12891 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12895 cat >>confdefs.h <<_ACEOF
12896 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12901 # Also AC_SUBST this variable for ffi.h.
12902 if test -z "$HAVE_LONG_DOUBLE"; then
12904 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12905 if test $ac_cv_sizeof_long_double != 0; then
12908 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12916 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12917 if ${ac_cv_c_bigendian+:} false; then :
12918 $as_echo_n "(cached) " >&6
12920 ac_cv_c_bigendian=unknown
12921 # See if we're dealing with a universal compiler.
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12924 #ifndef __APPLE_CC__
12925 not a universal capable compiler
12930 if ac_fn_c_try_compile "$LINENO"; then :
12932 # Check for potential -arch flags. It is not universal unless
12933 # there are at least two -arch flags with different values.
12936 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12937 if test -n "$ac_prev"; then
12939 i?86 | x86_64 | ppc | ppc64)
12940 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12943 ac_cv_c_bigendian=universal
12949 elif test "x$ac_word" = "x-arch"; then
12954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12955 if test $ac_cv_c_bigendian = unknown; then
12956 # See if sys/param.h defines the BYTE_ORDER macro.
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 #include <sys/types.h>
12960 #include <sys/param.h>
12965 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12966 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12968 bogus endian macros
12975 if ac_fn_c_try_compile "$LINENO"; then :
12976 # It does; now see whether it defined to BIG_ENDIAN or not.
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979 #include <sys/types.h>
12980 #include <sys/param.h>
12985 #if BYTE_ORDER != BIG_ENDIAN
12993 if ac_fn_c_try_compile "$LINENO"; then :
12994 ac_cv_c_bigendian=yes
12996 ac_cv_c_bigendian=no
12998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002 if test $ac_cv_c_bigendian = unknown; then
13003 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006 #include <limits.h>
13011 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13012 bogus endian macros
13019 if ac_fn_c_try_compile "$LINENO"; then :
13020 # It does; now see whether it defined to _BIG_ENDIAN or not.
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023 #include <limits.h>
13028 #ifndef _BIG_ENDIAN
13036 if ac_fn_c_try_compile "$LINENO"; then :
13037 ac_cv_c_bigendian=yes
13039 ac_cv_c_bigendian=no
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 if test $ac_cv_c_bigendian = unknown; then
13046 # Compile a test program.
13047 if test "$cross_compiling" = yes; then :
13048 # Try to guess by grepping values from an object file.
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051 short int ascii_mm[] =
13052 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13053 short int ascii_ii[] =
13054 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13055 int use_ascii (int i) {
13056 return ascii_mm[i] + ascii_ii[i];
13058 short int ebcdic_ii[] =
13059 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13060 short int ebcdic_mm[] =
13061 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13062 int use_ebcdic (int i) {
13063 return ebcdic_mm[i] + ebcdic_ii[i];
13070 return use_ascii (foo) == use_ebcdic (foo);
13075 if ac_fn_c_try_compile "$LINENO"; then :
13076 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13077 ac_cv_c_bigendian=yes
13079 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13080 if test "$ac_cv_c_bigendian" = unknown; then
13081 ac_cv_c_bigendian=no
13083 # finding both strings is unlikely to happen, but who knows?
13084 ac_cv_c_bigendian=unknown
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092 $ac_includes_default
13097 /* Are we little or big endian? From Harbison&Steele. */
13101 char c[sizeof (long int)];
13104 return u.c[sizeof (long int) - 1] == 1;
13110 if ac_fn_c_try_run "$LINENO"; then :
13111 ac_cv_c_bigendian=no
13113 ac_cv_c_bigendian=yes
13115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13116 conftest.$ac_objext conftest.beam conftest.$ac_ext
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13122 $as_echo "$ac_cv_c_bigendian" >&6; }
13123 case $ac_cv_c_bigendian in #(
13125 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13131 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13135 as_fn_error $? "unknown endianness
13136 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13140 GCC_AS_CFI_PSEUDO_OP
13142 if test x$TARGET = xSPARC; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
13144 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
13145 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
13146 $as_echo_n "(cached) " >&6
13149 save_CFLAGS="$CFLAGS"
13150 save_LDFLAGS="$LDFLAGS"
13151 CFLAGS="$CFLAGS -fpic"
13152 LDFLAGS="$LDFLAGS -shared"
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
13164 if ac_fn_c_try_link "$LINENO"; then :
13165 libffi_cv_as_sparc_ua_pcrel=yes
13167 libffi_cv_as_sparc_ua_pcrel=no
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 CFLAGS="$save_CFLAGS"
13172 LDFLAGS="$save_LDFLAGS"
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
13175 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
13176 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
13178 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
13183 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
13184 if ${libffi_cv_as_register_pseudo_op+:} false; then :
13185 $as_echo_n "(cached) " >&6
13188 libffi_cv_as_register_pseudo_op=unknown
13189 # Check if we have .register
13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13192 asm (".register %g2, #scratch");
13201 if ac_fn_c_try_compile "$LINENO"; then :
13202 libffi_cv_as_register_pseudo_op=yes
13204 libffi_cv_as_register_pseudo_op=no
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
13210 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
13211 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
13213 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
13218 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
13220 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
13221 if ${libffi_cv_as_x86_pcrel+:} false; then :
13222 $as_echo_n "(cached) " >&6
13225 libffi_cv_as_x86_pcrel=yes
13226 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
13227 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
13228 libffi_cv_as_x86_pcrel=no
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
13233 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
13234 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
13236 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
13241 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
13242 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
13243 $as_echo_n "(cached) " >&6
13246 libffi_cv_as_ascii_pseudo_op=unknown
13247 # Check if we have .ascii
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250 asm (".ascii \\"string\\"");
13259 if ac_fn_c_try_compile "$LINENO"; then :
13260 libffi_cv_as_ascii_pseudo_op=yes
13262 libffi_cv_as_ascii_pseudo_op=no
13264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
13268 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
13269 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
13271 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
13276 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
13277 if ${libffi_cv_as_string_pseudo_op+:} false; then :
13278 $as_echo_n "(cached) " >&6
13281 libffi_cv_as_string_pseudo_op=unknown
13282 # Check if we have .string
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285 asm (".string \\"string\\"");
13294 if ac_fn_c_try_compile "$LINENO"; then :
13295 libffi_cv_as_string_pseudo_op=yes
13297 libffi_cv_as_string_pseudo_op=no
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
13303 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
13304 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
13306 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
13311 if test x$TARGET = xX86_WIN64; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
13313 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
13314 if ${lt_cv_sys_symbol_underscore+:} false; then :
13315 $as_echo_n "(cached) " >&6
13317 lt_cv_sys_symbol_underscore=no
13318 cat > conftest.$ac_ext <<_LT_EOF
13319 void nm_test_func(){}
13320 int main(){nm_test_func;return 0;}
13322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13323 (eval $ac_compile) 2>&5
13325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13326 test $ac_status = 0; }; then
13327 # Now try to grab the symbols.
13328 ac_nlist=conftest.nm
13329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
13330 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
13332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13333 test $ac_status = 0; } && test -s "$ac_nlist"; then
13334 # See whether the symbols have a leading underscore.
13335 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
13336 lt_cv_sys_symbol_underscore=yes
13338 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
13341 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
13345 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13348 echo "configure: failed program was:" >&5
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13355 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13356 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13359 if test "x$sys_symbol_underscore" = xyes; then
13361 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
13367 FFI_EXEC_TRAMPOLINE_TABLE=0
13369 *arm*-apple-darwin*)
13370 FFI_EXEC_TRAMPOLINE_TABLE=1
13372 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
13375 *-apple-darwin1[10]* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
13377 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
13381 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
13382 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
13383 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
13385 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
13386 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
13391 if test x$TARGET = xX86_64; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
13393 $as_echo_n "checking assembler supports unwind section type... " >&6; }
13394 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
13395 $as_echo_n "(cached) " >&6
13398 libffi_cv_as_x86_64_unwind_section_type=yes
13399 echo '.section .eh_frame,"a",@unwind' > conftest.s
13400 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
13401 libffi_cv_as_x86_64_unwind_section_type=no
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
13406 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
13407 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
13409 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
13414 if test "x$GCC" = "xyes"; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
13416 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
13417 if ${libffi_cv_ro_eh_frame+:} false; then :
13418 $as_echo_n "(cached) " >&6
13421 libffi_cv_ro_eh_frame=no
13422 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
13423 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
13424 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
13425 libffi_cv_ro_eh_frame=yes
13426 elif grep '.section.*eh_frame.*#alloc' conftest.c \
13427 | grep -v '#write' > /dev/null; then
13428 libffi_cv_ro_eh_frame=yes
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
13435 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
13436 if test "x$libffi_cv_ro_eh_frame" = xyes; then
13438 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
13441 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
13445 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
13450 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
13451 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
13452 $as_echo_n "(cached) " >&6
13455 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
13456 libffi_cv_hidden_visibility_attribute=no
13457 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
13458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13459 (eval $ac_try) 2>&5
13461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13462 test $ac_status = 0; }; }; then
13463 if grep '\.hidden.*foo' conftest.s >/dev/null; then
13464 libffi_cv_hidden_visibility_attribute=yes
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
13471 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
13472 if test $libffi_cv_hidden_visibility_attribute = yes; then
13474 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
13486 # Check whether --enable-debug was given.
13487 if test "${enable_debug+set}" = set; then :
13488 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
13490 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
13495 if test "$enable_debug" = "yes"; then
13497 FFI_DEBUG_FALSE='#'
13504 # Check whether --enable-structs was given.
13505 if test "${enable_structs+set}" = set; then :
13506 enableval=$enable_structs; if test "$enable_structs" = "no"; then
13508 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
13514 # Check whether --enable-raw-api was given.
13515 if test "${enable_raw_api+set}" = set; then :
13516 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
13518 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
13524 # Check whether --enable-purify-safety was given.
13525 if test "${enable_purify_safety+set}" = set; then :
13526 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
13528 $as_echo "#define USING_PURIFY 1" >>confdefs.h
13534 # These variables are only ever used when we cross-build to X86_WIN32.
13535 # And we only support this with GCC, so...
13536 if test x"$GCC" != x"no"; then
13537 if test -n "$with_cross_host" &&
13538 test x"$with_cross_host" != x"no"; then
13539 toolexecdir='$(exec_prefix)/$(target_alias)'
13540 toolexeclibdir='$(toolexecdir)/lib'
13542 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
13543 toolexeclibdir='$(libdir)'
13545 multi_os_directory=`$CC -print-multi-os-directory`
13546 case $multi_os_directory in
13547 .) ;; # Avoid trailing /.
13548 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
13554 if test "${multilib}" = "yes"; then
13555 multilib_arg="--enable-multilib"
13560 ac_config_commands="$ac_config_commands include"
13562 ac_config_commands="$ac_config_commands src"
13565 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
13568 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
13571 cat >confcache <<\_ACEOF
13572 # This file is a shell script that caches the results of configure
13573 # tests run on this system so they can be shared between configure
13574 # scripts and configure runs, see configure's option --config-cache.
13575 # It is not useful on other systems. If it contains results you don't
13576 # want to keep, you may remove or edit it.
13578 # config.status only pays attention to the cache file if you give it
13579 # the --recheck option to rerun configure.
13581 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13582 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13583 # following values.
13587 # The following way of writing the cache mishandles newlines in values,
13588 # but we know of no workaround that is simple, portable, and efficient.
13589 # So, we kill variables containing newlines.
13590 # Ultrix sh set writes to stderr and can't be redirected directly,
13591 # and sets the high bit in the cache file unless we assign to the vars.
13593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13594 eval ac_val=\$$ac_var
13598 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13599 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13602 _ | IFS | as_nl) ;; #(
13603 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13604 *) { eval $ac_var=; unset $ac_var;} ;;
13610 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13611 *${as_nl}ac_space=\ *)
13612 # `set' does not quote correctly, so add quotes: double-quote
13613 # substitution turns \\\\ into \\, and sed turns \\ into \.
13616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13619 # `set' quotes correctly as required by POSIX, so do not add quotes.
13620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13631 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13633 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13634 if test -w "$cache_file"; then
13635 if test "x$cache_file" != "x/dev/null"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13637 $as_echo "$as_me: updating cache $cache_file" >&6;}
13638 if test ! -f "$cache_file" || test -h "$cache_file"; then
13639 cat confcache >"$cache_file"
13641 case $cache_file in #(
13643 mv -f confcache "$cache_file"$$ &&
13644 mv -f "$cache_file"$$ "$cache_file" ;; #(
13646 mv -f confcache "$cache_file" ;;
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13652 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13658 # Let make expand exec_prefix.
13659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13661 DEFS=-DHAVE_CONFIG_H
13666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13667 # 1. Remove the extension, and $U if already installed.
13668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13669 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13671 # will be set to the directory where LIBOBJS objects are built.
13672 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13673 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13675 LIBOBJS=$ac_libobjs
13677 LTLIBOBJS=$ac_ltlibobjs
13680 if test -n "$EXEEXT"; then
13682 am__EXEEXT_FALSE='#'
13684 am__EXEEXT_TRUE='#'
13688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13689 as_fn_error $? "conditional \"AMDEP\" was never defined.
13690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13692 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13693 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13696 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13697 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13700 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13701 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13704 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13705 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
13706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13708 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13709 as_fn_error $? "conditional \"MIPS\" was never defined.
13710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13712 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
13713 as_fn_error $? "conditional \"BFIN\" was never defined.
13714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13716 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13717 as_fn_error $? "conditional \"SPARC\" was never defined.
13718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13720 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13721 as_fn_error $? "conditional \"X86\" was never defined.
13722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13724 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13725 as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
13726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13728 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13729 as_fn_error $? "conditional \"X86_WIN32\" was never defined.
13730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13732 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
13733 as_fn_error $? "conditional \"X86_WIN64\" was never defined.
13734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13736 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13737 as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
13738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13740 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13741 as_fn_error $? "conditional \"ALPHA\" was never defined.
13742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13744 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13745 as_fn_error $? "conditional \"IA64\" was never defined.
13746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13748 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13749 as_fn_error $? "conditional \"M32R\" was never defined.
13750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13752 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13753 as_fn_error $? "conditional \"M68K\" was never defined.
13754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13756 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
13757 as_fn_error $? "conditional \"MOXIE\" was never defined.
13758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13760 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13761 as_fn_error $? "conditional \"POWERPC\" was never defined.
13762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13764 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13765 as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
13766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13768 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13769 as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
13770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13772 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13773 as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
13774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13776 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13777 as_fn_error $? "conditional \"ARM\" was never defined.
13778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13780 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13781 as_fn_error $? "conditional \"AVR32\" was never defined.
13782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13784 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13785 as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
13786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13788 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13789 as_fn_error $? "conditional \"FRV\" was never defined.
13790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13792 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13793 as_fn_error $? "conditional \"S390\" was never defined.
13794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13796 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13797 as_fn_error $? "conditional \"X86_64\" was never defined.
13798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13800 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13801 as_fn_error $? "conditional \"SH\" was never defined.
13802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13804 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13805 as_fn_error $? "conditional \"SH64\" was never defined.
13806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13808 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13809 as_fn_error $? "conditional \"PA_LINUX\" was never defined.
13810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13812 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13813 as_fn_error $? "conditional \"PA_HPUX\" was never defined.
13814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13816 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13817 as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
13818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13820 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
13821 as_fn_error $? "conditional \"TILE\" was never defined.
13822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13825 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13826 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13829 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13830 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
13831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13834 : "${CONFIG_STATUS=./config.status}"
13836 ac_clean_files_save=$ac_clean_files
13837 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13839 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13841 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13843 # Generated by $as_me.
13844 # Run this file to recreate the current configuration.
13845 # Compiler output produced by configure, useful for debugging
13846 # configure, is in config.log if it exists.
13849 ac_cs_recheck=false
13852 SHELL=\${CONFIG_SHELL-$SHELL}
13855 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13856 ## -------------------- ##
13857 ## M4sh Initialization. ##
13858 ## -------------------- ##
13860 # Be more Bourne compatible
13861 DUALCASE=1; export DUALCASE # for MKS sh
13862 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13865 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13866 # is contrary to our usage. Disable this feature.
13867 alias -g '${1+"$@"}'='"$@"'
13868 setopt NO_GLOB_SUBST
13870 case `(set -o) 2>/dev/null` in #(
13882 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13883 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13885 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13886 # Prefer a ksh shell builtin over an external printf program on Solaris,
13887 # but without wasting forks for bash or zsh.
13888 if test -z "$BASH_VERSION$ZSH_VERSION" \
13889 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13890 as_echo='print -r --'
13891 as_echo_n='print -rn --'
13892 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13893 as_echo='printf %s\n'
13894 as_echo_n='printf %s'
13896 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13897 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13898 as_echo_n='/usr/ucb/echo -n'
13900 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13901 as_echo_n_body='eval
13905 expr "X$arg" : "X\\(.*\\)$as_nl";
13906 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13908 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13910 export as_echo_n_body
13911 as_echo_n='sh -c $as_echo_n_body as_echo'
13913 export as_echo_body
13914 as_echo='sh -c $as_echo_body as_echo'
13917 # The user is always right.
13918 if test "${PATH_SEPARATOR+set}" != set; then
13920 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13921 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13928 # We need space, tab and new line, in precisely that order. Quoting is
13929 # there to prevent editors from complaining about space-tab.
13930 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13931 # splitting by setting IFS to empty value.)
13934 # Find who we are. Look in the path if we contain no directory separator.
13937 *[\\/]* ) as_myself=$0 ;;
13938 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13942 test -z "$as_dir" && as_dir=.
13943 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13949 # We did not find ourselves, most probably we were run as `sh COMMAND'
13950 # in which case we are not to be found in the path.
13951 if test "x$as_myself" = x; then
13954 if test ! -f "$as_myself"; then
13955 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13959 # Unset variables that we do not need and which cause bugs (e.g. in
13960 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13961 # suppresses any "Segmentation fault" message there. '((' could
13962 # trigger a bug in pdksh 5.2.14.
13963 for as_var in BASH_ENV ENV MAIL MAILPATH
13964 do eval test x\${$as_var+set} = xset \
13965 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13978 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13981 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13982 # ----------------------------------------
13983 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13984 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13985 # script with STATUS, using 1 if that was 0.
13988 as_status=$1; test $as_status -eq 0 && as_status=1
13990 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13991 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13993 $as_echo "$as_me: error: $2" >&2
13994 as_fn_exit $as_status
13998 # as_fn_set_status STATUS
13999 # -----------------------
14000 # Set $? to STATUS, without forking.
14001 as_fn_set_status ()
14004 } # as_fn_set_status
14006 # as_fn_exit STATUS
14007 # -----------------
14008 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14012 as_fn_set_status $1
14018 # Portably unset VAR.
14021 { eval $1=; unset $1;}
14023 as_unset=as_fn_unset
14024 # as_fn_append VAR VALUE
14025 # ----------------------
14026 # Append the text in VALUE to the end of the definition contained in VAR. Take
14027 # advantage of any shell optimizations that allow amortized linear growth over
14028 # repeated appends, instead of the typical quadratic growth present in naive
14030 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14031 eval 'as_fn_append ()
14042 # as_fn_arith ARG...
14043 # ------------------
14044 # Perform arithmetic evaluation on the ARGs, and store the result in the
14045 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14046 # must be portable across $(()) and expr.
14047 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14048 eval 'as_fn_arith ()
14055 as_val=`expr "$@" || test $? -eq 1`
14060 if expr a : '\(a\)' >/dev/null 2>&1 &&
14061 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14067 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14068 as_basename=basename
14073 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14079 as_me=`$as_basename -- "$0" ||
14080 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14081 X"$0" : 'X\(//\)$' \| \
14082 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14084 sed '/^.*\/\([^/][^/]*\)\/*$/{
14098 # Avoid depending upon Character Ranges.
14099 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14100 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14101 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14102 as_cr_digits='0123456789'
14103 as_cr_alnum=$as_cr_Letters$as_cr_digits
14105 ECHO_C= ECHO_N= ECHO_T=
14106 case `echo -n x` in #(((((
14108 case `echo 'xy\c'` in
14109 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14111 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14118 rm -f conf$$ conf$$.exe conf$$.file
14119 if test -d conf$$.dir; then
14120 rm -f conf$$.dir/conf$$.file
14123 mkdir conf$$.dir 2>/dev/null
14125 if (echo >conf$$.file) 2>/dev/null; then
14126 if ln -s conf$$.file conf$$ 2>/dev/null; then
14128 # ... but there are two gotchas:
14129 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14130 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14131 # In both cases, we have to default to `cp -p'.
14132 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14134 elif ln conf$$.file conf$$ 2>/dev/null; then
14142 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14143 rmdir conf$$.dir 2>/dev/null
14148 # Create "$as_dir" as a directory, including parents if necessary.
14153 -*) as_dir=./$as_dir;;
14155 test -d "$as_dir" || eval $as_mkdir_p || {
14159 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14160 *) as_qdir=$as_dir;;
14162 as_dirs="'$as_qdir' $as_dirs"
14163 as_dir=`$as_dirname -- "$as_dir" ||
14164 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14165 X"$as_dir" : 'X\(//\)[^/]' \| \
14166 X"$as_dir" : 'X\(//\)$' \| \
14167 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14168 $as_echo X"$as_dir" |
14169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14173 /^X\(\/\/\)[^/].*/{
14186 test -d "$as_dir" && break
14188 test -z "$as_dirs" || eval "mkdir $as_dirs"
14189 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14193 if mkdir -p . 2>/dev/null; then
14194 as_mkdir_p='mkdir -p "$as_dir"'
14196 test -d ./-p && rmdir ./-p
14200 if test -x / >/dev/null 2>&1; then
14201 as_test_x='test -x'
14203 if ls -dL / >/dev/null 2>&1; then
14210 if test -d "$1"; then
14216 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14217 ???[sx]*):;;*)false;;esac;fi
14221 as_executable_p=$as_test_x
14223 # Sed expression to map a string onto a valid CPP name.
14224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14226 # Sed expression to map a string onto a valid variable name.
14227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14231 ## ----------------------------------- ##
14232 ## Main body of $CONFIG_STATUS script. ##
14233 ## ----------------------------------- ##
14235 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14238 # Save the log message, to keep $0 and so on meaningful, and to
14239 # report actual input values of CONFIG_FILES etc. instead of their
14240 # values after options handling.
14242 This file was extended by libffi $as_me 3.0.11, which was
14243 generated by GNU Autoconf 2.68. Invocation command line was
14245 CONFIG_FILES = $CONFIG_FILES
14246 CONFIG_HEADERS = $CONFIG_HEADERS
14247 CONFIG_LINKS = $CONFIG_LINKS
14248 CONFIG_COMMANDS = $CONFIG_COMMANDS
14251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14256 case $ac_config_files in *"
14257 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14260 case $ac_config_headers in *"
14261 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14266 # Files that config.status was made for.
14267 config_files="$ac_config_files"
14268 config_headers="$ac_config_headers"
14269 config_links="$ac_config_links"
14270 config_commands="$ac_config_commands"
14274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14276 \`$as_me' instantiates files and other configuration actions
14277 from templates according to the current configuration. Unless the files
14278 and actions are specified as TAGs, all are instantiated by default.
14280 Usage: $0 [OPTION]... [TAG]...
14282 -h, --help print this help, then exit
14283 -V, --version print version number and configuration settings, then exit
14284 --config print configuration, then exit
14285 -q, --quiet, --silent
14286 do not print progress messages
14287 -d, --debug don't remove temporary files
14288 --recheck update $as_me by reconfiguring in the same conditions
14289 --file=FILE[:TEMPLATE]
14290 instantiate the configuration file FILE
14291 --header=FILE[:TEMPLATE]
14292 instantiate the configuration header FILE
14294 Configuration files:
14297 Configuration headers:
14300 Configuration links:
14303 Configuration commands:
14306 Report bugs to <http://github.com/atgreen/libffi/issues>."
14309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14310 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14312 libffi config.status 3.0.11
14313 configured by $0, generated by GNU Autoconf 2.68,
14314 with options \\"\$ac_cs_config\\"
14316 Copyright (C) 2010 Free Software Foundation, Inc.
14317 This config.status script is free software; the Free Software Foundation
14318 gives unlimited permission to copy, distribute and modify it."
14325 test -n "\$AWK" || AWK=awk
14328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14329 # The default lists apply if the user does not specify any file.
14335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14352 # Handling of the options.
14353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14355 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14356 $as_echo "$ac_cs_version"; exit ;;
14357 --config | --confi | --conf | --con | --co | --c )
14358 $as_echo "$ac_cs_config"; exit ;;
14359 --debug | --debu | --deb | --de | --d | -d )
14361 --file | --fil | --fi | --f )
14364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14365 '') as_fn_error $? "missing file argument" ;;
14367 as_fn_append CONFIG_FILES " '$ac_optarg'"
14368 ac_need_defaults=false;;
14369 --header | --heade | --head | --hea )
14372 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14374 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14375 ac_need_defaults=false;;
14377 # Conflict between --help and --header
14378 as_fn_error $? "ambiguous option: \`$1'
14379 Try \`$0 --help' for more information.";;
14380 --help | --hel | -h )
14381 $as_echo "$ac_cs_usage"; exit ;;
14382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14383 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14386 # This is an error.
14387 -*) as_fn_error $? "unrecognized option: \`$1'
14388 Try \`$0 --help' for more information." ;;
14390 *) as_fn_append ac_config_targets " $1"
14391 ac_need_defaults=false ;;
14397 ac_configure_extra_args=
14399 if $ac_cs_silent; then
14401 ac_configure_extra_args="$ac_configure_extra_args --silent"
14405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14406 if \$ac_cs_recheck; then
14407 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14409 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14410 CONFIG_SHELL='$SHELL'
14411 export CONFIG_SHELL
14416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14421 ## Running $as_me. ##
14427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14431 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14434 # The HP-UX ksh and POSIX shell print the target directory to stdout
14435 # if CDPATH is set.
14436 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14438 sed_quote_subst='$sed_quote_subst'
14439 double_quote_subst='$double_quote_subst'
14440 delay_variable_subst='$delay_variable_subst'
14441 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14442 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14443 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14444 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14445 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14446 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14447 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14448 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14449 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14450 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14451 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14452 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14453 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14454 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14455 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14456 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14457 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14458 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14459 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14460 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14461 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14462 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14463 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14464 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14465 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14466 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14467 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14468 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14469 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14470 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14471 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14472 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14473 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14474 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14475 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14476 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14477 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14478 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14479 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14480 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14481 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14482 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14483 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14484 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14485 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14486 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14487 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14488 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14489 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14490 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14491 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14492 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14493 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14494 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14495 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14496 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14497 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"`'
14498 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14499 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14500 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14501 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14502 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14503 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14504 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14505 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14506 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14507 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14508 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14509 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14510 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14511 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14512 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14513 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14514 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14515 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14516 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14517 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14518 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14519 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14520 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14521 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14522 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14523 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14524 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14525 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14526 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14527 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14528 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14529 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14530 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14531 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14532 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14533 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14534 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14535 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14536 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14537 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14538 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14539 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14540 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14541 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14542 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14543 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14544 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14545 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14546 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14547 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14548 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14549 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14550 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14551 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14552 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14553 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14554 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14555 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14556 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14557 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14558 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14559 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14560 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14561 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14562 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14563 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14564 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14565 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14566 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14567 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14568 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14569 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14570 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14573 LTCFLAGS='$LTCFLAGS'
14574 compiler='$compiler_DEFAULT'
14576 # A function that is used when there is no print builtin or printf.
14577 func_fallback_echo ()
14579 eval 'cat <<_LTECHO_EOF
14584 # Quote evaled strings.
14599 deplibs_check_method \
14604 sharedlib_from_linklib_cmd \
14607 archiver_list_spec \
14613 lt_cv_sys_global_symbol_pipe \
14614 lt_cv_sys_global_symbol_to_cdecl \
14615 lt_cv_sys_global_symbol_to_c_name_address \
14616 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14617 nm_file_list_spec \
14618 lt_prog_compiler_no_builtin_flag \
14619 lt_prog_compiler_pic \
14620 lt_prog_compiler_wl \
14621 lt_prog_compiler_static \
14622 lt_cv_prog_compiler_c_o \
14631 export_dynamic_flag_spec \
14632 whole_archive_flag_spec \
14633 compiler_needs_object \
14635 allow_undefined_flag \
14636 no_undefined_flag \
14637 hardcode_libdir_flag_spec \
14638 hardcode_libdir_separator \
14642 variables_saved_for_relink \
14644 library_names_spec \
14646 install_override_mode \
14650 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14651 *[\\\\\\\`\\"\\\$]*)
14652 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14655 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14660 # Double-quote double-evaled strings.
14661 for var in reload_cmds \
14662 old_postinstall_cmds \
14663 old_postuninstall_cmds \
14665 extract_expsyms_cmds \
14666 old_archive_from_new_cmds \
14667 old_archive_from_expsyms_cmds \
14669 archive_expsym_cmds \
14671 module_expsym_cmds \
14672 export_symbols_cmds \
14676 postuninstall_cmds \
14678 sys_lib_search_path_spec \
14679 sys_lib_dlsearch_path_spec; do
14680 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14681 *[\\\\\\\`\\"\\\$]*)
14682 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14685 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14690 ac_aux_dir='$ac_aux_dir'
14691 xsi_shell='$xsi_shell'
14692 lt_shell_append='$lt_shell_append'
14694 # See if we are running on zsh, and set the options which allow our
14695 # commands through without removal of \ escapes INIT.
14696 if test -n "\${ZSH_VERSION+set}" ; then
14697 setopt NO_GLOB_SUBST
14703 TIMESTAMP='$TIMESTAMP'
14709 TARGETDIR="$TARGETDIR"
14713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14715 # Handling of arguments.
14716 for ac_config_target in $ac_config_targets
14718 case $ac_config_target in
14719 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14720 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14721 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14722 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14723 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14724 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14725 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14726 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14727 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14728 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14729 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14730 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
14732 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14737 # If the user did not use the arguments to specify the items to instantiate,
14738 # then the envvar interface is used. Set only those that are not.
14739 # We use the long form for the default assignment because of an extremely
14740 # bizarre bug on SunOS 4.1.3.
14741 if $ac_need_defaults; then
14742 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14743 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14744 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14748 # Have a temporary directory for convenience. Make it in the build tree
14749 # simply because there is no reason against having it here, and in addition,
14750 # creating and moving files from /tmp can sometimes cause problems.
14751 # Hook for its removal unless debugging.
14752 # Note that there is a small window in which the directory will not be cleaned:
14753 # after its creation but before its name has been assigned to `$tmp'.
14757 trap 'exit_status=$?
14758 : "${ac_tmp:=$tmp}"
14759 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14761 trap 'as_fn_exit 1' 1 2 13 15
14763 # Create a (secure) tmp directory for tmp files.
14766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14770 tmp=./conf$$-$RANDOM
14771 (umask 077 && mkdir "$tmp")
14772 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14775 # Set up the scripts for CONFIG_FILES section.
14776 # No need to generate them if there are no CONFIG_FILES.
14777 # This happens for instance with `./config.status config.h'.
14778 if test -n "$CONFIG_FILES"; then
14781 ac_cr=`echo X | tr X '\015'`
14782 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14783 # But we know of no other shell where ac_cr would be empty at this
14784 # point, so we can use a bashism as a fallback.
14785 if test "x$ac_cr" = x; then
14786 eval ac_cr=\$\'\\r\'
14788 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14789 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14792 ac_cs_awk_cr=$ac_cr
14795 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14800 echo "cat >conf$$subs.awk <<_ACEOF" &&
14801 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14803 } >conf$$subs.sh ||
14804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14805 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14807 for ac_last_try in false false false false false :; do
14808 . ./conf$$subs.sh ||
14809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14811 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14812 if test $ac_delim_n = $ac_delim_num; then
14814 elif $ac_last_try; then
14815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14820 rm -f conf$$subs.sh
14822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14823 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14827 s/^/S["/; s/!.*/"]=/
14837 s/\(.\{148\}\)..*/\1/
14839 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14844 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14851 s/\(.\{148\}\)..*/\1/
14853 s/["\\]/\\&/g; s/^/"/; s/$/"/
14857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14862 ' <conf$$subs.awk | sed '
14867 ' >>$CONFIG_STATUS || ac_write_fail=1
14868 rm -f conf$$subs.awk
14869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14871 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14872 for (key in S) S_is_set[key] = 1
14878 nfields = split(line, field, "@")
14880 len = length(field[1])
14881 for (i = 2; i < nfields; i++) {
14883 keylen = length(key)
14884 if (S_is_set[key]) {
14886 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14887 len += length(value) + length(field[++i])
14898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14899 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14900 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14903 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14904 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14907 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14908 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14909 # trailing colons and then remove the whole line if VPATH becomes empty
14910 # (actually we leave an empty line to preserve line numbers).
14911 if test "x$srcdir" = x.; then
14912 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14931 fi # test -n "$CONFIG_FILES"
14933 # Set up the scripts for CONFIG_HEADERS section.
14934 # No need to generate them if there are no CONFIG_HEADERS.
14935 # This happens for instance with `./config.status Makefile'.
14936 if test -n "$CONFIG_HEADERS"; then
14937 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14941 # Transform confdefs.h into an awk script `defines.awk', embedded as
14942 # here-document in config.status, that substitutes the proper values into
14943 # config.h.in to produce config.h.
14945 # Create a delimiter string that does not exist in confdefs.h, to ease
14946 # handling of long lines.
14948 for ac_last_try in false false :; do
14949 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14950 if test -z "$ac_tt"; then
14952 elif $ac_last_try; then
14953 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14959 # For the awk script, D is an array of macro values keyed by name,
14960 # likewise P contains macro parameters if any. Preserve backslash
14961 # newline sequences.
14963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14965 s/.\{148\}/&'"$ac_delim"'/g
14968 s/^[ ]*#[ ]*define[ ][ ]*/ /
14975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14977 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14982 D["\1"]=" \3\\\\\\n"\\/p
14984 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14989 s/.\{148\}/&'"$ac_delim"'/g
14994 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14997 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14999 ' <confdefs.h | sed '
15000 s/'"$ac_delim"'/"\\\
15001 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15004 for (key in D) D_is_set[key] = 1
15007 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15009 split(line, arg, " ")
15010 if (arg[1] == "#") {
15014 defundef = substr(arg[1], 2)
15017 split(mac1, mac2, "(") #)
15019 prefix = substr(line, 1, index(line, defundef) - 1)
15020 if (D_is_set[macro]) {
15021 # Preserve the white space surrounding the "#".
15022 print prefix "define", macro P[macro] D[macro]
15025 # Replace #undef with comments. This is necessary, for example,
15026 # in the case of _POSIX_SOURCE, which is predefined and required
15027 # on some systems where configure will not decide to define it.
15028 if (defundef == "undef") {
15029 print "/*", prefix defundef, macro, "*/"
15037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15039 fi # test -n "$CONFIG_HEADERS"
15042 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15047 :[FHLC]) ac_mode=$ac_tag; continue;;
15049 case $ac_mode$ac_tag in
15051 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15052 :[FH]-) ac_tag=-:-;;
15053 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15070 -) ac_f="$ac_tmp/stdin";;
15071 *) # Look for the file first in the build tree, then in the source tree
15072 # (if the path is not absolute). The absolute path cannot be DOS-style,
15073 # because $ac_f cannot contain `:'.
15077 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15079 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15081 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15082 as_fn_append ac_file_inputs " '$ac_f'"
15085 # Let's still pretend it is `configure' which instantiates (i.e., don't
15086 # use $as_me), people would be surprised to read:
15087 # /* config.h. Generated by config.status. */
15088 configure_input='Generated from '`
15089 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15091 if test x"$ac_file" != x-; then
15092 configure_input="$ac_file. $configure_input"
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15094 $as_echo "$as_me: creating $ac_file" >&6;}
15096 # Neutralize special characters interpreted by sed in replacement strings.
15097 case $configure_input in #(
15098 *\&* | *\|* | *\\* )
15099 ac_sed_conf_input=`$as_echo "$configure_input" |
15100 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15101 *) ac_sed_conf_input=$configure_input;;
15105 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15111 ac_dir=`$as_dirname -- "$ac_file" ||
15112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15113 X"$ac_file" : 'X\(//\)[^/]' \| \
15114 X"$ac_file" : 'X\(//\)$' \| \
15115 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15116 $as_echo X"$ac_file" |
15117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15121 /^X\(\/\/\)[^/].*/{
15134 as_dir="$ac_dir"; as_fn_mkdir_p
15138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15140 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15141 # A ".." for each directory in $ac_dir_suffix.
15142 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15143 case $ac_top_builddir_sub in
15144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15148 ac_abs_top_builddir=$ac_pwd
15149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15150 # for backward compatibility:
15151 ac_top_builddir=$ac_top_build_prefix
15154 .) # We are building in place.
15156 ac_top_srcdir=$ac_top_builddir_sub
15157 ac_abs_top_srcdir=$ac_pwd ;;
15158 [\\/]* | ?:[\\/]* ) # Absolute name.
15159 ac_srcdir=$srcdir$ac_dir_suffix;
15160 ac_top_srcdir=$srcdir
15161 ac_abs_top_srcdir=$srcdir ;;
15162 *) # Relative name.
15163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15164 ac_top_srcdir=$ac_top_build_prefix$srcdir
15165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15177 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15178 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15180 ac_MKDIR_P=$MKDIR_P
15182 [\\/$]* | ?:[\\/]* ) ;;
15183 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15188 # If the template does not know about datarootdir, expand it.
15189 # FIXME: This hack should be removed a few years after 2.60.
15190 ac_datarootdir_hack=; ac_datarootdir_seen=
15201 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15202 *datarootdir*) ac_datarootdir_seen=yes;;
15203 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15205 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15208 ac_datarootdir_hack='
15209 s&@datadir@&$datadir&g
15210 s&@docdir@&$docdir&g
15211 s&@infodir@&$infodir&g
15212 s&@localedir@&$localedir&g
15213 s&@mandir@&$mandir&g
15214 s&\\\${datarootdir}&$datarootdir&g' ;;
15218 # Neutralize VPATH when `$srcdir' = `.'.
15219 # Shell code in configure.ac might set extrasub.
15220 # FIXME: do we really want to maintain this feature?
15221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222 ac_sed_extra="$ac_vpsub
15225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15228 s|@configure_input@|$ac_sed_conf_input|;t t
15229 s&@top_builddir@&$ac_top_builddir_sub&;t t
15230 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15231 s&@srcdir@&$ac_srcdir&;t t
15232 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15233 s&@top_srcdir@&$ac_top_srcdir&;t t
15234 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15235 s&@builddir@&$ac_builddir&;t t
15236 s&@abs_builddir@&$ac_abs_builddir&;t t
15237 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15238 s&@INSTALL@&$ac_INSTALL&;t t
15239 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15240 $ac_datarootdir_hack
15242 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15243 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15245 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15246 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15247 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15248 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15250 which seems to be undefined. Please make sure it is defined" >&5
15251 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15252 which seems to be undefined. Please make sure it is defined" >&2;}
15254 rm -f "$ac_tmp/stdin"
15256 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15257 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15265 if test x"$ac_file" != x-; then
15267 $as_echo "/* $configure_input */" \
15268 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15269 } >"$ac_tmp/config.h" \
15270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15271 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15273 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15276 mv "$ac_tmp/config.h" "$ac_file" \
15277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15280 $as_echo "/* $configure_input */" \
15281 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15282 || as_fn_error $? "could not create -" "$LINENO" 5
15284 # Compute "$ac_file"'s index in $config_headers.
15287 for _am_header in $config_headers :; do
15288 case $_am_header in
15289 $_am_arg | $_am_arg:* )
15292 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15295 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15296 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15297 X"$_am_arg" : 'X\(//\)[^/]' \| \
15298 X"$_am_arg" : 'X\(//\)$' \| \
15299 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15300 $as_echo X"$_am_arg" |
15301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15305 /^X\(\/\/\)[^/].*/{
15317 s/.*/./; q'`/stamp-h$_am_stamp_count
15324 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15327 # Prefer the file from the source tree if names are identical.
15328 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15329 ac_source=$srcdir/$ac_source
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15333 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15335 if test ! -r "$ac_source"; then
15336 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
15340 # Try a relative symlink, then a hard link, then a copy.
15342 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15343 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15345 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15346 ln "$ac_source" "$ac_file" 2>/dev/null ||
15347 cp -p "$ac_source" "$ac_file" ||
15348 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15351 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15352 $as_echo "$as_me: executing $ac_file commands" >&6;}
15357 case $ac_file$ac_mode in
15358 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15359 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15360 # are listed without --file. Let's play safe and only enable the eval
15361 # if we detect the quoting.
15362 case $CONFIG_FILES in
15363 *\'*) eval set x "$CONFIG_FILES" ;;
15364 *) set x $CONFIG_FILES ;;
15369 # Strip MF so we end up with the name of the file.
15370 mf=`echo "$mf" | sed -e 's/:.*$//'`
15371 # Check whether this is an Automake generated Makefile or not.
15372 # We used to match only the files named `Makefile.in', but
15373 # some people rename them; so instead we look at the file content.
15374 # Grep'ing the first line is not enough: some people post-process
15375 # each Makefile.in and add a new line on top of each file to say so.
15376 # Grep'ing the whole file is not good either: AIX grep has a line
15377 # limit of 2048, but all sed's we know have understand at least 4000.
15378 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15379 dirpart=`$as_dirname -- "$mf" ||
15380 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15381 X"$mf" : 'X\(//\)[^/]' \| \
15382 X"$mf" : 'X\(//\)$' \| \
15383 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15389 /^X\(\/\/\)[^/].*/{
15405 # Extract the definition of DEPDIR, am__include, and am__quote
15406 # from the Makefile without running `make'.
15407 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15408 test -z "$DEPDIR" && continue
15409 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15410 test -z "am__include" && continue
15411 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15412 # When using ansi2knr, U may be empty or an underscore; expand it
15413 U=`sed -n 's/^U = //p' < "$mf"`
15414 # Find all dependency output files, they are included files with
15415 # $(DEPDIR) in their names. We invoke sed twice because it is the
15416 # simplest approach to changing $(DEPDIR) to its actual value in the
15418 for file in `sed -n "
15419 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15421 # Make sure the directory exists.
15422 test -f "$dirpart/$file" && continue
15423 fdir=`$as_dirname -- "$file" ||
15424 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15425 X"$file" : 'X\(//\)[^/]' \| \
15426 X"$file" : 'X\(//\)$' \| \
15427 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15428 $as_echo X"$file" |
15429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15433 /^X\(\/\/\)[^/].*/{
15446 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15447 # echo "creating $dirpart/$file"
15448 echo '# dummy' > "$dirpart/$file"
15455 # See if we are running on zsh, and set the options which allow our
15456 # commands through without removal of \ escapes.
15457 if test -n "${ZSH_VERSION+set}" ; then
15458 setopt NO_GLOB_SUBST
15461 cfgfile="${ofile}T"
15462 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15465 cat <<_LT_EOF >> "$cfgfile"
15468 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15469 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15470 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15471 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15473 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15474 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15476 # Written by Gordon Matzigkeit, 1996
15478 # This file is part of GNU Libtool.
15480 # GNU Libtool is free software; you can redistribute it and/or
15481 # modify it under the terms of the GNU General Public License as
15482 # published by the Free Software Foundation; either version 2 of
15483 # the License, or (at your option) any later version.
15485 # As a special exception to the GNU General Public License,
15486 # if you distribute this file as part of a program or library that
15487 # is built using GNU Libtool, you may include this file under the
15488 # same distribution terms that you use for the rest of that program.
15490 # GNU Libtool is distributed in the hope that it will be useful,
15491 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15492 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15493 # GNU General Public License for more details.
15495 # You should have received a copy of the GNU General Public License
15496 # along with GNU Libtool; see the file COPYING. If not, a copy
15497 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15498 # obtained by writing to the Free Software Foundation, Inc.,
15499 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15502 # The names of the tagged configurations supported by this script.
15505 # ### BEGIN LIBTOOL CONFIG
15507 # Which release of libtool.m4 was used?
15508 macro_version=$macro_version
15509 macro_revision=$macro_revision
15511 # Whether or not to build shared libraries.
15512 build_libtool_libs=$enable_shared
15514 # Whether or not to build static libraries.
15515 build_old_libs=$enable_static
15517 # What type of objects to build.
15520 # Whether or not to optimize for fast installation.
15521 fast_install=$enable_fast_install
15523 # Shell to use when invoking shell scripts.
15526 # An echo program that protects backslashes.
15529 # The PATH separator for the build system.
15530 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15533 host_alias=$host_alias
15537 # The build system.
15538 build_alias=$build_alias
15542 # A sed program that does not truncate output.
15545 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15546 Xsed="\$SED -e 1s/^X//"
15548 # A grep program that handles long lines.
15554 # A literal string matcher.
15557 # A BSD- or MS-compatible name lister.
15560 # Whether we need soft or hard links.
15563 # What is the maximum length of a command?
15564 max_cmd_len=$max_cmd_len
15566 # Object file suffix (normally "o").
15569 # Executable file suffix (normally "").
15572 # whether the shell understands "unset".
15575 # turn spaces into newlines.
15578 # turn newlines into spaces.
15581 # convert \$build file names to \$host format.
15582 to_host_file_cmd=$lt_cv_to_host_file_cmd
15584 # convert \$build files to toolchain format.
15585 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15587 # An object symbol dumper.
15588 OBJDUMP=$lt_OBJDUMP
15590 # Method to check whether dependent libraries are shared objects.
15591 deplibs_check_method=$lt_deplibs_check_method
15593 # Command to use when deplibs_check_method = "file_magic".
15594 file_magic_cmd=$lt_file_magic_cmd
15596 # How to find potential files when deplibs_check_method = "file_magic".
15597 file_magic_glob=$lt_file_magic_glob
15599 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15600 want_nocaseglob=$lt_want_nocaseglob
15602 # DLL creation program.
15603 DLLTOOL=$lt_DLLTOOL
15605 # Command to associate shared and link libraries.
15606 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15611 # Flags to create an archive.
15612 AR_FLAGS=$lt_AR_FLAGS
15614 # How to feed a file listing to the archiver.
15615 archiver_list_spec=$lt_archiver_list_spec
15617 # A symbol stripping program.
15620 # Commands used to install an old-style archive.
15622 old_postinstall_cmds=$lt_old_postinstall_cmds
15623 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15625 # Whether to use a lock for old archive extraction.
15626 lock_old_archive_extraction=$lock_old_archive_extraction
15631 # LTCC compiler flags.
15632 LTCFLAGS=$lt_CFLAGS
15634 # Take the output of nm and produce a listing of raw symbols and C names.
15635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15637 # Transform the output of nm in a proper C declaration.
15638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15640 # Transform the output of nm in a C name address pair.
15641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15643 # Transform the output of nm in a C name address pair when lib prefix is needed.
15644 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15646 # Specify filename containing input files for \$NM.
15647 nm_file_list_spec=$lt_nm_file_list_spec
15649 # The root where to search for dependent libraries,and in which our libraries should be installed.
15650 lt_sysroot=$lt_sysroot
15652 # The name of the directory that contains temporary libtool files.
15655 # Used to examine libraries when file_magic_cmd begins with "file".
15656 MAGIC_CMD=$MAGIC_CMD
15658 # Must we lock files when doing compilation?
15659 need_locks=$lt_need_locks
15662 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15664 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15665 DSYMUTIL=$lt_DSYMUTIL
15667 # Tool to change global to local symbols on Mac OS X.
15670 # Tool to manipulate fat objects and archives on Mac OS X.
15673 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15676 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15677 OTOOL64=$lt_OTOOL64
15679 # Old archive suffix (normally "a").
15682 # Shared library suffix (normally ".so").
15683 shrext_cmds=$lt_shrext_cmds
15685 # The commands to extract the exported symbol list from a shared archive.
15686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15688 # Variables whose values should be saved in libtool wrapper scripts and
15689 # restored at link time.
15690 variables_saved_for_relink=$lt_variables_saved_for_relink
15692 # Do we need the "lib" prefix for modules?
15693 need_lib_prefix=$need_lib_prefix
15695 # Do we need a version for libraries?
15696 need_version=$need_version
15698 # Library versioning type.
15699 version_type=$version_type
15701 # Shared library runtime path variable.
15702 runpath_var=$runpath_var
15704 # Shared library path variable.
15705 shlibpath_var=$shlibpath_var
15707 # Is shlibpath searched before the hard-coded library search path?
15708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15710 # Format of library name prefix.
15711 libname_spec=$lt_libname_spec
15713 # List of archive names. First name is the real one, the rest are links.
15714 # The last name is the one that the linker finds with -lNAME
15715 library_names_spec=$lt_library_names_spec
15717 # The coded name of the library, if different from the real name.
15718 soname_spec=$lt_soname_spec
15720 # Permission mode override for installation of shared libraries.
15721 install_override_mode=$lt_install_override_mode
15723 # Command to use after installation of a shared archive.
15724 postinstall_cmds=$lt_postinstall_cmds
15726 # Command to use after uninstallation of a shared archive.
15727 postuninstall_cmds=$lt_postuninstall_cmds
15729 # Commands used to finish a libtool library installation in a directory.
15730 finish_cmds=$lt_finish_cmds
15732 # As "finish_cmds", except a single script fragment to be evaled but
15734 finish_eval=$lt_finish_eval
15736 # Whether we should hardcode library paths into libraries.
15737 hardcode_into_libs=$hardcode_into_libs
15739 # Compile-time system search path for libraries.
15740 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15742 # Run-time system search path for libraries.
15743 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15745 # Whether dlopen is supported.
15746 dlopen_support=$enable_dlopen
15748 # Whether dlopen of programs is supported.
15749 dlopen_self=$enable_dlopen_self
15751 # Whether dlopen of statically linked programs is supported.
15752 dlopen_self_static=$enable_dlopen_self_static
15754 # Commands to strip libraries.
15755 old_striplib=$lt_old_striplib
15756 striplib=$lt_striplib
15759 # The linker used to build libraries.
15762 # How to create reloadable object files.
15763 reload_flag=$lt_reload_flag
15764 reload_cmds=$lt_reload_cmds
15766 # Commands used to build an old-style archive.
15767 old_archive_cmds=$lt_old_archive_cmds
15769 # A language specific compiler.
15772 # Is the compiler the GNU compiler?
15775 # Compiler flag to turn off builtin functions.
15776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15778 # Additional compiler flags for building library objects.
15779 pic_flag=$lt_lt_prog_compiler_pic
15781 # How to pass a linker flag through the compiler.
15782 wl=$lt_lt_prog_compiler_wl
15784 # Compiler flag to prevent dynamic linking.
15785 link_static_flag=$lt_lt_prog_compiler_static
15787 # Does compiler simultaneously support -c and -o options?
15788 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15790 # Whether or not to add -lc for building shared libraries.
15791 build_libtool_need_lc=$archive_cmds_need_lc
15793 # Whether or not to disallow shared libs when runtime libs are static.
15794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15796 # Compiler flag to allow reflexive dlopens.
15797 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15799 # Compiler flag to generate shared objects directly from archives.
15800 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15802 # Whether the compiler copes with passing no objects directly.
15803 compiler_needs_object=$lt_compiler_needs_object
15805 # Create an old-style archive from a shared archive.
15806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15808 # Create a temporary old-style archive to link instead of a shared archive.
15809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15811 # Commands used to build a shared archive.
15812 archive_cmds=$lt_archive_cmds
15813 archive_expsym_cmds=$lt_archive_expsym_cmds
15815 # Commands used to build a loadable module if different from building
15816 # a shared archive.
15817 module_cmds=$lt_module_cmds
15818 module_expsym_cmds=$lt_module_expsym_cmds
15820 # Whether we are building with GNU ld or not.
15821 with_gnu_ld=$lt_with_gnu_ld
15823 # Flag that allows shared libraries with undefined symbols to be built.
15824 allow_undefined_flag=$lt_allow_undefined_flag
15826 # Flag that enforces no undefined symbols.
15827 no_undefined_flag=$lt_no_undefined_flag
15829 # Flag to hardcode \$libdir into a binary during linking.
15830 # This must work even if \$libdir does not exist
15831 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15833 # Whether we need a single "-rpath" flag with a separated argument.
15834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15836 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15837 # DIR into the resulting binary.
15838 hardcode_direct=$hardcode_direct
15840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15841 # DIR into the resulting binary and the resulting library dependency is
15842 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15843 # library is relocated.
15844 hardcode_direct_absolute=$hardcode_direct_absolute
15846 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15847 # into the resulting binary.
15848 hardcode_minus_L=$hardcode_minus_L
15850 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15851 # into the resulting binary.
15852 hardcode_shlibpath_var=$hardcode_shlibpath_var
15854 # Set to "yes" if building a shared library automatically hardcodes DIR
15855 # into the library and all subsequent libraries and executables linked
15857 hardcode_automatic=$hardcode_automatic
15859 # Set to yes if linker adds runtime paths of dependent libraries
15860 # to runtime path list.
15861 inherit_rpath=$inherit_rpath
15863 # Whether libtool must link a program against all its dependency libraries.
15864 link_all_deplibs=$link_all_deplibs
15866 # Set to "yes" if exported symbols are required.
15867 always_export_symbols=$always_export_symbols
15869 # The commands to list exported symbols.
15870 export_symbols_cmds=$lt_export_symbols_cmds
15872 # Symbols that should not be listed in the preloaded symbols.
15873 exclude_expsyms=$lt_exclude_expsyms
15875 # Symbols that must always be exported.
15876 include_expsyms=$lt_include_expsyms
15878 # Commands necessary for linking programs (against libraries) with templates.
15879 prelink_cmds=$lt_prelink_cmds
15881 # Commands necessary for finishing linking programs.
15882 postlink_cmds=$lt_postlink_cmds
15884 # Specify filename containing input files.
15885 file_list_spec=$lt_file_list_spec
15887 # How to hardcode a shared library path into an executable.
15888 hardcode_action=$hardcode_action
15890 # ### END LIBTOOL CONFIG
15896 cat <<\_LT_EOF >> "$cfgfile"
15897 # AIX sometimes has problems with the GCC collect2 program. For some
15898 # reason, if we set the COLLECT_NAMES environment variable, the problems
15899 # vanish in a puff of smoke.
15900 if test "X${COLLECT_NAMES+set}" != Xset; then
15902 export COLLECT_NAMES
15909 ltmain="$ac_aux_dir/ltmain.sh"
15912 # We use sed instead of cat because bash on DJGPP gets confused if
15913 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15914 # text mode, it properly converts lines to CR/LF. This bash problem
15915 # is reportedly fixed, but why not run on old versions too?
15916 sed '$q' "$ltmain" >> "$cfgfile" \
15917 || (rm -f "$cfgfile"; exit 1)
15919 if test x"$xsi_shell" = xyes; then
15920 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15924 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15925 \ * ) func_dirname_result="${3}" ;;\
15927 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15928 && mv -f "$cfgfile.tmp" "$cfgfile" \
15929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15930 test 0 -eq $? || _lt_function_replace_fail=:
15933 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15936 \ func_basename_result="${1##*/}"\
15937 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15938 && mv -f "$cfgfile.tmp" "$cfgfile" \
15939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15940 test 0 -eq $? || _lt_function_replace_fail=:
15943 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15944 func_dirname_and_basename ()\
15947 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15948 \ * ) func_dirname_result="${3}" ;;\
15950 \ func_basename_result="${1##*/}"\
15951 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15952 && mv -f "$cfgfile.tmp" "$cfgfile" \
15953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15954 test 0 -eq $? || _lt_function_replace_fail=:
15957 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15960 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15961 \ # positional parameters, so assign one to ordinary parameter first.\
15962 \ func_stripname_result=${3}\
15963 \ func_stripname_result=${func_stripname_result#"${1}"}\
15964 \ func_stripname_result=${func_stripname_result%"${2}"}\
15965 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15966 && mv -f "$cfgfile.tmp" "$cfgfile" \
15967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15968 test 0 -eq $? || _lt_function_replace_fail=:
15971 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15972 func_split_long_opt ()\
15974 \ func_split_long_opt_name=${1%%=*}\
15975 \ func_split_long_opt_arg=${1#*=}\
15976 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15977 && mv -f "$cfgfile.tmp" "$cfgfile" \
15978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15979 test 0 -eq $? || _lt_function_replace_fail=:
15982 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15983 func_split_short_opt ()\
15985 \ func_split_short_opt_arg=${1#??}\
15986 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15987 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15988 && mv -f "$cfgfile.tmp" "$cfgfile" \
15989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15990 test 0 -eq $? || _lt_function_replace_fail=:
15993 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15997 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15998 \ *) func_lo2o_result=${1} ;;\
16000 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16001 && mv -f "$cfgfile.tmp" "$cfgfile" \
16002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16003 test 0 -eq $? || _lt_function_replace_fail=:
16006 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16009 func_xform_result=${1%.*}.lo\
16010 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16011 && mv -f "$cfgfile.tmp" "$cfgfile" \
16012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16013 test 0 -eq $? || _lt_function_replace_fail=:
16016 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16019 func_arith_result=$(( $* ))\
16020 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16021 && mv -f "$cfgfile.tmp" "$cfgfile" \
16022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16023 test 0 -eq $? || _lt_function_replace_fail=:
16026 sed -e '/^func_len ()$/,/^} # func_len /c\
16029 func_len_result=${#1}\
16030 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16031 && mv -f "$cfgfile.tmp" "$cfgfile" \
16032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16033 test 0 -eq $? || _lt_function_replace_fail=:
16037 if test x"$lt_shell_append" = xyes; then
16038 sed -e '/^func_append ()$/,/^} # func_append /c\
16041 eval "${1}+=\\${2}"\
16042 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16043 && mv -f "$cfgfile.tmp" "$cfgfile" \
16044 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16045 test 0 -eq $? || _lt_function_replace_fail=:
16048 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16049 func_append_quoted ()\
16051 \ func_quote_for_eval "${2}"\
16052 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16053 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16054 && mv -f "$cfgfile.tmp" "$cfgfile" \
16055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16056 test 0 -eq $? || _lt_function_replace_fail=:
16059 # Save a `func_append' function call where possible by direct use of '+='
16060 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16061 && mv -f "$cfgfile.tmp" "$cfgfile" \
16062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16063 test 0 -eq $? || _lt_function_replace_fail=:
16065 # Save a `func_append' function call even when '+=' is not available
16066 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16067 && mv -f "$cfgfile.tmp" "$cfgfile" \
16068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16069 test 0 -eq $? || _lt_function_replace_fail=:
16072 if test x"$_lt_function_replace_fail" = x":"; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16074 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16078 mv -f "$cfgfile" "$ofile" ||
16079 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16083 "include":C) test -d include || mkdir include ;;
16085 test -d src || mkdir src
16086 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
16095 ac_clean_files=$ac_clean_files_save
16097 test $ac_write_fail = 0 ||
16098 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16101 # configure is writing to config.log, and then calls config.status.
16102 # config.status does its own redirection, appending to config.log.
16103 # Unfortunately, on DOS this fails, as config.log is still kept open
16104 # by configure, so config.status won't be able to write to it; its
16105 # output is simply discarded. So we exec the FD to /dev/null,
16106 # effectively closing config.log, so it can be properly (re)opened and
16107 # appended to by config.status. When coming back to configure, we
16108 # need to make the FD available again.
16109 if test "$no_create" != yes; then
16111 ac_config_status_args=
16112 test "$silent" = yes &&
16113 ac_config_status_args="$ac_config_status_args --quiet"
16115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16118 # would make configure fail if this is the last instruction.
16119 $ac_cs_success || as_fn_exit 1
16121 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16123 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}