2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.0.12-rc0.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://gcc.gnu.org/bugs.html about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.0.12-rc0'
594 PACKAGE_STRING='libffi 3.0.12-rc0'
595 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
644 FFI_EXEC_TRAMPOLINE_TABLE
645 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
646 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
647 sys_symbol_underscore
676 POWERPC_FREEBSD_FALSE
715 MAINTAINER_MODE_FALSE
740 am__fastdepCCAS_FALSE
770 INSTALL_STRIP_PROGRAM
785 ax_enable_builddir_sed
825 program_transform_name
838 enable_option_checking
840 enable_dependency_tracking
848 enable_portable_binary
850 enable_maintainer_mode
857 ac_precious_vars='build_alias
866 # Initialize some variables set by options.
868 ac_init_version=false
869 ac_unrecognized_opts=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
880 program_transform_name=s,x,x,
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 # Accept the important Cygnus configure options, so we can diagnose typos.
933 case $ac_dashdash$ac_option in
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
955 cache_file=config.cache ;;
957 -datadir | --datadir | --datadi | --datad)
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=no ;;
985 -docdir | --docdir | --docdi | --doc | --do)
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1173 -site=* | --site=* | --sit=*)
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1213 eval with_$ac_useropt=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1229 eval with_$ac_useropt=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250 Try \`$0 --help' for more information"
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 case $ac_envvar in #(
1257 '' | [0-9]* | *[!_$as_cr_alnum]* )
1258 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 as_fn_error $? "missing argument to $ac_option"
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1300 # Be sure to have absolute directory names.
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1313 target=$target_alias
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 elif test "x$build_alias" != "x$host_alias"; then
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327 test "$silent" = yes && exec 6>/dev/null
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1370 ac_srcdir_defaulted=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1404 \`configure' configures libffi 3.0.12-rc0 to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of libffi 3.0.12-rc0:";;
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --disable-builddir disable automatic build in subdir of sources
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --enable-shared[=PKGS] build shared libraries [default=yes]
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-portable-binary
1495 disable compiler optimizations that would produce
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
1500 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1501 --enable-debug debugging mode
1502 --disable-structs omit code for struct support
1503 --disable-raw-api make the raw api unavailable
1504 --enable-purify-safety purify-safe mode
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512 --with-sysroot=DIR Search for dependent libraries within DIR
1513 (or the compiler's sysroot if not specified).
1514 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CCAS assembler compiler command (defaults to CC)
1526 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1532 Report bugs to <http://gcc.gnu.org/bugs.html>.
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1562 .) # We are building in place.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1595 libffi configure 3.0.12-rc0
1596 generated by GNU Autoconf 2.69
1598 Copyright (C) 2012 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_compile
1647 # ac_fn_c_try_link LINENO
1648 # -----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext conftest$ac_exeext
1654 if { { ac_try="$ac_link"
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>conftest.err
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest$ac_exeext && {
1673 test "$cross_compiling" = yes ||
1674 test -x conftest$ac_exeext
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1683 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1684 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1685 # interfere with the next link command; also delete a directory that is
1686 # left behind by Apple's compiler. We do this before executing the actions.
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1691 } # ac_fn_c_try_link
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1710 if ac_fn_c_try_compile "$LINENO"; then :
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 } # ac_fn_c_check_header_compile
1724 # ac_fn_c_try_cpp LINENO
1725 # ----------------------
1726 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_cpp conftest.$ac_ext"
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } > conftest.i && {
1746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1761 # ac_fn_c_try_run LINENO
1762 # ----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1764 # that executables *can* be run.
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_link"
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>&5
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1779 { { case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_try") 2>&5
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; }; }; then :
1791 $as_echo "$as_me: program exited with status $ac_status" >&5
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1795 ac_retval=$ac_status
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1803 # ac_fn_c_check_func LINENO FUNC VAR
1804 # ----------------------------------
1805 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1806 ac_fn_c_check_func ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1818 #define $2 innocuous_$2
1820 /* System header to define __stub macros and hopefully few prototypes,
1821 which can conflict with char $2 (); below.
1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823 <limits.h> exists even on freestanding compilers. */
1826 # include <limits.h>
1828 # include <assert.h>
1833 /* Override any GCC internal prototype to avoid an error.
1834 Use char because int might match the return type of a GCC
1835 builtin and then its argument prototype would still apply. */
1840 /* The GNU C library defines this for functions which it implements
1841 to always fail with ENOSYS. Some functions are actually named
1842 something starting with __ and the normal name is an alias. */
1843 #if defined __stub_$2 || defined __stub___$2
1855 if ac_fn_c_try_link "$LINENO"; then :
1860 rm -f core conftest.err conftest.$ac_objext \
1861 conftest$ac_exeext conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 } # ac_fn_c_check_func
1870 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873 # the include files in INCLUDES and setting the cache variable VAR
1875 ac_fn_c_check_header_mongrel ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if eval \${$3+:} false; then :
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1888 # Is the header compilable?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890 $as_echo_n "checking $2 usability... " >&6; }
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_header_compiler=yes
1899 ac_header_compiler=no
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903 $as_echo "$ac_header_compiler" >&6; }
1905 # Is the header present?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907 $as_echo_n "checking $2 presence... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1912 if ac_fn_c_try_cpp "$LINENO"; then :
1913 ac_header_preproc=yes
1915 ac_header_preproc=no
1917 rm -f conftest.err conftest.i conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919 $as_echo "$ac_header_preproc" >&6; }
1921 # So? What about this header?
1922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1933 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1937 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940 ( $as_echo "## ------------------------------------------- ##
1941 ## Report this to http://gcc.gnu.org/bugs.html ##
1942 ## ------------------------------------------- ##"
1943 ) | sed "s/^/$as_me: WARNING: /" >&2
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1951 eval "$3=\$ac_header_compiler"
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_check_header_mongrel
1961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962 # -------------------------------------------
1963 # Tests whether TYPE exists after having included INCLUDES, setting cache
1964 # variable VAR accordingly.
1965 ac_fn_c_check_type ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1999 if ac_fn_c_try_compile "$LINENO"; then :
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_type
2015 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2016 # --------------------------------------------
2017 # Tries to find the compile-time value of EXPR in a program that includes
2018 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2020 ac_fn_c_compute_int ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 if test "$cross_compiling" = yes; then
2024 # Depending upon the size, compute the lo and hi bounds.
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2031 static int test_array [1 - 2 * !(($2) >= 0)];
2033 return test_array [0];
2039 if ac_fn_c_try_compile "$LINENO"; then :
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2048 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2050 return test_array [0];
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_hi=$ac_mid; break
2059 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2060 if test $ac_lo -le $ac_mid; then
2064 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) < 0)];
2077 return test_array [0];
2083 if ac_fn_c_try_compile "$LINENO"; then :
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2094 return test_array [0];
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_lo=$ac_mid; break
2103 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2104 if test $ac_mid -le $ac_hi; then
2108 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 # Binary search between lo and hi bounds.
2119 while test "x$ac_lo" != "x$ac_hi"; do
2120 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2129 return test_array [0];
2135 if ac_fn_c_try_compile "$LINENO"; then :
2138 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2150 static long int longval () { return $2; }
2151 static unsigned long int ulongval () { return $2; }
2158 FILE *f = fopen ("conftest.val", "w");
2163 long int i = longval ();
2166 fprintf (f, "%ld", i);
2170 unsigned long int i = ulongval ();
2173 fprintf (f, "%lu", i);
2175 /* Do not output a trailing newline, as this causes \r\n confusion
2176 on some platforms. */
2177 return ferror (f) || fclose (f) != 0;
2183 if ac_fn_c_try_run "$LINENO"; then :
2184 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2189 conftest.$ac_objext conftest.beam conftest.$ac_ext
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194 as_fn_set_status $ac_retval
2196 } # ac_fn_c_compute_int
2197 cat >config.log <<_ACEOF
2198 This file contains any messages produced by compilers while
2199 running configure, to aid debugging if configure makes a mistake.
2201 It was created by libffi $as_me 3.0.12-rc0, which was
2202 generated by GNU Autoconf 2.69. Invocation command line was
2214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2226 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 test -z "$as_dir" && as_dir=.
2238 $as_echo "PATH: $as_dir"
2254 # Keep a trace of the command line.
2255 # Strip out --no-create and --no-recursion so they do not pile up.
2256 # Strip out --silent because we don't want to record it for future runs.
2257 # Also quote any args containing shell meta-characters.
2258 # Make two passes to allow for proper duplicate-argument suppression.
2262 ac_must_keep_next=false
2268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2270 | -silent | --silent | --silen | --sile | --sil)
2273 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2276 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2278 as_fn_append ac_configure_args1 " '$ac_arg'"
2279 if test $ac_must_keep_next = true; then
2280 ac_must_keep_next=false # Got value, back to normal.
2283 *=* | --config-cache | -C | -disable-* | --disable-* \
2284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2286 | -with-* | --with-* | -without-* | --without-* | --x)
2287 case "$ac_configure_args0 " in
2288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2291 -* ) ac_must_keep_next=true ;;
2294 as_fn_append ac_configure_args " '$ac_arg'"
2299 { ac_configure_args0=; unset ac_configure_args0;}
2300 { ac_configure_args1=; unset ac_configure_args1;}
2302 # When interrupted or exit'd, cleanup temporary files, and complete
2303 # config.log. We remove comments because anyway the quotes in there
2304 # would cause problems or look ugly.
2305 # WARNING: Use '\'' to represent an apostrophe within the trap.
2306 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2307 trap 'exit_status=$?
2308 # Save into config.log some information that might help in debugging.
2312 $as_echo "## ---------------- ##
2313 ## Cache variables. ##
2314 ## ---------------- ##"
2316 # The following way of writing the cache mishandles newlines in values,
2318 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2319 eval ac_val=\$$ac_var
2323 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2324 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327 _ | IFS | as_nl) ;; #(
2328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2329 *) { eval $ac_var=; unset $ac_var;} ;;
2334 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2335 *${as_nl}ac_space=\ *)
2337 "s/'\''/'\''\\\\'\'''\''/g;
2338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348 $as_echo "## ----------------- ##
2349 ## Output variables. ##
2350 ## ----------------- ##"
2352 for ac_var in $ac_subst_vars
2354 eval ac_val=\$$ac_var
2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 $as_echo "$ac_var='\''$ac_val'\''"
2362 if test -n "$ac_subst_files"; then
2363 $as_echo "## ------------------- ##
2364 ## File substitutions. ##
2365 ## ------------------- ##"
2367 for ac_var in $ac_subst_files
2369 eval ac_val=\$$ac_var
2371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373 $as_echo "$ac_var='\''$ac_val'\''"
2378 if test -s confdefs.h; then
2379 $as_echo "## ----------- ##
2386 test "$ac_signal" != 0 &&
2387 $as_echo "$as_me: caught signal $ac_signal"
2388 $as_echo "$as_me: exit $exit_status"
2390 rm -f core *.core core.conftest.* &&
2391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394 for ac_signal in 1 2 13 15; do
2395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2400 rm -f -r conftest* confdefs.h
2402 $as_echo "/* confdefs.h */" > confdefs.h
2404 # Predefined preprocessor variables.
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_NAME "$PACKAGE_NAME"
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_STRING "$PACKAGE_STRING"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_URL "$PACKAGE_URL"
2431 # Let the site file select an alternate cache file if it wants to.
2432 # Prefer an explicitly selected file to automatically selected ones.
2435 if test -n "$CONFIG_SITE"; then
2436 # We do not want a PATH search for config.site.
2437 case $CONFIG_SITE in #((
2438 -*) ac_site_file1=./$CONFIG_SITE;;
2439 */*) ac_site_file1=$CONFIG_SITE;;
2440 *) ac_site_file1=./$CONFIG_SITE;;
2442 elif test "x$prefix" != xNONE; then
2443 ac_site_file1=$prefix/share/config.site
2444 ac_site_file2=$prefix/etc/config.site
2446 ac_site_file1=$ac_default_prefix/share/config.site
2447 ac_site_file2=$ac_default_prefix/etc/config.site
2449 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2451 test "x$ac_site_file" = xNONE && continue
2452 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2454 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2455 sed 's/^/| /' "$ac_site_file" >&5
2457 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 as_fn_error $? "failed to load site script $ac_site_file
2460 See \`config.log' for more details" "$LINENO" 5; }
2464 if test -r "$cache_file"; then
2465 # Some versions of bash will fail to source /dev/null (special files
2466 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2467 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2469 $as_echo "$as_me: loading cache $cache_file" >&6;}
2471 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2472 *) . "./$cache_file";;
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2477 $as_echo "$as_me: creating cache $cache_file" >&6;}
2481 # Check that the precious variables saved in the cache have kept the same
2483 ac_cache_corrupted=false
2484 for ac_var in $ac_precious_vars; do
2485 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2486 eval ac_new_set=\$ac_env_${ac_var}_set
2487 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2488 eval ac_new_val=\$ac_env_${ac_var}_value
2489 case $ac_old_set,$ac_new_set in
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2492 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2493 ac_cache_corrupted=: ;;
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2497 ac_cache_corrupted=: ;;
2500 if test "x$ac_old_val" != "x$ac_new_val"; then
2501 # differences in whitespace do not lead to failure.
2502 ac_old_val_w=`echo x $ac_old_val`
2503 ac_new_val_w=`echo x $ac_new_val`
2504 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2506 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2507 ac_cache_corrupted=:
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2510 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2511 eval $ac_var=\$ac_old_val
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2514 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2516 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2519 # Pass precious variables to config.status.
2520 if test "$ac_new_set" = set; then
2522 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2523 *) ac_arg=$ac_var=$ac_new_val ;;
2525 case " $ac_configure_args " in
2526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2527 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2531 if $ac_cache_corrupted; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2535 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2536 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2538 ## -------------------- ##
2539 ## Main body of script. ##
2540 ## -------------------- ##
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549 ac_config_headers="$ac_config_headers fficonfig.h"
2553 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2554 if test -f "$ac_dir/install-sh"; then
2556 ac_install_sh="$ac_aux_dir/install-sh -c"
2558 elif test -f "$ac_dir/install.sh"; then
2560 ac_install_sh="$ac_aux_dir/install.sh -c"
2562 elif test -f "$ac_dir/shtool"; then
2564 ac_install_sh="$ac_aux_dir/shtool install -c"
2568 if test -z "$ac_aux_dir"; then
2569 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2572 # These three variables are undocumented and unsupported,
2573 # and are intended to be withdrawn in a future Autoconf release.
2574 # They can cause serious problems if a builder's source tree is in a directory
2575 # whose full name contains unusual characters.
2576 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2577 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2578 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2581 # Make sure we can run config.sub.
2582 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2583 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2586 $as_echo_n "checking build system type... " >&6; }
2587 if ${ac_cv_build+:} false; then :
2588 $as_echo_n "(cached) " >&6
2590 ac_build_alias=$build_alias
2591 test "x$ac_build_alias" = x &&
2592 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2593 test "x$ac_build_alias" = x &&
2594 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2595 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2600 $as_echo "$ac_cv_build" >&6; }
2601 case $ac_cv_build in
2603 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2606 ac_save_IFS=$IFS; IFS='-'
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2616 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2620 $as_echo_n "checking host system type... " >&6; }
2621 if ${ac_cv_host+:} false; then :
2622 $as_echo_n "(cached) " >&6
2624 if test "x$host_alias" = x; then
2625 ac_cv_host=$ac_cv_build
2627 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2628 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2633 $as_echo "$ac_cv_host" >&6; }
2636 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2639 ac_save_IFS=$IFS; IFS='-'
2645 # Remember, the first character of IFS is used to create $*,
2646 # except with old shells:
2649 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2653 $as_echo_n "checking target system type... " >&6; }
2654 if ${ac_cv_target+:} false; then :
2655 $as_echo_n "(cached) " >&6
2657 if test "x$target_alias" = x; then
2658 ac_cv_target=$ac_cv_host
2660 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2661 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2666 $as_echo "$ac_cv_target" >&6; }
2667 case $ac_cv_target in
2669 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2671 target=$ac_cv_target
2672 ac_save_IFS=$IFS; IFS='-'
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2682 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2685 # The aliases save the names the user supplied, while $host etc.
2686 # will get canonicalized.
2687 test -n "$target_alias" &&
2688 test "$program_prefix$program_suffix$program_transform_name" = \
2690 program_prefix=${target_alias}-
2692 target_alias=${target_alias-$host_alias}
2694 . ${srcdir}/configure.host
2697 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2698 if test "${ac_configure_args+set}" != "set" ; then
2700 for ac_arg in ${1+"$@"}; do
2701 ac_configure_args="$ac_configure_args '$ac_arg'"
2705 # expand $ac_aux_dir to an absolute path
2706 am_aux_dir=`cd $ac_aux_dir && pwd`
2709 ax_enable_builddir="."
2710 # Check whether --enable-builddir was given.
2711 if test "${enable_builddir+set}" = set; then :
2712 enableval=$enable_builddir; ax_enable_builddir="$enableval"
2714 ax_enable_builddir="auto"
2717 if test ".$ac_srcdir_defaulted" != ".no" ; then
2718 if test ".$srcdir" = ".." ; then
2719 if test -f config.status ; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2721 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2723 test ".$ax_enable_builddir" = "." && ax_enable_builddir="."
2724 test ".$ax_enable_builddir" = ".no" && ax_enable_builddir="."
2725 test ".$TARGET" = "." && TARGET="$target"
2726 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2727 if test ".$ax_enable_builddir" != ".." ; then # we know where to go and
2728 as_dir=$ax_enable_builddir; as_fn_mkdir_p
2729 echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2730 cd $ax_enable_builddir
2731 if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2734 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2736 as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2738 srcdir=`echo "$ax_enable_builddir" |
2739 sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2740 # going to restart from subdirectory location
2741 test -f $srcdir/config.log && mv $srcdir/config.log .
2742 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
2743 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2744 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2746 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2747 case "$0" in # restart
2748 /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2749 *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2754 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2755 # Extract the first word of "gsed sed", so it can be a program name with args.
2756 set dummy gsed sed; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 case $ax_enable_builddir_sed in
2764 ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2786 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2787 if test -n "$ax_enable_builddir_sed"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2789 $as_echo "$ax_enable_builddir_sed" >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2796 ax_enable_builddir_auxdir="$am_aux_dir"
2797 ac_config_commands="$ac_config_commands buildir"
2800 am__api_version='1.12'
2802 # Find a good install program. We prefer a C program (faster),
2803 # so one script is as good as another. But avoid the broken or
2804 # incompatible versions:
2805 # SysV /etc/install, /usr/sbin/install
2806 # SunOS /usr/etc/install
2807 # IRIX /sbin/install
2809 # AmigaOS /C/install, which installs bootblocks on floppy discs
2810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2813 # OS/2's system install, which has a completely different semantic
2814 # ./install, which can be erroneously created by make from ./install.sh.
2815 # Reject install programs that cannot install multiple files.
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2817 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2818 if test -z "$INSTALL"; then
2819 if ${ac_cv_path_install+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 # Account for people who put trailing slashes in PATH elements.
2828 case $as_dir/ in #((
2829 ./ | .// | /[cC]/* | \
2830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2831 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2834 # OSF1 and SCO ODT 3.0 have their own names for install.
2835 # Don't use installbsd from OSF since it installs stuff as root
2837 for ac_prog in ginstall scoinst install; do
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2840 if test $ac_prog = install &&
2841 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842 # AIX install. It has an incompatible calling convention.
2844 elif test $ac_prog = install &&
2845 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # program-specific install script used by HP pwplus--don't use.
2849 rm -rf conftest.one conftest.two conftest.dir
2850 echo one > conftest.one
2851 echo two > conftest.two
2853 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2854 test -s conftest.one && test -s conftest.two &&
2855 test -s conftest.dir/conftest.one &&
2856 test -s conftest.dir/conftest.two
2858 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2871 rm -rf conftest.one conftest.two conftest.dir
2874 if test "${ac_cv_path_install+set}" = set; then
2875 INSTALL=$ac_cv_path_install
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 INSTALL=$ac_install_sh
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2885 $as_echo "$INSTALL" >&6; }
2887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888 # It thinks the first close brace ends the variable substitution.
2889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2896 $as_echo_n "checking whether build environment is sane... " >&6; }
2897 # Reject unsafe characters in $srcdir or the absolute working directory
2898 # name. Accept space and tab only in the latter.
2902 *[\\\"\#\$\&\'\`$am_lf]*)
2903 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2906 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2907 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2910 # Do 'set' in a subshell so we don't clobber the current shell's
2911 # arguments. Must try -L first in case configure is actually a
2912 # symlink; some systems play weird games with the mod time of symlinks
2913 # (eg FreeBSD returns the mod time of the symlink's containing
2917 for am_try in 1 2; do
2918 echo "timestamp, slept: $am_has_slept" > conftest.file
2919 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2920 if test "$*" = "X"; then
2922 set X `ls -t "$srcdir/configure" conftest.file`
2924 if test "$*" != "X $srcdir/configure conftest.file" \
2925 && test "$*" != "X conftest.file $srcdir/configure"; then
2927 # If neither matched, then we have a broken ls. This can happen
2928 # if, for instance, CONFIG_SHELL is bash and it inherits a
2929 # broken ls alias from the environment. This has actually
2930 # happened. Such a system could not be considered "sane".
2931 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2932 alias in your environment" "$LINENO" 5
2934 if test "$2" = conftest.file || test $am_try -eq 2; then
2941 test "$2" = conftest.file
2947 as_fn_error $? "newly created file is older than distributed files!
2948 Check your system clock" "$LINENO" 5
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2952 # If we didn't sleep, we still need to ensure time stamps of config.status and
2953 # generated files are strictly newer.
2955 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2962 test "$program_prefix" != NONE &&
2963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2964 # Use a double $ so make ignores it.
2965 test "$program_suffix" != NONE &&
2966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2967 # Double any \ or $.
2968 # By default was `s,x,x', remove it if useless.
2969 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2970 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2972 if test x"${MISSING+set}" != xset; then
2975 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2977 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2980 # Use eval to expand $SHELL
2981 if eval "$MISSING --run true"; then
2982 am_missing_run="$MISSING --run "
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2986 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2989 if test x"${install_sh}" != xset; then
2992 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2994 install_sh="\${SHELL} $am_aux_dir/install-sh"
2998 # Installed binaries are usually stripped using 'strip' when the user
2999 # run "make install-strip". However 'strip' might not be the right
3000 # tool to use in cross-compilation environments, therefore Automake
3001 # will honor the 'STRIP' environment variable to overrule this program.
3002 if test "$cross_compiling" != no; then
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}strip; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_STRIP+:} false; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$STRIP"; then
3012 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 STRIP=$ac_cv_prog_STRIP
3032 if test -n "$STRIP"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3034 $as_echo "$STRIP" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3042 if test -z "$ac_cv_prog_STRIP"; then
3044 # Extract the first word of "strip", so it can be a program name with args.
3045 set dummy strip; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$ac_ct_STRIP"; then
3052 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_ac_ct_STRIP="strip"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3072 if test -n "$ac_ct_STRIP"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3074 $as_echo "$ac_ct_STRIP" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3080 if test "x$ac_ct_STRIP" = x; then
3083 case $cross_compiling:$ac_tool_warned in
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned=yes ;;
3092 STRIP="$ac_cv_prog_STRIP"
3096 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3099 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3100 if test -z "$MKDIR_P"; then
3101 if ${ac_cv_path_mkdir+:} false; then :
3102 $as_echo_n "(cached) " >&6
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3108 test -z "$as_dir" && as_dir=.
3109 for ac_prog in mkdir gmkdir; do
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3112 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3113 'mkdir (GNU coreutils) '* | \
3114 'mkdir (coreutils) '* | \
3115 'mkdir (fileutils) '4.1*)
3116 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3126 test -d ./--version && rmdir ./--version
3127 if test "${ac_cv_path_mkdir+set}" = set; then
3128 MKDIR_P="$ac_cv_path_mkdir -p"
3130 # As a last resort, use the slow shell script. Don't cache a
3131 # value for MKDIR_P within a source directory, because that will
3132 # break other packages using the cache if that directory is
3133 # removed, or if the value is a relative name.
3134 MKDIR_P="$ac_install_sh -d"
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3138 $as_echo "$MKDIR_P" >&6; }
3140 for ac_prog in gawk mawk nawk awk
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy $ac_prog; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_AWK+:} false; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$AWK"; then
3150 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_AWK="$ac_prog"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 if test -n "$AWK"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3172 $as_echo "$AWK" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3179 test -n "$AWK" && break
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3183 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3185 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3186 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 cat >conftest.make <<\_ACEOF
3192 @echo '@@@%%%=$(MAKE)=@@@%%%'
3194 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3195 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3197 eval ac_cv_prog_make_${ac_make}_set=yes;;
3199 eval ac_cv_prog_make_${ac_make}_set=no;;
3203 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 SET_MAKE="MAKE=${MAKE-make}"
3213 rm -rf .tst 2>/dev/null
3214 mkdir .tst 2>/dev/null
3215 if test -d .tst; then
3220 rmdir .tst 2>/dev/null
3222 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3223 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3224 # is not polluted with repeated "-I."
3225 am__isrc=' -I$(srcdir)'
3226 # test to see if srcdir already configured
3227 if test -f $srcdir/config.status; then
3228 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3232 # test whether we have cygpath
3233 if test -z "$CYGPATH_W"; then
3234 if (cygpath --version) >/dev/null 2>/dev/null; then
3235 CYGPATH_W='cygpath -w'
3242 # Define the identity of the package.
3244 VERSION='3.0.12-rc0'
3247 cat >>confdefs.h <<_ACEOF
3248 #define PACKAGE "$PACKAGE"
3252 cat >>confdefs.h <<_ACEOF
3253 #define VERSION "$VERSION"
3256 # Some tools Automake needs.
3258 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3261 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3264 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3267 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3270 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3272 # For better backward compatibility. To be removed once Automake 1.9.x
3273 # dies out for good. For more background, see:
3274 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3275 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3276 mkdir_p='$(MKDIR_P)'
3278 # We need awk for the "check" target. The system "awk" is bad on
3280 # Always define AMTAR for backward compatibility. Yes, it's still used
3281 # in the wild :-( We should find a proper way to deprecate it ...
3284 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3291 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3292 # We must force CC to /not/ be precious variables; otherwise
3293 # the wrong, non-multilib-adjusted value will be used in multilibs.
3294 # As a side effect, we have to subst CFLAGS ourselves.
3295 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3296 # defaults of its own if none are provided.
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3308 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3314 if test -n "$CC"; then
3315 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 if test -n "$CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337 $as_echo "$CC" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3345 if test -z "$ac_cv_prog_CC"; then
3347 # Extract the first word of "gcc", so it can be a program name with args.
3348 set dummy gcc; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3352 $as_echo_n "(cached) " >&6
3354 if test -n "$ac_ct_CC"; then
3355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_ac_ct_CC="gcc"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3375 if test -n "$ac_ct_CC"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3377 $as_echo "$ac_ct_CC" >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3383 if test "x$ac_ct_CC" = x; then
3386 case $cross_compiling:$ac_tool_warned in
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390 ac_tool_warned=yes ;;
3398 if test -z "$CC"; then
3399 if test -n "$ac_tool_prefix"; then
3400 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3401 set dummy ${ac_tool_prefix}cc; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_CC+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 if test -n "$CC"; then
3408 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_CC="${ac_tool_prefix}cc"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 if test -n "$CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3430 $as_echo "$CC" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3439 if test -z "$CC"; then
3440 # Extract the first word of "cc", so it can be a program name with args.
3441 set dummy cc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_prog_CC+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC="$CC" # Let the user override the test.
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3459 ac_prog_rejected=yes
3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 if test $ac_prog_rejected = yes; then
3471 # We found a bogon in the path, so make sure we never use it.
3472 set dummy $ac_cv_prog_CC
3474 if test $# != 0; then
3475 # We chose a different compiler from the bogus one.
3476 # However, it has the same basename, so the bogon will be chosen
3477 # first if we set CC to just the basename; use the full file name.
3479 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3485 if test -n "$CC"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487 $as_echo "$CC" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3495 if test -z "$CC"; then
3496 if test -n "$ac_tool_prefix"; then
3497 for ac_prog in cl.exe
3499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$CC"; then
3507 ac_cv_prog_CC="$CC" # Let the user override the test.
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 if test -n "$CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 $as_echo "$CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3536 test -n "$CC" && break
3539 if test -z "$CC"; then
3541 for ac_prog in cl.exe
3543 # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy $ac_prog; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_ac_ct_CC="$ac_prog"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3580 test -n "$ac_ct_CC" && break
3583 if test "x$ac_ct_CC" = x; then
3586 case $cross_compiling:$ac_tool_warned in
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590 ac_tool_warned=yes ;;
3599 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "no acceptable C compiler found in \$PATH
3602 See \`config.log' for more details" "$LINENO" 5; }
3604 # Provide some information about the compiler.
3605 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3608 for ac_option in --version -v -V -qversion; do
3609 { { ac_try="$ac_compiler $ac_option >&5"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3618 if test -s conftest.err; then
3620 ... rest of stderr output deleted ...
3621 10q' conftest.err >conftest.er1
3622 cat conftest.er1 >&5
3624 rm -f conftest.er1 conftest.err
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 ac_clean_files_save=$ac_clean_files
3641 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3642 # Try to create an executable without -o first, disregard a.out.
3643 # It will help us diagnose broken compilers, and finding out an intuition
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3646 $as_echo_n "checking whether the C compiler works... " >&6; }
3647 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3649 # The possible output files:
3650 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3653 for ac_file in $ac_files
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3662 if { { ac_try="$ac_link_default"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link_default") 2>&5
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3674 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3675 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3676 # so that the user can short-circuit this test for compilers unknown to
3678 for ac_file in $ac_files ''
3680 test -f "$ac_file" || continue
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3685 # We found the default executable, but exeext='' is most
3689 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3691 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3693 # We set ac_cv_exeext here because the later test for it is not
3694 # safe: cross compilers may not add the suffix if given an `-o'
3695 # argument, so we may need to know it at that point already.
3696 # Even if this section looks crufty: it has the advantage of
3703 test "$ac_cv_exeext" = no && ac_cv_exeext=
3708 if test -z "$ac_file"; then :
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711 $as_echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error 77 "C compiler cannot create executables
3717 See \`config.log' for more details" "$LINENO" 5; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720 $as_echo "yes" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3723 $as_echo_n "checking for C compiler default output file name... " >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3725 $as_echo "$ac_file" >&6; }
3726 ac_exeext=$ac_cv_exeext
3728 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3729 ac_clean_files=$ac_clean_files_save
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3731 $as_echo_n "checking for suffix of executables... " >&6; }
3732 if { { ac_try="$ac_link"
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_link") 2>&5
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }; then :
3743 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3744 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe'), while it won't with
3747 for ac_file in conftest.exe conftest conftest.*; do
3748 test -f "$ac_file" || continue
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3751 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details" "$LINENO" 5; }
3762 rm -f conftest conftest$ac_cv_exeext
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3764 $as_echo "$ac_cv_exeext" >&6; }
3766 rm -f conftest.$ac_ext
3767 EXEEXT=$ac_cv_exeext
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3775 FILE *f = fopen ("conftest.out", "w");
3776 return ferror (f) || fclose (f) != 0;
3782 ac_clean_files="$ac_clean_files conftest.out"
3783 # Check that the compiler produces executables we can run. If not, either
3784 # the compiler is broken, or we cross compile.
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3786 $as_echo_n "checking whether we are cross compiling... " >&6; }
3787 if test "$cross_compiling" != yes; then
3788 { { ac_try="$ac_link"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link") 2>&5
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }
3799 if { ac_try='./conftest$ac_cv_exeext'
3800 { { case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_try") 2>&5
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; }; then
3812 if test "$cross_compiling" = maybe; then
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error $? "cannot run C compiled programs.
3818 If you meant to cross compile, use \`--host'.
3819 See \`config.log' for more details" "$LINENO" 5; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3824 $as_echo "$cross_compiling" >&6; }
3826 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3827 ac_clean_files=$ac_clean_files_save
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3829 $as_echo_n "checking for suffix of object files... " >&6; }
3830 if ${ac_cv_objext+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3844 rm -f conftest.o conftest.obj
3845 if { { ac_try="$ac_compile"
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_compile") 2>&5
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; then :
3856 for ac_file in conftest.o conftest.obj conftest.*; do
3857 test -f "$ac_file" || continue;
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3865 $as_echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error $? "cannot compute suffix of object files: cannot compile
3871 See \`config.log' for more details" "$LINENO" 5; }
3873 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3876 $as_echo "$ac_cv_objext" >&6; }
3877 OBJEXT=$ac_cv_objext
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3880 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3881 if ${ac_cv_c_compiler_gnu+:} false; then :
3882 $as_echo_n "(cached) " >&6
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3898 if ac_fn_c_try_compile "$LINENO"; then :
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3908 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3909 if test $ac_compiler_gnu = yes; then
3914 ac_test_CFLAGS=${CFLAGS+set}
3915 ac_save_CFLAGS=$CFLAGS
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3917 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3918 if ${ac_cv_prog_cc_g+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 ac_save_c_werror_flag=$ac_c_werror_flag
3922 ac_c_werror_flag=yes
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3936 if ac_fn_c_try_compile "$LINENO"; then :
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h. */
3951 if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_c_werror_flag=$ac_save_c_werror_flag
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3967 if ac_fn_c_try_compile "$LINENO"; then :
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_c_werror_flag=$ac_save_c_werror_flag
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3978 $as_echo "$ac_cv_prog_cc_g" >&6; }
3979 if test "$ac_test_CFLAGS" = set; then
3980 CFLAGS=$ac_save_CFLAGS
3981 elif test $ac_cv_prog_cc_g = yes; then
3982 if test "$GCC" = yes; then
3988 if test "$GCC" = yes; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3995 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3996 if ${ac_cv_prog_cc_c89+:} false; then :
3997 $as_echo_n "(cached) " >&6
3999 ac_cv_prog_cc_c89=no
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4007 struct buf { int x; };
4008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4009 static char *e (p, i)
4015 static char *f (char * (*g) (char **, int), char **p, ...)
4020 s = g (p, va_arg (v,int));
4025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4026 function prototypes and stuff, but not '\xHH' hex character constants.
4027 These don't provoke an error unfortunately, instead are silently treated
4028 as 'x'. The following induces an error, until -std is added to get
4029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4030 array size at least. It's necessary to write '\x00'==0 to get something
4031 that's true only with -std. */
4032 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4034 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4035 inside strings and character constants. */
4037 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4039 int test (int i, double x);
4040 struct s1 {int (*f) (int a);};
4041 struct s2 {int (*f) (double a);};
4042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4048 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4056 CC="$ac_save_CC $ac_arg"
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_cv_prog_cc_c89=$ac_arg
4060 rm -f core conftest.err conftest.$ac_objext
4061 test "x$ac_cv_prog_cc_c89" != "xno" && break
4063 rm -f conftest.$ac_ext
4068 case "x$ac_cv_prog_cc_c89" in
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4071 $as_echo "none needed" >&6; } ;;
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4074 $as_echo "unsupported" >&6; } ;;
4076 CC="$CC $ac_cv_prog_cc_c89"
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4078 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4080 if test "x$ac_cv_prog_cc_c89" != xno; then :
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089 DEPDIR="${am__leading_dot}deps"
4091 ac_config_commands="$ac_config_commands depfiles"
4094 am_make=${MAKE-make}
4095 cat > confinc << 'END'
4097 @echo this is the am__doit target
4100 # If we don't find an include directive, just comment out the code.
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4106 # First try GNU make style include.
4107 echo "include confinc" > confmf
4108 # Ignore all kinds of additional output from 'make'.
4109 case `$am_make -s -f confmf 2> /dev/null` in #(
4110 *the\ am__doit\ target*)
4116 # Now try BSD make style include.
4117 if test "$am__include" = "#"; then
4118 echo '.include "confinc"' > confmf
4119 case `$am_make -s -f confmf 2> /dev/null` in #(
4120 *the\ am__doit\ target*)
4121 am__include=.include
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4130 $as_echo "$_am_result" >&6; }
4131 rm -f confinc confmf
4133 # Check whether --enable-dependency-tracking was given.
4134 if test "${enable_dependency_tracking+set}" = set; then :
4135 enableval=$enable_dependency_tracking;
4138 if test "x$enable_dependency_tracking" != xno; then
4139 am_depcomp="$ac_aux_dir/depcomp"
4143 if test "x$enable_dependency_tracking" != xno; then
4153 depcc="$CC" am_compiler_list=
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4156 $as_echo_n "checking dependency style of $depcc... " >&6; }
4157 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4158 $as_echo_n "(cached) " >&6
4160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4161 # We make a subdir and do the tests there. Otherwise we can end up
4162 # making bogus files that we don't know about and never remove. For
4163 # instance it was reported that on HP-UX the gcc test will end up
4164 # making a dummy file named 'D' -- because '-MD' means "put the output
4168 # Copy depcomp to subdir because otherwise we won't find it if we're
4169 # using a relative directory.
4170 cp "$am_depcomp" conftest.dir
4172 # We will build objects and dependencies in a subdirectory because
4173 # it helps to detect inapplicable dependency modes. For instance
4174 # both Tru64's cc and ICC support -MD to output dependencies as a
4175 # side effect of compilation, but ICC will put the dependencies in
4176 # the current directory while Tru64 will put them in the object
4180 am_cv_CC_dependencies_compiler_type=none
4181 if test "$am_compiler_list" = ""; then
4182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4185 case " $depcc " in #(
4186 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4189 for depmode in $am_compiler_list; do
4190 # Setup a source with many dependencies, because some compilers
4191 # like to wrap large dependency lists on column 80 (with \), and
4192 # we should not choose a depcomp mode which is confused by this.
4194 # We need to recreate these files for each test, as the compiler may
4195 # overwrite some of them when testing with obscure command lines.
4196 # This happens at least with the AIX C compiler.
4198 for i in 1 2 3 4 5 6; do
4199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4200 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4201 # Solaris 10 /bin/sh.
4202 echo '/* dummy */' > sub/conftst$i.h
4204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4206 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4207 # mode. It turns out that the SunPro C++ compiler does not properly
4208 # handle '-M -o', and we need to detect this. Also, some Intel
4209 # versions had trouble with output in subdirs.
4210 am__obj=sub/conftest.${OBJEXT-o}
4211 am__minus_obj="-o $am__obj"
4214 # This depmode causes a compiler race in universal mode.
4215 test "$am__universal" = false || continue
4218 # After this tag, mechanisms are not by side-effect, so they'll
4219 # only be used when explicitly requested.
4220 if test "x$enable_dependency_tracking" = xyes; then
4226 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4227 # This compiler won't grok '-c -o', but also, the minuso test has
4228 # not run yet. These depmodes are late enough in the game, and
4229 # so weak that their functioning should not be impacted.
4230 am__obj=conftest.${OBJEXT-o}
4235 if depmode=$depmode \
4236 source=sub/conftest.c object=$am__obj \
4237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4238 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4239 >/dev/null 2>conftest.err &&
4240 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4242 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4244 # icc doesn't choke on unknown options, it will just issue warnings
4245 # or remarks (even with -Werror). So we grep stderr for any message
4246 # that says an option was ignored or not supported.
4247 # When given -MP, icc 7.0 and 7.1 complain thusly:
4248 # icc: Command line warning: ignoring option '-M'; no argument required
4249 # The diagnosis changed in icc 8.0:
4250 # icc: Command line remark: option '-MP' not supported
4251 if (grep 'ignoring option' conftest.err ||
4252 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4253 am_cv_CC_dependencies_compiler_type=$depmode
4262 am_cv_CC_dependencies_compiler_type=none
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4267 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4268 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4271 test "x$enable_dependency_tracking" != xno \
4272 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4274 am__fastdepCC_FALSE='#'
4276 am__fastdepCC_TRUE='#'
4277 am__fastdepCC_FALSE=
4287 # By default we simply use the C compiler to build assembly code.
4289 test "${CCAS+set}" = set || CCAS=$CC
4290 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4294 depcc="$CCAS" am_compiler_list=
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4297 $as_echo_n "checking dependency style of $depcc... " >&6; }
4298 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4299 $as_echo_n "(cached) " >&6
4301 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4302 # We make a subdir and do the tests there. Otherwise we can end up
4303 # making bogus files that we don't know about and never remove. For
4304 # instance it was reported that on HP-UX the gcc test will end up
4305 # making a dummy file named 'D' -- because '-MD' means "put the output
4309 # Copy depcomp to subdir because otherwise we won't find it if we're
4310 # using a relative directory.
4311 cp "$am_depcomp" conftest.dir
4313 # We will build objects and dependencies in a subdirectory because
4314 # it helps to detect inapplicable dependency modes. For instance
4315 # both Tru64's cc and ICC support -MD to output dependencies as a
4316 # side effect of compilation, but ICC will put the dependencies in
4317 # the current directory while Tru64 will put them in the object
4321 am_cv_CCAS_dependencies_compiler_type=none
4322 if test "$am_compiler_list" = ""; then
4323 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4328 for depmode in $am_compiler_list; do
4329 # Setup a source with many dependencies, because some compilers
4330 # like to wrap large dependency lists on column 80 (with \), and
4331 # we should not choose a depcomp mode which is confused by this.
4333 # We need to recreate these files for each test, as the compiler may
4334 # overwrite some of them when testing with obscure command lines.
4335 # This happens at least with the AIX C compiler.
4337 for i in 1 2 3 4 5 6; do
4338 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4339 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4340 # Solaris 10 /bin/sh.
4341 echo '/* dummy */' > sub/conftst$i.h
4343 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4345 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4346 # mode. It turns out that the SunPro C++ compiler does not properly
4347 # handle '-M -o', and we need to detect this. Also, some Intel
4348 # versions had trouble with output in subdirs.
4349 am__obj=sub/conftest.${OBJEXT-o}
4350 am__minus_obj="-o $am__obj"
4353 # This depmode causes a compiler race in universal mode.
4354 test "$am__universal" = false || continue
4357 # After this tag, mechanisms are not by side-effect, so they'll
4358 # only be used when explicitly requested.
4359 if test "x$enable_dependency_tracking" = xyes; then
4365 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4366 # This compiler won't grok '-c -o', but also, the minuso test has
4367 # not run yet. These depmodes are late enough in the game, and
4368 # so weak that their functioning should not be impacted.
4369 am__obj=conftest.${OBJEXT-o}
4374 if depmode=$depmode \
4375 source=sub/conftest.c object=$am__obj \
4376 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4377 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4378 >/dev/null 2>conftest.err &&
4379 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4380 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4381 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4382 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4383 # icc doesn't choke on unknown options, it will just issue warnings
4384 # or remarks (even with -Werror). So we grep stderr for any message
4385 # that says an option was ignored or not supported.
4386 # When given -MP, icc 7.0 and 7.1 complain thusly:
4387 # icc: Command line warning: ignoring option '-M'; no argument required
4388 # The diagnosis changed in icc 8.0:
4389 # icc: Command line remark: option '-MP' not supported
4390 if (grep 'ignoring option' conftest.err ||
4391 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4392 am_cv_CCAS_dependencies_compiler_type=$depmode
4401 am_cv_CCAS_dependencies_compiler_type=none
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4406 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4407 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4410 test "x$enable_dependency_tracking" != xno \
4411 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4412 am__fastdepCCAS_TRUE=
4413 am__fastdepCCAS_FALSE='#'
4415 am__fastdepCCAS_TRUE='#'
4416 am__fastdepCCAS_FALSE=
4420 if test "x$CC" != xcc; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4422 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4425 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4427 set dummy $CC; ac_cc=`$as_echo "$2" |
4428 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4429 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4430 $as_echo_n "(cached) " >&6
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4443 # Make sure it works both with $CC and with simple cc.
4444 # We do the test twice because some compilers refuse to overwrite an
4445 # existing .o file with -o, though they will create one.
4446 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4448 if { { case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_try") 2>&5
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; } &&
4458 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 $as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_try") 2>&5
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; };
4469 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4470 if test "x$CC" != xcc; then
4471 # Test first that cc exists at all.
4472 if { ac_try='cc -c conftest.$ac_ext >&5'
4473 { { case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479 (eval "$ac_try") 2>&5
4481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }; }; then
4483 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4485 if { { case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_try") 2>&5
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; } &&
4495 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; };
4509 # cc exists but doesn't like -o.
4510 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4515 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4517 rm -f core conftest*
4520 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522 $as_echo "yes" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4527 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4531 # FIXME: we rely on the cache variable name because
4532 # there is no other way.
4534 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4535 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4536 if test "$am_t" != yes; then
4537 # Losing compiler, so override with the script.
4538 # FIXME: It is wrong to rewrite CC.
4539 # But if we don't then we get into trouble of one sort or another.
4540 # A longer-term fix would be to have automake use am__CC in this case,
4541 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4542 CC="$am_aux_dir/compile $CC"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4549 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4554 macro_version='2.4.2'
4555 macro_revision='1.3337'
4569 ltmain="$ac_aux_dir/ltmain.sh"
4571 # Backslashify metacharacters that are still active within
4572 # double-quoted strings.
4573 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4575 # Same as above, but do not quote variable references.
4576 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4578 # Sed substitution to delay expansion of an escaped shell variable in a
4579 # double_quote_subst'ed string.
4580 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4582 # Sed substitution to delay expansion of an escaped single quote.
4583 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4585 # Sed substitution to avoid accidental globbing in evaled expressions
4586 no_glob_subst='s/\*/\\\*/g'
4588 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4589 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4590 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4593 $as_echo_n "checking how to print strings... " >&6; }
4594 # Test print first, because it will be a builtin if present.
4595 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4596 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4598 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4601 # Use this function as a fallback that always works.
4602 func_fallback_echo ()
4604 eval 'cat <<_LTECHO_EOF
4608 ECHO='func_fallback_echo'
4611 # func_echo_all arg...
4612 # Invoke $ECHO with all args, space-separated.
4619 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4620 $as_echo "printf" >&6; } ;;
4621 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4622 $as_echo "print -r" >&6; } ;;
4623 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4624 $as_echo "cat" >&6; } ;;
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4641 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4642 if ${ac_cv_path_SED+:} false; then :
4643 $as_echo_n "(cached) " >&6
4645 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4646 for ac_i in 1 2 3 4 5 6 7; do
4647 ac_script="$ac_script$as_nl$ac_script"
4649 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4650 { ac_script=; unset ac_script;}
4651 if test -z "$SED"; then
4652 ac_path_SED_found=false
4653 # Loop through the user's path and test for each of PROGNAME-LIST
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_prog in sed gsed; do
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4662 as_fn_executable_p "$ac_path_SED" || continue
4663 # Check for GNU ac_path_SED and select it if it is found.
4664 # Check for GNU $ac_path_SED
4665 case `"$ac_path_SED" --version 2>&1` in
4667 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4670 $as_echo_n 0123456789 >"conftest.in"
4673 cat "conftest.in" "conftest.in" >"conftest.tmp"
4674 mv "conftest.tmp" "conftest.in"
4675 cp "conftest.in" "conftest.nl"
4676 $as_echo '' >> "conftest.nl"
4677 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679 as_fn_arith $ac_count + 1 && ac_count=$as_val
4680 if test $ac_count -gt ${ac_path_SED_max-0}; then
4681 # Best one so far, save it but keep looking for a better one
4682 ac_cv_path_SED="$ac_path_SED"
4683 ac_path_SED_max=$ac_count
4685 # 10*(2^10) chars as input seems more than enough
4686 test $ac_count -gt 10 && break
4688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691 $ac_path_SED_found && break 3
4696 if test -z "$ac_cv_path_SED"; then
4697 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4705 $as_echo "$ac_cv_path_SED" >&6; }
4706 SED="$ac_cv_path_SED"
4709 test -z "$SED" && SED=sed
4710 Xsed="$SED -e 1s/^X//"
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4724 if ${ac_cv_path_GREP+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 if test -z "$GREP"; then
4728 ac_path_GREP_found=false
4729 # Loop through the user's path and test for each of PROGNAME-LIST
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4734 test -z "$as_dir" && as_dir=.
4735 for ac_prog in grep ggrep; do
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4738 as_fn_executable_p "$ac_path_GREP" || continue
4739 # Check for GNU ac_path_GREP and select it if it is found.
4740 # Check for GNU $ac_path_GREP
4741 case `"$ac_path_GREP" --version 2>&1` in
4743 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4746 $as_echo_n 0123456789 >"conftest.in"
4749 cat "conftest.in" "conftest.in" >"conftest.tmp"
4750 mv "conftest.tmp" "conftest.in"
4751 cp "conftest.in" "conftest.nl"
4752 $as_echo 'GREP' >> "conftest.nl"
4753 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755 as_fn_arith $ac_count + 1 && ac_count=$as_val
4756 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4757 # Best one so far, save it but keep looking for a better one
4758 ac_cv_path_GREP="$ac_path_GREP"
4759 ac_path_GREP_max=$ac_count
4761 # 10*(2^10) chars as input seems more than enough
4762 test $ac_count -gt 10 && break
4764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767 $ac_path_GREP_found && break 3
4772 if test -z "$ac_cv_path_GREP"; then
4773 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4776 ac_cv_path_GREP=$GREP
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4781 $as_echo "$ac_cv_path_GREP" >&6; }
4782 GREP="$ac_cv_path_GREP"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4786 $as_echo_n "checking for egrep... " >&6; }
4787 if ${ac_cv_path_EGREP+:} false; then :
4788 $as_echo_n "(cached) " >&6
4790 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4791 then ac_cv_path_EGREP="$GREP -E"
4793 if test -z "$EGREP"; then
4794 ac_path_EGREP_found=false
4795 # Loop through the user's path and test for each of PROGNAME-LIST
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4800 test -z "$as_dir" && as_dir=.
4801 for ac_prog in egrep; do
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4804 as_fn_executable_p "$ac_path_EGREP" || continue
4805 # Check for GNU ac_path_EGREP and select it if it is found.
4806 # Check for GNU $ac_path_EGREP
4807 case `"$ac_path_EGREP" --version 2>&1` in
4809 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4812 $as_echo_n 0123456789 >"conftest.in"
4815 cat "conftest.in" "conftest.in" >"conftest.tmp"
4816 mv "conftest.tmp" "conftest.in"
4817 cp "conftest.in" "conftest.nl"
4818 $as_echo 'EGREP' >> "conftest.nl"
4819 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821 as_fn_arith $ac_count + 1 && ac_count=$as_val
4822 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4823 # Best one so far, save it but keep looking for a better one
4824 ac_cv_path_EGREP="$ac_path_EGREP"
4825 ac_path_EGREP_max=$ac_count
4827 # 10*(2^10) chars as input seems more than enough
4828 test $ac_count -gt 10 && break
4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833 $ac_path_EGREP_found && break 3
4838 if test -z "$ac_cv_path_EGREP"; then
4839 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4842 ac_cv_path_EGREP=$EGREP
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4848 $as_echo "$ac_cv_path_EGREP" >&6; }
4849 EGREP="$ac_cv_path_EGREP"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4853 $as_echo_n "checking for fgrep... " >&6; }
4854 if ${ac_cv_path_FGREP+:} false; then :
4855 $as_echo_n "(cached) " >&6
4857 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4858 then ac_cv_path_FGREP="$GREP -F"
4860 if test -z "$FGREP"; then
4861 ac_path_FGREP_found=false
4862 # Loop through the user's path and test for each of PROGNAME-LIST
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4867 test -z "$as_dir" && as_dir=.
4868 for ac_prog in fgrep; do
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4871 as_fn_executable_p "$ac_path_FGREP" || continue
4872 # Check for GNU ac_path_FGREP and select it if it is found.
4873 # Check for GNU $ac_path_FGREP
4874 case `"$ac_path_FGREP" --version 2>&1` in
4876 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4879 $as_echo_n 0123456789 >"conftest.in"
4882 cat "conftest.in" "conftest.in" >"conftest.tmp"
4883 mv "conftest.tmp" "conftest.in"
4884 cp "conftest.in" "conftest.nl"
4885 $as_echo 'FGREP' >> "conftest.nl"
4886 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4888 as_fn_arith $ac_count + 1 && ac_count=$as_val
4889 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4890 # Best one so far, save it but keep looking for a better one
4891 ac_cv_path_FGREP="$ac_path_FGREP"
4892 ac_path_FGREP_max=$ac_count
4894 # 10*(2^10) chars as input seems more than enough
4895 test $ac_count -gt 10 && break
4897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4900 $ac_path_FGREP_found && break 3
4905 if test -z "$ac_cv_path_FGREP"; then
4906 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4909 ac_cv_path_FGREP=$FGREP
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4915 $as_echo "$ac_cv_path_FGREP" >&6; }
4916 FGREP="$ac_cv_path_FGREP"
4919 test -z "$GREP" && GREP=grep
4939 # Check whether --with-gnu-ld was given.
4940 if test "${with_gnu_ld+set}" = set; then :
4941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4947 if test "$GCC" = yes; then
4948 # Check if gcc -print-prog-name=ld gives a path.
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4950 $as_echo_n "checking for ld used by $CC... " >&6; }
4953 # gcc leaves a trailing carriage return which upsets mingw
4954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4959 # Accept absolute paths.
4961 re_direlt='/[^/][^/]*/\.\./'
4962 # Canonicalize the pathname of ld
4963 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4964 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4965 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4967 test -z "$LD" && LD="$ac_prog"
4970 # If it fails, then pretend we aren't using GCC.
4974 # If it is relative, then search for the first ld in PATH.
4978 elif test "$with_gnu_ld" = yes; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4980 $as_echo_n "checking for GNU ld... " >&6; }
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4983 $as_echo_n "checking for non-GNU ld... " >&6; }
4985 if ${lt_cv_path_LD+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 if test -z "$LD"; then
4989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4990 for ac_dir in $PATH; do
4992 test -z "$ac_dir" && ac_dir=.
4993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4994 lt_cv_path_LD="$ac_dir/$ac_prog"
4995 # Check to see if the program is GNU ld. I'd rather use --version,
4996 # but apparently some variants of GNU ld only accept -v.
4997 # Break only if it was the GNU/non-GNU ld that we prefer.
4998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4999 *GNU* | *'with BFD'*)
5000 test "$with_gnu_ld" != no && break
5003 test "$with_gnu_ld" != yes && break
5010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5015 if test -n "$LD"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5017 $as_echo "$LD" >&6; }
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5022 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5024 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5025 if ${lt_cv_prog_gnu_ld+:} false; then :
5026 $as_echo_n "(cached) " >&6
5028 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5029 case `$LD -v 2>&1 </dev/null` in
5030 *GNU* | *'with BFD'*)
5031 lt_cv_prog_gnu_ld=yes
5034 lt_cv_prog_gnu_ld=no
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5039 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5040 with_gnu_ld=$lt_cv_prog_gnu_ld
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5051 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5052 if ${lt_cv_path_NM+:} false; then :
5053 $as_echo_n "(cached) " >&6
5055 if test -n "$NM"; then
5056 # Let the user override the test.
5059 lt_nm_to_check="${ac_tool_prefix}nm"
5060 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5061 lt_nm_to_check="$lt_nm_to_check nm"
5063 for lt_tmp_nm in $lt_nm_to_check; do
5064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5065 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5067 test -z "$ac_dir" && ac_dir=.
5068 tmp_nm="$ac_dir/$lt_tmp_nm"
5069 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5070 # Check to see if the nm accepts a BSD-compat flag.
5071 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5072 # nm: unknown option "B" ignored
5073 # Tru64's nm complains that /dev/null is an invalid object file
5074 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5075 */dev/null* | *'Invalid file or object type'*)
5076 lt_cv_path_NM="$tmp_nm -B"
5080 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5082 lt_cv_path_NM="$tmp_nm -p"
5086 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5087 continue # so that we can try to find one that supports BSD flags
5096 : ${lt_cv_path_NM=no}
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5100 $as_echo "$lt_cv_path_NM" >&6; }
5101 if test "$lt_cv_path_NM" != "no"; then
5104 # Didn't find any BSD compatible name lister, look for dumpbin.
5105 if test -n "$DUMPBIN"; then :
5106 # Let the user override the test.
5108 if test -n "$ac_tool_prefix"; then
5109 for ac_prog in dumpbin "link -dump"
5111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_DUMPBIN+:} false; then :
5116 $as_echo_n "(cached) " >&6
5118 if test -n "$DUMPBIN"; then
5119 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 DUMPBIN=$ac_cv_prog_DUMPBIN
5139 if test -n "$DUMPBIN"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5141 $as_echo "$DUMPBIN" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 test -n "$DUMPBIN" && break
5151 if test -z "$DUMPBIN"; then
5152 ac_ct_DUMPBIN=$DUMPBIN
5153 for ac_prog in dumpbin "link -dump"
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5160 $as_echo_n "(cached) " >&6
5162 if test -n "$ac_ct_DUMPBIN"; then
5163 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5183 if test -n "$ac_ct_DUMPBIN"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5185 $as_echo "$ac_ct_DUMPBIN" >&6; }
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5192 test -n "$ac_ct_DUMPBIN" && break
5195 if test "x$ac_ct_DUMPBIN" = x; then
5198 case $cross_compiling:$ac_tool_warned in
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5204 DUMPBIN=$ac_ct_DUMPBIN
5208 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5210 DUMPBIN="$DUMPBIN -symbols"
5218 if test "$DUMPBIN" != ":"; then
5222 test -z "$NM" && NM=nm
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5230 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5231 if ${lt_cv_nm_interface+:} false; then :
5232 $as_echo_n "(cached) " >&6
5234 lt_cv_nm_interface="BSD nm"
5235 echo "int some_variable = 0;" > conftest.$ac_ext
5236 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5237 (eval "$ac_compile" 2>conftest.err)
5238 cat conftest.err >&5
5239 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5240 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5241 cat conftest.err >&5
5242 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5243 cat conftest.out >&5
5244 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5245 lt_cv_nm_interface="MS dumpbin"
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5250 $as_echo "$lt_cv_nm_interface" >&6; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5253 $as_echo_n "checking whether ln -s works... " >&6; }
5255 if test "$LN_S" = "ln -s"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5257 $as_echo "yes" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5260 $as_echo "no, using $LN_S" >&6; }
5263 # find the maximum length of command line arguments
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5265 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5266 if ${lt_cv_sys_max_cmd_len+:} false; then :
5267 $as_echo_n "(cached) " >&6
5274 # On DJGPP, this test can blow up pretty badly due to problems in libc
5275 # (any single argument exceeding 2000 bytes causes a buffer overrun
5276 # during glob expansion). Even if it were fixed, the result of this
5277 # check would be larger than it should be.
5278 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5282 # Under GNU Hurd, this test is not required because there is
5283 # no limit to the length of command line arguments.
5284 # Libtool will interpret -1 as no limit whatsoever
5285 lt_cv_sys_max_cmd_len=-1;
5288 cygwin* | mingw* | cegcc*)
5289 # On Win9x/ME, this test blows up -- it succeeds, but takes
5290 # about 5 minutes as the teststring grows exponentially.
5291 # Worse, since 9x/ME are not pre-emptively multitasking,
5292 # you end up with a "frozen" computer, even though with patience
5293 # the test eventually succeeds (with a max line length of 256k).
5294 # Instead, let's just punt: use the minimum linelength reported by
5295 # all of the supported platforms: 8192 (on NT/2K/XP).
5296 lt_cv_sys_max_cmd_len=8192;
5300 # On MiNT this can take a long time and run out of memory.
5301 lt_cv_sys_max_cmd_len=8192;
5305 # On AmigaOS with pdksh, this test takes hours, literally.
5306 # So we just punt and use a minimum line length of 8192.
5307 lt_cv_sys_max_cmd_len=8192;
5310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5311 # This has been around since 386BSD, at least. Likely further.
5312 if test -x /sbin/sysctl; then
5313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5314 elif test -x /usr/sbin/sysctl; then
5315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5319 # And add a safety zone
5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5326 lt_cv_sys_max_cmd_len=196608
5330 # The test takes a long time on OS/2.
5331 lt_cv_sys_max_cmd_len=8192
5335 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5336 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5337 # nice to cause kernel panics so lets avoid the loop below.
5338 # First set a reasonable default.
5339 lt_cv_sys_max_cmd_len=16384
5341 if test -x /sbin/sysconfig; then
5342 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5343 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5348 lt_cv_sys_max_cmd_len=102400
5350 sysv5* | sco5v6* | sysv4.2uw2*)
5351 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5352 if test -n "$kargmax"; then
5353 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5355 lt_cv_sys_max_cmd_len=32768
5359 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5360 if test -n "$lt_cv_sys_max_cmd_len"; then
5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5364 # Make teststring a little bigger before we do anything with it.
5365 # a 1K string should be a reasonable start.
5366 for i in 1 2 3 4 5 6 7 8 ; do
5367 teststring=$teststring$teststring
5369 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5370 # If test is not a shell built-in, we'll probably end up computing a
5371 # maximum length that is only half of the actual maximum length, but
5373 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5374 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5375 test $i != 17 # 1/2 MB should be enough
5378 teststring=$teststring$teststring
5380 # Only check the string length outside the loop.
5381 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5383 # Add a significant safety factor because C++ compilers can tack on
5384 # massive amounts of additional arguments before passing them to the
5385 # linker. It appears as though 1/2 is a usable value.
5386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5393 if test -n $lt_cv_sys_max_cmd_len ; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5395 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5398 $as_echo "none" >&6; }
5400 max_cmd_len=$lt_cv_sys_max_cmd_len
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5412 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5413 # Try some XSI features
5416 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5418 && eval 'test $(( 1 + 1 )) -eq 2 \
5419 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5422 $as_echo "$xsi_shell" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5426 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5428 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5430 && lt_shell_append=yes
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5432 $as_echo "$lt_shell_append" >&6; }
5435 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5445 # test EBCDIC or ASCII
5446 case `echo X|tr X '\101'` in
5447 A) # ASCII based system
5448 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5449 lt_SP2NL='tr \040 \012'
5450 lt_NL2SP='tr \015\012 \040\040'
5452 *) # EBCDIC based system
5453 lt_SP2NL='tr \100 \n'
5454 lt_NL2SP='tr \r\n \100\100'
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5467 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5468 if ${lt_cv_to_host_file_cmd+:} false; then :
5469 $as_echo_n "(cached) " >&6
5474 *-*-mingw* ) # actually msys
5475 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5478 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5480 * ) # otherwise, assume *nix
5481 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5487 *-*-mingw* ) # actually msys
5488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5491 lt_cv_to_host_file_cmd=func_convert_file_noop
5493 * ) # otherwise, assume *nix
5494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5498 * ) # unhandled hosts (and "normal" native builds)
5499 lt_cv_to_host_file_cmd=func_convert_file_noop
5505 to_host_file_cmd=$lt_cv_to_host_file_cmd
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5507 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5514 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5515 if ${lt_cv_to_tool_file_cmd+:} false; then :
5516 $as_echo_n "(cached) " >&6
5518 #assume ordinary cross tools, or native build.
5519 lt_cv_to_tool_file_cmd=func_convert_file_noop
5523 *-*-mingw* ) # actually msys
5524 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5532 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5534 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5541 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5542 if ${lt_cv_ld_reload_flag+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 lt_cv_ld_reload_flag='-r'
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5548 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5549 reload_flag=$lt_cv_ld_reload_flag
5550 case $reload_flag in
5552 *) reload_flag=" $reload_flag" ;;
5554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5556 cygwin* | mingw* | pw32* | cegcc*)
5557 if test "$GCC" != yes; then
5562 if test "$GCC" = yes; then
5563 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5578 if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5580 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_OBJDUMP+:} false; then :
5584 $as_echo_n "(cached) " >&6
5586 if test -n "$OBJDUMP"; then
5587 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 OBJDUMP=$ac_cv_prog_OBJDUMP
5607 if test -n "$OBJDUMP"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5609 $as_echo "$OBJDUMP" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5617 if test -z "$ac_cv_prog_OBJDUMP"; then
5618 ac_ct_OBJDUMP=$OBJDUMP
5619 # Extract the first word of "objdump", so it can be a program name with args.
5620 set dummy objdump; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5624 $as_echo_n "(cached) " >&6
5626 if test -n "$ac_ct_OBJDUMP"; then
5627 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5647 if test -n "$ac_ct_OBJDUMP"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5649 $as_echo "$ac_ct_OBJDUMP" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5655 if test "x$ac_ct_OBJDUMP" = x; then
5658 case $cross_compiling:$ac_tool_warned in
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5664 OBJDUMP=$ac_ct_OBJDUMP
5667 OBJDUMP="$ac_cv_prog_OBJDUMP"
5670 test -z "$OBJDUMP" && OBJDUMP=objdump
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5681 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5682 if ${lt_cv_deplibs_check_method+:} false; then :
5683 $as_echo_n "(cached) " >&6
5685 lt_cv_file_magic_cmd='$MAGIC_CMD'
5686 lt_cv_file_magic_test_file=
5687 lt_cv_deplibs_check_method='unknown'
5688 # Need to set the preceding variable on all platforms that support
5689 # interlibrary dependencies.
5690 # 'none' -- dependencies not supported.
5691 # `unknown' -- same as none, but documents that we really don't know.
5692 # 'pass_all' -- all dependencies passed with no checks.
5693 # 'test_compile' -- check by making test program.
5694 # 'file_magic [[regex]]' -- check by looking for files in library path
5695 # which responds to the $file_magic_cmd with a given extended regex.
5696 # If you have `file' or equivalent on your system and you're not sure
5697 # whether `pass_all' will *always* work, you probably want this one.
5701 lt_cv_deplibs_check_method=pass_all
5705 lt_cv_deplibs_check_method=pass_all
5709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5710 lt_cv_file_magic_cmd='/usr/bin/file -L'
5711 lt_cv_file_magic_test_file=/shlib/libc.so
5715 # func_win32_libid is a shell function defined in ltmain.sh
5716 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5717 lt_cv_file_magic_cmd='func_win32_libid'
5721 # Base MSYS/MinGW do not provide the 'file' command needed by
5722 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5723 # unless we find 'file', for example because we are cross-compiling.
5724 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5725 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727 lt_cv_file_magic_cmd='func_win32_libid'
5729 # Keep this pattern in sync with the one in func_win32_libid.
5730 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5731 lt_cv_file_magic_cmd='$OBJDUMP -f'
5736 # use the weaker test based on 'objdump'. See mingw*.
5737 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5738 lt_cv_file_magic_cmd='$OBJDUMP -f'
5741 darwin* | rhapsody*)
5742 lt_cv_deplibs_check_method=pass_all
5745 freebsd* | dragonfly*)
5746 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5749 # Not sure whether the presence of OpenBSD here was a mistake.
5750 # Let's accept both of them until this is cleared up.
5751 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5752 lt_cv_file_magic_cmd=/usr/bin/file
5753 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5757 lt_cv_deplibs_check_method=pass_all
5762 lt_cv_deplibs_check_method=pass_all
5766 lt_cv_deplibs_check_method=pass_all
5769 hpux10.20* | hpux11*)
5770 lt_cv_file_magic_cmd=/usr/bin/file
5773 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5774 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5777 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]'
5778 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5782 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5788 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5792 irix5* | irix6* | nonstopux*)
5794 *-32|*"-32 ") libmagic=32-bit;;
5795 *-n32|*"-n32 ") libmagic=N32;;
5796 *-64|*"-64 ") libmagic=64-bit;;
5797 *) libmagic=never-match;;
5799 lt_cv_deplibs_check_method=pass_all
5802 # This must be glibc/ELF.
5803 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5804 lt_cv_deplibs_check_method=pass_all
5808 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5817 lt_cv_file_magic_cmd=/usr/bin/file
5818 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5822 lt_cv_deplibs_check_method=pass_all
5826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5833 osf3* | osf4* | osf5*)
5834 lt_cv_deplibs_check_method=pass_all
5838 lt_cv_deplibs_check_method=pass_all
5842 lt_cv_deplibs_check_method=pass_all
5845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5846 lt_cv_deplibs_check_method=pass_all
5850 case $host_vendor in
5852 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]'
5853 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5856 lt_cv_deplibs_check_method=pass_all
5859 lt_cv_file_magic_cmd='/bin/file'
5860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5863 lt_cv_file_magic_cmd='/bin/file'
5864 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5865 lt_cv_file_magic_test_file=/lib/libc.so
5868 lt_cv_deplibs_check_method=pass_all
5871 lt_cv_deplibs_check_method=pass_all
5877 lt_cv_deplibs_check_method=pass_all
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5883 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5887 if test "$build" = "$host"; then
5890 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5893 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5899 file_magic_cmd=$lt_cv_file_magic_cmd
5900 deplibs_check_method=$lt_cv_deplibs_check_method
5901 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5924 if test -n "$ac_tool_prefix"; then
5925 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_DLLTOOL+:} false; then :
5930 $as_echo_n "(cached) " >&6
5932 if test -n "$DLLTOOL"; then
5933 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 DLLTOOL=$ac_cv_prog_DLLTOOL
5953 if test -n "$DLLTOOL"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5955 $as_echo "$DLLTOOL" >&6; }
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5963 if test -z "$ac_cv_prog_DLLTOOL"; then
5964 ac_ct_DLLTOOL=$DLLTOOL
5965 # Extract the first word of "dlltool", so it can be a program name with args.
5966 set dummy dlltool; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5970 $as_echo_n "(cached) " >&6
5972 if test -n "$ac_ct_DLLTOOL"; then
5973 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5993 if test -n "$ac_ct_DLLTOOL"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5995 $as_echo "$ac_ct_DLLTOOL" >&6; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
6001 if test "x$ac_ct_DLLTOOL" = x; then
6004 case $cross_compiling:$ac_tool_warned in
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008 ac_tool_warned=yes ;;
6010 DLLTOOL=$ac_ct_DLLTOOL
6013 DLLTOOL="$ac_cv_prog_DLLTOOL"
6016 test -z "$DLLTOOL" && DLLTOOL=dlltool
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6028 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6029 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6030 $as_echo_n "(cached) " >&6
6032 lt_cv_sharedlib_from_linklib_cmd='unknown'
6035 cygwin* | mingw* | pw32* | cegcc*)
6036 # two different shell functions defined in ltmain.sh
6037 # decide which to use based on capabilities of $DLLTOOL
6038 case `$DLLTOOL --help 2>&1` in
6039 *--identify-strict*)
6040 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6043 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6048 # fallback: assume linklib IS sharedlib
6049 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6055 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6056 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6057 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6066 if test -n "$ac_tool_prefix"; then
6069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_AR+:} false; then :
6074 $as_echo_n "(cached) " >&6
6076 if test -n "$AR"; then
6077 ac_cv_prog_AR="$AR" # Let the user override the test.
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 if test -n "$AR"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6099 $as_echo "$AR" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6106 test -n "$AR" && break
6109 if test -z "$AR"; then
6113 # Extract the first word of "$ac_prog", so it can be a program name with args.
6114 set dummy $ac_prog; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6118 $as_echo_n "(cached) " >&6
6120 if test -n "$ac_ct_AR"; then
6121 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_ac_ct_AR="$ac_prog"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6141 if test -n "$ac_ct_AR"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6143 $as_echo "$ac_ct_AR" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6150 test -n "$ac_ct_AR" && break
6153 if test "x$ac_ct_AR" = x; then
6156 case $cross_compiling:$ac_tool_warned in
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned=yes ;;
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6180 $as_echo_n "checking for archiver @FILE support... " >&6; }
6181 if ${lt_cv_ar_at_file+:} false; then :
6182 $as_echo_n "(cached) " >&6
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197 echo conftest.$ac_objext > conftest.lst
6198 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6200 (eval $lt_ar_try) 2>&5
6202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6203 test $ac_status = 0; }
6204 if test "$ac_status" -eq 0; then
6205 # Ensure the archiver fails upon bogus file names.
6206 rm -f conftest.$ac_objext libconftest.a
6207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6208 (eval $lt_ar_try) 2>&5
6210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211 test $ac_status = 0; }
6212 if test "$ac_status" -ne 0; then
6216 rm -f conftest.* libconftest.a
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6223 $as_echo "$lt_cv_ar_at_file" >&6; }
6225 if test "x$lt_cv_ar_at_file" = xno; then
6228 archiver_list_spec=$lt_cv_ar_at_file
6237 if test -n "$ac_tool_prefix"; then
6238 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6239 set dummy ${ac_tool_prefix}strip; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_STRIP+:} false; then :
6243 $as_echo_n "(cached) " >&6
6245 if test -n "$STRIP"; then
6246 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 STRIP=$ac_cv_prog_STRIP
6266 if test -n "$STRIP"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6268 $as_echo "$STRIP" >&6; }
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6276 if test -z "$ac_cv_prog_STRIP"; then
6278 # Extract the first word of "strip", so it can be a program name with args.
6279 set dummy strip; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 if test -n "$ac_ct_STRIP"; then
6286 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_ac_ct_STRIP="strip"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6306 if test -n "$ac_ct_STRIP"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6308 $as_echo "$ac_ct_STRIP" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6314 if test "x$ac_ct_STRIP" = x; then
6317 case $cross_compiling:$ac_tool_warned in
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321 ac_tool_warned=yes ;;
6326 STRIP="$ac_cv_prog_STRIP"
6329 test -z "$STRIP" && STRIP=:
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_RANLIB+:} false; then :
6342 $as_echo_n "(cached) " >&6
6344 if test -n "$RANLIB"; then
6345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 RANLIB=$ac_cv_prog_RANLIB
6365 if test -n "$RANLIB"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6367 $as_echo "$RANLIB" >&6; }
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6375 if test -z "$ac_cv_prog_RANLIB"; then
6376 ac_ct_RANLIB=$RANLIB
6377 # Extract the first word of "ranlib", so it can be a program name with args.
6378 set dummy ranlib; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6382 $as_echo_n "(cached) " >&6
6384 if test -n "$ac_ct_RANLIB"; then
6385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_ac_ct_RANLIB="ranlib"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6405 if test -n "$ac_ct_RANLIB"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6407 $as_echo "$ac_ct_RANLIB" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6413 if test "x$ac_ct_RANLIB" = x; then
6416 case $cross_compiling:$ac_tool_warned in
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420 ac_tool_warned=yes ;;
6422 RANLIB=$ac_ct_RANLIB
6425 RANLIB="$ac_cv_prog_RANLIB"
6428 test -z "$RANLIB" && RANLIB=:
6435 # Determine commands to create old-style static archives.
6436 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6437 old_postinstall_cmds='chmod 644 $oldlib'
6438 old_postuninstall_cmds=
6440 if test -n "$RANLIB"; then
6443 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6446 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6449 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6454 lock_old_archive_extraction=yes ;;
6456 lock_old_archive_extraction=no ;;
6497 # If no C compiler was specified, use CC.
6500 # If no C compiler flags were specified, use CFLAGS.
6501 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6503 # Allow CC to be a program name with arguments.
6507 # Check for command to grab the raw symbol name followed by C symbol from nm.
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6509 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6510 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6511 $as_echo_n "(cached) " >&6
6514 # These are sane defaults that work on at least a few old systems.
6515 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6517 # Character class describing NM global symbol codes.
6518 symcode='[BCDEGRST]'
6520 # Regexp to match symbols that can be accessed directly from C.
6521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6523 # Define system-specific variables.
6528 cygwin* | mingw* | pw32* | cegcc*)
6529 symcode='[ABCDGISTW]'
6532 if test "$host_cpu" = ia64; then
6533 symcode='[ABCDEGRST]'
6537 symcode='[BCDEGRST]'
6540 symcode='[BCDEGQRST]'
6551 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6559 # If we're using GNU nm, then use its standard symbol codes.
6560 case `$NM -V 2>&1` in
6561 *GNU* | *'with BFD'*)
6562 symcode='[ABCDGIRSTW]' ;;
6565 # Transform an extracted symbol line into a proper C declaration.
6566 # Some systems (esp. on ia64) link data and code symbols differently,
6567 # so use this general approach.
6568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6570 # Transform an extracted symbol line into symbol name and symbol address
6571 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6572 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'"
6574 # Handle CRLF in mingw tool chain
6578 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6582 # Try without a prefix underscore, then with it.
6583 for ac_symprfx in "" "_"; do
6585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6586 symxfrm="\\1 $ac_symprfx\\2 \\2"
6588 # Write the raw and C identifiers.
6589 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6590 # Fake it for dumpbin and say T for any non-static function
6591 # and D for any global variable.
6592 # Also find C++ and __fastcall symbols from MSVC++,
6593 # which start with @ or ?.
6594 lt_cv_sys_global_symbol_pipe="$AWK '"\
6595 " {last_section=section; section=\$ 3};"\
6596 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6597 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6598 " \$ 0!~/External *\|/{next};"\
6599 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6600 " {if(hide[section]) next};"\
6601 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6602 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6603 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6604 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6605 " ' prfx=^$ac_symprfx"
6607 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6609 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6611 # Check to see that the pipe works correctly.
6615 cat > conftest.$ac_ext <<_LT_EOF
6620 void nm_test_func(void);
6621 void nm_test_func(void){}
6625 int main(){nm_test_var='a';nm_test_func();return(0);}
6628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6629 (eval $ac_compile) 2>&5
6631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632 test $ac_status = 0; }; then
6633 # Now try to grab the symbols.
6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6636 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639 test $ac_status = 0; } && test -s "$nlist"; then
6640 # Try sorting and uniquifying the output.
6641 if sort "$nlist" | uniq > "$nlist"T; then
6642 mv -f "$nlist"T "$nlist"
6647 # Make sure that we snagged all the symbols we need.
6648 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6649 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6650 cat <<_LT_EOF > conftest.$ac_ext
6651 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6652 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6653 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6654 relocations are performed -- see ld's documentation on pseudo-relocs. */
6655 # define LT_DLSYM_CONST
6656 #elif defined(__osf__)
6657 /* This system does not cope well with relocations in const data. */
6658 # define LT_DLSYM_CONST
6660 # define LT_DLSYM_CONST const
6668 # Now generate the symbol file.
6669 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6671 cat <<_LT_EOF >> conftest.$ac_ext
6673 /* The mapping between symbol names and symbols. */
6674 LT_DLSYM_CONST struct {
6678 lt__PROGRAM__LTX_preloaded_symbols[] =
6680 { "@PROGRAM@", (void *) 0 },
6682 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6683 cat <<\_LT_EOF >> conftest.$ac_ext
6687 /* This works around a problem in FreeBSD linker */
6688 #ifdef FREEBSD_WORKAROUND
6689 static const void *lt_preloaded_setup() {
6690 return lt__PROGRAM__LTX_preloaded_symbols;
6698 # Now try linking the two files.
6699 mv conftest.$ac_objext conftstm.$ac_objext
6700 lt_globsym_save_LIBS=$LIBS
6701 lt_globsym_save_CFLAGS=$CFLAGS
6702 LIBS="conftstm.$ac_objext"
6703 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6705 (eval $ac_link) 2>&5
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6711 LIBS=$lt_globsym_save_LIBS
6712 CFLAGS=$lt_globsym_save_CFLAGS
6714 echo "cannot find nm_test_func in $nlist" >&5
6717 echo "cannot find nm_test_var in $nlist" >&5
6720 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6723 echo "$progname: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6726 rm -rf conftest* conftst*
6728 # Do not use the global_symbol_pipe unless it works.
6729 if test "$pipe_works" = yes; then
6732 lt_cv_sys_global_symbol_pipe=
6738 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6739 lt_cv_sys_global_symbol_to_cdecl=
6741 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6743 $as_echo "failed" >&6; }
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6746 $as_echo "ok" >&6; }
6749 # Response file support.
6750 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6751 nm_file_list_spec='@'
6752 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6753 nm_file_list_spec='@'
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6783 $as_echo_n "checking for sysroot... " >&6; }
6785 # Check whether --with-sysroot was given.
6786 if test "${with_sysroot+set}" = set; then :
6787 withval=$with_sysroot;
6794 case ${with_sysroot} in #(
6796 if test "$GCC" = yes; then
6797 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6801 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6807 $as_echo "${with_sysroot}" >&6; }
6808 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6813 $as_echo "${lt_sysroot:-no}" >&6; }
6819 # Check whether --enable-libtool-lock was given.
6820 if test "${enable_libtool_lock+set}" = set; then :
6821 enableval=$enable_libtool_lock;
6824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6826 # Some flags need to be propagated to the compiler or linker for good
6830 # Find out which ABI we are using.
6831 echo 'int i;' > conftest.$ac_ext
6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6833 (eval $ac_compile) 2>&5
6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836 test $ac_status = 0; }; then
6837 case `/usr/bin/file conftest.$ac_objext` in
6849 # Find out which ABI we are using.
6850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852 (eval $ac_compile) 2>&5
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }; then
6856 if test "$lt_cv_prog_gnu_ld" = yes; then
6857 case `/usr/bin/file conftest.$ac_objext` in
6859 LD="${LD-ld} -melf32bsmip"
6862 LD="${LD-ld} -melf32bmipn32"
6865 LD="${LD-ld} -melf64bmip"
6869 case `/usr/bin/file conftest.$ac_objext` in
6885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6887 # Find out which ABI we are using.
6888 echo 'int i;' > conftest.$ac_ext
6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6890 (eval $ac_compile) 2>&5
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; }; then
6894 case `/usr/bin/file conftest.o` in
6897 x86_64-*kfreebsd*-gnu)
6898 LD="${LD-ld} -m elf_i386_fbsd"
6901 LD="${LD-ld} -m elf_i386"
6903 ppc64-*linux*|powerpc64-*linux*)
6904 LD="${LD-ld} -m elf32ppclinux"
6907 LD="${LD-ld} -m elf_s390"
6910 LD="${LD-ld} -m elf32_sparc"
6916 x86_64-*kfreebsd*-gnu)
6917 LD="${LD-ld} -m elf_x86_64_fbsd"
6920 LD="${LD-ld} -m elf_x86_64"
6922 ppc*-*linux*|powerpc*-*linux*)
6923 LD="${LD-ld} -m elf64ppc"
6925 s390*-*linux*|s390*-*tpf*)
6926 LD="${LD-ld} -m elf64_s390"
6929 LD="${LD-ld} -m elf64_sparc"
6939 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6940 SAVE_CFLAGS="$CFLAGS"
6941 CFLAGS="$CFLAGS -belf"
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6943 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6944 if ${lt_cv_cc_needs_belf+:} false; then :
6945 $as_echo_n "(cached) " >&6
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6964 if ac_fn_c_try_link "$LINENO"; then :
6965 lt_cv_cc_needs_belf=yes
6967 lt_cv_cc_needs_belf=no
6969 rm -f core conftest.err conftest.$ac_objext \
6970 conftest$ac_exeext conftest.$ac_ext
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6979 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6980 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6981 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6982 CFLAGS="$SAVE_CFLAGS"
6986 # Find out which ABI we are using.
6987 echo 'int i;' > conftest.$ac_ext
6988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989 (eval $ac_compile) 2>&5
6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992 test $ac_status = 0; }; then
6993 case `/usr/bin/file conftest.o` in
6995 case $lt_cv_prog_gnu_ld in
6999 LD="${LD-ld} -m elf_x86_64"
7002 LD="${LD-ld} -m elf64_sparc"
7005 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7006 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7023 need_locks="$enable_libtool_lock"
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7027 set dummy ${ac_tool_prefix}mt; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7031 $as_echo_n "(cached) " >&6
7033 if test -n "$MANIFEST_TOOL"; then
7034 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7054 if test -n "$MANIFEST_TOOL"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7056 $as_echo "$MANIFEST_TOOL" >&6; }
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7064 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7065 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7066 # Extract the first word of "mt", so it can be a program name with args.
7067 set dummy mt; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7071 $as_echo_n "(cached) " >&6
7073 if test -n "$ac_ct_MANIFEST_TOOL"; then
7074 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7094 if test -n "$ac_ct_MANIFEST_TOOL"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7096 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7102 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7105 case $cross_compiling:$ac_tool_warned in
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7111 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7114 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7117 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7119 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7120 if ${lt_cv_path_mainfest_tool+:} false; then :
7121 $as_echo_n "(cached) " >&6
7123 lt_cv_path_mainfest_tool=no
7124 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7125 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7126 cat conftest.err >&5
7127 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7128 lt_cv_path_mainfest_tool=yes
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7133 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7134 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7144 rhapsody* | darwin*)
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7151 $as_echo_n "(cached) " >&6
7153 if test -n "$DSYMUTIL"; then
7154 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7174 if test -n "$DSYMUTIL"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7176 $as_echo "$DSYMUTIL" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7184 if test -z "$ac_cv_prog_DSYMUTIL"; then
7185 ac_ct_DSYMUTIL=$DSYMUTIL
7186 # Extract the first word of "dsymutil", so it can be a program name with args.
7187 set dummy dsymutil; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7191 $as_echo_n "(cached) " >&6
7193 if test -n "$ac_ct_DSYMUTIL"; then
7194 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7214 if test -n "$ac_ct_DSYMUTIL"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7216 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7222 if test "x$ac_ct_DSYMUTIL" = x; then
7225 case $cross_compiling:$ac_tool_warned in
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7231 DSYMUTIL=$ac_ct_DSYMUTIL
7234 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_NMEDIT+:} false; then :
7243 $as_echo_n "(cached) " >&6
7245 if test -n "$NMEDIT"; then
7246 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 NMEDIT=$ac_cv_prog_NMEDIT
7266 if test -n "$NMEDIT"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7268 $as_echo "$NMEDIT" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7276 if test -z "$ac_cv_prog_NMEDIT"; then
7277 ac_ct_NMEDIT=$NMEDIT
7278 # Extract the first word of "nmedit", so it can be a program name with args.
7279 set dummy nmedit; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7283 $as_echo_n "(cached) " >&6
7285 if test -n "$ac_ct_NMEDIT"; then
7286 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7306 if test -n "$ac_ct_NMEDIT"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7308 $as_echo "$ac_ct_NMEDIT" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7314 if test "x$ac_ct_NMEDIT" = x; then
7317 case $cross_compiling:$ac_tool_warned in
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7323 NMEDIT=$ac_ct_NMEDIT
7326 NMEDIT="$ac_cv_prog_NMEDIT"
7329 if test -n "$ac_tool_prefix"; then
7330 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7331 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_LIPO+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 if test -n "$LIPO"; then
7338 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 LIPO=$ac_cv_prog_LIPO
7358 if test -n "$LIPO"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7360 $as_echo "$LIPO" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7368 if test -z "$ac_cv_prog_LIPO"; then
7370 # Extract the first word of "lipo", so it can be a program name with args.
7371 set dummy lipo; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7375 $as_echo_n "(cached) " >&6
7377 if test -n "$ac_ct_LIPO"; then
7378 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387 ac_cv_prog_ac_ct_LIPO="lipo"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7398 if test -n "$ac_ct_LIPO"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7400 $as_echo "$ac_ct_LIPO" >&6; }
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7406 if test "x$ac_ct_LIPO" = x; then
7409 case $cross_compiling:$ac_tool_warned in
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413 ac_tool_warned=yes ;;
7418 LIPO="$ac_cv_prog_LIPO"
7421 if test -n "$ac_tool_prefix"; then
7422 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7423 set dummy ${ac_tool_prefix}otool; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_OTOOL+:} false; then :
7427 $as_echo_n "(cached) " >&6
7429 if test -n "$OTOOL"; then
7430 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 OTOOL=$ac_cv_prog_OTOOL
7450 if test -n "$OTOOL"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7452 $as_echo "$OTOOL" >&6; }
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7460 if test -z "$ac_cv_prog_OTOOL"; then
7462 # Extract the first word of "otool", so it can be a program name with args.
7463 set dummy otool; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7467 $as_echo_n "(cached) " >&6
7469 if test -n "$ac_ct_OTOOL"; then
7470 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_ac_ct_OTOOL="otool"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7490 if test -n "$ac_ct_OTOOL"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7492 $as_echo "$ac_ct_OTOOL" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7498 if test "x$ac_ct_OTOOL" = x; then
7501 case $cross_compiling:$ac_tool_warned in
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505 ac_tool_warned=yes ;;
7510 OTOOL="$ac_cv_prog_OTOOL"
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_OTOOL64+:} false; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$OTOOL64"; then
7522 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 OTOOL64=$ac_cv_prog_OTOOL64
7542 if test -n "$OTOOL64"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7544 $as_echo "$OTOOL64" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7552 if test -z "$ac_cv_prog_OTOOL64"; then
7553 ac_ct_OTOOL64=$OTOOL64
7554 # Extract the first word of "otool64", so it can be a program name with args.
7555 set dummy otool64; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7559 $as_echo_n "(cached) " >&6
7561 if test -n "$ac_ct_OTOOL64"; then
7562 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_ac_ct_OTOOL64="otool64"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7582 if test -n "$ac_ct_OTOOL64"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7584 $as_echo "$ac_ct_OTOOL64" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7590 if test "x$ac_ct_OTOOL64" = x; then
7593 case $cross_compiling:$ac_tool_warned in
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7599 OTOOL64=$ac_ct_OTOOL64
7602 OTOOL64="$ac_cv_prog_OTOOL64"
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7632 $as_echo_n "checking for -single_module linker flag... " >&6; }
7633 if ${lt_cv_apple_cc_single_mod+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 lt_cv_apple_cc_single_mod=no
7637 if test -z "${LT_MULTI_MODULE}"; then
7638 # By default we will add the -single_module flag. You can override
7639 # by either setting the environment variable LT_MULTI_MODULE
7640 # non-empty at configure time, or by adding -multi_module to the
7642 rm -rf libconftest.dylib*
7643 echo "int foo(void){return 1;}" > conftest.c
7644 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7645 -dynamiclib -Wl,-single_module conftest.c" >&5
7646 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7647 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7649 # If there is a non-empty error log, and "single_module"
7650 # appears in it, assume the flag caused a linker warning
7651 if test -s conftest.err && $GREP single_module conftest.err; then
7652 cat conftest.err >&5
7653 # Otherwise, if the output was created with a 0 exit code from
7654 # the compiler, it worked.
7655 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7656 lt_cv_apple_cc_single_mod=yes
7658 cat conftest.err >&5
7660 rm -rf libconftest.dylib*
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7665 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7668 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7669 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7670 $as_echo_n "(cached) " >&6
7672 lt_cv_ld_exported_symbols_list=no
7673 save_LDFLAGS=$LDFLAGS
7674 echo "_main" > conftest.sym
7675 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7687 if ac_fn_c_try_link "$LINENO"; then :
7688 lt_cv_ld_exported_symbols_list=yes
7690 lt_cv_ld_exported_symbols_list=no
7692 rm -f core conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7694 LDFLAGS="$save_LDFLAGS"
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7698 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7701 $as_echo_n "checking for -force_load linker flag... " >&6; }
7702 if ${lt_cv_ld_force_load+:} false; then :
7703 $as_echo_n "(cached) " >&6
7705 lt_cv_ld_force_load=no
7706 cat > conftest.c << _LT_EOF
7707 int forced_loaded() { return 2;}
7709 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7710 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7711 echo "$AR cru libconftest.a conftest.o" >&5
7712 $AR cru libconftest.a conftest.o 2>&5
7713 echo "$RANLIB libconftest.a" >&5
7714 $RANLIB libconftest.a 2>&5
7715 cat > conftest.c << _LT_EOF
7716 int main() { return 0;}
7718 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7719 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7721 if test -s conftest.err && $GREP force_load conftest.err; then
7722 cat conftest.err >&5
7723 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7724 lt_cv_ld_force_load=yes
7726 cat conftest.err >&5
7728 rm -f conftest.err libconftest.a conftest conftest.c
7729 rm -rf conftest.dSYM
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7733 $as_echo "$lt_cv_ld_force_load" >&6; }
7735 rhapsody* | darwin1.[012])
7736 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7738 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7739 darwin*) # darwin 5.x on
7740 # if running on 10.5 or later, the deployment target defaults
7741 # to the OS version, if on x86, and 10.4, the deployment
7742 # target defaults to 10.4. Don't you love it?
7743 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7744 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7745 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7747 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7749 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7753 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7754 _lt_dar_single_mod='$single_module'
7756 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7757 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7759 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7761 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7762 _lt_dsymutil='~$DSYMUTIL $lib || :'
7770 ac_cpp='$CPP $CPPFLAGS'
7771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7775 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7776 # On Suns, sometimes $CPP names a directory.
7777 if test -n "$CPP" && test -d "$CPP"; then
7780 if test -z "$CPP"; then
7781 if ${ac_cv_prog_CPP+:} false; then :
7782 $as_echo_n "(cached) " >&6
7784 # Double quotes because CPP needs to be expanded
7785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7788 for ac_c_preproc_warn_flag in '' yes
7790 # Use a header file that comes with gcc, so configuring glibc
7791 # with a fresh cross-compiler works.
7792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7793 # <limits.h> exists even on freestanding compilers.
7794 # On the NeXT, cc -E runs the code through the compiler's parser,
7795 # not just through cpp. "Syntax error" is here to catch this case.
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7799 # include <limits.h>
7801 # include <assert.h>
7805 if ac_fn_c_try_cpp "$LINENO"; then :
7808 # Broken: fails on valid input.
7811 rm -f conftest.err conftest.i conftest.$ac_ext
7813 # OK, works on sane cases. Now check whether nonexistent headers
7814 # can be detected and how.
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 #include <ac_nonexistent.h>
7819 if ac_fn_c_try_cpp "$LINENO"; then :
7820 # Broken: success on invalid input.
7823 # Passes both tests.
7827 rm -f conftest.err conftest.i conftest.$ac_ext
7830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7831 rm -f conftest.i conftest.err conftest.$ac_ext
7832 if $ac_preproc_ok; then :
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7845 $as_echo "$CPP" >&6; }
7847 for ac_c_preproc_warn_flag in '' yes
7849 # Use a header file that comes with gcc, so configuring glibc
7850 # with a fresh cross-compiler works.
7851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7852 # <limits.h> exists even on freestanding compilers.
7853 # On the NeXT, cc -E runs the code through the compiler's parser,
7854 # not just through cpp. "Syntax error" is here to catch this case.
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7858 # include <limits.h>
7860 # include <assert.h>
7864 if ac_fn_c_try_cpp "$LINENO"; then :
7867 # Broken: fails on valid input.
7870 rm -f conftest.err conftest.i conftest.$ac_ext
7872 # OK, works on sane cases. Now check whether nonexistent headers
7873 # can be detected and how.
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 #include <ac_nonexistent.h>
7878 if ac_fn_c_try_cpp "$LINENO"; then :
7879 # Broken: success on invalid input.
7882 # Passes both tests.
7886 rm -f conftest.err conftest.i conftest.$ac_ext
7889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7890 rm -f conftest.i conftest.err conftest.$ac_ext
7891 if $ac_preproc_ok; then :
7894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7896 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7897 See \`config.log' for more details" "$LINENO" 5; }
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7908 $as_echo_n "checking for ANSI C header files... " >&6; }
7909 if ${ac_cv_header_stdc+:} false; then :
7910 $as_echo_n "(cached) " >&6
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7927 if ac_fn_c_try_compile "$LINENO"; then :
7928 ac_cv_header_stdc=yes
7930 ac_cv_header_stdc=no
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 if test $ac_cv_header_stdc = yes; then
7935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7942 $EGREP "memchr" >/dev/null 2>&1; then :
7945 ac_cv_header_stdc=no
7951 if test $ac_cv_header_stdc = yes; then
7952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7959 $EGREP "free" >/dev/null 2>&1; then :
7962 ac_cv_header_stdc=no
7968 if test $ac_cv_header_stdc = yes; then
7969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7970 if test "$cross_compiling" = yes; then :
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7977 #if ((' ' & 0x0FF) == 0x020)
7978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7981 # define ISLOWER(c) \
7982 (('a' <= (c) && (c) <= 'i') \
7983 || ('j' <= (c) && (c) <= 'r') \
7984 || ('s' <= (c) && (c) <= 'z'))
7985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7993 for (i = 0; i < 256; i++)
7994 if (XOR (islower (i), ISLOWER (i))
7995 || toupper (i) != TOUPPER (i))
8000 if ac_fn_c_try_run "$LINENO"; then :
8003 ac_cv_header_stdc=no
8005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8006 conftest.$ac_objext conftest.beam conftest.$ac_ext
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8012 $as_echo "$ac_cv_header_stdc" >&6; }
8013 if test $ac_cv_header_stdc = yes; then
8015 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8021 inttypes.h stdint.h unistd.h
8023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8027 cat >>confdefs.h <<_ACEOF
8028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8036 for ac_header in dlfcn.h
8038 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8040 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8041 cat >>confdefs.h <<_ACEOF
8042 #define HAVE_DLFCN_H 1
8063 # Check whether --enable-shared was given.
8064 if test "${enable_shared+set}" = set; then :
8065 enableval=$enable_shared; p=${PACKAGE-default}
8067 yes) enable_shared=yes ;;
8068 no) enable_shared=no ;;
8071 # Look at the argument we got. We use all the common list separators.
8072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8073 for pkg in $enableval; do
8075 if test "X$pkg" = "X$p"; then
8094 # Check whether --enable-static was given.
8095 if test "${enable_static+set}" = set; then :
8096 enableval=$enable_static; p=${PACKAGE-default}
8098 yes) enable_static=yes ;;
8099 no) enable_static=no ;;
8102 # Look at the argument we got. We use all the common list separators.
8103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8104 for pkg in $enableval; do
8106 if test "X$pkg" = "X$p"; then
8126 # Check whether --with-pic was given.
8127 if test "${with_pic+set}" = set; then :
8128 withval=$with_pic; lt_p=${PACKAGE-default}
8130 yes|no) pic_mode=$withval ;;
8133 # Look at the argument we got. We use all the common list separators.
8134 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8135 for lt_pkg in $withval; do
8137 if test "X$lt_pkg" = "X$lt_p"; then
8149 test -z "$pic_mode" && pic_mode=default
8157 # Check whether --enable-fast-install was given.
8158 if test "${enable_fast_install+set}" = set; then :
8159 enableval=$enable_fast_install; p=${PACKAGE-default}
8161 yes) enable_fast_install=yes ;;
8162 no) enable_fast_install=no ;;
8164 enable_fast_install=no
8165 # Look at the argument we got. We use all the common list separators.
8166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8167 for pkg in $enableval; do
8169 if test "X$pkg" = "X$p"; then
8170 enable_fast_install=yes
8177 enable_fast_install=yes
8190 # This can be used to rebuild libtool when needed
8191 LIBTOOL_DEPS="$ltmain"
8193 # Always use our own libtool.
8194 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8225 test -z "$LN_S" && LN_S="ln -s"
8240 if test -n "${ZSH_VERSION+set}" ; then
8241 setopt NO_GLOB_SUBST
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8245 $as_echo_n "checking for objdir... " >&6; }
8246 if ${lt_cv_objdir+:} false; then :
8247 $as_echo_n "(cached) " >&6
8249 rm -f .libs 2>/dev/null
8250 mkdir .libs 2>/dev/null
8251 if test -d .libs; then
8254 # MS-DOS does not allow filenames that begin with a dot.
8257 rmdir .libs 2>/dev/null
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8260 $as_echo "$lt_cv_objdir" >&6; }
8261 objdir=$lt_cv_objdir
8267 cat >>confdefs.h <<_ACEOF
8268 #define LT_OBJDIR "$lt_cv_objdir/"
8276 # AIX sometimes has problems with the GCC collect2 program. For some
8277 # reason, if we set the COLLECT_NAMES environment variable, the problems
8278 # vanish in a puff of smoke.
8279 if test "X${COLLECT_NAMES+set}" != Xset; then
8281 export COLLECT_NAMES
8288 can_build_shared=yes
8290 # All known linkers require a `.a' archive for static linking (except MSVC,
8291 # which needs '.lib').
8294 with_gnu_ld="$lt_cv_prog_gnu_ld"
8297 old_CFLAGS="$CFLAGS"
8299 # Set sane defaults for various variables
8300 test -z "$CC" && CC=cc
8301 test -z "$LTCC" && LTCC=$CC
8302 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8303 test -z "$LD" && LD=ld
8304 test -z "$ac_objext" && ac_objext=o
8306 for cc_temp in $compiler""; do
8308 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8309 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8314 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8317 # Only perform the check for file, if the check method requires it
8318 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8319 case $deplibs_check_method in
8321 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8323 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8324 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8325 $as_echo_n "(cached) " >&6
8329 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8332 lt_save_MAGIC_CMD="$MAGIC_CMD"
8333 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8334 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8335 for ac_dir in $ac_dummy; do
8337 test -z "$ac_dir" && ac_dir=.
8338 if test -f $ac_dir/${ac_tool_prefix}file; then
8339 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8340 if test -n "$file_magic_test_file"; then
8341 case $deplibs_check_method in
8343 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8345 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8346 $EGREP "$file_magic_regex" > /dev/null; then
8351 *** Warning: the command libtool uses to detect shared libraries,
8352 *** $file_magic_cmd, produces output that libtool cannot recognize.
8353 *** The result is that libtool may fail to recognize shared libraries
8354 *** as such. This will affect the creation of libtool libraries that
8355 *** depend on shared libraries, but programs linked with such libtool
8356 *** libraries will work regardless of this problem. Nevertheless, you
8357 *** may want to report the problem to your system manager and/or to
8358 *** bug-libtool@gnu.org
8368 MAGIC_CMD="$lt_save_MAGIC_CMD"
8373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8374 if test -n "$MAGIC_CMD"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8376 $as_echo "$MAGIC_CMD" >&6; }
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8386 if test -z "$lt_cv_path_MAGIC_CMD"; then
8387 if test -n "$ac_tool_prefix"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8389 $as_echo_n "checking for file... " >&6; }
8390 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8391 $as_echo_n "(cached) " >&6
8395 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8398 lt_save_MAGIC_CMD="$MAGIC_CMD"
8399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8400 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8401 for ac_dir in $ac_dummy; do
8403 test -z "$ac_dir" && ac_dir=.
8404 if test -f $ac_dir/file; then
8405 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8406 if test -n "$file_magic_test_file"; then
8407 case $deplibs_check_method in
8409 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8411 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8412 $EGREP "$file_magic_regex" > /dev/null; then
8417 *** Warning: the command libtool uses to detect shared libraries,
8418 *** $file_magic_cmd, produces output that libtool cannot recognize.
8419 *** The result is that libtool may fail to recognize shared libraries
8420 *** as such. This will affect the creation of libtool libraries that
8421 *** depend on shared libraries, but programs linked with such libtool
8422 *** libraries will work regardless of this problem. Nevertheless, you
8423 *** may want to report the problem to your system manager and/or to
8424 *** bug-libtool@gnu.org
8434 MAGIC_CMD="$lt_save_MAGIC_CMD"
8439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8440 if test -n "$MAGIC_CMD"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8442 $as_echo "$MAGIC_CMD" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8458 # Use C for the default configuration in the libtool script
8462 ac_cpp='$CPP $CPPFLAGS'
8463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8468 # Source file extension for C test sources.
8471 # Object file extension for compiled C test sources.
8475 # Code to be used in simple compile tests
8476 lt_simple_compile_test_code="int some_variable = 0;"
8478 # Code to be used in simple link tests
8479 lt_simple_link_test_code='int main(){return(0);}'
8487 # If no C compiler was specified, use CC.
8490 # If no C compiler flags were specified, use CFLAGS.
8491 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8493 # Allow CC to be a program name with arguments.
8496 # Save the default compiler, since it gets overwritten when the other
8497 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8498 compiler_DEFAULT=$CC
8500 # save warnings/boilerplate of simple test code
8501 ac_outfile=conftest.$ac_objext
8502 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8503 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8504 _lt_compiler_boilerplate=`cat conftest.err`
8507 ac_outfile=conftest.$ac_objext
8508 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8509 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8510 _lt_linker_boilerplate=`cat conftest.err`
8515 ## There is no encapsulation within the following macros, do not change
8516 ## the running order or otherwise move them around unless you know exactly
8517 ## what you are doing...
8518 if test -n "$compiler"; then
8520 lt_prog_compiler_no_builtin_flag=
8522 if test "$GCC" = yes; then
8523 case $cc_basename in
8525 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8527 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8531 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8532 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8533 $as_echo_n "(cached) " >&6
8535 lt_cv_prog_compiler_rtti_exceptions=no
8536 ac_outfile=conftest.$ac_objext
8537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8538 lt_compiler_flag="-fno-rtti -fno-exceptions"
8539 # Insert the option either (1) after the last *FLAGS variable, or
8540 # (2) before a word containing "conftest.", or (3) at the end.
8541 # Note that $ac_compile itself does not contain backslashes and begins
8542 # with a dollar sign (not a hyphen), so the echo should work correctly.
8543 # The option is referenced via a variable to avoid confusing sed.
8544 lt_compile=`echo "$ac_compile" | $SED \
8545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8547 -e 's:$: $lt_compiler_flag:'`
8548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8549 (eval "$lt_compile" 2>conftest.err)
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 if (exit $ac_status) && test -s "$ac_outfile"; then
8554 # The compiler can only warn and ignore the option if not recognized
8555 # So say no if there are warnings other than the usual output.
8556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8559 lt_cv_prog_compiler_rtti_exceptions=yes
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8566 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8568 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8569 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8581 lt_prog_compiler_wl=
8582 lt_prog_compiler_pic=
8583 lt_prog_compiler_static=
8586 if test "$GCC" = yes; then
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_static='-static'
8592 # All AIX code is PIC.
8593 if test "$host_cpu" = ia64; then
8594 # AIX 5 now supports IA64 processor
8595 lt_prog_compiler_static='-Bstatic'
8602 # see comment about AmigaOS4 .so support
8603 lt_prog_compiler_pic='-fPIC'
8606 # FIXME: we need at least 68020 code to build shared libraries, but
8607 # adding the `-m68020' flag to GCC prevents building anything better,
8609 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8614 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8615 # PIC is the default for these OSes.
8618 mingw* | cygwin* | pw32* | os2* | cegcc*)
8619 # This hack is so that the source file can tell whether it is being
8620 # built for inclusion in a dll (and should export symbols for example).
8621 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8622 # (--disable-auto-import) libraries
8623 lt_prog_compiler_pic='-DDLL_EXPORT'
8626 darwin* | rhapsody*)
8627 # PIC is the default on this platform
8628 # Common symbols not allowed in MH_DYLIB files
8629 lt_prog_compiler_pic='-fno-common'
8633 # PIC is the default for Haiku.
8634 # The "-static" flag exists, but is broken.
8635 lt_prog_compiler_static=
8639 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8640 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8641 # sets the default TLS model and affects inlining.
8647 lt_prog_compiler_pic='-fPIC'
8653 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8654 # Instead, we relocate shared libraries at runtime.
8658 # Just because we use GCC doesn't mean we suddenly get shared libraries
8659 # on systems that don't support them.
8660 lt_prog_compiler_can_build_shared=no
8665 # QNX uses GNU C++, but need to define -shared option too, otherwise
8667 lt_prog_compiler_pic='-fPIC -shared'
8671 if test -d /usr/nec; then
8672 lt_prog_compiler_pic=-Kconform_pic
8677 lt_prog_compiler_pic='-fPIC'
8681 case $cc_basename in
8682 nvcc*) # Cuda Compiler Driver 2.2
8683 lt_prog_compiler_wl='-Xlinker '
8684 if test -n "$lt_prog_compiler_pic"; then
8685 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8690 # PORTME Check for flag to pass linker flags through the system compiler.
8693 lt_prog_compiler_wl='-Wl,'
8694 if test "$host_cpu" = ia64; then
8695 # AIX 5 now supports IA64 processor
8696 lt_prog_compiler_static='-Bstatic'
8698 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8702 mingw* | cygwin* | pw32* | os2* | cegcc*)
8703 # This hack is so that the source file can tell whether it is being
8704 # built for inclusion in a dll (and should export symbols for example).
8705 lt_prog_compiler_pic='-DDLL_EXPORT'
8708 hpux9* | hpux10* | hpux11*)
8709 lt_prog_compiler_wl='-Wl,'
8710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8717 lt_prog_compiler_pic='+Z'
8720 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8721 lt_prog_compiler_static='${wl}-a ${wl}archive'
8724 irix5* | irix6* | nonstopux*)
8725 lt_prog_compiler_wl='-Wl,'
8726 # PIC (with -KPIC) is the default.
8727 lt_prog_compiler_static='-non_shared'
8730 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8731 case $cc_basename in
8732 # old Intel for x86_64 which still supported -KPIC.
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-KPIC'
8736 lt_prog_compiler_static='-static'
8738 # icc used to be incompatible with GCC.
8739 # ICC 10 doesn't accept -KPIC any more.
8741 lt_prog_compiler_wl='-Wl,'
8742 lt_prog_compiler_pic='-fPIC'
8743 lt_prog_compiler_static='-static'
8745 # Lahey Fortran 8.1.
8747 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_pic='--shared'
8749 lt_prog_compiler_static='--static'
8752 # NAG Fortran compiler
8753 lt_prog_compiler_wl='-Wl,-Wl,,'
8754 lt_prog_compiler_pic='-PIC'
8755 lt_prog_compiler_static='-Bstatic'
8757 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8758 # Portland Group compilers (*not* the Pentium gcc compiler,
8759 # which looks to be a dead project)
8760 lt_prog_compiler_wl='-Wl,'
8761 lt_prog_compiler_pic='-fpic'
8762 lt_prog_compiler_static='-Bstatic'
8765 lt_prog_compiler_wl='-Wl,'
8766 # All Alpha code is PIC.
8767 lt_prog_compiler_static='-non_shared'
8769 xl* | bgxl* | bgf* | mpixl*)
8770 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-qpic'
8773 lt_prog_compiler_static='-qstaticlink'
8776 case `$CC -V 2>&1 | sed 5q` in
8777 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8778 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8779 lt_prog_compiler_pic='-KPIC'
8780 lt_prog_compiler_static='-Bstatic'
8781 lt_prog_compiler_wl=''
8783 *Sun\ F* | *Sun*Fortran*)
8784 lt_prog_compiler_pic='-KPIC'
8785 lt_prog_compiler_static='-Bstatic'
8786 lt_prog_compiler_wl='-Qoption ld '
8790 lt_prog_compiler_pic='-KPIC'
8791 lt_prog_compiler_static='-Bstatic'
8792 lt_prog_compiler_wl='-Wl,'
8794 *Intel*\ [CF]*Compiler*)
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_pic='-fPIC'
8797 lt_prog_compiler_static='-static'
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_pic='-fpic'
8802 lt_prog_compiler_static='-Bstatic'
8810 lt_prog_compiler_pic='-KPIC'
8811 lt_prog_compiler_static='-Bstatic'
8815 # QNX uses GNU C++, but need to define -shared option too, otherwise
8817 lt_prog_compiler_pic='-fPIC -shared'
8820 osf3* | osf4* | osf5*)
8821 lt_prog_compiler_wl='-Wl,'
8822 # All OSF/1 code is PIC.
8823 lt_prog_compiler_static='-non_shared'
8827 lt_prog_compiler_static='-non_shared'
8831 lt_prog_compiler_pic='-KPIC'
8832 lt_prog_compiler_static='-Bstatic'
8833 case $cc_basename in
8834 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8835 lt_prog_compiler_wl='-Qoption ld ';;
8837 lt_prog_compiler_wl='-Wl,';;
8842 lt_prog_compiler_wl='-Qoption ld '
8843 lt_prog_compiler_pic='-PIC'
8844 lt_prog_compiler_static='-Bstatic'
8847 sysv4 | sysv4.2uw2* | sysv4.3*)
8848 lt_prog_compiler_wl='-Wl,'
8849 lt_prog_compiler_pic='-KPIC'
8850 lt_prog_compiler_static='-Bstatic'
8854 if test -d /usr/nec ;then
8855 lt_prog_compiler_pic='-Kconform_pic'
8856 lt_prog_compiler_static='-Bstatic'
8860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_pic='-KPIC'
8863 lt_prog_compiler_static='-Bstatic'
8867 lt_prog_compiler_wl='-Wl,'
8868 lt_prog_compiler_can_build_shared=no
8872 lt_prog_compiler_pic='-pic'
8873 lt_prog_compiler_static='-Bstatic'
8877 lt_prog_compiler_can_build_shared=no
8883 # For platforms which do not support PIC, -DPIC is meaningless:
8885 lt_prog_compiler_pic=
8888 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8893 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8894 if ${lt_cv_prog_compiler_pic+:} false; then :
8895 $as_echo_n "(cached) " >&6
8897 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8900 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8901 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8904 # Check to make sure the PIC flag actually works.
8906 if test -n "$lt_prog_compiler_pic"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8908 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8909 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8910 $as_echo_n "(cached) " >&6
8912 lt_cv_prog_compiler_pic_works=no
8913 ac_outfile=conftest.$ac_objext
8914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8915 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8916 # Insert the option either (1) after the last *FLAGS variable, or
8917 # (2) before a word containing "conftest.", or (3) at the end.
8918 # Note that $ac_compile itself does not contain backslashes and begins
8919 # with a dollar sign (not a hyphen), so the echo should work correctly.
8920 # The option is referenced via a variable to avoid confusing sed.
8921 lt_compile=`echo "$ac_compile" | $SED \
8922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924 -e 's:$: $lt_compiler_flag:'`
8925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8926 (eval "$lt_compile" 2>conftest.err)
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 if (exit $ac_status) && test -s "$ac_outfile"; then
8931 # The compiler can only warn and ignore the option if not recognized
8932 # So say no if there are warnings other than the usual output.
8933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_pic_works=yes
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8943 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8945 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8946 case $lt_prog_compiler_pic in
8948 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8951 lt_prog_compiler_pic=
8952 lt_prog_compiler_can_build_shared=no
8968 # Check to make sure the static flag actually works.
8970 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8972 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8973 if ${lt_cv_prog_compiler_static_works+:} false; then :
8974 $as_echo_n "(cached) " >&6
8976 lt_cv_prog_compiler_static_works=no
8977 save_LDFLAGS="$LDFLAGS"
8978 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8981 # The linker can only warn and ignore the option if not recognized
8982 # So say no if there are warnings
8983 if test -s conftest.err; then
8984 # Append any errors to the config.log.
8985 cat conftest.err 1>&5
8986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8988 if diff conftest.exp conftest.er2 >/dev/null; then
8989 lt_cv_prog_compiler_static_works=yes
8992 lt_cv_prog_compiler_static_works=yes
8996 LDFLAGS="$save_LDFLAGS"
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9000 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9002 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9005 lt_prog_compiler_static=
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9016 if ${lt_cv_prog_compiler_c_o+:} false; then :
9017 $as_echo_n "(cached) " >&6
9019 lt_cv_prog_compiler_c_o=no
9020 $RM -r conftest 2>/dev/null
9024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9026 lt_compiler_flag="-o out/conftest2.$ac_objext"
9027 # Insert the option either (1) after the last *FLAGS variable, or
9028 # (2) before a word containing "conftest.", or (3) at the end.
9029 # Note that $ac_compile itself does not contain backslashes and begins
9030 # with a dollar sign (not a hyphen), so the echo should work correctly.
9031 lt_compile=`echo "$ac_compile" | $SED \
9032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9034 -e 's:$: $lt_compiler_flag:'`
9035 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9036 (eval "$lt_compile" 2>out/conftest.err)
9038 cat out/conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9042 # The compiler can only warn and ignore the option if not recognized
9043 # So say no if there are warnings
9044 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9047 lt_cv_prog_compiler_c_o=yes
9052 # SGI C++ compiler will create directory out/ii_files/ for
9053 # template instantiation
9054 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9055 $RM out/* && rmdir out
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9062 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9071 if ${lt_cv_prog_compiler_c_o+:} false; then :
9072 $as_echo_n "(cached) " >&6
9074 lt_cv_prog_compiler_c_o=no
9075 $RM -r conftest 2>/dev/null
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081 lt_compiler_flag="-o out/conftest2.$ac_objext"
9082 # Insert the option either (1) after the last *FLAGS variable, or
9083 # (2) before a word containing "conftest.", or (3) at the end.
9084 # Note that $ac_compile itself does not contain backslashes and begins
9085 # with a dollar sign (not a hyphen), so the echo should work correctly.
9086 lt_compile=`echo "$ac_compile" | $SED \
9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089 -e 's:$: $lt_compiler_flag:'`
9090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9091 (eval "$lt_compile" 2>out/conftest.err)
9093 cat out/conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9097 # The compiler can only warn and ignore the option if not recognized
9098 # So say no if there are warnings
9099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9102 lt_cv_prog_compiler_c_o=yes
9107 # SGI C++ compiler will create directory out/ii_files/ for
9108 # template instantiation
9109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9110 $RM out/* && rmdir out
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9117 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9122 hard_links="nottested"
9123 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9124 # do not overwrite the value of need_locks provided by the user
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9126 $as_echo_n "checking if we can lock with hard links... " >&6; }
9129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9131 ln conftest.a conftest.b 2>&5 || hard_links=no
9132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9134 $as_echo "$hard_links" >&6; }
9135 if test "$hard_links" = no; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9137 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9153 allow_undefined_flag=
9154 always_export_symbols=no
9156 archive_expsym_cmds=
9157 compiler_needs_object=no
9158 enable_shared_with_static_runtimes=no
9159 export_dynamic_flag_spec=
9160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9161 hardcode_automatic=no
9163 hardcode_direct_absolute=no
9164 hardcode_libdir_flag_spec=
9165 hardcode_libdir_separator=
9167 hardcode_shlibpath_var=unsupported
9169 link_all_deplibs=unknown
9172 old_archive_from_new_cmds=
9173 old_archive_from_expsyms_cmds=
9174 thread_safe_flag_spec=
9175 whole_archive_flag_spec=
9176 # include_expsyms should be a list of space-separated symbols to be *always*
9177 # included in the symbol list
9179 # exclude_expsyms can be an extended regexp of symbols to exclude
9180 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9181 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9182 # as well as any symbol that contains `d'.
9183 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9185 # platforms (ab)use it in PIC code, but their linkers get confused if
9186 # the symbol is explicitly referenced. Since portable code cannot
9187 # rely on this symbol name, it's probably fine to never include it in
9188 # preloaded symbol tables.
9189 # Exclude shared library initialization/finalization symbols.
9190 extract_expsyms_cmds=
9193 cygwin* | mingw* | pw32* | cegcc*)
9194 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9195 # When not using gcc, we currently assume that we are using
9196 # Microsoft Visual C++.
9197 if test "$GCC" != yes; then
9202 # we just hope/assume this is gcc and not c89 (= MSVC++)
9212 # On some targets, GNU ld is compatible enough with the native linker
9213 # that we're better off using the native interface for both.
9214 lt_use_gnu_ld_interface=no
9215 if test "$with_gnu_ld" = yes; then
9218 # The AIX port of GNU ld has always aspired to compatibility
9219 # with the native linker. However, as the warning in the GNU ld
9220 # block says, versions before 2.19.5* couldn't really create working
9221 # shared libraries, regardless of the interface used.
9222 case `$LD -v 2>&1` in
9223 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9224 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9225 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9227 lt_use_gnu_ld_interface=yes
9232 lt_use_gnu_ld_interface=yes
9237 if test "$lt_use_gnu_ld_interface" = yes; then
9238 # If archive_cmds runs LD, not CC, wlarc should be empty
9241 # Set some defaults for GNU ld with shared library support. These
9242 # are reset later if shared libraries are not supported. Putting them
9243 # here allows them to be overridden if necessary.
9244 runpath_var=LD_RUN_PATH
9245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246 export_dynamic_flag_spec='${wl}--export-dynamic'
9247 # ancient GNU ld didn't support --whole-archive et. al.
9248 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9249 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9251 whole_archive_flag_spec=
9253 supports_anon_versioning=no
9254 case `$LD -v 2>&1` in
9255 *GNU\ gold*) supports_anon_versioning=yes ;;
9256 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9259 *\ 2.11.*) ;; # other 2.11 versions
9260 *) supports_anon_versioning=yes ;;
9263 # See if GNU ld supports shared libraries.
9266 # On AIX/PPC, the GNU linker is very broken
9267 if test "$host_cpu" != ia64; then
9271 *** Warning: the GNU linker, at least up to release 2.19, is reported
9272 *** to be unable to reliably create shared libraries on AIX.
9273 *** Therefore, libtool is disabling shared libraries support. If you
9274 *** really care for shared libraries, you may want to install binutils
9275 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9276 *** You will then need to restart the configuration process.
9285 # see comment about AmigaOS4 .so support
9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9287 archive_expsym_cmds=''
9290 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)'
9291 hardcode_libdir_flag_spec='-L$libdir'
9292 hardcode_minus_L=yes
9298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9299 allow_undefined_flag=unsupported
9300 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9301 # support --undefined. This deserves some investigation. FIXME
9302 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308 cygwin* | mingw* | pw32* | cegcc*)
9309 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9310 # as there is no search path for DLLs.
9311 hardcode_libdir_flag_spec='-L$libdir'
9312 export_dynamic_flag_spec='${wl}--export-all-symbols'
9313 allow_undefined_flag=unsupported
9314 always_export_symbols=no
9315 enable_shared_with_static_runtimes=yes
9316 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'
9317 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9319 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9321 # If the export-symbols file already is a .def file (1st line
9322 # is EXPORTS), use it as is; otherwise, prepend...
9323 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9324 cp $export_symbols $output_objdir/$soname.def;
9326 echo EXPORTS > $output_objdir/$soname.def;
9327 cat $export_symbols >> $output_objdir/$soname.def;
9329 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337 link_all_deplibs=yes
9342 hardcode_shlibpath_var=no
9343 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9344 export_dynamic_flag_spec='${wl}-E'
9345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9346 # Instead, shared libraries are loaded at an image base (0x10000000 by
9347 # default) and relocated if they conflict, which is a slow very memory
9348 # consuming and fragmenting process. To avoid this, we pick a random,
9349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9350 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9351 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9352 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'
9355 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9357 if test "$host_os" = linux-dietlibc; then
9358 case $cc_basename in
9359 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9362 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9363 && test "$tmp_diet" = no
9365 tmp_addflag=' $pic_flag'
9366 tmp_sharedflag='-shared'
9367 case $cc_basename,$host_cpu in
9368 pgcc*) # Portland Group C compiler
9369 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'
9370 tmp_addflag=' $pic_flag'
9372 pgf77* | pgf90* | pgf95* | pgfortran*)
9373 # Portland Group f77 and f90 compilers
9374 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'
9375 tmp_addflag=' $pic_flag -Mnomain' ;;
9376 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9377 tmp_addflag=' -i_dynamic' ;;
9378 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9379 tmp_addflag=' -i_dynamic -nofor_main' ;;
9380 ifc* | ifort*) # Intel Fortran compiler
9381 tmp_addflag=' -nofor_main' ;;
9382 lf95*) # Lahey Fortran 8.1
9383 whole_archive_flag_spec=
9384 tmp_sharedflag='--shared' ;;
9385 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9386 tmp_sharedflag='-qmkshrobj'
9388 nvcc*) # Cuda Compiler Driver 2.2
9389 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'
9390 compiler_needs_object=yes
9393 case `$CC -V 2>&1 | sed 5q` in
9394 *Sun\ C*) # Sun C 5.9
9395 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'
9396 compiler_needs_object=yes
9397 tmp_sharedflag='-G' ;;
9398 *Sun\ F*) # Sun Fortran 8.3
9399 tmp_sharedflag='-G' ;;
9401 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403 if test "x$supports_anon_versioning" = xyes; then
9404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9406 echo "local: *; };" >> $output_objdir/$libname.ver~
9407 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9410 case $cc_basename in
9411 xlf* | bgf* | bgxlf* | mpixlf*)
9412 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9413 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9415 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9416 if test "x$supports_anon_versioning" = xyes; then
9417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9419 echo "local: *; };" >> $output_objdir/$libname.ver~
9420 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9431 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9445 *** create shared libraries on Solaris systems. Therefore, libtool
9446 *** is disabling shared libraries support. We urge you to upgrade GNU
9447 *** binutils to release 2.9.1 or newer. Another option is to modify
9448 *** your PATH or compiler configuration so that the native linker is
9449 *** used, and then restart.
9452 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9453 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9454 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9461 case `$LD -v 2>&1` in
9462 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9466 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9467 *** reliably create shared libraries on SCO systems. Therefore, libtool
9468 *** is disabling shared libraries support. We urge you to upgrade GNU
9469 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9470 *** your PATH or compiler configuration so that the native linker is
9471 *** used, and then restart.
9476 # For security reasons, it is highly recommended that you always
9477 # use absolute paths for naming shared libraries, and exclude the
9478 # DT_RUNPATH tag from executables and libraries. But doing so
9479 # requires that you compile everything twice, which is a pain.
9480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9492 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_shlibpath_var=no
9499 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9500 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9508 if test "$ld_shlibs" = no; then
9510 hardcode_libdir_flag_spec=
9511 export_dynamic_flag_spec=
9512 whole_archive_flag_spec=
9515 # PORTME fill in a description of your system's linker (not GNU ld)
9518 allow_undefined_flag=unsupported
9519 always_export_symbols=yes
9520 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'
9521 # Note: this linker hardcodes the directories in LIBPATH if there
9522 # are no directories specified by -L.
9523 hardcode_minus_L=yes
9524 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9525 # Neither direct hardcoding nor static linking is supported with a
9527 hardcode_direct=unsupported
9532 if test "$host_cpu" = ia64; then
9533 # On IA64, the linker does run time linking by default, so we don't
9534 # have to do anything special.
9535 aix_use_runtimelinking=no
9536 exp_sym_flag='-Bexport'
9539 # If we're using GNU nm, then we don't want the "-C" option.
9540 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9541 # Also, AIX nm treats weak defined symbols like other global
9542 # defined symbols, whereas GNU nm marks them as "W".
9543 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9544 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'
9546 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'
9548 aix_use_runtimelinking=no
9550 # Test if we are trying to use run time linking or normal
9551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9552 # need to do runtime linking.
9553 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9554 for ld_flag in $LDFLAGS; do
9555 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9556 aix_use_runtimelinking=yes
9563 exp_sym_flag='-bexport'
9564 no_entry_flag='-bnoentry'
9567 # When large executables or shared objects are built, AIX ld can
9568 # have problems creating the table of contents. If linking a library
9569 # or program results in "error TOC overflow" add -mminimal-toc to
9570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9575 hardcode_direct_absolute=yes
9576 hardcode_libdir_separator=':'
9577 link_all_deplibs=yes
9578 file_list_spec='${wl}-f,'
9580 if test "$GCC" = yes; then
9581 case $host_os in aix4.[012]|aix4.[012].*)
9582 # We only want to do this on AIX 4.2 and lower, the check
9583 # below for broken collect2 doesn't work under 4.3+
9584 collect2name=`${CC} -print-prog-name=collect2`
9585 if test -f "$collect2name" &&
9586 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9588 # We have reworked collect2
9591 # We have old collect2
9592 hardcode_direct=unsupported
9593 # It fails to find uninstalled libraries when the uninstalled
9594 # path is not listed in the libpath. Setting hardcode_minus_L
9595 # to unsupported forces relinking
9596 hardcode_minus_L=yes
9597 hardcode_libdir_flag_spec='-L$libdir'
9598 hardcode_libdir_separator=
9602 shared_flag='-shared'
9603 if test "$aix_use_runtimelinking" = yes; then
9604 shared_flag="$shared_flag "'${wl}-G'
9608 if test "$host_cpu" = ia64; then
9609 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9610 # chokes on -Wl,-G. The following line is correct:
9613 if test "$aix_use_runtimelinking" = yes; then
9614 shared_flag='${wl}-G'
9616 shared_flag='${wl}-bM:SRE'
9621 export_dynamic_flag_spec='${wl}-bexpall'
9622 # It seems that -bexpall does not export symbols beginning with
9623 # underscore (_), so it is better to generate a list of symbols to export.
9624 always_export_symbols=yes
9625 if test "$aix_use_runtimelinking" = yes; then
9626 # Warning - without using the other runtime loading flags (-brtl),
9627 # -berok will link without error, but may produce a broken library.
9628 allow_undefined_flag='-berok'
9629 # Determine the default libpath from the value encoded in an
9631 if test "${lt_cv_aix_libpath+set}" = set; then
9632 aix_libpath=$lt_cv_aix_libpath
9634 if ${lt_cv_aix_libpath_+:} false; then :
9635 $as_echo_n "(cached) " >&6
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9648 if ac_fn_c_try_link "$LINENO"; then :
9650 lt_aix_libpath_sed='
9651 /Import File Strings/,/^$/ {
9653 s/^0 *\([^ ]*\) *$/\1/
9657 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9658 # Check for a 64-bit object if we didn't find anything.
9659 if test -z "$lt_cv_aix_libpath_"; then
9660 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9663 rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665 if test -z "$lt_cv_aix_libpath_"; then
9666 lt_cv_aix_libpath_="/usr/lib:/lib"
9671 aix_libpath=$lt_cv_aix_libpath_
9674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9675 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"
9677 if test "$host_cpu" = ia64; then
9678 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9679 allow_undefined_flag="-z nodefs"
9680 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"
9682 # Determine the default libpath from the value encoded in an
9684 if test "${lt_cv_aix_libpath+set}" = set; then
9685 aix_libpath=$lt_cv_aix_libpath
9687 if ${lt_cv_aix_libpath_+:} false; then :
9688 $as_echo_n "(cached) " >&6
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9701 if ac_fn_c_try_link "$LINENO"; then :
9703 lt_aix_libpath_sed='
9704 /Import File Strings/,/^$/ {
9706 s/^0 *\([^ ]*\) *$/\1/
9710 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711 # Check for a 64-bit object if we didn't find anything.
9712 if test -z "$lt_cv_aix_libpath_"; then
9713 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 rm -f core conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
9718 if test -z "$lt_cv_aix_libpath_"; then
9719 lt_cv_aix_libpath_="/usr/lib:/lib"
9724 aix_libpath=$lt_cv_aix_libpath_
9727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9728 # Warning - without using the other run time loading flags,
9729 # -berok will link without error, but may produce a broken library.
9730 no_undefined_flag=' ${wl}-bernotok'
9731 allow_undefined_flag=' ${wl}-berok'
9732 if test "$with_gnu_ld" = yes; then
9733 # We only use this code for GNU lds that support --whole-archive.
9734 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9736 # Exported symbols can be pulled into shared objects from archives
9737 whole_archive_flag_spec='$convenience'
9739 archive_cmds_need_lc=yes
9740 # This is similar to how AIX traditionally builds its shared libraries.
9741 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'
9749 # see comment about AmigaOS4 .so support
9750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 archive_expsym_cmds=''
9754 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)'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_minus_L=yes
9762 export_dynamic_flag_spec=-rdynamic
9765 cygwin* | mingw* | pw32* | cegcc*)
9766 # When not using gcc, we currently assume that we are using
9767 # Microsoft Visual C++.
9768 # hardcode_libdir_flag_spec is actually meaningless, as there is
9769 # no search path for DLLs.
9770 case $cc_basename in
9773 hardcode_libdir_flag_spec=' '
9774 allow_undefined_flag=unsupported
9775 always_export_symbols=yes
9777 # Tell ltmain to make .lib files, not .a files.
9779 # Tell ltmain to make .dll files, not .so files.
9781 # FIXME: Setting linknames here is a bad hack.
9782 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9783 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9784 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9786 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9788 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9790 # The linker will not automatically build a static lib if we build a DLL.
9791 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9792 enable_shared_with_static_runtimes=yes
9793 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9794 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9796 old_postinstall_cmds='chmod 644 $oldlib'
9797 postlink_cmds='lt_outputfile="@OUTPUT@"~
9798 lt_tool_outputfile="@TOOL_OUTPUT@"~
9799 case $lt_outputfile in
9802 lt_outputfile="$lt_outputfile.exe"
9803 lt_tool_outputfile="$lt_tool_outputfile.exe"
9806 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9807 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9808 $RM "$lt_outputfile.manifest";
9812 # Assume MSVC wrapper
9813 hardcode_libdir_flag_spec=' '
9814 allow_undefined_flag=unsupported
9815 # Tell ltmain to make .lib files, not .a files.
9817 # Tell ltmain to make .dll files, not .so files.
9819 # FIXME: Setting linknames here is a bad hack.
9820 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9821 # The linker will automatically build a .lib file if we build a DLL.
9822 old_archive_from_new_cmds='true'
9823 # FIXME: Should let the user specify the lib program.
9824 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9825 enable_shared_with_static_runtimes=yes
9830 darwin* | rhapsody*)
9833 archive_cmds_need_lc=no
9835 hardcode_automatic=yes
9836 hardcode_shlibpath_var=unsupported
9837 if test "$lt_cv_ld_force_load" = "yes"; then
9838 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\"`'
9841 whole_archive_flag_spec=''
9843 link_all_deplibs=yes
9844 allow_undefined_flag="$_lt_dar_allow_undefined"
9845 case $cc_basename in
9846 ifort*) _lt_dar_can_shared=yes ;;
9847 *) _lt_dar_can_shared=$GCC ;;
9849 if test "$_lt_dar_can_shared" = "yes"; then
9850 output_verbose_link_cmd=func_echo_all
9851 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9852 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9853 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}"
9854 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}"
9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_libdir_flag_spec='-L$libdir'
9865 hardcode_shlibpath_var=no
9868 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9869 # support. Future versions do this automatically, but an explicit c++rt0.o
9870 # does not break anything, and helps significantly (at the cost of a little
9873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9874 hardcode_libdir_flag_spec='-R$libdir'
9876 hardcode_shlibpath_var=no
9879 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9883 hardcode_minus_L=yes
9884 hardcode_shlibpath_var=no
9887 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9888 freebsd* | dragonfly*)
9889 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9890 hardcode_libdir_flag_spec='-R$libdir'
9892 hardcode_shlibpath_var=no
9896 if test "$GCC" = yes; then
9897 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'
9899 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'
9901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902 hardcode_libdir_separator=:
9905 # hardcode_minus_L: Not really in the search PATH,
9906 # but as the default location of the library.
9907 hardcode_minus_L=yes
9908 export_dynamic_flag_spec='${wl}-E'
9912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9913 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9915 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9917 if test "$with_gnu_ld" = no; then
9918 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9919 hardcode_libdir_separator=:
9921 hardcode_direct_absolute=yes
9922 export_dynamic_flag_spec='${wl}-E'
9923 # hardcode_minus_L: Not really in the search PATH,
9924 # but as the default location of the library.
9925 hardcode_minus_L=yes
9930 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9933 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9939 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9945 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9952 # Older versions of the 11.00 compiler do not understand -b yet
9953 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9955 $as_echo_n "checking if $CC understands -b... " >&6; }
9956 if ${lt_cv_prog_compiler__b+:} false; then :
9957 $as_echo_n "(cached) " >&6
9959 lt_cv_prog_compiler__b=no
9960 save_LDFLAGS="$LDFLAGS"
9961 LDFLAGS="$LDFLAGS -b"
9962 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9963 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9964 # The linker can only warn and ignore the option if not recognized
9965 # So say no if there are warnings
9966 if test -s conftest.err; then
9967 # Append any errors to the config.log.
9968 cat conftest.err 1>&5
9969 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9971 if diff conftest.exp conftest.er2 >/dev/null; then
9972 lt_cv_prog_compiler__b=yes
9975 lt_cv_prog_compiler__b=yes
9979 LDFLAGS="$save_LDFLAGS"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9983 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9985 if test x"$lt_cv_prog_compiler__b" = xyes; then
9986 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9994 if test "$with_gnu_ld" = no; then
9995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9996 hardcode_libdir_separator=:
10001 hardcode_shlibpath_var=no
10004 hardcode_direct=yes
10005 hardcode_direct_absolute=yes
10006 export_dynamic_flag_spec='${wl}-E'
10008 # hardcode_minus_L: Not really in the search PATH,
10009 # but as the default location of the library.
10010 hardcode_minus_L=yes
10016 irix5* | irix6* | nonstopux*)
10017 if test "$GCC" = yes; then
10018 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'
10019 # Try to use the -exported_symbol ld option, if it does not
10020 # work, assume that -exports_file does not work either and
10021 # implicitly export all symbols.
10022 # This should be the same for all languages, so no per-tag cache variable.
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10024 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10025 if ${lt_cv_irix_exported_symbol+:} false; then :
10026 $as_echo_n "(cached) " >&6
10028 save_LDFLAGS="$LDFLAGS"
10029 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 int foo (void) { return 0; }
10034 if ac_fn_c_try_link "$LINENO"; then :
10035 lt_cv_irix_exported_symbol=yes
10037 lt_cv_irix_exported_symbol=no
10039 rm -f core conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LDFLAGS="$save_LDFLAGS"
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10044 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10045 if test "$lt_cv_irix_exported_symbol" = yes; then
10046 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'
10049 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'
10050 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'
10052 archive_cmds_need_lc='no'
10053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10054 hardcode_libdir_separator=:
10056 link_all_deplibs=yes
10060 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10063 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10065 hardcode_libdir_flag_spec='-R$libdir'
10066 hardcode_direct=yes
10067 hardcode_shlibpath_var=no
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_direct=yes
10073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074 hardcode_libdir_separator=:
10075 hardcode_shlibpath_var=no
10082 if test -f /usr/libexec/ld.so; then
10083 hardcode_direct=yes
10084 hardcode_shlibpath_var=no
10085 hardcode_direct_absolute=yes
10086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10089 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10090 export_dynamic_flag_spec='${wl}-E'
10093 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10094 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10095 hardcode_libdir_flag_spec='-R$libdir'
10098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10109 hardcode_libdir_flag_spec='-L$libdir'
10110 hardcode_minus_L=yes
10111 allow_undefined_flag=unsupported
10112 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'
10113 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10117 if test "$GCC" = yes; then
10118 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10119 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'
10121 allow_undefined_flag=' -expect_unresolved \*'
10122 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'
10124 archive_cmds_need_lc='no'
10125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10126 hardcode_libdir_separator=:
10129 osf4* | osf5*) # as osf3* with the addition of -msym flag
10130 if test "$GCC" = yes; then
10131 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10132 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'
10133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135 allow_undefined_flag=' -expect_unresolved \*'
10136 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'
10137 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~
10138 $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'
10140 # Both c and cxx compiler support -rpath directly
10141 hardcode_libdir_flag_spec='-rpath $libdir'
10143 archive_cmds_need_lc='no'
10144 hardcode_libdir_separator=:
10148 no_undefined_flag=' -z defs'
10149 if test "$GCC" = yes; then
10151 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10153 $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'
10155 case `$CC -V 2>&1` in
10158 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10160 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10164 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10166 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10170 hardcode_libdir_flag_spec='-R$libdir'
10171 hardcode_shlibpath_var=no
10173 solaris2.[0-5] | solaris2.[0-5].*) ;;
10175 # The compiler driver will combine and reorder linker options,
10176 # but understands `-z linker_flag'. GCC discards it without `$wl',
10177 # but is careful enough not to reorder.
10178 # Supported since Solaris 2.6 (maybe 2.5.1?)
10179 if test "$GCC" = yes; then
10180 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10182 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10186 link_all_deplibs=yes
10190 if test "x$host_vendor" = xsequent; then
10191 # Use $CC to link under sequent, because it throws in some extra .o
10192 # files that make .init and .fini sections work.
10193 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10195 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_libdir_flag_spec='-L$libdir'
10198 hardcode_direct=yes
10199 hardcode_minus_L=yes
10200 hardcode_shlibpath_var=no
10204 case $host_vendor in
10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_direct=yes # is this really true???
10210 ## LD is ld it makes a PLAMLIB
10211 ## CC just makes a GrossModule.
10212 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10213 reload_cmds='$CC -r -o $output$reload_objs'
10217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10221 runpath_var='LD_RUN_PATH'
10222 hardcode_shlibpath_var=no
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_shlibpath_var=no
10228 export_dynamic_flag_spec='-Bexport'
10232 if test -d /usr/nec; then
10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10234 hardcode_shlibpath_var=no
10235 runpath_var=LD_RUN_PATH
10236 hardcode_runpath_var=yes
10241 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10242 no_undefined_flag='${wl}-z,text'
10243 archive_cmds_need_lc=no
10244 hardcode_shlibpath_var=no
10245 runpath_var='LD_RUN_PATH'
10247 if test "$GCC" = yes; then
10248 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256 sysv5* | sco3.2v5* | sco5v6*)
10257 # Note: We can NOT use -z defs as we might desire, because we do not
10258 # link with -lc, and that would cause any symbols used from libc to
10259 # always be unresolved, which means just about no library would
10260 # ever link correctly. If we're not using GNU ld we use -z text
10261 # though, which does catch some bad symbols but isn't as heavy-handed
10263 no_undefined_flag='${wl}-z,text'
10264 allow_undefined_flag='${wl}-z,nodefs'
10265 archive_cmds_need_lc=no
10266 hardcode_shlibpath_var=no
10267 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10268 hardcode_libdir_separator=':'
10269 link_all_deplibs=yes
10270 export_dynamic_flag_spec='${wl}-Bexport'
10271 runpath_var='LD_RUN_PATH'
10273 if test "$GCC" = yes; then
10274 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10278 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10284 hardcode_libdir_flag_spec='-L$libdir'
10285 hardcode_shlibpath_var=no
10293 if test x$host_vendor = xsni; then
10295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10296 export_dynamic_flag_spec='${wl}-Blargedynsym'
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10303 $as_echo "$ld_shlibs" >&6; }
10304 test "$ld_shlibs" = no && can_build_shared=no
10306 with_gnu_ld=$with_gnu_ld
10323 # Do we need to explicitly link libc?
10325 case "x$archive_cmds_need_lc" in
10327 # Assume -lc should be added
10328 archive_cmds_need_lc=yes
10330 if test "$enable_shared" = yes && test "$GCC" = yes; then
10331 case $archive_cmds in
10333 # FIXME: we may have to deal with multi-command sequences.
10336 # Test whether the compiler implicitly links with -lc since on some
10337 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10338 # to ld, don't add -lc before -lgcc.
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10340 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10341 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10342 $as_echo_n "(cached) " >&6
10345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10348 (eval $ac_compile) 2>&5
10350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10351 test $ac_status = 0; } 2>conftest.err; then
10354 libobjs=conftest.$ac_objext
10356 wl=$lt_prog_compiler_wl
10357 pic_flag=$lt_prog_compiler_pic
10363 lt_save_allow_undefined_flag=$allow_undefined_flag
10364 allow_undefined_flag=
10365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10366 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10369 test $ac_status = 0; }
10371 lt_cv_archive_cmds_need_lc=no
10373 lt_cv_archive_cmds_need_lc=yes
10375 allow_undefined_flag=$lt_save_allow_undefined_flag
10377 cat conftest.err 1>&5
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10383 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10384 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10543 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10545 if test "$GCC" = yes; then
10547 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10548 *) lt_awk_arg="/^libraries:/" ;;
10551 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10552 *) lt_sed_strip_eq="s,=/,/,g" ;;
10554 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10555 case $lt_search_path_spec in
10557 # if the path contains ";" then we assume it to be the separator
10558 # otherwise default to the standard path separator (i.e. ":") - it is
10559 # assumed that no part of a normal pathname contains ";" but that should
10560 # okay in the real world where ";" in dirpaths is itself problematic.
10561 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10564 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10567 # Ok, now we have the path, separated by spaces, we can step through it
10568 # and add multilib dir if necessary.
10569 lt_tmp_lt_search_path_spec=
10570 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10571 for lt_sys_path in $lt_search_path_spec; do
10572 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10573 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10575 test -d "$lt_sys_path" && \
10576 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10579 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10580 BEGIN {RS=" "; FS="/|\n";} {
10583 for (lt_i = NF; lt_i > 0; lt_i--) {
10584 if ($lt_i != "" && $lt_i != ".") {
10585 if ($lt_i == "..") {
10588 if (lt_count == 0) {
10589 lt_foo="/" $lt_i lt_foo;
10596 if (lt_foo != "") { lt_freq[lt_foo]++; }
10597 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10599 # AWK program above erroneously prepends '/' to C:/dos/paths
10602 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10603 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10605 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10609 library_names_spec=
10610 libname_spec='lib$name'
10614 postuninstall_cmds=
10618 shlibpath_overrides_runpath=unknown
10620 dynamic_linker="$host_os ld.so"
10621 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10622 need_lib_prefix=unknown
10623 hardcode_into_libs=no
10625 # when you set need_version to no, make sure it does not cause -set_version
10626 # flags to be left without arguments
10627 need_version=unknown
10631 version_type=linux # correct to gnu/linux during the next big refactor
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10633 shlibpath_var=LIBPATH
10635 # AIX 3 has no versioning support, so we append a major version to the name.
10636 soname_spec='${libname}${release}${shared_ext}$major'
10640 version_type=linux # correct to gnu/linux during the next big refactor
10643 hardcode_into_libs=yes
10644 if test "$host_cpu" = ia64; then
10645 # AIX 5 supports IA64
10646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10647 shlibpath_var=LD_LIBRARY_PATH
10649 # With GCC up to 2.95.x, collect2 would create an import file
10650 # for dependence libraries. The import file would start with
10651 # the line `#! .'. This would cause the generated library to
10652 # depend on `.', always an invalid library. This was fixed in
10653 # development snapshots of GCC prior to 3.0.
10655 aix4 | aix4.[01] | aix4.[01].*)
10656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10658 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10661 can_build_shared=no
10665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10666 # soname into executable. Probably we can add versioning support to
10667 # collect2, so additional links can be useful in future.
10668 if test "$aix_use_runtimelinking" = yes; then
10669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10670 # instead of lib<name>.a to let people know that these are not
10671 # typical AIX shared libraries.
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674 # We preserve .a as extension for shared libraries through AIX4.2
10675 # and later when we are not doing run time linking.
10676 library_names_spec='${libname}${release}.a $libname.a'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10679 shlibpath_var=LIBPATH
10686 # Since July 2007 AmigaOS4 officially supports .so libraries.
10687 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 library_names_spec='$libname.ixlibrary $libname.a'
10692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10693 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'
10699 library_names_spec='${libname}${shared_ext}'
10700 dynamic_linker="$host_os ld.so"
10701 shlibpath_var=LIBRARY_PATH
10705 version_type=linux # correct to gnu/linux during the next big refactor
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10713 # the default ld.so.conf also contains /usr/contrib/lib and
10714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10715 # libtool to hard-code these into programs
10718 cygwin* | mingw* | pw32* | cegcc*)
10719 version_type=windows
10724 case $GCC,$cc_basename in
10727 library_names_spec='$libname.dll.a'
10728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10729 postinstall_cmds='base_file=`basename \${file}`~
10730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10731 dldir=$destdir/`dirname \$dlpath`~
10732 test -d \$dldir || mkdir -p \$dldir~
10733 $install_prog $dir/$dlname \$dldir/$dlname~
10734 chmod a+x \$dldir/$dlname~
10735 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10736 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10739 dlpath=$dir/\$dldll~
10741 shlibpath_overrides_runpath=yes
10745 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10746 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10748 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10751 # MinGW DLLs use traditional 'lib' prefix
10752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10755 # pw32 DLLs use 'pw' prefix rather than 'lib'
10756 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759 dynamic_linker='Win32 ld.exe'
10764 libname_spec='$name'
10765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10766 library_names_spec='${libname}.dll.lib'
10770 sys_lib_search_path_spec=
10773 for lt_path in $LIB
10776 # Let DOS variable expansion print the short 8.3 style file name.
10777 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10778 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10781 # Convert to MSYS style.
10782 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10785 # Convert to unix form, then to dos form, then back to unix form
10786 # but this time dos style (no spaces!) so that the unix form looks
10787 # like /cygdrive/c/PROGRA~1:/cygdr...
10788 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10789 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10790 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10793 sys_lib_search_path_spec="$LIB"
10794 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10795 # It is most probably a Windows format PATH.
10796 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10800 # FIXME: find the short name or the path components, as spaces are
10801 # common. (e.g. "Program Files" -> "PROGRA~1")
10805 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10806 postinstall_cmds='base_file=`basename \${file}`~
10807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10808 dldir=$destdir/`dirname \$dlpath`~
10809 test -d \$dldir || mkdir -p \$dldir~
10810 $install_prog $dir/$dlname \$dldir/$dlname'
10811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10812 dlpath=$dir/\$dldll~
10814 shlibpath_overrides_runpath=yes
10815 dynamic_linker='Win32 link.exe'
10819 # Assume MSVC wrapper
10820 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10821 dynamic_linker='Win32 ld.exe'
10824 # FIXME: first we should search . and the directory the executable is in
10828 darwin* | rhapsody*)
10829 dynamic_linker="$host_os dyld"
10830 version_type=darwin
10833 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10834 soname_spec='${libname}${release}${major}$shared_ext'
10835 shlibpath_overrides_runpath=yes
10836 shlibpath_var=DYLD_LIBRARY_PATH
10837 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10839 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10840 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10844 version_type=linux # correct to gnu/linux during the next big refactor
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 shlibpath_var=LD_LIBRARY_PATH
10852 freebsd* | dragonfly*)
10853 # DragonFly does not have aout. When/if they implement a new
10854 # versioning mechanism, adjust this.
10855 if test -x /usr/bin/objformat; then
10856 objformat=`/usr/bin/objformat`
10859 freebsd[23].*) objformat=aout ;;
10860 *) objformat=elf ;;
10863 version_type=freebsd-$objformat
10864 case $version_type in
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10875 shlibpath_var=LD_LIBRARY_PATH
10878 shlibpath_overrides_runpath=yes
10880 freebsd3.[01]* | freebsdelf3.[01]*)
10881 shlibpath_overrides_runpath=yes
10882 hardcode_into_libs=yes
10884 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10885 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10886 shlibpath_overrides_runpath=no
10887 hardcode_into_libs=yes
10889 *) # from 4.6 on, and DragonFly
10890 shlibpath_overrides_runpath=yes
10891 hardcode_into_libs=yes
10897 version_type=linux # correct to gnu/linux during the next big refactor
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10908 version_type=linux # correct to gnu/linux during the next big refactor
10911 dynamic_linker="$host_os runtime_loader"
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LIBRARY_PATH
10915 shlibpath_overrides_runpath=yes
10916 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10917 hardcode_into_libs=yes
10920 hpux9* | hpux10* | hpux11*)
10921 # Give a soname corresponding to the major version so that dld.sl refuses to
10922 # link against other versions.
10929 hardcode_into_libs=yes
10930 dynamic_linker="$host_os dld.so"
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 if test "X$HPUX_IA64_MODE" = X32; then
10936 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10938 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10944 hardcode_into_libs=yes
10945 dynamic_linker="$host_os dld.sl"
10946 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955 dynamic_linker="$host_os dld.sl"
10956 shlibpath_var=SHLIB_PATH
10957 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10962 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10963 postinstall_cmds='chmod 555 $lib'
10964 # or fails outright, so override atomically:
10965 install_override_mode=555
10969 version_type=linux # correct to gnu/linux during the next big refactor
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=no
10977 hardcode_into_libs=yes
10980 irix5* | irix6* | nonstopux*)
10982 nonstopux*) version_type=nonstopux ;;
10984 if test "$lt_cv_prog_gnu_ld" = yes; then
10985 version_type=linux # correct to gnu/linux during the next big refactor
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10995 irix5* | nonstopux*)
10996 libsuff= shlibsuff=
10999 case $LD in # libtool.m4 will add one of these switches to LD
11000 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11001 libsuff= shlibsuff= libmagic=32-bit;;
11002 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11003 libsuff=32 shlibsuff=N32 libmagic=N32;;
11004 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11005 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11006 *) libsuff= shlibsuff= libmagic=never-match;;
11010 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11011 shlibpath_overrides_runpath=no
11012 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11013 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11014 hardcode_into_libs=yes
11017 # No shared lib support for Linux oldld, aout, or coff.
11018 linux*oldld* | linux*aout* | linux*coff*)
11022 # This must be glibc/ELF.
11023 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11024 version_type=linux # correct to gnu/linux during the next big refactor
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=no
11033 # Some binutils ld are patched to set DT_RUNPATH
11034 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11035 $as_echo_n "(cached) " >&6
11037 lt_cv_shlibpath_overrides_runpath=no
11038 save_LDFLAGS=$LDFLAGS
11039 save_libdir=$libdir
11040 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11041 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11055 lt_cv_shlibpath_overrides_runpath=yes
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LDFLAGS=$save_LDFLAGS
11061 libdir=$save_libdir
11065 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11067 # This implies no fast_install, which is unacceptable.
11068 # Some rework will be needed to allow for fast_install
11069 # before this can be enabled.
11070 hardcode_into_libs=yes
11072 # Add ABI-specific directories to the system library path.
11073 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11075 # Append ld.so.conf contents to the search path
11076 if test -f /etc/ld.so.conf; then
11077 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' ' '`
11078 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11082 # We used to test for /lib/ld.so.1 and disable shared libraries on
11083 # powerpc, because MkLinux only supported shared libraries with the
11084 # GNU dynamic linker. Since this was broken with cross compilers,
11085 # most powerpc-linux boxes support dynamic linking these days and
11086 # people can always --disable-shared, the test was removed, and we
11087 # assume the GNU/Linux dynamic linker is in use.
11088 dynamic_linker='GNU/Linux ld.so'
11095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11098 dynamic_linker='NetBSD (a.out) ld.so'
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 dynamic_linker='NetBSD ld.elf_so'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
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 shlibpath_var=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath=yes
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 soname_spec='${libname}${release}${shared_ext}$major'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=no
11124 hardcode_into_libs=yes
11125 dynamic_linker='ldqnx.so'
11130 sys_lib_dlsearch_path_spec="/usr/lib"
11132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11135 *) need_version=no ;;
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11142 openbsd2.[89] | openbsd2.[89].*)
11143 shlibpath_overrides_runpath=no
11146 shlibpath_overrides_runpath=yes
11150 shlibpath_overrides_runpath=yes
11155 libname_spec='$name'
11158 library_names_spec='$libname${shared_ext} $libname.a'
11159 dynamic_linker='OS/2 ld.exe'
11160 shlibpath_var=LIBPATH
11163 osf3* | osf4* | osf5*)
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11179 version_type=linux # correct to gnu/linux during the next big refactor
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes
11186 hardcode_into_libs=yes
11187 # ldd complains unless libraries are executable
11188 postinstall_cmds='chmod +x $lib'
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 if test "$with_gnu_ld" = yes; then
11204 version_type=linux # correct to gnu/linux during the next big refactor
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 case $host_vendor in
11210 shlibpath_overrides_runpath=no
11212 runpath_var=LD_RUN_PATH
11220 shlibpath_overrides_runpath=no
11221 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11227 if test -d /usr/nec ;then
11228 version_type=linux # correct to gnu/linux during the next big refactor
11229 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11230 soname_spec='$libname${shared_ext}.$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11236 version_type=freebsd-elf
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 shlibpath_overrides_runpath=yes
11243 hardcode_into_libs=yes
11244 if test "$with_gnu_ld" = yes; then
11245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11247 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11250 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11254 sys_lib_dlsearch_path_spec='/usr/lib'
11258 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11259 version_type=linux # correct to gnu/linux during the next big refactor
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=no
11265 hardcode_into_libs=yes
11269 version_type=linux # correct to gnu/linux during the next big refactor
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11280 $as_echo "$dynamic_linker" >&6; }
11281 test "$dynamic_linker" = no && can_build_shared=no
11283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11284 if test "$GCC" = yes; then
11285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11288 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11291 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11387 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11389 if test -n "$hardcode_libdir_flag_spec" ||
11390 test -n "$runpath_var" ||
11391 test "X$hardcode_automatic" = "Xyes" ; then
11393 # We can hardcode non-existent directories.
11394 if test "$hardcode_direct" != no &&
11395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11396 # have to relink, otherwise we might link with an installed library
11397 # when we should be linking with a yet-to-be-installed one
11398 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11399 test "$hardcode_minus_L" != no; then
11400 # Linking always hardcodes the temporary library directory.
11401 hardcode_action=relink
11403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11404 hardcode_action=immediate
11407 # We cannot hardcode anything, or else we can only hardcode existing
11409 hardcode_action=unsupported
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11412 $as_echo "$hardcode_action" >&6; }
11414 if test "$hardcode_action" = relink ||
11415 test "$inherit_rpath" = yes; then
11416 # Fast installation is not supported
11417 enable_fast_install=no
11418 elif test "$shlibpath_overrides_runpath" = yes ||
11419 test "$enable_shared" = no; then
11420 # Fast installation is not necessary
11421 enable_fast_install=needless
11429 if test "x$enable_dlopen" != xyes; then
11430 enable_dlopen=unknown
11431 enable_dlopen_self=unknown
11432 enable_dlopen_self_static=unknown
11439 lt_cv_dlopen="load_add_on"
11441 lt_cv_dlopen_self=yes
11444 mingw* | pw32* | cegcc*)
11445 lt_cv_dlopen="LoadLibrary"
11450 lt_cv_dlopen="dlopen"
11455 # if libdl is installed we need to link against it
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11458 if ${ac_cv_lib_dl_dlopen+:} false; then :
11459 $as_echo_n "(cached) " >&6
11461 ac_check_lib_save_LIBS=$LIBS
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11466 /* Override any GCC internal prototype to avoid an error.
11467 Use char because int might match the return type of a GCC
11468 builtin and then its argument prototype would still apply. */
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_lib_dl_dlopen=yes
11484 ac_cv_lib_dl_dlopen=no
11486 rm -f core conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11488 LIBS=$ac_check_lib_save_LIBS
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11491 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11492 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11493 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11496 lt_cv_dlopen="dyld"
11498 lt_cv_dlopen_self=yes
11505 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11506 if test "x$ac_cv_func_shl_load" = xyes; then :
11507 lt_cv_dlopen="shl_load"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11510 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11511 if ${ac_cv_lib_dld_shl_load+:} false; then :
11512 $as_echo_n "(cached) " >&6
11514 ac_check_lib_save_LIBS=$LIBS
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11529 return shl_load ();
11534 if ac_fn_c_try_link "$LINENO"; then :
11535 ac_cv_lib_dld_shl_load=yes
11537 ac_cv_lib_dld_shl_load=no
11539 rm -f core conftest.err conftest.$ac_objext \
11540 conftest$ac_exeext conftest.$ac_ext
11541 LIBS=$ac_check_lib_save_LIBS
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11544 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11545 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11546 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11548 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11549 if test "x$ac_cv_func_dlopen" = xyes; then :
11550 lt_cv_dlopen="dlopen"
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11553 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11554 if ${ac_cv_lib_dl_dlopen+:} false; then :
11555 $as_echo_n "(cached) " >&6
11557 ac_check_lib_save_LIBS=$LIBS
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 ac_cv_lib_dl_dlopen=yes
11580 ac_cv_lib_dl_dlopen=no
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11587 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11588 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11592 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11593 if ${ac_cv_lib_svld_dlopen+:} false; then :
11594 $as_echo_n "(cached) " >&6
11596 ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-lsvld $LIBS"
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11601 /* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11616 if ac_fn_c_try_link "$LINENO"; then :
11617 ac_cv_lib_svld_dlopen=yes
11619 ac_cv_lib_svld_dlopen=no
11621 rm -f core conftest.err conftest.$ac_objext \
11622 conftest$ac_exeext conftest.$ac_ext
11623 LIBS=$ac_check_lib_save_LIBS
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11626 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11627 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11631 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11632 if ${ac_cv_lib_dld_dld_link+:} false; then :
11633 $as_echo_n "(cached) " >&6
11635 ac_check_lib_save_LIBS=$LIBS
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11650 return dld_link ();
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_lib_dld_dld_link=yes
11658 ac_cv_lib_dld_dld_link=no
11660 rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 LIBS=$ac_check_lib_save_LIBS
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11665 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11666 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11667 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11688 if test "x$lt_cv_dlopen" != xno; then
11694 case $lt_cv_dlopen in
11696 save_CPPFLAGS="$CPPFLAGS"
11697 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11699 save_LDFLAGS="$LDFLAGS"
11700 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11703 LIBS="$lt_cv_dlopen_libs $LIBS"
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11706 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11707 if ${lt_cv_dlopen_self+:} false; then :
11708 $as_echo_n "(cached) " >&6
11710 if test "$cross_compiling" = yes; then :
11711 lt_cv_dlopen_self=cross
11713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11714 lt_status=$lt_dlunknown
11715 cat > conftest.$ac_ext <<_LT_EOF
11716 #line $LINENO "configure"
11717 #include "confdefs.h"
11726 # define LT_DLGLOBAL RTLD_GLOBAL
11729 # define LT_DLGLOBAL DL_GLOBAL
11731 # define LT_DLGLOBAL 0
11735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11736 find out it does not work in some platform. */
11737 #ifndef LT_DLLAZY_OR_NOW
11739 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11742 # define LT_DLLAZY_OR_NOW DL_LAZY
11745 # define LT_DLLAZY_OR_NOW RTLD_NOW
11748 # define LT_DLLAZY_OR_NOW DL_NOW
11750 # define LT_DLLAZY_OR_NOW 0
11757 /* When -fvisbility=hidden is used, assume the code has been annotated
11758 correspondingly for the symbols needed. */
11759 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11760 int fnord () __attribute__((visibility("default")));
11763 int fnord () { return 42; }
11766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11767 int status = $lt_dlunknown;
11771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11774 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11775 else puts (dlerror ());
11777 /* dlclose (self); */
11785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11786 (eval $ac_link) 2>&5
11788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11789 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11790 (./conftest; exit; ) >&5 2>/dev/null
11792 case x$lt_status in
11793 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11794 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11795 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11798 # compilation failed
11799 lt_cv_dlopen_self=no
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11807 $as_echo "$lt_cv_dlopen_self" >&6; }
11809 if test "x$lt_cv_dlopen_self" = xyes; then
11810 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11812 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11813 if ${lt_cv_dlopen_self_static+:} false; then :
11814 $as_echo_n "(cached) " >&6
11816 if test "$cross_compiling" = yes; then :
11817 lt_cv_dlopen_self_static=cross
11819 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11820 lt_status=$lt_dlunknown
11821 cat > conftest.$ac_ext <<_LT_EOF
11822 #line $LINENO "configure"
11823 #include "confdefs.h"
11832 # define LT_DLGLOBAL RTLD_GLOBAL
11835 # define LT_DLGLOBAL DL_GLOBAL
11837 # define LT_DLGLOBAL 0
11841 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11842 find out it does not work in some platform. */
11843 #ifndef LT_DLLAZY_OR_NOW
11845 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11848 # define LT_DLLAZY_OR_NOW DL_LAZY
11851 # define LT_DLLAZY_OR_NOW RTLD_NOW
11854 # define LT_DLLAZY_OR_NOW DL_NOW
11856 # define LT_DLLAZY_OR_NOW 0
11863 /* When -fvisbility=hidden is used, assume the code has been annotated
11864 correspondingly for the symbols needed. */
11865 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11866 int fnord () __attribute__((visibility("default")));
11869 int fnord () { return 42; }
11872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11873 int status = $lt_dlunknown;
11877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11880 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11881 else puts (dlerror ());
11883 /* dlclose (self); */
11891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11892 (eval $ac_link) 2>&5
11894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11895 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11896 (./conftest; exit; ) >&5 2>/dev/null
11898 case x$lt_status in
11899 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11900 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11901 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11904 # compilation failed
11905 lt_cv_dlopen_self_static=no
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11913 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11916 CPPFLAGS="$save_CPPFLAGS"
11917 LDFLAGS="$save_LDFLAGS"
11922 case $lt_cv_dlopen_self in
11923 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11924 *) enable_dlopen_self=unknown ;;
11927 case $lt_cv_dlopen_self_static in
11928 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11929 *) enable_dlopen_self_static=unknown ;;
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11952 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11953 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11954 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11955 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11957 $as_echo "yes" >&6; }
11959 # FIXME - insert some real tests, host_os isn't really good enough
11962 if test -n "$STRIP" ; then
11963 striplib="$STRIP -x"
11964 old_striplib="$STRIP -S"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 $as_echo "yes" >&6; }
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11990 # Report which library types will actually be built
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11992 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11994 $as_echo "$can_build_shared" >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11997 $as_echo_n "checking whether to build shared libraries... " >&6; }
11998 test "$can_build_shared" = "no" && enable_shared=no
12000 # On AIX, shared libraries and static libraries use the same namespace, and
12001 # are all built from PIC.
12004 test "$enable_shared" = yes && enable_static=no
12005 if test -n "$RANLIB"; then
12006 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12007 postinstall_cmds='$RANLIB $lib'
12012 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12013 test "$enable_shared" = yes && enable_static=no
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12018 $as_echo "$enable_shared" >&6; }
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12021 $as_echo_n "checking whether to build static libraries... " >&6; }
12022 # Make sure either enable_shared or enable_static is yes.
12023 test "$enable_shared" = yes || enable_static=yes
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12025 $as_echo "$enable_static" >&6; }
12032 ac_cpp='$CPP $CPPFLAGS'
12033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12053 ac_config_commands="$ac_config_commands libtool"
12058 # Only expand once:
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12064 $as_echo_n "checking for C compiler vendor... " >&6; }
12065 if ${ax_cv_c_compiler_vendor+:} false; then :
12066 $as_echo_n "(cached) " >&6
12068 # note: don't check for gcc first since some other compilers define __GNUC__
12069 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
12070 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
12071 pathscale: __PATHCC__,__PATHSCALE__
12074 sun: __SUNPRO_C,__SUNPRO_CC
12075 hp: __HP_cc,__HP_aCC
12076 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12077 borland: __BORLANDC__,__TURBOC__
12083 microsoft: _MSC_VER
12084 metrowerks: __MWERKS__
12085 watcom: __WATCOMC__
12088 for ventest in $vendors; do
12090 *:) vendor=$ventest; continue ;;
12091 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12108 if ac_fn_c_try_compile "$LINENO"; then :
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12117 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12124 # Check whether --enable-portable-binary was given.
12125 if test "${enable_portable_binary+set}" = set; then :
12126 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12128 acx_maxopt_portable=no
12132 # Try to determine "good" native compiler flags if none specified via CFLAGS
12133 if test "$ac_test_CFLAGS" != "set"; then
12135 case $ax_cv_c_compiler_vendor in
12136 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12137 if test "x$acx_maxopt_portable" = xno; then
12138 CFLAGS="$CFLAGS -arch host"
12141 sun) CFLAGS="-native -fast -xO5 -dalign"
12142 if test "x$acx_maxopt_portable" = xyes; then
12143 CFLAGS="$CFLAGS -xarch=generic"
12146 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
12147 if test "x$acx_maxopt_portable" = xyes; then
12148 CFLAGS="$CFLAGS +DAportable"
12151 ibm) if test "x$acx_maxopt_portable" = xno; then
12152 xlc_opt="-qarch=auto -qtune=auto"
12154 xlc_opt="-qtune=auto"
12156 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12158 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12159 if eval \${$as_CACHEVAR+:} false; then :
12160 $as_echo_n "(cached) " >&6
12163 ax_check_save_flags=$CFLAGS
12164 CFLAGS="$CFLAGS $xlc_opt"
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12176 if ac_fn_c_try_compile "$LINENO"; then :
12177 eval "$as_CACHEVAR=yes"
12179 eval "$as_CACHEVAR=no"
12181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 CFLAGS=$ax_check_save_flags
12184 eval ac_res=\$$as_CACHEVAR
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12186 $as_echo "$ac_res" >&6; }
12187 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12188 CFLAGS="-O3 -qansialias -w $xlc_opt"
12190 CFLAGS="-O3 -qansialias -w"
12191 echo "******************************************************"
12192 echo "* You seem to have the IBM C compiler. It is *"
12193 echo "* recommended for best performance that you use: *"
12195 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12197 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
12198 echo "* CPU you have. (Set the CFLAGS environment var. *"
12199 echo "* and re-run configure.) For more info, man cc. *"
12200 echo "******************************************************"
12205 intel) CFLAGS="-O3 -ansi_alias"
12206 if test "x$acx_maxopt_portable" = xno; then
12207 icc_archflag=unknown
12211 # icc accepts gcc assembly syntax, so these should work:
12214 ac_cpp='$CPP $CPPFLAGS'
12215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12220 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12221 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12222 $as_echo_n "(cached) " >&6
12224 if test "$cross_compiling" = yes; then :
12225 ax_cv_gcc_x86_cpuid_0=unknown
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12234 int op = 0, eax, ebx, ecx, edx;
12237 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12239 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12240 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12248 if ac_fn_c_try_run "$LINENO"; then :
12249 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12251 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12254 conftest.$ac_objext conftest.beam conftest.$ac_ext
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12259 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12261 ac_cpp='$CPP $CPPFLAGS'
12262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12269 ac_cpp='$CPP $CPPFLAGS'
12270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12275 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12276 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12277 $as_echo_n "(cached) " >&6
12279 if test "$cross_compiling" = yes; then :
12280 ax_cv_gcc_x86_cpuid_1=unknown
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12289 int op = 1, eax, ebx, ecx, edx;
12292 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12294 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12295 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12303 if ac_fn_c_try_run "$LINENO"; then :
12304 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12306 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12309 conftest.$ac_objext conftest.beam conftest.$ac_ext
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12314 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12316 ac_cpp='$CPP $CPPFLAGS'
12317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12323 *:756e6547:*:*) # Intel
12324 case $ax_cv_gcc_x86_cpuid_1 in
12325 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12326 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12327 *f??:*:*:*) icc_flags="-xN -xW -xK";;
12331 if test "x$icc_flags" != x; then
12332 for flag in $icc_flags; do
12333 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12335 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12336 if eval \${$as_CACHEVAR+:} false; then :
12337 $as_echo_n "(cached) " >&6
12340 ax_check_save_flags=$CFLAGS
12341 CFLAGS="$CFLAGS $flag"
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12353 if ac_fn_c_try_compile "$LINENO"; then :
12354 eval "$as_CACHEVAR=yes"
12356 eval "$as_CACHEVAR=no"
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 CFLAGS=$ax_check_save_flags
12361 eval ac_res=\$$as_CACHEVAR
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12363 $as_echo "$ac_res" >&6; }
12364 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12365 icc_archflag=$flag; break
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12373 $as_echo_n "checking for icc architecture flag... " >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12375 $as_echo "$icc_archflag" >&6; }
12376 if test "x$icc_archflag" != xunknown; then
12377 CFLAGS="$CFLAGS $icc_archflag"
12383 # default optimization flags for gcc on all systems
12384 CFLAGS="-O3 -fomit-frame-pointer"
12386 # -malign-double for x86 systems
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12388 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12389 if ${ax_cv_check_cflags___malign_double+:} false; then :
12390 $as_echo_n "(cached) " >&6
12393 ax_check_save_flags=$CFLAGS
12394 CFLAGS="$CFLAGS -malign-double"
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12406 if ac_fn_c_try_compile "$LINENO"; then :
12407 ax_cv_check_cflags___malign_double=yes
12409 ax_cv_check_cflags___malign_double=no
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 CFLAGS=$ax_check_save_flags
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12415 $as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12416 if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12417 CFLAGS="$CFLAGS -malign-double"
12423 # -fstrict-aliasing for gcc-2.95+
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12425 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12426 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12427 $as_echo_n "(cached) " >&6
12430 ax_check_save_flags=$CFLAGS
12431 CFLAGS="$CFLAGS -fstrict-aliasing"
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12443 if ac_fn_c_try_compile "$LINENO"; then :
12444 ax_cv_check_cflags___fstrict_aliasing=yes
12446 ax_cv_check_cflags___fstrict_aliasing=no
12448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449 CFLAGS=$ax_check_save_flags
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12452 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12453 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12454 CFLAGS="$CFLAGS -fstrict-aliasing"
12460 # note that we enable "unsafe" fp optimization with other compilers, too
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12462 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12463 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12464 $as_echo_n "(cached) " >&6
12467 ax_check_save_flags=$CFLAGS
12468 CFLAGS="$CFLAGS -ffast-math"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12480 if ac_fn_c_try_compile "$LINENO"; then :
12481 ax_cv_check_cflags___ffast_math=yes
12483 ax_cv_check_cflags___ffast_math=no
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 CFLAGS=$ax_check_save_flags
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12489 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12490 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12491 CFLAGS="$CFLAGS -ffast-math"
12501 # Check whether --with-gcc-arch was given.
12502 if test "${with_gcc_arch+set}" = set; then :
12503 withval=$with_gcc_arch; ax_gcc_arch=$withval
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12510 $as_echo_n "checking for gcc architecture flag... " >&6; }
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12513 if ${ax_cv_gcc_archflag+:} false; then :
12514 $as_echo_n "(cached) " >&6
12517 ax_cv_gcc_archflag="unknown"
12519 if test "$GCC" = yes; then
12521 if test "x$ax_gcc_arch" = xyes; then
12523 if test "$cross_compiling" = no; then
12525 i[3456]86*|x86_64*) # use cpuid codes
12528 ac_cpp='$CPP $CPPFLAGS'
12529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12534 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12535 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12536 $as_echo_n "(cached) " >&6
12538 if test "$cross_compiling" = yes; then :
12539 ax_cv_gcc_x86_cpuid_0=unknown
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12548 int op = 0, eax, ebx, ecx, edx;
12551 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12553 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12554 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12562 if ac_fn_c_try_run "$LINENO"; then :
12563 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12565 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12568 conftest.$ac_objext conftest.beam conftest.$ac_ext
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12573 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12575 ac_cpp='$CPP $CPPFLAGS'
12576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12583 ac_cpp='$CPP $CPPFLAGS'
12584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12589 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12590 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12591 $as_echo_n "(cached) " >&6
12593 if test "$cross_compiling" = yes; then :
12594 ax_cv_gcc_x86_cpuid_1=unknown
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12603 int op = 1, eax, ebx, ecx, edx;
12606 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12608 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12609 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12617 if ac_fn_c_try_run "$LINENO"; then :
12618 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12620 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12623 conftest.$ac_objext conftest.beam conftest.$ac_ext
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12628 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12630 ac_cpp='$CPP $CPPFLAGS'
12631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12636 case $ax_cv_gcc_x86_cpuid_0 in
12637 *:756e6547:*:*) # Intel
12638 case $ax_cv_gcc_x86_cpuid_1 in
12639 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12640 *5??:*:*:*) ax_gcc_arch=pentium ;;
12641 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12642 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12643 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12644 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12645 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12646 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12647 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12648 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12649 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12650 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12651 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12652 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12653 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12655 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12656 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12658 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12660 *:68747541:*:*) # AMD
12661 case $ax_cv_gcc_x86_cpuid_1 in
12662 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12663 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12664 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12665 *60?:*:*:*) ax_gcc_arch=k7 ;;
12666 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12667 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12668 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12672 ac_cpp='$CPP $CPPFLAGS'
12673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12678 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12679 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12680 $as_echo_n "(cached) " >&6
12682 if test "$cross_compiling" = yes; then :
12683 ax_cv_gcc_x86_cpuid_0x80000006=unknown
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12692 int op = 0x80000006, eax, ebx, ecx, edx;
12695 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12697 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12698 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12706 if ac_fn_c_try_run "$LINENO"; then :
12707 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12709 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12712 conftest.$ac_objext conftest.beam conftest.$ac_ext
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12717 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12719 ac_cpp='$CPP $CPPFLAGS'
12720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12725 case $ax_cv_gcc_x86_cpuid_0x80000006 in
12726 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12727 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12728 *) ax_gcc_arch="athlon-4 athlon k7" ;;
12730 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12731 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12732 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12733 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12734 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12735 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12736 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12738 *:746e6543:*:*) # IDT
12739 case $ax_cv_gcc_x86_cpuid_1 in
12740 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12741 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12742 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12743 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12746 if test x"$ax_gcc_arch" = x; then # fallback
12748 i586*) ax_gcc_arch=pentium ;;
12749 i686*) ax_gcc_arch=pentiumpro ;;
12755 # Extract the first word of "prtdiag", so it can be a program name with args.
12756 set dummy prtdiag; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if ${ac_cv_path_PRTDIAG+:} false; then :
12760 $as_echo_n "(cached) " >&6
12764 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12769 for as_dir in $as_dummy
12772 test -z "$as_dir" && as_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
12774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12775 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12787 PRTDIAG=$ac_cv_path_PRTDIAG
12788 if test -n "$PRTDIAG"; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12790 $as_echo "$PRTDIAG" >&6; }
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12797 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
12798 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12800 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12801 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12802 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12803 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12804 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12805 *cypress*) ax_gcc_arch=cypress ;;
12808 alphaev5) ax_gcc_arch=ev5 ;;
12809 alphaev56) ax_gcc_arch=ev56 ;;
12810 alphapca56) ax_gcc_arch="pca56 ev56" ;;
12811 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12812 alphaev6) ax_gcc_arch=ev6 ;;
12813 alphaev67) ax_gcc_arch=ev67 ;;
12814 alphaev68) ax_gcc_arch="ev68 ev67" ;;
12815 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12816 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12817 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12820 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
12821 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12823 *750*) ax_gcc_arch="750 G3" ;;
12824 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12825 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12826 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12827 *970*) ax_gcc_arch="970 G5 power4";;
12828 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12829 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12830 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12831 *) ax_gcc_arch=$cputype ;;
12833 ax_gcc_arch="$ax_gcc_arch powerpc"
12836 fi # not cross-compiling
12839 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12840 for arch in $ax_gcc_arch; do
12841 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12842 flags="-mtune=$arch"
12843 # -mcpu=$arch and m$arch generate nonportable code on every arch except
12844 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
12845 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12847 flags="-march=$arch -mcpu=$arch -m$arch"
12849 for flag in $flags; do
12850 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12852 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12853 if eval \${$as_CACHEVAR+:} false; then :
12854 $as_echo_n "(cached) " >&6
12857 ax_check_save_flags=$CFLAGS
12858 CFLAGS="$CFLAGS $flag"
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12870 if ac_fn_c_try_compile "$LINENO"; then :
12871 eval "$as_CACHEVAR=yes"
12873 eval "$as_CACHEVAR=no"
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 CFLAGS=$ax_check_save_flags
12878 eval ac_res=\$$as_CACHEVAR
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12880 $as_echo "$ac_res" >&6; }
12881 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12882 ax_cv_gcc_archflag=$flag; break
12888 test "x$ax_cv_gcc_archflag" = xunknown || break
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12897 $as_echo_n "checking for gcc architecture flag... " >&6; }
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12899 $as_echo "$ax_cv_gcc_archflag" >&6; }
12900 if test "x$ax_cv_gcc_archflag" = xunknown; then
12903 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12909 if test -z "$CFLAGS"; then
12911 echo "********************************************************"
12912 echo "* WARNING: Don't know the best CFLAGS for this system *"
12913 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12914 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
12915 echo "********************************************************"
12920 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12922 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12923 if eval \${$as_CACHEVAR+:} false; then :
12924 $as_echo_n "(cached) " >&6
12927 ax_check_save_flags=$CFLAGS
12928 CFLAGS="$CFLAGS $CFLAGS"
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12940 if ac_fn_c_try_compile "$LINENO"; then :
12941 eval "$as_CACHEVAR=yes"
12943 eval "$as_CACHEVAR=no"
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 CFLAGS=$ax_check_save_flags
12948 eval ac_res=\$$as_CACHEVAR
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12950 $as_echo "$ac_res" >&6; }
12951 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12956 echo "********************************************************"
12957 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
12958 echo "* your compiler. *"
12959 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12960 echo "********************************************************"
12969 if ${CFLAGS+:} false; then :
12970 case " $CFLAGS " in
12972 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12973 (: CFLAGS already contains ) 2>&5
12975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12976 test $ac_status = 0; }
12979 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12980 (: CFLAGS="$CFLAGS ") 2>&5
12982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12983 test $ac_status = 0; }
12992 ac_cpp='$CPP $CPPFLAGS'
12993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
12998 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
12999 if ${ac_cv_cflags_warn_all+:} false; then :
13000 $as_echo_n "(cached) " >&6
13002 ac_cv_cflags_warn_all="no, unknown"
13003 ac_save_CFLAGS="$CFLAGS"
13004 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
13005 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13017 if ac_fn_c_try_compile "$LINENO"; then :
13018 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 CFLAGS="$ac_save_CFLAGS"
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13026 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13028 case ".$ac_cv_cflags_warn_all" in
13031 *) if ${CFLAGS+:} false; then :
13032 case " $CFLAGS " in
13033 *" $ac_cv_cflags_warn_all "*)
13034 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13035 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13038 test $ac_status = 0; }
13041 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13042 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13045 test $ac_status = 0; }
13046 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13050 CFLAGS="$ac_cv_cflags_warn_all"
13056 ac_cpp='$CPP $CPPFLAGS'
13057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13062 if test "x$GCC" = "xyes"; then
13063 CFLAGS="$CFLAGS -fexceptions"
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13068 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13069 # Check whether --enable-maintainer-mode was given.
13070 if test "${enable_maintainer_mode+set}" = set; then :
13071 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13073 USE_MAINTAINER_MODE=no
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13077 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13078 if test $USE_MAINTAINER_MODE = yes; then
13079 MAINTAINER_MODE_TRUE=
13080 MAINTAINER_MODE_FALSE='#'
13082 MAINTAINER_MODE_TRUE='#'
13083 MAINTAINER_MODE_FALSE=
13086 MAINT=$MAINTAINER_MODE_TRUE
13090 for ac_header in sys/mman.h
13092 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13093 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13094 cat >>confdefs.h <<_ACEOF
13095 #define HAVE_SYS_MMAN_H 1
13102 for ac_func in mmap
13104 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13105 if test "x$ac_cv_func_mmap" = xyes; then :
13106 cat >>confdefs.h <<_ACEOF
13107 #define HAVE_MMAP 1
13114 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13115 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13116 libffi_header_sys_mman_h=yes
13118 libffi_header_sys_mman_h=no
13122 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13123 if test "x$ac_cv_func_mmap" = xyes; then :
13124 libffi_func_mmap=yes
13126 libffi_func_mmap=no
13129 if test "$libffi_header_sys_mman_h" != yes \
13130 || test "$libffi_func_mmap" != yes; then
13131 ac_cv_func_mmap_file=no
13132 ac_cv_func_mmap_dev_zero=no
13133 ac_cv_func_mmap_anon=no
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13136 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13137 if ${ac_cv_func_mmap_file+:} false; then :
13138 $as_echo_n "(cached) " >&6
13140 # Add a system to this blacklist if
13141 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13142 # memory area containing the same data that you'd get if you applied
13143 # read() to the same fd. The only system known to have a problem here
13144 # is VMS, where text files have record structure.
13147 ac_cv_func_mmap_file=no ;;
13149 ac_cv_func_mmap_file=yes;;
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13153 $as_echo "$ac_cv_func_mmap_file" >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13155 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13156 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13157 $as_echo_n "(cached) " >&6
13159 # Add a system to this blacklist if it has mmap() but /dev/zero
13160 # does not exist, or if mmapping /dev/zero does not give anonymous
13161 # zeroed pages with both the following properties:
13162 # 1. If you map N consecutive pages in with one call, and then
13163 # unmap any subset of those pages, the pages that were not
13164 # explicitly unmapped remain accessible.
13165 # 2. If you map two adjacent blocks of memory and then unmap them
13166 # both at once, they must both go away.
13167 # Systems known to be in this category are Windows (all variants),
13170 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13171 ac_cv_func_mmap_dev_zero=no ;;
13173 ac_cv_func_mmap_dev_zero=yes;;
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13177 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13179 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13181 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13182 if ${ac_cv_decl_map_anon+:} false; then :
13183 $as_echo_n "(cached) " >&6
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 #include <sys/types.h>
13188 #include <sys/mman.h>
13189 #include <unistd.h>
13191 #ifndef MAP_ANONYMOUS
13192 #define MAP_ANONYMOUS MAP_ANON
13198 int n = MAP_ANONYMOUS;
13203 if ac_fn_c_try_compile "$LINENO"; then :
13204 ac_cv_decl_map_anon=yes
13206 ac_cv_decl_map_anon=no
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13211 $as_echo "$ac_cv_decl_map_anon" >&6; }
13213 if test $ac_cv_decl_map_anon = no; then
13214 ac_cv_func_mmap_anon=no
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13217 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13218 if ${ac_cv_func_mmap_anon+:} false; then :
13219 $as_echo_n "(cached) " >&6
13221 # Add a system to this blacklist if it has mmap() and MAP_ANON or
13222 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13223 # doesn't give anonymous zeroed pages with the same properties listed
13224 # above for use of /dev/zero.
13225 # Systems known to be in this category are Windows, VMS, and SCO Unix.
13227 vms* | cygwin* | pe | mingw* | sco* | udk* )
13228 ac_cv_func_mmap_anon=no ;;
13230 ac_cv_func_mmap_anon=yes;;
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13234 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13238 if test $ac_cv_func_mmap_file = yes; then
13240 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13243 if test $ac_cv_func_mmap_dev_zero = yes; then
13245 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13248 if test $ac_cv_func_mmap_anon = yes; then
13250 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13255 if test -d $srcdir/testsuite; then
13257 TESTSUBDIR_FALSE='#'
13259 TESTSUBDIR_TRUE='#'
13264 TARGETDIR="unknown"
13267 TARGET=AARCH64; TARGETDIR=aarch64
13271 TARGET=ALPHA; TARGETDIR=alpha;
13272 # Support 128-bit long double, changeable via command-line switch.
13273 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13277 TARGET=ARM; TARGETDIR=arm
13280 amd64-*-freebsd* | amd64-*-openbsd*)
13281 TARGET=X86_64; TARGETDIR=x86
13285 TARGET=X86_64; TARGETDIR=x86
13289 TARGET=X86_64; TARGETDIR=x86
13293 TARGET=AVR32; TARGETDIR=avr32
13297 TARGET=BFIN; TARGETDIR=bfin
13301 TARGET=LIBFFI_CRIS; TARGETDIR=cris
13305 TARGET=FRV; TARGETDIR=frv
13308 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13309 TARGET=PA_LINUX; TARGETDIR=pa
13312 TARGET=PA64_HPUX; TARGETDIR=pa
13315 TARGET=PA_HPUX; TARGETDIR=pa
13318 i?86-*-freebsd* | i?86-*-openbsd*)
13319 TARGET=X86_FREEBSD; TARGETDIR=x86
13321 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13322 TARGET=X86_WIN32; TARGETDIR=x86
13323 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13324 # We must also check with_cross_host to decide if this is a native
13325 # or cross-build and select where to install dlls appropriately.
13326 if test -n "$with_cross_host" &&
13327 test x"$with_cross_host" != x"no"; then
13328 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13330 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13334 TARGET=X86_DARWIN; TARGETDIR=x86
13336 i?86-*-solaris2.1[0-9]*)
13337 TARGET=X86_64; TARGETDIR=x86
13340 TARGET=X86_64; TARGETDIR=x86
13344 TARGET=IA64; TARGETDIR=ia64
13348 TARGET=M32R; TARGETDIR=m32r
13352 TARGET=M68K; TARGETDIR=m68k
13355 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13356 TARGET=MIPS; TARGETDIR=mips
13358 mips*-*-linux* | mips*-*-openbsd*)
13359 # Support 128-bit long double for NewABI.
13360 HAVE_LONG_DOUBLE='defined(__mips64)'
13361 TARGET=MIPS; TARGETDIR=mips
13364 powerpc*-*-linux* | powerpc-*-sysv*)
13365 TARGET=POWERPC; TARGETDIR=powerpc
13367 powerpc-*-amigaos*)
13368 TARGET=POWERPC; TARGETDIR=powerpc
13371 TARGET=POWERPC; TARGETDIR=powerpc
13373 powerpc-*-darwin* | powerpc64-*-darwin*)
13374 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13376 powerpc-*-aix* | rs6000-*-aix*)
13377 TARGET=POWERPC_AIX; TARGETDIR=powerpc
13379 powerpc-*-freebsd* | powerpc-*-openbsd*)
13380 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13382 powerpc64-*-freebsd*)
13383 TARGET=POWERPC; TARGETDIR=powerpc
13386 TARGET=POWERPC; TARGETDIR=powerpc
13389 s390-*-* | s390x-*-*)
13390 TARGET=S390; TARGETDIR=s390
13393 sh-*-* | sh[34]*-*-*)
13394 TARGET=SH; TARGETDIR=sh
13396 sh64-*-* | sh5*-*-*)
13397 TARGET=SH64; TARGETDIR=sh64
13401 TARGET=SPARC; TARGETDIR=sparc
13405 TARGET=TILE; TARGETDIR=tile
13409 TARGET=X86_DARWIN; TARGETDIR=x86
13412 x86_64-*-cygwin* | x86_64-*-mingw*)
13413 TARGET=X86_WIN64; TARGETDIR=x86
13414 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13415 # We must also check with_cross_host to decide if this is a native
13416 # or cross-build and select where to install dlls appropriately.
13417 if test -n "$with_cross_host" &&
13418 test x"$with_cross_host" != x"no"; then
13419 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13421 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13426 TARGET=X86_64; TARGETDIR=x86
13433 if test $TARGETDIR = unknown; then
13434 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13437 if test x$TARGET = xMIPS; then
13445 if test x$TARGET = xBFIN; then
13453 if test x$TARGET = xSPARC; then
13461 if test x$TARGET = xX86; then
13469 if test x$TARGET = xX86_FREEBSD; then
13471 X86_FREEBSD_FALSE='#'
13473 X86_FREEBSD_TRUE='#'
13477 if test x$TARGET = xX86_WIN32; then
13479 X86_WIN32_FALSE='#'
13485 if test x$TARGET = xX86_WIN64; then
13487 X86_WIN64_FALSE='#'
13493 if test x$TARGET = xX86_DARWIN; then
13495 X86_DARWIN_FALSE='#'
13497 X86_DARWIN_TRUE='#'
13501 if test x$TARGET = xALPHA; then
13509 if test x$TARGET = xIA64; then
13517 if test x$TARGET = xM32R; then
13525 if test x$TARGET = xM68K; then
13533 if test x$TARGET = xMOXIE; then
13541 if test x$TARGET = xPOWERPC; then
13549 if test x$TARGET = xPOWERPC_AIX; then
13551 POWERPC_AIX_FALSE='#'
13553 POWERPC_AIX_TRUE='#'
13557 if test x$TARGET = xPOWERPC_DARWIN; then
13558 POWERPC_DARWIN_TRUE=
13559 POWERPC_DARWIN_FALSE='#'
13561 POWERPC_DARWIN_TRUE='#'
13562 POWERPC_DARWIN_FALSE=
13565 if test x$TARGET = xPOWERPC_FREEBSD; then
13566 POWERPC_FREEBSD_TRUE=
13567 POWERPC_FREEBSD_FALSE='#'
13569 POWERPC_FREEBSD_TRUE='#'
13570 POWERPC_FREEBSD_FALSE=
13573 if test x$TARGET = xAARCH64; then
13581 if test x$TARGET = xARM; then
13589 if test x$TARGET = xAVR32; then
13597 if test x$TARGET = xLIBFFI_CRIS; then
13599 LIBFFI_CRIS_FALSE='#'
13601 LIBFFI_CRIS_TRUE='#'
13605 if test x$TARGET = xFRV; then
13613 if test x$TARGET = xS390; then
13621 if test x$TARGET = xX86_64; then
13629 if test x$TARGET = xSH; then
13637 if test x$TARGET = xSH64; then
13645 if test x$TARGET = xPA_LINUX; then
13653 if test x$TARGET = xPA_HPUX; then
13661 if test x$TARGET = xPA64_HPUX; then
13663 PA64_HPUX_FALSE='#'
13669 if test x$TARGET = xTILE; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13679 $as_echo_n "checking for ANSI C header files... " >&6; }
13680 if ${ac_cv_header_stdc+:} false; then :
13681 $as_echo_n "(cached) " >&6
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 #include <stdlib.h>
13686 #include <stdarg.h>
13687 #include <string.h>
13698 if ac_fn_c_try_compile "$LINENO"; then :
13699 ac_cv_header_stdc=yes
13701 ac_cv_header_stdc=no
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 if test $ac_cv_header_stdc = yes; then
13706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 #include <string.h>
13712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13713 $EGREP "memchr" >/dev/null 2>&1; then :
13716 ac_cv_header_stdc=no
13722 if test $ac_cv_header_stdc = yes; then
13723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 #include <stdlib.h>
13729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13730 $EGREP "free" >/dev/null 2>&1; then :
13733 ac_cv_header_stdc=no
13739 if test $ac_cv_header_stdc = yes; then
13740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13741 if test "$cross_compiling" = yes; then :
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13747 #include <stdlib.h>
13748 #if ((' ' & 0x0FF) == 0x020)
13749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13752 # define ISLOWER(c) \
13753 (('a' <= (c) && (c) <= 'i') \
13754 || ('j' <= (c) && (c) <= 'r') \
13755 || ('s' <= (c) && (c) <= 'z'))
13756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13764 for (i = 0; i < 256; i++)
13765 if (XOR (islower (i), ISLOWER (i))
13766 || toupper (i) != TOUPPER (i))
13771 if ac_fn_c_try_run "$LINENO"; then :
13774 ac_cv_header_stdc=no
13776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13777 conftest.$ac_objext conftest.beam conftest.$ac_ext
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13783 $as_echo "$ac_cv_header_stdc" >&6; }
13784 if test $ac_cv_header_stdc = yes; then
13786 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13790 for ac_func in memcpy
13792 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13793 if test "x$ac_cv_func_memcpy" = xyes; then :
13794 cat >>confdefs.h <<_ACEOF
13795 #define HAVE_MEMCPY 1
13801 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13802 if test "x$ac_cv_type_size_t" = xyes; then :
13806 cat >>confdefs.h <<_ACEOF
13807 #define size_t unsigned int
13812 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13813 # for constant arguments. Useless!
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13815 $as_echo_n "checking for working alloca.h... " >&6; }
13816 if ${ac_cv_working_alloca_h+:} false; then :
13817 $as_echo_n "(cached) " >&6
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 #include <alloca.h>
13825 char *p = (char *) alloca (2 * sizeof (int));
13831 if ac_fn_c_try_link "$LINENO"; then :
13832 ac_cv_working_alloca_h=yes
13834 ac_cv_working_alloca_h=no
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13840 $as_echo "$ac_cv_working_alloca_h" >&6; }
13841 if test $ac_cv_working_alloca_h = yes; then
13843 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13848 $as_echo_n "checking for alloca... " >&6; }
13849 if ${ac_cv_func_alloca_works+:} false; then :
13850 $as_echo_n "(cached) " >&6
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13855 # define alloca __builtin_alloca
13858 # include <malloc.h>
13859 # define alloca _alloca
13861 # ifdef HAVE_ALLOCA_H
13862 # include <alloca.h>
13867 # ifndef alloca /* predefined by HP cc +Olibcalls */
13868 void *alloca (size_t);
13878 char *p = (char *) alloca (1);
13884 if ac_fn_c_try_link "$LINENO"; then :
13885 ac_cv_func_alloca_works=yes
13887 ac_cv_func_alloca_works=no
13889 rm -f core conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13893 $as_echo "$ac_cv_func_alloca_works" >&6; }
13895 if test $ac_cv_func_alloca_works = yes; then
13897 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13900 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13901 # that cause trouble. Some versions do not even contain alloca or
13902 # contain a buggy version. If you still want to use their alloca,
13903 # use ar to extract alloca.o from them instead of compiling alloca.c.
13905 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13907 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13911 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13912 if ${ac_cv_os_cray+:} false; then :
13913 $as_echo_n "(cached) " >&6
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 #if defined CRAY && ! defined CRAY2
13924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13925 $EGREP "webecray" >/dev/null 2>&1; then :
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13934 $as_echo "$ac_cv_os_cray" >&6; }
13935 if test $ac_cv_os_cray = yes; then
13936 for ac_func in _getb67 GETB67 getb67; do
13937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13938 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13939 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13941 cat >>confdefs.h <<_ACEOF
13942 #define CRAY_STACKSEG_END $ac_func
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13952 $as_echo_n "checking stack direction for C alloca... " >&6; }
13953 if ${ac_cv_c_stack_direction+:} false; then :
13954 $as_echo_n "(cached) " >&6
13956 if test "$cross_compiling" = yes; then :
13957 ac_cv_c_stack_direction=0
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961 $ac_includes_default
13963 find_stack_direction (int *addr, int depth)
13965 int dir, dummy = 0;
13968 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13969 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13970 return dir + dummy;
13974 main (int argc, char **argv)
13976 return find_stack_direction (0, argc + !argv + 20) < 0;
13979 if ac_fn_c_try_run "$LINENO"; then :
13980 ac_cv_c_stack_direction=1
13982 ac_cv_c_stack_direction=-1
13984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13985 conftest.$ac_objext conftest.beam conftest.$ac_ext
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13990 $as_echo "$ac_cv_c_stack_direction" >&6; }
13991 cat >>confdefs.h <<_ACEOF
13992 #define STACK_DIRECTION $ac_cv_c_stack_direction
13999 # The cast to long int works around a bug in the HP C Compiler
14000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14002 # This bug is HP SR number 8606223364.
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14004 $as_echo_n "checking size of double... " >&6; }
14005 if ${ac_cv_sizeof_double+:} false; then :
14006 $as_echo_n "(cached) " >&6
14008 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
14011 if test "$ac_cv_type_double" = yes; then
14012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14014 as_fn_error 77 "cannot compute sizeof (double)
14015 See \`config.log' for more details" "$LINENO" 5; }
14017 ac_cv_sizeof_double=0
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14023 $as_echo "$ac_cv_sizeof_double" >&6; }
14027 cat >>confdefs.h <<_ACEOF
14028 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14032 # The cast to long int works around a bug in the HP C Compiler
14033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14035 # This bug is HP SR number 8606223364.
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14037 $as_echo_n "checking size of long double... " >&6; }
14038 if ${ac_cv_sizeof_long_double+:} false; then :
14039 $as_echo_n "(cached) " >&6
14041 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
14044 if test "$ac_cv_type_long_double" = yes; then
14045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14047 as_fn_error 77 "cannot compute sizeof (long double)
14048 See \`config.log' for more details" "$LINENO" 5; }
14050 ac_cv_sizeof_long_double=0
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14056 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14060 cat >>confdefs.h <<_ACEOF
14061 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14066 # Also AC_SUBST this variable for ffi.h.
14067 if test -z "$HAVE_LONG_DOUBLE"; then
14069 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14070 if test $ac_cv_sizeof_long_double != 0; then
14073 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14081 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14082 if ${ac_cv_c_bigendian+:} false; then :
14083 $as_echo_n "(cached) " >&6
14085 ac_cv_c_bigendian=unknown
14086 # See if we're dealing with a universal compiler.
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 #ifndef __APPLE_CC__
14090 not a universal capable compiler
14095 if ac_fn_c_try_compile "$LINENO"; then :
14097 # Check for potential -arch flags. It is not universal unless
14098 # there are at least two -arch flags with different values.
14101 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14102 if test -n "$ac_prev"; then
14104 i?86 | x86_64 | ppc | ppc64)
14105 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14108 ac_cv_c_bigendian=universal
14114 elif test "x$ac_word" = "x-arch"; then
14119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 if test $ac_cv_c_bigendian = unknown; then
14121 # See if sys/param.h defines the BYTE_ORDER macro.
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 #include <sys/types.h>
14125 #include <sys/param.h>
14130 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14131 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14133 bogus endian macros
14140 if ac_fn_c_try_compile "$LINENO"; then :
14141 # It does; now see whether it defined to BIG_ENDIAN or not.
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144 #include <sys/types.h>
14145 #include <sys/param.h>
14150 #if BYTE_ORDER != BIG_ENDIAN
14158 if ac_fn_c_try_compile "$LINENO"; then :
14159 ac_cv_c_bigendian=yes
14161 ac_cv_c_bigendian=no
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 if test $ac_cv_c_bigendian = unknown; then
14168 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 #include <limits.h>
14176 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14177 bogus endian macros
14184 if ac_fn_c_try_compile "$LINENO"; then :
14185 # It does; now see whether it defined to _BIG_ENDIAN or not.
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 #include <limits.h>
14193 #ifndef _BIG_ENDIAN
14201 if ac_fn_c_try_compile "$LINENO"; then :
14202 ac_cv_c_bigendian=yes
14204 ac_cv_c_bigendian=no
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 if test $ac_cv_c_bigendian = unknown; then
14211 # Compile a test program.
14212 if test "$cross_compiling" = yes; then :
14213 # Try to guess by grepping values from an object file.
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216 short int ascii_mm[] =
14217 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14218 short int ascii_ii[] =
14219 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14220 int use_ascii (int i) {
14221 return ascii_mm[i] + ascii_ii[i];
14223 short int ebcdic_ii[] =
14224 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14225 short int ebcdic_mm[] =
14226 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14227 int use_ebcdic (int i) {
14228 return ebcdic_mm[i] + ebcdic_ii[i];
14235 return use_ascii (foo) == use_ebcdic (foo);
14240 if ac_fn_c_try_compile "$LINENO"; then :
14241 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14242 ac_cv_c_bigendian=yes
14244 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14245 if test "$ac_cv_c_bigendian" = unknown; then
14246 ac_cv_c_bigendian=no
14248 # finding both strings is unlikely to happen, but who knows?
14249 ac_cv_c_bigendian=unknown
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 $ac_includes_default
14262 /* Are we little or big endian? From Harbison&Steele. */
14266 char c[sizeof (long int)];
14269 return u.c[sizeof (long int) - 1] == 1;
14275 if ac_fn_c_try_run "$LINENO"; then :
14276 ac_cv_c_bigendian=no
14278 ac_cv_c_bigendian=yes
14280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14281 conftest.$ac_objext conftest.beam conftest.$ac_ext
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14287 $as_echo "$ac_cv_c_bigendian" >&6; }
14288 case $ac_cv_c_bigendian in #(
14290 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14296 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14300 as_fn_error $? "unknown endianness
14301 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14306 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14307 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14308 $as_echo_n "(cached) " >&6
14311 gcc_cv_as_cfi_pseudo_op=unknown
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14314 asm (".cfi_startproc\n\t.cfi_endproc");
14323 if ac_fn_c_try_compile "$LINENO"; then :
14324 gcc_cv_as_cfi_pseudo_op=yes
14326 gcc_cv_as_cfi_pseudo_op=no
14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14332 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14333 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14335 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14340 if test x$TARGET = xSPARC; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14342 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14343 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14344 $as_echo_n "(cached) " >&6
14347 save_CFLAGS="$CFLAGS"
14348 save_LDFLAGS="$LDFLAGS"
14349 CFLAGS="$CFLAGS -fpic"
14350 LDFLAGS="$LDFLAGS -shared"
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14362 if ac_fn_c_try_link "$LINENO"; then :
14363 libffi_cv_as_sparc_ua_pcrel=yes
14365 libffi_cv_as_sparc_ua_pcrel=no
14367 rm -f core conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 CFLAGS="$save_CFLAGS"
14370 LDFLAGS="$save_LDFLAGS"
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14373 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14374 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14376 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14381 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14382 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14383 $as_echo_n "(cached) " >&6
14386 libffi_cv_as_register_pseudo_op=unknown
14387 # Check if we have .register
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 asm (".register %g2, #scratch");
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400 libffi_cv_as_register_pseudo_op=yes
14402 libffi_cv_as_register_pseudo_op=no
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14408 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14409 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14411 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14416 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14418 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14419 if ${libffi_cv_as_x86_pcrel+:} false; then :
14420 $as_echo_n "(cached) " >&6
14423 libffi_cv_as_x86_pcrel=yes
14424 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14425 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14426 libffi_cv_as_x86_pcrel=no
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14431 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14432 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14434 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14439 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14440 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14441 $as_echo_n "(cached) " >&6
14444 libffi_cv_as_ascii_pseudo_op=unknown
14445 # Check if we have .ascii
14446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h. */
14448 asm (".ascii \\"string\\"");
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458 libffi_cv_as_ascii_pseudo_op=yes
14460 libffi_cv_as_ascii_pseudo_op=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14466 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14467 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14469 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14474 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14475 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14476 $as_echo_n "(cached) " >&6
14479 libffi_cv_as_string_pseudo_op=unknown
14480 # Check if we have .string
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 asm (".string \\"string\\"");
14492 if ac_fn_c_try_compile "$LINENO"; then :
14493 libffi_cv_as_string_pseudo_op=yes
14495 libffi_cv_as_string_pseudo_op=no
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14501 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14502 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14504 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14509 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14510 # Check whether --enable-pax_emutramp was given.
14511 if test "${enable_pax_emutramp+set}" = set; then :
14512 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14514 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14520 if test x$TARGET = xX86_WIN64; then
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14522 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14523 if ${lt_cv_sys_symbol_underscore+:} false; then :
14524 $as_echo_n "(cached) " >&6
14526 lt_cv_sys_symbol_underscore=no
14527 cat > conftest.$ac_ext <<_LT_EOF
14528 void nm_test_func(){}
14529 int main(){nm_test_func;return 0;}
14531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14532 (eval $ac_compile) 2>&5
14534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14535 test $ac_status = 0; }; then
14536 # Now try to grab the symbols.
14537 ac_nlist=conftest.nm
14538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14539 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542 test $ac_status = 0; } && test -s "$ac_nlist"; then
14543 # See whether the symbols have a leading underscore.
14544 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14545 lt_cv_sys_symbol_underscore=yes
14547 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14550 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14554 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14557 echo "configure: failed program was:" >&5
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14564 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14565 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14568 if test "x$sys_symbol_underscore" = xyes; then
14570 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14575 FFI_EXEC_TRAMPOLINE_TABLE=0
14577 *arm*-apple-darwin*)
14578 FFI_EXEC_TRAMPOLINE_TABLE=1
14580 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14583 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14585 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14589 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14590 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14591 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14593 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14594 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14599 if test x$TARGET = xX86_64; then
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14601 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14602 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14603 $as_echo_n "(cached) " >&6
14606 libffi_cv_as_x86_64_unwind_section_type=yes
14607 echo '.section .eh_frame,"a",@unwind' > conftest.s
14608 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14609 libffi_cv_as_x86_64_unwind_section_type=no
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14614 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14615 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14617 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14622 if test "x$GCC" = "xyes"; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14624 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14625 if ${libffi_cv_ro_eh_frame+:} false; then :
14626 $as_echo_n "(cached) " >&6
14629 libffi_cv_ro_eh_frame=no
14630 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14631 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14632 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14633 libffi_cv_ro_eh_frame=yes
14634 elif grep '.section.*eh_frame.*#alloc' conftest.c \
14635 | grep -v '#write' > /dev/null; then
14636 libffi_cv_ro_eh_frame=yes
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14643 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14644 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14646 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14649 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14653 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14658 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14659 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14660 $as_echo_n "(cached) " >&6
14663 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
14664 libffi_cv_hidden_visibility_attribute=no
14665 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14667 (eval $ac_try) 2>&5
14669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14670 test $ac_status = 0; }; }; then
14671 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14672 libffi_cv_hidden_visibility_attribute=yes
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14679 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14680 if test $libffi_cv_hidden_visibility_attribute = yes; then
14682 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14694 # Check whether --enable-debug was given.
14695 if test "${enable_debug+set}" = set; then :
14696 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14698 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14703 if test "$enable_debug" = "yes"; then
14705 FFI_DEBUG_FALSE='#'
14712 # Check whether --enable-structs was given.
14713 if test "${enable_structs+set}" = set; then :
14714 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14716 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14721 if test "$enable_debug" = "yes"; then
14723 FFI_DEBUG_FALSE='#'
14730 # Check whether --enable-raw-api was given.
14731 if test "${enable_raw_api+set}" = set; then :
14732 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14734 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14740 # Check whether --enable-purify-safety was given.
14741 if test "${enable_purify_safety+set}" = set; then :
14742 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14744 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14750 # These variables are only ever used when we cross-build to X86_WIN32.
14751 # And we only support this with GCC, so...
14752 if test x"$GCC" != x"no"; then
14753 if test -n "$with_cross_host" &&
14754 test x"$with_cross_host" != x"no"; then
14755 toolexecdir='$(exec_prefix)/$(target_alias)'
14756 toolexeclibdir='$(toolexecdir)/lib'
14758 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14759 toolexeclibdir='$(libdir)'
14761 multi_os_directory=`$CC -print-multi-os-directory`
14762 case $multi_os_directory in
14763 .) ;; # Avoid trailing /.
14764 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14770 ac_config_commands="$ac_config_commands include"
14772 ac_config_commands="$ac_config_commands src"
14775 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14778 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14781 cat >confcache <<\_ACEOF
14782 # This file is a shell script that caches the results of configure
14783 # tests run on this system so they can be shared between configure
14784 # scripts and configure runs, see configure's option --config-cache.
14785 # It is not useful on other systems. If it contains results you don't
14786 # want to keep, you may remove or edit it.
14788 # config.status only pays attention to the cache file if you give it
14789 # the --recheck option to rerun configure.
14791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14793 # following values.
14797 # The following way of writing the cache mishandles newlines in values,
14798 # but we know of no workaround that is simple, portable, and efficient.
14799 # So, we kill variables containing newlines.
14800 # Ultrix sh set writes to stderr and can't be redirected directly,
14801 # and sets the high bit in the cache file unless we assign to the vars.
14803 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14804 eval ac_val=\$$ac_var
14808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14812 _ | IFS | as_nl) ;; #(
14813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14814 *) { eval $ac_var=; unset $ac_var;} ;;
14820 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14821 *${as_nl}ac_space=\ *)
14822 # `set' does not quote correctly, so add quotes: double-quote
14823 # substitution turns \\\\ into \\, and sed turns \\ into \.
14826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14829 # `set' quotes correctly as required by POSIX, so do not add quotes.
14830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14843 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14844 if test -w "$cache_file"; then
14845 if test "x$cache_file" != "x/dev/null"; then
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14847 $as_echo "$as_me: updating cache $cache_file" >&6;}
14848 if test ! -f "$cache_file" || test -h "$cache_file"; then
14849 cat confcache >"$cache_file"
14851 case $cache_file in #(
14853 mv -f confcache "$cache_file"$$ &&
14854 mv -f "$cache_file"$$ "$cache_file" ;; #(
14856 mv -f confcache "$cache_file" ;;
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14862 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14868 # Let make expand exec_prefix.
14869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14871 DEFS=-DHAVE_CONFIG_H
14876 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14877 # 1. Remove the extension, and $U if already installed.
14878 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14879 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14881 # will be set to the directory where LIBOBJS objects are built.
14882 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14883 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14885 LIBOBJS=$ac_libobjs
14887 LTLIBOBJS=$ac_ltlibobjs
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14891 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14892 if test -n "$am_sleep_pid"; then
14893 # Hide warnings about reused PIDs.
14894 wait $am_sleep_pid 2>/dev/null
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14897 $as_echo "done" >&6; }
14898 if test -n "$EXEEXT"; then
14900 am__EXEEXT_FALSE='#'
14902 am__EXEEXT_TRUE='#'
14906 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14907 as_fn_error $? "conditional \"AMDEP\" was never defined.
14908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14910 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14911 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14914 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14915 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14918 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14919 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14922 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14923 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14926 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14927 as_fn_error $? "conditional \"MIPS\" was never defined.
14928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14930 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14931 as_fn_error $? "conditional \"BFIN\" was never defined.
14932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14934 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14935 as_fn_error $? "conditional \"SPARC\" was never defined.
14936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14938 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14939 as_fn_error $? "conditional \"X86\" was never defined.
14940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14942 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14943 as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14946 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14947 as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14950 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14951 as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14954 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14955 as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14958 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14959 as_fn_error $? "conditional \"ALPHA\" was never defined.
14960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14962 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14963 as_fn_error $? "conditional \"IA64\" was never defined.
14964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14966 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14967 as_fn_error $? "conditional \"M32R\" was never defined.
14968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14970 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14971 as_fn_error $? "conditional \"M68K\" was never defined.
14972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14974 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
14975 as_fn_error $? "conditional \"MOXIE\" was never defined.
14976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14978 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14979 as_fn_error $? "conditional \"POWERPC\" was never defined.
14980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14982 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14983 as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
14984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14986 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14987 as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
14988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14990 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14991 as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
14992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14994 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
14995 as_fn_error $? "conditional \"AARCH64\" was never defined.
14996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14998 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14999 as_fn_error $? "conditional \"ARM\" was never defined.
15000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15002 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15003 as_fn_error $? "conditional \"AVR32\" was never defined.
15004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15006 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15007 as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15010 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15011 as_fn_error $? "conditional \"FRV\" was never defined.
15012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15014 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15015 as_fn_error $? "conditional \"S390\" was never defined.
15016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15018 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15019 as_fn_error $? "conditional \"X86_64\" was never defined.
15020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15022 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15023 as_fn_error $? "conditional \"SH\" was never defined.
15024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15026 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15027 as_fn_error $? "conditional \"SH64\" was never defined.
15028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15030 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15031 as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15034 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15035 as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15038 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15039 as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15042 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15043 as_fn_error $? "conditional \"TILE\" was never defined.
15044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15047 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15048 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15051 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15052 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15055 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15056 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15060 : "${CONFIG_STATUS=./config.status}"
15062 ac_clean_files_save=$ac_clean_files
15063 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15065 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15067 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15069 # Generated by $as_me.
15070 # Run this file to recreate the current configuration.
15071 # Compiler output produced by configure, useful for debugging
15072 # configure, is in config.log if it exists.
15075 ac_cs_recheck=false
15078 SHELL=\${CONFIG_SHELL-$SHELL}
15081 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15082 ## -------------------- ##
15083 ## M4sh Initialization. ##
15084 ## -------------------- ##
15086 # Be more Bourne compatible
15087 DUALCASE=1; export DUALCASE # for MKS sh
15088 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15091 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15092 # is contrary to our usage. Disable this feature.
15093 alias -g '${1+"$@"}'='"$@"'
15094 setopt NO_GLOB_SUBST
15096 case `(set -o) 2>/dev/null` in #(
15108 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15109 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15110 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15111 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15112 # Prefer a ksh shell builtin over an external printf program on Solaris,
15113 # but without wasting forks for bash or zsh.
15114 if test -z "$BASH_VERSION$ZSH_VERSION" \
15115 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15116 as_echo='print -r --'
15117 as_echo_n='print -rn --'
15118 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15119 as_echo='printf %s\n'
15120 as_echo_n='printf %s'
15122 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15123 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15124 as_echo_n='/usr/ucb/echo -n'
15126 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15127 as_echo_n_body='eval
15131 expr "X$arg" : "X\\(.*\\)$as_nl";
15132 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15134 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15136 export as_echo_n_body
15137 as_echo_n='sh -c $as_echo_n_body as_echo'
15139 export as_echo_body
15140 as_echo='sh -c $as_echo_body as_echo'
15143 # The user is always right.
15144 if test "${PATH_SEPARATOR+set}" != set; then
15146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15154 # We need space, tab and new line, in precisely that order. Quoting is
15155 # there to prevent editors from complaining about space-tab.
15156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15157 # splitting by setting IFS to empty value.)
15160 # Find who we are. Look in the path if we contain no directory separator.
15163 *[\\/]* ) as_myself=$0 ;;
15164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15165 for as_dir in $PATH
15168 test -z "$as_dir" && as_dir=.
15169 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15175 # We did not find ourselves, most probably we were run as `sh COMMAND'
15176 # in which case we are not to be found in the path.
15177 if test "x$as_myself" = x; then
15180 if test ! -f "$as_myself"; then
15181 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15185 # Unset variables that we do not need and which cause bugs (e.g. in
15186 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15187 # suppresses any "Segmentation fault" message there. '((' could
15188 # trigger a bug in pdksh 5.2.14.
15189 for as_var in BASH_ENV ENV MAIL MAILPATH
15190 do eval test x\${$as_var+set} = xset \
15191 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15207 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15208 # ----------------------------------------
15209 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15210 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15211 # script with STATUS, using 1 if that was 0.
15214 as_status=$1; test $as_status -eq 0 && as_status=1
15216 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15217 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15219 $as_echo "$as_me: error: $2" >&2
15220 as_fn_exit $as_status
15224 # as_fn_set_status STATUS
15225 # -----------------------
15226 # Set $? to STATUS, without forking.
15227 as_fn_set_status ()
15230 } # as_fn_set_status
15232 # as_fn_exit STATUS
15233 # -----------------
15234 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15238 as_fn_set_status $1
15244 # Portably unset VAR.
15247 { eval $1=; unset $1;}
15249 as_unset=as_fn_unset
15250 # as_fn_append VAR VALUE
15251 # ----------------------
15252 # Append the text in VALUE to the end of the definition contained in VAR. Take
15253 # advantage of any shell optimizations that allow amortized linear growth over
15254 # repeated appends, instead of the typical quadratic growth present in naive
15256 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15257 eval 'as_fn_append ()
15268 # as_fn_arith ARG...
15269 # ------------------
15270 # Perform arithmetic evaluation on the ARGs, and store the result in the
15271 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15272 # must be portable across $(()) and expr.
15273 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15274 eval 'as_fn_arith ()
15281 as_val=`expr "$@" || test $? -eq 1`
15286 if expr a : '\(a\)' >/dev/null 2>&1 &&
15287 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15293 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15294 as_basename=basename
15299 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15305 as_me=`$as_basename -- "$0" ||
15306 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15307 X"$0" : 'X\(//\)$' \| \
15308 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15310 sed '/^.*\/\([^/][^/]*\)\/*$/{
15324 # Avoid depending upon Character Ranges.
15325 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15326 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15327 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15328 as_cr_digits='0123456789'
15329 as_cr_alnum=$as_cr_Letters$as_cr_digits
15331 ECHO_C= ECHO_N= ECHO_T=
15332 case `echo -n x` in #(((((
15334 case `echo 'xy\c'` in
15335 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15337 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15344 rm -f conf$$ conf$$.exe conf$$.file
15345 if test -d conf$$.dir; then
15346 rm -f conf$$.dir/conf$$.file
15349 mkdir conf$$.dir 2>/dev/null
15351 if (echo >conf$$.file) 2>/dev/null; then
15352 if ln -s conf$$.file conf$$ 2>/dev/null; then
15354 # ... but there are two gotchas:
15355 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15356 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15357 # In both cases, we have to default to `cp -pR'.
15358 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15360 elif ln conf$$.file conf$$ 2>/dev/null; then
15368 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15369 rmdir conf$$.dir 2>/dev/null
15374 # Create "$as_dir" as a directory, including parents if necessary.
15379 -*) as_dir=./$as_dir;;
15381 test -d "$as_dir" || eval $as_mkdir_p || {
15385 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15386 *) as_qdir=$as_dir;;
15388 as_dirs="'$as_qdir' $as_dirs"
15389 as_dir=`$as_dirname -- "$as_dir" ||
15390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15391 X"$as_dir" : 'X\(//\)[^/]' \| \
15392 X"$as_dir" : 'X\(//\)$' \| \
15393 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15394 $as_echo X"$as_dir" |
15395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15399 /^X\(\/\/\)[^/].*/{
15412 test -d "$as_dir" && break
15414 test -z "$as_dirs" || eval "mkdir $as_dirs"
15415 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15419 if mkdir -p . 2>/dev/null; then
15420 as_mkdir_p='mkdir -p "$as_dir"'
15422 test -d ./-p && rmdir ./-p
15427 # as_fn_executable_p FILE
15428 # -----------------------
15429 # Test if FILE is an executable regular file.
15430 as_fn_executable_p ()
15432 test -f "$1" && test -x "$1"
15433 } # as_fn_executable_p
15434 as_test_x='test -x'
15435 as_executable_p=as_fn_executable_p
15437 # Sed expression to map a string onto a valid CPP name.
15438 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15440 # Sed expression to map a string onto a valid variable name.
15441 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15445 ## ----------------------------------- ##
15446 ## Main body of $CONFIG_STATUS script. ##
15447 ## ----------------------------------- ##
15449 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452 # Save the log message, to keep $0 and so on meaningful, and to
15453 # report actual input values of CONFIG_FILES etc. instead of their
15454 # values after options handling.
15456 This file was extended by libffi $as_me 3.0.12-rc0, which was
15457 generated by GNU Autoconf 2.69. Invocation command line was
15459 CONFIG_FILES = $CONFIG_FILES
15460 CONFIG_HEADERS = $CONFIG_HEADERS
15461 CONFIG_LINKS = $CONFIG_LINKS
15462 CONFIG_COMMANDS = $CONFIG_COMMANDS
15465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15470 case $ac_config_files in *"
15471 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15474 case $ac_config_headers in *"
15475 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15480 # Files that config.status was made for.
15481 config_files="$ac_config_files"
15482 config_headers="$ac_config_headers"
15483 config_links="$ac_config_links"
15484 config_commands="$ac_config_commands"
15488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15490 \`$as_me' instantiates files and other configuration actions
15491 from templates according to the current configuration. Unless the files
15492 and actions are specified as TAGs, all are instantiated by default.
15494 Usage: $0 [OPTION]... [TAG]...
15496 -h, --help print this help, then exit
15497 -V, --version print version number and configuration settings, then exit
15498 --config print configuration, then exit
15499 -q, --quiet, --silent
15500 do not print progress messages
15501 -d, --debug don't remove temporary files
15502 --recheck update $as_me by reconfiguring in the same conditions
15503 --file=FILE[:TEMPLATE]
15504 instantiate the configuration file FILE
15505 --header=FILE[:TEMPLATE]
15506 instantiate the configuration header FILE
15508 Configuration files:
15511 Configuration headers:
15514 Configuration links:
15517 Configuration commands:
15520 Report bugs to <http://gcc.gnu.org/bugs.html>."
15523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15524 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15526 libffi config.status 3.0.12-rc0
15527 configured by $0, generated by GNU Autoconf 2.69,
15528 with options \\"\$ac_cs_config\\"
15530 Copyright (C) 2012 Free Software Foundation, Inc.
15531 This config.status script is free software; the Free Software Foundation
15532 gives unlimited permission to copy, distribute and modify it."
15539 test -n "\$AWK" || AWK=awk
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543 # The default lists apply if the user does not specify any file.
15549 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15550 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15554 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15566 # Handling of the options.
15567 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15569 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15570 $as_echo "$ac_cs_version"; exit ;;
15571 --config | --confi | --conf | --con | --co | --c )
15572 $as_echo "$ac_cs_config"; exit ;;
15573 --debug | --debu | --deb | --de | --d | -d )
15575 --file | --fil | --fi | --f )
15578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15579 '') as_fn_error $? "missing file argument" ;;
15581 as_fn_append CONFIG_FILES " '$ac_optarg'"
15582 ac_need_defaults=false;;
15583 --header | --heade | --head | --hea )
15586 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15588 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15589 ac_need_defaults=false;;
15591 # Conflict between --help and --header
15592 as_fn_error $? "ambiguous option: \`$1'
15593 Try \`$0 --help' for more information.";;
15594 --help | --hel | -h )
15595 $as_echo "$ac_cs_usage"; exit ;;
15596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15597 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15600 # This is an error.
15601 -*) as_fn_error $? "unrecognized option: \`$1'
15602 Try \`$0 --help' for more information." ;;
15604 *) as_fn_append ac_config_targets " $1"
15605 ac_need_defaults=false ;;
15611 ac_configure_extra_args=
15613 if $ac_cs_silent; then
15615 ac_configure_extra_args="$ac_configure_extra_args --silent"
15619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15620 if \$ac_cs_recheck; then
15621 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15623 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15624 CONFIG_SHELL='$SHELL'
15625 export CONFIG_SHELL
15630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15634 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15635 ## Running $as_me. ##
15641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15645 ax_enable_builddir_srcdir="$srcdir" # $srcdir
15646 ax_enable_builddir_host="$HOST" # $HOST / $host
15647 ax_enable_builddir_version="$VERSION" # $VERSION
15648 ax_enable_builddir_package="$PACKAGE" # $PACKAGE
15649 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15650 ax_enable_builddir_sed="$ax_enable_builddir_sed" # $SED
15651 ax_enable_builddir="$ax_enable_builddir" # $SUB
15653 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15656 # The HP-UX ksh and POSIX shell print the target directory to stdout
15657 # if CDPATH is set.
15658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15660 sed_quote_subst='$sed_quote_subst'
15661 double_quote_subst='$double_quote_subst'
15662 delay_variable_subst='$delay_variable_subst'
15663 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15664 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15665 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15666 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15667 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15668 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15669 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15670 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15671 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15672 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15673 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15674 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15675 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15676 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15677 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15678 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15679 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15680 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15681 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15682 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15683 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15684 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15685 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15686 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15687 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15688 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15689 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15690 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15691 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15692 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15693 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15694 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15695 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15696 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15697 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15698 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15699 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15700 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15701 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15702 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15703 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15704 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15705 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15706 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15707 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15708 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15709 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15710 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15711 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15712 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15713 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15714 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15715 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15716 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15717 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15718 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15719 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"`'
15720 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15721 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15722 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15723 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15724 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15725 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15726 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15727 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15728 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15729 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15730 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15731 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15732 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15733 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15734 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15735 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15736 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15737 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15738 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15739 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15740 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15741 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15742 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15743 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15744 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15745 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15746 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15747 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15748 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15749 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15750 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15751 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15752 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15753 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15754 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15755 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15756 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15757 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15758 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15759 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15760 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15761 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15762 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15763 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15764 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15765 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15766 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15767 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15768 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15769 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15770 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15771 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15772 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15773 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15774 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15775 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15776 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15777 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15778 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15779 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15780 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15781 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15782 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15783 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15784 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15785 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15786 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15787 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15788 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15789 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15790 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15791 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15792 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15795 LTCFLAGS='$LTCFLAGS'
15796 compiler='$compiler_DEFAULT'
15798 # A function that is used when there is no print builtin or printf.
15799 func_fallback_echo ()
15801 eval 'cat <<_LTECHO_EOF
15806 # Quote evaled strings.
15821 deplibs_check_method \
15826 sharedlib_from_linklib_cmd \
15829 archiver_list_spec \
15835 lt_cv_sys_global_symbol_pipe \
15836 lt_cv_sys_global_symbol_to_cdecl \
15837 lt_cv_sys_global_symbol_to_c_name_address \
15838 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15839 nm_file_list_spec \
15840 lt_prog_compiler_no_builtin_flag \
15841 lt_prog_compiler_pic \
15842 lt_prog_compiler_wl \
15843 lt_prog_compiler_static \
15844 lt_cv_prog_compiler_c_o \
15853 export_dynamic_flag_spec \
15854 whole_archive_flag_spec \
15855 compiler_needs_object \
15857 allow_undefined_flag \
15858 no_undefined_flag \
15859 hardcode_libdir_flag_spec \
15860 hardcode_libdir_separator \
15864 variables_saved_for_relink \
15866 library_names_spec \
15868 install_override_mode \
15872 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15873 *[\\\\\\\`\\"\\\$]*)
15874 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15877 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15882 # Double-quote double-evaled strings.
15883 for var in reload_cmds \
15884 old_postinstall_cmds \
15885 old_postuninstall_cmds \
15887 extract_expsyms_cmds \
15888 old_archive_from_new_cmds \
15889 old_archive_from_expsyms_cmds \
15891 archive_expsym_cmds \
15893 module_expsym_cmds \
15894 export_symbols_cmds \
15898 postuninstall_cmds \
15900 sys_lib_search_path_spec \
15901 sys_lib_dlsearch_path_spec; do
15902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15903 *[\\\\\\\`\\"\\\$]*)
15904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15912 ac_aux_dir='$ac_aux_dir'
15913 xsi_shell='$xsi_shell'
15914 lt_shell_append='$lt_shell_append'
15916 # See if we are running on zsh, and set the options which allow our
15917 # commands through without removal of \ escapes INIT.
15918 if test -n "\${ZSH_VERSION+set}" ; then
15919 setopt NO_GLOB_SUBST
15925 TIMESTAMP='$TIMESTAMP'
15931 TARGETDIR="$TARGETDIR"
15935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937 # Handling of arguments.
15938 for ac_config_target in $ac_config_targets
15940 case $ac_config_target in
15941 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15942 "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15943 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15944 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15945 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15946 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15947 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15948 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15949 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15950 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15951 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15952 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15953 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15955 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15960 # If the user did not use the arguments to specify the items to instantiate,
15961 # then the envvar interface is used. Set only those that are not.
15962 # We use the long form for the default assignment because of an extremely
15963 # bizarre bug on SunOS 4.1.3.
15964 if $ac_need_defaults; then
15965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15967 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15968 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15971 # Have a temporary directory for convenience. Make it in the build tree
15972 # simply because there is no reason against having it here, and in addition,
15973 # creating and moving files from /tmp can sometimes cause problems.
15974 # Hook for its removal unless debugging.
15975 # Note that there is a small window in which the directory will not be cleaned:
15976 # after its creation but before its name has been assigned to `$tmp'.
15980 trap 'exit_status=$?
15981 : "${ac_tmp:=$tmp}"
15982 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15984 trap 'as_fn_exit 1' 1 2 13 15
15986 # Create a (secure) tmp directory for tmp files.
15989 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15993 tmp=./conf$$-$RANDOM
15994 (umask 077 && mkdir "$tmp")
15995 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15998 # Set up the scripts for CONFIG_FILES section.
15999 # No need to generate them if there are no CONFIG_FILES.
16000 # This happens for instance with `./config.status config.h'.
16001 if test -n "$CONFIG_FILES"; then
16004 ac_cr=`echo X | tr X '\015'`
16005 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16006 # But we know of no other shell where ac_cr would be empty at this
16007 # point, so we can use a bashism as a fallback.
16008 if test "x$ac_cr" = x; then
16009 eval ac_cr=\$\'\\r\'
16011 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16012 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16015 ac_cs_awk_cr=$ac_cr
16018 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16023 echo "cat >conf$$subs.awk <<_ACEOF" &&
16024 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16026 } >conf$$subs.sh ||
16027 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16030 for ac_last_try in false false false false false :; do
16031 . ./conf$$subs.sh ||
16032 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16034 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16035 if test $ac_delim_n = $ac_delim_num; then
16037 elif $ac_last_try; then
16038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16043 rm -f conf$$subs.sh
16045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16046 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16050 s/^/S["/; s/!.*/"]=/
16060 s/\(.\{148\}\)..*/\1/
16062 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16074 s/\(.\{148\}\)..*/\1/
16076 s/["\\]/\\&/g; s/^/"/; s/$/"/
16080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16085 ' <conf$$subs.awk | sed '
16090 ' >>$CONFIG_STATUS || ac_write_fail=1
16091 rm -f conf$$subs.awk
16092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16094 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16095 for (key in S) S_is_set[key] = 1
16101 nfields = split(line, field, "@")
16103 len = length(field[1])
16104 for (i = 2; i < nfields; i++) {
16106 keylen = length(key)
16107 if (S_is_set[key]) {
16109 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16110 len += length(value) + length(field[++i])
16121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16122 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16123 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16126 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16127 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16130 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16131 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16132 # trailing colons and then remove the whole line if VPATH becomes empty
16133 # (actually we leave an empty line to preserve line numbers).
16134 if test "x$srcdir" = x.; then
16135 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16154 fi # test -n "$CONFIG_FILES"
16156 # Set up the scripts for CONFIG_HEADERS section.
16157 # No need to generate them if there are no CONFIG_HEADERS.
16158 # This happens for instance with `./config.status Makefile'.
16159 if test -n "$CONFIG_HEADERS"; then
16160 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16164 # Transform confdefs.h into an awk script `defines.awk', embedded as
16165 # here-document in config.status, that substitutes the proper values into
16166 # config.h.in to produce config.h.
16168 # Create a delimiter string that does not exist in confdefs.h, to ease
16169 # handling of long lines.
16171 for ac_last_try in false false :; do
16172 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16173 if test -z "$ac_tt"; then
16175 elif $ac_last_try; then
16176 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16182 # For the awk script, D is an array of macro values keyed by name,
16183 # likewise P contains macro parameters if any. Preserve backslash
16184 # newline sequences.
16186 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16188 s/.\{148\}/&'"$ac_delim"'/g
16191 s/^[ ]*#[ ]*define[ ][ ]*/ /
16198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16200 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16205 D["\1"]=" \3\\\\\\n"\\/p
16207 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16212 s/.\{148\}/&'"$ac_delim"'/g
16217 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16220 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16222 ' <confdefs.h | sed '
16223 s/'"$ac_delim"'/"\\\
16224 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16227 for (key in D) D_is_set[key] = 1
16230 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16232 split(line, arg, " ")
16233 if (arg[1] == "#") {
16237 defundef = substr(arg[1], 2)
16240 split(mac1, mac2, "(") #)
16242 prefix = substr(line, 1, index(line, defundef) - 1)
16243 if (D_is_set[macro]) {
16244 # Preserve the white space surrounding the "#".
16245 print prefix "define", macro P[macro] D[macro]
16248 # Replace #undef with comments. This is necessary, for example,
16249 # in the case of _POSIX_SOURCE, which is predefined and required
16250 # on some systems where configure will not decide to define it.
16251 if (defundef == "undef") {
16252 print "/*", prefix defundef, macro, "*/"
16260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16261 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16262 fi # test -n "$CONFIG_HEADERS"
16265 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16270 :[FHLC]) ac_mode=$ac_tag; continue;;
16272 case $ac_mode$ac_tag in
16274 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16275 :[FH]-) ac_tag=-:-;;
16276 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16293 -) ac_f="$ac_tmp/stdin";;
16294 *) # Look for the file first in the build tree, then in the source tree
16295 # (if the path is not absolute). The absolute path cannot be DOS-style,
16296 # because $ac_f cannot contain `:'.
16300 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16302 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16304 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16305 as_fn_append ac_file_inputs " '$ac_f'"
16308 # Let's still pretend it is `configure' which instantiates (i.e., don't
16309 # use $as_me), people would be surprised to read:
16310 # /* config.h. Generated by config.status. */
16311 configure_input='Generated from '`
16312 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16314 if test x"$ac_file" != x-; then
16315 configure_input="$ac_file. $configure_input"
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16317 $as_echo "$as_me: creating $ac_file" >&6;}
16319 # Neutralize special characters interpreted by sed in replacement strings.
16320 case $configure_input in #(
16321 *\&* | *\|* | *\\* )
16322 ac_sed_conf_input=`$as_echo "$configure_input" |
16323 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16324 *) ac_sed_conf_input=$configure_input;;
16328 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16334 ac_dir=`$as_dirname -- "$ac_file" ||
16335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16336 X"$ac_file" : 'X\(//\)[^/]' \| \
16337 X"$ac_file" : 'X\(//\)$' \| \
16338 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16339 $as_echo X"$ac_file" |
16340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16344 /^X\(\/\/\)[^/].*/{
16357 as_dir="$ac_dir"; as_fn_mkdir_p
16361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16363 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16364 # A ".." for each directory in $ac_dir_suffix.
16365 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16366 case $ac_top_builddir_sub in
16367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16371 ac_abs_top_builddir=$ac_pwd
16372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16373 # for backward compatibility:
16374 ac_top_builddir=$ac_top_build_prefix
16377 .) # We are building in place.
16379 ac_top_srcdir=$ac_top_builddir_sub
16380 ac_abs_top_srcdir=$ac_pwd ;;
16381 [\\/]* | ?:[\\/]* ) # Absolute name.
16382 ac_srcdir=$srcdir$ac_dir_suffix;
16383 ac_top_srcdir=$srcdir
16384 ac_abs_top_srcdir=$srcdir ;;
16385 *) # Relative name.
16386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16387 ac_top_srcdir=$ac_top_build_prefix$srcdir
16388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16400 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16401 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16403 ac_MKDIR_P=$MKDIR_P
16405 [\\/$]* | ?:[\\/]* ) ;;
16406 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411 # If the template does not know about datarootdir, expand it.
16412 # FIXME: This hack should be removed a few years after 2.60.
16413 ac_datarootdir_hack=; ac_datarootdir_seen=
16424 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16425 *datarootdir*) ac_datarootdir_seen=yes;;
16426 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16428 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16431 ac_datarootdir_hack='
16432 s&@datadir@&$datadir&g
16433 s&@docdir@&$docdir&g
16434 s&@infodir@&$infodir&g
16435 s&@localedir@&$localedir&g
16436 s&@mandir@&$mandir&g
16437 s&\\\${datarootdir}&$datarootdir&g' ;;
16441 # Neutralize VPATH when `$srcdir' = `.'.
16442 # Shell code in configure.ac might set extrasub.
16443 # FIXME: do we really want to maintain this feature?
16444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16445 ac_sed_extra="$ac_vpsub
16448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16451 s|@configure_input@|$ac_sed_conf_input|;t t
16452 s&@top_builddir@&$ac_top_builddir_sub&;t t
16453 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16454 s&@srcdir@&$ac_srcdir&;t t
16455 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16456 s&@top_srcdir@&$ac_top_srcdir&;t t
16457 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16458 s&@builddir@&$ac_builddir&;t t
16459 s&@abs_builddir@&$ac_abs_builddir&;t t
16460 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16461 s&@INSTALL@&$ac_INSTALL&;t t
16462 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16463 $ac_datarootdir_hack
16465 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16466 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16468 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16469 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16470 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16471 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16473 which seems to be undefined. Please make sure it is defined" >&5
16474 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16475 which seems to be undefined. Please make sure it is defined" >&2;}
16477 rm -f "$ac_tmp/stdin"
16479 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16480 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16488 if test x"$ac_file" != x-; then
16490 $as_echo "/* $configure_input */" \
16491 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16492 } >"$ac_tmp/config.h" \
16493 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16494 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16496 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16499 mv "$ac_tmp/config.h" "$ac_file" \
16500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16503 $as_echo "/* $configure_input */" \
16504 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16505 || as_fn_error $? "could not create -" "$LINENO" 5
16507 # Compute "$ac_file"'s index in $config_headers.
16510 for _am_header in $config_headers :; do
16511 case $_am_header in
16512 $_am_arg | $_am_arg:* )
16515 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16518 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16519 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16520 X"$_am_arg" : 'X\(//\)[^/]' \| \
16521 X"$_am_arg" : 'X\(//\)$' \| \
16522 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16523 $as_echo X"$_am_arg" |
16524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16528 /^X\(\/\/\)[^/].*/{
16540 s/.*/./; q'`/stamp-h$_am_stamp_count
16547 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16550 # Prefer the file from the source tree if names are identical.
16551 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16552 ac_source=$srcdir/$ac_source
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16556 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16558 if test ! -r "$ac_source"; then
16559 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16563 # Try a relative symlink, then a hard link, then a copy.
16565 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16566 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16568 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16569 ln "$ac_source" "$ac_file" 2>/dev/null ||
16570 cp -p "$ac_source" "$ac_file" ||
16571 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16574 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16575 $as_echo "$as_me: executing $ac_file commands" >&6;}
16580 case $ac_file$ac_mode in
16581 "buildir":C) ac_top_srcdir="$ax_enable_builddir_srcdir"
16582 if test ".$ax_enable_builddir" = ".." ; then
16583 if test -f "$top_srcdir/Makefile" ; then
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16585 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16588 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16591 if test -f "$ac_top_srcdir/Makefile" ; then
16592 a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16593 test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16595 if test -f "$ac_top_srcdir/Makefile" ; then
16596 echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16597 echo " @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16598 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16599 if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16600 then rm $ac_top_srcdir/Makefile ; fi
16601 cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~ ## DEBUGGING
16603 if test ! -f "$ac_top_srcdir/Makefile" ; then
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16605 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16606 x='`' ; cat >$tmp/conftemp.sed <<_EOF
16619 s/\\(\\n\\) /\\1 /g
16623 s/^srcdir *=.*/srcdir = ./
16624 s/^top_srcdir *=.*/top_srcdir = ./
16632 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16633 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16635 /^all all-all[ :]/i\\
16636 all-configured : all-all
16637 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16640 @ HOST="\$(HOST)\" \\\\\\
16641 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16642 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16643 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16644 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16645 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16646 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16647 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16648 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16649 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16651 @ HOST="\$(HOST)\" \\\\\\
16652 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16653 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16654 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16655 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16656 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16657 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16658 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16659 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16660 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16661 /dist-[a-zA-Z0-9]*-all *:/a\\
16662 @ HOST="\$(HOST)\" \\\\\\
16663 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16664 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16665 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16666 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16667 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16668 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16669 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16670 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16671 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16672 /distclean-all *:/a\\
16673 @ HOST="\$(HOST)\" \\\\\\
16674 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16675 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16676 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16677 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16678 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16679 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16680 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16681 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16682 ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16683 ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16684 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16686 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~" ## DEBUGGING
16687 $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16688 if test -f "$ac_top_srcdir/Makefile.mk" ; then
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16690 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16691 cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16693 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16695 if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16697 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16698 $ax_enable_builddir_sed -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $ac_top_srcdir/Makefile \
16699 >$ac_top_srcdir/Makefile~
16700 (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16703 xxxx="\\#\\#\\#\\#"
16704 # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16705 echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16706 $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16707 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~" ## DEBUGGING
16708 cp "$tmp/mkfile.tmp" "$ac_top_srcdir/makefiles.out~" ## DEBUGGING
16709 if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16711 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16712 rm "$tmp/mkfile.tmp"
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16715 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16716 mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16720 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16722 echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16725 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16726 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16727 # are listed without --file. Let's play safe and only enable the eval
16728 # if we detect the quoting.
16729 case $CONFIG_FILES in
16730 *\'*) eval set x "$CONFIG_FILES" ;;
16731 *) set x $CONFIG_FILES ;;
16736 # Strip MF so we end up with the name of the file.
16737 mf=`echo "$mf" | sed -e 's/:.*$//'`
16738 # Check whether this is an Automake generated Makefile or not.
16739 # We used to match only the files named 'Makefile.in', but
16740 # some people rename them; so instead we look at the file content.
16741 # Grep'ing the first line is not enough: some people post-process
16742 # each Makefile.in and add a new line on top of each file to say so.
16743 # Grep'ing the whole file is not good either: AIX grep has a line
16744 # limit of 2048, but all sed's we know have understand at least 4000.
16745 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16746 dirpart=`$as_dirname -- "$mf" ||
16747 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16748 X"$mf" : 'X\(//\)[^/]' \| \
16749 X"$mf" : 'X\(//\)$' \| \
16750 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16756 /^X\(\/\/\)[^/].*/{
16772 # Extract the definition of DEPDIR, am__include, and am__quote
16773 # from the Makefile without running 'make'.
16774 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16775 test -z "$DEPDIR" && continue
16776 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16777 test -z "am__include" && continue
16778 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16779 # Find all dependency output files, they are included files with
16780 # $(DEPDIR) in their names. We invoke sed twice because it is the
16781 # simplest approach to changing $(DEPDIR) to its actual value in the
16783 for file in `sed -n "
16784 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16785 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16786 # Make sure the directory exists.
16787 test -f "$dirpart/$file" && continue
16788 fdir=`$as_dirname -- "$file" ||
16789 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16790 X"$file" : 'X\(//\)[^/]' \| \
16791 X"$file" : 'X\(//\)$' \| \
16792 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16793 $as_echo X"$file" |
16794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16798 /^X\(\/\/\)[^/].*/{
16811 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16812 # echo "creating $dirpart/$file"
16813 echo '# dummy' > "$dirpart/$file"
16820 # See if we are running on zsh, and set the options which allow our
16821 # commands through without removal of \ escapes.
16822 if test -n "${ZSH_VERSION+set}" ; then
16823 setopt NO_GLOB_SUBST
16826 cfgfile="${ofile}T"
16827 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16830 cat <<_LT_EOF >> "$cfgfile"
16833 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16834 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16835 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16836 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16838 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16839 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16841 # Written by Gordon Matzigkeit, 1996
16843 # This file is part of GNU Libtool.
16845 # GNU Libtool is free software; you can redistribute it and/or
16846 # modify it under the terms of the GNU General Public License as
16847 # published by the Free Software Foundation; either version 2 of
16848 # the License, or (at your option) any later version.
16850 # As a special exception to the GNU General Public License,
16851 # if you distribute this file as part of a program or library that
16852 # is built using GNU Libtool, you may include this file under the
16853 # same distribution terms that you use for the rest of that program.
16855 # GNU Libtool is distributed in the hope that it will be useful,
16856 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16857 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16858 # GNU General Public License for more details.
16860 # You should have received a copy of the GNU General Public License
16861 # along with GNU Libtool; see the file COPYING. If not, a copy
16862 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16863 # obtained by writing to the Free Software Foundation, Inc.,
16864 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16867 # The names of the tagged configurations supported by this script.
16870 # ### BEGIN LIBTOOL CONFIG
16872 # Which release of libtool.m4 was used?
16873 macro_version=$macro_version
16874 macro_revision=$macro_revision
16876 # Whether or not to build shared libraries.
16877 build_libtool_libs=$enable_shared
16879 # Whether or not to build static libraries.
16880 build_old_libs=$enable_static
16882 # What type of objects to build.
16885 # Whether or not to optimize for fast installation.
16886 fast_install=$enable_fast_install
16888 # Shell to use when invoking shell scripts.
16891 # An echo program that protects backslashes.
16894 # The PATH separator for the build system.
16895 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16898 host_alias=$host_alias
16902 # The build system.
16903 build_alias=$build_alias
16907 # A sed program that does not truncate output.
16910 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16911 Xsed="\$SED -e 1s/^X//"
16913 # A grep program that handles long lines.
16919 # A literal string matcher.
16922 # A BSD- or MS-compatible name lister.
16925 # Whether we need soft or hard links.
16928 # What is the maximum length of a command?
16929 max_cmd_len=$max_cmd_len
16931 # Object file suffix (normally "o").
16934 # Executable file suffix (normally "").
16937 # whether the shell understands "unset".
16940 # turn spaces into newlines.
16943 # turn newlines into spaces.
16946 # convert \$build file names to \$host format.
16947 to_host_file_cmd=$lt_cv_to_host_file_cmd
16949 # convert \$build files to toolchain format.
16950 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16952 # An object symbol dumper.
16953 OBJDUMP=$lt_OBJDUMP
16955 # Method to check whether dependent libraries are shared objects.
16956 deplibs_check_method=$lt_deplibs_check_method
16958 # Command to use when deplibs_check_method = "file_magic".
16959 file_magic_cmd=$lt_file_magic_cmd
16961 # How to find potential files when deplibs_check_method = "file_magic".
16962 file_magic_glob=$lt_file_magic_glob
16964 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16965 want_nocaseglob=$lt_want_nocaseglob
16967 # DLL creation program.
16968 DLLTOOL=$lt_DLLTOOL
16970 # Command to associate shared and link libraries.
16971 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16976 # Flags to create an archive.
16977 AR_FLAGS=$lt_AR_FLAGS
16979 # How to feed a file listing to the archiver.
16980 archiver_list_spec=$lt_archiver_list_spec
16982 # A symbol stripping program.
16985 # Commands used to install an old-style archive.
16987 old_postinstall_cmds=$lt_old_postinstall_cmds
16988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16990 # Whether to use a lock for old archive extraction.
16991 lock_old_archive_extraction=$lock_old_archive_extraction
16996 # LTCC compiler flags.
16997 LTCFLAGS=$lt_CFLAGS
16999 # Take the output of nm and produce a listing of raw symbols and C names.
17000 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17002 # Transform the output of nm in a proper C declaration.
17003 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17005 # Transform the output of nm in a C name address pair.
17006 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17008 # Transform the output of nm in a C name address pair when lib prefix is needed.
17009 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17011 # Specify filename containing input files for \$NM.
17012 nm_file_list_spec=$lt_nm_file_list_spec
17014 # The root where to search for dependent libraries,and in which our libraries should be installed.
17015 lt_sysroot=$lt_sysroot
17017 # The name of the directory that contains temporary libtool files.
17020 # Used to examine libraries when file_magic_cmd begins with "file".
17021 MAGIC_CMD=$MAGIC_CMD
17023 # Must we lock files when doing compilation?
17024 need_locks=$lt_need_locks
17027 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17029 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17030 DSYMUTIL=$lt_DSYMUTIL
17032 # Tool to change global to local symbols on Mac OS X.
17035 # Tool to manipulate fat objects and archives on Mac OS X.
17038 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17041 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17042 OTOOL64=$lt_OTOOL64
17044 # Old archive suffix (normally "a").
17047 # Shared library suffix (normally ".so").
17048 shrext_cmds=$lt_shrext_cmds
17050 # The commands to extract the exported symbol list from a shared archive.
17051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17053 # Variables whose values should be saved in libtool wrapper scripts and
17054 # restored at link time.
17055 variables_saved_for_relink=$lt_variables_saved_for_relink
17057 # Do we need the "lib" prefix for modules?
17058 need_lib_prefix=$need_lib_prefix
17060 # Do we need a version for libraries?
17061 need_version=$need_version
17063 # Library versioning type.
17064 version_type=$version_type
17066 # Shared library runtime path variable.
17067 runpath_var=$runpath_var
17069 # Shared library path variable.
17070 shlibpath_var=$shlibpath_var
17072 # Is shlibpath searched before the hard-coded library search path?
17073 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17075 # Format of library name prefix.
17076 libname_spec=$lt_libname_spec
17078 # List of archive names. First name is the real one, the rest are links.
17079 # The last name is the one that the linker finds with -lNAME
17080 library_names_spec=$lt_library_names_spec
17082 # The coded name of the library, if different from the real name.
17083 soname_spec=$lt_soname_spec
17085 # Permission mode override for installation of shared libraries.
17086 install_override_mode=$lt_install_override_mode
17088 # Command to use after installation of a shared archive.
17089 postinstall_cmds=$lt_postinstall_cmds
17091 # Command to use after uninstallation of a shared archive.
17092 postuninstall_cmds=$lt_postuninstall_cmds
17094 # Commands used to finish a libtool library installation in a directory.
17095 finish_cmds=$lt_finish_cmds
17097 # As "finish_cmds", except a single script fragment to be evaled but
17099 finish_eval=$lt_finish_eval
17101 # Whether we should hardcode library paths into libraries.
17102 hardcode_into_libs=$hardcode_into_libs
17104 # Compile-time system search path for libraries.
17105 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17107 # Run-time system search path for libraries.
17108 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17110 # Whether dlopen is supported.
17111 dlopen_support=$enable_dlopen
17113 # Whether dlopen of programs is supported.
17114 dlopen_self=$enable_dlopen_self
17116 # Whether dlopen of statically linked programs is supported.
17117 dlopen_self_static=$enable_dlopen_self_static
17119 # Commands to strip libraries.
17120 old_striplib=$lt_old_striplib
17121 striplib=$lt_striplib
17124 # The linker used to build libraries.
17127 # How to create reloadable object files.
17128 reload_flag=$lt_reload_flag
17129 reload_cmds=$lt_reload_cmds
17131 # Commands used to build an old-style archive.
17132 old_archive_cmds=$lt_old_archive_cmds
17134 # A language specific compiler.
17137 # Is the compiler the GNU compiler?
17140 # Compiler flag to turn off builtin functions.
17141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17143 # Additional compiler flags for building library objects.
17144 pic_flag=$lt_lt_prog_compiler_pic
17146 # How to pass a linker flag through the compiler.
17147 wl=$lt_lt_prog_compiler_wl
17149 # Compiler flag to prevent dynamic linking.
17150 link_static_flag=$lt_lt_prog_compiler_static
17152 # Does compiler simultaneously support -c and -o options?
17153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17155 # Whether or not to add -lc for building shared libraries.
17156 build_libtool_need_lc=$archive_cmds_need_lc
17158 # Whether or not to disallow shared libs when runtime libs are static.
17159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17161 # Compiler flag to allow reflexive dlopens.
17162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17164 # Compiler flag to generate shared objects directly from archives.
17165 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17167 # Whether the compiler copes with passing no objects directly.
17168 compiler_needs_object=$lt_compiler_needs_object
17170 # Create an old-style archive from a shared archive.
17171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17173 # Create a temporary old-style archive to link instead of a shared archive.
17174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17176 # Commands used to build a shared archive.
17177 archive_cmds=$lt_archive_cmds
17178 archive_expsym_cmds=$lt_archive_expsym_cmds
17180 # Commands used to build a loadable module if different from building
17181 # a shared archive.
17182 module_cmds=$lt_module_cmds
17183 module_expsym_cmds=$lt_module_expsym_cmds
17185 # Whether we are building with GNU ld or not.
17186 with_gnu_ld=$lt_with_gnu_ld
17188 # Flag that allows shared libraries with undefined symbols to be built.
17189 allow_undefined_flag=$lt_allow_undefined_flag
17191 # Flag that enforces no undefined symbols.
17192 no_undefined_flag=$lt_no_undefined_flag
17194 # Flag to hardcode \$libdir into a binary during linking.
17195 # This must work even if \$libdir does not exist
17196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17198 # Whether we need a single "-rpath" flag with a separated argument.
17199 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17201 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17202 # DIR into the resulting binary.
17203 hardcode_direct=$hardcode_direct
17205 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17206 # DIR into the resulting binary and the resulting library dependency is
17207 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17208 # library is relocated.
17209 hardcode_direct_absolute=$hardcode_direct_absolute
17211 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17212 # into the resulting binary.
17213 hardcode_minus_L=$hardcode_minus_L
17215 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17216 # into the resulting binary.
17217 hardcode_shlibpath_var=$hardcode_shlibpath_var
17219 # Set to "yes" if building a shared library automatically hardcodes DIR
17220 # into the library and all subsequent libraries and executables linked
17222 hardcode_automatic=$hardcode_automatic
17224 # Set to yes if linker adds runtime paths of dependent libraries
17225 # to runtime path list.
17226 inherit_rpath=$inherit_rpath
17228 # Whether libtool must link a program against all its dependency libraries.
17229 link_all_deplibs=$link_all_deplibs
17231 # Set to "yes" if exported symbols are required.
17232 always_export_symbols=$always_export_symbols
17234 # The commands to list exported symbols.
17235 export_symbols_cmds=$lt_export_symbols_cmds
17237 # Symbols that should not be listed in the preloaded symbols.
17238 exclude_expsyms=$lt_exclude_expsyms
17240 # Symbols that must always be exported.
17241 include_expsyms=$lt_include_expsyms
17243 # Commands necessary for linking programs (against libraries) with templates.
17244 prelink_cmds=$lt_prelink_cmds
17246 # Commands necessary for finishing linking programs.
17247 postlink_cmds=$lt_postlink_cmds
17249 # Specify filename containing input files.
17250 file_list_spec=$lt_file_list_spec
17252 # How to hardcode a shared library path into an executable.
17253 hardcode_action=$hardcode_action
17255 # ### END LIBTOOL CONFIG
17261 cat <<\_LT_EOF >> "$cfgfile"
17262 # AIX sometimes has problems with the GCC collect2 program. For some
17263 # reason, if we set the COLLECT_NAMES environment variable, the problems
17264 # vanish in a puff of smoke.
17265 if test "X${COLLECT_NAMES+set}" != Xset; then
17267 export COLLECT_NAMES
17274 ltmain="$ac_aux_dir/ltmain.sh"
17277 # We use sed instead of cat because bash on DJGPP gets confused if
17278 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17279 # text mode, it properly converts lines to CR/LF. This bash problem
17280 # is reportedly fixed, but why not run on old versions too?
17281 sed '$q' "$ltmain" >> "$cfgfile" \
17282 || (rm -f "$cfgfile"; exit 1)
17284 if test x"$xsi_shell" = xyes; then
17285 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17289 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17290 \ * ) func_dirname_result="${3}" ;;\
17292 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17293 && mv -f "$cfgfile.tmp" "$cfgfile" \
17294 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17295 test 0 -eq $? || _lt_function_replace_fail=:
17298 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17301 \ func_basename_result="${1##*/}"\
17302 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17303 && mv -f "$cfgfile.tmp" "$cfgfile" \
17304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17305 test 0 -eq $? || _lt_function_replace_fail=:
17308 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17309 func_dirname_and_basename ()\
17312 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17313 \ * ) func_dirname_result="${3}" ;;\
17315 \ func_basename_result="${1##*/}"\
17316 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17317 && mv -f "$cfgfile.tmp" "$cfgfile" \
17318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17319 test 0 -eq $? || _lt_function_replace_fail=:
17322 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17325 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17326 \ # positional parameters, so assign one to ordinary parameter first.\
17327 \ func_stripname_result=${3}\
17328 \ func_stripname_result=${func_stripname_result#"${1}"}\
17329 \ func_stripname_result=${func_stripname_result%"${2}"}\
17330 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17331 && mv -f "$cfgfile.tmp" "$cfgfile" \
17332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17333 test 0 -eq $? || _lt_function_replace_fail=:
17336 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17337 func_split_long_opt ()\
17339 \ func_split_long_opt_name=${1%%=*}\
17340 \ func_split_long_opt_arg=${1#*=}\
17341 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17342 && mv -f "$cfgfile.tmp" "$cfgfile" \
17343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17344 test 0 -eq $? || _lt_function_replace_fail=:
17347 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17348 func_split_short_opt ()\
17350 \ func_split_short_opt_arg=${1#??}\
17351 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17352 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17353 && mv -f "$cfgfile.tmp" "$cfgfile" \
17354 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17355 test 0 -eq $? || _lt_function_replace_fail=:
17358 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17362 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17363 \ *) func_lo2o_result=${1} ;;\
17365 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17366 && mv -f "$cfgfile.tmp" "$cfgfile" \
17367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17368 test 0 -eq $? || _lt_function_replace_fail=:
17371 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17374 func_xform_result=${1%.*}.lo\
17375 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17376 && mv -f "$cfgfile.tmp" "$cfgfile" \
17377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17378 test 0 -eq $? || _lt_function_replace_fail=:
17381 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17384 func_arith_result=$(( $* ))\
17385 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17386 && mv -f "$cfgfile.tmp" "$cfgfile" \
17387 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17388 test 0 -eq $? || _lt_function_replace_fail=:
17391 sed -e '/^func_len ()$/,/^} # func_len /c\
17394 func_len_result=${#1}\
17395 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17396 && mv -f "$cfgfile.tmp" "$cfgfile" \
17397 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17398 test 0 -eq $? || _lt_function_replace_fail=:
17402 if test x"$lt_shell_append" = xyes; then
17403 sed -e '/^func_append ()$/,/^} # func_append /c\
17406 eval "${1}+=\\${2}"\
17407 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17408 && mv -f "$cfgfile.tmp" "$cfgfile" \
17409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17410 test 0 -eq $? || _lt_function_replace_fail=:
17413 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17414 func_append_quoted ()\
17416 \ func_quote_for_eval "${2}"\
17417 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17418 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17419 && mv -f "$cfgfile.tmp" "$cfgfile" \
17420 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17421 test 0 -eq $? || _lt_function_replace_fail=:
17424 # Save a `func_append' function call where possible by direct use of '+='
17425 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17426 && mv -f "$cfgfile.tmp" "$cfgfile" \
17427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17428 test 0 -eq $? || _lt_function_replace_fail=:
17430 # Save a `func_append' function call even when '+=' is not available
17431 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17432 && mv -f "$cfgfile.tmp" "$cfgfile" \
17433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17434 test 0 -eq $? || _lt_function_replace_fail=:
17437 if test x"$_lt_function_replace_fail" = x":"; then
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17439 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17443 mv -f "$cfgfile" "$ofile" ||
17444 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17448 "include":C) test -d include || mkdir include ;;
17450 test -d src || mkdir src
17451 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17460 ac_clean_files=$ac_clean_files_save
17462 test $ac_write_fail = 0 ||
17463 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17466 # configure is writing to config.log, and then calls config.status.
17467 # config.status does its own redirection, appending to config.log.
17468 # Unfortunately, on DOS this fails, as config.log is still kept open
17469 # by configure, so config.status won't be able to write to it; its
17470 # output is simply discarded. So we exec the FD to /dev/null,
17471 # effectively closing config.log, so it can be properly (re)opened and
17472 # appended to by config.status. When coming back to configure, we
17473 # need to make the FD available again.
17474 if test "$no_create" != yes; then
17476 ac_config_status_args=
17477 test "$silent" = yes &&
17478 ac_config_status_args="$ac_config_status_args --quiet"
17480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17483 # would make configure fail if this is the last instruction.
17484 $ac_cs_success || as_fn_exit 1
17486 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17488 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}